/* =========================================================
   Espaço Barbara Barbi — estilos (mobile-first, sem frameworks)
   Paleta e contraste: docs/analise.md. Movimento sempre sutil, só com
   opacity/transform, e desligado com prefers-reduced-motion.
   ========================================================= */

/* ---------- Fontes auto-hospedadas (subconjunto latino) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500; /* arquivo variável: cobre 400 e 500 */
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fontes de reserva com as mesmas medidas das fontes da marca: enquanto a fonte web carrega, o texto
   já ocupa o mesmo espaço, e a troca não faz a página "pular". Valores medidos no Chrome. */
@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia');
  size-adjust: 101.68%;
  ascent-override: 106.41%;
  descent-override: 24.69%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 105.84%;
  ascent-override: 91.53%;
  descent-override: 22.79%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Cores medidas nos materiais da marca */
  --cor-fundo: #F3F0EA;        /* off-white: fundo principal */
  --cor-areia: #D8CBB9;        /* bege areia: fundo alternativo */
  --cor-cafe: #614537;         /* marrom café: textos, botões, seções escuras */
  --cor-cafe-escuro: #4E372B;  /* hover do botão principal */
  --cor-bronze: #9B7D5A;       /* bordado do logo: números grandes e ícones sobre off-white */
  --cor-taupe: #A99A88;        /* bordas e divisores (nunca texto) */
  /* Acentos de contraste (pedido do cliente): dourado e um café bem escuro */
  --cor-dourado: #C9A35F;        /* filetes, molduras, ícones, brilhos (nunca texto pequeno sobre claro) */
  --cor-dourado-claro: #E2C88F;  /* texto sobre café/espresso (5,3:1 sobre café) */
  --cor-espresso: #3A2A21;       /* rodapé */
  --cor-ouro: #87662D;           /* ouro antigo: texto dourado sobre fundo claro (4,65:1 sobre off-white) */
  --gradiente-dourado: linear-gradient(120deg, #E2C88F 0%, #C9A35F 45%, #A9813F 100%);
  /* Texto grande em degradê de ouro sobre off-white: o tom mais claro (#A9813F) ainda dá 3,1:1 (mínimo p/ texto grande) */
  --gradiente-ouro-texto: linear-gradient(100deg, #87662D 0%, #A9813F 50%, #87662D 100%);
  --cor-noite: rgba(33, 23, 18, .97); /* fundo do lightbox */

  /* Tipografia */
  --fonte-titulo: 'Playfair Display', 'Playfair Fallback', Georgia, 'Times New Roman', serif;
  --fonte-texto: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --tam-h1: clamp(2.1rem, 1.6rem + 2.6vw, 3.6rem);
  --tam-h2: clamp(1.8rem, 1.45rem + 1.6vw, 2.75rem);
  --tam-h3: clamp(1.3rem, 1.2rem + .4vw, 1.55rem);

  /* Espaços */
  --esp-1: .25rem;
  --esp-2: .5rem;
  --esp-3: .75rem;
  --esp-4: 1rem;
  --esp-5: 1.5rem;
  --esp-6: 2rem;
  --esp-7: 3rem;
  --esp-8: 4rem;
  --secao-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --largura-max: 72rem;
  --gutter: 1rem;              /* 16px nas laterais no celular */

  /* Raios e sombras */
  --raio: 2px;
  --raio-cartao: 6px;
  --raio-pilula: 999px;
  --sombra-suave: 0 10px 30px -12px rgba(58, 42, 33, .25);
  --sombra-alta: 0 24px 50px -20px rgba(58, 42, 33, .35);

  /* Movimento (sempre suave) */
  --suave: cubic-bezier(.22, .61, .36, 1);
  --lento: cubic-bezier(.16, 1, .3, 1);

  /* Cabeçalho: altura cheia (topo da página) e atual (encolhe ao rolar) */
  --topo-cheio: 4.25rem; /* cabe o selo com o logo */
  --topo-h: var(--topo-cheio);
}
html.rolou { --topo-h: 3.875rem; }

@media (min-width: 960px) {
  :root { --topo-cheio: 5rem; --gutter: 2rem; }
  html.rolou { --topo-h: 4.375rem; }
  html { scroll-padding-top: 4.375rem; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.875rem; /* = altura do cabeçalho compacto */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.menu-aberto, html.lightbox-aberto { overflow: hidden; }

body {
  margin: 0;
  background: var(--cor-fundo);
  color: var(--cor-cafe);
  font: 400 1rem/1.65 var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 var(--esp-4); }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--tam-h1); }
h2 { font-size: var(--tam-h2); }
h3 { font-size: var(--tam-h3); }

:focus-visible { outline: 2px solid var(--cor-cafe); outline-offset: 3px; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--largura-max)); margin-inline: auto; }

.sem-quebra { white-space: nowrap; } /* ex.: não separar "bem-" de "estar" no fim da linha */

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

