/* ============================================================
   karlaemarco.com.br: sistema visual (V1)
   Referência: layout do Canva "Karla e Marco - site de casamento".
   Tokens, fontes e componentes: docs/04-DESIGN.md.

   Fontes provisórias do Google Fonts, sempre por variável: trocar
   pelas licenciadas é só mudar --f-* e o @font-face.
   ============================================================ */

:root {
  /* só tema claro: desliga o escurecimento automático do navegador no celular */
  color-scheme: only light;

  /* texto e contorno */
  --navy:        #33455B;
  --navy-texto:  #304254;
  --tinta:       #101F2C;
  --acento:      #4B6783;
  --azul-floral: #2E628C;

  /* fundos */
  --fundo:       #E6ECF2;
  --fundo-2:     #E9EFF7;
  --branco:      #FEFEFF;
  --azul-medio:  #B6C7DB;
  --navy-fundo:  #33455B;
  --gelo:        #CDE4FF;

  /* linha das ilustrações (já aplicada nos assets) */
  --toile-claro: #D3DAE4;
  --toile-escuro:#293D57;
  --guirlanda:   #A6BED9;
  --borda-hotel: #A5C8F1;

  --coracao:     #C6302C;

  /* fontes (C8: trocar pelas licenciadas aqui) */
  --f-capitular: "Pinyon Script", "Snell Roundhand", cursive;
  --f-titulo:    "Instrument Serif", "Didot", "Bodoni 72", Georgia, serif;
  --f-sub:       "Italiana", "Didot", Georgia, serif;
  --f-corpo:     "Quicksand", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-apoio:     "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mao:       "Pinyon Script", cursive;

  /* medidas */
  --topo-h: 56px;
  --col: 34rem;
  --col-larga: 44rem;
  --gutter: 1.25rem;
}

/* ---- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--topo-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-aberto { overflow: hidden; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--navy-texto);
  font-family: var(--f-corpo);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.pular {
  position: absolute;
  left: .75rem; top: -3rem;
  z-index: 100;
  padding: .5rem .9rem;
  background: var(--navy);
  color: var(--branco);
  font-family: var(--f-apoio);
  font-size: .9rem;
  text-decoration: none;
}
.pular:focus { top: .5rem; }

/* ---- Revelação no scroll (motion.js adiciona .vis) ----------------------- */

.js .revela {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .revela.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .revela { opacity: 1; transform: none; transition: none; }
}

/* ---- Topo fixo ---------------------------------------------------------- */

.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topo-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .5rem 0 1rem;
  background: var(--fundo-2);
  box-shadow: 0 1px 0 rgba(51, 69, 91, .08);
}

.topo-marca {
  font-family: var(--f-capitular);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .3s ease;
}
.topo-marca span { font-size: .8em; margin: 0 .1em; }
.topo.desceu .topo-marca,
.topo.aberto .topo-marca,
.topo-marca:focus-visible { opacity: 1; }

