/* ==========================================================
   Márgya & Guilherme — site do casamento
   Paleta: oliva, café, creme · Fontes: Pinyon Script, Cormorant Garamond, Jost
   ========================================================== */

:root {
  --oliva: #6b6a3a;
  --oliva-escuro: #56552d;
  --oliva-claro: #a3a270;
  --cafe: #3a2e22;
  --cafe-escuro: #2c231a;
  --creme: #ede4d6;
  --creme-claro: #f6f1e8;
  --papel: #fbf8f2;
  --tinta: #3b3326;
  --tinta-suave: #6d6252;
  --dourado: #b8924a;
  --renda: #f1eadf;

  --script: "Pinyon Script", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --largura: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cafe);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Tipografia ---------- */

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.titulo-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.15;
  margin: 0 0 0.4em;
  text-align: center;
}

.titulo-misto {
  text-align: center;
  margin: 0 0 0.8em;
  font-weight: 400;
  line-height: 1;
}
.titulo-misto .script { font-size: clamp(2.2rem, 5vw, 3rem); margin-right: 0.15em; }
.titulo-misto .caps {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sobretitulo {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  margin: 0;
}

.caps-titulo {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 1.6em;
}

.texto-centro {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
}
.texto-centro p { margin: 0 0 1em; }

/* ---------- Seções ---------- */

.secao { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
.secao--creme { background: var(--creme); color: var(--tinta); }
.secao--creme-claro { background: var(--creme-claro); color: var(--tinta); }
.secao--cafe { background: var(--cafe); color: var(--creme); }
.secao--oliva { background: var(--oliva); color: var(--creme-claro); }

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-width: 170px;
  padding: 0.85em 1.6em;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.secao--cafe .botao:hover,
.secao--oliva .botao:hover { background: var(--creme); color: var(--cafe); }
.secao--creme .botao:hover,
.secao--creme-claro .botao:hover { background: var(--cafe); color: var(--creme); }

.botao--cheio {
  background: var(--oliva-claro);
  border-color: var(--oliva-claro);
  color: var(--cafe-escuro);
}
.botao--cheio:hover { background: var(--oliva); border-color: var(--oliva); color: var(--creme-claro); }

.botoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 18px 28px;
  justify-content: center;
  margin-top: 2.4em;
}
.botoes .botao { width: 100%; }

.icone { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Navegação ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--creme-claro);
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.rolado,
.nav.aberto,
body[data-pagina="faq"] .nav,
body[data-pagina="rsvp"] .nav { background: rgba(44, 35, 26, 0.96); box-shadow: 0 1px 0 rgba(237, 228, 214, 0.08); }

.nav__barra {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 18px var(--gutter) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.35);
}
.nav.rolado .nav__barra { border-bottom-color: transparent; }

.nav__grupo { display: flex; gap: clamp(16px, 3vw, 34px); list-style: none; margin: 0; padding: 0; }

