/* Rebeca & João · paleta branco, preto, grafite (pais), vinho (mães) e dourado · monograma Floreio */

@font-face { font-family: 'Cormorant'; src: url('fontes/cormorant-300.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fontes/cormorant-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fontes/cormorant-500i.woff') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fontes/jost-300.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fontes/jost-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fontes/jost-500.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Luxurious Script'; src: url('fontes/luxurious-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --papel: #FAFAFA;
  --papel-claro: #FFFFFF;
  --papel-escuro: #F0F0F0;
  --tinta: #1A1A1A;
  --tinta-hover: #333333;
  --tinta-suave: #555555;
  --vinho: #7B2337;
  --ouro: #A8853F;          /* dourado sobre fundo claro: fios, ornamentos, molduras, ícones */
  --ouro-claro: #D4B26A;    /* dourado sobre preto/vinho: letra do envelope, anel do lacre */
  --destaque: var(--ouro);          /* acento decorativo (antes era vinho) */
  --destaque-texto: var(--vinho);   /* rótulos pequenos e foco continuam em vinho */
  --linha: rgba(20, 20, 20, .13);
  --linha-suave: rgba(20, 20, 20, .08);
  --borda-campo: #8F8F8F;
  --erro: #B42318;
  --erro-fundo: #FCEEEC;
  --sombra: 0 1px 2px rgba(20, 20, 20, .05), 0 10px 30px rgba(20, 20, 20, .06);
  --serif: 'Cormorant', 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Luxurious Script', 'Brush Script MT', cursive;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--destaque-texto); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(1rem, env(safe-area-inset-right)) .7rem max(1rem, env(safe-area-inset-left));
  background: rgba(250, 250, 250, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.topo.rolou { border-bottom-color: var(--linha); }
.topo-marca { display: block; flex: none; }
.topo-marca img { height: 2.1rem; width: auto; }
.topo-links { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.topo-links a {
  font-family: var(--sans); font-size: .72rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--tinta-suave);
  padding: .55rem 0; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.topo-links a:hover, .topo-links a[aria-current="page"] { color: var(--tinta); border-bottom-color: var(--destaque); }

/* ---------- Elementos comuns ---------- */
.rotulo {
  font-family: var(--sans); font-size: .74rem; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--destaque-texto); margin: 0 0 .9rem;
}
.titulo {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.1rem, 13vw, 4.6rem); line-height: 1.05;
  margin: 0 0 1.25rem; color: var(--tinta);
}
.ornamento { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 auto 2.25rem; }
.ornamento::before, .ornamento::after { content: ''; width: clamp(3rem, 14vw, 5rem); height: 1px; background: var(--destaque); }
.ornamento span { width: .42rem; height: .42rem; border: 1px solid var(--destaque); transform: rotate(45deg); }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .95rem 2.1rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--papel); background: var(--tinta);
  border: 1px solid var(--tinta); border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.botao:hover { background: var(--tinta-hover); border-color: var(--tinta-hover); }
.botao[disabled] { opacity: .65; cursor: progress; }
.botao-claro { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.botao-claro:hover { background: var(--tinta); color: var(--papel); }
.botao-pequeno { min-height: 2.75rem; padding: .7rem 1.35rem; font-size: .7rem; letter-spacing: .16em; }
.botao-largo { width: 100%; }

.link {
  display: inline-block; padding: .6rem .4rem; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .9rem; font-weight: 400; letter-spacing: .02em;
  color: var(--tinta-suave);
  text-decoration: underline; text-decoration-color: var(--destaque); text-underline-offset: .32em;
}
.link:hover { color: var(--tinta); }

.acoes { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Página inicial ---------- */
.hero {
  min-height: calc(100vh - 3.5rem);
  min-height: calc(100svh - 3.5rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}
.hero .rotulo { margin: 0; }
.hero-mono { margin: 0; width: min(80vw, 27rem); }
@supports (height: 1svh) { .hero-mono { width: min(80vw, 27rem, 50svh); } }
.hero-mono img { width: 100%; }

.contagem { display: flex; justify-content: center; }
.contagem > div { display: flex; flex-direction: column; align-items: center; min-width: 4.2rem; padding: 0 clamp(.6rem, 3.5vw, 1.6rem); }
.contagem > div + div { border-left: 1px solid var(--ouro); }
.contagem span { font-weight: 300; font-size: clamp(2.1rem, 9vw, 2.9rem); line-height: 1; font-variant-numeric: lining-nums; }
.contagem small {
  margin-top: .5rem;
  font-family: var(--sans); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-suave);
}
.contagem-fim { font-style: italic; font-size: 1.6rem; margin: 0; }

.secao { max-width: 44rem; margin: 0 auto; padding: clamp(3.5rem, 11vw, 6.5rem) 1rem; text-align: center; }
.secao + .secao { padding-top: 0; }
.texto-convite { font-style: italic; font-size: clamp(1.35rem, 4.6vw, 1.7rem); line-height: 1.55; margin: 0 auto; max-width: 34rem; }
.texto-convite + .texto-convite { margin-top: 1.25rem; }
/* versículo do convite (página inicial) */
.versiculo { margin: 2.5rem auto 0; max-width: 30rem; }
.versiculo::before { content: ''; display: block; width: 3.5rem; height: 1px; margin: 0 auto 1.6rem; background: var(--ouro); }
.versiculo blockquote { margin: 0; }
.versiculo blockquote p { margin: 0; font-style: italic; font-size: clamp(1.25rem, 4.2vw, 1.5rem); line-height: 1.5; color: var(--tinta); }
.versiculo figcaption { margin-top: .9rem; font-family: var(--sans); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--destaque-texto); }

.data-extenso { font-size: clamp(1.45rem, 5vw, 1.8rem); margin: 0; }
.hora { font-family: var(--sans); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-suave); margin: .4rem 0 0; }

.locais { display: grid; gap: 1rem; margin: 2.25rem 0; }
@media (min-width: 42rem) { .locais.dois { grid-template-columns: 1fr 1fr; } }
.cartao {
  background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px;
  box-shadow: var(--sombra);
  padding: 1.9rem 1.25rem 1.6rem;
}
.cartao h3 {
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 .8rem;
}
.nome-local { font-size: 1.55rem; line-height: 1.3; margin: 0; }
.endereco { color: var(--tinta-suave); font-size: 1.12rem; margin: .3rem 0 1.3rem; }
.local-em-breve { font-style: italic; color: var(--tinta-suave); margin: 2rem 0; }

.agenda-rotulo { font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin: 0 0 .9rem; }
.chamada p { max-width: 32rem; margin-left: auto; margin-right: auto; }
.chamada .botao { margin-top: 1rem; }

.rodape { text-align: center; padding: 3rem 1rem calc(3.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ouro); }
.rodape img { width: 4.2rem; margin: 0 auto 1.1rem; }
.rodape p { font-family: var(--sans); font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--tinta-suave); margin: 0; }
/* Aviso de privacidade (rodapé) */
.rodape .rodape-privacidade { margin-top: 1.1rem; }
.rodape-privacidade a { display: inline-block; padding: .35rem .25rem; text-decoration: underline; text-decoration-color: var(--destaque); text-underline-offset: .35em; }
.rodape-privacidade a:hover { color: var(--tinta); }
/* Acesso restrito (rodapé): leva ao painel dos noivos e à lista da portaria */
.acesso { margin-top: 1.5rem; }
.acesso summary {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .75rem;
  list-style: none; cursor: pointer; border-radius: 2px;
  font-family: var(--sans); font-size: .66rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-suave);
  transition: color .2s;
}
.acesso summary::-webkit-details-marker { display: none; }
.acesso summary svg { width: .85rem; height: .85rem; flex: none; }
.acesso summary:hover, .acesso[open] summary { color: var(--tinta); }
.acesso-opcoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }

/* entrada suave (só com JavaScript ativo) */
@keyframes surgir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero > * { animation: surgir 1.2s ease both; }
.hero > :nth-child(2) { animation-duration: 1.8s; animation-delay: .15s; }
.hero > :nth-child(3) { animation-delay: .6s; }
.hero > :nth-child(4) { animation-delay: .8s; }
.js .revelar { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > * { animation: none; }
  .js .revelar { opacity: 1; transform: none; transition: none; }
}

/* ---------- Confirmação de presença ---------- */
.faixa-demo {
  margin: 0; padding: .7rem 1rem; text-align: center;
  font-family: var(--sans); font-size: .85rem; line-height: 1.45;
  background: var(--papel-escuro); color: var(--tinta);
  border-bottom: 1px solid var(--linha);
}
.rsvp { max-width: 37rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 4.5rem; }
.rsvp-cabecalho { text-align: center; margin-bottom: 2.25rem; }
.rsvp-cabecalho .titulo { margin-bottom: .6rem; }
.subtitulo { color: var(--tinta-suave); margin: 0; }

.painel {
  background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px;
  box-shadow: var(--sombra);
  padding: clamp(1.5rem, 6vw, 2.6rem);
}
.painel.centro { text-align: center; }
.painel .titulo { font-size: clamp(2.8rem, 12vw, 3.8rem); }

