/* ============================================================
   Aquilo Teatro — folha de estilos
   Cores e tipos definidos aqui; muda só os tokens para afinar.
   ============================================================ */

@font-face { font-family: "Gill Sans Aquilo"; src: url("../fonts/GillSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans Aquilo"; src: url("../fonts/GillSans-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Gill Sans Aquilo"; src: url("../fonts/GillSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gill Sans Aquilo"; src: url("../fonts/GillSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --rosa: #FF0DF7;
  --verde: #2BFFB2;
  --amarelo: #FFBA1E;
  --branco: #F4F4F4;
  --preto: #383838;
  --verde-claro: color-mix(in srgb, var(--verde) 32%, var(--branco));
  --amarelo-claro: color-mix(in srgb, var(--amarelo) 30%, var(--branco));

  --font: "Gill Sans Aquilo", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  --gutter: clamp(16px, 2vw, 28px);
  --header-h: clamp(64px, 10vw, 110px);
  --t-xxl: clamp(2.6rem, 6.4vw, 5.6rem);
  --t-xl: clamp(2rem, 4.2vw, 3.6rem);
  --t-l: clamp(1.6rem, 2.6vw, 2.4rem);
  --t-m: clamp(1.15rem, 1.5vw, 1.45rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--preto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 300; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }

/* ---------- Logótipo (provisório: troca por logo.svg quando houver) ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: .86; letter-spacing: -.01em; text-decoration: none; }
.logo span { display: block; }
.logo .mirror { transform: scaleX(-1); transform-origin: center; align-self: flex-start; }
.logo--grad span {
  background: linear-gradient(90deg, var(--verde), var(--rosa));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo img { width: 100%; height: auto; }

/* =================== HOMEPAGE =================== */
.home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.home__col { display: flex; flex-direction: column; min-height: 100dvh; }
.tile {
  position: relative;
  display: flex;
  text-decoration: none;
  padding: var(--gutter);
  overflow: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.tile__label { font-size: var(--t-xxl); line-height: 1; letter-spacing: -.01em; }

.tile--sobre { flex: 2.2; background: var(--branco); color: var(--preto); flex-direction: column; justify-content: space-between; }
.tile--sobre .logo { font-size: var(--t-xxl); }
.tile--sobre .logo span { transition: color .35s var(--ease); }
.tile--sobre:hover, .tile--sobre:focus-visible { background: var(--preto); }
.tile--sobre:hover .logo span, .tile--sobre:focus-visible .logo span {
  background: linear-gradient(90deg, var(--verde), var(--rosa));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* logótipo em imagem (carregado na gestão) */
.logo--img { display: block; }
.tile--sobre .logo--img { width: min(46%, 420px); }
.tile--sobre .logo--img img { width: 100%; height: auto; }
.tile--sobre .logo-hover { display: none; }
.tile--sobre:hover .logo-normal, .tile--sobre:focus-visible .logo-normal { display: none; }
.tile--sobre:hover .logo-hover, .tile--sobre:focus-visible .logo-hover { display: block; }
.topbar__logo .logo--img { width: clamp(90px, 10vw, 150px); }

.tile--arquivo { flex: 1; background: var(--rosa); color: var(--preto); }
.tile--arquivo:hover, .tile--arquivo:focus-visible { background: var(--preto); color: var(--rosa); }

.tile--agenda { flex: 1; background: var(--preto); color: var(--verde); }
.tile--agenda:hover, .tile--agenda:focus-visible { background: var(--verde); color: var(--preto); }
.tile--agenda .sep { display: inline-block; margin: 0 .12em; font-weight: 300; }

.tile--proximo { flex: 1.6; background: var(--preto); color: var(--branco); padding: 0; }
.tile--proximo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.tile--proximo:hover img, .tile--proximo:focus-visible img { transform: scale(1.04); filter: saturate(1.15); }
.tile--proximo .proximo__info {
  position: absolute; left: 0; bottom: 0;
  background: var(--amarelo); color: var(--preto);
  padding: .6em var(--gutter) .7em;
  max-width: 92%;
  transition: background-color .3s, color .3s;
}
.tile--proximo:hover .proximo__info { background: var(--preto); color: var(--amarelo); }
.proximo__kicker { font-size: var(--t-m); font-weight: 400; }
.proximo__title { font-size: var(--t-l); line-height: 1.05; }
.tile--proximo.is-empty { background: var(--amarelo); color: var(--preto); padding: var(--gutter); }

/* =================== CABEÇALHO DAS PÁGINAS INTERNAS =================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: 1fr minmax(0, 41%);
  height: var(--header-h);
  background: var(--branco);
  border-bottom: 3px solid var(--accent-line, var(--verde));
}
.topbar__logo { display: flex; align-items: center; padding: 0 var(--gutter); }
.topbar__logo .logo { font-size: clamp(1.15rem, 2.3vw, 2rem); }
.topbar__title {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--preto);
  color: var(--accent, var(--rosa));
  padding: 0 var(--gutter);
}
.topbar__title h1 { font-size: var(--t-xl); line-height: 1; white-space: nowrap; }
.close { display: grid; place-items: center; width: clamp(40px, 5vw, 64px); aspect-ratio: 1; color: inherit; text-decoration: none; transition: transform .3s var(--ease); }
.close:hover { transform: rotate(90deg); }
.close svg { width: 100%; height: 100%; }

.page--sobre   { --accent: var(--rosa);  --accent-line: var(--verde); }
.page--agenda  { --accent: var(--verde); --accent-line: var(--rosa); }
.page--arquivo { --accent: var(--rosa);  --accent-line: var(--rosa); }

/* =================== ACORDEÃO (sobre + arquivo) =================== */
.acc { border-bottom: 2px solid var(--verde); }
.acc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .55em var(--gutter);
  font-size: var(--t-l); line-height: 1.15;
  transition: background-color .25s, color .25s;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary:hover, .acc[open] > summary { background: var(--rosa); color: var(--preto); }
.acc > summary .acc__meta { font-size: var(--t-m); opacity: .7; }
.acc__body { padding: 2rem var(--gutter) 3rem; }
.prose, .prose-ev { max-width: 46rem; margin-left: clamp(0px, 8vw, 7rem); }
.prose h3, .prose-ev h3 { font-weight: 400; font-size: 1.15em; margin: 1.6em 0 .4em; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 .7em; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose strong { font-weight: 400; }
.prose .rol p { margin: 0 0 .15em; }
.prose .rol { margin-bottom: 1.4em; }
.todo { background: var(--amarelo-claro); padding: .1em .35em; }

/* =================== AGENDA =================== */
.agenda { padding: clamp(1.5rem, 4vw, 3.5rem) 0 2.5rem; }
.agenda > .empty { padding-left: var(--gutter); padding-right: var(--gutter); }
/* faixa horizontal: desliza para o lado (roda do rato, trackpad, dedo ou setas do teclado) */
.trilho {
  display: flex; align-items: stretch; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter) 1.4rem;
  scrollbar-width: thin; scrollbar-color: var(--rosa) transparent;
}
.trilho::-webkit-scrollbar { height: 8px; }
.trilho::-webkit-scrollbar-thumb { background: var(--rosa); }
.trilho::-webkit-scrollbar-track { background: transparent; }
.trilho:focus-visible { outline-offset: -3px; }
.mes {
  flex: 0 0 auto; align-self: stretch;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: var(--t-xl); line-height: 1; color: var(--preto);
  border-right: 2px solid var(--rosa); padding-left: .25em;
}
.mes small { color: var(--rosa); font-size: .5em; margin-top: .3em; }
.trilho > .card, .trilho > .mes { scroll-snap-align: start; }
.trilho > .card { flex: 0 0 clamp(260px, 28vw, 400px); }
.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--preto);
  border-top: 2px solid var(--rosa);
  padding: .6rem clamp(12px, 1.4vw, 20px) 1.6rem;
  transition: background-color .3s var(--ease);
}
.card:hover, .card:focus-visible { background: var(--verde); }
.card__date { text-align: center; font-size: var(--t-m); margin-bottom: 1rem; }
.card__img { width: min(78%, 340px); aspect-ratio: 3 / 4; object-fit: cover; margin: 0 auto 1.2rem; background: var(--verde-claro); }
.card__title { text-align: center; font-size: var(--t-l); line-height: 1.08; margin-bottom: .7rem; }
.card__cat { text-align: center; color: var(--rosa); font-weight: 400; font-size: .95rem; letter-spacing: .04em; text-transform: lowercase; margin-bottom: .5rem; }
.card__desc { font-size: 1.05rem; }
.empty { font-size: var(--t-l); color: var(--rosa); padding: 2rem 0; }

/* =================== PÁGINA DE EVENTO =================== */
.evento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - var(--header-h)); }
.evento__media { position: relative; background: var(--preto); }
.evento__media img { position: sticky; top: var(--header-h); width: 100%; height: calc(100dvh - var(--header-h)); object-fit: contain; }
.evento__info { display: flex; flex-direction: column; }
.evento__date { background: var(--verde); padding: var(--gutter); font-size: var(--t-xl); line-height: 1; }
.evento__date small { display: block; font-size: var(--t-m); margin-top: .4rem; }
.evento__body { padding: clamp(1.5rem, 3vw, 3rem) var(--gutter) 3rem; }
.evento__cat { color: var(--rosa); font-weight: 400; letter-spacing: .04em; margin-bottom: .4rem; }
.evento__title { font-size: var(--t-xxl); line-height: .98; margin-bottom: 1.6rem; letter-spacing: -.01em; }
.evento__facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.2rem; margin: 0 0 2rem; padding: 1rem 0; border-top: 2px solid var(--rosa); border-bottom: 2px solid var(--rosa); }
.evento__facts dt { font-weight: 400; }
.evento__facts dd { margin: 0; }
.evento__desc p { margin-bottom: .9em; max-width: 38rem; }
.evento__ficha { margin-top: 2rem; font-size: 1rem; }
.evento__ficha h3 { font-weight: 400; margin-bottom: .4rem; font-size: 1.1rem; }
.btn {
  display: inline-block; margin: .4rem 0 2rem;
  background: var(--rosa); color: var(--preto); text-decoration: none;
  font-size: var(--t-m); padding: .5em 1.1em;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--preto); color: var(--rosa); }
.aviso { background: var(--amarelo); padding: .8rem var(--gutter); font-size: var(--t-m); }
.aviso a { font-weight: 400; }

.evnav { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-top: 3px solid var(--rosa); background: var(--branco); }
.evnav a { display: block; padding: 1.4rem var(--gutter) 1.8rem; text-decoration: none; transition: background-color .3s, color .3s; min-height: 8rem; }
.evnav a small { display: block; font-size: var(--t-m); margin-bottom: .3rem; }
.evnav a span { font-size: var(--t-l); line-height: 1.05; }
.evnav .prev, .evnav .next { background: var(--preto); color: var(--verde); }
.evnav .prev:hover, .evnav .next:hover, .evnav .prev:focus-visible, .evnav .next:focus-visible { background: var(--verde); color: var(--preto); }
.evnav .next { text-align: right; }
.evnav .void { background: var(--branco); }

/* =================== ARQUIVO =================== */
.arq-tools { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; padding: 1.2rem var(--gutter); border-bottom: 2px solid var(--rosa); }
.f-ano { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.f-ano select { font: inherit; font-weight: 300; color: var(--preto); background: var(--branco); border: 2px solid var(--preto); padding: .25em .5em; border-radius: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button { background: none; border: 2px solid var(--rosa); padding: .2em .8em; cursor: pointer; font-size: 1rem; }
.chips button[aria-pressed="true"] { background: var(--rosa); }

.anos .acc { border-bottom-color: var(--rosa); }
.anos .acc > summary { font-size: var(--t-xl); }
.anos .acc > summary:hover, .anos .acc[open] > summary { background: var(--amarelo); }
.anos .acc[open] > summary { position: sticky; top: var(--header-h); z-index: 5; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 40%), 1fr)); gap: 1.4rem; }
.mini { text-decoration: none; display: block; }
.mini img, .mini .mini__ph { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--amarelo-claro); }
.mini__ph { display: grid; place-items: center; text-align: center; padding: 1rem; font-size: 1.3rem; color: var(--preto); }
.mini h3 { font-size: 1.2rem; line-height: 1.15; margin-top: .5rem; }
.mini p { font-size: .95rem; color: color-mix(in srgb, var(--preto) 70%, transparent); }
.mini:hover h3 { color: var(--rosa); }

