/* =========================================================
   MagiCelebrante v3 · linguagem inspirada na Apple
   Um container só (.wrap) alinha todas as seções.
   ========================================================= */
:root {
  --bg: #0d1428;          /* azul-noite profundo (fundo da página) */
  --bg-2: #141d36;        /* seção alternada */
  --card: #1b2645;        /* cartões */
  --card-2: #232f52;
  --ink: #f5f5f7;
  --muted: #a3abc0;
  --accent: #d9bc93;      /* bronze claro */
  --acao: #f5f6f8;        /* botão principal */

  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --w: 1200px;
  --g: clamp(20px, 4vw, 40px);
  --borda-lateral: max(var(--g), calc((100% - var(--w)) / 2));
  --raio: 28px;
  --raio-p: 18px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--w), 100% - 2 * var(--g)); margin-inline: auto; }
.estreito { max-width: 860px; }
.centro { text-align: center; }
.secao { padding-block: clamp(96px, 12vw, 160px); }

.pular {
  position: fixed; left: var(--g); top: 12px; z-index: 60;
  padding: 10px 16px; border-radius: 999px; background: var(--acao); color: var(--bg);
  transform: translateY(-200%);
}
.pular:focus { transform: none; }

/* ---------- Tipografia ---------- */
.titulo-xl { font-size: clamp(56px, 9vw, 120px); line-height: 1; letter-spacing: -.035em; }
.titulo-l { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -.03em; }
.titulo-m { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.texto-destaque {
  margin-top: 28px;
  font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; font-weight: 500;
  color: var(--muted);
}
.texto-destaque strong { color: var(--ink); font-weight: 600; }
.centro .texto-destaque { margin-inline: auto; max-width: 40ch; }

/* ---------- Botões e links ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--acao); color: var(--bg);
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform .3s var(--ease-out), background-color .2s;
}
.botao:hover { background: #fff; transform: scale(1.03); }
.botao:active { transform: scale(.97); }
.pilula {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--acao); color: var(--bg);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.pilula:hover { background: #fff; }
.pilula:active { transform: scale(.96); }
.link, .link-whats {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 500; color: var(--accent);
  text-decoration: none;
}
.link:hover, .link-whats:hover { text-decoration: underline; text-underline-offset: 4px; }
.link::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .2s; }
.link:hover::after { transform: translateX(3px); }
.link-whats::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.3a.5.5 0 0 0 0-.4l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .1-1.3c0-.1-.2-.2-.4-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8s-.4-.1-.6.1-.7.8-.8 1-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.3a.5.5 0 0 0 0-.4l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6a2.7 2.7 0 0 0 1.8-1.2 2.2 2.2 0 0 0 .1-1.3c0-.1-.2-.2-.4-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.botao-redondo {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--card-2); color: var(--ink);
  transition: background-color .2s, transform .2s, opacity .2s;
}
.botao-redondo:hover { background: #2d3a63; }
.botao-redondo:active { transform: scale(.94); }
.botao-redondo:disabled { opacity: .35; cursor: default; }
.botao-redondo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background-color .3s, transform .4s var(--ease-out);
}
.nav.solida { background: rgba(13, 20, 40, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav.escondida { transform: translateY(-100%); }
.nav-linha { display: flex; align-items: center; gap: 28px; height: 56px; }
.nav-marca { font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.nav-links { display: flex; gap: 26px; font-size: 13px; }
.nav-links a { text-decoration: none; color: rgba(245, 245, 247, .82); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- 1 · Abertura ---------- */
.abertura { position: relative; height: 520vh; }
.abertura-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.abertura-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.abertura-veu {
  position: absolute; inset: auto 0 0 0; height: 58%; pointer-events: none;
  background: linear-gradient(to top, rgba(13,20,40,.92) 10%, rgba(13,20,40,0));
}
.abertura-texto { position: absolute; inset: 0; width: min(var(--w), 100% - 2 * var(--g)); margin-inline: auto; pointer-events: none; }
.cena {
  position: absolute; left: 0; right: 0; bottom: 14svh;
  pointer-events: none; will-change: opacity, transform;
}
.cena.ativa { pointer-events: auto; }
.cena-nome { font-size: 17px; font-weight: 600; color: var(--accent); }
.cena-titulo { margin-top: 6px; font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -.04em; }
.cena-apoio { margin-top: 14px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; color: rgba(245,245,247,.86); }
.cena-frase { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; max-width: 17ch; }
.cena .botao { margin-top: 32px; }
.rolar {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink); text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .5s;
}
.rolar.visivel { opacity: 1; }
.rolar-texto {
  font-size: 13px; font-weight: 500; letter-spacing: .01em; color: rgba(245,245,247,.86);
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  transition: font-size .4s var(--ease-out), color .3s;
}
.rolar-seta { width: 12px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; animation: seta 2s var(--ease-out) infinite; transition: height .4s var(--ease-out); }
@keyframes seta { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(6px); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
/* a pessoa parou no meio do vídeo: o aviso cresce */
.rolar.destaque .rolar-texto { font-size: 19px; font-weight: 600; color: var(--ink); }
.rolar.destaque .rolar-seta { height: 64px; stroke-width: 1.5; }
.abertura-capa { position: absolute; inset: 0; z-index: 1; will-change: opacity; }
.abertura-capa img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(var(--capa-z, 1)); }
.abertura-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,20,40,.9) 0%, rgba(13,20,40,.25) 55%, rgba(13,20,40,.35) 100%); }
.abertura-texto { z-index: 2; }
.carregando { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s linear, opacity .5s .2s; }
.carregando.pronto { opacity: 0; }

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* vídeo à direita, sangrando até a borda da tela; texto alinhado ao container */
  .abertura-video { left: auto; width: 54%; }
  .abertura-veu { display: none; }
  .cena { top: 0; bottom: 0; right: auto; width: 40%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .rolar { left: var(--borda-lateral); transform: none; align-items: flex-start; text-align: left; bottom: 32px; }
  .abertura-capa::after { background: linear-gradient(to right, rgba(13,20,40,.88) 0%, rgba(13,20,40,.35) 50%, rgba(13,20,40,.1) 100%); }
}