.pular {
  position: absolute;
  left: var(--esp-4);
  top: -10rem;
  z-index: 100;
  padding: var(--esp-3) var(--esp-4);
  background: var(--cor-cafe);
  color: var(--cor-fundo);
  text-decoration: none;
}
.pular:focus { top: var(--esp-4); }

.icone {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Elementos de marca ---------- */
.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 var(--esp-3);
  font: 500 .75rem/1.4 var(--fonte-texto);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cor-ouro);
}
.sobretitulo::before { /* pequeno traço dourado antes do rótulo */
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gradiente-dourado);
}
.secao--areia .sobretitulo { color: var(--cor-cafe); } /* ouro sobre areia só serve para texto grande */

/* Palavras do título em degradê de ouro (texto grande: contraste mínimo 3:1 garantido) */
.palavra--ouro {
  color: var(--cor-ouro);
  background: var(--gradiente-ouro-texto);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .palavra--ouro { -webkit-text-fill-color: currentColor; background: none; }
}

/* Filete fino com losango, inspirado nos filetes do logo (decorativo) */
.filete {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 6.5rem;
  margin: var(--esp-5) 0;
  color: var(--cor-dourado);
}
.filete::before, .filete::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.filete span { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.filete--centro { margin-inline: auto; }
.secao--areia .filete { color: var(--cor-cafe); }
.secao--cafe .filete { color: var(--cor-dourado-claro); }

.cabecalho-secao { margin-bottom: var(--esp-7); }
.cabecalho-secao > p:not(.sobretitulo) { max-width: 34rem; }
@media (min-width: 900px) {
  .cabecalho-secao--linha { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--esp-7); }
  .cabecalho-secao--linha > p { margin-bottom: var(--esp-5); }
}

/* ---------- Botões ---------- */
.botao {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--raio);
  overflow: hidden;
  isolation: isolate;
  font: 500 .9375rem/1.2 var(--fonte-texto);
  letter-spacing: .02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .5s var(--lento), box-shadow .5s var(--lento);
}
/* Brilho dourado que atravessa o botão no hover (só transform) */
.botao::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(226, 200, 143, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--suave);
  pointer-events: none;
}
.botao:hover::after { transform: translateX(120%); }
.botao .icone--seta { transition: transform .4s var(--lento); }
.botao:hover .icone--seta { transform: translateX(4px); }

.botao--primario {
  background: var(--cor-cafe);
  color: var(--cor-fundo);
  box-shadow: inset 0 0 0 1px rgba(226, 200, 143, .55), 0 6px 18px -8px rgba(97, 69, 55, .6); /* filete dourado interno */
}
.botao--primario:hover { background: var(--cor-cafe-escuro); }
.botao--linha { border-color: var(--cor-cafe); color: var(--cor-cafe); background: transparent; }
.botao--linha:hover { background: var(--cor-cafe); color: var(--cor-fundo); }
.botao--claro { background: var(--cor-fundo); color: var(--cor-cafe); }
.botao--claro:hover { background: #FFFFFF; }
.botao--linha-clara { border-color: var(--cor-dourado-claro); color: var(--cor-fundo); background: transparent; }
.botao--linha-clara:hover { background: var(--cor-fundo); color: var(--cor-cafe); }
.botao--compacto { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .875rem; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topo-h);
  background: rgba(243, 240, 234, .96);
  box-shadow: inset 0 -1px 0 rgba(201, 163, 95, .45); /* filete dourado sob o cabeçalho */
}
.topo__barra {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-4);
}
/* Barra de progresso da leitura: linha dourada que cresce (scaleX) */
.progresso {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(169, 154, 136, .25);
  opacity: 0;
  transition: opacity .4s ease;
}
html.rolou .progresso { opacity: 1; }
.progresso__barra {
  display: block;
  height: 100%;
  background: var(--gradiente-dourado);
  transform: scaleX(var(--progresso, 0));
  transform-origin: left;
}

.marca {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--cor-cafe);
  text-decoration: none;
  line-height: 1;
}
.marca__espaco { font-family: var(--fonte-titulo); font-size: .8125rem; margin-bottom: .2rem; }
.marca__nome { font-family: var(--fonte-titulo); font-size: 1.375rem; letter-spacing: .04em; white-space: nowrap; }

/* Selo retangular do topo: moldura dourada dupla e pequenos losangos nas laterais */
.marca--selo {
  position: relative;
  min-height: 0;
  padding: .3rem 1.05rem .35rem;
  border: 1px solid var(--cor-dourado);
  box-shadow: inset 0 0 0 2px var(--cor-fundo), inset 0 0 0 3px rgba(201, 163, 95, .45);
  background: var(--cor-fundo);
  transition: box-shadow .6s var(--lento);
}
.marca--selo::before, .marca--selo::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  background: var(--cor-fundo);
  border: 1px solid var(--cor-dourado);
  transform: rotate(45deg);
}
.marca--selo::before { left: -4px; }
.marca--selo::after { right: -4px; }
.marca--selo:hover { box-shadow: inset 0 0 0 2px var(--cor-fundo), inset 0 0 0 3px var(--cor-dourado); }
/* Logo dentro do selo (PNG transparente na cor café) */
.marca__logo { display: block; width: auto; height: 2.6rem; }
@media (min-width: 960px) {
  .marca--selo { padding: .35rem 1.25rem .4rem; }
  .marca__logo { height: 3.1rem; }
}