.campo { margin-top: 1.5rem; }
.campo-rotulo {
  display: block; margin-bottom: .5rem;
  font-family: var(--sans); font-size: .76rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave);
}
.campo-rotulo span { font-weight: 300; letter-spacing: .06em; text-transform: none; }
input[type="text"], input[type="tel"], input[type="password"], input[type="search"], textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 300; line-height: 1.4;
  color: var(--tinta); background: #fff;
  border: 1px solid var(--borda-campo); border-radius: 2px;
  padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #737373; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) brightness(.45); } /* o "x" nativo do Edge vem azul */
input:focus, textarea:focus { outline: none; border-color: var(--destaque-texto); box-shadow: inset 0 0 0 1px var(--destaque-texto), 0 0 0 3px rgba(20, 20, 20, .08); }
textarea { resize: vertical; min-height: 6rem; }

.linha-busca { display: grid; gap: .75rem; }
@media (min-width: 32rem) { .linha-busca { grid-template-columns: 1fr auto; } }

.instrucao { font-size: 1.2rem; margin: 0 0 1.25rem; }
.nota-convite {
  font-family: var(--sans); font-size: .85rem; font-weight: 400; line-height: 1.45; color: var(--tinta-suave);
  margin: 0 0 1rem; padding-left: .75rem; border-left: 2px solid var(--tinta-suave);
}
.saudacao { font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.1rem); line-height: 1.25; margin: 0 0 .5rem; }

.aviso {
  margin: 1rem 0 0; padding: .9rem 1rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 400; line-height: 1.5; text-align: left;
  background: var(--papel-escuro); border-left: 3px solid var(--tinta-suave); border-radius: 2px;
}
.aviso a { color: var(--tinta); font-weight: 500; }
.aviso.erro { background: var(--erro-fundo); border-left-color: var(--erro); color: var(--erro); }
#ja-respondeu { margin: 0 0 1.5rem; }

.resultados { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.resultados button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; cursor: pointer;
  font: inherit; color: var(--tinta);
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px;
  padding: 1rem 1.1rem;
  transition: border-color .2s, box-shadow .2s;
}
.resultados button:hover { border-color: var(--destaque); box-shadow: var(--sombra); }
.resultados strong { display: block; font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.resultados small { display: block; font-family: var(--sans); font-size: .88rem; font-weight: 300; color: var(--tinta-suave); margin-top: .2rem; }
.resultados .seta { color: var(--destaque); font-family: var(--sans); font-size: 1.2rem; }
#bloco-resultados { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--linha); }

.pessoa { border: 0; margin: 0; padding: 1.35rem 0; border-top: 1px solid var(--linha); min-width: 0; }
.pessoa:first-child { border-top: 0; padding-top: 0; }
.pessoa legend { float: left; width: 100%; padding: 0; margin: 0 0 .8rem; font-size: 1.4rem; line-height: 1.3; }
.opcoes { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.opcao { position: relative; display: block; }
.opcao input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opcao span {
  display: flex; align-items: center; justify-content: center; min-height: 3.1rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tinta); background: #fff;
  border: 1px solid var(--borda-campo); border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s;
  pointer-events: none;
}
.opcao:hover span { border-color: var(--destaque); }
.opcao input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.opcao input[value="Não"]:checked + span { background: var(--papel-escuro); border-color: var(--tinta-suave); color: var(--tinta); }
.opcao input:checked + span::before { content: ''; width: .45rem; height: .8rem; margin: -.2rem .65rem 0 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opcao input:focus-visible + span { outline: 2px solid var(--destaque-texto); outline-offset: 2px; }

.campo-contato { margin-top: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--linha); }
#form-resposta .botao-largo { margin-top: 1.75rem; }
.voltar { display: block; text-align: center; margin-top: .75rem; }

#pronto-texto { font-size: 1.3rem; max-width: 28rem; margin: 0 auto 1.5rem; }
.nos-vemos { font-style: italic; font-size: 1.45rem; margin-bottom: 1.25rem; }
.acoes-finais { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linha); gap: 1.5rem; }

/* ---------- Presentes ---------- */
.presentes { max-width: 68rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 4.5rem; }
.presentes-cabecalho { text-align: center; max-width: 38rem; margin: 0 auto 2.75rem; }
.presentes-cabecalho .titulo { margin-bottom: .9rem; }
.intro { font-style: italic; font-size: clamp(1.25rem, 4.2vw, 1.45rem); line-height: 1.55; margin: 0; }

.cotas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.cota {
  display: flex; flex-direction: column;
  background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px;
  box-shadow: var(--sombra);
  transition: border-color .2s, transform .2s;
}
.cota:hover { border-color: var(--destaque); }
.cota-imagem { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--linha); }
.cota-corpo { flex: 1; padding: 1.6rem 1.4rem 1.1rem; }
.cota-titulo { font-size: 1.45rem; font-weight: 500; line-height: 1.25; margin: 0 0 .45rem; }
.cota-descricao { color: var(--tinta-suave); font-size: 1.08rem; line-height: 1.5; margin: 0; }
.cota-rodape {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 1.4rem; padding: 1rem 0 1.3rem; border-top: 1px solid var(--linha);
}
.cota-valor { font-weight: 300; font-size: 2rem; line-height: 1; margin: 0; white-space: nowrap; }
.cota-livre { background: transparent; border-style: dashed; box-shadow: none; }
.campo-valor {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px; padding: 0 .75rem;
}
.campo-valor:focus-within { border-color: var(--destaque-texto); box-shadow: inset 0 0 0 1px var(--destaque-texto), 0 0 0 3px rgba(20, 20, 20, .08); }
.campo-valor span { font-weight: 300; font-size: 1.3rem; color: var(--tinta-suave); }
.campo-valor input[type="text"] { border: 0; box-shadow: none; padding: .6rem 0; min-width: 0; font-size: 1.1rem; background: transparent; }
.cota-livre .aviso { margin: -.6rem 1.4rem 1.3rem; }
.nota-presentes { text-align: center; color: var(--tinta-suave); margin: 2.5rem 0 0; }

.janela {
  width: min(30rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem);
  padding: 0; border: 1px solid var(--linha); border-radius: 2px;
  background: var(--papel-claro); color: var(--tinta);
  box-shadow: 0 24px 70px rgba(20, 20, 20, .26);
  overflow: hidden;
}
.janela::backdrop { background: rgba(20, 20, 20, .5); }
.janela[open] { display: flex; flex-direction: column; }
.janela-conteudo { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 2.4rem clamp(1.25rem, 5vw, 2.25rem) 2rem; text-align: center; }
.fechar {
  position: absolute; top: .5rem; right: .5rem;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--tinta-suave); cursor: pointer;
}
.fechar:hover { background: var(--papel-escuro); color: var(--tinta); }
.janela .rotulo { margin-bottom: .5rem; }
.janela-titulo { font-size: 1.65rem; font-weight: 500; line-height: 1.25; margin: 0 2rem .2rem; }
.janela-valor { font-weight: 300; font-size: 2.8rem; line-height: 1.1; margin: 0 0 1.5rem; }
.formas {
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
  margin: 0 0 1.5rem; padding: .25rem;
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px;
}
.formas button {
  min-height: 2.75rem; padding: .4rem .5rem; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--tinta-suave); background: transparent; border: 0; border-radius: 1px;
  transition: background-color .15s, color .15s;
}
.formas button:hover { color: var(--tinta); background: var(--papel-escuro); }
.formas button[aria-selected="true"] { color: var(--papel); background: var(--tinta); }
.cartao-texto { font-size: 1.25rem; margin: .25rem 0 1.25rem; }
.botao.desativado { opacity: .5; cursor: not-allowed; }
.dica { font-family: var(--sans); font-size: .9rem; font-weight: 300; line-height: 1.5; color: var(--tinta-suave); margin: .75rem 0 0; }
.dica strong { font-weight: 500; color: var(--tinta); }
.codigo-rotulo { margin-top: 1rem; text-align: left; }
.codigo-pix {
  width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .78rem; line-height: 1.4;
  color: var(--tinta); background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px; padding: .6rem; resize: none;
}
.ou {
  display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 1.1rem;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-suave);
}
.ou::before, .ou::after { content: ''; flex: 1; height: 1px; background: var(--ouro); }
.qr { position: relative; width: min(14rem, 66vw); margin: 0 auto; background: #fff; border: 1px solid var(--linha); }
.qr svg { display: block; width: 100%; height: auto; }
.qr.exemplo::after {
  content: 'Exemplo'; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .85rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--erro); background: rgba(255, 255, 255, .86);
}
.recebedor { font-family: var(--sans); font-size: .82rem; font-weight: 300; color: var(--tinta-suave); margin: .9rem 0 0; overflow-wrap: anywhere; }
.recado-presente { text-align: left; margin-top: 1.9rem; padding-top: 1.6rem; border-top: 1px solid var(--linha); }
.recado-titulo { font-size: 1.3rem; line-height: 1.3; margin: 0; }
.recado-presente .dica { margin-top: .3rem; }
.recado-presente .campo { margin-top: 1.1rem; }
.recado-presente .botao { margin-top: 1.25rem; }
.recado-enviado { margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--linha); }
.recado-enviado .titulo { font-size: 3rem; margin-bottom: .4rem; }
.recado-enviado p:last-child { margin: 0; }

