/* ==========================================================
   Luisa e Rodrigo · Guia dos convidados
   Paleta tirada do convite e do selo. Fontes:
   EB Garamond (a mesma família do convite) nos títulos;
   Red Hat Text (feita para leitura em tela) no texto.
   ========================================================== */

@font-face { font-family: "EB Garamond"; src: url(../fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/eb-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/eb-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(../fonts/red-hat-text-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(../fonts/red-hat-text-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papel: #FAF6EC;
  --papel-claro: #FFFDF7;
  --folha: #EEEEDD;
  --linha: #DCD8C2;
  --salvia: #989B86;
  --salvia-media: #7D836A;
  --salvia-funda: #4A5240;
  --tinta: #2C3326;
  --texto-2: #5A6250;
  --caqui: #BDB889;
  --selo: #ECE9DC;

  --f-titulo: "EB Garamond", "Garamond", Georgia, serif;
  --f-texto: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --coluna: 36rem;
  --margem: 1.25rem;
  --altura-abas: 4.5rem;
  --raio: .75rem;
}

/* tamanho de letra ajustável (botão "Letra maior") */
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-letra="1"] { font-size: 112.5%; }
html[data-letra="2"] { font-size: 125%; }

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

body {
  margin: 0;
  color: var(--tinta);
  font: 500 1.1875rem/1.55 var(--f-texto);
  background-color: var(--papel);
  /* fibras de papel, como o convite */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.42' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.3 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--salvia-funda); text-underline-offset: .18em; }
p { margin: 0 0 .9rem; }
h1, h2, h3, h4 { font-family: var(--f-titulo); font-weight: 500; color: var(--salvia-funda); line-height: 1.12; margin: 0; letter-spacing: -.005em; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--salvia-funda); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topo ---------- */
.topo {
  max-width: var(--coluna); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem var(--margem) 0;
  padding-top: max(.75rem, env(safe-area-inset-top));
}
.topo-marca { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; }
.topo .lr { width: 1.8rem; height: 2rem; fill: var(--salvia-media); }

.btn-letra {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 3rem; padding: .35rem .95rem .35rem .75rem;
  border: 1.5px solid var(--salvia-media); border-radius: 999px;
  background: var(--papel-claro); color: var(--salvia-funda);
  font-weight: 700; font-size: 1rem; cursor: pointer;
}
.btn-letra-a { font-family: var(--f-titulo); font-weight: 600; font-size: 1rem; line-height: 1; }
.btn-letra-a span { font-size: 1.45em; }

/* ---------- estrutura ---------- */
main {
  max-width: var(--coluna); margin: 0 auto;
  padding: 0 var(--margem) calc(var(--altura-abas) + 2.5rem + env(safe-area-inset-bottom));
}
.vista[hidden] { display: none; }

.vista-topo { padding: 1.4rem 0 1.25rem; }
.vista-topo h1 { font-size: 2.6rem; margin-bottom: .55rem; }
.vista-topo p { color: var(--texto-2); margin: 0; max-width: 32rem; }

.titulo-secao { font-size: 1.85rem; margin: 2.6rem 0 .6rem; }

/* ---------- abertura (o selo carimbado) ---------- */
.abertura { text-align: center; padding: .25rem 0 .5rem; position: relative; }

.abertura-arte {
  position: relative; height: 19.5rem;
  margin: 0 calc(var(--margem) * -1);
  overflow: hidden;
}
.ramo {
  position: absolute; width: 11rem; right: -2.2rem; top: 4.2rem;
  transform: rotate(8deg); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
}
.selo {
  position: absolute; left: 50%; top: 1.4rem;
  width: 11.5rem; margin-left: -7.2rem;
  transform: rotate(-4deg);
  filter: drop-shadow(0 1px 0 rgba(120,112,80,.18)) drop-shadow(0 12px 16px rgba(74,82,64,.16));
}
.selo-svg { width: 100%; height: auto; }

.carimbo {
  position: absolute; left: 50%; top: 1.5rem;
  width: 23rem; margin-left: -.9rem;
  transform: rotate(-9deg);
  color: var(--salvia-funda); opacity: .82;
  overflow: visible;
}
.carimbo circle, .carimbo .onda { stroke: currentColor; }
.carimbo text { fill: currentColor; }
.carimbo-arco { font: 700 13px var(--f-texto); letter-spacing: 3.2px; }
.carimbo-data { font: 600 22px var(--f-titulo); letter-spacing: 1px; }
.carimbo-ano { font: 600 17px var(--f-titulo); letter-spacing: 2px; }

.nomes {
  font-size: clamp(2.7rem, 11vw, 3.6rem);
  font-weight: 500; line-height: 1; letter-spacing: -.01em;
  margin: .3rem 0 .85rem; position: relative;
}
.abertura-sub { font-size: 1.25rem; max-width: 22rem; margin: 0 auto 1.1rem; position: relative; }
.abertura-data { font-family: var(--f-titulo); font-size: 1.45rem; color: var(--salvia-funda); margin: 0 0 .15rem; position: relative; }
.contagem { color: var(--texto-2); margin: 0; position: relative; }

/* o único momento animado: o selo cai e é carimbado */
@media (prefers-reduced-motion: no-preference) {
  .selo { animation: selo-cai .75s cubic-bezier(.2,.9,.25,1.15) .15s both; }
  .carimbo-anel { transform-box: fill-box; transform-origin: center; animation: carimba .32s ease-out .9s both; }
  .carimbo .onda { stroke-dasharray: 230; stroke-dashoffset: 230; animation: risca .7s ease-out both; animation-delay: calc(1.05s + var(--i) * .06s); }
}
@keyframes selo-cai {
  0%   { opacity: 0; transform: translateY(-1.4rem) scale(1.14) rotate(-11deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(-4deg); }
}
@keyframes carimba {
  0%   { opacity: 0; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes risca { to { stroke-dashoffset: 0; } }

/* ---------- cartão-postal: próximo compromisso ---------- */
.proximo-area { margin-top: 2rem; }
.postal {
  position: relative;
  background: var(--papel-claro);
  border: 1px solid var(--linha);
  border-radius: .5rem;
  padding: 1.35rem 1.25rem 1.3rem;
  box-shadow: 0 1px 0 rgba(140,130,90,.15), 0 18px 30px -22px rgba(60,68,52,.45);
}
.postal-quando {
  display: inline-block; font-weight: 700; font-size: 1rem; color: var(--salvia-funda);
  background: var(--folha); border-radius: 999px; padding: .2rem .8rem; margin-bottom: .9rem;
}
.postal-quando.hoje { background: var(--salvia-funda); color: var(--papel-claro); }
.postal-mini-selo { position: absolute; top: 1rem; right: 1rem; width: 3.2rem; }
.postal h2 { font-size: 2rem; margin: 0 0 .35rem; }
.postal-data { font-family: var(--f-titulo); font-size: 1.3rem; color: var(--salvia-funda); margin: 0 3.6rem .2rem 0; }
.postal-local { font-weight: 700; margin: 0; }
.postal-end { color: var(--texto-2); margin: 0 0 1.1rem; }

/* ---------- botões ---------- */
.botoes { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn {
  flex: 1 1 calc(50% - .3rem);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.4rem; padding: .7rem .75rem;
  border-radius: var(--raio); border: 2px solid transparent;
  font: 700 1.05rem/1.2 var(--f-texto); text-decoration: none; text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn-principal { flex-basis: 100%; background: var(--salvia-funda); color: var(--papel-claro); }
.btn-principal:active { background: var(--tinta); }
.btn-sec { background: var(--papel-claro); color: var(--salvia-funda); border-color: var(--salvia-media); }
.btn-sec:active { background: var(--folha); }
.btn-inteiro { flex-basis: 100%; }

/* ---------- atalhos da página inicial ---------- */
.atalhos { list-style: none; margin: 0; padding: 0; }
.atalhos li + li { border-top: 0; }
.atalhos li { position: relative; }
.atalhos li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: radial-gradient(circle, var(--caqui) 1.7px, transparent 2.1px) 0 50% / 11px 6px repeat-x; opacity: .75; }
.atalho {
  display: flex; align-items: center; gap: 1rem;
  min-height: 5rem; padding: .85rem 0;
  color: inherit; text-decoration: none;
}
.atalho-icone {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--folha); color: var(--salvia-funda);
}
.atalho-icone svg, .atalho-seta { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atalho-txt { flex: 1; min-width: 0; }
.atalho-txt strong { display: block; font-size: 1.2rem; color: var(--tinta); }
.atalho-txt span { display: block; color: var(--texto-2); font-size: 1rem; line-height: 1.4; }
.atalho-seta { color: var(--salvia-media); flex: none; }

.rodape { text-align: center; padding: 3rem 0 1rem; color: var(--texto-2); }
.rodape .lr { width: 2.9rem; height: 3.3rem; margin: 0 auto .8rem; fill: var(--salvia); }
.rodape p { font-family: var(--f-titulo); font-style: italic; font-size: 1.3rem; margin: 0; }

/* ---------- agenda (linha do tempo) ---------- */
.linha-tempo { list-style: none; margin: 0; padding: 0; position: relative; }
.dia { position: relative; padding: 0 0 2.2rem; }
.dia + .dia { padding-top: 2rem; }
.dia + .dia::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: radial-gradient(circle, var(--caqui) 1.7px, transparent 2.1px) 0 50% / 11px 6px repeat-x; opacity: .75; }
.dia-cab { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.dia-selo {
  flex: none; width: 3.5rem; height: 4rem;
  display: grid; place-content: center; text-align: center; line-height: 1;
  color: var(--salvia-funda);
  background: var(--selo);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 3.2px, transparent 3.6px) -4px -4px / 8px 8px, linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
  mask: radial-gradient(circle at 50% 50%, #000 3.2px, transparent 3.6px) -4px -4px / 8px 8px, linear-gradient(#000, #000) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}
.dia-selo b { font-family: var(--f-titulo); font-weight: 600; font-size: 1.55rem; display: block; }
.dia-selo small { font-weight: 700; font-size: .78rem; letter-spacing: .06em; }
.dia-titulo { font-size: 1.55rem; }

.evento-hora { font-family: var(--f-titulo); font-size: 1.35rem; color: var(--salvia-funda); margin-bottom: .1rem; }
.evento-nome { font-size: 2rem; margin-bottom: .2rem; }
.evento-local { font-weight: 700; margin: 0; }
.evento-end { color: var(--texto-2); margin: 0 0 1rem; }
.evento-texto { margin-bottom: 1rem; }
.avisos { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.avisos li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.avisos li svg { position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--salvia-media); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tempo { display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0 0; padding: .7rem .9rem; border-radius: var(--raio); background: var(--folha); color: var(--tinta); font-size: 1rem; }
.tempo svg { width: 1.6rem; height: 1.6rem; flex: none; fill: none; stroke: var(--salvia-funda); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tempo:empty { display: none; }

.livre-nome { font-size: 1.6rem; margin-bottom: .4rem; }

.bloco { margin-top: 1.8rem; padding-top: 1.5rem; position: relative; scroll-margin-top: 1rem; }
.bloco::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: radial-gradient(circle, var(--caqui) 1.7px, transparent 2.1px) 0 50% / 11px 6px repeat-x; opacity: .75; }
.bloco h3 { font-size: 1.65rem; margin-bottom: .2rem; display: flex; align-items: center; gap: .55rem; }
.bloco h3 svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--salvia-media); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bloco-sub { font-family: var(--f-titulo); font-style: italic; color: var(--texto-2); font-size: 1.2rem; margin-bottom: .6rem; }

.evitar { display: flex; gap: 1.1rem; margin: .5rem 0 .4rem; }
.cor { text-align: center; font-size: .95rem; font-weight: 700; color: var(--texto-2); }
.cor i {
  display: block; width: 3.1rem; height: 3.1rem; margin: 0 auto .35rem; border-radius: 50%;
  border: 1.5px solid var(--linha); position: relative; overflow: hidden;
}
.cor i::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 2.5px; background: var(--salvia-funda); transform: rotate(-45deg); }
.evitar-txt { color: var(--texto-2); font-size: 1rem; }

/* ---------- listas de lugares ---------- */
.nota {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--folha); border-radius: var(--raio); padding: .9rem 1rem; margin-bottom: 1.6rem; font-size: 1rem;
}
.nota svg { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .1rem; fill: none; stroke: var(--salvia-funda); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nota p { margin: 0; }

.dicas { background: var(--papel-claro); border: 1px solid var(--linha); border-radius: .5rem; padding: 1.2rem 1.15rem .6rem; margin-bottom: 2rem; }
.dicas h2 { font-size: 1.6rem; margin-bottom: .7rem; }
.dicas ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.dicas li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.dicas li svg { position: absolute; left: 0; top: .25rem; width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--salvia-media); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.grupo { margin-bottom: 2.2rem; scroll-margin-top: 1rem; }
.grupo-titulo { font-size: 1.85rem; margin-bottom: .35rem; }
.grupo-texto { color: var(--texto-2); margin-bottom: .4rem; }

.lugar { padding: 1.5rem 0 1.6rem; position: relative; }
.lugar + .lugar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: radial-gradient(circle, var(--caqui) 1.7px, transparent 2.1px) 0 50% / 11px 6px repeat-x; opacity: .75; }
.lugar h3 { font-size: 1.75rem; font-weight: 600; margin-bottom: .2rem; }
.lugar-tipo { font-weight: 700; color: var(--salvia-funda); margin-bottom: .45rem; }
.lugar-info { list-style: none; padding: 0; margin: .3rem 0 1rem; }
.lugar-info li { position: relative; padding-left: 1.9rem; margin-bottom: .45rem; color: var(--tinta); font-size: 1.05rem; }
.lugar-info svg { position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--salvia-media); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.vazio { text-align: center; padding: 2.2rem 1rem; border: 1.5px dashed var(--caqui); border-radius: .5rem; color: var(--texto-2); }
.vazio .lr { width: 2.5rem; height: 2.8rem; margin: 0 auto .8rem; fill: var(--salvia); }
.vazio strong { display: block; font-family: var(--f-titulo); font-weight: 500; font-size: 1.5rem; color: var(--salvia-funda); margin-bottom: .3rem; }


/* ---------- cartão de lugar: preço, bairro, extras ---------- */
.lugar-cab { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.lugar-cab h3, .lugar-cab h4 { min-width: 0; }
.preco { flex: none; font: 700 1.1rem/1 var(--f-texto); letter-spacing: .08em; color: var(--salvia-funda); white-space: nowrap; }
.preco-resto { color: var(--caqui); }
.lugar-tipo { margin-bottom: .25rem; }
.lugar-regiao {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 700; font-size: 1rem; color: var(--salvia-media);
  min-height: 2.25rem; margin-bottom: .35rem; text-decoration: none;
}
.lugar-regiao:hover { text-decoration: underline; }
.lugar-regiao svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lugar-nota { margin-bottom: .7rem; }
.extra { margin-top: 1.2rem; padding: 1rem 1rem .9rem; background: var(--folha); border-radius: .5rem; }
.extra-titulo { font-family: var(--f-titulo); font-style: italic; font-size: 1.2rem; color: var(--texto-2); margin-bottom: .1rem; }
.extra h4 { font-size: 1.55rem; font-weight: 600; margin-bottom: .3rem; }
.extra .btn-sec { background: var(--papel-claro); }

.destaque { animation: destaca 2.6s ease-out; border-radius: .5rem; }
@keyframes destaca {
  0%, 35% { background: #E4E6D1; box-shadow: 0 0 0 .75rem #E4E6D1; }
  100% { background: rgba(228,230,209,0); box-shadow: 0 0 0 .75rem rgba(228,230,209,0); }
}

/* legenda de preços */
.legenda { background: var(--papel-claro); border: 1px solid var(--linha); border-radius: .5rem; padding: 1.1rem 1.15rem .4rem; margin-bottom: 1.6rem; }
.legenda h2 { font-size: 1.55rem; margin-bottom: .6rem; }
.legenda-lista { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.legenda-lista li { display: flex; align-items: baseline; gap: .6rem; }
.legenda-lista .preco { min-width: 4.2rem; }
.legenda-txt { font-size: 1rem; }
.legenda-aviso { color: var(--texto-2); font-size: 1rem; }

/* índice de categorias */
.indice ul { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.indice a, .mapa-bairros a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 3.4rem; padding: .55rem .85rem;
  background: var(--papel-claro); border: 1.5px solid var(--linha); border-radius: var(--raio);
  color: var(--salvia-funda); font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
}
.indice a span, .bairro-n { flex: none; color: var(--texto-2); font-weight: 500; font-size: .95rem; }
.indice a:active, .mapa-bairros a:active { background: var(--folha); }
.voltar {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 3rem;
  font-weight: 700; font-size: 1rem; color: var(--salvia-media); text-decoration: none;
}
.voltar svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- mapa (distritos reais, traço à mão) ---------- */
.mapa-carta {
  background: var(--papel-claro);
  border-radius: .5rem;
  padding: .25rem;
  box-shadow: 0 1px 0 rgba(140,130,90,.15), 0 18px 30px -22px rgba(60,68,52,.45);
}
.mapa-svg { display: block; width: 100%; height: auto; }
.mb-distritos { fill: none; stroke: #CFCBB2; stroke-width: 1; stroke-linejoin: round; }
.mb-parque { fill: none; stroke: #B7BC9C; stroke-width: .9; }
.mb-parque-borda { fill: none; stroke: var(--salvia); stroke-width: 1.2; }
.mb-paulista { fill: none; stroke: var(--caqui); stroke-width: 5; stroke-linecap: round; opacity: .7; }
.mb-moldura { fill: none; stroke: var(--salvia-media); stroke-width: 1.6; }
.mb-escala path { fill: none; stroke: var(--texto-2); stroke-width: 1.4; }
.mb-escala text { font: 600 11px var(--f-texto); fill: var(--texto-2); }

.regiao { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.regiao-toque { fill: transparent; }
.regiao-ponto { fill: var(--papel-claro); stroke: var(--salvia-funda); stroke-width: 2; transition: fill .15s; }
.regiao-anel { fill: none; stroke: var(--salvia-media); stroke-width: 1.3; stroke-dasharray: 3 2.5; }
.regiao-n { font: 700 12px var(--f-texto); fill: var(--salvia-funda); pointer-events: none; }
.regiao-nome, .regiao-sub, .voce-seta text {
  paint-order: stroke; stroke: var(--papel-claro); stroke-width: 4px; stroke-linejoin: round; pointer-events: none;
}
.regiao-nome { font: 600 16px var(--f-titulo); fill: var(--tinta); }
.regiao-sub { font: italic 500 13.5px var(--f-titulo); fill: var(--texto-2); }
.regiao:hover .regiao-ponto { fill: var(--folha); }
.regiao[aria-current="true"] .regiao-ponto { fill: var(--salvia-funda); }
.regiao[aria-current="true"] .regiao-n { fill: var(--papel-claro); }
.regiao[aria-current="true"] .regiao-nome { text-decoration: underline; }
.regiao:focus { outline: none; }
.regiao:focus-visible .regiao-ponto { stroke: var(--tinta); stroke-width: 3.5; }
.mapa-norte path { fill: var(--salvia-media); }
.mapa-norte text { font: 700 11px var(--f-texto); fill: var(--salvia-media); }

/* você está aqui: azul, como nos mapas do celular */
.voce-ponto { fill: #2F6DB5; stroke: #fff; stroke-width: 2.5; }
.voce-precisao { fill: rgba(47,109,181,.12); stroke: rgba(47,109,181,.35); stroke-width: 1; }
.voce-onda { fill: none; stroke: #2F6DB5; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: onda 2.2s ease-out infinite; }
@keyframes onda { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.voce-seta path { fill: #2F6DB5; stroke: #fff; stroke-width: 1.5; }
.voce-seta text { font: 700 13px var(--f-texto); fill: #2F6DB5; }

.mapa-local { margin: 0 0 1rem; }
.mapa-local .btn { width: 100%; justify-content: center; }
.mapa-local .btn[disabled] { opacity: .75; cursor: progress; }
.mapa-local-nota { font-size: .92rem; color: var(--texto-2); margin: .5rem 0 0; text-align: center; }
.mapa-local-texto:empty { display: none; }
.mapa-local-texto { background: var(--folha); border-radius: var(--raio); padding: .9rem 1rem; margin-top: 1rem; }
.mapa-local-texto p { margin: 0 0 .5rem; }
.perto-titulo { font-weight: 700; margin-top: .8rem !important; }
.perto-lista { list-style: none; margin: 0; padding: 0; }
.perto-lista a { display: flex; justify-content: space-between; gap: 1rem; min-height: 3rem; align-items: center; color: var(--tinta); font-weight: 600; border-top: 1px solid var(--linha); }
.perto-km { color: var(--texto-2); font-weight: 500; white-space: nowrap; }
.mapa-legenda { font-size: .95rem; color: var(--texto-2); text-align: center; margin: .6rem 0 0; }

.mapa-painel { margin-top: 1.4rem; scroll-margin-top: 1rem; }
.painel-vazio { display: flex; gap: .6rem; align-items: flex-start; background: var(--folha); border-radius: var(--raio); padding: .9rem 1rem; font-size: 1rem; margin: 0; }
.painel-vazio svg { width: 1.4rem; height: 1.4rem; flex: none; fill: none; stroke: var(--salvia-funda); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.painel-titulo { font-size: 2.1rem; margin-bottom: .2rem; }
.painel-conta { color: var(--texto-2); margin-bottom: 1rem; }
.painel-conta a { margin-left: .4rem; font-weight: 700; }
.painel-grupo { font-size: 1.4rem; margin: 1.3rem 0 .2rem; }
.painel-lista { list-style: none; margin: 0; padding: 0; }
.painel-lista li { position: relative; }
.painel-lista li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: radial-gradient(circle, var(--caqui) 1.7px, transparent 2.1px) 0 50% / 11px 6px repeat-x; opacity: .75; }
.painel-lista a { display: flex; align-items: center; gap: .8rem; min-height: 4rem; padding: .7rem 0; color: inherit; text-decoration: none; }
.pl-txt { flex: 1; min-width: 0; }
.pl-txt strong { display: block; font-size: 1.15rem; color: var(--tinta); }
.pl-txt span { display: block; color: var(--texto-2); font-size: .98rem; line-height: 1.4; }
.pl-seta { width: 1.4rem; height: 1.4rem; flex: none; fill: none; stroke: var(--salvia-media); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.titulo-pequeno { font-size: 1.45rem; margin: 2.2rem 0 .7rem; }
.mapa-bairros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.mapa-bairros a[aria-current="true"] { background: var(--salvia-funda); border-color: var(--salvia-funda); color: var(--papel-claro); }
.mapa-bairros a[aria-current="true"] .bairro-n, .mapa-bairros a[aria-current="true"] .bairro-sub { color: #E4E6D1; }
.bairro-longe { grid-column: 1 / -1; }
.bairro-longe a { flex-wrap: wrap; }
.bairro-sub { order: 3; flex-basis: 100%; font-weight: 500; font-size: .95rem; color: var(--texto-2); }

/* ---------- página "Para o casamento" ---------- */
.vista-topo .voltar { margin: -.4rem 0 .4rem; }
.voltar svg { width: 1.2rem; height: 1.2rem; }
#lista-casamento .bloco:first-child { margin-top: 0; padding-top: 0; }
#lista-casamento .bloco:first-child::before { display: none; }

/* ---------- janela de fotos (Instagram dentro do site) ---------- */
html.travado { overflow: hidden; }
.fotos {
  width: min(34rem, calc(100% - 2rem)); height: min(54rem, calc(100% - 2rem));
  max-width: 100%; max-height: 100%;
  margin: auto; padding: 0; border: 0; border-radius: .75rem;
  background: var(--papel-claro); color: var(--tinta);
  box-shadow: 0 30px 60px -20px rgba(44,51,38,.5);
}
.fotos[open] { display: flex; flex-direction: column; }
.fotos::backdrop { background: rgba(44,51,38,.6); }
.fotos-topo {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .75rem .9rem .75rem 1.1rem; border-bottom: 1px solid var(--linha);
}
.fotos-titulo { min-width: 0; }
.fotos-rotulo { font-size: .95rem; color: var(--texto-2); margin: 0; }
.fotos-topo h2 { font-size: 1.55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fotos-fechar {
  flex: none; display: inline-flex; align-items: center; gap: .35rem;
  min-height: 3rem; padding: .4rem 1rem .4rem .8rem;
  border: 1.5px solid var(--salvia-media); border-radius: 999px;
  background: var(--papel-claro); color: var(--salvia-funda); font-weight: 700; font-size: 1.05rem; cursor: pointer;
}
.fotos-fechar svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fotos-quadro { flex: 1; position: relative; background: #fff; min-height: 0; }
.fotos-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.fotos-carregando { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--texto-2); }
.fotos-pe { padding: .7rem 1rem; border-top: 1px solid var(--linha); }
@media (max-width: 40rem) {
  .fotos { width: 100%; height: 100%; border-radius: 0; }
  .fotos-topo { padding-top: max(.75rem, env(safe-area-inset-top)); }
  .fotos-pe { padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
}

/* ---------- abas (barra de baixo) ---------- */
.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center;
  padding: .35rem max(.4rem, env(safe-area-inset-left)) calc(.35rem + env(safe-area-inset-bottom)) max(.4rem, env(safe-area-inset-right));
  background: rgba(250, 246, 236, .97);
  border-top: 1px solid var(--linha);
  box-shadow: 0 -8px 20px -16px rgba(60,68,52,.5);
}
@supports (backdrop-filter: blur(8px)) { .abas { background: rgba(250, 246, 236, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.abas a {
  flex: 1; max-width: 7.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: 62px; padding: 4px 0;
  color: var(--texto-2); text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
}
.abas svg { width: 52px; height: 32px; padding: 4px 14px; border-radius: 999px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.abas a[aria-current="page"] { color: var(--salvia-funda); }
.abas a[aria-current="page"] svg { background: #DDE0CB; }

/* ---------- aviso rápido (endereço copiado etc.) ---------- */
.aviso-rapido {
  position: fixed; left: 50%; bottom: calc(var(--altura-abas) + 1rem + env(safe-area-inset-bottom)); z-index: 20;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  width: min(30rem, calc(100% - 2rem));
  background: var(--tinta); color: var(--papel-claro); border-radius: var(--raio);
  padding: .9rem 1.1rem; font-size: 1.05rem; text-align: center;
  transition: opacity .2s, transform .2s;
}
.aviso-rapido.visivel { opacity: 1; transform: translate(-50%, 0); }

.aviso-nojs { padding: 2rem 0; text-align: center; }

/* ---------- vídeo ---------- */
.video { margin: 0 0 1.2rem; border-radius: .5rem; overflow: hidden; background: var(--folha); aspect-ratio: 9 / 16; max-height: 70vh; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- telas maiores ---------- */
@media (min-width: 40rem) {
  :root { --margem: 2rem; }
  body { overflow-x: hidden; }
  .abertura-arte { height: 22rem; overflow: visible; }
  .selo { width: 13rem; margin-left: -8.4rem; }
  .carimbo { width: 25rem; margin-left: -2rem; top: 2.6rem; }
  .ramo { width: 13rem; right: -1rem; }
  .btn { flex: 0 1 auto; }
  .btn-principal { flex-basis: auto; }
}
@media (max-width: 430px) {
  .abas { padding-left: max(.15rem, env(safe-area-inset-left)); padding-right: max(.15rem, env(safe-area-inset-right)); }
  .abas a { font-size: 13.5px; }
}
@media (max-width: 374px) {
  .abas a { font-size: 13px; }
  .abas svg { width: 46px; padding: 4px 11px; }
}
@media (max-width: 21rem) {
  .indice ul, .mapa-bairros { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .aviso-rapido, .regiao-ponto { transition: none; }
  .voce-onda { animation: none; opacity: 0; }
  .destaque { animation: none; }
}

/* ---------- busca "o que você procura?" ---------- */
.busca { margin-bottom: 2rem; }
.busca-campo { position: relative; }
.busca-campo > svg { position: absolute; left: 1rem; top: 50%; width: 1.4rem; height: 1.4rem; transform: translateY(-50%); fill: none; stroke: var(--salvia-media); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.busca-campo input {
  width: 100%; min-height: 3.6rem; padding: .7rem 3.3rem .7rem 3rem;
  font: 500 1.15rem var(--f-texto); color: var(--tinta);
  background: var(--papel-claro); border: 1.5px solid var(--salvia); border-radius: var(--raio);
  -webkit-appearance: none; appearance: none;
}
.busca-campo input::placeholder { color: #8A907C; }
.busca-campo input::-webkit-search-cancel-button { -webkit-appearance: none; }
.busca-campo input:focus { outline: none; border-color: var(--salvia-funda); box-shadow: 0 0 0 3px rgba(125,131,106,.28); }
.busca-limpar { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.9rem; height: 2.9rem; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.busca-limpar[hidden] { display: none; }
.busca-limpar svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--texto-2); stroke-width: 2.2; stroke-linecap: round; }
.busca-sugestoes { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.busca-sugestoes[hidden] { display: none; }
.busca-sugestoes button {
  min-height: 2.75rem; padding: .45rem .95rem; border-radius: 999px; cursor: pointer;
  font: 600 1rem var(--f-texto); color: var(--salvia-funda); background: var(--folha); border: 1px solid var(--linha);
}
.busca-sugestoes button:active { background: var(--linha); }
.busca-resultado:empty { display: none; }
.busca-resultado { margin-top: 1rem; }
.busca-conta { font-weight: 700; margin: 0 0 .3rem; }
.busca-obs, .busca-nada { color: var(--texto-2); margin: 0 0 .6rem; }
.busca-nada { color: var(--tinta); }
.busca-onde { display: flex !important; align-items: center; gap: .3rem; margin-top: .15rem; font-size: .92rem !important; }
.busca-onde svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.busca-local { background: var(--folha); border-radius: var(--raio); padding: .9rem 1rem; margin-bottom: 1rem; }
.busca-local p { margin: 0 0 .7rem; }
.busca-local .btn svg, .busca-fora .btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.busca-fora { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--caqui); }
.busca-fora p { margin: 0 0 .6rem; color: var(--texto-2); }

/* ---------- aberto agora / fechado agora ---------- */
.estado { display: flex !important; align-items: center; gap: .45rem; font: 700 .95rem var(--f-texto) !important; margin: .25rem 0 .35rem; }
.estado::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.estado.aberto { color: #3F6B3A !important; }
.estado.aberto::before { background: #4E8A45; box-shadow: 0 0 0 3px rgba(78,138,69,.18); }
.estado.fechado { color: #8A5A3C !important; }
.estado.fechado::before { background: transparent; border: 2px solid #A06A48; }

/* ---------- etiqueta da lista de presentes ---------- */
.etiqueta {
  position: relative; margin: 2.4rem 0 .5rem;
  padding: 1.15rem 1.2rem 1.25rem 2.6rem;
  background: var(--selo);
  clip-path: polygon(1.5rem 0, 100% 0, 100% 100%, 1.5rem 100%, 0 50%);
}
.etiqueta:empty { display: none; }
.etiqueta-furo { position: absolute; left: .95rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.35rem; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--caqui); }
.etiqueta h2 { font-size: 1.45rem; margin: 0 0 .35rem; }
.etiqueta p { margin: 0 0 .9rem; color: var(--texto-2); }
.etiqueta .btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evento-presente { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0; color: var(--texto-2); }
.evento-presente svg { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .1rem; fill: none; stroke: var(--salvia-media); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evento-presente a { font-weight: 700; }
.busca-fora.sem-linha { border-top: 0; margin-top: .4rem; padding-top: 0; }
.busca-fora .botoes { flex-direction: column; }

/* evento não obrigatório (civil) */
.selo-opcional { display: inline-block; vertical-align: .15em; margin-left: .35rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--caqui); font: 700 .8rem var(--f-texto); color: var(--texto-2); }
.postal-extra { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--caqui); color: var(--texto-2); }
.postal-extra svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; fill: none; stroke: var(--salvia-media); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.postal-extra a { font-weight: 700; }
.livre-nome { margin-top: 1.4rem; }