.nav__alternar {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 .25rem 0 .5rem;
  border: 0;
  background: transparent;
  color: var(--cor-cafe);
  font: 500 .8125rem/1 var(--fonte-texto);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__alternar .icone { width: 1.5rem; height: 1.5rem; }
.nav__icone-fechar { display: none; }
.nav__alternar[aria-expanded="true"] .nav__icone-abrir { display: none; }
.nav__alternar[aria-expanded="true"] .nav__icone-fechar { display: block; }

.nav__lista a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav__instagram { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; text-decoration: none; }

/* Sem JavaScript: os links aparecem em linha, sem botão de menu */
html:not(.js) .nav__alternar { display: none; }
html:not(.js) .nav__lista { display: flex; flex-wrap: wrap; gap: 0 1rem; }
html:not(.js) .nav__cta, html:not(.js) .nav__instagram { display: none; }
html:not(.js) .topo { position: static; height: auto; }
html:not(.js) .topo__barra { flex-wrap: wrap; padding-block: .5rem; }
html:not(.js) .hero { padding-top: var(--esp-6); }

/* Celular/tablet: painel de tela cheia abaixo do cabeçalho; os links entram em sequência */
@media (max-width: 959.98px) {
  .js .nav__painel {
    position: fixed;
    inset: var(--topo-h) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: var(--esp-5);
    padding: var(--esp-6) var(--gutter) calc(var(--esp-6) + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--cor-fundo);
    border-top: 1px solid rgba(201, 163, 95, .5);
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .js.menu-aberto .nav__painel { visibility: visible; opacity: 1; transition-delay: 0s; }
  .js .nav__lista li { opacity: 0; transform: translateY(.6rem); transition: opacity .5s var(--lento), transform .5s var(--lento); }
  .js.menu-aberto .nav__lista li { opacity: 1; transform: none; }
  .js.menu-aberto .nav__lista li:nth-child(2) { transition-delay: .04s; }
  .js.menu-aberto .nav__lista li:nth-child(3) { transition-delay: .08s; }
  .js.menu-aberto .nav__lista li:nth-child(4) { transition-delay: .12s; }
  .js.menu-aberto .nav__lista li:nth-child(5) { transition-delay: .16s; }
  .js .nav__lista a {
    min-height: 3.25rem;
    font-family: var(--fonte-titulo);
    font-size: 1.75rem;
    border-bottom: 1px solid rgba(169, 154, 136, .5);
  }
  .js .nav__cta { width: 100%; margin-top: var(--esp-2); }
}

/* Desktop: menu em linha, sublinhado dourado que cresce no hover */
@media (min-width: 960px) {
  .nav__alternar { display: none; }
  .nav__painel { display: flex; align-items: center; gap: var(--esp-6); }
  .nav__lista { display: flex; gap: var(--esp-5); }
  .nav__lista a { font-size: .9375rem; letter-spacing: .02em; position: relative; }
  .nav__lista a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .6rem;
    height: 1px;
    background: var(--gradiente-dourado);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--lento);
  }
  .nav__lista a:hover::after, .nav__lista a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .nav__instagram { display: none; }
  .nav__cta { min-height: 2.75rem; padding: .6rem 1.2rem; font-size: .875rem; }
  .marca__nome { font-size: 1.5rem; }
}

/* ---------- Seções ---------- */
.secao { position: relative; padding-block: var(--secao-y); }
.secao--areia { background: var(--cor-areia); }
.secao--cafe { background: var(--cor-cafe); color: var(--cor-fundo); }
.secao--cafe .sobretitulo { color: var(--cor-dourado-claro); }
.secao--cafe h2 { color: var(--cor-dourado-claro); } /* títulos dourados nas seções escuras (5,3:1) */
.secao--cafe :focus-visible { outline-color: var(--cor-fundo); }