.nav a {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.82;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.nav a:hover,
.nav a.ativo { opacity: 1; }
.nav a.ativo { font-weight: 500; }
.nav a .icone { width: 1.1em; height: 1.1em; }

.nav .nav__monograma {
  display: none;
  font-family: var(--script);
  font-size: 1.7rem;
  text-decoration: none;
  line-height: 1;
}

.nav__menu {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 6px;
  cursor: pointer;
}
.nav__menu span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav.aberto .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.aberto .nav__menu span:nth-child(2) { opacity: 0; }
.nav.aberto .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav .nav__monograma,
  .nav__menu { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(44, 35, 26, 0.98);
    padding: 12px var(--gutter) 28px;
  }
  .nav.aberto .nav__links { display: block; }
  .nav__grupo { flex-direction: column; gap: 0; }
  .nav__grupo a { padding: 14px 0; font-size: 0.8rem; width: 100%; border-bottom: 1px solid rgba(246, 241, 232, 0.1); }
}
@media (min-width: 761px) {
  .nav__links { display: flex; justify-content: space-between; flex: 1; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(560px, 100vh, 1000px);
  min-height: clamp(560px, 100svh, 1000px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--creme-claro);
  overflow: hidden;
  background: url("../img/capa.webp") 46% 40% / cover no-repeat, #4a4630;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 26, 16, 0.35) 0%, rgba(30, 26, 16, 0.12) 45%, rgba(30, 26, 16, 0.5) 100%);
}
.hero__conteudo { position: relative; z-index: 2; text-align: center; padding: 120px var(--gutter) 140px; }
.hero__nomes {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 7rem);
  line-height: 1.05;
  margin: 0.15em 0 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__nomes .e { font-size: 0.55em; margin: 0 0.1em; vertical-align: 0.2em; }
.hero__rodape {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 var(--gutter) 34px;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Hero curto das páginas internas */
.cabecalho-pagina {
  position: relative;
  padding: 150px 0 70px;
  text-align: center;
  color: var(--creme-claro);
  background: var(--cafe);
  overflow: hidden;
}
.cabecalho-pagina .titulo-script { color: var(--creme-claro); margin-bottom: 0.1em; }
.cabecalho-pagina p { margin: 0; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }

/* ---------- Convite ---------- */

.convite { overflow: hidden; }
.convite .titulo-script { color: var(--tinta); }
.convite__assinatura { font-family: var(--script); font-size: 2.1rem; margin-top: 0.4em; font-style: normal; }
.convite__papoulas {
  position: absolute;
  right: clamp(-40px, 2vw, 60px);
  bottom: 0;
  width: clamp(140px, 22vw, 230px);
  color: #6a5a3f;
  pointer-events: none;
}

/* ---------- Contagem ---------- */

.contagem { text-align: center; }
.contagem .titulo-script { color: var(--creme-claro); }
.contagem__numeros {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 18px);
  font-family: var(--serif);
  color: var(--creme-claro);
}
.contagem__bloco { display: flex; flex-direction: column; align-items: center; min-width: 2.2ch; }
.contagem__valor { font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.contagem__rotulo { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.2em; margin-top: 10px; opacity: 0.75; }
.contagem__sep { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; opacity: 0.8; }
.contagem__data { margin-top: 2em; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }

/* ---------- Nossa história (linha do tempo) ---------- */

.historia {
  background:
    url("../img/arte/fundo-historia.webp") center top / cover no-repeat,
    linear-gradient(180deg, #ece4d4 0%, #e3dcc6 35%, #c9c7a4 70%, #7e8656 100%);
  overflow: hidden;
  padding-bottom: 0;
}
.historia__floresta { margin-top: -60px; }

.historia .titulo-script { color: var(--tinta); }
.historia__cipo { position: absolute; top: 0; right: clamp(8px, 4vw, 60px); width: clamp(70px, 10vw, 120px); color: #5b5a33; }

.linha-tempo {
  position: relative;
  max-width: 760px;
  margin: 2em auto 0;
  padding: 10px 0 60px;
  list-style: none;
}
.linha-tempo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed rgba(59, 51, 38, 0.45);
}
.marco {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 36px;
}
.marco::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--tinta);
}
.marco__foto { display: flex; justify-content: center; padding: 0 28px; }
.marco__texto { padding: 0 28px; text-align: center; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--tinta); }
.marco__texto strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 2px; }
.marco:nth-child(even) .marco__foto { order: 2; }
.marco:nth-child(even) .marco__texto { order: 1; }

.marco--final .marco__foto { order: 0; }
.anel { width: 110px; color: var(--tinta); }

@media (max-width: 560px) {
  .linha-tempo::before { left: 18px; }
  .marco { grid-template-columns: 1fr; padding-left: 36px; gap: 14px; }
  .marco::after { left: 18px; top: 24px; }
  .marco .marco__foto,
  .marco:nth-child(even) .marco__foto { order: 1; justify-content: flex-start; padding: 0; }
  .marco .marco__texto,
  .marco:nth-child(even) .marco__texto { order: 0; text-align: left; padding: 0; }
}

/* ---------- Molduras em imagem (artes em assets/img/arte) ---------- */