.hamburguer {
  position: relative;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hamburguer span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s ease, opacity .2s ease;
}
.hamburguer span:nth-child(1) { top: 14px; }
.hamburguer span:nth-child(2) { top: 23px; }
.hamburguer span:nth-child(3) { top: 32px; }
.hamburguer[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburguer[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguer[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- Menu em overlay ---------------------------------------------------- */

.menu {
  position: fixed;
  inset: var(--topo-h) 0 0 0;
  z-index: 45;
  overflow-y: auto;
  padding: 2rem var(--gutter) 3rem;
  background: var(--fundo-2);
  display: flex;
  justify-content: center;
}
.menu[hidden] { display: none; }
.menu ul {
  width: 100%;
  max-width: 24rem;
  text-align: center;
}
.menu li + li { border-top: 1px solid rgba(51, 69, 91, .18); }
.menu a {
  display: block;
  padding: .85rem .5rem;
  font-family: var(--f-sub);
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.menu a:hover { color: var(--tinta); }
.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-entra .25s ease; }
}
@keyframes menu-entra { from { opacity: 0; } to { opacity: 1; } }

/* ---- Estrutura comum ---------------------------------------------------- */

main { display: block; }

.secao {
  position: relative;
  padding: 4.5rem var(--gutter);
}
.coluna {
  max-width: var(--col);
  margin-inline: auto;
}
.coluna-larga { max-width: var(--col-larga); }

/* ---- Título com capitular script (componente) --------------------------- */

.titulo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0 auto 2.5rem;
  color: var(--navy);
  text-align: left;
}
.titulo .cap {
  flex: none;
  font-family: var(--f-capitular);
  font-size: clamp(4.4rem, 21vw, 6.4rem);
  line-height: .8;
  margin-right: -.1em;
  position: relative;
  z-index: 0;
}
.titulo .resto {
  position: relative;
  z-index: 1;
  font-family: var(--f-titulo);
  font-size: clamp(2.15rem, 9.8vw, 3.2rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: 0;
}
.titulo .sub-mao {
  display: block;
  margin: .05em 0 0 1.6em;
  font-family: var(--f-mao);
  font-size: .95em;
  line-height: 1;
  text-transform: none;
}
.titulo .titulo-apoio {
  display: block;
  margin-top: .35rem;
  font-family: var(--f-apoio);
  font-weight: 500;
  font-size: clamp(.72rem, 3.2vw, .9rem);
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

.subtitulo {
  margin: 0 0 .5rem;
  font-family: var(--f-sub);
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}

.apoio {
  margin: 0 0 .3rem;
  font-family: var(--f-apoio);
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
}

/* ---- Botões ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .6rem 1.4rem;
  border: 1.5px solid var(--navy);
  border-radius: 0;
  background: var(--azul-medio);
  color: var(--tinta);
  font-family: var(--f-corpo);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #A7BBD2; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }

.btn-lista {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  min-height: 3.4rem;
  margin: 0 auto 1.4rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  background: var(--azul-medio);
  box-shadow: 4px 4px 0 var(--tinta);
  color: var(--tinta);
  font-family: var(--f-corpo);
  font-size: clamp(1.05rem, 4.6vw, 1.25rem);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-lista:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinta); }
.btn-lista:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.btn-lista[hidden] { display: none; }

/* ============================================================
   1. Início
   ============================================================ */

.inicio {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--topo-h) + 2rem);
  padding-bottom: 3rem;
  background: var(--branco) url("img/molduras/toile-claro.webp") center top / 600px auto repeat;
}
@media (min-width: 48rem) {
  .inicio { background-size: 900px auto; }
}

.monograma {
  display: grid;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  color: var(--navy);
  line-height: 1;
}
.mono-linha {
  display: flex;
  align-items: baseline;
  font-family: var(--f-titulo);
  font-size: clamp(3.2rem, 16vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: 0;
}
.mono-linha .cap {
  font-family: var(--f-capitular);
  font-size: clamp(6rem, 29vw, 9.6rem);
  text-transform: none;
  margin-right: -.14em;
  line-height: .8;
}
.mono-1 { justify-self: start; }
.mono-2 { justify-self: end; margin-top: -.15em; }
.mono-e {
  font-family: var(--f-capitular);
  font-size: 1.05em;
  text-transform: none;
  margin-right: .3em;
  align-self: flex-start;
  transform: translateY(.35em);
}

.contagem-caixa {
  width: 100%;
  max-width: 24rem;
  margin: clamp(3rem, 12vh, 6rem) auto 0;
  padding: 1.1rem .75rem 1rem;
  background: rgba(254, 254, 255, .82);
  border-top: 1px solid rgba(51, 69, 91, .35);
  border-bottom: 1px solid rgba(51, 69, 91, .35);
  text-align: center;
  color: var(--navy);
}
.contagem-caixa[hidden] { display: none; }
.contagem-rotulo {
  margin: 0 0 .6rem;
  font-family: var(--f-apoio);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contagem {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.contagem-item + .contagem-item { border-left: 1px solid rgba(51, 69, 91, .2); }
.contagem .n {
  display: block;
  font-family: var(--f-titulo);
  font-size: clamp(2rem, 9.5vw, 2.8rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.contagem .r {
  display: block;
  font-family: var(--f-sub);
  font-size: .74rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .contagem .n.troca { animation: troca .45s ease; }
}
@keyframes troca { from { opacity: .35; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.contagem-hoje {
  margin: 0;
  font-family: var(--f-titulo);
  font-size: 2rem;
  line-height: 1.2;
}

/* ============================================================
   1b. Nossa história
   ============================================================ */

.historia {
  background: var(--fundo);
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.ornamento {
  width: 60%;
  max-width: 18rem;
  margin: 0 auto;
}
.historia-texto {
  margin: 1.75rem auto;
  max-width: 30rem;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
}
.historia-texto p { margin-bottom: .9em; }
.historia-texto p:last-child { margin-bottom: 0; }

/* ============================================================
   2. Quando e onde
   ============================================================ */

.quando {
  background: var(--navy-fundo) url("img/molduras/toile-escuro.webp") center top / 600px auto repeat;
  color: #fff;
}
@media (min-width: 48rem) {
  .quando { background-size: 900px auto; }
}
.quando .titulo { color: var(--gelo); }
.quando .subtitulo { color: #fff; margin-top: .5rem; }
.quando .subtitulo + .apoio { margin-top: .25rem; }

.calendario {
  width: 100%;
  max-width: 22rem;
  margin: 1.75rem auto 3.5rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--f-corpo);
  text-align: center;
}
.calendario th {
  padding-bottom: .5rem;
  font-weight: 300;
  font-size: 1rem;
}
.calendario abbr { text-decoration: none; }
.calendario td {
  height: 2.6rem;
  font-weight: 400;
  font-size: 1.05rem;
}
.dia-casamento {
  position: relative;
  font-weight: 500;
}
.dia-casamento .coracao {
  position: absolute;
  left: 50%; top: 50%;
  width: 2.5rem;
  height: auto;
  transform: translate(-50%, -46%);
  fill: var(--coracao);
}
.dia-casamento span { position: relative; }

.endereco {
  max-width: 21rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

.mapa {
  max-width: 26rem;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: #D8E6D8;
  border: 1px solid rgba(205, 228, 255, .35);
}
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.mapa-botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.25rem;
}
.btn-claro {
  background: var(--gelo);
  border-color: var(--gelo);
  color: var(--tinta);
}
.btn-claro:hover { background: #fff; }

/* ============================================================
   3. Dress code
   ============================================================ */

.dress {
  --borda: 36px;
  padding: calc(var(--borda) + 1.5rem) var(--borda) calc(var(--borda) + 2rem);
  background:
    url("img/molduras/dress-topo.webp") center top / auto var(--borda) repeat-x,
    url("img/molduras/dress-esq.webp") left top / var(--borda) auto repeat-y,
    url("img/molduras/dress-dir.webp") right top / var(--borda) auto repeat-y,
    var(--azul-medio);
  color: var(--navy);
}
.dress::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: var(--borda);
  background: url("img/molduras/dress-topo.webp") center / auto var(--borda) repeat-x;
  transform: scaleY(-1);
}
.dress-painel {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 .75rem;
}
.dress .titulo { margin-bottom: 3rem; }
.dress .titulo .resto { text-align: left; }

.dress-bloco { max-width: 26rem; margin: 0 auto; }
.dress-bloco + .dress-bloco { margin-top: 4.5rem; }
.dress .subtitulo { font-size: 2.1rem; margin-bottom: 1rem; }

.dress-intro {
  font-family: var(--f-corpo);
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.55;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

.vestidos {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0 auto 2.75rem;
  padding-left: 7%;
  max-width: 22rem;
}
.vestidos img {
  width: 25%;
  margin-left: -7%;
}
.ternos { margin: 0 auto 2.75rem; max-width: 24rem; }

.caixas { display: grid; gap: 1.25rem; max-width: 18.5rem; margin: 0 auto; }
.caixa {
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--acento);
  font-family: var(--f-corpo);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--navy);
}

.galeria-pinterest { max-width: 18.5rem; margin: 1.75rem auto 0; }
.galeria-pinterest[hidden] { display: none; }
.pinterest-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-size: .98rem;
  line-height: 1.35;
}
.pinterest-link:hover span { text-decoration: underline; }
.icone-pinterest { flex: none; width: 2.6rem; height: 2.6rem; }
.pinterest-widget { margin: 1.25rem auto 0; overflow: hidden; }
.pinterest-widget:empty { display: none; }
.pinterest-completa {
  display: inline-block;
  margin-top: .75rem;
  font-size: .9rem;
}

/* ============================================================
   4. Programação do dia
   ============================================================ */

.programacao {
  background: var(--azul-medio);
  color: var(--navy);
  padding-inline: .5rem;
  padding-bottom: 1.25rem;
  overflow: hidden;
}
.programacao .titulo { margin-bottom: 1.5rem; }

.arco-caixa {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
}
.arco {
  position: relative;
  padding: 7.5rem .75rem 0;
  background: var(--fundo);
  border-radius: 50% 50% 0 0 / 11rem 11rem 0 0;
  margin: 0 .5rem;
}
.arabesco {
  position: absolute;
  top: 1rem;
  z-index: 2;
  width: 30%;
  max-width: 9rem;
  pointer-events: none;
}
.arabesco-esq { left: -1.35rem; }
.arabesco-dir { right: -1.35rem; }

.linha-tempo {
  --tick: 2.35rem;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  max-width: 22rem;
  margin: 0 auto;
}
.linha-tempo li {
  position: relative;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 .35rem 1.25rem;
  text-align: center;
}
.linha-tempo li:nth-child(1) { grid-row: 1 / span 2; }
.linha-tempo li:nth-child(2) { grid-row: 2 / span 2; }
.linha-tempo li:nth-child(3) { grid-row: 3 / span 2; }
.linha-tempo li:nth-child(4) { grid-row: 4 / span 2; }
.linha-tempo li:nth-child(5) { grid-row: 5 / span 2; }
.linha-tempo li:nth-child(6) { grid-row: 6 / span 2; }
.linha-tempo li:nth-child(7) { grid-row: 7 / span 2; }
.lado-dir { grid-column: 2; padding-left: 1.45rem !important; }
.lado-esq { grid-column: 1; padding-right: 1.45rem !important; }

/* traço vertical: cada item desenha seu trecho na linha central */
.linha-tempo li::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--navy);
}
.lado-dir::after { left: -1px; }
.lado-esq::after { right: -1px; }
.linha-tempo li:first-child::after { top: var(--tick); }
.linha-tempo li:last-child::after { bottom: auto; height: var(--tick); }

/* traço horizontal até o momento */
.linha-tempo li::before {
  content: "";
  position: absolute;
  top: var(--tick);
  width: 1.25rem;
  height: 2px;
  background: var(--navy);
}
.lado-dir::before { left: 0; }
.lado-esq::before { right: 0; }

.linha-tempo .hora {
  font-family: var(--f-sub);
  font-size: 1.2rem;
  line-height: 1.3;
}
.linha-tempo .momento {
  font-family: var(--f-sub);
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-top: .15rem;
  max-width: 9rem;
}
.linha-tempo img {
  width: auto;
  height: 2.9rem;
  margin-top: .6rem;
}
.linha-tempo img.fim { height: 3.6rem; margin-top: .2rem; }

.passaro {
  width: 5.5rem;
  margin: .5rem auto 0;
  position: relative;
  left: -1.2rem;
}

/* ============================================================
   5. Confirmação de presença
   ============================================================ */

.confirmacao {
  background: var(--branco);
  color: var(--navy);
  padding-bottom: 3rem;
  overflow: hidden;
}
.confirmacao .titulo { margin-bottom: 1.75rem; }
.confirmacao-texto {
  max-width: 22rem;
  margin: 0 auto;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.65;
  text-align: center;
  color: var(--navy);
}

.guirlanda {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(135vw, 42rem);
  margin: 1.5rem calc(var(--gutter) * -1) 0;
  padding: 4rem 0 5rem;
  background: url("img/ornamentos/guirlanda.webp") center / min(135vw, 42rem) auto no-repeat;
}

.rsvp, .rsvp-ok {
  width: 100%;
  max-width: 17rem;
  position: relative;
}
.campo { margin-bottom: 1.15rem; }
.campo label {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--f-sub);
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}
.campo input,
.campo select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .55rem .7rem;
  border: 2px solid var(--navy);
  border-radius: 0;
  background: #fff;
  color: var(--navy-texto);
  font-family: var(--f-corpo);
  font-size: 1rem;
}
.campo select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333455B' stroke-width='1.6'/%3E%3C/svg%3E") right .8rem center / .8rem no-repeat;
}
.campo input::placeholder { color: #6B7C8F; opacity: 1; }
.campo input[aria-invalid="true"] { border-color: var(--coracao); }
.campo-erro, .rsvp-erro {
  margin: .35rem 0 0;
  padding: .3rem .5rem;
  background: rgba(255, 255, 255, .92);
  color: #9A2420;
  font-size: .9rem;
  line-height: 1.4;
}
.rsvp-erro { margin: 0 0 1rem; }
.rsvp-erro a { font-weight: 500; }
.rsvp .btn { display: flex; width: 100%; margin-top: 1.5rem; }

/* Mulheres + um número de calçado por mulher */
.campo-calcado {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.campo-calcado legend {
  padding: 0;
  margin-bottom: .2rem;
  font-family: var(--f-sub);
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}
.campo-ajuda {
  margin: 0 0 .5rem;
  font-size: .88rem;
  line-height: 1.35;
  color: var(--navy-texto);
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}
.campo .rotulo-menor {
  font-family: var(--f-corpo);
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.calcados {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem .75rem;
  margin-top: .75rem;
}
.calcados:empty { display: none; }
.campo .calcado label {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .2rem;
  font-family: var(--f-corpo);
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}
.calcado select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .45rem 2rem .45rem .6rem;
  border: 2px solid var(--navy);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333455B' stroke-width='1.6'/%3E%3C/svg%3E") right .7rem center / .75rem no-repeat;
  color: var(--navy-texto);
  font-family: var(--f-corpo);
  font-size: 1rem;
}
.campo select[aria-invalid="true"],
.calcado select[aria-invalid="true"] { border-color: var(--coracao); }

.rsvp-breve .rsvp-zap {
  display: inline-flex;
  margin-top: .9rem;
  font-weight: 500;
  text-underline-offset: .25em;
}

.rsvp-ok {
  padding: 1.5rem 1.25rem;
  background: rgba(254, 254, 255, .94);
  border: 1.5px solid var(--navy);
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--navy);
}
.rsvp-ok strong {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
}
.rsvp-ok:focus { outline: none; }
.rsvp-ok:focus-visible { outline: 2px solid var(--navy); }

/* ============================================================
   6. Lista de presentes
   ============================================================ */

.presentes {
  background: var(--fundo);
  color: var(--navy);
  overflow: hidden;
  padding-bottom: 5rem;
}
.presentes-texto {
  position: relative;
  max-width: 23rem;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  color: var(--navy-texto);
}
.presentes-texto p { position: relative; margin-bottom: 1.3em; }
.presentes-texto p:last-of-type { margin-bottom: 0; }
.presentes-texto .flor {
  position: absolute;
  left: 50%; top: -2.5rem;
  width: 82%;
  max-width: 19rem;
  transform: translateX(-50%);
  opacity: .6;
  pointer-events: none;
}
.botoes-lista { position: relative; }

/* ============================================================
   7. Dicas e informações
   ============================================================ */

.dicas {
  background: var(--fundo-2);
  color: var(--navy);
  border-top: 1px solid var(--navy);
  padding-bottom: 3.5rem;
}
.lista-dicas {
  max-width: 24rem;
  margin: 0 auto;
}
.dica {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: .55rem 0;
  font-family: var(--f-sub);
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.dica-icone { display: flex; justify-content: center; }
.dica-icone img { width: auto; max-width: 4.5rem; max-height: 3.6rem; }
.dica:nth-child(5) .dica-icone img,
.dica:nth-child(7) .dica-icone img { max-height: 4.4rem; }
.dica:nth-child(8) .dica-icone img { max-height: 5.2rem; max-width: 5.5rem; }
.dica a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

.paleta {
  max-width: var(--col-larga);
  margin: 4rem auto 0;
}
.paleta-titulo {
  margin-bottom: 1.5rem;
  font-family: var(--f-corpo);
  font-size: 1.5rem;
  text-align: center;
}
.paleta-grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.paleta-rotulo {
  margin: 0 0 .8rem;
  font-family: var(--f-sub);
  font-size: .98rem;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
}
.paleta-padrinhos .paleta-rotulo:not(:first-child) { margin-top: 1.25rem; margin-bottom: .2rem; }
.paleta-legenda {
  margin: .4rem 0 .4rem;
  font-size: .95rem;
  text-align: center;
}
.barras {
  display: grid;
  gap: .9rem;
  margin-left: calc(var(--gutter) * -1);
}
.barras span {
  display: block;
  height: 2.3rem;
  border-radius: 0 999px 999px 0;
  background: var(--c);
}
.circulos {
  display: flex;
  justify-content: center;
  padding-left: .9rem;
}
.circulos span {
  width: 3.1rem;
  height: 3.1rem;
  margin-left: -.9rem;
  border-radius: 50%;
  background: var(--c);
}

.hoteis-intro {
  margin: 4.5rem auto 1.5rem;
  max-width: 26rem;
  font-size: 1.3rem;
  line-height: 1.4;
  text-align: center;
}
.hoteis {
  display: grid;
  gap: 1rem;
}
@media (min-width: 30rem) {
  .hoteis { grid-template-columns: 1fr 1fr; gap: .5rem; }
}
.hotel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 1rem;
  border: 1.5px solid var(--borda-hotel);
  text-align: center;
}
.hotel h3 {
  margin-bottom: .75rem;
  font-family: var(--f-sub);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hotel p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
}
.hotel-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  margin-top: .75rem;
  padding: 0 .5rem;
  font-size: .95rem;
  font-weight: 500;
  text-underline-offset: .25em;
}
.hotel-link svg { width: 1.9rem; height: auto; }
.hotel-link .pino { width: 1rem; }
.hotel-link[hidden] { display: none; }
.hotel-mapa {
  width: 100%;
  height: 9.5rem;
  margin-top: .9rem;
  background: #D8E6D8;
  border: 1px solid var(--borda-hotel);
}
.hotel-mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
.hotel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.1rem;
  margin-top: .35rem;
}
.hotel-links .hotel-link { margin-top: 0; }

/* ---- Rodapé ------------------------------------------------------------- */

.rodape {
  padding: 2rem var(--gutter) 2.25rem;
  background: var(--navy-fundo);
  color: var(--gelo);
  text-align: center;
  font-family: var(--f-apoio);
  font-size: .85rem;
  letter-spacing: .04em;
}
.rodape p { margin: 0; }
.rodape-marca {
  font-family: var(--f-capitular);
  font-size: 1.5rem;
  letter-spacing: 0;
}
.rodape a { color: var(--gelo); }

/* ============================================================
   presentes.html: a lista em formato de cardápio
   ============================================================ */

.pagina-presentes { background: var(--fundo); }

.lista-topo {
  padding: calc(var(--topo-h) + 3rem) var(--gutter) 2rem;
  text-align: center;
  background: var(--fundo);
}
.lista-topo .titulo { margin-bottom: 1.25rem; }
.lista-topo .ornamento { margin-top: .5rem; }

.lista {
  position: relative;
  padding: 0 var(--gutter) 4rem;
}
.lista .coluna { max-width: 36rem; }

.aviso {
  margin: 0 auto 2rem;
  padding: 1.25rem 1.25rem .5rem;
  border: 1.5px solid var(--acento);
  background: rgba(254, 254, 255, .6);
  color: var(--navy-texto);
  font-size: 1rem;
  line-height: 1.6;
}
.aviso strong { font-weight: 500; color: var(--navy); }

.meta {
  margin: 0 auto 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--fundo-2);
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
}
.meta[hidden] { display: none; }
.meta-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin-bottom: .6rem;
}
.meta .grande {
  font-family: var(--f-titulo);
  font-size: 2rem;
  line-height: 1;
}
.meta .grande[hidden] { display: none; }
.meta .de { font-size: .92rem; }
.barra {
  height: 6px;
  background: rgba(51, 69, 91, .15);
  overflow: hidden;
}
.barra i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--navy);
  transition: width 1.2s ease;
}
.meta.passou .barra i { background: var(--acento); }
.meta .nota { margin: .6rem 0 0; font-size: .92rem; }