/* ---------- Menu do celular (e telas médias: são 8 itens) ---------- */
.menu-botao { display: none; }
@media (max-width: 59.99rem) {
  .js .menu-botao {
    display: inline-flex; align-items: center; gap: .7rem;
    min-height: 2.75rem; padding: .4rem .25rem .4rem .75rem;
    font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    color: var(--tinta); background: none; border: 0; cursor: pointer;
  }
  .menu-icone { position: relative; display: block; width: 1.2rem; height: 1px; background: currentColor; transition: background-color .2s; }
  .menu-icone::before, .menu-icone::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .25s ease;
  }
  .menu-icone::before { top: -6px; }
  .menu-icone::after { top: 6px; }
  .menu-botao[aria-expanded="true"] .menu-icone { background: transparent; }
  .menu-botao[aria-expanded="true"] .menu-icone::before { transform: translateY(6px) rotate(45deg); }
  .menu-botao[aria-expanded="true"] .menu-icone::after { transform: translateY(-6px) rotate(-45deg); }

  .js .topo-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .25rem 1rem .75rem;
    background: var(--papel); border-bottom: 1px solid var(--linha);
    box-shadow: 0 16px 30px rgba(20, 20, 20, .08);
  }
  .js .topo.aberto { border-bottom-color: var(--linha); }
  .js .topo.aberto .topo-links { display: flex; }
  .js .topo-links a {
    padding: 1.05rem .25rem; font-size: .8rem; letter-spacing: .2em;
    border-bottom: 1px solid var(--linha);
  }
  .js .topo-links a:last-child { border-bottom: 0; }
  .js .topo-links a[aria-current="page"] { color: var(--tinta); border-bottom-color: var(--linha); box-shadow: inset 3px 0 0 var(--destaque); padding-left: .9rem; }
}

/* ---------- Local ---------- */
.mais-detalhes { margin: -.75rem 0 2.25rem; }
.local { max-width: 64rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 2rem; }
.local-cabecalho { text-align: center; margin-bottom: 2.5rem; }
.local-cabecalho .titulo { margin-bottom: 0; }

.locais-detalhe { display: grid; gap: 1.25rem; }
.local-cartao {
  display: grid; overflow: hidden;
  background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; box-shadow: var(--sombra);
}
@media (min-width: 52rem) { .local-cartao { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.local-texto { padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.4rem, 4vw, 2.5rem); text-align: center; align-self: center; }
@media (min-width: 52rem) { .local-texto { text-align: left; } .acoes-local { justify-content: flex-start; } }
.local-texto .rotulo { margin-bottom: .6rem; }
.local-nome { font-size: clamp(1.7rem, 5.5vw, 2.1rem); font-weight: 500; line-height: 1.2; margin: 0 0 .5rem; }
.local-endereco { color: var(--tinta-suave); font-size: 1.15rem; margin: 0 0 .35rem; }
.local-endereco:empty { display: none; }
.local-hora { font-family: var(--sans); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-suave); margin: .6rem 0 0; }
.acoes-local { margin-top: 1.5rem; }
.copiado { font-family: var(--sans); font-size: .85rem; font-weight: 300; color: var(--tinta-suave); margin: .8rem 0 0; min-height: 1.3em; }
.mapa { position: relative; min-height: 18rem; background: var(--papel-escuro); border-top: 1px solid var(--linha); }
@media (min-width: 52rem) { .mapa { min-height: 22rem; border-top: 0; border-left: 1px solid var(--linha); } }
.mapa iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8); }
.mapa-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.mapa-vazio img { width: 5rem; opacity: .35; }
.mapa-vazio p { font-style: italic; color: var(--tinta-suave); margin: 0; max-width: 16rem; }
/* mapa que só carrega ao tocar em "Ver mapa" (privacidade) */
.mapa-carregar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 2rem; text-align: center; }
.mapa-carregar svg { width: 2.4rem; height: 2.4rem; color: var(--ouro); }
.mapa-dica { font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin: 0; max-width: 17rem; }

.bloco { max-width: 40rem; margin: 0 auto; padding: clamp(3.5rem, 10vw, 5.5rem) 0 0; text-align: center; }

.cronograma { list-style: none; margin: 1rem auto 0; padding: 0; max-width: 30rem; text-align: left; }
.cronograma li { position: relative; display: grid; grid-template-columns: 4.75rem 1fr; gap: 1.5rem; padding: 0 0 1.75rem; }
.cronograma li::before { content: ''; position: absolute; left: calc(4.75rem + .75rem); top: .55rem; bottom: -.55rem; width: 1px; background: var(--linha); }
.cronograma li:last-child::before { display: none; }
.cronograma li::after {
  content: ''; position: absolute; left: calc(4.75rem + .75rem - 4px); top: .55rem;
  width: 7px; height: 7px; border: 1px solid var(--destaque); background: var(--papel); transform: rotate(45deg);
}
.cronograma-hora { font-weight: 300; font-size: 1.65rem; line-height: 1.1; text-align: right; color: var(--tinta); }
.cronograma-corpo { padding-left: .5rem; }
.cronograma-titulo { font-size: 1.35rem; line-height: 1.3; margin: .1rem 0 .15rem; }
.cronograma-descricao { color: var(--tinta-suave); font-size: 1.08rem; line-height: 1.5; margin: 0; }

.traje-estilo { font-style: italic; font-size: clamp(1.6rem, 5vw, 1.9rem); margin: 0 0 .75rem; }
.traje-descricao { color: var(--tinta-suave); max-width: 32rem; margin: 0 auto; }

.trajes { display: grid; gap: 2.5rem; margin: 2.5rem auto 0; max-width: 52rem; text-align: left; }
@media (min-width: 60rem) { .bloco:has(.trajes:not([hidden])) { max-width: 60rem; } .trajes { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.traje-grupo-titulo {
  font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--destaque-texto); text-align: center; margin: 0 0 1rem;
  display: flex; align-items: center; gap: .9rem;
}
.traje-grupo-titulo::before, .traje-grupo-titulo::after { content: ''; flex: 1; height: 1px; background: var(--ouro); }
.traje-linha { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.traje-ref { margin: 0; }
.traje-foto { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--papel-escuro); border: 1px solid var(--linha); border-radius: 2px; }
.traje-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.traje-foto-vazia { display: flex; align-items: center; justify-content: center; }
.traje-foto-vazia img { width: 45%; height: auto; opacity: .3; }
.traje-ref figcaption { padding-top: .7rem; }
.traje-para { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 .3rem; }
.traje-dica { color: var(--tinta-suave); font-size: 1.02rem; line-height: 1.45; margin: 0; }
.traje-credito { font-family: var(--sans); font-size: .68rem; font-weight: 300; color: var(--tinta-suave); margin: .4rem 0 0; }

.lista-dicas { list-style: none; margin: 0 auto; padding: 0; max-width: 32rem; }
.lista-dicas li { padding: .9rem 0; border-top: 1px solid var(--linha); }
.lista-dicas li:last-child { border-bottom: 1px solid var(--linha); }

.hoteis { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); text-align: left; }
.hotel { background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; padding: 1.4rem 1.3rem 1rem; }
.hotel-nome { font-size: 1.35rem; font-weight: 500; line-height: 1.25; margin: 0 0 .2rem; }
.hotel-distancia { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 .6rem; }
.hotel-descricao { color: var(--tinta-suave); font-size: 1.05rem; margin: 0 0 .4rem; }

.chamada-final { padding-bottom: 2.5rem; }

/* ---------- Padrinhos ---------- */
.grupo-padrinhos { margin-bottom: 3.25rem; }
.grupo-padrinhos-titulo {
  display: flex; align-items: center; gap: .9rem; margin: 0 0 1.6rem;
  font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--destaque-texto);
}
.grupo-padrinhos-titulo::before, .grupo-padrinhos-titulo::after { content: ''; flex: 1; height: 1px; background: var(--ouro); }
.lista-padrinhos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.1rem; }
.padrinho { flex: 0 1 calc((100% - 3 * 1.1rem) / 4); min-width: 9.5rem; text-align: center; }
@media (max-width: 40rem) { .padrinho { flex-basis: calc((100% - 1.1rem) / 2); min-width: 0; } }
.padrinho-foto {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: .9rem;
  background: var(--papel-escuro); border: 1px solid var(--linha); border-radius: 999px 999px 3px 3px;
}
.padrinho-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.padrinho-foto-vazia { display: flex; align-items: center; justify-content: center; }
.padrinho-foto-vazia img { width: 44%; height: auto; opacity: .3; }
.padrinho-papel { font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 .25rem; }
.padrinho-nome { font-size: 1.35rem; font-weight: 500; line-height: 1.25; margin: 0 0 .3rem; }
.padrinho-relacao { font-style: italic; font-size: 1.02rem; line-height: 1.45; color: var(--tinta-suave); margin: 0; }
/* lista dos padrinhos, dentro da Área dos padrinhos (depois da senha) */
.area-padrinhos { margin: 3rem 0 1rem; text-align: center; }
.area-padrinhos .ornamento { margin-bottom: 1.75rem; }
.area-padrinhos .rotulo { margin-bottom: .4rem; }
.area-lista-titulo { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 10vw, 3.4rem); line-height: 1.1; margin: 0 0 2rem; }
.area-padrinhos .grupo-padrinhos { margin-bottom: 2.5rem; }

