/* ==========================================================================
   Festa da Alface 2026 · retrospectiva
   Paleta: verde principal e creme do guia + limão e amarelo (referência
   aprovada em 03/11/2026). Títulos Libre Baskerville, texto Inter.
   ========================================================================== */
@font-face { font-family: "Libre Baskerville"; src: url(../fonts/libre-baskerville-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url(../fonts/libre-baskerville-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url(../fonts/libre-baskerville-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --verde: #064A20;          /* verde principal: marca, fundos escuros, títulos */
  --verde-noite: #04301A;    /* o mesmo verde, mais fundo: base das fotos noturnas */
  --folha: #54872C;
  --limao: #94BE3F;          /* fita, ícones e destaques sobre verde */
  --amarelo: #F2C91D;        /* ação primária e pontos de luz */
  --creme: #F5E8C7;
  --creme-claro: #FBF6E9;
  --vinho: #6D1722;
  --tinta: #10261A;          /* texto corrido sobre creme */
  --tinta-suave: #3B4A3F;

  --ff-titulo: "Libre Baskerville", Georgia, serif;
  --ff-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --grade: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --secao: clamp(48px, 9vw, 112px);
  --raio: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);   /* saída exponencial */

  --topo-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topo-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--creme); color: var(--tinta);
  font-family: var(--ff-texto); font-size: 1.125rem; line-height: 1.56;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--ff-titulo); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--amarelo); color: var(--verde-noite); }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.grade { width: min(100% - 2 * var(--gutter), var(--grade)); margin-inline: auto; }

html { scrollbar-color: var(--folha) var(--creme); }

.pular {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--amarelo); color: var(--verde-noite); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.pular:focus { transform: none; }

/* ---------- Header: logo central, cápsulas de vidro nas laterais ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topo-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter) 0; pointer-events: none;
}
.topo__lado { display: flex; pointer-events: auto; transition: transform .9s var(--ease), opacity .6s var(--ease); }
html.com-movimento:not(.abertura-pronta) .topo__lado { opacity: 0; pointer-events: none; }
html.com-movimento:not(.abertura-pronta) .topo__lado--esq { transform: translateX(-48px); }
html.com-movimento:not(.abertura-pronta) .topo__lado--dir { transform: translateX(48px); }

/* o vidro vive numa camada atrás do conteúdo, como na Digital: blur baixo para a refração das bordas aparecer */
.capsula { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 24px; color: var(--creme-claro); isolation: isolate; }
.capsula::before, .marca__placa {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(4, 48, 26, .46); border: 1px solid rgba(251, 246, 233, .2);
  box-shadow: 0 14px 40px rgba(2, 24, 12, .35), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
}
html.vidro-svg .capsula::before { backdrop-filter: var(--vidro-filtro) blur(1.5px) saturate(1.8) brightness(1.04); }
html.vidro-svg .marca__placa { backdrop-filter: var(--vidro-filtro) blur(2px) saturate(1.8) brightness(1.02); }
/* sobre as dobras creme o vidro escurece para o texto claro seguir legível; a distorção continua nas bordas */
html.sobre-claro .capsula::before, html.sobre-claro .marca__placa { background: rgba(6, 74, 32, .88); border-color: rgba(251, 246, 233, .14); }
.capsula::before, .marca__placa { transition: background .45s var(--ease), opacity .5s var(--ease); }