/* A foto (ou mapa) fica na janela; a arte da moldura é desenhada por cima */
.moldura {
  position: relative;
  aspect-ratio: var(--proporcao);
  margin: 0;
}
.moldura > .foto,
.moldura > iframe {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
}
.moldura::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--arte) center / 100% 100% no-repeat;
  pointer-events: none;
}
.moldura--renda {
  --proporcao: 324 / 384;
  --arte: url("../img/arte/moldura-renda-retrato.webp");
  --x: 12.96%; --y: 10.94%; --w: 74.38%; --h: 78.39%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}
.moldura--dourada {
  --proporcao: 1240 / 960;
  --arte: url("../img/arte/moldura-dourada.webp");
  --x: 4.52%; --y: 5.94%; --w: 91.13%; --h: 88.02%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

/* ---------- Polaroid ---------- */

.polaroid {
  --proporcao: 340 / 400;
  --arte: url("../img/arte/polaroid.webp");
  --x: 4.71%; --y: 4%; --w: 90.59%; --h: 73%;
  position: relative;
  aspect-ratio: var(--proporcao);
  width: 170px;
  margin: 0;
  transform: rotate(var(--giro, 0deg));
  filter: drop-shadow(0 10px 14px rgba(40, 30, 15, 0.28));
}
.polaroid > .foto { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); }
.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--arte) center / 100% 100% no-repeat;
  pointer-events: none;
}
.polaroid figcaption {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 76.5%;
  height: 19.25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--script);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--tinta);
}

/* ---------- Foto com placeholder ---------- */

/* Enquanto a foto não existe, mostra um espaço reservado bem visível:
   ícone de câmera + rótulo, com contorno tracejado */
.foto {
  position: relative;
  width: 100%;
  background-color: #b3a88f;
  background-image:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #c4b99f, #978c72);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.foto:not(.carregada) { outline: 1px dashed rgba(47, 38, 28, 0.45); outline-offset: -7px; }
.foto:not(.carregada)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(22px, 30%, 40px);
  aspect-ratio: 1;
  transform: translate(-50%, -115%);
  background: rgba(47, 38, 28, 0.7);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M3 8h4l2-3h6l2 3h4v11H3z'/%3E%3Ccircle cx='12' cy='13' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.foto::after {
  content: attr(data-rotulo);
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  padding-top: 4px;
  text-align: center;
  font-family: var(--script);
  font-size: 1.35rem;
  line-height: 1.2;
  color: rgba(47, 38, 28, 0.85);
}
.foto.carregada::after { display: none; }

/* ---------- Cartão de renda (programação) ---------- */

/* Moldura fatiada: cantos fixos, bordas esticadas conforme a altura do conteúdo */
.cartao-renda {
  border: 40px solid transparent;
  border-image: url("../img/arte/moldura-renda-cartao.webp") 80 fill / 40px stretch;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

/* ---------- Hospedagem & presentes ---------- */

.hospedagem { overflow: hidden; }
.hospedagem__cipo { position: absolute; top: 0; left: clamp(4px, 3vw, 50px); width: clamp(60px, 9vw, 110px); color: #d9ccb2; opacity: 0.85; }
.hospedagem .texto-centro,
.presentes .texto-centro { color: rgba(237, 228, 214, 0.88); }
.presentes { padding-top: 0; text-align: center; }
.presentes .icone-presente { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--creme); opacity: 0.85; }

/* ---------- FAQ resumido ---------- */

.faq-resumo { padding: clamp(24px, 4vw, 40px) var(--gutter); background: var(--creme); }
.faq-cartao {
  max-width: var(--largura);
  margin: 0 auto;
  border: clamp(10px, 2vw, 18px) solid var(--oliva);
  outline: 1px solid var(--oliva);
  outline-offset: -26px;
  padding: clamp(36px, 6vw, 60px) clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 5vw, 60px);
  align-items: center;
  background: var(--creme);
}
.faq-cartao__palavra {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--tinta);
  margin: 0;
}
.faq-lista { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.faq-lista li { padding: 18px 0; border-bottom: 1px solid rgba(59, 51, 38, 0.6); }
.faq-lista li:last-child { border-bottom: 0; }
.faq-lista h3 { margin: 0 0 6px; font-family: var(--sans); font-weight: 400; font-size: 0.95rem; letter-spacing: 0.01em; }
.faq-lista h3 span { font-size: 0.75rem; margin-right: 12px; }
.faq-lista p { margin: 0; font-style: italic; font-size: 0.95rem; color: var(--tinta-suave); }
.link-seta {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-seta:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .faq-cartao { grid-template-columns: 1fr; outline-offset: -20px; }
  .faq-cartao__palavra { writing-mode: horizontal-tb; transform: none; text-align: center; font-size: 4rem; }
}

/* ---------- Contato (coração) ---------- */

.contato {
  position: relative;
  padding: clamp(80px, 12vw, 130px) 0;
  text-align: center;
  color: var(--creme-claro);
  background: #6d5c45;
  overflow: hidden;
}
.contato__fundo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; }
.contato__fundo.carregada { opacity: 1; }
.contato::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(237, 228, 214, 0.18), transparent 60%),
    linear-gradient(160deg, #8a7a5e 0%, #5d4d38 60%, #3f3325 100%);
}
.contato.tem-foto::before { background: rgba(35, 28, 20, 0.35); z-index: 1; }
.contato > .container { position: relative; z-index: 2; }
.coracao { width: clamp(170px, 26vw, 230px); margin: 0 auto 18px; color: var(--creme-claro); }
.monograma { width: clamp(240px, 36vw, 360px); margin: 0 auto 22px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)); }
.contato p { margin: 0 auto; max-width: 440px; font-style: italic; }