/* ---------- Área dos padrinhos ---------- */
.area { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) 1rem 3.5rem; }
.area .painel-entrada .link { margin-top: 1rem; }
.area-cabecalho { text-align: center; margin-bottom: 2rem; }
.area-cabecalho .titulo { margin-bottom: .6rem; }
.area-boas-vindas { font-style: italic; font-size: clamp(1.2rem, 4vw, 1.4rem); line-height: 1.55; max-width: 32rem; margin: 0 auto; }
.area-bloco {
  margin-bottom: 1.1rem; padding: clamp(1.25rem, 5vw, 1.9rem);
  background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; box-shadow: var(--sombra);
}
.area-rotulo { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 1rem; }
.area-destaque { font-weight: 300; font-size: 2.8rem; line-height: 1; margin: 0 0 .5rem; }
.area-local { color: var(--tinta-suave); margin: .25rem 0 1rem; }
.acoes-esquerda { justify-content: flex-start; }
.traje-linha-area { margin-bottom: 1.4rem; }
.traje-evitar { color: var(--tinta-suave); font-size: 1.02rem; line-height: 1.45; margin: .45rem 0 0; }
.traje-evitar strong { color: var(--destaque-texto); font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.aluguel-para { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 .2rem; }
.aluguel-obs { font-style: italic; color: var(--tinta-suave); font-size: 1.02rem; line-height: 1.45; margin: .25rem 0 0; }
.traje-duas { display: grid; gap: 1.1rem; margin-bottom: 1.4rem; }
@media (min-width: 36rem) { .traje-duas { grid-template-columns: 1fr 1fr; } }
.traje-duas h3 { font-size: 1.3rem; font-weight: 500; margin: 0 0 .3rem; }
.traje-figura {
  display: block; width: 100%; max-width: 13rem; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: .8rem;
  background: var(--papel-escuro); border: 1px solid var(--linha); border-radius: 999px 999px 3px 3px;
}
.traje-duas p { color: var(--tinta-suave); margin: 0; }
.paleta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.cor { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.cor-amostra { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid var(--linha); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); }
.cor-nome { font-family: var(--sans); font-size: .78rem; color: var(--tinta-suave); }
.area-bloco .cronograma { margin-top: 0; }
.area-bloco .cronograma li:last-child { padding-bottom: 0; }
.ordem-entrada { list-style: none; margin: 0; padding: 0; counter-reset: ordem; }
.ordem-entrada li { counter-increment: ordem; display: flex; align-items: center; gap: .9rem; padding: .55rem 0; border-top: 1px solid var(--linha-suave); font-size: 1.15rem; }
.ordem-entrada li:first-child { border-top: 0; }
.ordem-entrada li::before {
  content: counter(ordem); flex: none; display: flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border: 1px solid var(--destaque); border-radius: 50%;
  font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave);
}
.lembretes { list-style: none; margin: 0; padding: 0; }
.lembretes li { position: relative; padding: .5rem 0 .5rem 1.8rem; font-size: 1.12rem; }
.lembretes li::before { content: ''; position: absolute; left: .2rem; top: .9rem; width: .45rem; height: .8rem; border: solid var(--destaque); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.contatos { list-style: none; margin: 0; padding: 0; }
.contato { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .75rem 0; border-top: 1px solid var(--linha-suave); }
.contato:first-child { border-top: 0; padding-top: 0; }
.contato-nome { font-size: 1.15rem; margin: 0; }
.contato-telefone { font-family: var(--sans); font-size: .85rem; color: var(--tinta-suave); margin: 0; }
.contato-acoes { display: flex; gap: .5rem; }
.area-rodape { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }

/* ---------- Lista da portaria ---------- */
.portaria { max-width: 44rem; margin: 0 auto; padding: clamp(1.25rem, 5vw, 2.5rem) 1rem 4rem; }
.portaria-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: .9rem; }
.portaria-topo .rotulo { margin-bottom: .1rem; }
.portaria-titulo { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 9vw, 3rem); line-height: 1.1; margin: 0; }
.portaria-conexao { margin: 0 0 1rem; padding: .55rem .8rem; border-radius: 2px; font-family: var(--sans); font-size: .82rem; line-height: 1.4; background: var(--papel-claro); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linha); }
.portaria-conexao.enviando { background: var(--papel-escuro); color: var(--tinta-suave); box-shadow: none; }
.portaria-conexao.offline { background: var(--erro-fundo); color: var(--erro); box-shadow: none; }
.portaria-numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .5rem; }
.portaria-numeros .indicador { padding: .75rem .8rem; }
.portaria-numeros .indicador-rotulo { font-size: .74rem; line-height: 1.25; }
.portaria-numeros .indicador-valor { font-size: clamp(1.6rem, 7vw, 2.1rem); }
.portaria-busca { position: sticky; top: 0; z-index: 4; padding: .75rem 0; background: var(--papel); }
.portaria-busca input { font-size: 1.15rem; padding: .95rem 1rem; }
.fora-da-lista {
  margin-bottom: 1rem; padding: 1rem 1.1rem; font-family: var(--sans); font-size: .92rem; line-height: 1.45;
  background: var(--erro-fundo); color: var(--erro); border-left: 4px solid var(--erro); border-radius: 2px;
}
.fora-da-lista strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.lista-portaria { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.grupo-portaria { padding: .8rem 1rem .4rem; background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; }
.grupo-portaria-topo { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.grupo-portaria-nome { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--destaque-texto); margin: 0; }
.pessoa-portaria { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--linha-suave); }
.grupo-portaria-topo + .pessoa-portaria { border-top: 0; }
.pessoa-portaria-nome { font-size: 1.22rem; line-height: 1.25; margin: 0 0 .3rem; }
.pessoa-portaria.chegou .pessoa-portaria-nome { color: var(--tinta-suave); }
.botao-chegou { flex: none; min-width: 7.5rem; min-height: 3.1rem; }
.chegou-info { flex: none; text-align: right; font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--tinta); }
.chegou-info p { margin: 0; }
.chegou-info .link { padding: .25rem 0; font-size: .8rem; }

/* ---------- Kit de impressão ---------- */
.kit { max-width: 52rem; margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) 1rem 3.5rem; }
.kit-cabecalho { text-align: center; margin-bottom: 2rem; }
.kit-cabecalho .titulo { margin-bottom: .5rem; }
.kit-bloco { margin-bottom: 1.25rem; }
.kit-titulo { font-size: 1.6rem; font-weight: 500; margin: 0 0 1rem; }
.kit select {
  width: 100%; padding: .8rem 1rem; font-family: var(--sans); font-size: 1rem; color: var(--tinta);
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px;
}
.kit-link { font-family: var(--sans); font-size: .82rem; color: var(--tinta-suave); margin: .6rem 0 1rem; overflow-wrap: anywhere; }
.kit-previa { background: #fff; border: 1px solid var(--linha); padding: .5rem; margin-bottom: .75rem; }
.kit-previa canvas { display: block; width: 100%; height: auto; box-shadow: 0 1px 4px rgba(20, 20, 20, .12); }
.kit-vazio { font-style: italic; color: var(--tinta-suave); text-align: center; padding: 2.5rem 1rem; margin: 0; }
.kit-acoes { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.kit-opcoes { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.kit-check { display: flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .92rem; cursor: pointer; }
.kit-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--tinta); }
.kit-check input:focus-visible { outline: 2px solid var(--destaque-texto); outline-offset: 2px; }
.kit-std { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 40rem) { .kit-std { grid-template-columns: 1fr 1.3fr; } }
.kit-std figure { margin: 0; text-align: center; }
.kit-std figcaption { font-family: var(--sans); font-size: .82rem; color: var(--tinta-suave); margin-bottom: .75rem; }
.kit-voltar { text-align: center; font-family: var(--sans); }
.folha-impressao { display: none; }
@media print {
  @page { size: A4; margin: 8mm 5mm; }
  body.pagina-kit { background: #fff; }
  body.pagina-kit > *:not(.folha-impressao) { display: none !important; }
  .folha-impressao { display: grid !important; grid-template-columns: repeat(2, 100mm); justify-content: center; }
  .folha-impressao img { display: block; width: 100mm; height: 70mm; outline: .2mm dashed #bdbdbd; outline-offset: -.1mm; }
}

/* ---------- Painel dos noivos ---------- */
.pagina-painel .faixa-demo { position: sticky; top: 0; z-index: 5; }
.painel-noivos { max-width: 64rem; margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) 1rem 4rem; }
.painel-entrada { max-width: 24rem; margin: 4vh auto 0; text-align: center; }
.painel-marca { width: 4.5rem; margin: 0 auto 1.25rem; }
.painel-entrada .painel { text-align: left; margin-top: 1.5rem; }
.painel-entrada .botao-largo { margin-top: 1.25rem; }

.painel-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.painel-topo .rotulo { margin-bottom: .2rem; }
.painel-topo .titulo { margin: 0; font-size: clamp(2.8rem, 10vw, 3.6rem); }
.painel-atualizado { font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin: .2rem 0 0; }
.painel-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }

.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .75rem; margin-bottom: .75rem; }
.indicador, .medidor { background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; padding: 1rem 1.1rem; }
.indicador-rotulo { font-family: var(--sans); font-size: .82rem; color: var(--tinta-suave); margin: 0 0 .35rem; }
.indicador-valor { font-family: var(--sans); font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin: 0; }
.indicador-detalhe { font-family: var(--sans); font-size: .78rem; color: var(--tinta-suave); margin: .25rem 0 0; }
.medidor { margin-bottom: 2rem; }
.medidor-texto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-family: var(--sans); font-size: .88rem; margin-bottom: .6rem; }
.medidor-texto strong { font-weight: 500; }
.medidor-trilho { height: 10px; border-radius: 5px; background: rgba(20, 20, 20, .1); overflow: hidden; }
.medidor-preenchido { display: block; width: 0; height: 100%; border-radius: 5px; background: var(--tinta); transition: width .6s ease; }
.medidor-prazo { font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin: .6rem 0 0; }