.capsula__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.capsula__links a, .capsula__social, .capsula__menu {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 18px;
  font: 600 .9375rem/1 var(--ff-texto); color: inherit; text-decoration: none; letter-spacing: .005em;
  background: transparent; border: 0; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.capsula__links a:hover, .capsula__social:hover, .capsula__menu:hover { background: rgba(251, 246, 233, .14); }
.capsula__links a[aria-current="true"] { background: var(--creme-claro); color: var(--verde); }
.capsula svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.capsula svg .ponto { fill: currentColor; stroke: none; }
.capsula__menu { display: none; }

/* logo: um só elemento que viaja do centro da abertura até o header (transform calculado em js/pagina.js) */
.marca {
  --marca-w: clamp(108px, 11vw, 164px);
  position: fixed; left: 50%; top: 0; z-index: 51; width: var(--marca-w);
  transform-origin: 50% 0; transform: translate(-50%, 10px); pointer-events: auto;
}
.marca img { width: 100%; filter: drop-shadow(0 6px 22px rgba(2, 24, 12, .45)); }
.marca__placa { inset: -8px -14px; border-radius: 20px; opacity: 0; }
html.sobre-claro .marca__placa { opacity: 1; }
html.sobre-claro .marca img { filter: none; }

/* ---------- 01 · Abertura ---------- */
.abertura { position: relative; height: 340vh; background: var(--verde-noite); }
.abertura__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.alface, .alface__entrada, .janela { position: absolute; inset: 0; }
.alface__fundo, .alface__frente, .janela img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
}
.alface__fundo, .alface__frente { transform-origin: 50% 52%; will-change: transform; }
/* a camada da frente são as folhas de fora: o miolo é furado e elas passam pela câmera mais rápido */
.alface__frente {
  -webkit-mask: radial-gradient(ellipse 34% 40% at 50% 52%, transparent 62%, #000 100%);
          mask: radial-gradient(ellipse 34% 40% at 50% 52%, transparent 62%, #000 100%);
}
.alface__veu {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 50% 50%, rgba(4, 34, 16, .62), rgba(4, 34, 16, .2) 70%, transparent 100%),
    linear-gradient(to bottom, rgba(4, 34, 16, .35), transparent 22%, transparent 78%, rgba(4, 34, 16, .45));
}

/* a festa aparece por uma janela no formato da folha do logo */
.janela {
  --janela: 0vmax;
  -webkit-mask: url(../img/folha-mascara.webp) 50% 50% / var(--janela) auto no-repeat;
          mask: url(../img/folha-mascara.webp) 50% 50% / var(--janela) auto no-repeat;
  visibility: hidden;
}
.janela.is-aberta { -webkit-mask: none; mask: none; }
.janela.is-visivel { visibility: visible; }
.janela img { object-position: 50% 0; transform-origin: 50% 40%; will-change: transform; }   /* palco desce e não fica colado ao logo do header */
.janela__veu {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(4, 30, 15, .55), transparent 26%),
    linear-gradient(to top, rgba(4, 30, 15, .96) 0, rgba(4, 30, 15, .78) 28%, rgba(4, 30, 15, 0) 62%);
}

.abertura__conteudo {
  position: absolute; left: 50%; bottom: clamp(32px, 8vh, 88px); z-index: 3;
  width: min(100% - 2 * var(--gutter), 980px); transform: translateX(-50%);
  display: grid; justify-items: center; text-align: center; gap: 18px; color: var(--creme-claro);
}
.abertura h1 { font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: 1.02; letter-spacing: -.02em; color: var(--creme-claro); }
.abertura__chamada { font-family: var(--ff-titulo); font-style: italic; font-size: clamp(1.125rem, 1.9vw, 1.5rem); color: var(--creme); }
.selo-retro {
  display: inline-block; margin-right: .6em; padding: .32em .9em; border: 1.5px solid var(--amarelo); border-radius: 999px; vertical-align: .18em;
  font: 700 .72rem/1 var(--ff-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--amarelo); font-style: normal;
}
.abertura__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.botao--vazado { background: transparent; color: var(--creme-claro); box-shadow: inset 0 0 0 1.5px rgba(251, 246, 233, .7); }
.botao--vazado:hover { box-shadow: inset 0 0 0 1.5px var(--amarelo); color: var(--amarelo); }
.plaquinhas { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plaquinha {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: var(--creme-claro); color: var(--verde); font-size: .9375rem; font-weight: 600; line-height: 1.2;
  box-shadow: 0 10px 28px rgba(2, 24, 12, .28);
}
.plaquinha svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 7px; background: var(--limao); fill: none; stroke: var(--verde); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.botao {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; margin-top: 6px; border-radius: 999px;
  background: var(--amarelo); color: var(--verde-noite); font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 12px 30px rgba(2, 24, 12, .3); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(2, 24, 12, .36); }
.botao svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* entrada do conteúdo no fim do mergulho (classe ligada por scroll em js/pagina.js) */
html.com-movimento .abertura__chamada, html.com-movimento .plaquinha, html.com-movimento .botao {
  opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .9s var(--ease);
}
html.com-movimento .abertura h1 { opacity: 0; transition: opacity .2s linear; }
html.abertura-pronta .abertura h1 { opacity: 1; }
html.abertura-pronta .abertura__chamada, html.abertura-pronta .plaquinha, html.abertura-pronta .botao { opacity: 1; transform: none; }
html.abertura-pronta .abertura__chamada { transition-delay: .45s; }
html.abertura-pronta .plaquinha:nth-child(1) { transition-delay: .6s; }
html.abertura-pronta .plaquinha:nth-child(2) { transition-delay: .72s; }
html.abertura-pronta .plaquinha:nth-child(3) { transition-delay: .84s; }
html.abertura-pronta .botao { transition-delay: 1s; }
html.abertura-pronta .botao:hover { transition-delay: 0s; }

/* indicador de rolagem: selo de vidro com texto girando e a seta pulsando no miolo */
.rolar {
  position: absolute; left: 50%; translate: -50% 0; bottom: clamp(18px, 4.5vh, 44px); z-index: 2;
  width: 152px; height: 152px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--creme-claro); isolation: isolate;
  transition: opacity .5s var(--ease), scale .5s var(--ease);
}
.rolar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: rgba(4, 40, 20, .38); border: 1px solid rgba(251, 246, 233, .26);
  box-shadow: 0 18px 44px rgba(2, 20, 10, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
}
html.vidro-svg .rolar::before { backdrop-filter: var(--vidro-filtro) blur(2px) saturate(1.8) brightness(1.05); }
.rolar__anel { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: gira 22s linear infinite; }
.rolar__anel text { fill: var(--creme-claro); font: 700 9.8px var(--ff-texto); letter-spacing: .02em; }
.rolar__miolo {
  position: relative; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  background: var(--amarelo); color: var(--verde-noite); box-shadow: 0 8px 22px rgba(242, 201, 29, .35);
}
.rolar__miolo::after {   /* onda que se expande, chamando o olhar */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amarelo);
  animation: onda 2.4s var(--ease) infinite;
}
.rolar__miolo svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: desce 2.4s var(--ease) infinite; }
.rolar:hover { scale: 1.06; }
.rolar:hover .rolar__anel { animation-duration: 8s; }
@keyframes gira { to { rotate: 360deg; } }
@keyframes onda { 0% { opacity: .9; scale: 1; } 70%, 100% { opacity: 0; scale: 1.9; } }
@keyframes desce { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }
html.rolou .rolar { opacity: 0; scale: .8; pointer-events: none; }