/* ---------- Rodapé ---------- */

.rodape {
  background: var(--cafe-escuro);
  color: rgba(237, 228, 214, 0.7);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rodape .container { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.rodape .script { font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--creme); }

.topo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(237, 228, 214, 0.5);
  background: rgba(44, 35, 26, 0.85);
  color: var(--creme);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.topo.visivel { opacity: 1; pointer-events: auto; }
.topo svg { width: 16px; height: 16px; }

/* ==========================================================
   Página: Local
   ========================================================== */

.local-topo {
  position: relative;
  padding: 150px 0 90px;
  color: var(--creme-claro);
  background:
    linear-gradient(rgba(30, 24, 16, 0.2), rgba(30, 24, 16, 0.35)),
    url("../img/arte/fundo-local.webp") center / cover no-repeat,
    linear-gradient(160deg, #4a3d2d, #2c231a);
  overflow: hidden;
}
.local-topo .titulo-script { color: var(--creme-claro); margin-bottom: 0.05em; }
.local-endereco { text-align: center; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; margin: 0 0 3em; }
.local-grade { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.local-fotos { position: relative; height: 380px; }
.local-fotos .polaroid { position: absolute; width: 150px; }
.local-fotos .polaroid:nth-child(1) { top: 0; left: 6%; --giro: -8deg; }
.local-fotos .polaroid:nth-child(2) { top: 80px; left: 44%; --giro: 7deg; }
.local-fotos .polaroid:nth-child(3) { top: 190px; left: 14%; --giro: -3deg; }
.mapa { border: 0; display: block; filter: sepia(0.15) saturate(0.9); }
.local-acoes { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2.6em; }
.local-acoes .botao:hover { background: var(--creme); color: var(--cafe); }
.local-nota { text-align: center; margin: 2em auto 0; max-width: 520px; font-family: var(--sans); font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 760px) {
  .local-grade { grid-template-columns: 1fr; }
  .local-fotos { height: 330px; max-width: 360px; width: 100%; margin: 0 auto; }
  .local-fotos .polaroid { width: 132px; }
}

.cartoes-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); text-align: center; }
.cartoes-3 h3 { font-family: var(--script); font-weight: 400; font-size: 2.3rem; margin: 0 0 0.3em; line-height: 1.2; }
.cartoes-3 p { margin: 0 0 0.8em; font-style: italic; font-size: 0.98rem; }
@media (max-width: 760px) { .cartoes-3 { grid-template-columns: 1fr; } }

/* ==========================================================
   Página: Detalhes
   ========================================================== */

.detalhes-topo {
  position: relative;
  padding: 150px 0 100px;
  background:
    url("../img/arte/fundo-detalhes.webp") center / cover no-repeat,
    linear-gradient(160deg, #564836, #2f261c);
  overflow: hidden;
}
.programacao { max-width: 560px; margin: 0 auto; }
.programacao__conteudo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 28px; padding: 8px clamp(4px, 2vw, 16px); }
.programacao__titulo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--script);
  font-size: 2.8rem;
  color: #8f8269;
  margin: 0;
  line-height: 1;
}
.programacao table { width: 100%; border-collapse: collapse; }
.programacao td { padding: 12px 6px; border-bottom: 1px solid #3b3326; font-size: 1.05rem; }
.programacao tr:last-child td { border-bottom: 0; }
.programacao td:first-child { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.1em; width: 34%; }

.info-adicional .caps-titulo { color: var(--creme-claro); }
.info-adicional .cartoes-3 h3 { color: var(--creme-claro); }
.info-adicional p { color: rgba(246, 241, 232, 0.9); }
.info-adicional__rodape { text-align: center; margin-top: 3.5em; }
.info-adicional__rodape h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.2rem); margin: 0 0 0.3em; }
.info-adicional__rodape p { max-width: 560px; margin: 0 auto; font-style: italic; }