.foot { padding: 1.6rem var(--gutter) 2rem; font-size: var(--t-m); border-top: 2px solid var(--verde); display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.foot:not(:has(a:not([hidden]))) { display: none; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--rosa); }

/* =================== TABLET =================== */
@media (max-width: 1000px) {
}

/* =================== TELEMÓVEL =================== */
@media (max-width: 700px) {
  body { font-size: 1.05rem; }
  .home { grid-template-columns: 1fr; }
  .home__col { min-height: 0; display: contents; }
  .tile { min-height: 22vh; }
  .tile--sobre { order: 1; min-height: 34vh; }
  .tile--agenda { order: 2; }
  .tile--proximo { order: 3; min-height: 62vh; }
  .tile--arquivo { order: 4; }
  .tile__label { font-size: clamp(2.8rem, 13vw, 4rem); }
  .tile--sobre .logo { font-size: clamp(3rem, 16vw, 4.6rem); }
  .tile--sobre .logo--img { width: 72%; }

  .topbar { grid-template-columns: auto 1fr; }
  .topbar__title { padding-right: 8px; }
  .topbar__title h1 { font-size: clamp(1.7rem, 8.5vw, 2.6rem); }

  .acc > summary { font-size: 1.55rem; }
  .prose { margin-left: 0; }

  .trilho > .card { flex-basis: 78vw; }
  .card__img { width: 70%; }

  .evento { grid-template-columns: 1fr; }
  .evento__media img { position: static; height: auto; max-height: 55vh; margin: 0 auto; }
  .evento__facts { grid-template-columns: 1fr; gap: 0; }
  .evento__facts dd { margin-bottom: .5rem; }
  .evnav a { min-height: 6rem; }

  .anos .acc > summary { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.prose-ev { margin-left: 0; }
.prose-ev ul, .prose-ev ol { padding-left: 1.3em; }
.acc { scroll-margin-top: var(--header-h); }
.prose h3 { font-size: 1.3em; }
.prose p strong:only-child { display: inline-block; margin-top: .4em; }
.arq-antigo {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .55em var(--gutter); font-size: var(--t-xl); line-height: 1.15;
  text-decoration: none; color: var(--rosa); border-bottom: 2px solid var(--rosa);
  transition: background-color .25s, color .25s;
}
.arq-antigo .acc__meta { color: var(--preto); font-size: var(--t-m); }
.arq-antigo:hover { background: var(--preto); }
.arq-antigo:hover .acc__meta { color: var(--rosa); }
@media (max-width: 700px) { .arq-antigo { font-size: 2.2rem; } }

/* =================== GALERIA DE FOTOS =================== */
.galeria { padding: 2rem var(--gutter) 3rem; border-top: 3px solid var(--rosa); }
.galeria h2 { font-size: var(--t-xl); line-height: 1; margin-bottom: 1.2rem; }
.galeria h2 small { font-size: .45em; color: var(--rosa); margin-left: .4em; }
.galeria__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 30vw), 1fr)); gap: 6px; }
.galeria__item { display: block; padding: 0; border: 0; background: var(--amarelo-claro); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.galeria__item:hover img, .galeria__item:focus-visible img { transform: scale(1.05); opacity: .85; }
.mini__fotos { color: var(--rosa) !important; font-weight: 400; }

.lb { position: fixed; inset: 0; z-index: 100; background: var(--preto); color: var(--branco); display: grid; grid-template-rows: auto 1fr; }
.lb[hidden] { display: none; }
body.lb-aberta { overflow: hidden; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: .8rem var(--gutter); color: var(--verde); font-size: var(--t-m); }
.lb__x { background: none; border: 0; color: var(--verde); width: clamp(40px, 5vw, 56px); aspect-ratio: 1; padding: 0; cursor: pointer; }
.lb__x:hover { color: var(--rosa); }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(16px, 7vw, 110px) 1.2rem; }
.lb__img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; }
.lb__cap { margin-top: .7rem; text-align: center; font-size: 1.05rem; min-height: 1.4em; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--verde); font: inherit; font-size: clamp(2rem, 4vw, 3rem); padding: .4em .5em; cursor: pointer; }
.lb__nav:hover { color: var(--rosa); }
.lb__prev { left: 0; }
.lb__next { right: 0; }
@media (max-width: 700px) { .lb__nav { top: auto; bottom: .2rem; transform: none; } .lb__fig { padding-bottom: 3.5rem; } }