/* Seções escuras "se abrem" ao entrar na tela (scroll-driven; navegadores sem suporte mostram direto) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .abre-ao-rolar {
      animation: abrir-secao linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes abrir-secao {
  from { transform: scale(.965); }
  to   { transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--topo-cheio) + var(--esp-5));
  padding-bottom: var(--secao-y);
  overflow: hidden;
}
.hero__grade { display: grid; gap: var(--esp-7); }
.hero .sobretitulo { margin-bottom: var(--esp-4); }
.hero__titulo .palavra { display: inline-block; }
.hero__subtitulo { max-width: 32rem; margin: var(--esp-4) 0 var(--esp-5); font-size: 1.0625rem; }
.hero__acoes { display: flex; flex-direction: column; gap: var(--esp-3); }

/* Cena 3D: a foto e o selo ficam em profundidades diferentes */
.hero__cena {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 0 .75rem 2.5rem 0;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--lento);
}
.hero__cena.inclinando { transition-duration: .25s; }
.hero__foto { position: relative; transform-style: preserve-3d; }
.hero__foto img { position: relative; box-shadow: var(--sombra-alta); }
.hero__moldura { /* moldura dourada deslocada, um pouco "atrás" da foto */
  position: absolute;
  inset: .75rem -.75rem -.75rem .75rem;
  border: 1px solid var(--cor-dourado);
  transform: translateZ(-30px);
}
.hero__selo {
  position: absolute;
  left: -.25rem;
  bottom: 0;
  max-width: 15rem;
  padding: .9rem 1.1rem;
  background: var(--cor-fundo);
  border-top: 2px solid var(--cor-dourado);
  box-shadow: var(--sombra-alta);
  transform: translateZ(45px);
}
.hero__selo-titulo { margin: 0; font-family: var(--fonte-titulo); font-size: 1.125rem; line-height: 1.2; }
.hero__selo-texto { margin: .25rem 0 0; font-size: .8125rem; line-height: 1.4; }
.status-agora--selo { margin: .5rem 0 0 !important; font-size: .75rem !important; }

@media (min-width: 480px) {
  .hero__acoes { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--topo-cheio) + var(--esp-7)); }
  .hero__grade { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: var(--esp-6); }
  .hero__cena { max-width: 28.5rem; justify-self: end; }
  .hero__selo { left: -2rem; }
}
@media (min-width: 960px) {
  .hero { padding-top: calc(var(--topo-cheio) + var(--esp-8)); }
  .hero__grade { gap: var(--esp-8); }
  .hero__subtitulo { font-size: 1.1875rem; margin: var(--esp-5) 0 var(--esp-6); }
}

/* Entrada do topo ao carregar (palavras do título em sequência; foto com leve zoom de abertura) */
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes assentar { from { transform: scale(1.045); } to { transform: none; } }
/* "surgir" usa a propriedade translate (e não transform) para não apagar a profundidade translateZ das camadas */
@keyframes surgir { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__entra { animation: subir .9s var(--lento) both; animation-delay: calc(.1s + var(--ordem) * .12s); }
  .js .hero__titulo .palavra { animation: subir .9s var(--lento) both; animation-delay: calc(.15s + var(--i) * .06s); }
  .js .hero__foto img { animation: assentar 1.6s var(--lento) both; }
  .js .hero__moldura { animation: surgir 1.2s .5s var(--lento) both; }
  .js .hero__selo { animation: surgir 1s .8s var(--lento) both; }
}

/* ---------- Faixa de serviços (rolagem contínua e lenta) ---------- */
.faixa {
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--cor-cafe);
  color: var(--cor-dourado-claro);
  border-block: 1px solid rgba(226, 200, 143, .55);
}
.faixa__trilho { display: flex; width: max-content; }
.faixa__grupo { display: flex; align-items: center; flex: none; }
.faixa__grupo li {
  display: inline-flex;
  align-items: center;
  font-family: var(--fonte-titulo);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  white-space: nowrap;
}
.faixa__grupo li::after { /* losango dourado entre os itens */
  content: "";
  width: 7px; height: 7px;
  margin: 0 1.6rem;
  border: 1px solid var(--cor-fundo);
  transform: rotate(45deg);
}
@keyframes deslizar { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .faixa__trilho { animation: deslizar 70s linear infinite; }
  .faixa:hover .faixa__trilho { animation-play-state: paused; }
}

/* ---------- Sobre ---------- */
.sobre { display: grid; gap: var(--esp-7); }
.sobre__texto > p { max-width: 34rem; }
/* Uma foto só, com a moldura dourada deslocada atrás (mesmo desenho do hero) */
.sobre__fotos { position: relative; padding: 0 .75rem .75rem 0; }
.sobre__foto { position: relative; isolation: isolate; }
.sobre__cartao { /* mesmo efeito dos cartões da galeria */
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--raio-cartao);
  box-shadow: var(--sombra-alta);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--lento), box-shadow .8s var(--lento);
}
.sobre__cartao.inclinando { transition-duration: .2s; }
.sobre__cartao img { width: 100%; transition: transform 1.2s var(--lento); }
.sobre__cartao:hover img { transform: scale(1.05); }
.sobre__cartao::after { /* brilho que acompanha o mouse */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 246, 225, .28), transparent 55%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.sobre__cartao:hover::after { opacity: 1; }
.sobre__moldura {
  position: absolute;
  inset: .75rem -.75rem -.75rem .75rem;
  border: 1px solid var(--cor-dourado);
}
[data-paralaxe] { transform: translateY(var(--paralaxe, 0px)); }