.paleta { display: flex; justify-content: center; gap: 8px; margin: 1em 0 0.4em; }
.paleta span { width: 22px; height: 22px; border: 1px solid rgba(246, 241, 232, 0.4); }

/* ==========================================================
   Página: Padrinhos
   ========================================================== */

.padrinhos-topo { padding: 140px 0 40px; text-align: center; color: var(--creme-claro); }
.padrinhos-topo .moldura--dourada { max-width: 520px; margin: 0 auto; }
.padrinhos-topo .frase { font-weight: 400; margin: 1.6em 0 0.4em; font-family: var(--sans); font-size: 1rem; letter-spacing: 0.04em; }
.seta-baixo { width: 22px; height: 70px; margin: 0.6em auto 0; color: var(--creme-claro); }

.grade-padrinhos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 22px;
  max-width: 1040px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.padrinho { text-align: center; color: var(--creme); }
@media (min-width: 640px) { .grade-padrinhos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .grade-padrinhos { grid-template-columns: repeat(7, 1fr); } }
.padrinho .moldura--renda { max-width: 150px; margin: 0 auto; }
.padrinho .foto::after { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.08em; }
.padrinho__nome { margin: 14px 0 0; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ==========================================================
   Página: FAQ
   ========================================================== */

.faq-pagina { padding-top: 140px; }
.faq-pagina .titulo-script { color: var(--tinta); margin-bottom: 1em; }
.faq-categoria { margin-bottom: 3em; }
.faq-categoria > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.2em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(59, 51, 38, 0.25);
}
.faq-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 56px; }
.faq-item h3 { margin: 0 0 6px; font-family: var(--sans); font-weight: 500; font-size: 0.88rem; letter-spacing: 0.01em; }
.faq-item p { margin: 0; font-size: 1rem; color: var(--tinta-suave); }
.faq-item a { color: var(--oliva-escuro); }
@media (max-width: 700px) { .faq-grade { grid-template-columns: 1fr; } }

/* ==========================================================
   Página: RSVP
   ========================================================== */