/* entrada ao carregar: alface em foco e zoom, depois logo, depois o convite para rolar */
html.intro .alface__entrada { animation: alface-entra 1.8s var(--ease) both; }
html.intro .marca__entrada { display: block; animation: logo-entra 1.3s var(--ease) .45s both; }
html.intro .rolar { animation: rolar-entra 1.1s var(--ease) 1.25s both; }
@keyframes rolar-entra { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes alface-entra { from { opacity: 0; transform: scale(1.14); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logo-entra { from { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.marca__entrada { display: block; }

/* sem movimento: a abertura é uma tela só, já com a foto da festa */
html.sem-movimento .abertura { height: auto; }
html.sem-movimento .abertura__palco { position: relative; min-height: 100svh; }
html.sem-movimento .alface, html.sem-movimento .rolar { display: none; }
html.sem-movimento .janela { visibility: visible; -webkit-mask: none; mask: none; }

/* ---------- títulos que se materializam letra a letra (técnica do banner da Digital Pixel) ---------- */
.td-palavra { display: inline-block; white-space: nowrap; }
html.td-ativo .td .td-letra { display: inline-block; opacity: 0; filter: blur(12px); transition: opacity .9s ease, filter .9s ease; transition-delay: var(--d, 0ms); }
html.td-ativo .td.td-on .td-letra { opacity: 1; filter: blur(0); }
html.td-ativo .td:not(.td-on) .td-letra { transition-duration: .55s; transition-delay: calc(var(--d, 0ms) * .35); }

/* ---------- 02 · A edição 2026 ---------- */
.edicao { position: relative; z-index: 2; padding: calc(var(--secao) + 40px) 0 var(--secao); background: var(--creme); }
.fita {
  position: absolute; left: 0; top: -7vh; width: 100%; height: min(40vw, 540px); z-index: 3; overflow: visible; pointer-events: none;
}
.fita path { fill: none; stroke-width: 30; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.edicao__grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.edicao__texto { grid-column: 1 / span 5; display: grid; gap: 24px; }
.edicao h2, .ponte h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; color: var(--verde); }
.edicao__texto > p { max-width: 58ch; color: var(--tinta-suave); }
.ficha { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(6, 74, 32, .18); }
.ficha div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(6, 74, 32, .18); }
.ficha dt { font-size: .875rem; font-weight: 600; color: var(--vinho); padding-top: .15em; }
.ficha dd { margin: 0; font-family: var(--ff-titulo); font-size: 1.0625rem; color: var(--verde); }

.colagem { grid-column: 7 / span 6; position: relative; aspect-ratio: 1 / 1.02; }
.colagem__foto { position: absolute; margin: 0; overflow: hidden; background: var(--verde); box-shadow: 0 24px 50px rgba(6, 40, 20, .2); }
.colagem__foto img { width: 100%; height: 100%; object-fit: cover; }
.colagem__foto--folha {
  left: 0; top: 4%; width: 82%; aspect-ratio: 270 / 229; box-shadow: none; background: none;
  -webkit-mask: url(../img/folha-mascara.webp) center / contain no-repeat; mask: url(../img/folha-mascara.webp) center / contain no-repeat;
}
.colagem__foto--alta { right: 0; top: 30%; width: 34%; aspect-ratio: 2 / 3; border-radius: 120px 120px 16px 16px; border: 6px solid var(--creme); }
.colagem__foto--larga { left: 16%; bottom: 0; width: 50%; aspect-ratio: 3 / 2; border-radius: 16px 64px 16px 16px; border: 6px solid var(--creme); }
.colagem__cartao {
  position: absolute; left: -4%; bottom: 30%; display: flex; align-items: center; gap: 10px; max-width: 15rem; padding: 12px 16px 12px 12px;
  border-radius: 14px; background: var(--verde); color: var(--creme-claro); font-size: .9375rem; font-weight: 600; line-height: 1.3;
  box-shadow: 0 16px 36px rgba(6, 40, 20, .28);
}
.colagem__cartao svg { width: 34px; height: 34px; flex: none; padding: 6px; border-radius: 10px; background: var(--limao); fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 03 · Ramificações (alface 3D) ---------- */
.raizes {
  position: relative; z-index: 2; height: 300vh; color: var(--creme-claro);
  background: radial-gradient(ellipse 60% 50% at 50% 55%, #0A4A24 0%, var(--verde-noite) 70%);
}
.raizes .fita { top: -9vh; }
.raizes__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.raizes__tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.raizes__ligacoes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.raizes__ligacoes path { fill: none; stroke: var(--amarelo); stroke-width: 1.6; stroke-linecap: round; }
.raizes__ligacoes path.galho { stroke: var(--limao); stroke-width: 1.2; }
.raizes__ligacoes circle { fill: var(--amarelo); }
.raizes__cabeca {
  position: absolute; left: 50%; top: calc(clamp(108px, 11vw, 164px) / 1.326 + 34px); transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), 760px); text-align: center; display: grid; gap: 10px; z-index: 2;
}
.raizes h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; color: var(--creme-claro); }
.raizes__cabeca p { color: var(--creme); max-width: 46ch; margin-inline: auto; }

.ramos { list-style: none; margin: 0; padding: 0; }
.ramo {
  position: absolute; z-index: 2; width: min(300px, 24vw); padding: 18px 20px 20px; border-radius: 18px;
  background: rgba(251, 246, 233, .97); color: var(--tinta); box-shadow: 0 20px 50px rgba(1, 18, 9, .4);
  display: grid; gap: 6px; align-content: start;
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.ramo.is-visivel { opacity: 1; transform: none; }
.ramo h3 { font-size: 1.25rem; color: var(--verde); line-height: 1.2; }
.ramo p { font-size: .9375rem; line-height: 1.5; color: var(--tinta-suave); }
.ramo { grid-template-columns: 40px 1fr; column-gap: 12px; }
.ramo__icone { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--limao); grid-row: 1; align-self: center; }
.ramo h3 { grid-column: 2; align-self: center; }
.ramo p, .ramo__link { grid-column: 1 / -1; }
.ramo p { margin-top: 4px; }
.ramo__icone svg { width: 22px; height: 22px; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ramo__link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 -10px; font-size: .9375rem; font-weight: 700; color: var(--verde); text-decoration-color: var(--amarelo); text-decoration-thickness: 2px; }
.ramo__link:hover { color: var(--vinho); }
/* posições no desktop: dois à esquerda, três à direita, em volta do pé de alface */
.ramo--a { left: 5%; top: 30%; }
.ramo--d { left: 7%; top: 64%; }
.ramo--b { right: 5%; top: 24%; }
.ramo--c { right: 3%; top: 49%; }
.ramo--e { right: 6%; top: 73%; }
html.sem-movimento .ramo, html.sem-3d .ramo { opacity: 1; transform: none; }
html.sem-movimento .raizes { height: 100vh; height: 100svh; min-height: 680px; }

/* ---------- 04 · Galeria ---------- */
.galeria { position: relative; z-index: 2; padding: var(--secao) 0; background: var(--creme); }
.galeria__topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 36px; }
.galeria__intro { display: grid; gap: 12px; }
.galeria h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.015em; color: var(--verde); }
.galeria__intro p { max-width: 54ch; color: var(--tinta-suave); }
.filtros { list-style: none; margin: 0; padding: 4px; display: flex; flex-wrap: wrap; gap: 4px; border-radius: 999px; background: rgba(6, 74, 32, .08); }
.filtro {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--verde);
  font: 600 .9375rem/1 var(--ff-texto); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.filtro:hover { background: rgba(6, 74, 32, .1); }
.filtro[aria-pressed="true"] { background: var(--verde); color: var(--creme-claro); }
.filtro[aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--amarelo); vertical-align: middle; }