/* ---------- Cabeçalho de seção com ação à direita ---------- */
.cabeca-linha { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- Galerias horizontais ---------- */
.galeria {
  display: flex; gap: 20px;
  /* só rola para os lados: a rolagem para baixo passa direto para a página */
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding-block: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--borda-lateral); scroll-padding-inline: var(--borda-lateral);
}
.galeria::-webkit-scrollbar { display: none; }

/* ---------- 2 · Vídeo de 1 minuto ---------- */
.minuto { background: var(--bg-2); }
.minuto-grade { display: grid; grid-template-columns: 1fr minmax(300px, 480px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.minuto-texto .texto-destaque { color: var(--ink); max-width: 22ch; }
.botao-play-texto { margin-top: 32px; gap: 10px; border: 0; cursor: pointer; }
.botao-play-texto svg { width: 20px; height: 20px; fill: currentColor; }
.video-quadro { position: relative; border-radius: var(--raio); overflow: hidden; background: #000; }
.video-quadro video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.video-quadro::after { content: ""; position: absolute; inset: 0; background: rgba(13,20,40,.22); pointer-events: none; transition: opacity .4s; }
.video-play {
  position: absolute; inset: 0; z-index: 1; border: 0; background: none; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity .3s;
}
.video-play-circulo {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245,245,247,.94); color: var(--bg);
  box-shadow: 0 0 0 0 rgba(245,245,247,.5); animation: pulso 2.4s var(--ease-out) infinite;
  transition: transform .3s var(--ease-out);
}
.video-play-circulo svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(245,245,247,.45); } 100% { box-shadow: 0 0 0 26px rgba(245,245,247,0); } }
.video-play:hover .video-play-circulo { transform: scale(1.08); }
.video-play-texto { font-size: 17px; font-weight: 600; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.video-selo { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(13,20,40,.6); font-size: 12px; font-weight: 600; color: rgba(245,245,247,.9); }
.video-quadro.tocando::after, .video-quadro.tocando .video-play, .video-quadro.tocando .video-selo { opacity: 0; pointer-events: none; }

/* ---------- 3 · Manifesto ---------- */
.manifesto { background: var(--bg-2); }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; margin-bottom: 72px; text-align: center; }
.numero { font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.numeros p:not(.numero) { margin-top: 10px; color: var(--muted); font-size: 17px; }
.foto-grande { border-radius: var(--raio); overflow: hidden; }
.foto-grande img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.zoom img { transform: scale(var(--z, 1.12)); will-change: transform; }

/* ---------- 3 · Feita sob medida (página presa; foto e texto se movem com a rolagem) ---------- */
.momentos { position: relative; height: 640vh; }
.momentos-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: 40px; }
.momentos-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.momentos-passos { list-style: none; padding: 0; display: flex; gap: 6px; }
.momentos-passos li { width: 28px; height: 4px; border-radius: 4px; background: rgba(245,245,247,.2); position: relative; overflow: hidden; transition: width .4s var(--ease-out); }
.momentos-passos li::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--enche, 0)); transform-origin: left; }
.momentos-passos li.agora { width: 56px; }
.momentos-cartao { position: relative; height: min(68svh, 60vw); border-radius: var(--raio); overflow: hidden; background: var(--card); }
.momento { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); --t: 0; }
.momento.ativo { opacity: 1; }
/* a foto aproxima e desliza de leve enquanto a pessoa rola: a página nunca parece travada */
.momento img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(.86);
  /* o corte e o zoom partem do rosto do casal (--foco em cada foto) */
  object-position: var(--foco, 50% 30%); transform-origin: var(--foco, 50% 30%);
  transform: scale(calc(1.1 - .1 * var(--t))) translateX(calc((var(--t) - .5) * -1.2%));
  will-change: transform;
}
.momento::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, rgba(13,20,40,.85), rgba(13,20,40,0)); pointer-events: none; }
.momento figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3.6vw, 48px);
  transform: translateY(calc((1 - var(--t)) * 46px - 10px));
  opacity: calc(min(1, var(--t) * 6) * min(1, (1 - var(--t)) * 7));
}
.momento h3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.momento p { margin-top: 10px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; font-weight: 500; color: rgba(245,245,247,.86); max-width: 40ch; }
.momentos-rodape { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.momentos-dica { font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.momentos-dica::after { content: ""; width: 1.2px; height: 18px; background: currentColor; animation: dica 1.8s var(--ease-out) infinite; }
@keyframes dica { 0% { transform: translateY(-4px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }

/* ---------- 5 · Efeitos ---------- */
.efeitos { background: var(--bg-2); }
.efeito-quadro { margin-top: 24px; border-radius: var(--raio); overflow: hidden; background: var(--card); aspect-ratio: 16 / 9; }
.efeito-quadro img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: opacity .35s, transform 1.4s var(--ease-out); }
.efeito-quadro img.trocando { opacity: 0; transform: scale(1.03); }
.segmentos {
  position: relative; display: flex; width: fit-content; max-width: 100%; margin: 48px auto 0; padding: 4px; gap: 2px;
  border-radius: 999px; background: var(--card); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.segmentos-gota {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: var(--w, 120px);
  border-radius: 999px; background: var(--acao);
  transform: translateX(var(--x, 4px));
  transition: transform .65s cubic-bezier(.34, 1.56, .64, 1), width .65s cubic-bezier(.34, 1.56, .64, 1), scale .3s var(--ease-out);
  cursor: grab;
}
.segmentos.movendo .segmentos-gota { scale: 1.1 .82; }
.segmentos.arrastando .segmentos-gota { transition: width .3s var(--ease-out), scale .2s; scale: 1.06 .9; cursor: grabbing; }
/* convite: a gota balança de leve, como se pudesse ser arrastada */
.segmentos.convite .segmentos-gota { animation: cutucar 3.6s var(--ease-out) 1.2s infinite; }
@keyframes cutucar {
  0%, 62%, 100% { translate: 0; scale: 1; }
  70% { translate: 10px; scale: 1.08 .9; }
  78% { translate: -5px; scale: .97 1.03; }
  86% { translate: 3px; scale: 1.02 .98; }
  93% { translate: 0; scale: 1; }
}
.segmentos button {
  position: relative; z-index: 1; flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color .3s;
}
.segmentos button:hover { color: var(--ink); }
.segmentos button[aria-selected="true"] { color: var(--bg); }
.efeito-painel { max-width: 680px; margin: 28px auto 0; }
.efeito-texto { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; min-height: 4.4em; }
.efeito-acoes { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }

.efeito-quadro { position: relative; }
.efeito-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 0; background: none; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 500;
  text-shadow: 0 1px 16px rgba(0,0,0,.6);
}
.efeito-play strong { font-weight: 700; }
.efeito-play:hover .video-play-circulo { transform: scale(1.08); }
.efeito-quadro::after { content: ""; position: absolute; inset: 0; background: rgba(13,20,40,.25); pointer-events: none; }
.modal-video { width: min(960px, 100vw - 32px); padding: 0; border: 0; border-radius: var(--raio); background: #000; color: var(--ink); overflow: visible; }
.modal-video::backdrop { background: rgba(5,8,18,.86); }
.modal-quadro { aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; }
.modal-quadro iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-fechar { position: absolute; right: 0; top: -56px; }
.setas.sem-rolagem { display: none; }
.modal-video.vertical { width: min(420px, calc(82svh * 9 / 16), 100vw - 32px); }
.modal-video.vertical .modal-quadro { aspect-ratio: 9 / 16; }

/* cartão de presente com vídeo */
.presente-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--raio); overflow: hidden; }
.presente-play img { transition: transform .6s var(--ease-out), filter .4s; filter: brightness(.82); }
.presente-play:hover img { transform: scale(1.03); filter: brightness(.7); }
.presente-play .video-play-circulo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.presente-play:hover .video-play-circulo { transform: scale(1.08); }
.presente-selo { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(13,20,40,.65); font-size: 12px; font-weight: 600; color: var(--ink); }

/* texto do efeito sobre a própria foto */
.efeito-play { top: 33%; }
.efeito-legenda {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 110px clamp(20px, 5vw, 72px) clamp(56px, 8vw, 110px);
  background: linear-gradient(to top, rgba(13,20,40,.9) 20%, rgba(13,20,40,0));
  text-align: center; pointer-events: none;
}
.efeito-legenda .efeito-texto { min-height: 0; max-width: 46ch; margin-inline: auto; color: var(--ink); text-shadow: 0 1px 12px rgba(0,0,0,.4); transition: opacity .3s; }
.efeito-painel { margin-top: 20px; }

/* "Inesquecível." sobre a foto, aproximada do casal */
.inesquecivel { position: relative; }
.inesquecivel img {
  aspect-ratio: 21 / 9; object-position: 44% 26%; filter: brightness(.84);
  transform-origin: 44% 22%; transform: scale(calc(var(--z, 1.12) * 1.18));
}
.inesquecivel::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(to top, rgba(13,20,40,.78), rgba(13,20,40,0)); pointer-events: none; }
.inesquecivel h2 {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 64px); z-index: 1;
  text-align: center; text-shadow: 0 2px 30px rgba(0,0,0,.35);
}