.numeros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--esp-5) var(--esp-4);
  margin: var(--esp-6) 0 0;
  padding-top: var(--esp-5);
  border-top: 1px solid rgba(169, 154, 136, .6);
}
.numero dd { margin: 0; display: flex; flex-direction: column; }
.numero__valor { font-family: var(--fonte-titulo); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem); line-height: 1; font-variant-numeric: lining-nums; color: var(--cor-ouro); }
.numero__rotulo { margin-top: .4rem; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 600px) { .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sobre { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--esp-8); } }

/* Pilares */
.pilares { display: grid; gap: var(--esp-4); margin-top: var(--esp-8); }
.pilar {
  position: relative;
  padding: var(--esp-6) var(--esp-5);
  background: var(--cor-areia);
  border-radius: var(--raio-cartao);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sobe, 0px));
  transition: transform .8s var(--lento), box-shadow .8s var(--lento);
}
.pilar::before { /* traço dourado no topo: curto em repouso, completo no hover */
  content: "";
  position: absolute;
  top: 0; left: var(--esp-5); right: var(--esp-5);
  height: 2px;
  background: var(--gradiente-dourado);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .8s var(--lento);
}
.pilar:hover::before { transform: scaleX(1); }
.pilar:hover { --sobe: -4px; box-shadow: var(--sombra-alta); }
.pilar h3 { margin: var(--esp-4) 0 var(--esp-2); }
.pilar p { font-size: .9375rem; }
.pilar__icone {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--cor-fundo), var(--cor-fundo)) padding-box, var(--gradiente-dourado) border-box; /* anel dourado */
  color: var(--cor-ouro);
}
.pilar__icone .icone { width: 1.4rem; height: 1.4rem; }
@media (min-width: 768px) { .pilares { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-5); } }

/* ---------- Serviços (cartões sem foto) ---------- */
.servicos { display: grid; gap: var(--esp-4); }
.servico {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--esp-6) var(--esp-5);
  background: var(--cor-fundo);
  border-radius: var(--raio-cartao);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--sobe, 0px));
  transition: transform .8s var(--lento), box-shadow .8s var(--lento);
}
.servico::before { /* linha dourada no topo que se desenha no hover */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradiente-dourado);
  transform: scaleX(.15); /* curto em repouso, completo no hover */
  transform-origin: left;
  transition: transform .8s var(--lento);
}
.servico:hover { --sobe: -5px; box-shadow: var(--sombra-alta); }
.servico:hover::before, .servico:focus-within::before { transform: scaleX(1); }
.servico__num {
  font-family: var(--fonte-titulo);
  font-size: 1.75rem; /* 28px */
  line-height: 1;
  color: var(--cor-ouro);
}
.servico h3 { margin: var(--esp-4) 0 var(--esp-2); }
.servico > p { font-size: .9375rem; }
.servico__itens { display: flex; flex-wrap: wrap; gap: .4rem; margin: var(--esp-2) 0 var(--esp-5); }
.servico__itens li {
  padding: .3rem .7rem;
  border: 1px solid rgba(169, 154, 136, .8);
  border-radius: var(--raio-pilula);
  font-size: .8125rem;
  font-weight: 500;
}
.servico__agendar { margin-top: auto; align-self: flex-start; }
@media (min-width: 700px) { .servicos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-5); } }
@media (min-width: 1100px) { .servicos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Galeria (4 fotos; carrossel no celular) ---------- */
.galeria {
  display: flex;
  gap: var(--esp-4);
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--esp-2) var(--gutter) var(--esp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--cor-dourado) transparent;
}
.galeria__item { flex: 0 0 72%; scroll-snap-align: start; }
.galeria__cartao {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--raio-cartao);
  background: var(--cor-areia);
  box-shadow: var(--sombra-suave);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--lento), box-shadow .8s var(--lento);
}
.galeria__cartao.inclinando { transition-duration: .2s; }
.galeria__cartao:hover { box-shadow: var(--sombra-alta); }
.galeria__cartao img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--lento); }
.galeria__cartao:hover img { transform: scale(1.05); }
.galeria__cartao::after { /* brilho que acompanha o mouse */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 246, 225, .28), transparent 55%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.galeria__cartao:hover::after { opacity: 1; }
.galeria__rotulo {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .35rem .8rem;
  border-radius: var(--raio-pilula);
  background: var(--cor-cafe);
  color: var(--cor-dourado-claro);
  box-shadow: inset 0 0 0 1px rgba(226, 200, 143, .5);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform .6s var(--lento);
}
.galeria__cartao:hover .galeria__rotulo { transform: translateY(-4px); }
.galeria__cartao:focus-visible { outline-offset: 4px; }
@media (min-width: 600px) { .galeria__item { flex-basis: 44%; } }
@media (min-width: 960px) {
  .galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--esp-5); margin-inline: 0; padding: 0; overflow: visible; }
  .galeria__item:nth-child(even) { margin-top: var(--esp-7); } /* ritmo alternado */
}