.abas-painel { display: flex; gap: .25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--linha); overflow-x: auto; }
.abas-painel button {
  flex: none; padding: .8rem 1rem; margin-bottom: -1px; cursor: pointer;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave);
}
.abas-painel button[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--destaque); }
@media (max-width: 40rem) {
  .abas-painel { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; border-bottom: 0; overflow: visible; }
  .abas-painel button { margin: 0; padding: .75rem .5rem; letter-spacing: .08em; background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px; }
  .abas-painel button[aria-selected="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
  .abas-painel button:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 5 abas: a última ocupa a linha */
}
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filtro {
  min-height: 2.5rem; padding: .5rem .9rem; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; color: var(--tinta);
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 999px;
}
.filtro[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.painel-ferramentas { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.painel-ferramentas input { flex: 1 1 14rem; width: auto; }
.painel-nota { font-family: var(--sans); font-size: .85rem; color: var(--tinta-suave); margin: 0 0 1rem; }

.lista-convites, .lista-simples { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 52rem) { .lista-convites { grid-template-columns: 1fr 1fr; align-items: start; } }
.convite-item, .item-simples { background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; padding: 1rem 1.1rem; }
.convite-item-topo, .item-simples-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.convite-item-topo { margin-bottom: .6rem; }
.convite-item-nome { font-size: 1.3rem; font-weight: 500; line-height: 1.3; margin: 0; }
.convite-item-quando { font-family: var(--sans); font-size: .78rem; color: var(--tinta-suave); margin: 0; }
.pessoas-status { list-style: none; margin: 0; padding: 0; }
.pessoas-status li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--linha-suave); font-size: 1.08rem; }
.selo-status { flex: none; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .03em; }
.selo-vai { background: var(--tinta); color: var(--papel-claro); }
.selo-vai::before { content: '\2713\00a0'; }
.selo-naovai { background: var(--papel-claro); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--borda-campo); }
.selo-naovai::before { content: '\2715\00a0'; }
.selo-pendente { background: var(--papel-escuro); color: var(--tinta-suave); }
.selo-pendente::before { content: '\2026\00a0'; }
.convite-item-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .8rem; }
.convite-item-dica { flex-basis: 100%; font-family: var(--sans); font-size: .78rem; color: var(--tinta-suave); margin: 0; }
.item-simples-topo strong { font-size: 1.15rem; font-weight: 500; }
.item-valor { font-family: var(--sans); font-weight: 500; }
.item-meta { font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin: .3rem 0 0; }
.item-recado { font-style: italic; margin: .4rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.item-acoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.lista-vazia { font-style: italic; color: var(--tinta-suave); padding: 1rem 0; }

/* ---------- Mural de recados ---------- */
.mural { max-width: 64rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 3rem; }
.mural-cabecalho { text-align: center; max-width: 34rem; margin: 0 auto 2.25rem; }
.mural-cabecalho .titulo { margin-bottom: .6rem; }
.mural-form { max-width: 36rem; margin: 0 auto; }
.contador { font-family: var(--sans); font-size: .78rem; color: var(--tinta-suave); text-align: right; margin: .35rem 0 0; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mural-form .botao-largo { margin-top: 1.5rem; }
.mural-enviado { text-align: center; }
.mural-enviado .titulo { font-size: 3rem; margin-bottom: .4rem; }
.mural-recados { padding-top: 3.5rem; text-align: center; }
.mural-contagem { margin-bottom: 1.6rem; }
.mural-estado { font-style: italic; color: var(--tinta-suave); }
.recados { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 1.25rem; text-align: left; }
@media (min-width: 40rem) { .recados { columns: 2; } }
@media (min-width: 64rem) { .recados { columns: 3; } }
.recado {
  position: relative; break-inside: avoid; margin: 0 0 1.25rem;
  padding: 2.4rem 1.5rem 1.4rem;
  background: var(--papel-claro); border: 1px solid var(--linha); box-shadow: var(--sombra);
}
.recado::before {
  content: '\201C'; position: absolute; top: .15rem; left: 1rem;
  font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--destaque);
}
.recado-texto { font-style: italic; font-size: 1.2rem; line-height: 1.55; margin: 0 0 1rem; white-space: pre-line; overflow-wrap: anywhere; }
.recado-autor { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.recado-data { font-family: var(--sans); font-size: .74rem; color: var(--tinta-suave); margin: .25rem 0 0; }

/* ---------- Nossa história ---------- */
.historia { max-width: 64rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 1rem; }
.historia-cabecalho { text-align: center; max-width: 36rem; margin: 0 auto 3.5rem; }
.historia-cabecalho .titulo { margin-bottom: .8rem; }
.historia-intro { font-style: italic; font-size: clamp(1.25rem, 4.2vw, 1.45rem); line-height: 1.55; margin: 0; }
.juntos { font-family: var(--sans); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--destaque-texto); margin: 1.25rem 0 0; }

.linha-tempo { list-style: none; margin: 0; padding: 0; position: relative; }
.linha-tempo::before { content: ''; position: absolute; top: 0; bottom: 0; left: 1rem; width: 1px; background: var(--linha); }
.momento { position: relative; padding: 0 0 3.25rem 3rem; }
.momento-marca { position: absolute; left: calc(1rem - 5px); top: .5rem; width: 11px; height: 11px; border: 1px solid var(--destaque); background: var(--papel); transform: rotate(45deg); }
.momento-foto { margin: 0 0 1.4rem; }
.momento-quadro {
  position: relative; aspect-ratio: 4 / 5; max-width: 22rem; padding: 10px;
  background: #fff; border: 1px solid var(--linha-suave); box-shadow: var(--sombra);
}
.momento-quadro img { display: block; width: 100%; height: 100%; object-fit: cover; }
.momento-quadro-vazio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; background: var(--papel-escuro); }
.momento-quadro-vazio img { width: 36%; height: auto; opacity: .3; }
.momento-quadro-aviso { font-family: var(--sans); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--tinta-suave); }
.momento-foto figcaption { font-style: italic; font-size: .98rem; color: var(--tinta-suave); margin-top: .6rem; }
.momento-quando { font-family: var(--sans); font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 .35rem; }
.momento-titulo { font-family: var(--script); font-weight: 400; font-size: clamp(2.3rem, 9vw, 3rem); line-height: 1.1; margin: 0 0 .8rem; }
.momento-paragrafo { color: var(--tinta-suave); font-size: 1.15rem; line-height: 1.65; margin: 0 0 .75rem; }

@media (min-width: 48rem) {
  .linha-tempo::before { left: 50%; }
  .momento { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr); align-items: center; padding: 0 0 4.5rem; }
  .momento-marca { left: calc(50% - 6px); top: 50%; }
  .momento-foto { grid-column: 1; grid-row: 1; margin: 0; justify-self: end; width: 100%; max-width: 22rem; }
  .momento-texto { grid-column: 3; grid-row: 1; }
  .momento:nth-child(even) .momento-foto { grid-column: 3; justify-self: start; }
  .momento:nth-child(even) .momento-texto { grid-column: 1; text-align: right; }
  .momento-quadro { transform: rotate(-1.5deg); }
  .momento:nth-child(even) .momento-quadro { transform: rotate(1.5deg); }
}

.momento-final { position: relative; max-width: 34rem; margin: 0 auto; padding: .5rem 1rem 3.5rem; text-align: center; }
.momento-final-marca { display: block; width: 14px; height: 14px; margin: 0 auto 1.4rem; background: var(--destaque); transform: rotate(45deg); }
.momento-final .rotulo { margin-bottom: .4rem; }
.momento-final .titulo { margin-bottom: .75rem; }
.momento-final-texto { font-style: italic; font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.6rem; }