.cats {
  position: sticky;
  top: var(--topo-h);
  z-index: 10;
  display: flex;
  gap: .4rem;
  margin: 0 calc(var(--gutter) * -1) 1.5rem;
  padding: .6rem var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--fundo);
  border-bottom: 1px solid rgba(51, 69, 91, .2);
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none;
  padding: .35rem .8rem;
  border: 1px solid var(--acento);
  font-family: var(--f-sub);
  font-size: .98rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
}
.cats a.ativo { background: var(--navy); color: var(--branco); border-color: var(--navy); }

.menu-grupo { margin-bottom: 2.5rem; scroll-margin-top: 3.5rem; }
.menu-grupo .eyebrow {
  margin: 0 0 .5rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--navy);
  font-family: var(--f-sub);
  font-size: 1.5rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
}

.item {
  display: block;
  width: 100%;
  padding: .95rem .25rem;
  border: 0;
  border-bottom: 1px dotted rgba(51, 69, 91, .35);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--navy-texto);
  transition: background-color .2s ease;
}
.item:hover { background: rgba(182, 199, 219, .28); }
.item .linha {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.item .nome {
  font-family: var(--f-titulo);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--navy);
}
.item .pontos {
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(51, 69, 91, .5);
  transform: translateY(-.3em);
}
.item .valor {
  flex: none;
  font-family: var(--f-apoio);
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  white-space: nowrap;
}
.item .cota {
  font-weight: 400;
  font-size: .78rem;
  color: var(--acento);
}
.item .sub {
  margin: .2rem 0 0;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--navy-texto);
}
.item .progresso {
  display: block;
  height: 4px;
  margin-top: .6rem;
  background: rgba(51, 69, 91, .14);
  overflow: hidden;
}
.item .progresso i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acento);
  transition: width 1.1s ease;
}
.item .contador {
  display: block;
  margin-top: .3rem;
  font-family: var(--f-apoio);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--acento);
}
.item.completo .progresso i { background: var(--navy); }

