/* =====================================================================
   CASAMENTO SOFIA & LUCAS · 05.06.2027
   style.css — layout mobile-first, fiel ao layout enviado

   COMO AS MEDIDAS FUNCIONAM
   -------------------------
   O layout foi desenhado numa prancha de 1080 px de largura (--regua).
   Todo font-size pedido na lista de correções está escrito aqui com o
   mesmo número, na unidade --u:

       font-size: calc(40 * var(--u));

   --u é "1 px do layout" convertido para a tela real. Num celular de
   414 px de largura, 40 px do layout viram 15,3 px reais — exatamente a
   proporção do desenho. Trocando --regua, toda a tipografia reescala.

   As posições verticais continuam em % da altura da página, como no layout.
   ===================================================================== */

/* ------------------------- 1. FONTES ------------------------- */
/* Arquivos entregues em /fontes. Atenção: os nomes dos arquivos não batem
   com o conteúdo — o que está registrado dentro de cada um é:
     XLSerif-OT-.otf ........... MrsEavesXLSerifOT-RegItalic      (itálico 400)
     XLSerif-Nar-OT-.otf ....... MrsEavesXLSerifNarOT-BoldItalic  (itálico 700)
     XLSerif-Nar-OT-Heavy.otf .. MrsEavesXLSerifNarOT-HeavyItalic (itálico 800)
     Small-Caps-OT-.otf ........ Mrs Eaves Small Caps OT          (romano)
     Petite-Caps-OT-.otf ....... Mrs Eaves Petite Caps OT         (romano)
   Ou seja: o romano da família XL Serif não veio na pasta. Os textos em
   caixa alta do layout usam o Small Caps, que é o romano disponível. */
