/* Rancho do Augusto: rústico elegante. Papel off-white, verde-sálvia e terracota suave.
   Títulos em Cormorant Garamond (serifa fina de convite), texto em Nunito Sans. */
:root {
  --papel: #FBF8F2;
  --linho: #F4EFE5;
  --cartao: #FFFDF9;
  --linha: #E6DED0;
  --tinta: #2E2A25;
  --tinta-suave: #6B6258;
  --salvia: #6F8061;
  --salvia-escura: #536247;
  --salvia-clara: #E3E8DB;
  --terracota: #B5683F;
  --terracota-escura: #94512D;
  --terracota-clara: #F5E6DC;
  --foco: #536247;
  --raio: 16px;
  --sombra: 0 1px 2px rgba(46, 42, 37, .04), 0 8px 24px rgba(46, 42, 37, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.0625rem/1.65 'Nunito Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--tinta);
}
h2 { font-size: clamp(2.1rem, 7vw, 2.9rem); text-align: center; }
h3 {
  font: 700 .78rem/1.3 'Nunito Sans', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--salvia-escura);
  margin: 2.75rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
h3::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
a { color: var(--terracota-escura); }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- Ramo botânico em traço ---------- */
.ramo { display: block; width: min(240px, 62vw); height: auto; margin: 0 auto; }
.ramo .haste { stroke: var(--salvia); stroke-width: 1.4; }
.ramo .folhas path { fill: var(--salvia-clara); stroke: var(--salvia); stroke-width: 1.2; }
.ramo .flor { fill: var(--terracota-clara); stroke: var(--terracota); stroke-width: 1.2; }

/* ---------- Abertura: a porteira se abre, o sol se põe atrás da serra e as luzinhas acendem ---------- */
/* Céu em cima com o título; a paisagem fica embaixo, com altura própria, e nunca sobe por trás das letras.
   Linha do tempo: porteira abre (0,5 a 2,3 s), sol desce e o céu escurece (0,3 a 6,5 s), luzes acendem
   do centro para fora (4,4 a 6,6 s). Quem pede menos movimento já vê a cena da noite pronta. */
.abertura {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #3B587A 0%, #6F8AA5 45%, #B7B5A6 75%, #E9C68C 100%);
}
.abertura::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.6px 1.6px at 12% 14%, #F6EBD3 60%, transparent),
    radial-gradient(1.2px 1.2px at 22% 32%, #F6EBD3 60%, transparent),
    radial-gradient(1.8px 1.8px at 34% 8%, #F6EBD3 60%, transparent),
    radial-gradient(1.2px 1.2px at 46% 24%, #F6EBD3 60%, transparent),
    radial-gradient(1.2px 1.2px at 58% 18%, #F6EBD3 60%, transparent),
    radial-gradient(1.6px 1.6px at 71% 9%, #F6EBD3 60%, transparent),
    radial-gradient(1.2px 1.2px at 83% 26%, #F6EBD3 60%, transparent),
    radial-gradient(1.8px 1.8px at 92% 12%, #F6EBD3 60%, transparent),
    radial-gradient(1.2px 1.2px at 6% 38%, #F6EBD3 60%, transparent),
    radial-gradient(1.4px 1.4px at 96% 40%, #F6EBD3 60%, transparent),
    linear-gradient(180deg, #121B2E 0%, #22314B 42%, #4B4B60 72%, #A9705A 100%);
  opacity: 0;
  animation: anoitecer 5.2s ease-in-out 1.3s both;
}
.cena {
  position: relative;
  z-index: 1;
  order: 2;
  display: block;
  width: 100%;
  /* No celular, mínimo de 300px; em tela larga, no máximo metade da altura da tela. */
  height: clamp(300px, 34.2vw, 52svh);
  margin-top: auto;
}
.abertura-texto {
  position: relative;
  z-index: 1;
  order: 1;
  text-align: center;
  padding: clamp(3rem, 9vh, 5.5rem) 16px 2rem;
  color: #FBF4E4;
  text-shadow: 0 2px 0 rgba(43, 29, 20, .35);
}
.convite {
  margin: 0;
  font: 700 .8rem/1 'Nunito Sans', sans-serif;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.abertura h1 {
  font-size: clamp(3.2rem, 14vw, 7.2rem);
  font-weight: 600;
  margin: .2em 0 .25em;
  letter-spacing: -.015em;
  color: #FBF4E4;
}
.quando { font: 500 italic clamp(1.25rem, 4.4vw, 1.6rem)/1.3 'Cormorant Garamond', Georgia, serif; margin: 0; }
.onde { margin: .45rem 0 0; font-size: .98rem; letter-spacing: .02em; opacity: .92; }
/* Cardápio: menu pequeno e discreto, em duas colunas com ícones */
.cardapio {
  display: inline-block;
  margin: 1.3rem auto 0;
  padding: .7rem 1.2rem .8rem;
  border: 1px solid rgba(251, 244, 228, .35);
  border-radius: 14px;
  background: rgba(18, 27, 46, .22);
  text-shadow: none;
  text-align: left;
}
.cardapio-titulo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .5rem;
  font: 700 .66rem/1 'Nunito Sans', sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
}
.cardapio-titulo::before, .cardapio-titulo::after { content: ''; flex: 1; height: 1px; background: rgba(251, 244, 228, .35); }
.cardapio-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; } /* as duas colunas com a mesma largura */
.cardapio-colunas > div + div { padding-left: 1.4rem; border-left: 1px solid rgba(251, 244, 228, .25); }
.cardapio-sub { margin: 0 0 .25rem; font: 500 italic 1.02rem/1.2 'Cormorant Garamond', Georgia, serif; color: #F3CFAF; }
.cardapio ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.cardapio li { display: flex; align-items: center; gap: .45rem; font-size: .86rem; line-height: 1.35; white-space: nowrap; }
.cardapio-musica {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: .65rem 0 0; padding-top: .55rem;
  border-top: 1px solid rgba(251, 244, 228, .25);
  font: 500 italic 1.1rem/1.2 'Cormorant Garamond', Georgia, serif; color: #F3CFAF;
}
.cardapio-musica .cardapio-icone { width: 17px; height: 17px; }
.cardapio-icone { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

/* Porteira */
.folha { transform-box: fill-box; animation: abrir 1.8s cubic-bezier(.45, 0, .2, 1) .5s both; }
.folha-esq { transform-origin: left center; }
.folha-dir { transform-origin: right center; animation-name: abrir-dir; }
@keyframes abrir { to { transform: scaleX(.16) skewY(4deg); } }
@keyframes abrir-dir { to { transform: scaleX(.16) skewY(-4deg); } }

/* Sol descendo atrás da serra, cada vez mais alaranjado */
.sol { animation: sol-se-pondo 6.2s cubic-bezier(.4, 0, .6, 1) .3s both; }
.sol-brilho { animation: brilho-se-pondo 6.2s cubic-bezier(.4, 0, .6, 1) .3s both; }
@keyframes sol-se-pondo {
  from { transform: translateY(-8px); fill: #F7DC8C; }
  to { transform: translateY(78px); fill: #EE8A4E; }
}
@keyframes brilho-se-pondo {
  from { transform: translateY(-8px); opacity: 1; }
  to { transform: translateY(70px); opacity: .55; }
}

/* Céu e paisagem escurecendo */
@keyframes anoitecer { to { opacity: 1; } }
.morro-longe { animation: noite-longe 5.2s ease-in-out 1.3s both; }
.morro-meio { animation: noite-meio 5.2s ease-in-out 1.3s both; }
.morro-perto { animation: noite-perto 5.2s ease-in-out 1.3s both; }
.chao-frente { animation: noite-chao 5.2s ease-in-out 1.3s both; }
.madeira { animation: noite-madeira 5.2s ease-in-out 1.3s both; }
.cerca, .travessa { animation: noite-madeira-traco 5.2s ease-in-out 1.3s both; }
@keyframes noite-longe { to { fill: #4D5568; } }
@keyframes noite-meio { to { fill: #3F4B3C; } }
@keyframes noite-perto { to { fill: #333D2A; } }
@keyframes noite-chao { to { fill: #283121; } }
@keyframes noite-madeira { to { fill: #3D2715; } }
@keyframes noite-madeira-traco { to { stroke: #3D2715; } }

/* Luzinhas de varanda: acendem do centro (a porteira) para fora e ficam piscando de leve */
.varal .fio { fill: none; stroke: #2A1E16; stroke-width: 1.6; opacity: .85; }
.varal .bocal { fill: #6B5A45; }
.varal .lampada { fill: #FFE6A6; }
.luz .acesa { opacity: 0; animation: acender .5s ease-out var(--d) both; }
.luz .halo { animation: cintilar 2.6s ease-in-out calc(var(--d) + .5s) infinite alternate; }
.luz:nth-child(3n) .halo { animation-duration: 3.4s; }
.luz:nth-child(3n+1) .halo { animation-duration: 2.1s; }
@keyframes acender {
  0% { opacity: 0; }
  60% { opacity: 1; }
  75% { opacity: .55; }
  100% { opacity: 1; }
}
@keyframes cintilar { to { opacity: .6; } }

/* Dupla sertaneja: aparece quando a porteira abre e toca a festa inteira */
.musico { transform-box: fill-box; transform-origin: 50% 100%; animation: balanco 1.4s ease-in-out infinite alternate; }
.musico-sanfona { animation-duration: 1.7s; animation-direction: alternate-reverse; }
.fole { transform-box: fill-box; transform-origin: center; animation: fole 1.1s ease-in-out infinite alternate; }
.mao-violao { transform-box: fill-box; transform-origin: 0 0; animation: batida .35s ease-in-out infinite alternate; }
.nota { opacity: 0; animation: nota 3.2s ease-out infinite; }
.nota-2 { animation-delay: 1.1s; }
.nota-3 { animation-delay: 2.2s; }
@keyframes balanco { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
@keyframes fole { from { transform: scaleX(.75); } to { transform: scaleX(1.25); } }
@keyframes batida { to { transform: rotate(14deg); } }
@keyframes nota {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .95; }
  100% { opacity: 0; transform: translate(10px, -46px); }
}

@media (prefers-reduced-motion: reduce) {
  .abertura *, .abertura::before {
    animation-duration: .001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Página só de presentes (/presentes) ---------- */
.topo-presentes { display: none; }
.so-presentes .topo-presentes {
  display: block;
  text-align: center;
  padding: 2.5rem 20px 2rem;
  border-bottom: 1px solid var(--linha);
}
.topo-presentes h1 { font-size: clamp(2.6rem, 10vw, 4.2rem); margin: .25em 0 .3em; }
.topo-presentes .convite { margin: 0; }
.voltar { display: inline-block; margin-top: 1rem; font-weight: 700; text-underline-offset: 4px; }
.so-presentes .abertura,
.so-presentes .faixa-contagem,
.so-presentes .resumo,
.so-presentes #presentes > h2,
.so-presentes #local,
.so-presentes #presenca,
.so-presentes #mural { display: none; }
.so-presentes #presentes { padding-top: 1.75rem; }
.so-presentes .chamada-presentes { display: none; }
body:not(.so-presentes) .lista-completa { display: none; }

/* ---------- Chamada da lista na página inicial ---------- */
.chamada-presentes {
  display: grid;
  margin-top: 1.5rem;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  background: var(--cartao);
  box-shadow: var(--sombra);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chamada-presentes:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(46, 42, 37, .05), 0 14px 32px rgba(46, 42, 37, .08); }
.chamada-presentes img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--linho); }
.chamada-texto { display: grid; gap: 10px; padding: 22px 22px 24px; justify-items: start; }
.chamada-titulo { font: 500 clamp(1.6rem, 4.5vw, 2.1rem)/1.1 'Cormorant Garamond', Georgia, serif; }
.chamada-sub { color: var(--tinta-suave); line-height: 1.5; }
.chamada-botao { margin-top: 6px; }
@media (min-width: 760px) {
  .chamada-presentes { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .chamada-presentes img { height: 100%; }
  .chamada-texto { padding: 32px; }
}

/* ---------- Contagem ---------- */
.faixa-contagem { text-align: center; padding: 3rem 20px 0; }
.tabuleta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font: 500 clamp(3.4rem, 14vw, 4.6rem)/1 'Cormorant Garamond', Georgia, serif;
  color: var(--terracota-escura);
}
.tabuleta::before, .tabuleta::after {
  font: 700 .74rem/1 'Nunito Sans', sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.tabuleta[data-pre]::before { content: attr(data-pre); margin-bottom: .55rem; }
.tabuleta[data-pos]::after { content: attr(data-pos); margin-top: .55rem; }
.pais { font: italic 500 1.3rem/1.4 'Cormorant Garamond', Georgia, serif; color: var(--tinta-suave); margin: 1.1rem auto 0; max-width: 36ch; }

/* ---------- Resumo: quando, onde, presença ---------- */
.resumo { max-width: 1000px; margin: 2.5rem auto 0; padding: 0 16px; display: grid; gap: 12px; }
.resumo-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 20px;
  line-height: 1.45;
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.resumo-icone { width: 30px; height: 30px; fill: none; stroke: var(--terracota); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.resumo-titulo { text-align: left; font: 700 .74rem/1.3 'Nunito Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia-escura); margin-bottom: 4px; }
.resumo-item p { margin: 0; }
/* Os links ficam no pé de cada cartão, na mesma altura nos três lado a lado. */
.resumo-item > div { display: flex; flex-direction: column; }
.resumo-acoes { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: auto; padding-top: 6px; }
.link-acao {
  font: 700 .95rem/1.3 'Nunito Sans', sans-serif;
  color: var(--terracota-escura);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(181, 104, 63, .45);
}
.link-acao:hover { text-decoration-color: var(--terracota); }
@media (min-width: 760px) { .resumo { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- Seções ---------- */
.secao { max-width: 1000px; margin: 0 auto; padding: 5rem 16px 0; }
.secao::before { /* varal de luzinhas de varanda, como o do convite */
  content: '';
  display: block;
  width: 96px;
  height: 24px;
  margin: 0 auto 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 24'%3E%3Cpath d='M2 3 Q48 21 94 3' fill='none' stroke='%235B4032' stroke-width='1'/%3E%3Ccircle cx='12.8' cy='11.5' r='5' fill='%23F7DC8C' opacity='.45'/%3E%3Crect x='11.6' y='6.5' width='2.4' height='2.6' rx='.5' fill='%235B4032'/%3E%3Ccircle cx='12.8' cy='11.5' r='2.4' fill='%23F2C14E' stroke='%23C9962C' stroke-width='.6'/%3E%3Ccircle cx='30.4' cy='15.3' r='5' fill='%23F7DC8C' opacity='.45'/%3E%3Crect x='29.2' y='10.3' width='2.4' height='2.6' rx='.5' fill='%235B4032'/%3E%3Ccircle cx='30.4' cy='15.3' r='2.4' fill='%23F2C14E' stroke='%23C9962C' stroke-width='.6'/%3E%3Ccircle cx='48' cy='16.6' r='5' fill='%23F7DC8C' opacity='.45'/%3E%3Crect x='46.8' y='11.6' width='2.4' height='2.6' rx='.5' fill='%235B4032'/%3E%3Ccircle cx='48' cy='16.6' r='2.4' fill='%23F2C14E' stroke='%23C9962C' stroke-width='.6'/%3E%3Ccircle cx='65.6' cy='15.3' r='5' fill='%23F7DC8C' opacity='.45'/%3E%3Crect x='64.4' y='10.3' width='2.4' height='2.6' rx='.5' fill='%235B4032'/%3E%3Ccircle cx='65.6' cy='15.3' r='2.4' fill='%23F2C14E' stroke='%23C9962C' stroke-width='.6'/%3E%3Ccircle cx='83.2' cy='11.5' r='5' fill='%23F7DC8C' opacity='.45'/%3E%3Crect x='82.0' y='6.5' width='2.4' height='2.6' rx='.5' fill='%235B4032'/%3E%3Ccircle cx='83.2' cy='11.5' r='2.4' fill='%23F2C14E' stroke='%23C9962C' stroke-width='.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lede { max-width: 58ch; margin: 1rem auto 0; text-align: center; color: var(--tinta-suave); }
.lede + .lede { margin-top: .6rem; }

/* Texto da lista de presentes: leitura de carta/jornal, alinhado à esquerda, parágrafos curtos */
.carta {
  max-width: 34rem;
  margin: 1.6rem auto 0;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--tinta);
  text-align: center;
}
.carta p { margin: 0 0 .9em; }
/* Quebra de linha só no computador; no celular o texto corre normal. */
.quebra-larga { display: none; }
@media (min-width: 760px) { .quebra-larga { display: inline; } }
.carta-abre {
  font: 500 italic clamp(1.55rem, 5.2vw, 1.9rem)/1.25 'Cormorant Garamond', Georgia, serif;
  color: var(--terracota-escura);
}
.carta-titulo {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.8em 0 .7em !important;
  font: 700 .74rem/1 'Nunito Sans', sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--salvia-escura);
}
.carta-titulo::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
.carta strong { color: var(--terracota-escura); font-weight: 700; }
.carta p:last-child { margin-bottom: 0; }
#presentes { padding-top: 5rem; }

/* ---------- Presentes grandes ---------- */
.grandes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.grande {
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 22px 22px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .2s ease;
}
.grande:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(46, 42, 37, .05), 0 14px 32px rgba(46, 42, 37, .08); }
.grande-cabeca { display: flex; gap: 16px; align-items: center; }
.grande-cabeca > div { flex: 1; min-width: 0; display: grid; gap: 6px; }
.grande-foto { width: 96px; height: 96px; flex: none; border-radius: 12px; object-fit: cover; background: var(--linho); }
.grande-topo { display: grid; gap: 4px; }
.grande-nome { font: 500 1.45rem/1.15 'Cormorant Garamond', Georgia, serif; margin: 0; min-width: 0; overflow-wrap: break-word; }
.grande-valor { white-space: nowrap; color: var(--terracota-escura); font-weight: 700; font-variant-numeric: tabular-nums; }
.grande .miudo-desc { margin: -4px 0 0; }
.cerca-progresso {
  --p: 0%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--salvia) 0 var(--p), var(--salvia-clara) var(--p) 100%);
  margin: 4px 0 2px;
}
.grande-rodape { display: grid; gap: 10px; }
.falta { margin: 0; color: var(--tinta-suave); font-size: .95rem; }
.completo { background: var(--linho); }
.completo .falta { color: var(--salvia-escura); font-weight: 700; }

/* ---------- Presentes do dia a dia: grade de cartões ---------- */
.miudos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.miudo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 14px 14px 14px 18px;
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: 14px;
  transition: border-color .2s ease;
}
.miudo:hover { border-color: #D6CBB8; }
.miudo.com-foto { grid-template-columns: 64px minmax(0, 1fr); padding-left: 12px; }
.miudo-foto { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--linho); }
.escolhido .miudo-foto { opacity: .55; filter: grayscale(.4); }
.miudo-corpo { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* Cartões da mesma linha com a mesma altura: o valor desce para o pé do bloco e os botões para o pé do cartão,
   então ficam alinhados mesmo quando o nome tem uma linha num cartão e duas no outro. */
.miudo { grid-template-rows: 1fr auto; align-items: stretch; }
.miudo-foto { align-self: start; }
.miudo-acao { margin-top: auto; }
.miudo-nome { margin: 0; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.miudo-desc { display: block; font-size: .88rem; color: var(--tinta-suave); font-weight: 400; margin-top: 2px; }
.miudo-acao { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.miudo-valor { white-space: nowrap; font-weight: 700; color: var(--terracota-escura); font-variant-numeric: tabular-nums; font-size: .98rem; }
.sugestao { font-size: .72em; font-weight: 400; color: var(--tinta-suave); letter-spacing: .02em; margin-right: 4px; }
.escolhido { background: var(--linho); color: var(--tinta-suave); }
.escolhido .miudo-nome { text-decoration: line-through; text-decoration-color: rgba(107, 98, 88, .45); }
.selo { font-size: .85rem; color: var(--salvia-escura); font-weight: 700; white-space: nowrap; }
.carregando { color: var(--tinta-suave); font-style: italic; text-align: center; }
@media (min-width: 560px) { .miudos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .miudos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grandes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grandes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Botões e formulários ---------- */
.botao {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--terracota);
  color: #FFFAF4;
  font: 700 .95rem/1 'Nunito Sans', sans-serif;
  letter-spacing: .02em;
  padding: .85em 1.4em;
  min-height: 46px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  transition: background .2s ease;
}
.botao:hover { background: var(--terracota-escura); }
.botao:disabled { opacity: .6; cursor: progress; }
.botao-claro { background: transparent; color: var(--terracota-escura); box-shadow: inset 0 0 0 1px rgba(181, 104, 63, .55); }
.botao-claro:hover { background: var(--terracota-clara); }
.botao-verde { background: var(--salvia); }
.botao-verde:hover { background: var(--salvia-escura); }
.botao-pequeno { min-height: 38px; padding: .55em 1.05em; font-size: .88rem; }
/* Presentear e Vou levar pessoalmente: pequenos, lado a lado numa linha só, dividindo a largura do cartão. */
.acoes-presente { display: flex; gap: 8px; grid-column: 1 / -1; }
.botao-mini { flex: 1 1 auto; min-height: 38px; padding: .5em .8em; font-size: .8rem; white-space: nowrap; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; justify-content: center; }

.formulario { display: grid; gap: 14px; margin-top: 1.5rem; }
#presenca .formulario {
  max-width: 560px;
  margin: 1.75rem auto 0;
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 24px;
  box-shadow: var(--sombra);
}
.formulario label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.formulario input:not([type=checkbox]):not([type=radio]), .formulario textarea {
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
}
.formulario textarea { resize: none; } /* o recado não cresce pela alça do canto */
.formulario input:focus, .formulario textarea:focus { border-color: var(--salvia); outline: none; box-shadow: 0 0 0 3px rgba(111, 128, 97, .2); }
.formulario .marcar { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.marcar input { width: 18px; height: 18px; accent-color: var(--salvia); }
/* Adultos e crianças: uma linha cada, pergunta à esquerda e número à direita. */
.dupla { display: grid; gap: 10px; }
.campo-numero { display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: 14px; }
.campo-numero .rotulo { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.campo-numero .dica { display: block; font-weight: 400; font-size: .85rem; color: var(--tinta-suave); }
.escolher-numero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  color: inherit;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.escolher-numero:hover { border-color: var(--salvia); }
.escolher-numero svg { width: 20px; height: 20px; fill: none; stroke: var(--tinta-suave); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-numero { width: min(360px, calc(100vw - 24px)); }
.modal-numero h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.numeros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.numeros .numero { width: calc((100% - 24px) / 4); }
.numero {
  font: 600 1.15rem/1 'Nunito Sans', sans-serif;
  color: var(--tinta);
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 12px;
  aspect-ratio: 1;
  cursor: pointer;
}
.numero:hover { border-color: var(--salvia); background: var(--salvia-clara); }
.numero.escolhido { background: var(--salvia); border-color: var(--salvia); color: #fff; }
.pote-de-mel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aviso { margin: 0; min-height: 1.2em; font-size: .95rem; }
.aviso.erro { color: #9A2B1B; }
.aviso.ok { color: var(--salvia-escura); font-weight: 700; }

/* ---------- Mapa ---------- */
#local .lede { text-align: center; }
.mapa { margin: 1.5rem auto 0; max-width: 820px; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--linha); aspect-ratio: 16 / 10; background: var(--linho); box-shadow: var(--sombra); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.8); }

/* ---------- Mural ---------- */
.bilhetes { columns: 2 240px; column-gap: 14px; margin-top: 1.5rem; }
.bilhete {
  break-inside: avoid;
  margin: 0 0 14px;
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: var(--sombra);
}
.bilhete p { margin: 0; }
.bilhete cite { display: block; margin-top: 10px; font: italic 500 1.1rem/1.2 'Cormorant Garamond', Georgia, serif; color: var(--salvia-escura); }
.vazio { color: var(--tinta-suave); font-style: italic; column-span: all; text-align: center; }

/* ---------- Rodapé ---------- */
.rodape { margin-top: 6rem; padding: 3rem 20px 3.5rem; text-align: center; background: var(--linho); border-top: 1px solid var(--linha); }
/* Varal de luzinhas de varanda no rodapé, como o enfeite das seções (sem degradê: o brilho é um círculo claro translúcido). */
.luzinhas { display: block; margin: 0 auto; height: auto; }
.luzinhas-rodape { width: min(200px, 54vw); }
.luzinhas .fio { fill: none; stroke: #5B4032; stroke-width: 1.4; }
.luzinhas .bocal { fill: #5B4032; }
.luzinhas .brilho { fill: #F7DC8C; opacity: .45; }
.luzinhas .lampada { fill: #F2C14E; stroke: #C9962C; stroke-width: .8; }
.rodape p { margin: 1rem 0 0; font: italic 500 1.2rem/1.4 'Cormorant Garamond', Georgia, serif; color: var(--tinta-suave); }

/* ---------- Janela do presente ---------- */
.modal {
  border: 0;
  border-radius: 20px;
  padding: 26px 22px 22px;
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  background: var(--cartao);
  color: var(--tinta);
  box-shadow: 0 24px 70px rgba(46, 42, 37, .28);
}
.modal::backdrop { background: rgba(46, 42, 37, .45); backdrop-filter: blur(2px); }
/* Janela compacta, sem rolagem no celular: foto pequena ao lado do nome, cotas em grade 2 × 2. */
.modal-cabeca { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.modal-foto { display: block; flex: none; width: 76px; height: 76px; margin: 0; border-radius: 12px; object-fit: cover; background: var(--linho); }
#modal .formulario { margin-top: 2px; gap: 10px; }
.campo-valor small { font-weight: 400; color: var(--tinta-suave); font-size: .85rem; }
.campo-valor[hidden] { display: none; }
.valor-entrada { position: relative; display: block; }
.valor-entrada > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--terracota-escura); pointer-events: none; }
#modal .formulario .valor-entrada input:not([type=checkbox]):not([type=radio]) { padding-left: 42px; font-weight: 700; color: var(--terracota-escura); font-size: 1.05rem; }
@media (max-height: 800px) { /* tela baixa (celular pequeno, notebook): aperta um pouco mais para não rolar */
  .modal { padding: 16px 16px 14px; }
  .modal-cabeca .modal-foto { width: 58px; height: 58px; }
  .modal-cabeca h2 { font-size: 1.25rem; }
  #modal .formulario { gap: 8px; }
  #modal .formulario label { gap: 3px; }
  #modal .formulario input:not([type=checkbox]):not([type=radio]), #modal .formulario textarea { padding: 8px 12px; }
  #modal .formulario textarea { height: 56px; }
  #modal .cota span { padding: 7px 12px; }
  #modal .botao { min-height: 42px; }
}
@media (max-height: 700px) { /* celular bem baixo: as cotas já dizem o que são, sem o título */
  #modal .formulario { gap: 6px; }
  #modal .cotas legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #modal .cotas { gap: 6px; }
  #modal .cota span { padding: 5px 10px; }
  #modal .formulario textarea { height: 44px; }
  #modal .modal-cabeca .modal-foto { width: 50px; height: 50px; }
  #modal .passo { gap: 8px; }
  #modal [data-passo=pagar] h2 { font-size: 1.55rem; }
  #modal .instrucoes { font-size: .86rem; line-height: 1.4; }
}
.modal-foto[hidden] { display: none; }
.modal-foto img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.modal h2 { font-size: 1.9rem; padding-right: 36px; text-align: left; }
.modal-cabeca h2 { font-size: 1.45rem; line-height: 1.15; padding-right: 0; margin: 0; }
.modal-valor { margin: .25rem 0 0; color: var(--terracota-escura); font-weight: 700; }
.fechar-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.fechar { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--tinta-suave); width: 44px; height: 44px; cursor: pointer; border-radius: 50%; }
.fechar:hover { background: var(--linho); }
.passo { display: grid; gap: 12px; }
.cotas { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cotas legend { font-weight: 600; margin-bottom: 6px; padding: 0; font-size: .95rem; }
.cota { position: relative; }
.cota input { position: absolute; opacity: 0; }
.cota span {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--linha);
  border-radius: 12px;
  flex-direction: column;
  gap: 0;
  font-size: .88rem;
  line-height: 1.3;
  cursor: pointer;
  font-weight: 400;
  background: var(--papel);
}
.cota input:checked + span { border-color: var(--salvia); background: #F1F4EC; box-shadow: inset 0 0 0 1px var(--salvia); }
.cota input:focus-visible + span { outline: 2px solid var(--foco); outline-offset: 2px; }
.cota strong { white-space: nowrap; font-size: 1rem; }
.qr { background: #fff; border-radius: 14px; padding: 12px; width: min(260px, 100%); justify-self: center; border: 1px solid var(--linha); }
.qr svg { display: block; width: 100%; height: auto; }
/* Aviso de código copiado: flutua por cima do topo da janela, sem ocupar espaço (a janela não ganha rolagem). */
.copiado {
  position: absolute; top: 12px; left: 16px; right: 16px; z-index: 2; margin: 0;
  padding: 12px 14px; border-radius: 12px; text-align: center;
  background: var(--salvia-escura); color: #FFFAF4; font-weight: 700; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(46, 42, 37, .25);
}
.copiado[hidden] { display: none; }
.qr { width: min(260px, 100%, 34svh); }
.instrucoes { margin: 0; padding-left: 1.2em; font-size: .95rem; color: var(--tinta-suave); }
.instrucoes li + li { margin-top: 4px; }
.ferradura { width: 56px; height: 56px; justify-self: center; color: var(--terracota); }
[data-passo=obrigado] { text-align: center; }
[data-passo=obrigado] h2 { text-align: center; padding-right: 0; }
.em-maos { display: grid; gap: 10px; }
.em-maos p { margin: 0; font-size: .95rem; color: var(--tinta-suave); }

/* ---------- Foto ampliada ---------- */
.foto-botao { padding: 0; border: 0; background: var(--linho); cursor: zoom-in; overflow: hidden; display: block; }
.foto-botao img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.foto-botao:hover img { transform: scale(1.04); }
.foto-botao:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
/* A janela cabe inteira na tela, sem rolagem: a foto quadrada usa o menor entre 560 px, a largura e a altura livres. */
.modal-zoom { width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100svh - 24px); padding: 12px 12px 14px; overflow: hidden; }
.modal-zoom .fechar-form { top: 18px; right: 18px; }
.modal-zoom .fechar { background: rgba(255, 253, 249, .85); }
.modal-zoom img { display: block; width: min(560px, calc(100vw - 48px), calc(100svh - 130px)); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--linho); }
.zoom-legenda { margin: .6rem 4px 0; max-width: min(560px, calc(100vw - 48px), calc(100svh - 130px)); text-align: center; font: 500 1.35rem/1.25 'Cormorant Garamond', Georgia, serif; }

/* ---------- Busca na lista de presentes ---------- */
.dica-fralda { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 1.5rem 0 0; }
.dica-fralda img { width: 64px; height: 64px; flex: none; }
.dica-fralda p { margin: 0; display: grid; gap: 2px; text-align: left; }
.dica-rotulo { font: 700 .72rem/1.2 'Nunito Sans', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--salvia-escura); }
.dica-marcas { font: 500 1.45rem/1.15 'Cormorant Garamond', Georgia, serif; color: var(--terracota-escura); }
.miudo[hidden], .grande[hidden], h3[hidden] { display: none !important; }