.rodape-lista {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: .95rem;
  color: var(--navy-texto);
}
.lista .ornamento { margin-top: 2rem; }

.lista-lua {
  padding-top: 4rem;
  border-top: 1px solid rgba(51, 69, 91, .25);
  background: var(--fundo-2);
  scroll-margin-top: 0;
}
.lista-lua[hidden] { display: none; }
.lua-intro {
  max-width: 28rem;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
}
.lista-lua .menu-grupo .eyebrow { display: none; }

.item.fechado { cursor: default; opacity: .62; }
.item.fechado:hover { background: transparent; }
.item.fechado .nome { text-decoration: line-through; text-decoration-thickness: 1px; }
.item.fechado .contador { color: var(--navy); font-weight: 500; }

/* ---- Modal PIX ---------------------------------------------------------- */

.modal {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1.5px solid var(--navy);
  border-radius: 0;
  background: var(--branco);
  color: var(--navy-texto);
  box-shadow: 6px 6px 0 var(--tinta);
}
.modal::backdrop { background: rgba(16, 31, 44, .55); }
.modal .fechar {
  position: absolute;
  top: .25rem; right: .25rem;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}
.modal-corpo { padding: 1.75rem 1.4rem 1.5rem; }
.modal h3 {
  padding-right: 2rem;
  font-family: var(--f-titulo);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--navy);
}
.modal .sub { margin: .35rem 0 1rem; font-size: .95rem; }
.modal label {
  display: block;
  margin: 1rem 0 .3rem;
  font-family: var(--f-sub);
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
}
.modal .opc { text-transform: none; font-family: var(--f-corpo); font-size: .85rem; }
.modal input:not(#q), .modal textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .5rem .65rem;
  border: 2px solid var(--navy);
  border-radius: 0;
  background: #fff;
}
.modal textarea { min-height: 5rem; resize: vertical; }
.qtd {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.qtd button {
  width: 44px; height: 44px;
  border: 1.5px solid var(--navy);
  background: var(--azul-medio);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--tinta);
}
.qtd input {
  width: 4rem;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.qtd input::-webkit-outer-spin-button,
.qtd input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtd .total {
  margin-left: auto;
  font-family: var(--f-titulo);
  font-size: 1.7rem;
  color: var(--navy);
}
.qr-area { text-align: center; }
.qr-area .qtd { justify-content: center; text-align: left; }
#qr { display: flex; justify-content: center; margin: 1.25rem auto .75rem; }
#qr img, #qr canvas { width: 220px; height: 220px; }
.sem-qr { font-size: .9rem; }
.codigo {
  margin: .5rem 0 .25rem;
  font-family: var(--f-apoio);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: .12em;
  color: var(--navy);
}
.qr-area > p { font-size: .92rem; line-height: 1.5; }
.copiacola {
  max-height: 5.5rem;
  margin: .5rem 0 1rem;
  padding: .6rem;
  overflow: auto;
  background: var(--fundo);
  border: 1px dashed var(--acento);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.4;
  text-align: left;
  word-break: break-all;
}
.modal .btn { display: flex; width: 100%; margin-top: .6rem; }
.btn.secundario { background: var(--branco); }
.btn.secundario:hover { background: var(--fundo); }
.sucesso { text-align: center; }
.marca-ok {
  margin: 0 auto .5rem;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--navy);
}