.instagram {
  margin-top: var(--esp-7);
  padding: var(--esp-6) var(--esp-5);
  border: 1px solid rgba(201, 163, 95, .6);
  border-radius: var(--raio-cartao);
}
.instagram__texto { font-family: var(--fonte-titulo); font-size: 1.25rem; }
.instagram__destaques { display: flex; flex-wrap: wrap; gap: .45rem; margin: var(--esp-4) 0 var(--esp-5); }
.instagram__destaques li {
  padding: .3rem .75rem;
  border-radius: var(--raio-pilula);
  background: var(--cor-areia);
  font-size: .8125rem;
  font-weight: 500;
}
@media (min-width: 960px) {
  .instagram { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: var(--esp-6); }
  .instagram__texto { margin: 0; }
  .instagram__destaques { margin: 0; }
}

/* ---------- Depoimentos (carrossel com rolagem lateral) ---------- */
.depoimentos {
  display: flex;
  gap: var(--esp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--esp-2);
}
.depoimentos::-webkit-scrollbar { display: none; }
.depoimentos:focus-visible { outline-offset: 6px; }
.depoimento {
  position: relative;
  flex: 0 0 86%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: var(--esp-6) var(--esp-5);
  border: 1px solid rgba(226, 200, 143, .35);
  border-radius: var(--raio-cartao);
  background: rgba(58, 42, 33, .25);
}
.depoimento::before { /* aspas decorativas douradas */
  content: "\201C";
  font-family: var(--fonte-titulo);
  font-size: 4.5rem;
  line-height: .7;
  color: var(--cor-dourado-claro);
}
.depoimento blockquote { margin: var(--esp-3) 0 var(--esp-5); flex: 1; }
.depoimento blockquote p { font-family: var(--fonte-titulo); font-size: clamp(1.3rem, 1.2rem + .5vw, 1.6rem); line-height: 1.35; }
.depoimento figcaption {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cor-dourado-claro);
}
@media (min-width: 600px) { .depoimento { flex-basis: 60%; } }
@media (min-width: 960px) { .depoimento { flex: 1 1 0; } }

.controles { display: flex; gap: var(--esp-2); }
.controle, .pontos button { cursor: pointer; }
.controle {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--cor-dourado-claro);
  border-radius: 50%;
  background: transparent;
  color: var(--cor-fundo);
  transition: transform .5s var(--lento);
}
.controle:hover { transform: scale(1.06); }
.controle:disabled { opacity: .35; cursor: default; transform: none; }
.pontos { display: flex; justify-content: center; gap: .25rem; margin-top: var(--esp-4); }
.pontos button {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
}
.pontos button::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--cor-dourado-claro);
  transition: transform .4s var(--lento);
}
.pontos button[aria-current="true"]::before { background: var(--cor-dourado-claro); transform: scale(1.25); }

/* ---------- Seu momento / como agendar ---------- */
.momento { display: grid; gap: var(--esp-7); }
.momento__intro h3 { margin: var(--esp-6) 0 var(--esp-3); }
.momento__intro p { max-width: 30rem; }
.momento__passos h3 { margin-bottom: var(--esp-4); }
.passos { position: relative; margin: 0 0 var(--esp-6); }
.passos::before { /* linha dourada que liga os passos e se desenha ao aparecer */
  content: "";
  position: absolute;
  left: calc(1.375rem - .5px);
  top: 2.5rem;
  bottom: 2.5rem;
  width: 1px;
  background: var(--gradiente-dourado);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s .3s var(--lento);
}
.visivel .passos::before, html:not(.revelar-ativo) .passos::before { transform: scaleY(1); }
.passo {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--esp-4);
  padding: var(--esp-5) 0;
}
.passo__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--cor-dourado);
  border-radius: 50%;
  background: var(--cor-fundo);
  color: var(--cor-ouro);
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  transition: transform .6s var(--lento);
}
.passo:hover .passo__num { transform: scale(1.08); }
.passo__titulo { margin-bottom: var(--esp-1); font-weight: 500; }
@media (min-width: 960px) { .momento { grid-template-columns: 1fr 1fr; gap: var(--esp-8); align-items: start; } }

/* ---------- Dúvidas (acordeão) ---------- */
.duvidas { display: grid; gap: var(--esp-6); }
.faq { border-top: 1px solid rgba(97, 69, 55, .3); }
.faq__item { border-bottom: 1px solid rgba(97, 69, 55, .3); }
.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: var(--esp-4) 3rem var(--esp-4) 0;
  font-family: var(--fonte-titulo);
  font-size: 1.1875rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { /* sinal de + que vira − */
  content: "";
  position: absolute;
  right: .9rem;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--cor-ouro);
  transition: transform .5s var(--lento);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item[open] summary::before { transform: rotate(180deg); }
