/* =============================================================
   DOMUS II · refinos visuais
   Cabeçalho mais vivo, Tau nos cantos, pomba que não cobre o texto
   no celular, botão de WhatsApp e as dobras reescritas a partir
   da moção. Carrega depois de styles.css e inscricao.css.
   ============================================================= */

/* ---------- cabeçalho: vinho brasa com fio dourado ---------- */
.site-header {
  background: linear-gradient(90deg, rgba(58, 10, 20, .9) 0%, rgba(140, 31, 38, .88) 50%, rgba(58, 10, 20, .9) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  backdrop-filter: blur(12px) saturate(1.35);
  border-bottom: 0;
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .8);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #8A5A12 12%, #F2D79B 50%, #8A5A12 88%, transparent 100%);
}
.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(74, 15, 28, .97) 0%, rgba(140, 31, 38, .96) 50%, rgba(74, 15, 28, .97) 100%);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .85);
}
.brand__word {
  background: linear-gradient(100deg, #F6E8C8 0%, #F2D79B 45%, #D9A03C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-desktop a { color: rgba(251, 245, 234, .9); }
.nav-desktop a:hover, .nav-desktop a.is-active { color: #F2D79B; }

/* ---------- Tau nos cantos, um de cada lado ---------- */
.tau-veu::before { transform: rotate(var(--tau-rot, 0deg)); }
.tau-veu::after { width: calc(var(--tau-w, min(40vw, 320px)) * .62); }
.tau-veu--esq::before { right: auto; left: var(--tau-x, -7%); }
.tau-veu--esq::after  { left: auto; right: var(--tau2-x, -5%); }

/* ---------- pomba: no celular vira ornamento acima do título ---------- */
@media (max-width: 40rem) {
  .pomba-veu {
    position: relative; display: block; z-index: 1;
    top: auto; right: auto; left: auto;
    width: 64px; margin: 0 auto 12px;
    --pomba-op: .34; --pomba-blur: 0px;
    animation: pombaFlutua 6s var(--ease-soft) infinite;
  }
}
@keyframes pombaFlutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- botão de WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 95;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-fab svg { width: 28px; height: 28px; flex: none; }
.wa-fab__rotulo { font-family: var(--f-round); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: waPulso 3.2s var(--ease-soft) infinite;
}
@keyframes waPulso {
  0%        { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.wa-fab:active { transform: translateY(0) scale(.97); }
.wa-fab:focus-visible { outline: 2px solid #F2D79B; outline-offset: 3px; }
@media (max-width: 40rem) {
  .wa-fab { width: 56px; padding: 0; justify-content: center; }
  .wa-fab__rotulo { display: none; }
  /* o botão fixo de inscrição sai do centro para não ficar embaixo do WhatsApp */
  .floating-cta { left: 14px; transform: translateY(120%); }
  .floating-cta.is-visible { transform: translateY(0); }
}

/* ---------- O que é o Domus: o caminho da casa ---------- */
@media (min-width: 48rem) { .what__caminho { grid-template-columns: repeat(3, 1fr); } }
.what__card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 24px; overflow: hidden; }
.what__num {
  font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.what__card .what__k {
  font-family: var(--f-round); font-style: normal; font-weight: 600; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 10px 0 2px;
}
.what__casa { font-family: var(--f-display); font-style: italic; font-size: 1.45rem; line-height: 1.15; color: var(--card-fg); }
.what__pergunta { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--card-fg-soft); }

/* ---------- A perfeita alegria: o texto dos Fioretti ---------- */
.joy__contexto { max-width: 46ch; margin: 18px auto 0; font-size: 1.02rem; line-height: 1.6; color: var(--fg-soft); }
.joy__beat { font-size: clamp(1.12rem, 4.4vw, 1.55rem); line-height: 1.45; }
.joy__beat--voz { font-style: italic; }
.joy__beat--final { font-size: clamp(1.3rem, 5.4vw, 2rem); line-height: 1.3; }
.joy__fonte {
  margin-top: -8px; font-family: var(--f-round); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-dim);
}

/* ---------- Jubileu: o chamado de São Damião ---------- */
.franciscan__citacao {
  margin: 4px 0 16px; padding-left: 16px; border-left: 2px solid var(--accent);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 4.4vw, 1.45rem); line-height: 1.3; color: var(--fg);
}

/* ---------- contagem: fim das inscrições, com o lote em destaque ---------- */
.virada__lote {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: .95rem; color: var(--fg);
}
.virada__lote strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.virada__depois { display: block; margin-top: 10px; }

/* ---------- pregadores: silhueta em contraluz, borda dourada ---------- */
.speaker-card__figure img {
  height: 90%; bottom: 0; opacity: 1;
  filter: drop-shadow(0 0 1.5px rgba(242, 215, 155, .6)) drop-shadow(0 0 16px rgba(242, 215, 155, .22));
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab::before, .pomba-veu { animation: none; }
}

/* =============================================================
   LUZ QUE ATRAVESSA · a casa em reconstrução (segunda dobra)
   Roteiro: o contorno se desenha, os tijolos sobem de baixo para
   cima, o telhado desce e encaixa, a porta abre em 3D e a luz sai
   com raios e poeira dourada. Os tempos vêm do vida.js.
   ============================================================= */
.portal {
  --bg: radial-gradient(90% 70% at 50% 18%, #5E1424 0%, #3A0A14 52%, #1C040A 100%);
  --t-telhado: 1.4s; --t-porta: 2.1s; --t-luz: 2.4s;
  overflow: hidden;
}
.portal::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 56%, rgba(217, 160, 60, .4), rgba(140, 31, 38, .28) 45%, transparent 72%);
  opacity: 0; transition: opacity 1.8s var(--ease) var(--t-luz);
}
.portal.is-viva::before { opacity: 1; }

.casa { position: relative; isolation: isolate; width: min(78vw, 380px); aspect-ratio: 300 / 330; margin: 0 auto 26px; }
.casa__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.casa__contorno {
  fill: none; stroke: #FBF5EA; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 720; stroke-dashoffset: 720; transition: stroke-dashoffset 1.1s var(--ease) .1s;
}
.is-viva .casa__contorno { stroke-dashoffset: 0; }
.casa__tijolo {
  fill: #EAD7BC; opacity: 0; transform: translateY(22px); transform-box: fill-box;
  transition: opacity .45s var(--ease) calc(.3s + var(--i) * 22ms), transform .6s var(--ease) calc(.3s + var(--i) * 22ms);
}
.casa__tijolo--claro { fill: #F6EBD8; }
.is-viva .casa__tijolo { opacity: 1; transform: none; }
.casa__telhado path { fill: none; stroke: #FBF5EA; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.casa__telhado {
  opacity: 0; transform: translateY(-38px); transform-box: fill-box;
  transition: opacity .5s var(--ease) var(--t-telhado), transform .8s cubic-bezier(.34, 1.56, .64, 1) var(--t-telhado);
}
.is-viva .casa__telhado { opacity: 1; transform: none; }

.casa__porta {
  position: absolute; left: 40.67%; width: 18.67%; top: 63%; height: 26.6%;
  border-radius: 999px 999px 3px 3px / 55% 55% 3px 3px; overflow: hidden; perspective: 500px;
  background: #1C040A; box-shadow: inset 0 0 0 1.5px rgba(242, 215, 155, .35);
  opacity: 0; transition: opacity .5s var(--ease) var(--t-telhado);
}
.is-viva .casa__porta { opacity: 1; }
.casa__luz {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 62%, #FFF8E6 0%, #F6E8C8 28%, rgba(242, 215, 155, .85) 55%, rgba(217, 160, 60, .35) 85%);
  opacity: 0; transition: opacity 1s var(--ease) var(--t-porta);
}
.is-viva .casa__luz { opacity: 1; }
.casa__folha {
  position: absolute; top: 0; bottom: 0; width: 50%; backface-visibility: hidden;
  background: linear-gradient(180deg, #7A1A2B 0%, #4A0F1C 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 215, 155, .28);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) var(--t-porta);
}
.casa__folha::after {
  content: ""; position: absolute; top: 56%; width: 4px; height: 4px; border-radius: 50%; background: #D9A03C;
}
.casa__folha--e { left: 0; transform-origin: left center; }
.casa__folha--e::after { right: 5px; }
.casa__folha--d { right: 0; transform-origin: right center; }
.casa__folha--d::after { left: 5px; }
.is-viva .casa__folha--e { transform: rotateY(-102deg); }
.is-viva .casa__folha--d { transform: rotateY(102deg); }

.casa__cone {
  position: absolute; left: 50%; top: 89%; width: 66%; height: 34%; z-index: 2; pointer-events: none;
  transform: translateX(-50%) scaleY(.2); transform-origin: top center;
  background: linear-gradient(180deg, rgba(246, 232, 200, .5), rgba(242, 215, 155, .16) 55%, transparent);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter: blur(6px); opacity: 0;
  transition: opacity 1.2s var(--ease) var(--t-luz), transform 1.4s var(--ease) var(--t-luz);
}
.is-viva .casa__cone { opacity: 1; transform: translateX(-50%) scaleY(1); }

.casa__raios {
  position: absolute; left: 50%; top: 76%; z-index: -1; width: 190%; aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: opacity 1.6s var(--ease) var(--t-luz), transform 1.8s var(--ease) var(--t-luz);
}
.casa__raios::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(242, 215, 155, .15) 0deg 5deg, transparent 5deg 17deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%);
  animation: raiosGiram 90s linear infinite;
}
.is-viva .casa__raios { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@keyframes raiosGiram { to { transform: rotate(360deg); } }

.casa__poeira { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.casa__grao {
  position: absolute; left: var(--x); top: 86%; width: var(--s); height: var(--s); border-radius: 50%;
  background: #F6E8C8; box-shadow: 0 0 6px rgba(246, 232, 200, .9); opacity: 0;
}
.is-viva .casa__grao { animation: graoSobe var(--d) linear var(--dl) infinite; }
@keyframes graoSobe {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translate3d(var(--dx), -150px, 0); opacity: 0; }
}
.portal.is-fora .casa__grao, .portal.is-fora .casa__raios::before { animation-play-state: paused; }
.portal__stage .portal__copy { position: relative; z-index: 3; }

/* =============================================================
   LUZ QUE ATRAVESSA · medalhas douradas das experiências
   ============================================================= */
.medalha { display: block; width: 66px; height: 66px; margin-bottom: 18px; perspective: 520px; }
.medalha__inclina {
  display: block; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, 0, 0, 1);
}
.medalha__giro { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.medalha.is-girando .medalha__giro {
  animation: medalhaEntra 1.5s cubic-bezier(.2, .7, .15, 1) .1s both, medalhaBalanco 7s ease-in-out 1.7s infinite;
}
.medalha.is-fora .medalha__giro { animation-play-state: running, paused; }
@keyframes medalhaEntra { from { transform: rotateY(-540deg) scale(.86); } to { transform: rotateY(0deg) scale(1); } }
@keyframes medalhaBalanco { 0%, 100% { transform: rotateY(0deg); } 25% { transform: rotateY(16deg); } 75% { transform: rotateY(-16deg); } }
.medalha__face, .medalha__verso, .medalha__borda { position: absolute; inset: 0; border-radius: 50%; }
.medalha__borda { background: linear-gradient(90deg, #5c3a0b, #b9842d 50%, #5c3a0b); transform: translateZ(calc(var(--k) * -1.3px)); }
.medalha__face {
  display: grid; place-items: center; overflow: hidden; color: #5a370a; backface-visibility: hidden; transform: translateZ(.6px);
  background: radial-gradient(circle at 32% 26%, #FFF4D8 0%, #F2D79B 20%, #D9A03C 52%, #A9752A 78%, #7A4D0E 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 244, 214, .55), inset 0 -7px 12px rgba(80, 50, 10, .45),
              inset 0 6px 10px rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(0, 0, 0, .6);
}
.medalha__face svg { width: 50%; height: 50%; stroke-width: 1.9; filter: drop-shadow(0 1px 0 rgba(255, 244, 214, .75)); }
.medalha__face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 250, 235, .7) 50%, transparent 65%);
  transform: translateX(-120%);
}
.medalha.is-girando .medalha__face::after { animation: medalhaBrilho 5.5s ease-in-out 1.6s infinite; }
.medalha.is-fora .medalha__face::after { animation-play-state: paused; }
@keyframes medalhaBrilho { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
.medalha__verso {
  display: grid; place-items: center; backface-visibility: hidden; transform: rotateY(180deg) translateZ(.6px);
  background: radial-gradient(circle at 64% 28%, #F6E8C8 0%, #D9A03C 45%, #8A5A12 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 244, 214, .45), inset 0 -6px 10px rgba(80, 50, 10, .4);
}
.medalha__tau { width: 40%; height: 50%; background: url("../img/tau.svg") center / contain no-repeat; filter: brightness(.3) sepia(1) saturate(2.5); opacity: .8; }
.medalha[data-icon="flame"] svg { transform-origin: center 80%; animation: icoFlame 2.6s var(--ease-soft) infinite; }
.medalha[data-icon="adoracao"] svg { transform-origin: center 38%; animation: icoPulse 3.4s var(--ease-soft) infinite; }
.medalha[data-icon="joy"] svg { transform-origin: center 60%; animation: icoRock 4.4s var(--ease-soft) infinite; }

/* =============================================================
   LUZ QUE ATRAVESSA · a dobra da vaga
   Degradê de vinho para dourado que se move devagar, e um brilho
   que corre pelos cards de tempos em tempos.
   ============================================================= */
.lote-luz { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lote-luz::before {
  content: ""; position: absolute; inset: -35%;
  background:
    radial-gradient(38% 36% at 28% 30%, rgba(140, 31, 38, .9), transparent 70%),
    radial-gradient(34% 32% at 74% 60%, rgba(217, 160, 60, .45), transparent 70%),
    radial-gradient(30% 28% at 50% 92%, rgba(242, 215, 155, .3), transparent 70%);
  animation: loteDeriva 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes loteDeriva {
  0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.06); }
  100% { transform: translate3d(-2%, 4%, 0) rotate(-6deg) scale(1.02); }
}
#lote.is-fora .lote-luz::before { animation-play-state: paused; }
#lote .section__title { font-size: clamp(2.2rem, 7vw, 3.5rem); text-shadow: 0 6px 30px rgba(217, 160, 60, .25); }
.batch-grid .batch__card::after { animation: loteBrilho 7s var(--ease-soft) 1.5s infinite; }
.batch-grid .batch__card:nth-child(2)::after { animation-delay: 5s; }
#lote.is-fora .batch__card::after { animation-play-state: paused; }
@keyframes loteBrilho {
  0%        { transform: translateX(-190%) skewX(-12deg); opacity: 0; }
  6%        { opacity: 1; }
  22%, 100% { transform: translateX(230%) skewX(-12deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .casa__contorno, .casa__tijolo, .casa__telhado, .casa__porta, .casa__luz, .casa__folha,
  .casa__cone, .casa__raios, .portal::before, .medalha__inclina { transition: none !important; }
  .casa__grao, .casa__raios::before, .medalha__giro, .medalha__face::after, .medalha svg,
  .lote-luz::before, .batch-grid .batch__card::after { animation: none !important; }
}

/* =============================================================
   RODADA 7
   ============================================================= */

/* ---------- data no topo, no desenho do save the date ---------- */
.hero__quando { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 26px; }
.hero__data {
  display: inline-flex; align-items: center; gap: clamp(12px, 3vw, 22px); margin: 0;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 5.4vw, 2.4rem); letter-spacing: .04em;
  color: #FBF5EA; text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero__data-linha {
  width: clamp(56px, 15vw, 150px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #F2D79B, #D9A03C 45%, #8C1F26 80%, rgba(28, 4, 10, .6));
  box-shadow: 0 0 14px rgba(242, 215, 155, .45);
}
.hero__data-sub {
  margin: 0; font-family: var(--f-round); font-size: clamp(.78rem, 2.6vw, .95rem); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(251, 245, 234, .86); text-align: center;
}
.hero__cta .btn--lg { font-size: 1.05rem; padding: 18px 34px; }

/* ---------- botões de ação (agenda, amigo) ---------- */
.contagem__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.acao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; font: 600 .92rem var(--f-round); letter-spacing: .02em;
  color: var(--fg); background: color-mix(in srgb, var(--fg) 6%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--fg) 45%, transparent);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.acao:hover { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 12%, transparent); transform: translateY(-1px); }
.acao:active { transform: scale(.98); }
.acao:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.agenda { position: relative; }
.agenda__menu {
  position: absolute; left: 50%; top: calc(100% + 8px); z-index: 20; min-width: 220px; transform: translateX(-50%);
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: #FBF5EA; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(58, 10, 20, .12);
}
.agenda__menu a, .agenda__menu button {
  display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font: 600 .92rem var(--f-round); color: #3A0A14; text-align: left; text-decoration: none;
}
.agenda__menu a:hover, .agenda__menu button:hover, .agenda__menu a:focus-visible, .agenda__menu button:focus-visible { background: rgba(217, 160, 60, .18); outline: none; }
.pagamento__amigo { margin-top: 14px; }

/* ---------- valor do próximo lote, ainda escondido ---------- */
.batch__proximo em, .virada__precos em { font-style: italic; color: var(--accent); }

/* ---------- moldura dourada dos pregadores ----------
   Começa no lado esquerdo, sobe, corre por cima, desce pela direita e
   fecha embaixo, ao mesmo tempo em todos os cards. Depois um ponto de
   luz fica dando a volta. */
.speaker-card__moldura {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible;
  filter: drop-shadow(0 0 3px rgba(242, 215, 155, .55));
}
.speaker-card__moldura path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.moldura__traco { stroke: #E0B257; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.moldura__luz { stroke: #FFF3D1; stroke-width: 3.6; stroke-dasharray: .07 .93; stroke-dashoffset: 0; opacity: 0; }
.speakers__track.is-moldura .moldura__traco { animation: molduraDesenha 1.9s cubic-bezier(.65, 0, .35, 1) forwards; }
.speakers__track.is-moldura .moldura__luz { animation: molduraLuz 6s linear 1.9s infinite; }
@keyframes molduraDesenha { to { stroke-dashoffset: 0; } }
@keyframes molduraLuz { 0% { stroke-dashoffset: 0; opacity: .95; } 100% { stroke-dashoffset: -1; opacity: .95; } }
#pregadores.is-fora .moldura__luz { animation-play-state: paused; }

/* ---------- pegadas na neve (Francisco e Frei Leão) ----------
   No celular elas andam rente às bordas, menores, para não cruzar o texto. */
.pegadas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pegadas__trilha { position: absolute; top: 18%; bottom: 6%; width: 22px; }
.pegadas__trilha--esq { left: 3px; }
.pegadas__trilha--dir { right: 3px; }
@media (min-width: 60rem) {
  .pegadas__trilha { top: 26%; bottom: 10%; width: 44px; }
  .pegadas__trilha--esq { left: max(24px, calc(50% - 480px)); }
  .pegadas__trilha--dir { right: max(24px, calc(50% - 480px)); }
}
.pegada {
  position: absolute; top: var(--y); left: var(--x); width: 9px; height: 20px;
  background: url("../img/pegada.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(122, 77, 14, .35)) drop-shadow(0 0 6px rgba(255, 248, 231, .35));
  opacity: 0; transform: rotate(var(--r, -8deg)) scaleX(var(--sx, 1)) scale(.6);
  transition: opacity .9s ease-out, transform .9s ease-out;
}
.pegada.is-marcada { opacity: .62; transform: rotate(var(--r, -8deg)) scaleX(var(--sx, 1)) scale(1); }
@media (min-width: 60rem) { .pegada { width: 16px; height: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .moldura__traco { animation: none !important; stroke-dashoffset: 0; }
  .moldura__luz { animation: none !important; opacity: 0; }
  .pegada { transition: none; }
  .acao, .agenda__menu a { transition: none; }
}

/* ---------- letreiro "A Perfeita alegria", traçado da arte oficial ---------- */
.letreiro-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero__title { filter: drop-shadow(0 6px 26px rgba(217, 160, 60, .34)) drop-shadow(0 2px 3px rgba(18, 3, 6, .5)); }
.letreiro {
  position: relative; display: block; overflow: hidden; margin-inline: auto;
  width: min(94vw, 880px); aspect-ratio: var(--letreiro-proporcao, 1141 / 378);
  -webkit-mask: url("../img/letreiro-perfeita-alegria.svg") center / 100% 100% no-repeat;
          mask: url("../img/letreiro-perfeita-alegria.svg") center / 100% 100% no-repeat;
}
.letreiro__tinta, .letreiro__brilho { position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; }
/* a tinta corre da esquerda para a direita, como a letra sendo escrita */
.letreiro__tinta {
  width: 250%; transform: translateX(-46%);
  background: linear-gradient(90deg, #F1DC9E 0%, #F6E8B4 12%, #FBF1CE 20%, #F5E6B0 30%, #F2DEA2 40%, rgba(242, 222, 162, 0) 46%);
}
.hero.is-in .letreiro__tinta { animation: letreiroTinta 2.4s cubic-bezier(.45, .05, .25, 1) .35s forwards; }
@keyframes letreiroTinta { to { transform: translateX(0); } }
/* depois o brilho passa pelas letras, de tempos em tempos */
.letreiro__brilho {
  width: 300%; transform: translateX(-66.667%);
  background: linear-gradient(100deg, rgba(255, 251, 236, 0) 42%, rgba(255, 251, 236, .92) 50%, rgba(255, 251, 236, 0) 58%);
}
.hero.is-in .letreiro__brilho { animation: letreiroBrilho 6s var(--ease-soft) 2.9s infinite; }
@keyframes letreiroBrilho { 0% { transform: translateX(-66.667%); } 55%, 100% { transform: translateX(0); } }

/* ---------- crédito da pintura no medalhão ---------- */
.franciscan__credito {
  margin: 16px auto 0; max-width: 32ch; text-align: center; font-size: .78rem; line-height: 1.45; letter-spacing: .03em;
  color: color-mix(in srgb, var(--fg) 60%, transparent);
}

/* =============================================================
   COMO CHEGAR, a igreja em 3D
   ============================================================= */
.local__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 60rem) { .local__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; } }
.local__endereco { margin: 14px 0 0; font-size: 1.08rem; line-height: 1.5; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.local__como { margin: 8px 0 0; font-size: .95rem; color: color-mix(in srgb, var(--fg) 68%, transparent); }
.local__rotas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.local__palco {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 24px;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(242, 215, 155, .2), transparent 70%),
    linear-gradient(180deg, #3A0A14 0%, #22060C 70%, #14030A 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 215, 155, .2), 0 40px 80px -40px rgba(0, 0, 0, .7);
}
@media (max-width: 40rem) { .local__palco { aspect-ratio: 1 / 1.08; border-radius: 20px; } }
.local__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: pointer; touch-action: pan-y; }
.local__palco.is-arrastando .local__canvas { cursor: grabbing; }
.local__rotulo, .local__ponto {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; will-change: transform;
  padding: 7px 13px; border-radius: 999px; font: 600 .8rem/1 var(--f-round); letter-spacing: .03em;
  opacity: 0; transition: opacity .6s var(--ease);
}
.local__rotulo { color: #2A0A10; background: linear-gradient(135deg, #FBEFD2, #E0B257); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6); }
.local__ponto { color: #FBF5EA; background: rgba(20, 4, 8, .74); border: 1px solid rgba(242, 215, 155, .35); }
.local__palco.is-pousou .local__rotulo, .local__palco.is-pousou .local__ponto { opacity: 1; }
.local__dica {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100% - 28px); text-align: center;
  padding: 8px 14px; border-radius: 999px; font: 500 .78rem/1.35 var(--f-round); letter-spacing: .04em;
  color: rgba(251, 245, 234, .92); background: rgba(20, 4, 8, .62); border: 1px solid rgba(242, 215, 155, .22);
  opacity: 0; transition: opacity .6s var(--ease) .2s;
}
.local__palco.is-pousou .local__dica { opacity: 1; }
/* a foto da igreja fica por baixo: aparece na hora, antes do 3D, e fica no
   lugar dele quando o aparelho não roda 3D */
.local__retrato { position: absolute; inset: 0; z-index: 0; display: block; transition: opacity .7s var(--ease); }
.local__retrato img { display: block; width: 100%; height: 100%; object-fit: cover; }
.local__retrato-dica {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px);
  padding: 8px 14px; border-radius: 999px; font: 600 .8rem/1.35 var(--f-round); letter-spacing: .04em; text-align: center;
  color: #2A0A10; background: linear-gradient(135deg, #FBEFD2, #E0B257); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6);
}
.local__retrato:focus-visible { outline: 2px solid #F2D79B; outline-offset: -6px; border-radius: 24px; }
.local__canvas { z-index: 1; }
.local__palco.is-vivo .local__retrato { opacity: 0; pointer-events: none; }
.local__palco.is-sem-3d .local__canvas { display: none; }
/* quem usa mouse lê "clique", quem usa o dedo lê "toque" */
.so-toque { display: none; }
@media (hover: none) { .so-mouse { display: none; } .so-toque { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  .letreiro__tinta { transform: none !important; animation: none !important; }
  .letreiro__brilho { display: none; }
  .local__rotulo, .local__ponto, .local__dica, .local__retrato { transition: none; }
}

/* ---------- salvar na agenda e chamar um amigo, bem à vista ---------- */
.contagem__acoes { gap: 14px; margin-top: 28px; }
.contagem__acoes > .agenda, .contagem__acoes > .acao { flex: 1 1 240px; max-width: 300px; }
.acao--forte {
  position: relative; overflow: hidden; width: 100%; min-height: 60px; padding: 0 26px 0 20px; gap: 12px;
  font-size: 1.04rem; font-weight: 700; letter-spacing: .01em; color: #FBF5EA; border: 0;
  background: linear-gradient(135deg, #7A1E2B 0%, #4A0F1C 55%, #2E0710 100%);
  box-shadow: 0 18px 34px -16px rgba(46, 7, 16, .8), inset 0 0 0 1.5px rgba(242, 215, 155, .5);
}
.acao--forte::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 244, 214, .3) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.acao--forte:hover {
  color: #FFFFFF; transform: translateY(-2px);
  background: linear-gradient(135deg, #8C2433 0%, #56121F 55%, #34091A 100%);
  box-shadow: 0 24px 40px -16px rgba(46, 7, 16, .85), inset 0 0 0 1.5px rgba(242, 215, 155, .85);
}
.acao--forte:hover::after { transform: translateX(120%); }
.acao--forte:active { transform: translateY(0) scale(.98); }
.acao--forte:focus-visible { outline: 3px solid #FBF5EA; outline-offset: 3px; }
.acao__icone { width: 24px; height: 24px; flex: none; fill: none; stroke: #F2D79B; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acao__zap {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .22);
}
.acao__zap svg { width: 19px; height: 19px; fill: #FFFFFF; }
.contagem__convite {
  margin: 14px auto 0; max-width: 34rem; font-size: .9rem; line-height: 1.5; text-align: center;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
}
.acao-link {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; color: var(--fg);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.acao-link:hover { text-decoration-thickness: 2.5px; }
.acao-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.pagamento__amigo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.pagamento__amigo .acao--forte { width: auto; }

/* ---------- mapa: Por fora / Por dentro ---------- */
.local__visor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.local__vistas {
  display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(20, 4, 8, .5); border: 1px solid rgba(242, 215, 155, .28);
}
.local__vistas[hidden] { display: none; }
.local__vista {
  border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: transparent;
  font: 600 .84rem/1 var(--f-round); letter-spacing: .03em; color: rgba(251, 245, 234, .82);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.local__vista:hover { color: #FBF5EA; }
.local__vista.is-ativa { background: linear-gradient(135deg, #FBEFD2, #E0B257); color: #2A0A10; }
.local__vista:focus-visible { outline: 2px solid #F2D79B; outline-offset: 2px; }
.local__canvas { transition: opacity .22s var(--ease); }
.local__palco.is-trocando .local__canvas { opacity: 0; }
.local__palco.is-dentro .local__rotulo { opacity: 0 !important; }
.local__palco.is-dentro .local__canvas { cursor: grab; }

@media (prefers-reduced-motion: reduce) {
  .acao--forte::after { transition: none; }
  .local__canvas, .local__vista { transition: none; }
}

/* =============================================================
   CELULAR (rodada 9)
   ============================================================= */
/* faixa da prévia: no computador, uma linha discreta; no celular, uma
   etiqueta curta acima dos botões flutuantes, para não cobrir o conteúdo */
.previa-faixa { text-transform: none; letter-spacing: .02em; font-size: .78rem; }
.previa-faixa__curta { display: none; }
@media (max-width: 40rem) {
  .previa-faixa {
    top: auto; bottom: 88px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px);
    padding: 6px 12px; font-size: .7rem; white-space: nowrap;
  }
  .previa-faixa__longa { display: none; }
  .previa-faixa__curta { display: inline; }
}
/* os pontinhos laterais das dobras ficam por cima do texto no celular */
@media (max-width: 560px) { .dots { display: none; } }
/* pegadas no celular: rente à borda, num tom de neve pisada que aparece no dourado */
@media (max-width: 59.99rem) {
  .pegadas__trilha { width: 18px; }
  .pegadas__trilha--esq { left: 2px; }
  .pegadas__trilha--dir { right: 2px; }
  .pegada {
    width: 8px; height: 18px;
    filter: sepia(.6) saturate(1.4) brightness(.72) drop-shadow(0 0 3px rgba(255, 248, 231, .7));
  }
  .pegada.is-marcada { opacity: .9; }
}

/* ---------- camisa: "em breve" enquanto o modelo não fica pronto ---------- */
.camisa-embreve { max-width: 34rem; margin: 8px auto 0; padding: 30px 26px; text-align: center; }
.camisa-embreve__selo {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font: 700 .72rem/1 var(--f-round); letter-spacing: .14em; text-transform: uppercase;
  color: #3A0A14; background: linear-gradient(135deg, #FBEFD2, #E0B257);
}
.camisa-embreve__titulo { margin: 16px 0 8px; font-family: var(--f-display); font-size: clamp(1.4rem, 4.6vw, 1.9rem); line-height: 1.15; }
.camisa-embreve__texto { max-width: 28rem; margin: 0 auto 20px; color: var(--card-fg-soft, inherit); }
.nav-selo {
  display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; vertical-align: 2px;
  font: 700 .58rem/1 var(--f-round); letter-spacing: .1em; text-transform: uppercase;
  color: #3A0A14; background: #E0B257;
}