/* ícones dos cartões do Sobre */
.icone { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.bloco-claro .icone { stroke: var(--bg); }
.bloco-numero, .bloco-imprensa { justify-content: space-between; gap: 18px; }
.bloco-numero .icone + .numero { margin-top: 28px; }
.bloco-numero p strong { color: var(--ink); font-weight: 600; }
.nota-avaliacao strong { color: var(--ink); font-weight: 600; }

/* ---------- 6 · Depoimentos ---------- */
.nota-avaliacao { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nota-avaliacao:hover { color: var(--ink); }
.estrelas { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
.cartao-depo {
  flex: none; width: clamp(280px, 30vw, 380px); min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 32px; border-radius: var(--raio); background: var(--card);
  scroll-snap-align: start;
  transition: transform .4s var(--ease-out), background-color .3s;
}
.cartao-depo:hover { transform: translateY(-4px); background: var(--card-2); }
.cartao-depo p { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.32; font-weight: 600; letter-spacing: -.015em; }
.cartao-depo footer { font-size: 15px; color: var(--muted); }
.galeria-caixa { position: relative; }
/* setas grandes sobre as laterais da galeria */
.setas {
  position: absolute; left: 0; right: 0; top: var(--setas-topo, 50%); z-index: 2;
  display: flex; justify-content: space-between; pointer-events: none;
  padding-inline: max(8px, calc(var(--borda-lateral) - 26px));
  transform: translateY(-50%);
}
.setas .botao-redondo {
  pointer-events: auto; width: 56px; height: 56px;
  background: var(--acao); color: var(--bg);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transition: opacity .3s, transform .25s var(--ease-out), background-color .2s;
}
.setas .botao-redondo:hover { background: #fff; transform: scale(1.08); }
.setas .botao-redondo:active { transform: scale(.94); }
.setas .botao-redondo:disabled { opacity: 0; pointer-events: none; }
.setas .botao-redondo svg { width: 24px; height: 24px; stroke-width: 2.6; }
#galeria-presentes + .setas { --setas-topo: 38%; }

/* ---------- 7 · Presentes ---------- */
.cartao-presente { flex: none; width: clamp(300px, 40vw, 520px); scroll-snap-align: start; }
.cartao-presente img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); background: var(--card); transition: transform .6s var(--ease-out); }
.cartao-presente:hover img { transform: scale(1.015); }
.cartao-presente figcaption { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 34ch; }
.cartao-presente figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- 9 · Sobre (grade) ---------- */
.grade {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto);
  gap: 20px; margin-top: 64px;
}
.bloco-g { border-radius: var(--raio); background: var(--card); overflow: hidden; padding: 32px; }
.bloco-foto { grid-column: span 2; grid-row: span 2; position: relative; padding: 0; min-height: 520px; }
.bloco-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bloco-foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em;
  background: linear-gradient(to top, rgba(13,20,40,.85), rgba(13,20,40,0));
}
.bloco-numero { display: flex; flex-direction: column; justify-content: flex-end; }
.bloco-numero p:not(.numero) { margin-top: 10px; color: var(--muted); }
.bloco-claro { background: var(--accent); color: var(--bg); }
.bloco-claro p:not(.numero) { color: rgba(13,20,40,.78); }
.bloco-imprensa { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.bloco-rotulo { color: var(--muted); }
.imprensa { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.bloco-retrato { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
.bloco-retrato img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; }
.bloco-titulo { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.bloco-retrato p:not(.bloco-titulo) { margin: 6px 0 14px; color: var(--muted); }
.bloco-mapa { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; background: var(--card-2); }
.bloco-mapa p:not(.bloco-titulo) { margin-top: 10px; color: var(--muted); max-width: 46ch; }

/* ---------- 10 · Como funciona ---------- */
.como h2 { margin-bottom: 40px; }
.passos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.passo { background: var(--card); border-radius: var(--raio); overflow: hidden; padding-bottom: 28px; }
.passo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.passo h3 { margin: 24px 24px 8px; font-size: 24px; letter-spacing: -.02em; }
.passo p { margin: 0 24px; color: var(--muted); }

/* ---------- 11 · Dúvidas ---------- */
.duvidas { background: var(--bg-2); }
.acordeao { margin: 48px 0 36px; display: flex; flex-direction: column; gap: 10px; }
.acordeao details { background: var(--card); border-radius: var(--raio-p); transition: background-color .3s; }
.acordeao details[open] { background: var(--card-2); }
.acordeao summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 64px; padding: 14px 24px; font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.acordeao details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acordeao details p, .acordeao details ul { padding: 0 24px 22px; color: var(--muted); max-width: 62ch; }
.acordeao details ul { padding-left: 44px; }

/* ---------- 12 · Fecho ---------- */
.fecho { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-items: center; padding-block: 120px; }
.fecho-foto { position: absolute; inset: 0; }
.fecho-foto img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.fecho-texto { position: relative; }
.fecho-texto .texto-destaque { color: rgba(245,245,247,.78); }
.fecho-texto .botao { margin-top: 36px; }

/* ---------- Rodapé ---------- */
.rodape { padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.rodape-linha { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-bottom: 20px; margin-bottom: 20px; box-shadow: 0 1px 0 rgba(245,245,247,.12); }
.rodape-marca { font-size: 17px; font-weight: 600; color: var(--ink); }
.rodape-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rodape-links a { text-decoration: none; }
.rodape-links a:hover { color: var(--ink); text-decoration: underline; }

.barra-movel { display: none; }

/* ---------- Entradas (só para quem aceita movimento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .cena { opacity: 0; }
  .entra { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--atraso, 0ms); }
  .entra.visivel { opacity: 1; transform: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1068px) {
  .nav-links { display: none; }
  .grade { grid-template-columns: repeat(2, 1fr); }
  .bloco-foto { min-height: 460px; }
  .passos { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Celular
   ========================================================= */
@media (max-width: 734px) {
  body { font-size: 17px; }
  .secao { padding-block: 88px; }
  .cena { bottom: 12svh; }
  .cena-frase { max-width: none; font-size: 34px; }
  .titulo-l { font-size: 38px; }


  .numeros { grid-template-columns: 1fr; gap: 36px; margin: 56px 0; }
  .foto-grande img { aspect-ratio: 4 / 3; }
  .inesquecivel h2 { font-size: 46px; }
  .efeito-play { top: 32%; font-size: 16px; }
  .efeito-play .video-play-circulo { width: 68px; height: 68px; }
  .efeito-legenda { padding: 64px 20px 48px; }
  .setas .botao-redondo { width: 48px; height: 48px; }
  .efeito-legenda .efeito-texto { font-size: 16px; line-height: 1.4; }
  .inesquecivel img { aspect-ratio: 3 / 2; transform: scale(calc(var(--z, 1.12) * 1.15)); }

  .minuto-grade { grid-template-columns: 1fr; }
  .minuto-texto { text-align: center; }
  .minuto-texto .texto-destaque { margin-inline: auto; }
  .botao-play-texto { display: none; }
  .momentos { height: 600vh; }
  .momentos-palco { justify-content: flex-start; padding-top: 76px; gap: 16px; }
  .momentos-topo .titulo-m { font-size: 28px; }
  .momentos-cartao { height: min(66svh, 128vw); }
  .momento img { transform: scale(calc(1.04 - .04 * var(--t))); }
  .momento h3 { font-size: 28px; }
  .momento p { font-size: 17px; }
  .momentos-rodape { margin-top: 14px; }
  .momentos-dica { display: none; }
  .cena { bottom: 20svh; }
  .cena-titulo { font-size: clamp(34px, 10.4vw, 46px); }

  .efeito-quadro { aspect-ratio: 4 / 5; }
  .segmentos { width: 100%; margin-top: 36px; }
  .segmentos button { flex: 1 1 auto; padding: 0 8px; font-size: 13.5px; }

  .cartao-depo { width: 84vw; min-height: 260px; padding: 28px; }
  .cartao-presente { width: 84vw; }
  .cabeca-linha { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }

  .grade { grid-template-columns: 1fr; gap: 14px; margin-top: 48px; }
  .bloco-foto, .bloco-retrato, .bloco-mapa { grid-column: auto; grid-row: auto; }
  .bloco-foto { min-height: 0; aspect-ratio: 4 / 5; }
  .bloco-numero { min-height: 180px; }
  .bloco-retrato { flex-direction: column; align-items: flex-start; }
  .bloco-retrato img { width: 96px; height: 96px; }

  .passos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: 100%; padding-inline: var(--g); scroll-padding-inline: var(--g); gap: 14px; }
  .passos::-webkit-scrollbar { display: none; }
  .passo { flex: none; width: 78vw; scroll-snap-align: start; }

  .acordeao summary { font-size: 17px; padding: 14px 20px; }
  .acordeao details p, .acordeao details ul { padding: 0 20px 20px; }
  .acordeao details ul { padding-left: 38px; }

  .rodape { padding-bottom: 110px; }
  .barra-movel {
    display: flex; position: fixed; z-index: 45; left: 16px; right: 16px; bottom: 16px;
    transform: translateY(160%); transition: transform .45s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .barra-movel.visivel { transform: none; }
}

/* =========================================================
   Menos movimento: tudo visível, nada viaja
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .abertura { height: 100vh; height: 100svh; }
  .rolar { display: none; }
  .abertura-capa img { transform: none; }
  .cena:not(:first-child) { display: none; }
  .momentos { height: auto; padding-block: 96px; }
  .momentos-palco { position: static; height: auto; overflow: visible; }
  .momentos-cartao { height: auto; display: grid; gap: 16px; background: none; border-radius: 0; }
  .momento { position: relative; opacity: 1; border-radius: var(--raio); overflow: hidden; aspect-ratio: 16 / 9; --t: .5; }
  .momento img { transform: none; }
  .momento figcaption { transform: none; opacity: 1; }
  .momentos-passos, .momentos-dica { display: none; }
  .video-play-circulo { animation: none; }
  .segmentos.convite .segmentos-gota { animation: none; }
  .zoom img { transform: none; }
}

/* ---------- Fonte manuscrita (assinatura e nomes) · Qwitcher Grypen, licença OFL (uso comercial livre) ---------- */
@font-face {
  font-family: "Qwitcher Grypen";
  src: url("assets/fontes/qwitcher-grypen-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
.manuscrita { font-family: "Qwitcher Grypen", "Segoe Script", cursive; font-weight: 700; letter-spacing: 0; line-height: .9; }
.cena-nome.manuscrita { font-size: clamp(48px, 4.6vw, 70px); color: var(--accent); margin-bottom: -2px; }
.cartao-depo footer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.depo-nome { font-size: 54px; color: var(--accent); }
.depo-data { font-size: 13px; color: var(--muted); }
.assinatura { font-size: clamp(66px, 6vw, 90px); color: var(--accent); margin: 4px 0 8px; transform: rotate(-4deg); transform-origin: left center; }
.fecho-texto .assinatura { margin: 12px auto 0; transform-origin: center; }
.bloco-retrato > div { flex: 1; }
.bloco-retrato p.assinatura { margin: -2px 0 10px; color: var(--accent); text-align: right; transform-origin: right center; }

/* ---------- Foto de quem escreveu o depoimento ---------- */
.cartao-depo footer { justify-content: flex-start; align-items: center; flex-wrap: nowrap; gap: 14px; }
.depo-foto { width: 60px; height: 60px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
.depo-quem { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.depo-quem .depo-nome { line-height: .8; }

/* =========================================================
   Páginas internas · Toda forma de amor (homoafetivo)
   ========================================================= */
.topo-pagina { padding: clamp(104px, 14vw, 150px) 0 clamp(72px, 9vw, 120px); }
.sobretitulo { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 14px; }
.topo-pagina .texto-destaque { color: rgba(245,245,247,.86); }
.topo-acoes { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.botao-claro { background: var(--card-2); color: var(--ink); gap: 10px; border: 0; cursor: pointer; }
.botao-claro:hover { background: #2d3a63; }
.botao-claro svg { width: 18px; height: 18px; fill: currentColor; }

/* vídeo do topo: prévia muda do YouTube cobrindo o quadro, foto por baixo até carregar */
.previa { position: relative; margin-top: clamp(40px, 6vw, 64px); border-radius: var(--raio); overflow: hidden; background: #000; aspect-ratio: 16 / 9; container-type: size; }
.previa > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.previa iframe {
  position: absolute; left: 50%; top: 50%; border: 0; pointer-events: none;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%) scale(1.18);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.previa.rodando iframe { opacity: 1; }
.previa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,20,40,.55), rgba(13,20,40,.05) 45%); pointer-events: none; }
.previa .video-play { z-index: 2; }
.previa .video-selo { z-index: 2; }
.previa-legenda { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 24px; font-size: 15px; font-weight: 500; color: rgba(245,245,247,.9); text-align: left; pointer-events: none; }
.previa-legenda strong { color: var(--ink); }

/* fotos verticais nas galerias */
.cartao-retrato { width: clamp(260px, 26vw, 360px); }
.cartao-retrato img { aspect-ratio: 4 / 5; }

/* cartões "Do jeito de vocês" com link para a home */
.passo a.link { margin: 14px 24px 0; font-size: 15px; }
.passo img { object-position: var(--foco, 50% 35%); }

/* depoimento sem foto: a inicial no lugar */
.depo-inicial { display: grid; place-items: center; background: var(--card-2); color: var(--accent); font-size: 24px; font-weight: 600; }

@media (max-width: 734px) {
  .previa { aspect-ratio: 4 / 5; }
  .previa-legenda { padding: 16px 18px; font-size: 14px; }
  .cartao-retrato { width: 78vw; }
  .topo-acoes { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .previa iframe { display: none; }
}

/* link dentro de um momento (ex.: "Toda forma de amor" leva à página homoafetivo) */
.momento-link { margin-top: 14px; font-size: 16px; pointer-events: none; }
.momento.ativo .momento-link { pointer-events: auto; }