/* ---- Desktop ------------------------------------------------------------ */

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .secao { padding-top: 6rem; padding-bottom: 6rem; }
  .topo { padding: 0 1rem 0 1.5rem; }
  .programacao { padding-bottom: 2rem; }
  .guirlanda { margin-inline: 0; }
  .barras { margin-left: 0; }
  .barras span { border-radius: 999px; }
}

/* Desktop: a moldura vira a borda de um painel central de 40rem */
@media (min-width: 48rem) {
  .dress {
    --borda: 54px;
    padding: 4rem var(--gutter);
    background: var(--azul-medio);
  }
  .dress::after { display: none; }
  .dress-painel {
    position: relative;
    max-width: 40rem;
    padding: calc(var(--borda) + 3.25rem) calc(var(--borda) + 1.5rem) calc(var(--borda) + 2.5rem);
    background:
      url("img/molduras/dress-topo.webp") center top / auto var(--borda) repeat-x,
      url("img/molduras/dress-esq.webp") left top / var(--borda) auto repeat-y,
      url("img/molduras/dress-dir.webp") right top / var(--borda) auto repeat-y,
      var(--azul-medio);
    box-shadow: 0 0 0 1px rgba(46, 98, 140, .25);
  }
  .dress-painel::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: var(--borda);
    background: url("img/molduras/dress-topo.webp") center / auto var(--borda) repeat-x;
    transform: scaleY(-1);
  }
}