@font-face {
  font-family: 'Mrs Eaves';
  src: url('fontes/MrsEavesXLSerifOT-Italic.woff2') format('woff2'),
       url('fontes/fonnts.com-Mrs-Eaves-XLSerif-OT-.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Mrs Eaves';
  src: url('fontes/MrsEavesXLSerifNarOT-BoldItalic.woff2') format('woff2'),
       url('fontes/fonnts.com-Mrs-Eaves-XLSerif-Nar-OT-.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Mrs Eaves';
  src: url('fontes/MrsEavesSmallCapsOT.woff2') format('woff2'),
       url('fontes/fonnts.com-Mrs-Eaves-Small-Caps-OT-.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mrs Eaves Petite';
  src: url('fontes/MrsEavesPetiteCapsOT.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ------------------------- 2. VARIÁVEIS ------------------------- */
:root {
  /* paleta extraída do layout */
  --azul-profundo: #174672;   /* títulos, contagem, textos da página 1 */
  --azul-menu:     #11538D;   /* menu, formulário, textos das demais páginas */
  --azul-suave:    #5A8CBE;   /* placeholders */
  --branco:        #FFFFFF;
  --lilas:         #E2A9F1;   /* pino e link do maps */
  --vidro-forte:   rgba(255, 255, 255, .92);

  /* tipografia */
  --serif:  'Mrs Eaves', 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Amoresa', 'Pinyon Script', 'Cormorant Garamond', cursive;

  /* largura da coluna: nunca ultrapassa 480px nem quebra a proporção 9:16 */
  --cw: min(100vw, 480px, calc(100vh * .5625));

  /* régua do layout: 1 px do arquivo de design = 1 --u na tela */
  --regua: 1080;
  --u: calc(var(--cw) / 1080);

  /* degradês do layout (degrade topo.png / degrade base.png em CSS puro) */
  --degrade-topo: linear-gradient(to bottom,
      rgba(255,255,255,1)    0%,  rgba(255,255,255,.99)  6%,
      rgba(255,255,255,.945) 10%, rgba(255,255,255,.84) 15%,
      rgba(255,255,255,.66) 20%,  rgba(255,255,255,.45) 25%,
      rgba(255,255,255,.247) 30%, rgba(255,255,255,.10) 35%,
      rgba(255,255,255,.03) 40%,  rgba(255,255,255,0)   46%);
  --degrade-base: linear-gradient(to bottom,
      rgba(255,255,255,0)   52%, rgba(255,255,255,.012) 55%,
      rgba(255,255,255,.04) 60%, rgba(255,255,255,.105) 65%,
      rgba(255,255,255,.22) 70%, rgba(255,255,255,.39)  75%,
      rgba(255,255,255,.58) 85%, rgba(255,255,255,.75)  90%,
      rgba(255,255,255,.85) 95%, rgba(255,255,255,.89) 100%);

  --transicao: .45s;          /* metade do ciclo do fade (total ≈ 1s) */
}

@supports (height: 100dvh) {
  :root { --cw: min(100vw, 480px, calc(100dvh * .5625)); }
}

/* ------------------------- 3. BASE ------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

html, body {
  margin: 0;
  padding: 0;
  background: #E9EEF4;
  color: var(--azul-menu);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;          /* fallback para navegadores sem dvh */
  overflow-x: hidden;
}
@supports (height: 100dvh) {
  body { min-height: 100dvh; }
}

/* fundo desfocado atrás da coluna (só aparece em telas largas) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--fundo-atual, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(48px) saturate(1.1);
  transform: scale(1.18);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ------------------------- 4. PÁGINAS ------------------------- */
/* trava do layout: o site inteiro vive dentro deste contêiner.
   --cw nunca passa de 480px e ainda respeita a proporção 9:16 do layout. */
.mobile-container {
  position: relative;
  z-index: 1;
  width: var(--cw);
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(23, 70, 114, .18);
}

.pagina {
  position: relative;
  width: 100%;
  height: 100vh;              /* fallback */
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
@supports (height: 100dvh) {
  /* dvh acompanha as barras do navegador do celular: o fundo cobre
     a tela inteira em qualquer momento da rolagem */
  .pagina { height: 100dvh; min-height: 100dvh; }
}

.pagina[hidden] { display: none; }

/* foto de fundo + degradês (topo e base) */
.pagina__fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--fundo);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #DCE6F0;
}
.pagina__fundo::before,
.pagina__fundo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pagina__fundo::before { background: var(--degrade-topo); }
.pagina__fundo::after  { background: var(--degrade-base); }

/* entrada suave do conteúdo de cada página */
.pagina--ativa > *:not(.pagina__fundo) {
  animation: surgir .7s ease both;
}
/* usa a propriedade `translate`, e não `transform`: assim a animação não
   apaga o `transform: translateX(-50%)` que centraliza os elementos
   (animação vence regra normal na cascata, e o `transform: none` do último
   quadro ficava valendo com fill-mode `both`) */
@keyframes surgir {
  from { opacity: 0; translate: 0 calc(20 * var(--u)); }
  to   { opacity: 1; translate: none; }
}

/* ==================================================================
   5. MENU INTERATIVO · rolagem horizontal com setas nas extremidades
   ================================================================== */
.menu {
  position: fixed;
  top: 4.62vh;
  left: 50%;
  transform: translateX(-50%);
  width: var(--cw);
  z-index: 40;
  padding-inline: 3.85%;
}
@supports (height: 100dvh) { .menu { top: 4.62dvh; } }
.menu[hidden] { display: none; }

/* moldura: setas e máscaras ficam presas nela, fora da área que rola */
.menu__quadro { position: relative; }

/* trilho: rolagem horizontal nativa, com inércia no toque e sem scrollbar */
.menu__trilho {
  display: flex;
  align-items: center;
  gap: calc(22 * var(--u));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;                 /* Firefox */
  -ms-overflow-style: none;              /* Edge legado */
  padding-block: calc(10 * var(--u));
}
.menu__trilho::-webkit-scrollbar {       /* Chrome, Safari */
  display: none;
  width: 0;
  height: 0;
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(64 * var(--u));
  min-width: calc(190 * var(--u));
  padding-inline: calc(32 * var(--u));
  border: max(1px, calc(3.5 * var(--u))) solid var(--azul-menu);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--azul-menu);
  font-size: calc(30 * var(--u));        /* pedido: 30px */
  font-style: italic;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: rgba(255, 255, 255, .85); }

.chip--ativo,
.chip[aria-current='page'] {
  background: var(--azul-menu);
  border-color: var(--azul-menu);
  color: var(--branco);
}

/* máscaras: branco esmaecido que "engole" os botões nas bordas */
.menu__mascara {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(150 * var(--u));
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.menu__mascara--esq {
  left: 0;
  background: linear-gradient(to right,
      rgba(255,255,255,.98) 12%, rgba(255,255,255,.72) 48%, rgba(255,255,255,0) 100%);
}
.menu__mascara--dir {
  right: 0;
  background: linear-gradient(to left,
      rgba(255,255,255,.98) 12%, rgba(255,255,255,.72) 48%, rgba(255,255,255,0) 100%);
}
.menu__mascara--visivel { opacity: 1; }

/* setas: presas nas extremidades, não rolam junto com os botões */
.menu__seta {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  padding: 0;
  border: max(1px, calc(3.5 * var(--u))) solid var(--azul-menu);
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 10px rgba(23, 70, 114, .12);
  opacity: 0;                            /* carrega invisível */
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .35s ease, background-color .3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu__seta--esq { left: 0; }
.menu__seta--dir { right: 0; }
.menu__seta--visivel { opacity: 1; pointer-events: auto; }
.menu__seta:hover { background: var(--branco); }
.menu__seta svg {
  width: 62%; height: 62%;
  fill: none;
  stroke: var(--azul-menu);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------- 6. SETA DE ROLAGEM ------------------------- */
/* o círculo fica parado; só a ponta da seta sobe e desce */
.seta-baixo {
  position: absolute;
  left: 50%;
  top: 94.6%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  padding: 0;
  border: max(1px, calc(3 * var(--u))) solid var(--azul-profundo);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.seta-baixo__ponta {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: var(--azul-profundo);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .seta-baixo__ponta { animation: none; }
  .pagina--ativa > *:not(.pagina__fundo) { animation: none; }
  .menu__trilho { scroll-behavior: auto; }
}

/* ==================================================================
   7. PÁGINA 01 · CONVITE
   ================================================================== */
.pilula-convite {
  position: absolute;
  top: 5.62%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(251 * var(--u));
  height: calc(78 * var(--u));
  border: max(1px, calc(3.5 * var(--u))) solid var(--azul-menu);
  border-radius: 999px;
  color: var(--azul-menu);
  font-size: calc(35 * var(--u));        /* pedido: 35px */
  font-style: italic;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.p1__titulo {
  position: absolute;
  top: 12.67%;
  left: 48.4%;
  transform: translateX(-50%);
  width: calc(var(--cw) * .6963);
  height: auto;
}

.p1__data {
  position: absolute;
  top: 28.4%;
  left: 0; right: 0;
  margin: 0;
  text-align: center;
  color: var(--azul-profundo);
  font-size: calc(50 * var(--u));        /* pedido: 50px */
  line-height: 1;
  letter-spacing: .01em;
}

.p1__contagem {
  position: absolute;
  top: 40.1%;
  left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: calc(20 * var(--u));
  color: var(--azul-profundo);
}
.contagem__grupo {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: calc(115 * var(--u));
}
.contagem__numero {
  font-size: calc(60 * var(--u));        /* pedido: 60px */
  line-height: 1;
  font-variant-numeric: lining-nums;
  letter-spacing: .02em;
}
.contagem__rotulo {
  margin-top: calc(16 * var(--u));
  font-size: calc(45 * var(--u));        /* pedido: 45px */
  font-style: italic;
  line-height: 1;
}
.contagem__sep {
  font-size: calc(55 * var(--u));
  line-height: 1.1;
}

.p1__info {
  position: absolute;
  top: 83%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  margin: 0;
  text-align: center;
  color: var(--azul-profundo);
  font-size: calc(45 * var(--u));        /* pedido: 45px */
  font-style: italic;
  line-height: 1.3;
}

/* ==================================================================
   8. PÁGINA 02 · PROGRAMAÇÃO
   ================================================================== */
/* o bloco de eventos (textos, linhas e pontos conectores) vem pronto do
   layout, numa imagem só — nada é remontado em HTML */
.p2__programacao {
  position: absolute;
  top: 13.54%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 49.7%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.p2__rodape {
  position: absolute;
  top: 88.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(42 * var(--u));        /* pedido: 42px */
  font-style: italic;
  line-height: 1.35;
}

/* ==================================================================
   9. PÁGINA 03 · LOCAL
   ================================================================== */
.p3__titulo {
  position: absolute;
  top: 12.21%;
  left: 51.2%;
  transform: translateX(-50%);
  width: calc(var(--cw) * .483);
  height: auto;
}

.p3__bloco {
  position: absolute;
  top: 27%;
  right: 25.3%;
  width: 64%;
  text-align: right;
  color: var(--branco);
  text-shadow: 0 1px 8px rgba(23, 70, 114, .22);
}
.p3__bloco p { margin: 0; }

.p3__fazenda {
  font-size: calc(60 * var(--u));        /* pedido: 60px */
  line-height: 1.12;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.p3__cidade {
  margin-top: calc(10 * var(--u)) !important;
  font-size: calc(48 * var(--u));        /* pedido: 48px */
  font-style: italic;
  line-height: 1.15;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.p3__legenda {
  margin-top: calc(34 * var(--u)) !important;
  font-size: calc(40 * var(--u));        /* pedido: 40px */
  font-style: italic;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.p3__legenda--aeroporto {
  margin-top: calc(44 * var(--u)) !important;
  font-size: calc(42 * var(--u));        /* pedido: 42px */
}

.botao-maps {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
  margin-top: calc(10 * var(--u));
  color: var(--lilas);
  font-size: calc(40 * var(--u));        /* pedido: 40px, negrito e sublinhado */
  font-style: italic;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: .18em;
  transition: filter .3s ease, transform .3s ease;
}
.botao-maps__pino {
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  fill: var(--lilas);
  flex: 0 0 auto;
}
.botao-maps:hover,
.botao-maps:focus-visible { filter: brightness(1.12); transform: translateY(-1px); }

.p3__aeroporto {
  margin-top: calc(8 * var(--u)) !important;
  font-size: calc(40 * var(--u));        /* pedido: 40px */
  font-style: italic;
  line-height: 1.3;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.p3__rodape {
  position: absolute;
  top: 82.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 66%;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(42 * var(--u));        /* pedido: 42px */
  font-style: italic;
  line-height: 1.3;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* ==================================================================
   10. PÁGINA 04 · PRESENÇA
   ================================================================== */
.p4__titulo {
  position: absolute;
  top: 12.5%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--cw) * .7052);
  height: auto;
}

.p4__prazo {
  position: absolute;
  top: 24.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(50 * var(--u));        /* pedido: 50px */
  font-style: italic;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.p4__prazo strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.arabesco {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  opacity: .95;
}
.arabesco--topo { top: 31.4%; width: calc(var(--cw) * .29); }
.arabesco--base { top: 82.8%; width: calc(var(--cw) * .41); }

.p4__chamada {
  position: absolute;
  top: 35.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  margin: 0;
  text-align: center;
  color: var(--branco);
  font-size: calc(40 * var(--u));        /* pedido: 40px */
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(23, 70, 114, .18);
}

.p4__nominal {
  position: absolute;
  top: 45.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(35 * var(--u));        /* pedido: 35px */
  font-style: italic;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* --- formulário --- */
.formulario {
  position: absolute;
  top: 49.6%;
  left: 8.2%;
  right: 8.1%;
  margin: 0;
}

.campo {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--u));
  margin-bottom: calc(40 * var(--u));
}
.campo:last-of-type { margin-bottom: calc(14 * var(--u)); }

.campo__rotulo {
  flex: 0 0 calc(269 * var(--u));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(58 * var(--u));
  border-radius: 999px;
  background: var(--azul-menu);
  color: var(--branco);
  font-size: calc(30 * var(--u));        /* pedido: 30px */
  font-style: italic;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 2px 10px rgba(23, 70, 114, .18);
}

.campo__caixa {
  position: relative;
  flex: 1 1 auto;
}

.campo__entrada {
  width: 100%;
  height: calc(58 * var(--u));
  padding-inline: calc(43 * var(--u));
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--vidro-forte), rgba(255, 255, 255, .62));
  color: var(--azul-menu);
  font-family: var(--serif);
  font-size: calc(30 * var(--u));        /* acompanha os rótulos: 30px */
  font-style: italic;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.campo__entrada::placeholder {
  color: var(--azul-suave);
  opacity: 1;
  text-transform: uppercase;
}
.campo__entrada:focus {
  box-shadow: 0 0 0 max(2px, calc(4 * var(--u))) rgba(17, 83, 141, .35);
}
.campo__entrada--erro {
  box-shadow: 0 0 0 max(2px, calc(4 * var(--u))) rgba(196, 78, 78, .55);
}
/* nome escolhido na lista: contorno azul e o "x" para trocar */
.campo__entrada--ok {
  padding-right: calc(62 * var(--u));     /* espaço para o "x" */
  box-shadow: 0 0 0 max(1px, calc(3 * var(--u))) rgba(17, 83, 141, .45);
}
.campo__limpar {
  position: absolute;
  top: 50%;
  right: calc(10 * var(--u));
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 83, 141, .12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.campo__limpar[hidden] { display: none; }
.campo__limpar svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: var(--azul-menu);
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* autocompletar da lista de convidados */
.sugestoes {
  position: absolute;
  top: calc(100% + 12 * var(--u));
  left: 0; right: 0;
  z-index: 20;
  max-height: calc(430 * var(--u));
  margin: 0;
  padding: calc(12 * var(--u));
  overflow-y: auto;
  list-style: none;
  border-radius: calc(38 * var(--u));
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(23, 70, 114, .25);
  backdrop-filter: blur(6px);
}
.sugestoes[hidden] { display: none; }
.sugestoes li {
  padding: calc(19 * var(--u)) calc(26 * var(--u));
  border-radius: 999px;
  color: var(--azul-menu);
  font-size: calc(30 * var(--u));
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
}
.sugestoes li:hover,
.sugestoes li[aria-selected='true'] { background: rgba(17, 83, 141, .12); }
.sugestoes li.sugestoes__vazio { cursor: default; opacity: .7; }
.sugestoes strong { font-weight: 700; }

/* confirmação sim / não */
.confirmacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(24 * var(--u));
  margin: 0 0 calc(14 * var(--u));
  padding: 0;
  border: 0;
}
.confirmacao__titulo {
  padding: 0;
  color: var(--azul-menu);
  font-size: calc(30 * var(--u));
  font-style: italic;
  letter-spacing: .02em;
  text-transform: uppercase;
  float: left;
}
.confirmacao__opcao { cursor: pointer; }
.confirmacao__opcao input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.confirmacao__opcao span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(140 * var(--u));
  height: calc(52 * var(--u));
  border: max(1px, calc(3 * var(--u))) solid var(--azul-menu);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  color: var(--azul-menu);
  font-size: calc(30 * var(--u));
  font-style: italic;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .3s ease, color .3s ease;
}
.confirmacao__opcao input:checked + span {
  background: var(--azul-menu);
  color: var(--branco);
}
.confirmacao__opcao input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(17, 83, 141, .3);
}

/* botões */
.formulario__acoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(43 * var(--u));
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(106 * var(--u));
  padding: calc(13 * var(--u));
  border: 0;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: calc(30 * var(--u));        /* suporte com o cerimonial: 30px */
  font-style: italic;
  line-height: 1.25;
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.botao:active { transform: scale(.97); }

.botao--contorno {
  width: calc(269 * var(--u));
  border: max(1px, calc(3 * var(--u))) solid rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .08);
  color: var(--branco);
}
.botao--contorno:hover { background: rgba(255, 255, 255, .22); }

.botao--solido {
  width: calc(324 * var(--u));
  font-size: calc(35 * var(--u));        /* confirmar presença!: 35px */
  background: var(--branco);
  color: var(--azul-profundo);
  box-shadow: 0 6px 18px rgba(23, 70, 114, .18);
}
.botao--solido:hover { box-shadow: 0 10px 24px rgba(23, 70, 114, .26); }
.botao--solido[disabled] { opacity: .6; cursor: progress; }

.formulario__aviso {
  min-height: calc(76 * var(--u));
  margin: calc(32 * var(--u)) 0 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(30 * var(--u));
  font-style: italic;
  line-height: 1.35;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(calc(12 * var(--u)));
  transition: opacity .5s ease, transform .5s ease;
}
.formulario__aviso--visivel { opacity: 1; transform: none; }
.formulario__aviso--erro { color: #9C3B3B; }

.p4__rodape {
  position: absolute;
  top: 88.9%;
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(35 * var(--u));        /* pedido: 35px */
  font-style: italic;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* --- "Confirmar presença!" pulsa de leve quando está tudo pronto --- */
.botao--pronto { animation: pulsar 1.8s ease-in-out infinite; }
@keyframes pulsar {
  0%, 100% { scale: 1;
             box-shadow: 0 6px 18px rgba(23, 70, 114, .18), 0 0 0 0 rgba(255, 255, 255, .8); }
  50%      { scale: 1.04;
             box-shadow: 0 8px 22px rgba(23, 70, 114, .24), 0 0 0 calc(14 * var(--u)) rgba(255, 255, 255, 0); }
}

/* --- acompanhantes do convite ---------------------------------------
   Com a lista aberta, o formulário sobe e os enfeites da página somem,
   para caber tudo na tela (o layout definitivo vem depois). */
.formulario { transition: top .45s ease; }
.pagina--4 .p4__chamada,
.pagina--4 .p4__nominal,
.pagina--4 .arabesco,
.pagina--4 .p4__rodape { transition: opacity .35s ease, visibility .35s; }
.pagina--4.pagina--grupo .p4__chamada,
.pagina--4.pagina--grupo .p4__nominal,
.pagina--4.pagina--grupo .arabesco,
.pagina--4.pagina--grupo .p4__rodape { opacity: 0; visibility: hidden; }
.pagina--4.pagina--grupo .formulario { top: 32.5%; }

.grupo { margin: 0 0 calc(18 * var(--u)); }
.grupo[hidden] { display: none; }

.grupo__lista {
  max-height: 26vh;
  margin: 0;
  padding: calc(8 * var(--u)) calc(22 * var(--u));
  overflow-y: auto;
  list-style: none;
  border-radius: calc(34 * var(--u));
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 6px 20px rgba(23, 70, 114, .14);
}
@supports (height: 100dvh) { .grupo__lista { max-height: 26dvh; } }

.grupo__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(10 * var(--u)) calc(16 * var(--u));
  padding: calc(14 * var(--u)) 0;
  border-bottom: 1px solid rgba(17, 83, 141, .12);
}
.grupo__item:last-child { border-bottom: 0; }

.grupo__nome {
  flex: 1 1 0;
  min-width: 0;
  color: var(--azul-menu);
  font-size: calc(30 * var(--u));
  font-style: italic;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.grupo__opcoes { display: flex; gap: calc(12 * var(--u)); }
.grupo__opcao { cursor: pointer; }
.grupo__opcao input { position: absolute; opacity: 0; width: 0; height: 0; }
.grupo__opcao span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(110 * var(--u));
  height: calc(50 * var(--u));
  min-height: 24px;
  padding-inline: calc(14 * var(--u));
  border: max(1px, calc(3 * var(--u))) solid var(--azul-menu);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--azul-menu);
  font-size: calc(28 * var(--u));
  font-style: italic;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.grupo__opcao--sim input:checked + span {     /* sim: azul */
  background: var(--azul-menu);
  color: var(--branco);
}
.grupo__opcao--nao input:checked + span {     /* não: cinza */
  border-color: #8D98A5;
  background: #8D98A5;
  color: var(--branco);
}
.grupo__opcao input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17, 83, 141, .3); }

.grupo__nome-livre {
  flex: 1 0 100%;
  height: calc(54 * var(--u));
  min-height: 26px;
  padding-inline: calc(26 * var(--u));
  border: max(1px, calc(2 * var(--u))) solid rgba(17, 83, 141, .35);
  border-radius: 999px;
  background: var(--branco);
  color: var(--azul-menu);
  font-family: var(--serif);
  font-size: calc(28 * var(--u));
  font-style: italic;
  text-transform: uppercase;
  outline: none;
}
.grupo__nome-livre::placeholder { color: var(--azul-suave); opacity: 1; }
.grupo__nome-livre:focus { box-shadow: 0 0 0 max(2px, calc(4 * var(--u))) rgba(17, 83, 141, .3); }

/* quem ainda falta marcar */
.grupo__item--falta .grupo__opcao span { border-color: #C46A6A; }
.grupo__item--falta .grupo__nome-livre { border-color: #C46A6A; }

/* --- pop-up do RSVP: fundo da tela em fade branco ------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;                          /* acima do menu (40), abaixo da transição (100) */
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal[hidden] { display: none; }
.modal--visivel { opacity: 1; }

.modal__caixa {
  width: min(calc(var(--cw) * .86), 100%);
  text-align: center;
  color: var(--azul-profundo);
  translate: 0 calc(18 * var(--u));
  transition: translate .35s ease;
}
.modal--visivel .modal__caixa { translate: 0 0; }

.modal__titulo {
  margin: 0 0 calc(30 * var(--u));
  font-size: calc(54 * var(--u));
  font-style: italic;
  line-height: 1.2;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.modal__nomes {
  margin: 0 0 calc(34 * var(--u));
  padding: 0;
  list-style: none;
  color: var(--azul-menu);
  font-size: calc(38 * var(--u));
  font-style: italic;
  line-height: 1.55;
  text-transform: uppercase;
}
.modal__nomes[hidden], .modal__texto[hidden] { display: none; }
.modal__texto {
  margin: 0 0 calc(34 * var(--u));
  color: var(--azul-menu);
  font-size: calc(38 * var(--u));
  font-style: italic;
  line-height: 1.4;
}
.modal__acoes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(20 * var(--u));
}
.botao--azul,
.botao--contorno-azul {
  width: min(calc(600 * var(--u)), 100%);
  min-height: calc(96 * var(--u));
  font-size: calc(32 * var(--u));
}
.botao--azul {
  background: var(--azul-menu);
  color: var(--branco);
  box-shadow: 0 6px 18px rgba(23, 70, 114, .22);
}
.botao--contorno-azul {
  border: max(1px, calc(3 * var(--u))) solid var(--azul-menu);
  background: transparent;
  color: var(--azul-menu);
}
.botao--contorno-azul[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .botao--pronto { animation: none; box-shadow: 0 0 0 max(2px, calc(5 * var(--u))) rgba(255, 255, 255, .9); }
  .modal, .modal__caixa, .formulario { transition: none; }
}

/* ==================================================================
   11. PÁGINA 05 · TRAJES
   ================================================================== */
/* "TRAJES" virou texto vivo em Mrs Eaves (pedido: 145px).
   "Esporte fino" continua imagem, por ser Amoresa. */
.p5__titulo {
  position: absolute;
  top: 14.6%;
  left: 0; right: 0;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(145 * var(--u));       /* pedido: 145px */
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.p5__subtitulo {
  position: absolute;
  top: 24.79%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--cw) * .3919);
  height: auto;
}

.p5__colunas {
  position: absolute;
  top: 32.9%;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  gap: calc(30 * var(--u));
  text-align: center;
}
.p5__coluna { flex: 1 1 0; }
.p5__genero {
  margin: 0;
  color: var(--azul-menu);
  font-size: calc(50 * var(--u));        /* pedido: 50px */
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.p5__detalhe {
  margin: calc(6 * var(--u)) 0 0;
  color: var(--azul-menu);
  font-size: calc(35 * var(--u));        /* pedido: 35px */
  font-style: italic;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.p5__recomendacoes {
  position: absolute;
  top: 42.4%;
  left: 0; right: 0;
  margin: 0;
  text-align: center;
  color: var(--azul-menu);
  font-size: calc(50 * var(--u));        /* pedido: 50px */
  font-style: italic;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.p5__colunas--dicas {
  top: 47.6%;
  left: 10%;
  right: 10%;
  gap: calc(40 * var(--u));
  align-items: flex-start;
}
.p5__dica {
  flex: 1 1 0;
  margin: 0;
  color: var(--azul-menu);
  font-size: calc(35 * var(--u));        /* pedido: 35px */
  font-style: italic;
  line-height: 1.22;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* ==================================================================
   12. PÁGINAS 06 e 07 · HOSPEDAGEM E PRESENTES
   ================================================================== */
.p6__titulo {
  position: absolute;
  top: 14.46%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--cw) * .7059);
  height: auto;
}
/* título em Amoresa (imagem): escala equivalente aos 88px pedidos */
.p7__titulo {
  position: absolute;
  top: 13.6%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--cw) * .495);
  height: auto;
}

/* espaço livre para o conteúdo que ainda será definido */
.conteudo-livre {
  position: absolute;
  top: 30%;
  left: 8%;
  right: 8%;
  bottom: 12%;
  overflow-y: auto;
  text-align: center;
}
.em-breve {
  margin: 0;
  color: var(--azul-menu);
  font-size: calc(35 * var(--u));
  font-style: italic;
  letter-spacing: .02em;
  opacity: .75;
}

/* ==================================================================
   13. TRANSIÇÃO ENTRE PÁGINAS (fade branco com o monograma)
   ================================================================== */
.transicao {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--branco);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transicao) ease, visibility 0s linear var(--transicao);
}
.transicao--visivel {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transicao) ease, visibility 0s;
}
.transicao__logo {
  width: min(38vw, 170px);
  height: auto;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .5s ease .05s, transform .8s ease;
}
.transicao--visivel .transicao__logo {
  opacity: .9;
  transform: scale(1);
}

/* ==================================================================
   13b. INTRO (fotos empilhando + monograma batendo) — ver intro.js
   ================================================================== */
body.com-intro { overflow: hidden; }   /* nada rola enquanto a intro está na tela */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;                         /* acima da .transicao (100) */
  background: var(--branco);
  overflow: hidden;
  transition: opacity .6s ease;
}
.intro--saindo { opacity: 0; pointer-events: none; }

/* 1. tela "toque para abrir" — o botão ocupa a tela toda */
.intro__abrir {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .35s ease;
}
.intro__abrir:focus-visible { outline: none; }
.intro__abrir[hidden] { display: none; }
.intro--rodando .intro__abrir { opacity: 0; pointer-events: none; }

.intro__logo {
  width: min(38vw, 170px);              /* mesmo tamanho do monograma da transição */
  height: auto;
  opacity: .9;
}
.intro__toque {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--azul-menu);
  animation: intro-respira 2.4s ease-in-out infinite;
}
@keyframes intro-respira {
  0%, 100% { opacity: .35; }
  50%      { opacity: .9; }
}

/* 2. pilha de fotos — cada foto simplesmente aparece, sem transição */
.intro__pilha {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.intro__pilha--saindo { opacity: 0; }
.intro__foto {
  /* sem borda: só a sombra separa uma foto da outra */
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: min(68vw, 330px);
  max-height: 58vh;
  width: auto;
  height: auto;
  box-shadow: 0 6px 22px rgba(23, 70, 114, .22), 0 1px 3px rgba(0, 0, 0, .12);
  /* --gx, --gy e --giro vêm do JS (deslocamento e giro aleatórios) */
  transform: translate(calc(-50% + var(--gx, 0px)), calc(-50% + var(--gy, 0px)))
             rotate(var(--giro, 0deg));
}

/* 3. monograma batendo como coração: “tu-tum … tu-tum … tu-tum” */
.intro__coracao {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  opacity: 0;
  pointer-events: none;                 /* não pode "roubar" o toque do botão */
  transition: opacity .3s ease;
}
.intro__coracao--visivel { opacity: .9; }
.intro__coracao--batendo {
  animation: intro-coracao .85s ease-in-out 3;   /* 3 batidas ≈ 2,5 s */
}
@keyframes intro-coracao {
  0%   { transform: scale(1); }
  12%  { transform: scale(1.06); }   /* tu  */
  24%  { transform: scale(1); }
  36%  { transform: scale(1.045); }  /* tum (um pouco mais leve) */
  55%  { transform: scale(1); }      /* pausa até a próxima batida */
  100% { transform: scale(1); }
}

/* ==================================================================
   14. AJUSTES FINOS
   ================================================================== */
/* respeita a área segura de aparelhos com notch */
@supports (padding: max(0px)) {
  .menu { padding-top: env(safe-area-inset-top); }
}

:focus-visible {
  outline: 2px solid var(--azul-menu);
  outline-offset: 3px;
  border-radius: 4px;
}