.faq__resposta { padding: 0 3rem var(--esp-5) 0; }
.faq__resposta a { text-underline-offset: 3px; }
@keyframes abrir-resposta { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__resposta { animation: abrir-resposta .5s var(--lento); }
}
@media (min-width: 960px) {
  .duvidas { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--esp-8); align-items: start; }
}

/* ---------- Horários e localização ---------- */
.contato { display: grid; gap: var(--esp-5); }
.cartao {
  padding: var(--esp-6) var(--esp-5);
  border: 1px solid rgba(169, 154, 136, .7);
  border-radius: var(--raio-cartao);
  transition: box-shadow .8s var(--lento);
}
.cartao:hover { box-shadow: var(--sombra-suave); }
.cartao h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--esp-4); }
.cartao h3 .icone { color: var(--cor-ouro); width: 1.5rem; height: 1.5rem; }
.cartao { border-top: 2px solid var(--cor-dourado); }

.status-agora { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: var(--esp-3); font-size: .875rem; font-weight: 500; }
.status-agora::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--cor-cafe); }
.status-agora.aberto::before { background: var(--cor-cafe); }

.tabela-horarios { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tabela-horarios th, .tabela-horarios td {
  padding: .85rem .5rem .85rem 0;
  border-bottom: 1px solid rgba(169, 154, 136, .7);
  text-align: left;
  vertical-align: middle;
}
.tabela-horarios thead th { padding-top: 0; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tabela-horarios tbody th { font-weight: 500; }
.tabela-horarios td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.selo-fechado { display: inline-block; padding: .3rem .8rem; background: var(--cor-cafe); color: var(--cor-fundo); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.selo-hoje {
  display: inline-block;
  margin-left: .5rem;
  padding: .1rem .5rem;
  border: 1px solid var(--cor-cafe);
  border-radius: var(--raio-pilula);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.nota { margin-top: var(--esp-4); font-size: .875rem; }

.local address { margin-bottom: var(--esp-5); font-size: 1.0625rem; line-height: 1.6; }
.mapa { margin-top: var(--esp-5); aspect-ratio: 4 / 3; background: var(--cor-areia); border-radius: var(--raio-cartao); overflow: hidden; }
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) {
  .contato { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--esp-6); align-items: start; }
  .cartao { padding: var(--esp-7) var(--esp-6); }
  .mapa { aspect-ratio: 16 / 9; }
}

/* ---------- Agendamento ---------- */
.agendar { overflow: hidden; }
.agendar__ornamento { /* losango dourado gigante girando bem devagar ao fundo */
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 34rem);
  aspect-ratio: 1;
  margin: calc(min(80vw, 34rem) / -2) 0 0 calc(min(80vw, 34rem) / -2);
  border: 1px solid rgba(226, 200, 143, .22);
  transform: rotate(45deg);
  pointer-events: none;
}
.agendar__ornamento::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(226, 200, 143, .14);
}
@keyframes girar { to { transform: rotate(405deg); } }
@media (prefers-reduced-motion: no-preference) {
  .agendar__ornamento { animation: girar 120s linear infinite; }
}
.agendar__conteudo { position: relative; text-align: center; }
.agendar__conteudo h2 { max-width: 36rem; margin-inline: auto; }
.agendar__conteudo > p { margin: var(--esp-4) auto 0; max-width: 32rem; }
.agendar__acoes { display: flex; flex-direction: column; align-items: stretch; gap: var(--esp-3); margin: var(--esp-6) auto 0; max-width: 22rem; }
.agendar__telefone { margin-top: var(--esp-5) !important; font-size: .9375rem; }
.agendar__telefone a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cor-dourado-claro); }
@media (min-width: 600px) { .agendar__acoes { flex-direction: row; justify-content: center; max-width: none; } }