.galeria__grade { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.galeria__item { animation: aparece .6s var(--ease) both; }
.galeria__item[hidden] { display: none; }
.galeria__item:first-child { grid-column: span 2; grid-row: span 2; }
.galeria__abrir {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--raio); overflow: hidden;
  background: var(--verde); cursor: zoom-in;
}
.galeria__abrir img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.galeria__abrir::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--amarelo); transition: box-shadow .35s var(--ease);
}
.galeria__abrir:hover img { transform: scale(1.045); }
.galeria__abrir:hover::after, .galeria__abrir:focus-visible::after { box-shadow: inset 0 0 0 4px var(--amarelo); }
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.galeria__mais { display: flex; justify-content: center; margin-top: 36px; }
.galeria__mais[hidden] { display: none; }
.botao--verde { background: var(--verde); color: var(--creme-claro); box-shadow: 0 12px 28px rgba(6, 40, 20, .2); margin: 0; }

/* visor: foto ampliada sem corte */
.visor {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(2, 22, 11, .96); color: var(--creme-claro); overflow: hidden;
}
.visor::backdrop { background: rgba(2, 22, 11, .7); }
.visor[open] { display: grid; place-items: center; animation: visor-abre .45s var(--ease); }
@keyframes visor-abre { from { opacity: 0; } to { opacity: 1; } }
.visor__figura { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 72px clamp(16px, 7vw, 120px) 24px; max-width: 100%; }
.visor__img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .3s var(--ease); }
.visor__img.is-carregando { opacity: .35; }
.visor__rodape { display: grid; justify-items: center; gap: 4px; text-align: center; max-width: 70ch; }
.visor__legenda { font-size: 1rem; }
.visor__posicao { font-size: .875rem; color: var(--limao); font-weight: 600; font-variant-numeric: tabular-nums; }
.visor__btn, .visor__fechar {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(251, 246, 233, .22);
  background: rgba(251, 246, 233, .08); color: var(--creme-claro); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.visor__btn:hover, .visor__fechar:hover { background: var(--amarelo); color: var(--verde-noite); border-color: var(--amarelo); }
.visor__btn svg, .visor__fechar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visor__btn--anterior { left: clamp(10px, 2vw, 28px); top: 50%; translate: 0 -50%; }
.visor__btn--proxima { right: clamp(10px, 2vw, 28px); top: 50%; translate: 0 -50%; }
.visor__fechar { right: clamp(10px, 2vw, 28px); top: 14px; }
html.visor-aberto { overflow: hidden; }

/* ---------- 05 · Encerramento ---------- */
.encerramento { position: relative; z-index: 2; min-height: 88vh; display: grid; align-items: end; overflow: hidden; color: var(--creme-claro); background: var(--verde-noite); }
.encerramento__foto { position: absolute; inset: -12% 0; }
.encerramento__foto img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.encerramento__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--verde-noite) 8%, rgba(4, 48, 26, .55) 55%, rgba(4, 48, 26, .2)); }
.encerramento__conteudo { position: relative; padding: var(--secao) 0; display: grid; gap: 18px; justify-items: start; }
.encerramento h2 { font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.08; letter-spacing: -.02em; max-width: 16ch; }
.encerramento p { max-width: 52ch; color: var(--creme); }
.creditos { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.creditos div { padding: 12px 18px; border-radius: 14px; background: rgba(251, 246, 233, .1); border: 1px solid rgba(251, 246, 233, .18); }
.creditos dt { font-size: .8125rem; font-weight: 600; color: var(--limao); }
.creditos dd { margin: 2px 0 0; font-family: var(--ff-titulo); font-size: 1.0625rem; }

/* ---------- 05 · Vídeos (só aparece quando conteudo/videos.json tem vídeo) ---------- */
.videos { position: relative; z-index: 2; padding: var(--secao) 0; background: var(--verde-noite); color: var(--creme-claro); }
.videos h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.12; color: var(--creme-claro); }
.videos__intro { margin: 12px 0 36px; color: var(--creme); }
.videos__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.video { display: grid; gap: 8px; align-content: start; }
.video--principal { grid-column: 1 / -1; }
.video h3 { font-size: 1.25rem; color: var(--creme-claro); }
.video__meta { font-size: .875rem; color: var(--limao); font-weight: 600; font-variant-numeric: tabular-nums; }
.video p { color: var(--creme); }
.video__tela { position: relative; aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; background: #021a0d; }
.video__tela iframe, .video__tela video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.video__play:hover img { transform: scale(1.04); }
.video__icone { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--amarelo); color: var(--verde-noite); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.video__icone svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video__transcricao summary { cursor: pointer; font-weight: 600; color: var(--limao); min-height: 44px; display: flex; align-items: center; }

/* ---------- Rodapé ---------- */
.rodape { position: relative; overflow: hidden; background: var(--verde); color: var(--creme); padding-top: clamp(56px, 8vw, 96px); font-size: .9375rem; }
.rodape a { color: var(--creme-claro); text-decoration: none; transition: color .25s var(--ease); }
.rodape a:hover { color: var(--amarelo); }
.rodape__topo { display: grid; justify-items: center; gap: 14px; text-align: center; padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid rgba(251, 246, 233, .14); }
.rodape__marca { display: block; border-radius: 12px; }
.rodape__marca img { width: clamp(220px, 24vw, 330px); }
.rodape__frase { font-family: var(--ff-titulo); font-style: italic; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--creme); }
.rodape__meio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 56px; padding: clamp(36px, 5vw, 56px) 0; align-items: stretch; }
.rodape__colunas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-content: start; }
.rodape__bloco h2 { margin-bottom: 12px; font: 700 .8125rem/1.2 var(--ff-texto); letter-spacing: .08em; text-transform: uppercase; color: var(--limao); }
.rodape__bloco ul { list-style: none; margin: 0; padding: 0; display: grid; }
.rodape__bloco li a { display: inline-flex; align-items: center; min-height: 36px; }
.rodape__bloco p + p { margin-top: 8px; }
.rodape__bloco dl { margin: 0; }
.rodape__bloco dt { font-size: .8125rem; color: var(--creme); opacity: .8; }
.rodape__bloco dd { margin: 2px 0 0; font-family: var(--ff-titulo); color: var(--creme-claro); }
.rodape__social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.rodape__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rodape__social svg .ponto { fill: currentColor; stroke: none; }
.rodape__mapa { position: relative; margin: 0; min-height: 320px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(251, 246, 233, .18); background: var(--verde-noite); box-shadow: 0 24px 50px rgba(1, 18, 9, .3); }
.rodape__mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.03); }
.rodape__mapa figcaption { position: absolute; left: 14px; bottom: 14px; }
.rodape__mapa figcaption a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--verde); color: var(--creme-claro); font-weight: 600; text-decoration: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.rodape__mapa figcaption a:hover { background: var(--amarelo); color: var(--verde-noite); }

