/* Noivado de Ismael e Yune. Direcção D, "Cartaz", com a paleta da Yune:
   chocolate, nogueira, âmbar, laranja queimado e bege.
   O laranja queimado é só decorativo; texto sobre cor vai em âmbar ou chocolate (contraste AA). */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Ms Madi'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ms-madi-latin-400-normal.woff2') format('woff2'); }

:root {
  --creme: #F7EDE1;
  --areia: #F0E0CC;
  --bandeja: #EFDDC8;
  --papel: #FFF8F0;
  --chocolate: #411A09;
  --nogueira: #6C3113;
  --ambar: #A03D1A;
  --ambar-escuro: #8A3417;
  --laranja: #C15E28;
  --bege: #E3B88A;
  --suave: #6B4A3A;
  --claro: #EAD3BA;
  --tinta: var(--ambar);
  --erro: #A8201A;
  --linha: rgba(65, 26, 9, 0.22);
  --linha-leve: rgba(65, 26, 9, 0.08);
  --anel: var(--chocolate);

  --f-cartaz: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-texto: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-script: 'Ms Madi', 'Brush Script MT', cursive;

  --coluna: 1320px;
  --margem: clamp(20px, 4vw, 64px);
  --sec-pad: clamp(64px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--creme);
}
body {
  margin: 0;
  background: var(--creme);
  color: var(--chocolate);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::placeholder { color: #7A5B4A; opacity: 1; }
::selection { background: var(--bege); color: var(--chocolate); }

:focus-visible { outline: 2px solid var(--anel); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.saltar {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 12px 18px; border-radius: 999px;
  background: var(--chocolate); color: var(--creme); font-weight: 600; text-decoration: none;
  --anel: var(--laranja);
}
.saltar:focus { top: 12px; }

.contentor { width: 100%; max-width: var(--coluna); margin: 0 auto; padding-left: var(--margem); padding-right: var(--margem); }
.sec { background: var(--creme); }
.sec-linha { border-top: 1px solid var(--linha-leve); }
.sec-dentro { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.sec-destaque { background: var(--ambar); color: var(--papel); --anel: var(--papel); }
.sec-areia { background: var(--areia); }

/* Tipografia de cartaz */
.titulo {
  font-family: var(--f-cartaz); font-weight: 900; line-height: 0.82;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.script {
  font-family: var(--f-script); font-weight: 400; line-height: 1;
  letter-spacing: 0; text-transform: none; color: var(--tinta);
}
.tinta { color: var(--tinta); }
.intro { font-size: 18px; line-height: 1.55; color: var(--suave); text-wrap: pretty; }
.rotulo-pequeno { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--suave); }

/* Botões e ligações */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font-family: var(--f-texto); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.botao:active { transform: translateY(1px); }
.botao-escuro { background: var(--chocolate); color: var(--creme); }
.botao-escuro:hover { background: var(--nogueira); }
.botao-destaque { background: var(--ambar); color: var(--papel); }
.botao-destaque:hover { background: var(--ambar-escuro); }
.botao-contorno { background: transparent; color: var(--chocolate); box-shadow: inset 0 0 0 1.5px var(--chocolate); }
.botao-contorno:hover { background: rgba(65, 26, 9, 0.06); }
.botao-grande { min-height: 60px; padding: 0 34px; font-size: 17px; }

.link-sublinhado {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; font-weight: 600; color: inherit;
  text-decoration: underline; text-decoration-color: var(--laranja);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-sublinhado:hover { text-decoration-color: currentColor; }
.link-discreto {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0; border: 0; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--suave);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.link-discreto:hover { color: var(--chocolate); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--chocolate);
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.chip-cheio { background: var(--ambar); border-color: var(--ambar); color: var(--papel); font-weight: 600; }
.chip-contorno {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--chocolate);
  font-size: 15px; font-weight: 600;
}
.chip-contorno .i { width: 16px; height: 16px; stroke-width: 1.8; }

.so-movel { display: none !important; }

/* Faixa do convite pessoal */
.faixa { background: var(--chocolate); color: var(--creme); --anel: var(--laranja); }
.faixa-dentro {
  min-height: 56px; padding-top: 10px; padding-bottom: 10px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px;
}
.faixa-saudacao { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.faixa-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.faixa-script { font-family: var(--f-script); font-size: 34px; line-height: 1; color: var(--laranja); }
.faixa-nome { font-family: var(--f-cartaz); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.faixa-lugares {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid rgba(247, 237, 225, 0.45);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.faixa-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--creme);
  text-decoration: underline; text-decoration-color: var(--laranja); text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* Topo */
.topo { background: var(--creme); }
.topo-dentro { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marca {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-cartaz); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--tinta); text-decoration: none; white-space: nowrap;
}
.topo-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: 16px; font-weight: 500; }
.topo-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.topo-links a:hover { color: var(--ambar); text-decoration: underline; text-decoration-color: var(--laranja); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.topo-cta { min-height: 52px; padding: 0 26px; }

/* Herói */
.heroi {
  position: relative;
  padding-top: 8px; padding-bottom: clamp(56px, 6vw, 88px);
  container-type: inline-size;
  --tam: clamp(84px, 15vw, 224px);
}
.selo {
  position: relative; z-index: 1; width: fit-content; margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px;
  border-radius: 999px; background: var(--chocolate); color: var(--creme);
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.selo .i { width: 16px; height: 16px; stroke-width: 1.8; }
.nomes {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-cartaz); font-weight: 900; font-size: var(--tam); line-height: 0.82;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--chocolate);
}
.e-movel { display: none; }
.letra { display: inline-block; }
.escrita { display: inline-block; vertical-align: top; overflow: visible; fill: currentColor; }

.grelha {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 540px) minmax(220px, 1fr);
  gap: clamp(24px, 3vw, 44px);
  margin-top: calc(var(--tam) * -0.40);
}
.lado { min-width: 0; padding-top: calc(var(--tam) * 0.48); display: flex; flex-direction: column; justify-content: space-between; }
.lado-a { gap: 36px; }
.lado-a-fim { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lado-b { gap: 28px; align-items: center; }

.contagem { display: flex; flex-direction: column; gap: 6px; }
.contagem-rotulo { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.contagem-num {
  font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(56px, 6.2vw, 92px); line-height: 0.82;
  letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap;
}
.onda { width: 200px; height: 34px; }
.onda path { fill: none; stroke: var(--tinta); stroke-width: 2.5; stroke-linecap: round; }
.heroi-texto { font-size: 20px; line-height: 1.45; text-wrap: pretty; }

.centro { position: relative; min-width: 0; container-type: inline-size; }
.e-largo {
  position: absolute; left: 68%; z-index: 3; pointer-events: none;
  top: -119px; top: -22cqw;
  font-family: var(--f-script); font-weight: 400; line-height: 1; color: var(--tinta);
  font-size: 156px; font-size: 28.9cqw;
  transform: translateX(-50%) rotate(-8deg);
}
.foto-casal { position: relative; aspect-ratio: 1080 / 1129; border-radius: 0 0 52px 52px; overflow: hidden; }
.painel { position: absolute; left: 0; right: 0; top: 33.5%; bottom: 0; border-radius: 52px; background: var(--laranja); }
.foto-casal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.cartao-data {
  width: 100%; border-radius: 44px; padding: 32px 24px;
  background: var(--chocolate); color: var(--creme); --anel: var(--laranja);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.cartao-data-foto { width: 150px; height: 150px; border-radius: 999px; object-fit: cover; border: 4px solid var(--laranja); }
.cartao-data-rotulo { margin-top: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.cartao-data-data {
  font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(34px, 3.4vw, 48px); line-height: 0.9;
  text-transform: uppercase; white-space: nowrap;
}
.cartao-data-data span { display: block; }

/* Secções: cabeçalhos */
.cabeca-linha { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.cabeca-linha .intro { flex: 0 1 380px; }

/* A nossa história */
.historia { display: flex; align-items: center; gap: 56px clamp(40px, 6vw, 96px); }
.historia-foto { position: relative; flex: 0 1 520px; min-width: 0; }
.historia-img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 44px; background: var(--bandeja); }
.historia-texto { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.historia-cabeca { display: flex; flex-direction: column; gap: 28px; }
.historia-cabeca .intro { max-width: 34em; line-height: 1.6; }
.titulo-historia { font-size: clamp(64px, 9vw, 132px); }
.titulo-historia > span { display: block; }
.titulo-historia .script {
  margin: -0.34em 0 0 1.3em; font-size: 0.95em;
  transform: rotate(-6deg); transform-origin: left center;
}
.marcos { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--chocolate); }
.marco { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1.5px solid var(--chocolate); }
.marco-num {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 999px; background: var(--chocolate); color: var(--creme);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-cartaz); font-weight: 800; font-size: 20px; line-height: 1;
}
.marco:last-child .marco-num { background: var(--ambar); color: var(--papel); }
.marco-corpo { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.marco-titulo { font-family: var(--f-cartaz); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.marco-texto { font-size: 17px; line-height: 1.55; color: var(--suave); }
.marco-texto.em-breve { color: #7A5B4A; }

/* O grande dia */
.dia { display: flex; flex-direction: column; gap: 48px; }
.titulo-dia { font-size: clamp(72px, 12vw, 176px); }
.titulo-dia .script {
  display: inline-block; position: relative; z-index: 1; margin: 0 -0.06em; font-size: 0.95em;
  transform: translateY(-0.16em) rotate(-6deg);
}
.dia-cartoes { display: flex; flex-wrap: wrap; gap: 24px; }
.cartao {
  flex: 1 1 320px; min-width: 0; min-height: 320px; border-radius: 40px;
  padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px;
}
.cartao-claro { background: var(--bege); color: var(--chocolate); }
.cartao-escuro { background: var(--chocolate); color: var(--creme); --anel: var(--laranja); }
.cartao-rotulo { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.cartao-titulo {
  font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); line-height: 0.92;
  text-transform: uppercase; overflow-wrap: anywhere;
}
.cartao-titulo span { display: block; }
.cartao-texto { font-size: 18px; line-height: 1.45; }
.cartao-escuro .cartao-texto { color: var(--claro); }
.cartao-acao { margin-top: auto; align-self: flex-start; }
.cartao > .cartao-texto + .cartao-acao, .cartao > .cartao-texto + .chip-contorno { margin-top: auto; }
.cartao-escuro .chip-contorno { margin-top: auto; align-self: flex-start; border-color: rgba(247, 237, 225, 0.45); color: var(--claro); }

/* Programa */
.programa { display: flex; flex-direction: column; gap: 40px; }
.titulo-programa { font-size: clamp(64px, 9vw, 132px); }
.titulo-programa > span { display: block; }
.titulo-programa .script {
  margin: -0.3em 0 0 2.2em; font-size: 0.8em;
  transform: rotate(-6deg); transform-origin: left center;
}
.momentos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.momento {
  min-width: 0; min-height: 250px; border-radius: 32px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; background: var(--bandeja);
}
.momento:first-child { background: var(--ambar); color: var(--papel); --anel: var(--papel); }
.momento:last-child { background: var(--chocolate); color: var(--creme); --anel: var(--laranja); }
.momento-icone {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 999px; border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
}
.momento-icone .i { width: 20px; height: 20px; stroke-width: 1.6; }
.momento-corpo { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.momento-hora {
  margin-top: 6px; font-family: var(--f-cartaz); font-weight: 900; font-size: 40px; line-height: 0.9;
  text-transform: uppercase; color: var(--tinta);
}
.momento:first-child .momento-hora { color: var(--bege); }
.momento:last-child .momento-hora { color: var(--laranja); }
.momento-titulo { font-family: var(--f-cartaz); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.momento-texto { font-size: 16px; line-height: 1.5; color: var(--suave); }
.momento:first-child .momento-texto { color: var(--papel); }
.momento:last-child .momento-texto { color: var(--claro); }

/* Confirmar */
.confirmar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 88px; }
.confirmar-cabeca { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.titulo-confirmar { font-size: clamp(56px, 7.4vw, 108px); line-height: 0.86; }
.titulo-confirmar span { display: block; }
.script-confirmar { color: var(--bege); font-size: 56px; }
.sec-destaque .chip-contorno { border-color: rgba(255, 248, 240, 0.6); }
.confirmar-texto { max-width: 26em; font-size: 18px; line-height: 1.6; }

.cartao-rsvp {
  flex: 1 1 520px; max-width: 640px; min-width: 0; scroll-margin-top: 16px;
  background: var(--papel); color: var(--chocolate); border-radius: 36px; --anel: var(--chocolate);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 30px 70px -40px rgba(65, 26, 9, 0.55);
}
.rsvp { display: flex; flex-direction: column; gap: 24px; }
.rsvp-convite {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding-bottom: 20px; border-bottom: 1.5px solid var(--chocolate);
}
.rsvp-convite-nome { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rsvp-convite-titulo { font-family: var(--f-cartaz); font-weight: 900; font-size: 40px; line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.chip-lugares { min-height: 40px; padding: 0 16px; font-size: 14px; }
.chip-lugares .i { width: 16px; height: 16px; }

.campo { display: flex; flex-direction: column; gap: 8px; }
.campo > label, .grupo > legend { font-size: 15px; font-weight: 600; }
.grupo { border: 0; margin: 0; padding: 0; min-width: 0; }
.grupo > legend { padding: 0; margin: 0 0 12px; }
.leve { font-weight: 400; color: var(--suave); }
.entrada {
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 1.5px solid var(--linha); border-radius: 18px; background: #FFFFFF;
  font-size: 16px; line-height: 1.4; color: var(--chocolate);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.entrada { min-height: 104px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.entrada:focus { outline: none; border-color: var(--chocolate); box-shadow: 0 0 0 3px rgba(65, 26, 9, 0.18); }
.entrada[aria-invalid="true"], .campo-tel.invalido { border-color: var(--erro); }
.campo-tel {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1.5px solid var(--linha); border-radius: 18px; background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.campo-tel:focus-within { border-color: var(--chocolate); box-shadow: 0 0 0 3px rgba(65, 26, 9, 0.18); }
.campo-prefixo { display: flex; align-items: center; padding: 0 14px; font-size: 16px; font-weight: 600; background: var(--bandeja); }
.campo-tel.internacional .campo-prefixo { display: none; }
.campo-tel input { flex: 1 1 auto; min-width: 0; min-height: 54px; padding: 0 16px; border: 0; background: transparent; font-size: 16px; }
.campo-tel input:focus { outline: none; }
.campo-ajuda { font-size: 14px; line-height: 1.5; color: var(--suave); }
.campo-erro { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--erro); }

.opcoes { display: flex; flex-wrap: wrap; gap: 12px; }
.opcao {
  position: relative; flex: 1 1 200px; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--linha); background: #FFFFFF;
  font-size: 16px; font-weight: 600; line-height: 1.25; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.opcao input, .dieta input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opcao-ponto {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 999px; border: 2px solid var(--chocolate);
  display: flex; align-items: center; justify-content: center; color: var(--papel);
}
.opcao-ponto .i { width: 14px; height: 14px; stroke-width: 2.8; opacity: 0; }
.opcao + .opcao { flex: 1.35 1 250px; }
.opcao:hover { border-color: rgba(65, 26, 9, 0.5); }
.opcao:has(input:checked) { border-color: var(--chocolate); background: var(--bege); }
.opcao input:checked + .opcao-ponto { background: var(--chocolate); }
.opcao input:checked + .opcao-ponto .i { opacity: 1; }
.opcao:has(input:focus-visible), .dieta:has(input:focus-visible) { outline: 2px solid var(--chocolate); outline-offset: 3px; }

.pessoas-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contador { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; border: 1.5px solid var(--linha); background: #FFFFFF; }
.contador-botao {
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--bandeja); color: var(--chocolate);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.contador-botao .i { stroke-width: 2.2; }
.contador-botao:hover:not(:disabled) { background: #E8D3BB; }
.contador-botao:disabled { opacity: 0.35; cursor: not-allowed; }
.contador-valor {
  width: 56px; min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent;
  text-align: center; font-family: var(--f-cartaz); font-weight: 900; font-size: 34px; line-height: 1; color: var(--chocolate);
  -moz-appearance: textfield; appearance: textfield;
}
.contador-valor::-webkit-outer-spin-button, .contador-valor::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contador-valor:focus { outline: none; }
.contador-valor:focus-visible { outline: 2px solid var(--chocolate); outline-offset: 0; }
.pessoas-nota { font-size: 15px; color: var(--suave); }

.dietas { display: flex; flex-wrap: wrap; gap: 10px; }
.dieta {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--linha); background: #FFFFFF;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dieta .i { width: 15px; height: 15px; stroke-width: 2.6; display: none; }
.dieta:hover { border-color: rgba(65, 26, 9, 0.5); }
.dieta:has(input:checked) { background: var(--bege); border-color: var(--chocolate); }
.dieta input:checked ~ .i { display: block; }
.campo-outra { margin-top: 14px; display: none; }
.rsvp.com-outra .campo-outra, .rsvp:has(input[data-dieta-outra]:checked) .campo-outra { display: flex; }

.rsvp-se-sim { display: flex; flex-direction: column; gap: 24px; }
.rsvp.e-nao .rsvp-se-sim, .rsvp:has(input[name="resposta"][value="nao"]:checked) .rsvp-se-sim { display: none; }
.texto-se-nao { display: none; }
.rsvp.e-nao .texto-se-sim, .rsvp:has(input[name="resposta"][value="nao"]:checked) .texto-se-sim { display: none; }
.rsvp.e-nao .texto-se-nao, .rsvp:has(input[name="resposta"][value="nao"]:checked) .texto-se-nao { display: inline; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rsvp-erro {
  padding: 14px 18px; border-radius: 18px; background: rgba(168, 32, 26, 0.08);
  font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--erro);
}
.botao-enviar { width: 100%; }
.botao-enviar[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.rsvp-whatsapp { margin-top: -10px; align-self: center; text-decoration: none; }
.rsvp-whatsapp .i { width: 18px; height: 18px; }

.rsvp-feito { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 8px 0; }
.feito-icone { width: 68px; height: 68px; border-radius: 999px; background: var(--laranja); display: flex; align-items: center; justify-content: center; }
.feito-icone .i { width: 30px; height: 30px; stroke-width: 2.2; }
.feito-titulo { font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(40px, 4vw, 56px); line-height: 0.92; text-transform: uppercase; overflow-wrap: anywhere; }
.feito-titulo:focus { outline: none; }
.feito-texto { font-size: 18px; line-height: 1.6; color: var(--suave); }
.feito-texto strong { font-weight: 700; color: var(--chocolate); }
.feito-nota { padding: 10px 14px; border-radius: 14px; background: var(--bandeja); font-size: 14px; line-height: 1.45; color: var(--suave); }
.feito-botoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* Perguntas */
.perguntas { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 88px; }
.perguntas-cabeca { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.perguntas-cabeca .intro { line-height: 1.6; }
.titulo-perguntas { font-size: clamp(52px, 6vw, 88px); line-height: 0.86; }
.titulo-perguntas span { display: block; }
.lista-perguntas { flex: 2 1 560px; min-width: 0; border-bottom: 1.5px solid var(--chocolate); }
.pergunta { border-top: 1.5px solid var(--chocolate); }
.pergunta > summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 24px 64px 24px 0; -webkit-tap-highlight-color: transparent;
}
.pergunta > summary::-webkit-details-marker { display: none; }
.pergunta > summary::marker { content: ''; }
.pergunta-texto { font-family: var(--f-cartaz); font-weight: 800; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; text-transform: uppercase; }
.pergunta-icone {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--chocolate);
  display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease;
}
.pergunta-icone .i { width: 16px; height: 16px; stroke-width: 2.2; }
.pergunta > summary:hover .pergunta-icone { background: rgba(193, 94, 40, 0.25); }
.pergunta[open] .pergunta-icone { background: var(--bege); }
.pergunta[open] .icone-mais, .pergunta:not([open]) .icone-menos { display: none; }
.pergunta-resposta { padding: 0 64px 26px 0; font-size: 17px; line-height: 1.6; color: var(--suave); }

/* Rodapé */
.rodape { background: var(--chocolate); color: var(--creme); --anel: var(--laranja); }
.rodape-dentro {
  padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.rodape-nomes { font-family: var(--f-cartaz); font-weight: 900; font-size: clamp(40px, 14.5vw, 160px); line-height: 0.82; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.rodape-script { font-family: var(--f-script); font-size: 64px; line-height: 1; color: var(--laranja); }
.rodape-linha { font-size: 18px; line-height: 1.5; color: var(--claro); }
.rodape .botao { margin-top: 8px; }

/* Folha do calendário */
.folha {
  width: min(440px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 24px 24px 28px;
  border: 0; border-radius: 32px; background: var(--papel); color: var(--chocolate);
  box-shadow: 0 40px 90px -30px rgba(65, 26, 9, 0.6);
}
.folha::backdrop { background: rgba(65, 26, 9, 0.55); }
.folha-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.folha-fechar {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 999px; border: 1.5px solid var(--chocolate); background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.folha-fechar:hover { background: rgba(65, 26, 9, 0.06); }
.folha-titulo { margin-top: 10px; font-family: var(--f-cartaz); font-weight: 900; font-size: 44px; line-height: 0.92; text-transform: uppercase; }
.folha-texto { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--suave); }
.folha-opcoes { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.folha-opcoes .botao { width: 100%; }

/* Páginas curtas: agradecimento sem JavaScript e mensagens de erro */
.pagina-curta { min-height: 100vh; display: flex; align-items: center; }
.curta { max-width: 640px; padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.curta-titulo { font-size: clamp(56px, 14vw, 104px); }
.curta .script { font-size: 56px; }

/* Computador estreito: a grelha do herói aperta antes de passar a uma coluna */
@media (max-width: 1180px) and (min-width: 961px) {
  .heroi-texto { font-size: 18px; }
  .lado-a { gap: 28px; }
}

/* Telemóvel e tablet */
@media (max-width: 960px) {
  :root { --coluna: 600px; --margem: 20px; --sec-pad: 56px; }
  .so-largo, .topo-links, .e-largo { display: none !important; }
  .so-movel { display: inline-flex !important; }
  .topo-dentro { min-height: 64px; }
  .marca { font-size: 23px; }
  .topo-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
  .faixa-dentro { min-height: 0; padding-top: 12px; padding-bottom: 6px; gap: 2px 20px; }
  .faixa-linha { gap: 4px 16px; }
  .faixa-script { font-size: 30px; }
  .faixa-nome { font-size: 20px; }

  .heroi {
    padding-bottom: 48px;
    --tam: calc((min(100vw, 600px) - 40px) * 0.348);
    --tam: 34.8cqi;
  }
  .selo { min-height: 34px; padding: 0 14px; font-size: 13px; gap: 8px; }
  .selo .i { width: 15px; height: 15px; }
  /* Sem z-index próprio: os nomes ficam atrás da fotografia e o "&" (z-index 3) fica à frente. */
  .nomes { z-index: auto; flex-direction: column; align-items: stretch; margin-top: 6px; }
  .nome-b { align-self: flex-end; }
  .e-movel {
    display: block; position: absolute; z-index: 3; pointer-events: none;
    left: 0.6276em; top: 0.8867em; font-size: 0.98em;
    font-family: var(--f-script); font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none;
    color: var(--tinta); transform: translateX(-50%) rotate(-8deg);
  }
  .grelha { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: -11cqi; }
  .centro { order: -1; container-type: normal; }
  .lado { padding-top: 0; justify-content: flex-start; }
  .painel { border-radius: 34px; }
  .foto-casal { border-radius: 0 0 34px 34px; }

  .lado-a { margin-top: 28px; padding: 0 4px; gap: 14px; }
  .contagem-rotulo { font-size: 14px; }
  .contagem-num { font-size: 80px; }
  .onda { width: 190px; height: 32px; }
  .lado-a-fim { align-items: stretch; gap: 0; }
  .heroi-texto { font-size: 17px; line-height: 1.5; }
  .lado-a-fim .botao { margin-top: 18px; min-height: 56px; font-size: 16px; }
  .lado-a-fim .link-sublinhado { margin-top: 6px; align-self: center; }

  .lado-b { margin-top: 32px; gap: 24px; }
  .cartao-data { border-radius: 36px; padding: 28px 24px; }
  .cartao-data-foto { width: 136px; height: 136px; }
  .cartao-data-rotulo { font-size: 14px; }
  .cartao-data-data { font-size: 46px; }

  .intro { font-size: 16px; }
  .historia { flex-direction: column; align-items: stretch; gap: 24px; }
  .historia-texto { display: contents; }
  .historia-cabeca { order: 1; gap: 14px; }
  .historia-foto { order: 2; flex: none; width: 100%; }
  .marcos { order: 3; margin-top: 4px; }
  .titulo-historia { font-size: min(23.6vw, 132px); }
  .historia-img { border-radius: 36px; }
  .marco { gap: 16px; padding: 18px 0; }
  .marco-num { flex-basis: 44px; width: 44px; height: 44px; font-size: 19px; }
  .marco-corpo { gap: 4px; }
  .marco-titulo { font-size: 26px; }
  .marco-texto { font-size: 15px; line-height: 1.5; }

  .dia { gap: 24px; }
  .cabeca-linha { gap: 16px; }
  .titulo-dia { font-size: min(20.5vw, 140px); }
  .dia-cartoes { flex-direction: column; gap: 14px; margin: 0 -4px; }
  .cartao { flex: none; min-height: 0; border-radius: 32px; padding: 24px; gap: 10px; }
  .cartao-rotulo { font-size: 13px; }
  .cartao-titulo { font-size: 46px; }
  .cartao-texto { font-size: 16px; }
  .cartao-acao, .cartao > .cartao-texto + .cartao-acao { margin-top: 8px; align-self: stretch; }
  .cartao-escuro .chip-contorno { margin-top: 8px; }

  .programa { gap: 16px; }
  .titulo-programa { font-size: min(18.5vw, 132px); }
  .titulo-programa .script { margin: -0.28em 0 0 2em; }
  .momentos { display: flex; flex-direction: column; gap: 0; border-top: 1.5px solid var(--chocolate); margin-top: 8px; }
  .momento, .momento:first-child, .momento:last-child {
    min-height: 0; border-radius: 0; padding: 16px 0; flex-direction: row; gap: 14px;
    background: transparent; color: var(--chocolate); border-bottom: 1.5px solid var(--chocolate); --anel: var(--chocolate);
  }
  .momento-icone { width: 44px; height: 44px; flex-basis: 44px; border-color: var(--chocolate); }
  .momento-icone .i { width: 18px; height: 18px; }
  .momento:first-child .momento-icone { background: var(--laranja); border-color: var(--laranja); }
  .momento:last-child .momento-icone { background: var(--chocolate); color: var(--creme); }
  .momento-corpo { gap: 4px; }
  .momento-hora, .momento:first-child .momento-hora, .momento:last-child .momento-hora { margin-top: 0; font-size: 26px; line-height: 1; color: var(--tinta); }
  .momento-titulo { font-size: 22px; }
  .momento-texto, .momento:first-child .momento-texto, .momento:last-child .momento-texto { font-size: 15px; color: var(--suave); }

  .confirmar { gap: 24px; }
  .confirmar-cabeca { flex: none; width: 100%; gap: 10px; padding: 0 4px; }
  .titulo-confirmar { font-size: min(16.4vw, 108px); }
  .script-confirmar { font-size: 42px; }
  .confirmar-texto { font-size: 16px; }
  .confirmar-cabeca .chip-contorno { margin-top: 4px; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .cartao-rsvp { flex: none; width: calc(100% + 8px); max-width: none; margin: 0 -4px; padding: 22px 20px; border-radius: 32px; box-shadow: 0 30px 60px -36px rgba(65, 26, 9, 0.6); }
  .rsvp { gap: 22px; }
  .rsvp-convite { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 18px; }
  .rsvp-convite-titulo { font-size: 36px; }
  .chip-lugares { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .opcoes { flex-direction: column; gap: 10px; }
  .opcao, .opcao + .opcao { flex: none; min-height: 58px; padding: 8px 18px; }

  .perguntas { gap: 18px; }
  .perguntas-cabeca { flex: none; width: 100%; gap: 14px; }
  .titulo-perguntas { font-size: min(14.4vw, 88px); }
  .lista-perguntas { flex: none; width: 100%; }
  .pergunta > summary { padding: 18px 56px 18px 0; }
  .pergunta-texto { font-size: 22px; }
  .pergunta-icone { width: 40px; height: 40px; }
  .pergunta-icone .i { width: 15px; height: 15px; }
  .pergunta-resposta { padding: 0 0 18px; font-size: 15px; line-height: 1.55; }
  .perguntas-whatsapp { order: 3; width: 100%; }

  .rodape-script { font-size: 52px; }
  .rodape-linha { font-size: 16px; }
}

@media (max-width: 380px) {
  .topo-cta { padding: 0 16px; }
  .marca { font-size: 21px; }
  .contagem-num { font-size: 70px; }
  .cartao-titulo { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