/* ---------- Rodapé (espresso + dourado) ---------- */
.rodape { padding-top: var(--esp-8); background: var(--cor-espresso); color: var(--cor-areia); }
.rodape :focus-visible { outline-color: var(--cor-fundo); }
.rodape__grade { display: grid; gap: var(--esp-6); }
.rodape .marca { align-items: flex-start; color: var(--cor-fundo); }
.rodape__frase { margin-top: var(--esp-3); font-family: var(--fonte-titulo); font-size: 1.125rem; color: var(--cor-dourado-claro); }
.rodape__titulo { margin-bottom: var(--esp-3); font: 500 .75rem/1.4 var(--fonte-texto); letter-spacing: .16em; text-transform: uppercase; color: var(--cor-dourado-claro); }
.rodape__bloco { font-size: .9375rem; }
.rodape__bloco address { margin-bottom: var(--esp-2); }
.rodape__links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--cor-fundo); text-decoration: none; }
.rodape__links a:hover { text-decoration: underline; text-decoration-color: var(--cor-dourado); text-underline-offset: 4px; }
.rodape__base {
  margin-top: var(--esp-7);
  padding: var(--esp-5) 0 6rem; /* espaço livre para o botão flutuante */
  border-top: 1px solid rgba(226, 200, 143, .25);
  font-size: .8125rem;
}
.rodape__autor { /* nome do desenvolvedor → Instagram @mrissardi.dev */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cor-dourado-claro);
  text-decoration: underline;
  text-decoration-color: rgba(226, 200, 143, .5);
  text-underline-offset: 4px;
  transition: text-decoration-color .4s ease;
}
.rodape__autor:hover { text-decoration-color: var(--cor-dourado-claro); }
@media (min-width: 768px) { .rodape__grade { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .rodape__grade { grid-template-columns: 1.3fr 1.2fr 1fr .8fr; }
  .rodape__base { padding-bottom: var(--esp-5); }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-flutuante {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--cor-cafe);
  color: var(--cor-fundo);
  box-shadow: 0 8px 24px rgba(58, 42, 33, .3), inset 0 0 0 1px rgba(226, 200, 143, .6);
  transition: opacity .4s ease, transform .5s var(--lento), visibility 0s linear 0s;
}
.wa-flutuante::before { /* anel dourado que "respira" de tempos em tempos */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--cor-dourado);
  opacity: 0;
  pointer-events: none;
}
@keyframes respirar { 0%, 70% { opacity: 0; transform: scale(1); } 80% { opacity: .9; } 100% { opacity: 0; transform: scale(1.45); } }
@media (prefers-reduced-motion: no-preference) {
  .wa-flutuante::before { animation: respirar 5s 2s ease-out infinite; }
}
.wa-flutuante .icone { width: 1.6rem; height: 1.6rem; }
.wa-flutuante:hover { background: var(--cor-cafe-escuro); }
.wa-flutuante:focus-visible { outline-offset: 4px; }
.wa-flutuante.oculto {
  opacity: 0;
  transform: translateY(.75rem) scale(.92);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
@media (min-width: 960px) { .wa-flutuante { right: 2rem; bottom: 2rem; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 4.5rem var(--esp-4) 5.5rem;
  border: 0;
  background: transparent;
  color: var(--cor-fundo);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(33, 23, 18, .97); } /* = --cor-noite; literal porque Safari antigo não herda variáveis no ::backdrop */
.lightbox :focus-visible { outline-color: var(--cor-fundo); }
.lightbox__figura { display: flex; flex-direction: column; align-items: center; gap: var(--esp-3); max-height: 100%; }
@keyframes abrir-foto { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__figura { animation: abrir-foto .5s var(--lento); }
  .lightbox__img.trocando { animation: abrir-foto .45s var(--lento); }
}
.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(100%, 1080px);
  max-height: calc(100vh - 12rem);
  max-height: calc(100dvh - 12rem);
  object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(226, 200, 143, .3);
}
.lightbox__legenda { max-width: 40rem; font-size: .9375rem; text-align: center; }
.lightbox__contador { position: absolute; top: 1.6rem; left: 1.25rem; margin: 0; font-size: .8125rem; letter-spacing: .12em; color: var(--cor-dourado-claro); }
.lightbox__botao {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(226, 200, 143, .6);
  border-radius: 50%;
  background: rgba(33, 23, 18, .55);
  color: var(--cor-fundo);
  cursor: pointer;
}
.lightbox__botao:hover { background: rgba(243, 240, 234, .12); }
.lightbox__fechar { top: 1rem; right: 1rem; }
.lightbox__anterior { left: 1rem; bottom: 1.25rem; }
.lightbox__proxima { right: 1rem; bottom: 1.25rem; }
@media (min-width: 768px) {
  .lightbox { padding: 4.5rem 6rem; }
  .lightbox__anterior, .lightbox__proxima { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__anterior { left: 1.5rem; }
  .lightbox__proxima { right: 1.5rem; }
  .lightbox__img { max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); }
}

/* ---------- Efeitos de entrada ao rolar (ligados pelo script.js) ---------- */
.revelar-ativo .revelar {
  transition: opacity 1s var(--lento), transform 1s var(--lento);
  transition-delay: var(--atraso, 0s);
}
.revelar-ativo .revelar:not(.visivel) { opacity: 0; transform: translateY(1.25rem); }
/* Depoimentos entram com uma leve rotação 3D (o carrossel inteiro, para não esconder cartões fora da tela) */
.revelar-ativo .depoimentos.revelar:not(.visivel) { transform: perspective(900px) rotateX(8deg) translateY(1.25rem); }

/* ---------- Movimento reduzido: tudo parado ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .revelar-ativo .revelar:not(.visivel) { opacity: 1; transform: none; }
  [data-paralaxe] { transform: none; }
  .galeria__cartao:hover img, .sobre__cartao:hover img { transform: none; }
}