/* letreiro final: as letras sobem uma a uma quando o rodapé entra (js/pagina.js ajusta o tamanho à largura) */
.rodape__letreiro {
  margin: 0; padding: 0 var(--gutter); text-align: center; white-space: nowrap;
  font-family: var(--ff-titulo); font-weight: 700; font-size: 11vw; line-height: 1.02; letter-spacing: -.035em; color: var(--creme-claro);
}
.rodape__letreiro .letreiro-miolo { display: inline-block; }
.rodape__letreiro .letreiro-palavra { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .06em; }
.rodape__letreiro .letreiro-palavra--destaque { color: var(--limao); }
.rodape__letreiro .letra { display: inline-block; transition: transform 1.1s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--i) * 55ms); }
html.com-movimento .rodape__letreiro:not(.is-visivel) .letra { transform: translateY(105%) rotate(6deg); opacity: 0; }
.rodape__letreiro .letreiro-ponto { display: inline-block; width: .16em; height: .16em; margin: 0 .04em; border-radius: 50%; background: var(--amarelo); vertical-align: .12em; }

.rodape__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0 26px; border-top: 1px solid rgba(251, 246, 233, .14); font-size: .875rem; color: var(--creme); }
.rodape__fac { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--creme-claro); }
.rodape__fac span:first-child { font-size: .8125rem; opacity: .85; }
.rodape__fac-logo { width: 86px; height: auto; transition: color .3s var(--ease); }
.rodape__fac:hover { color: var(--amarelo); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .ramo { width: min(260px, 26vw); padding: 14px 16px 16px; }
  .ramo p { font-size: .875rem; }
}
/* tablet e celular: o alface ocupa o topo e as ramificações viram lista, sem trava de rolagem */
@media (max-width: 900px) {
  .raizes { height: auto; padding-bottom: var(--secao); }
  .raizes__palco { position: relative; height: auto; overflow: visible; display: grid; }
  .raizes__tela { position: relative; inset: auto; height: 62vh; height: 62svh; order: 1; }
  .raizes__ligacoes { display: none; }
  .raizes__cabeca { position: relative; left: auto; top: auto; transform: none; margin: calc(var(--secao) + 20px) auto 0; order: 0; }
  .ramos { order: 2; width: min(100% - 2 * var(--gutter), 640px); margin: 0 auto; display: grid; gap: 12px; }
  .ramo { position: relative; inset: auto; width: auto; }
  .galeria__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edicao__texto, .colagem { grid-column: 1 / -1; }
  .colagem { margin-top: 48px; aspect-ratio: 1 / 1.05; }
  .colagem__cartao { left: auto; right: 0; bottom: -6%; max-width: 13rem; }
}
@media (max-width: 700px) {
  :root { --topo-h: 84px; }
  body { font-size: 1rem; line-height: 1.62; }
  .abertura { height: 280vh; }
  /* header do celular: botões redondos simétricos e, fora da abertura, uma faixa sólida atrás (o conteúdo não passa por baixo do logo) */
  .topo { padding-top: 0; }
  .topo::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--verde-noite); box-shadow: 0 10px 28px rgba(2, 24, 12, .22);
    opacity: 0; transition: opacity .4s var(--ease);
  }
  html.sobre-claro .topo::before, html.menu-aberto .topo::before { opacity: 1; }
  .marca { --marca-w: 92px; }
  html.sobre-claro .marca__placa, html.menu-aberto .marca__placa { opacity: 0; }
  html.menu-aberto .marca { opacity: 1; pointer-events: auto; }
  .capsula { padding: 0; border-radius: 50%; }
  .capsula__menu, .capsula__social { display: inline-flex; width: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .capsula__menu > span, .capsula__social > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .capsula__menu svg path { transform-box: view-box; transform-origin: 12px 12px; transition: transform .35s var(--ease); }
  .capsula.is-aberta .capsula__menu .l1 { transform: rotate(45deg) translateY(4px); }
  .capsula.is-aberta .capsula__menu .l2 { transform: rotate(-45deg) translateY(-4px); }

  /* menu aberto: painel de tela cheia sob o header, links grandes numerados */
  .capsula__menu { position: relative; z-index: 1; }
  .capsula__links {
    position: fixed; inset: 0; z-index: -2; flex-direction: column; justify-content: center; gap: 0;
    padding: calc(var(--topo-h) + 24px) var(--gutter) 40px; counter-reset: item;
    background: radial-gradient(120% 70% at 85% 100%, rgba(148, 190, 63, .16), transparent 60%), var(--verde-noite);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .capsula.is-aberta .capsula__links { opacity: 1; visibility: visible; transition-delay: 0s; }
  .capsula__links li { border-top: 1px solid rgba(251, 246, 233, .14); opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .capsula__links li:last-child { border-bottom: 1px solid rgba(251, 246, 233, .14); }
  .capsula.is-aberta .capsula__links li { opacity: 1; transform: none; }
  .capsula.is-aberta .capsula__links li:nth-child(1) { transition-delay: .08s; }
  .capsula.is-aberta .capsula__links li:nth-child(2) { transition-delay: .14s; }
  .capsula.is-aberta .capsula__links li:nth-child(3) { transition-delay: .2s; }
  .capsula__links a {
    display: flex; align-items: baseline; gap: 16px; width: 100%; min-height: 72px; padding: 0; border-radius: 0;
    font: 700 clamp(1.625rem, 8vw, 2.125rem)/1.15 var(--ff-titulo); letter-spacing: -.01em;
  }
  .capsula__links a::before {
    counter-increment: item; content: counter(item, decimal-leading-zero);
    flex: none; min-width: 1.75em; font: 600 .8125rem/1 var(--ff-texto); font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--amarelo); transform: translateY(-.35em);
  }
  .capsula__links a:hover, .capsula__links a[aria-current="true"] { background: transparent; color: var(--limao); }
  .capsula__links::after {
    content: "Retrospectiva da edição 2026 · Mário Campos/MG"; margin-top: 28px;
    font: 500 .875rem/1.4 var(--ff-texto); color: rgba(251, 246, 233, .62);
  }
  .plaquinha { font-size: .875rem; }
  .ficha div { grid-template-columns: 1fr; gap: 2px; }
  .fita { top: -12vh; height: 52vw; }
  .raizes .fita { top: -6vh; }
  .galeria__grade { grid-template-columns: 1fr; gap: 12px; }
  .galeria__item:first-child { grid-column: auto; grid-row: auto; }
  .filtros { border-radius: 22px; }
  .visor__figura { padding: 64px 12px 96px; }
  .visor__img { max-height: calc(100dvh - 220px); }
  .visor__btn { top: auto; bottom: 20px; translate: none; }
  .visor__btn--anterior { left: calc(50% - 64px); }
  .visor__btn--proxima { right: calc(50% - 64px); }
  .rodape__meio { grid-template-columns: 1fr; }
  .rodape__colunas { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .rodape__mapa { min-height: 280px; }
  .rodape__base { flex-direction: column-reverse; text-align: center; }
  .rolar { width: 128px; height: 128px; }
  .videos__lista { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* no rodapé, o logo grande assume: o do header sai de cena */
.marca { transition: opacity .45s var(--ease); }
html.no-rodape .marca { opacity: 0; pointer-events: none; }

/* ---------- 05 · Vídeo em destaque: a transição da Madre Paula com a folha do logo ----------
   A dobra trava; uma linha desce até a folha, a folha fica parada um instante e então cresce
   como janela, revelando o vídeo. Variáveis escritas por js/pagina.js: --a (linha), --gg (crescimento), --ms (tamanho). */
.destaque { position: relative; z-index: 2; height: 250vh; --a: 0; --gg: 0; --ms: 150px; }
.destaque__palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--creme); }
.destaque__linha {
  position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; height: calc(50% - var(--ms-ini, 150px) * .38);
  background: linear-gradient(var(--folha), var(--verde)); border-radius: 0 0 3px 3px;
  transform-origin: top; transform: scaleY(var(--a)); opacity: calc(1 - var(--gg) * 6);
}
.destaque__fundo { position: absolute; inset: 0; background: var(--verde-noite); opacity: calc((var(--gg) - .8) / .14); }
.destaque__janela, .destaque__folha {
  position: absolute; inset: 0;
  -webkit-mask: url(../img/folha-mascara.webp) 50% 50% / var(--ms) auto no-repeat;
          mask: url(../img/folha-mascara.webp) 50% 50% / var(--ms) auto no-repeat;
}
.destaque__janela { opacity: calc(var(--gg) * 14); pointer-events: none; color: var(--creme-claro);   /* só aparece quando a folha começa a crescer: sem borda atrás do símbolo */
  background: radial-gradient(ellipse 60% 55% at 70% 50%, #0B4C26, var(--verde-noite) 72%); }
.destaque__folha { -webkit-mask: none; mask: none; background: url(../img/folha-icone.webp) 50% 50% / var(--ms) auto no-repeat; opacity: calc(var(--a) - var(--gg) * 8); pointer-events: none; }
.destaque.is-aberta .destaque__janela { -webkit-mask: none; mask: none; pointer-events: auto; }
.destaque.is-aberta .destaque__folha, .destaque.is-aberta .destaque__linha { display: none; }

.destaque__conteudo {
  position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px 64px;
  padding: calc(var(--topo-h) + 24px) 0 32px;
}
.destaque__intro { display: grid; gap: 14px; align-content: center; }
.destaque h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.025em; color: var(--creme-claro); max-width: 10ch; }
.destaque__intro p { color: var(--creme); max-width: 34ch; font-size: 1.125rem; }
.video--principal { display: flex; align-items: flex-end; gap: 28px; }
.video--vertical .video__tela { aspect-ratio: 9 / 16; height: min(72svh, 740px); width: auto; flex: none; border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); outline: 1px solid rgba(251, 246, 233, .14); }
.video--vertical .video__tela iframe { background: #fff; }
.video__texto { display: grid; gap: 8px; max-width: 16rem; padding-bottom: 8px; }
.video__aviso { font-size: .8125rem; opacity: .75; }

.videos .videos__lista { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }

html.sem-movimento .destaque { height: auto; }
html.sem-movimento .destaque__palco { position: relative; height: auto; min-height: 100svh; }
html.sem-movimento .destaque__janela { position: relative; -webkit-mask: none; mask: none; opacity: 1; pointer-events: auto; min-height: 100svh; }
html.sem-movimento .destaque__linha, html.sem-movimento .destaque__folha, html.sem-movimento .destaque__fundo { display: none; }

@media (max-width: 900px) {
  .destaque { height: 220vh; }
  .destaque__conteudo { grid-template-columns: 1fr; align-content: center; justify-items: center; text-align: center; gap: 16px; padding-top: 108px; padding-bottom: 20px; }
  .destaque h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); max-width: none; }
  .destaque__intro p { font-size: 1rem; margin-inline: auto; }
  .video--principal { flex-direction: column; align-items: center; gap: 12px; }
  .video--vertical .video__tela { height: 52svh; }
  .video__texto { max-width: 22rem; justify-items: center; }
  .video__texto > p:not(.video__meta):not(.video__aviso) { display: none; }
  .videos .videos__lista { grid-template-columns: 1fr; }
}
.destaque .video--principal { grid-column: auto; }