/* ---------- Convite digital ---------- */
.pagina-convite { background: radial-gradient(ellipse at 50% 30%, #FFFFFF 0%, var(--papel) 65%); }
.cena {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem; text-align: center;
  transition: opacity .45s ease, transform .45s ease;
}
.cena .rotulo { margin-bottom: .4rem; }
.cena-titulo { font-family: var(--script); font-weight: 400; font-size: clamp(2.5rem, 11vw, 3.6rem); line-height: 1.1; margin: 0; }
.cena-dica {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta-suave);
  margin: 0; animation: pulsar 2.6s ease-in-out infinite; transition: opacity .3s;
}
@keyframes pulsar { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.cena .rotulo, .cena-titulo { transition: opacity .4s ease; }
.cena.abrindo .cena-dica { opacity: 0; animation: none; }
.cena.abrindo .rotulo, .cena.abrindo .cena-titulo { opacity: 0; }
.cena.saindo { opacity: 0; transform: translateY(-14px); }

.envelope {
  position: relative; display: block; width: min(84vw, 25rem); aspect-ratio: 10 / 7;
  margin: 2.4rem auto 1.6rem; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1100px;
  filter: drop-shadow(0 18px 28px rgba(20, 20, 20, .24)) drop-shadow(0 2px 4px rgba(20, 20, 20, .12));
  transition: transform .3s ease;
}
.envelope:hover { transform: translateY(-3px); }
.envelope:focus-visible { outline: 2px solid var(--destaque-texto); outline-offset: 8px; }
.envelope > span { position: absolute; display: block; }
.env-fundo {
  top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1; border-radius: 3px;
  background: radial-gradient(rgba(212, 178, 106, .5) 1px, transparent 1.6px) 0 0 / 11px 11px, var(--vinho);
  box-shadow: inset 0 0 0 1px #222222; /* borda da cor do envelope: o forro não vaza no contorno */
}
.env-cartao {
  left: 7%; right: 7%; top: 7%; bottom: 7%; z-index: 2;
  display: flex; justify-content: center; align-items: flex-start; padding-top: 7%;
  background: var(--papel-claro); border: 1px solid rgba(20, 20, 20, .16);
  transition: transform 1s cubic-bezier(.2, .75, .25, 1) 1.05s;
}
.env-cartao img { display: block; width: 40%; margin: 0 auto; }
.env-frente {
  top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3; border-radius: 3px; background: #2A2A2A;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-frente::before, .env-frente::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: #222222; }
.env-frente::before { clip-path: polygon(0 0, 50% 54%, 0 100%); }
.env-frente::after { clip-path: polygon(100% 0, 50% 54%, 100% 100%); background: #1D1D1D; }
.env-para {
  left: 0; right: 0; bottom: 11%; z-index: 4; padding: 0 12%;
  font-family: var(--script); font-size: clamp(1.5rem, 6.5vw, 2.1rem); line-height: 1.15; color: var(--ouro-claro);
  pointer-events: none; transition: opacity .3s ease;
}
.env-aba {
  left: 0; right: 0; top: 0; height: 56%; z-index: 5;
  background: linear-gradient(to bottom, #303030, #222222);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.45, .05, .3, 1) .35s, z-index 0s linear .75s;
}
.env-selo {
  left: 50%; top: 56%; z-index: 6; width: 19%; aspect-ratio: 1;
  display: flex !important; align-items: center; justify-content: center;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #8A2E45 0%, #6F1F32 55%, #44101E 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .3), inset 0 0 0 5px #641C2D, inset 0 0 0 6px var(--ouro-claro);
  transition: opacity .4s ease, transform .5s ease;
}
.env-selo img { width: 64%; }
.cena.abrindo .env-selo { opacity: 0; transform: translate(-50%, -20%) scale(.7) rotate(-14deg); }
.cena.abrindo .env-para { opacity: 0; }
.cena.abrindo .env-aba { transform: rotateX(180deg); z-index: 1; }
.cena.abrindo .env-cartao { transform: translateY(-64%); }
.cena.abrindo .envelope { cursor: default; transform: none; }

.convite { padding: clamp(1.5rem, 6vw, 3.5rem) 1rem 3rem; }
.convite-cartao {
  position: relative; max-width: 30rem; margin: 0 auto; text-align: center;
  padding: clamp(2.5rem, 9vw, 3.75rem) clamp(1.5rem, 7vw, 3rem);
  background: var(--papel-claro); border: 1px solid var(--linha); box-shadow: var(--sombra);
}
.convite-cartao::before { content: ''; position: absolute; top: 9px; right: 9px; bottom: 9px; left: 9px; inset: 9px; border: 1px solid var(--destaque); pointer-events: none; }
.convite-abertura { font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--tinta-suave); max-width: 20rem; margin: 0 auto 1.4rem; }
.convite-mono { width: min(72%, 15.5rem); margin: 0 auto 1.6rem; }
.convite-mono img { width: 100%; }
.convite-cartao .ornamento { margin-bottom: 1.5rem; }
.convite-quando { font-family: var(--sans); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; line-height: 2; margin: 0 0 1.1rem; }
.convite-local { font-size: 1.55rem; line-height: 1.25; margin: 0; }
.convite-endereco { color: var(--tinta-suave); font-size: 1.05rem; margin: .25rem 0 1.1rem; }
.convite-detalhe { font-style: italic; margin: 0 0 .3rem; }
#convite-traje { margin-bottom: 1.6rem; }
.convite-prazo { font-family: var(--sans); font-size: .82rem; color: var(--tinta-suave); margin: .8rem 0 1.4rem; }
.convite-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; margin-bottom: 1.4rem; }
.convite-repetir { display: block; margin: 1.5rem auto 0; }
.convite.entrando .convite-cartao { animation: cartao-entra .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cartao-entra { from { opacity: 0; transform: translateY(36px) scale(.97); } to { opacity: 1; transform: none; } }

.gerador { max-width: 34rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem; text-align: center; }
.gerador .painel { text-align: left; margin-top: 1.75rem; }
.gerador-acoes { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .75rem; }

@media (prefers-reduced-motion: reduce) {
  .cena, .env-cartao, .env-aba, .env-selo, .env-para, .envelope { transition: none; }
  .cena-dica { animation: none; opacity: 1; }
  .convite.entrando .convite-cartao { animation: none; }
}

/* ---------- Aviso de privacidade ---------- */
.nota-privacidade { font-family: var(--sans); font-size: .82rem; font-weight: 300; line-height: 1.5; color: var(--tinta-suave); text-align: center; margin: .9rem 0 0; }
.nota-privacidade a { color: var(--tinta); text-decoration-color: var(--destaque); text-underline-offset: .22em; }
.privacidade { max-width: 42rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 3rem; }
.privacidade-cabecalho { text-align: center; margin-bottom: 2.25rem; }
.privacidade-cabecalho .titulo { margin-bottom: .6rem; }
.privacidade-bloco { padding: 1.6rem 0 .9rem; border-top: 1px solid var(--linha); }
.privacidade-bloco h2 { font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--destaque-texto); margin: 0 0 .9rem; }
.privacidade-bloco p, .privacidade-bloco li { color: var(--tinta-suave); font-size: 1.12rem; line-height: 1.6; }
.privacidade-bloco p { margin: 0 0 .75rem; }
.privacidade-bloco ul { margin: 0 0 .75rem; padding-left: 1.15rem; }
.privacidade-bloco li { margin-bottom: .6rem; }
.privacidade-bloco li::marker { color: var(--ouro); }
.privacidade-bloco strong { color: var(--tinta); font-weight: 500; }
.privacidade-contato { margin-top: .4rem; }
.privacidade-atualizado { text-align: center; font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); margin: 1.5rem 0 0; }

/* ---------- Dúvidas ---------- */
.duvidas { max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 3rem; }
.duvidas-cabecalho { text-align: center; margin-bottom: 2.5rem; }
.duvidas-cabecalho .titulo { margin-bottom: .6rem; }
.perguntas { border-top: 1px solid var(--linha); }
.pergunta { border-bottom: 1px solid var(--linha); }
.pergunta summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.15rem .25rem; cursor: pointer; list-style: none;
  font-size: 1.3rem; line-height: 1.35; font-weight: 500;
}
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary:hover { color: var(--tinta-hover); }
.pergunta-icone { position: relative; flex: none; width: 1.6rem; height: 1.6rem; border: 1px solid var(--linha); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.pergunta-icone::before, .pergunta-icone::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: .7rem; height: 1px; background: var(--destaque);
  transform: translate(-50%, -50%); transition: transform .25s ease;
}
.pergunta-icone::after { transform: translate(-50%, -50%) rotate(90deg); }
.pergunta[open] .pergunta-icone { background: var(--tinta); border-color: var(--tinta); }
.pergunta[open] .pergunta-icone::after { transform: translate(-50%, -50%) rotate(0deg); }
.pergunta[open] .pergunta-icone::before, .pergunta[open] .pergunta-icone::after { background: var(--papel); }
.pergunta summary:hover .pergunta-icone { border-color: var(--destaque); }
.pergunta[open] summary:hover .pergunta-icone { border-color: var(--tinta); }
.resposta { padding: 0 2.9rem 1.35rem .25rem; color: var(--tinta-suave); font-size: 1.15rem; line-height: 1.6; }
.resposta p { margin: 0 0 .75rem; }
.resposta p:last-child { margin-bottom: 0; }
.resposta a { color: var(--tinta); text-decoration-color: var(--destaque); text-underline-offset: .25em; }
.pergunta[open] .resposta { animation: surgir .35s ease both; }
@media (prefers-reduced-motion: reduce) { .pergunta[open] .resposta { animation: none; } }
.mais-duvidas { text-align: center; padding-top: 3.5rem; }
.mais-duvidas p { margin-bottom: 1.25rem; }
.chamada-rsvp { margin: 2.5rem 0 1rem; }

@media (max-width: 22rem) {
  .topo-links a { letter-spacing: .12em; font-size: .68rem; }
  .contagem > div { min-width: 3.4rem; padding: 0 .45rem; }
}

/* ---------- Fotos da festa (fotos.html) ---------- */
/* texto só para leitores de tela */
.so-leitor { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.fotos { max-width: 64rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 3rem; }
.fotos-cabecalho { text-align: center; max-width: 34rem; margin: 0 auto 2.25rem; }
.fotos-cabecalho .titulo { margin-bottom: .6rem; }
.fotos-envio { max-width: 36rem; margin: 0 auto; }
.fotos-envio .botao-largo { margin-top: 1.5rem; }
.fotos-fechado { font-style: italic; color: var(--tinta-suave); text-align: center; margin: 0; }

/* escolher arquivos: o campo de verdade fica invisível (mas recebe o foco); o rótulo é a área de toque */
.escolher-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.escolher {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1.5rem 1rem 1.35rem; text-align: center; cursor: pointer;
  background: var(--papel); border: 1px dashed var(--destaque); border-radius: 2px;
  transition: background-color .2s, border-color .2s;
}
.escolher:hover, .escolher.arrastando { background: #fff; border-color: var(--tinta-suave); }
.escolher-input:focus-visible + .escolher { outline: 2px solid var(--destaque-texto); outline-offset: 3px; }
.escolher svg { width: 2.3rem; height: 2.3rem; color: var(--destaque); margin-bottom: .2rem; }
.escolher-titulo { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--tinta); }
.escolher-dica { font-family: var(--sans); font-size: .85rem; font-weight: 300; line-height: 1.45; color: var(--tinta-suave); max-width: 22rem; }

/* fila de envio: prévia, nome do arquivo, situação e barra de progresso */
.fila { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.fila-item {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: .8rem;
  padding: .5rem .35rem .5rem .5rem; background: #fff; border: 1px solid var(--linha); border-radius: 2px;
}
.fila-previa {
  position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; overflow: hidden;
  background: var(--papel-escuro); color: var(--destaque);
}
.fila-previa img { width: 100%; height: 100%; object-fit: cover; }
.fila-previa svg { width: 1.45rem; height: 1.45rem; }
.fila-previa .fila-video { position: absolute; right: .2rem; bottom: .2rem; width: 1.1rem; height: 1.1rem; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.fila-nome { font-family: var(--sans); font-size: .85rem; font-weight: 400; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-estado { font-family: var(--sans); font-size: .8rem; font-weight: 300; line-height: 1.4; color: var(--tinta-suave); margin: .1rem 0 0; }
.fila-item[data-estado="recusado"] .fila-estado, .fila-item[data-estado="erro"] .fila-estado { color: var(--erro); font-weight: 400; }
.fila-item[data-estado="enviado"] .fila-estado { color: var(--tinta); font-weight: 400; }
.fila-item[data-estado="enviado"] .fila-estado::before { content: '\2713\00a0'; color: var(--destaque); }
.fila-barra { display: none; height: 3px; margin-top: .45rem; overflow: hidden; background: var(--papel-escuro); border-radius: 2px; }
.fila-item[data-estado="enviando"] .fila-barra, .fila-item[data-estado="enviado"] .fila-barra { display: block; }
.fila-barra > span { display: block; height: 100%; background: var(--destaque); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
.fila-acoes { display: flex; flex-direction: column; align-items: flex-end; }
.fila-remover {
  display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: transparent; color: var(--tinta-suave); cursor: pointer;
}
.fila-remover:hover { background: var(--papel-escuro); color: var(--tinta); }
.fila-tentar { padding: .35rem .2rem; font-size: .8rem; white-space: nowrap; }
.fotos-situacao .link { padding: 0 .1rem; font-size: .92rem; color: var(--tinta); }

/* feed: como no Instagram, mais novas primeiro. 1 coluna no celular, 2 e depois 3 */
.fotos-feed { padding-top: 3.5rem; text-align: center; }
.fotos-contagem { margin-bottom: 1.6rem; }
.fotos-contagem:focus { outline: none; }
.fotos-estado { font-style: italic; color: var(--tinta-suave); }
.feed { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); max-width: 30rem; text-align: left; }
@media (min-width: 48rem) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (min-width: 64rem) { .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { display: flex; flex-direction: column; min-width: 0; background: var(--papel-claro); border: 1px solid var(--linha); box-shadow: var(--sombra); }
.post-topo { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .7rem .9rem; }
.post-avatar {
  flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--destaque); background: var(--papel);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500; line-height: 1; color: var(--tinta);
}
.post-nome { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.post-quando { flex: none; font-family: var(--sans); font-size: .76rem; color: var(--tinta-suave); white-space: nowrap; }
.post-midia {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; margin: 0; overflow: hidden;
  border: 0; border-radius: 0; background: var(--papel-escuro); cursor: zoom-in; color: inherit; font: inherit;
}
.post-midia img { width: 100%; height: 100%; object-fit: cover; }
.post-midia:focus-visible { outline: 2px solid var(--destaque-texto); outline-offset: -4px; }
.post-midia.sem-imagem img { visibility: hidden; }
.post-espera {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem; text-align: center; font-family: var(--sans); font-size: .82rem; color: var(--tinta-suave);
}
.post-espera svg { width: 2.2rem; height: 2.2rem; color: var(--destaque); }
.post-midia.sem-imagem .post-espera { display: flex; }
.post-play {
  position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  border-radius: 50%; background: rgba(20, 20, 20, .55); color: #fff;
}
.post-play svg { width: .9rem; height: .9rem; margin-left: .12rem; }
.post-selo {
  position: absolute; left: .7rem; bottom: .7rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(20, 20, 20, .72); color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .04em;
}
.post-legenda { margin: 0; padding: .8rem .95rem 1rem; font-size: 1.12rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.fotos-mais { margin-top: 2rem; }

/* aviso de fotos novas (quando a pessoa já rolou para baixo) */
.novas-fotos {
  position: fixed; z-index: 15; left: 0; right: 0; top: calc(4.1rem + env(safe-area-inset-top)); width: max-content; margin: 0 auto;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .55rem 1.25rem .55rem 1rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--papel); background: var(--tinta); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 20, 20, .22);
}
.novas-fotos:hover { background: var(--tinta-hover); }
.novas-fotos svg { width: 1rem; height: 1rem; }
@media (prefers-reduced-motion: no-preference) { .novas-fotos:not([hidden]) { animation: surgir .4s ease both; } }

/* foto ou vídeo ampliado */
.visor {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: #121212; color: #fff; overflow: hidden;
}
.visor::backdrop { background: rgba(18, 18, 18, .7); }
.visor[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.visor :focus-visible { outline-color: var(--ouro-claro); }
.visor-topo { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 3.6rem; padding: .5rem 3.75rem .5rem max(1rem, env(safe-area-inset-left)); }
.visor-topo .post-avatar { border-color: var(--ouro-claro); background: transparent; color: #fff; }
.visor-nome { margin: 0; font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; overflow-wrap: anywhere; }
.visor-quando { margin: 0; font-family: var(--sans); font-size: .78rem; color: rgba(255, 255, 255, .7); }
.visor .fechar { top: .45rem; right: .45rem; color: #fff; }
.visor .fechar:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.visor-midia { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(0rem, 6vw, 4.75rem); }
.visor-midia img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.visor-midia iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
/* vídeo: o player do Drive e, logo abaixo, o link para abrir no próprio Drive (no iPhone o player costuma não tocar) */
.visor-midia.visor-video { flex-direction: column; }
.visor-midia.visor-video iframe { flex: 1 1 0; min-height: 0; height: auto; }
.visor-drive {
  flex: none; align-self: stretch; display: inline-block; padding: .65rem .5rem; text-align: center; font-family: var(--sans); font-size: .9rem; font-weight: 400; line-height: 1.4;
  color: #fff; text-decoration: underline; text-decoration-color: var(--ouro-claro); text-underline-offset: .3em;
}
.visor-drive:hover { color: var(--ouro-claro); }
/* celular deitado: o visor rola em vez de espremer o player (o link e a dica continuam embaixo dele); fotos como antes */
@media (max-height: 30rem) {
  .visor[open] { overflow-y: auto; grid-template-rows: auto minmax(auto, 1fr) auto; }
  .visor-midia.visor-video { min-height: 11rem; }
}
.visor-rodape { padding: .7rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); text-align: center; }
.visor-legenda { max-width: 40rem; margin: 0 auto; font-style: italic; font-size: 1.2rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.visor-nota { max-width: 34rem; margin: .5rem auto 0; font-family: var(--sans); font-size: .82rem; line-height: 1.45; color: rgba(255, 255, 255, .75); }
.visor-posicao { margin: .45rem 0 0; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; color: rgba(255, 255, 255, .6); }
.visor-nav {
  position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; margin-top: -1.5rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.visor-nav:hover { background: rgba(255, 255, 255, .26); }
.visor-nav[disabled] { opacity: .25; cursor: default; }
.visor-anterior { left: max(.6rem, env(safe-area-inset-left)); }
.visor-proxima { right: max(.6rem, env(safe-area-inset-right)); }
@media (max-width: 40rem) { .visor-nav { width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; background: rgba(0, 0, 0, .5); } }
html.visor-aberto { overflow: hidden; }

/* ---------- Telão (fotos.html?telao): apresentação em tela cheia, só fotos ---------- */
.modo-telao, .modo-telao body { background: #000; }
.modo-telao body { overflow: hidden; }
.modo-telao body > :not(.telao) { display: none !important; }
.telao { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: hidden; background: #000; color: #fff; font-family: var(--sans); }
.telao-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.telao-slide.ativo { opacity: 1; }
.telao-fundo { position: absolute; top: -6%; left: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; filter: blur(48px) brightness(.38); }
.telao-foto { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.telao-slide img:not([src]) { visibility: hidden; }
.telao-legenda {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 7rem calc(clamp(8rem, 13vw, 13rem) + clamp(2rem, 5vw, 5rem)) clamp(1.5rem, 3.5vw, 3rem) clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}
.telao-nome { margin: 0 0 .35rem; font-size: clamp(.8rem, 1.2vw, 1.25rem); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ouro-claro); }
.telao-texto { margin: 0; max-width: 42em; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.5vw, 2.8rem); line-height: 1.3; overflow-wrap: anywhere; }
.telao-texto:empty { display: none; }
.telao-vazio { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.telao-vazio .titulo { color: var(--ouro-claro); font-size: clamp(3.5rem, 9vw, 8rem); margin-bottom: 1rem; }
.telao-vazio p:last-child { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 2rem); color: rgba(255, 255, 255, .78); }
.telao-qr {
  position: absolute; right: clamp(1rem, 2.5vw, 2.5rem); bottom: clamp(1rem, 2.5vw, 2.5rem); width: clamp(8rem, 13vw, 13rem);
  padding: .65rem .65rem .55rem; background: #fff; color: var(--tinta); text-align: center; border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.telao-qr svg { display: block; width: 100%; height: auto; }
.telao-qr p { margin: .45rem 0 0; font-size: clamp(.6rem, .85vw, .85rem); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.telao-demo { position: absolute; top: 1rem; left: 1rem; margin: 0; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.telao-botao {
  position: absolute; top: 1rem; right: 1rem; min-height: 2.75rem; padding: .6rem 1.2rem;
  font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .7); border-radius: 2px; cursor: pointer;
  transition: opacity .4s, background-color .2s;
}
.telao-botao:hover { background: rgba(255, 255, 255, .15); }
.telao :focus-visible { outline-color: var(--ouro-claro); }
.telao.quieto { cursor: none; }
.telao.quieto .telao-botao:not(:focus-visible) { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .telao-slide { transition: none; } }

/* painel dos noivos: aba Fotos */
.lista-fotos { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.foto-item { display: flex; flex-direction: column; min-width: 0; background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; }
.foto-item-midia { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--papel-escuro); }
.foto-item-midia img { width: 100%; height: 100%; object-fit: cover; }
.foto-item-midia.sem-imagem img { visibility: hidden; }
.foto-item-midia.sem-imagem::after { content: 'Miniatura ainda não disponível'; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; font-family: var(--sans); font-size: .8rem; color: var(--tinta-suave); }
/* escondida = arquivo privado no Drive: a miniatura só carrega com a conta Google dos noivos aberta */
.foto-item.escondida .foto-item-midia.sem-imagem::after { content: 'Escondida · a miniatura só aparece com a conta Google de vocês aberta neste navegador'; }
.foto-item-midia:focus-visible { outline-offset: -4px; }
.foto-item-tipo { position: absolute; left: .5rem; top: .5rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(20, 20, 20, .72); color: #fff; font-family: var(--sans); font-size: .72rem; }
.foto-item.escondida .foto-item-midia img { opacity: .4; filter: grayscale(1); }
.foto-item-corpo { padding: .8rem .9rem .9rem; }
.foto-item-corpo .item-simples-topo strong { overflow-wrap: anywhere; }

/* ---------- Pedidos aos noivos ("Pedir para retirar" e dados pessoais) ---------- */
.campo .dica { margin-top: .4rem; font-size: .85rem; }
.post-rodape { display: flex; justify-content: flex-end; margin-top: auto; padding: 0 .5rem .2rem; }
.post-pedir, .recado-pedir, .visor-pedir {
  min-height: 2.75rem; padding: .5rem .45rem; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .04em; color: var(--tinta-suave);
  text-decoration: underline; text-decoration-color: var(--linha); text-underline-offset: .22em;
}
.post-pedir:hover, .recado-pedir:hover { color: var(--tinta); text-decoration-color: var(--destaque); }
.recado-pedir { display: block; margin: .35rem -.45rem -.9rem auto; }
.visor-pedir { margin-top: .15rem; color: rgba(255, 255, 255, .72); text-decoration-color: rgba(255, 255, 255, .35); }
.visor-pedir:hover { color: #fff; text-decoration-color: var(--ouro-claro); }

.pedido-sobre { margin: .35rem 0 0; }
.pedido-form { text-align: left; margin-top: 1.25rem; }
.pedido-motivos { margin: 0; padding: 0; border: 0; min-width: 0; }
.pedido-motivos legend { padding: 0; margin-bottom: .55rem; }
.pedido-opcoes { display: grid; gap: .45rem; }
.pedido-opcao {
  display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .8rem; cursor: pointer;
  font-family: var(--sans); font-size: .92rem; line-height: 1.35;
  background: #fff; border: 1px solid var(--borda-campo); border-radius: 2px;
}
.pedido-opcao:hover { border-color: var(--destaque); }
.pedido-opcao input { flex: none; width: 1.1rem; height: 1.1rem; margin: .1rem 0 0; accent-color: var(--tinta); }
.pedido-opcao:has(input:checked) { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.pedido-opcao input:focus-visible { outline: 2px solid var(--destaque-texto); outline-offset: 2px; }
.pedido-form .botao-largo { margin-top: 1.25rem; }
.pedido-enviado { margin-top: 1.25rem; }
.pedido-enviado .titulo { font-size: 2.6rem; margin-bottom: .3rem; }
.pedido-enviado .titulo:focus { outline: none; }

/* formulário do aviso de privacidade */
.pedido-dados { margin: 1.25rem 0 .75rem; padding: 1.25rem 1.2rem 1.35rem; background: var(--papel-claro); border: 1px solid var(--linha); border-radius: 2px; }
.pedido-dados-titulo { font-size: 1.3rem; font-weight: 500; line-height: 1.3; margin: 0; color: var(--tinta); }
.pedido-dados .campo { margin-top: 1rem; }
.pedido-dados .botao { margin-top: 1.1rem; }
.privacidade-bloco .pedido-dados .dica { font-size: .85rem; line-height: 1.45; margin: .4rem 0 0; }
.privacidade-bloco .pedido-dados .aviso { font-size: .95rem; line-height: 1.5; margin: 1rem 0 0; }
.privacidade-bloco a { color: var(--tinta); text-decoration-color: var(--destaque); text-underline-offset: .22em; }

/* painel: post com pedido de retirada e valor de presente fora do comum */
.foto-item-pedido { position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .6rem; border-radius: 999px; background: var(--vinho); color: #fff; font-family: var(--sans); font-size: .72rem; }
.item-alerta { font-family: var(--sans); font-size: .8rem; color: var(--erro); margin: .35rem 0 0; }

/* painel: a grade dos indicadores acompanha a quantidade (6: 3 + 3; 7: 4 + 3) */
@media (min-width: 48rem) { .indicadores[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .indicadores[data-n="7"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .indicadores > .indicador:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ferramenta padrinhos\gerar.html (fica fora do site) */
.gerador-passos { text-align: left; padding-left: 1.2rem; margin: 1rem 0 0; }
.gerador-passos li { margin-bottom: .4rem; }

/* padrinhos.html: endereço antigo que só leva para a Área dos padrinhos */
.redirecionando { margin: 0; padding: 3rem 1rem; text-align: center; }