.rsvp { padding-top: 140px; }
.rsvp .titulo-script { color: var(--tinta); margin-bottom: 0.2em; }
.rsvp__intro { text-align: center; font-style: italic; margin: 0 auto 2.4em; max-width: 520px; color: var(--tinta-suave); }
.formulario { max-width: 560px; margin: 0 auto; font-family: var(--sans); }
.campo { margin-bottom: 22px; border: 0; padding: 0; }
.campo > label,
.campo > legend { display: block; font-size: 0.72rem; letter-spacing: 0.06em; margin-bottom: 8px; color: var(--tinta); padding: 0; }
.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="number"],
.campo textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #8a7f6c;
  border-radius: 3px;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--tinta);
}
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus,
.campo textarea:focus { outline: 2px solid var(--oliva-claro); outline-offset: 1px; }
.opcoes { display: grid; gap: 6px; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcao span {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  background: #d9cfbf;
  font-size: 0.85rem;
  color: var(--tinta);
  transition: background 0.2s, color 0.2s;
}
.opcao input:checked + span { background: var(--oliva); color: var(--creme-claro); }
.opcao input:focus-visible + span { outline: 2px solid var(--oliva); outline-offset: 2px; }
.formulario .botao { width: 100%; border-radius: 20px; margin-top: 6px; }
.formulario__aviso { text-align: center; font-size: 0.7rem; margin-top: 10px; color: var(--tinta-suave); }
.formulario__status { text-align: center; margin-top: 18px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; min-height: 1.6em; }
.escondido { display: none !important; }
.voltar { display: block; text-align: center; margin-top: 3em; }

.faixa-fotos { display: grid; grid-template-columns: repeat(4, 1fr); }
.faixa-fotos .foto { aspect-ratio: 1 / 1; }
@media (max-width: 600px) { .faixa-fotos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Animação suave de entrada ---------- */

.revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.icone-presente .icone { width: 100%; height: 100%; }

[data-ornamento] > img,
[data-ornamento] > svg { display: block; width: 100%; height: auto; }
.historia__floresta > img,
.historia__floresta > svg { height: clamp(120px, 16vw, 220px); object-fit: cover; object-position: center bottom; }
.topo img { width: 22px; height: 22px; }

/* Artes fotográficas com fundo transparente */
[data-ornamento] > img { display: block; width: 100%; height: auto; }
.historia__floresta > img { height: clamp(120px, 16vw, 220px); object-fit: fill; }
.seta-baixo > img { height: 100%; object-fit: fill; }
.icone-presente > img { height: 100%; object-fit: contain; }
.topo > img { width: 16px; height: 16px; object-fit: contain; }
.hospedagem__cipo > img { filter: brightness(1.65) saturate(.6); }
@media (max-width: 560px) {
  .convite__papoulas { right: -14px; width: 120px; }
  .hospedagem__cipo { left: -18px; }
}

/* ==========================================================
   Fundos em arte (assets/img/arte/fundo-*.jpg)
   Se o arquivo não existir, fica a cor sólida de baixo.
   ========================================================== */

.convite { background: url("../img/arte/fundo-convite.webp") center / cover no-repeat, var(--creme); }
.contagem { background: url("../img/arte/fundo-contagem.webp") center / cover no-repeat, var(--cafe); }
.hospedagem { background: url("../img/arte/fundo-hospedagem.webp") center / cover no-repeat, var(--cafe); }
.presentes { background: url("../img/arte/fundo-presentes.webp") center / cover no-repeat, var(--cafe); }
.faq-resumo { background: url("../img/arte/fundo-faq.webp") center / cover no-repeat, var(--creme); }
.faq-cartao { background: transparent; }
.rodape { background: url("../img/arte/fundo-rodape.webp") center / cover no-repeat, var(--cafe-escuro); }
.como-chegar { background: url("../img/arte/fundo-como-chegar.webp") center / cover no-repeat, var(--cafe); }
.info-adicional { background: url("../img/arte/fundo-informacoes.webp") center / cover no-repeat, var(--oliva); }
body[data-pagina="padrinhos"] main { background: url("../img/arte/fundo-padrinhos.webp") center top / cover no-repeat, var(--cafe); }
.faq-pagina { background: url("../img/arte/fundo-faq-pagina.webp") center top / cover no-repeat, var(--creme); }
.rsvp { background: url("../img/arte/fundo-rsvp.webp") center / cover no-repeat, var(--creme); }

/* ---------- Botão de música ---------- */

.musica {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(237, 228, 214, 0.55);
  background: rgba(44, 35, 26, 0.85);
  color: var(--creme);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.musica__nota { opacity: 0.55; transition: opacity 0.3s; }
.musica.tocando .musica__nota { opacity: 1; animation: musica-pulso 1.6s ease-in-out infinite; }
/* Risco diagonal quando pausada */
.musica:not(.tocando)::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  opacity: 0.8;
}
@keyframes musica-pulso { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .musica.tocando .musica__nota { animation: none; } }
