/* Antic Didone servida pelo próprio site (licença OFL), pré-carregada no <head>.
   font-display: block evita aparecer primeiro numa fonte reserva grossa e trocar
   em seguida (o "pisca" do título). */
@font-face {
  font-family: "Antic Didone";
  src: url("../fonts/antic-didone-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ==========================================================================
   VILA VERDE — Página principal
   G.NOVE · 2026

   Assinaturas (3, repetidas com intenção):
   1. Liquid glass branco  .liquid-glass / .liquid-glass-strong
      (especificação exata do prompt de referência do Miguel)
   2. Botão dourado metálico  .btn-gold
   3. Serif Italiana em display grande + reveal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* cores */
  --preto: #080b09;
  --verde-escuro: #12271c;
  --verde-fundo: #0e1f16;
  --verde-medio: #2d5a3f;
  --dourado: #c9a84c;
  --dourado-light: #e8c97a;
  --off-white: #f7f5f0;
  --texto-escuro: #171c18;
  --texto-medio: #4a544c;
  --texto-claro: #7d867e;
  --borda: #e4e0d7;

  /* tipografia */
  /* Títulos: Antic Didone, aprovada pelo Miguel em 13/10/2026 (a Italiana era fina demais nas pontas). */
  --serif: "Antic Didone", "Cormorant Garamond", Georgia, serif;
  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-hero: clamp(3.4rem, 17vw, 15rem);
  --t-display: clamp(2.4rem, 7vw, 5.6rem);
  --t-h2: clamp(1.9rem, 5vw, 3.4rem);
  --t-h3: clamp(1.3rem, 3.4vw, 2rem);
  --t-body: clamp(0.95rem, 2.8vw, 1.03rem);
  --t-kicker: 0.68rem;

  /* espaçamento */
  --gutter: 20px;
  --sec-y: clamp(76px, 12vw, 148px);
  --maxw: 1320px;

  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* no celular o overflow-x só do body vaza para o html e a página "solta" para o lado */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  background: var(--preto);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 2;
  background: var(--preto);
}

img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--dourado); color: var(--preto); }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; border-radius: 4px; }

/* GUARDRAIL BUG-001/003: layout só em container; padding lateral nunca zerado */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 20px; background: var(--verde-escuro); color: var(--off-white); }
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   3. ASSINATURA 1 — LIQUID GLASS
   Especificação exata da referência aprovada pelo Miguel.
   -------------------------------------------------------------------------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* conteúdo acima do aro de luz */
.liquid-glass > *, .liquid-glass-strong > * { position: relative; z-index: 2; }

/* GUARDRAIL BUG-006: blur de 50px sobre vídeo trava em celular.
   Sobre mídia e em tela pequena, o vidro vira superfície estática. */
@media (max-width: 860px) {
  .on-media .liquid-glass-strong {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.07);
  }
}

/* --------------------------------------------------------------------------
   4. ASSINATURA 2 — BOTÃO DOURADO METÁLICO
   Moldura em relevo + superfície polida, na linha da referência enviada.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              filter 0.25s var(--ease);
}

.btn-gold {
  position: relative;
  /* overflow contém o brilho especular dentro da pílula */
  overflow: hidden;
  color: #33260a;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  /* metal polido: brilho no topo + varredura diagonal escuro→luz→escuro */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 46%,
                    rgba(120, 88, 14, 0.28) 100%),
    linear-gradient(100deg,
      #9a7415 0%,
      #c9a238 16%,
      #f8ebb4 38%,
      #ffdc6b 54%,
      #eac65c 70%,
      #c49c2e 86%,
      #9c7717 100%);
  /* a moldura vem de box-shadow: não é cortada pelo overflow */
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 235, 0.72),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -5px 9px rgba(104, 74, 9, 0.45),
    0 0 0 3px #8e6c14,
    0 0 0 4.5px rgba(250, 233, 176, 0.9),
    0 14px 30px rgba(0, 0, 0, 0.42);
}

/* brilho especular que corre no hover */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.78) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}

.btn-gold > * { position: relative; z-index: 2; }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:active { transform: translateY(0) scale(0.985); }

.btn-glass { color: var(--off-white); }
.btn-glass:hover { transform: translateY(-2px); }

.btn-plain {
  border: 1px solid var(--borda);
  color: var(--texto-escuro);
  background: #fff;
}
.btn-plain:hover { border-color: var(--dourado); }

/* --------------------------------------------------------------------------
   5. TIPOGRAFIA
   -------------------------------------------------------------------------- */
.hero-title {
  font-family: var(--serif);
  font-size: var(--t-hero);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-align: center;
  color: #fff;
}

.display { font-family: var(--serif); font-size: var(--t-display); line-height: 0.98; }
.h2 { font-family: var(--serif); font-size: var(--t-h2); line-height: 1.02; }
.h3 { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.05; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-kicker);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dourado);
}
/* sem o traço antes do rótulo: pedido do Miguel em 14/10/2026 (parecia travessão) */

.lead {
  max-width: 56ch;
  font-size: clamp(1rem, 2.9vw, 1.14rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247, 245, 240, 0.74);
}

.on-light { color: var(--texto-escuro); }
.on-light .lead { color: var(--texto-medio); }

/* --------------------------------------------------------------------------
   6. REVEAL
   -------------------------------------------------------------------------- */
/* espaço entre palavras vem de nó de texto real (acessibilidade e SEO) */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.45em);
}
.reveal-words.is-in .word {
  animation: word-in 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.reveal-words.is-done .word {
  animation: none; opacity: 1; filter: none; transform: none;
}
@keyframes word-in {
  55%  { opacity: 0.6; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}

.rise {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0s);
}
.rise.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   7. NAV (pílula de vidro, molde da referência)
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(100%, var(--maxw));
  padding-inline: var(--gutter);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.nav-wrap.is-hidden { transform: translateX(-50%) translateY(-140%); opacity: 0; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  /* folga igual em volta: sem isso o botão encosta na borda da pílula */
  padding: 11px 11px 11px 20px;
  border-radius: var(--r-pill);
}

/* só a marca, sem o nome escrito ao lado */
.nav-brand { display: flex; align-items: center; }
.nav-brand img { width: 52px; height: auto; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.footer-brand .nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* o rodapé é branco: a marca dourada some nele, então vira preta */
.footer-brand .nav-brand img {
  width: 100px;
  height: auto;
  filter: brightness(0);
}
.footer-brand .nav-brand span {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--texto-escuro);
  white-space: nowrap;
}
.footer-grid { display: grid; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.footer-brand p { margin-top: 14px; max-width: 32ch; }

.nav-links { display: none; align-items: center; gap: 4px; margin-left: 6px; }
.nav-links a {
  padding: 7px 12px;
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  margin-left: auto;
  min-height: 48px;
  padding: 0 24px;
  font-size: 0.86rem;
}

.nav-toggle {
  margin-left: auto;
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  color: #fff;
}
.nav-toggle span { display: block; width: 18px; height: 1.4px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

.nav-menu {
  margin-top: 8px;
  border-radius: var(--r-lg);
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.3s var(--ease), padding 0.5s var(--ease);
  padding-block: 0;
}
.nav-menu.is-open { max-height: 460px; opacity: 1; padding: 10px; }
.nav-menu a { padding: 13px 16px; border-radius: var(--r-md); color: #fff; font-size: 1rem; }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.08); }

@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-menu { display: none; }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
  padding-block: 112px 26px;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
/* GUARDRAIL BUG-006: contraste por gradiente estático, nunca blur sobre o vídeo */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 8, 0.6) 0%, rgba(6, 12, 8, 0.15) 32%,
              rgba(6, 12, 8, 0.4) 68%, rgba(6, 12, 8, 0.88) 100%);
}

.hero-center {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding-inline: var(--gutter);
}

.hero-badge {
  padding: 7px 18px;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
  justify-items: center;
  padding-inline: var(--gutter);
}

.hero-bottom p {
  max-width: 34ch;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- contador do hero, logo abaixo do nome --- */
.hero-selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  /* entrada: sobe, desembaça e expande */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-selo.is-in { opacity: 1; transform: none; }

.hero-selo small {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-selo .mais,
.contador {
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.hero-selo .mais { font-size: clamp(1.8rem, 4.4vw, 2.5rem); margin-right: -4px; letter-spacing: -0.02em; }

.contador {
  display: inline-flex;
  align-items: center;
  font-size: clamp(2rem, 5.6vw, 3.2rem);
  letter-spacing: -0.04em;
  /* o número entra do desfoque para o foco */
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.88);
  transition: filter 0.85s var(--ease) 0.25s, opacity 0.85s var(--ease) 0.25s,
              transform 0.85s var(--ease) 0.25s;
}
.hero-selo.is-in .contador { filter: blur(0); opacity: 1; transform: none; }

/* altura com folga: a Italiana desenha algarismos mais altos que 1em e
   uma janela justa cortava o topo dos números */
/* A largura vem do maior DESENHO de algarismo (o "0", 0,56em na Italiana),
   não do avanço tipográfico — usar o avanço abria um vão enorme entre os
   números, porque nesta fonte o "1" desenha menos da metade do "0". */
/* sem isto, selecionar a página copiava os dez algarismos de cada coluna
   ("1800123456789012...") em vez de "180" */
.cont-digito {
  position: relative;
  display: block;
  height: 1.1em;
  overflow: hidden;
  width: 0.58em;
  user-select: none;
  -webkit-user-select: none;
}

.cont-trilho {
  display: block;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

/* o valor real, invisível mas copiável e legível por leitor de tela */
.cont-valor {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.cont-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.3em;
  line-height: 1;
}

/* ao fechar a contagem, um brilho curto confirma o número */
.contador.contou { animation: contou 1s var(--ease); }
@keyframes contou {
  40% { text-shadow: 0 0 24px rgba(232, 201, 122, 0.85); }
  100% { text-shadow: none; }
}

@media (min-width: 900px) {
  .hero { padding-block: 132px 44px; }
  .hero-bottom {
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 30px;
  }
  .hero-bottom p { max-width: 24ch; text-align: left; }
  .hero-bottom p:last-of-type { text-align: right; justify-self: end; }
}

/* notebook de tela baixa: o título gigante não pode empurrar os botões pra fora */
@media (min-width: 900px) and (max-height: 880px) {
  :root { --t-hero: clamp(3.4rem, 12vw, 9.5rem); }
  .hero { padding-block: 112px 30px; }
}

/* --------------------------------------------------------------------------
   9. MANIFESTO
   -------------------------------------------------------------------------- */
.manifesto { background: var(--preto); text-align: center; }
.manifesto .display { max-width: 20ch; margin-inline: auto; }
.manifesto .display em { font-style: normal; color: var(--dourado-light); }
.manifesto .lead { margin: 26px auto 0; }

/* --------------------------------------------------------------------------
   10. FRENTES — painéis que expandem
   -------------------------------------------------------------------------- */
.frentes { background: var(--verde-fundo); }
.frentes-head { display: grid; gap: 16px; margin-bottom: clamp(34px, 5vw, 56px); }

.painel-set {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto;
}

.painel {
  position: relative;
  flex: 1 1 auto;
  min-height: 116px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: #0b1610;
  transition: flex-grow 0.65s var(--ease), min-height 0.65s var(--ease);
}

.painel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) brightness(0.62);
  transform: scale(1.04);
  transition: filter 0.65s var(--ease), transform 0.9s var(--ease);
}

.painel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.1) 40%, rgba(8, 16, 11, 0.85) 100%);
}

.painel-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.painel-label b {
  width: 3px;
  height: 26px;
  border-radius: 3px;
  background: var(--dourado);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.painel-label h3 { color: #fff; }

.painel-texto {
  max-width: 44ch;
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.08s, transform 0.5s var(--ease) 0.08s;
}

.painel.is-active { min-height: 330px; }
.painel.is-active img { filter: grayscale(0) brightness(0.82); transform: scale(1); }
.painel.is-active .painel-label b { opacity: 1; transform: scaleY(1); }
.painel.is-active .painel-texto { opacity: 1; transform: none; }

@media (min-width: 940px) {
  .painel-set { flex-direction: row; height: 470px; gap: 12px; }
  .painel { min-height: 0; flex: 1 1 0; }
  .painel.is-active { flex-grow: 4.6; min-height: 0; }
  .painel-label { flex-direction: column; align-items: flex-start; gap: 8px; }
  .painel:not(.is-active) .painel-label h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 4px;
  }
  .painel-label b { width: 26px; height: 3px; }
}

/* --------------------------------------------------------------------------
   11. GALERIA (masonry)
   -------------------------------------------------------------------------- */
.galeria { background: var(--off-white); color: var(--texto-escuro); }
.galeria-head { display: grid; gap: 18px; align-items: end; margin-bottom: clamp(32px, 5vw, 52px); }

/* masonry posicionado por JS: cada item recebe width/height/translate */
.masonry { position: relative; width: 100%; }

/* --- filtros da galeria --- */
.galeria-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(24px, 3.5vw, 38px);
}

.filtro-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--borda);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--texto-medio);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}

.filtro-chip small {
  font-size: 0.72rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.filtro-chip:hover { border-color: var(--dourado); color: var(--texto-escuro); }

.filtro-chip.is-ativo {
  background: var(--verde-fundo);
  border-color: var(--verde-fundo);
  color: #fff;
}
.filtro-chip.is-ativo small { opacity: 0.75; }

.galeria-mais { margin-top: clamp(22px, 3vw, 34px); text-align: center; }
.galeria-mais .btn { min-height: 48px; }

/* no celular os 10 filtros empilhavam e comiam meia tela: viram faixa rolável */
@media (max-width: 720px) {
  .galeria-filtros {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  .galeria-filtros::-webkit-scrollbar { display: none; }
  .filtro-chip { flex: 0 0 auto; scroll-snap-align: start; }
}

.mas-item.is-hidden { display: none; }

.mas-item {
  position: absolute;
  top: 0;
  left: 0;
  /* Remove a margem nativa do figure, que deslocava o mosaico 40px. */
  margin: 0;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #eceae3;
  cursor: pointer;
  opacity: 0;
  filter: blur(10px);
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.62s var(--ease),
    width 0.62s var(--ease),
    height 0.62s var(--ease),
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease),
    box-shadow 0.4s var(--ease);
}

.mas-item.is-in { opacity: 1; filter: blur(0); }

.mas-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.mas-item:hover { box-shadow: 0 20px 48px -14px rgba(0, 0, 0, 0.4); }
.mas-item:hover img { transform: scale(1.06); }

.mas-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mas-item:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .mas-item figcaption { opacity: 1; transform: none; } }

@media (min-width: 720px) { .galeria-head { grid-template-columns: 1fr auto; } }

/* --------------------------------------------------------------------------
   12. ESTRUTURA (editorial, sem cards)
   -------------------------------------------------------------------------- */
/* foto real do espaço desfocada como fundo, cards de vidro por cima */
.estrutura {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.estrutura::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: 0;
  background-image: url("../img/galeria/salao-festa.webp");
  background-size: cover;
  background-position: center;
  /* desfoque mais leve: a foto ainda se lê como ambiente, não como mancha */
  filter: blur(6px) saturate(0.85) brightness(0.55);
  transform: scale(1.03);
}

/* véu neutro (preto), sem puxar para o verde */
.estrutura::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.8) 0%, rgba(7, 7, 7, 0.46) 30%,
              rgba(7, 7, 7, 0.46) 70%, rgba(7, 7, 7, 0.88) 100%);
}

.estrutura > .shell { position: relative; z-index: 2; }

/* pilha: cada card gruda no topo e encolhe quando o próximo sobe por cima */
.stack { margin-top: clamp(38px, 6vw, 64px); }

.stack-card {
  position: sticky;
  top: calc(96px + var(--i, 0) * 16px);
  margin-bottom: clamp(26px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--r-lg);
  transform: scale(var(--escala, 1));
  filter: blur(var(--desfoque, 0px));
  transform-origin: top center;
  will-change: transform, filter;
  /* vidro de verdade, igual ao dos botões: praticamente sem cor própria.
     Quem isola a leitura do card de baixo é o blur alto — não um fundo
     colorido. Por isso o desfoque aqui é forte e a cor quase nula. */
  background: rgba(255, 255, 255, 0.015);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(46px) saturate(1.35);
  backdrop-filter: blur(46px) saturate(1.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
}

/* o texto do vidro precisa de um empurrãozinho de contraste sobre foto clara */
.stack-card h3 { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.stack-card p { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, calc(0.75 * var(--sombra, 1)));
  pointer-events: none;
}

.stack-card > * { position: relative; z-index: 2; }

.stack-card b {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--dourado-light);
}

.stack-card h3 { margin-top: 10px; color: #fff; }

.stack-card p {
  margin-top: 12px;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

@media (min-width: 900px) {
  .stack-card { display: grid; grid-template-columns: 90px 1fr; gap: 30px; align-items: start; }
  .stack-card b { padding-top: 6px; }
  .stack-card h3 { margin-top: 0; }
}

/* GUARDRAIL BUG-006: seis camadas de blur empilhadas travam em celular.
   No mobile o desfoque cai e o véu sobe um pouco para compensar a leitura. */
@media (max-width: 860px) {
  .stack-card {
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    backdrop-filter: blur(20px) saturate(1.25);
    background: rgba(255, 255, 255, 0.05);
  }
  .estrutura::before { filter: blur(5px) saturate(0.85) brightness(0.48); }
}

/* --------------------------------------------------------------------------
   12b. DEPOIMENTOS — esfera WebGL
   -------------------------------------------------------------------------- */
/* faixa amarela suave: separa visualmente as avaliações da seção de vídeo.
   Cor única (o tom claro que antes só aparecia no topo do degradê) —
   sem escurecer para bronze na base. */
.depo {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--verde-escuro);
  background: #f2ddaa;
}

.depo > .shell { position: relative; z-index: 2; }

.depo-head { text-align: center; display: grid; gap: 14px; justify-items: center; }

/* sobre dourado, os textos da seção ficam escuros */
.depo .kicker { color: var(--verde-escuro); }
.depo .h2 { color: var(--verde-escuro); }

/* nota média, com a fonte do site */
.depo-nota {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.depo-nota b {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--verde-escuro);
  line-height: 1;
}
.depo-nota span { font-size: 0.82rem; color: var(--texto-medio); }
.depo-nota a {
  color: var(--texto-medio);
  text-decoration: underline;
  /* alvo de toque: o link tinha 15px de altura no celular */
  display: inline-block;
  padding-block: 11px;
  margin-block: -11px;
}
.depo-nota a:hover { color: var(--verde-escuro); }

.depo-palco {
  /* Largura total: rompe o container central (.shell) e vai de ponta a
     ponta da seção, como no componente original (InfiniteMenu ocupa
     100% do elemento-pai, sem faixas laterais vazias). */
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  /* Altura maior: em formato paisagem é a altura (não a largura) que
     define o tamanho do globo na tela. */
  height: clamp(480px, 78vh, 780px);
  margin-top: clamp(24px, 4vw, 44px);
}

.depo-palco canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  outline: none;
}
.depo-palco canvas:active { cursor: grabbing; }

.depo-painel {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: min(520px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  text-align: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.depo-painel.esta-movendo { opacity: 0; transform: translateX(-50%) translateY(14px); }

/* sobre o dourado, o cartão vira escuro para o texto ficar legível */
.depo-painel {
  background: rgba(14, 31, 22, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.depo-painel h3 { color: #fff; font-size: 1.3rem; }
.depo-painel p { margin-top: 8px; color: rgba(255, 255, 255, 0.86); font-size: 0.96rem; }

.depo-estrelas {
  margin: 0 0 6px !important;
  color: var(--dourado-light);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

/* título que o próprio cliente deu à avaliação */
.depo-resumo {
  margin-top: 4px !important;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--dourado-light) !important;
}

.depo-lista li { background: rgba(14, 31, 22, 0.86); }
.depo-lista strong { color: #fff; }
.depo-lista span { color: rgba(255, 255, 255, 0.82); }

.depo-pendente {
  border-color: rgba(23, 28, 24, 0.4);
  color: var(--verde-escuro);
}

.depo-dica {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* sobre o dourado, a dica precisa de tom cheio para passar no contraste */
  color: var(--verde-escuro);
  opacity: 0.85;
}

/* sem WebGL ou com movimento reduzido: vira lista simples */
.depo.sem-webgl .depo-palco,
.depo.sem-webgl .depo-dica { display: none; }
.depo-lista { display: none; }
.depo.sem-webgl .depo-lista {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.depo-lista li { padding: 20px 22px; border-radius: var(--r-md); }
.depo-lista strong { display: block; color: #fff; font-weight: 500; }
.depo-lista span { color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; }

/* aviso enquanto não houver depoimento verdadeiro */
.depo-pendente {
  margin: 26px auto 0;
  max-width: 620px;
  padding: 18px 22px;
  border: 1px dashed rgba(232, 201, 122, 0.5);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--dourado-light);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   13. MARCAS (logo loop)
   -------------------------------------------------------------------------- */
/* faixa clara, como na página antiga: fundo branco e marcas em preto */
.marcas {
  background: #ffffff;
  color: var(--texto-escuro);
  overflow: hidden;
}
.marcas .h2 { color: var(--texto-escuro); }
.marcas .kicker { color: var(--verde-medio); }
.marcas-nota { color: var(--verde-medio); }

.logo-loop {
  /* a faixa ficava a 24px do título, muito mais apertada que as outras seções */
  margin-top: clamp(56px, 7vw, 96px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track { display: flex; width: max-content; will-change: transform; }
.logo-track ul {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5.4vw, 76px);
  padding-right: clamp(40px, 5.4vw, 76px);
}
/* os arquivos já são pretos com fundo transparente — nada de filtro aqui */
.logo-track img {
  height: clamp(26px, 4.4vw, 38px);
  width: auto;
  opacity: 0.72;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.logo-track li:hover img { opacity: 1; transform: scale(1.05); }

/* --------------------------------------------------------------------------
   14. ASSINATURA 3 — MOLDURA QUE ABRE (mapa)
   GUARDRAIL BUG-009: scroll da janela, o track define a altura.
   -------------------------------------------------------------------------- */
.local { background: var(--preto); }
.frame-track { position: relative; height: 240vh; }
.frame-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.frame-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--iy, 22%) var(--ix, 26%) var(--iy, 22%) var(--ix, 26%) round var(--fr, 26px));
  will-change: clip-path;
}
.frame-clip iframe { width: 100%; height: 100%; border: 0; }
.frame-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 14, 10, 0.5), transparent 45%, rgba(8, 14, 10, 0.8));
  opacity: var(--scrim, 0);
}
.frame-title {
  position: relative; z-index: 3; text-align: center; pointer-events: none;
  padding-inline: var(--gutter);
  opacity: var(--tOp, 1);
  transform: translateY(var(--tY, 0px));
}
.frame-card {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 54px);
  z-index: 4;
  width: min(540px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  text-align: center;
  opacity: var(--cOp, 0);
}
.frame-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.frame-card .btn { margin-top: 16px; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
/* foto de fundo levemente desfocada; as perguntas viram cards de vidro */
.faq {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--off-white);
}

.faq::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: 0;
  background-image: url("../img/galeria/fachada-noite.webp");
  background-size: cover;
  background-position: center;
  filter: blur(9px) saturate(0.88) brightness(0.5);
  transform: scale(1.04);
}

.faq::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* os cards do FAQ não têm blur, então a foto aparece nítida atrás do texto:
     o véu precisa segurar o contraste nos pontos de luz da fachada */
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.78) 0%, rgba(7, 7, 7, 0.52) 32%,
              rgba(7, 7, 7, 0.52) 68%, rgba(7, 7, 7, 0.86) 100%);
}

.faq > .shell { position: relative; z-index: 2; }

.faq-list {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  gap: 12px;
}

/* vidro transparente puro: sem blur, só o aro de luz e um véu mínimo */
.faq-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
  transition: background-color 0.35s var(--ease);
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.3px;
  border-radius: inherit;
  background: linear-gradient(170deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 22%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, 0.16) 80%,
    rgba(255, 255, 255, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.faq-item:hover { background: rgba(255, 255, 255, 0.085); }
.faq-item.is-open { background: rgba(255, 255, 255, 0.1); }

.faq-q {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%;
  padding: 20px clamp(18px, 3vw, 26px);
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 3.1vw, 1.36rem);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--dourado-light); }

.faq-icon {
  position: relative; flex: 0 0 auto; width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.32); border-radius: var(--r-pill);
  transition: transform 0.45s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 11px; height: 1.5px; background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { transform: rotate(135deg); background: var(--dourado); border-color: var(--dourado); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: var(--preto); }

.faq-a { position: relative; z-index: 2; height: 0; overflow: hidden; transition: height 0.45s var(--ease); }
.faq-a p {
  padding: 0 clamp(18px, 3vw, 26px) 22px;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   15b. FAIXA DE CTA — foto full-bleed + tabela comparativa de vidro
   Molde da referência "Lume": painéis frosted contínuos com uma coluna
   destacada que flutua por cima e avança sobre o cabeçalho.
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  width: 100%;
  min-height: 620px;
  height: min(94vh, 66vw);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: saturate(1.06) contrast(1.03) brightness(0.95);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6, 12, 8, 0.52) 0%, rgba(6, 12, 8, 0.12) 24%, rgba(6, 12, 8, 0) 42%),
    linear-gradient(to top, rgba(6, 12, 8, 0.42) 0%, rgba(6, 12, 8, 0) 32%),
    linear-gradient(120deg, rgba(26, 58, 42, 0.2), rgba(120, 92, 26, 0.14));
}

.cta-band__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  max-width: min(100%, clamp(1040px, 84vw, 1640px));
  margin-inline: auto;
  container-type: inline-size;
}

.cta-band__copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 13%;
  transform: translateX(-50%);
  width: min(94%, 70cqw);
  text-align: center;
}

.cta-band__copy h2 {
  font-family: var(--serif);
  font-size: max(24px, 3.1cqw);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.cta-band__copy p {
  margin: max(10px, 1.1cqw) auto 0;
  max-width: 46ch;
  font-size: max(12px, 1.02cqw);
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: max(9px, 0.7cqw);
  margin-top: max(16px, 1.7cqw);
}

.cta-band__actions .btn { min-height: 0; padding: 0.92em 1.5em; font-size: max(11px, 0.88cqw); }

/* ---- tabela comparativa ---- */
.compare {
  --cols: 1fr 17.5% 20%;
  --pad-x: 0.9em;
  --panel-top: 3.2em;
  --panel-bottom: 0.2em;
  --radius: 1.3em;
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 9%;
  width: min(94%, 62cqw);
  font-size: max(9.5px, 0.95cqw);
}

.compare__panels {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--panel-top);
  bottom: var(--panel-bottom);
  display: grid;
  grid-template-columns: var(--cols);
  z-index: 0;
  pointer-events: none;
}

.panel { border-radius: var(--radius); }

/* o painel dos itens cobre 2 colunas: o vidro corre por trás da coluna dourada */
.panel--itens {
  grid-column: 1 / span 2;
  background: linear-gradient(102deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.panel--outro {
  grid-column: 3;
  background: rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* coluna do Vila Verde: avança 1.5em acima do cabeçalho */
.vv-col {
  position: absolute;
  z-index: 2;
  top: -1.5em;
  bottom: 0;
  left: calc(100% - 37.5%);
  width: 17.5%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f6ead0 0%, #ecdcb0 100%);
  box-shadow: 0 14px 38px -14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.compare__grid { display: grid; grid-template-columns: var(--cols); align-items: stretch; }
.compare__head { display: contents; }

.compare__head span {
  font-size: 1.02em;
  font-weight: 500;
  letter-spacing: -0.01em;
  height: calc(var(--panel-top) / 1.02);
  display: flex;
  align-items: flex-start;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.compare__head .h-item { padding-left: var(--pad-x); }
.compare__head .h-vv, .compare__head .h-outro { justify-content: center; text-align: center; }

.compare__head .h-vv {
  position: relative;
  z-index: 3;
  align-items: center;
  height: auto;
  color: #2a2409;
  text-shadow: none;
  font-family: var(--serif);
  font-size: 1.3em;
}

.row-item, .row-vv, .row-outro {
  display: flex;
  align-items: center;
  height: 3.5em;
  position: relative;
  z-index: 1;
  font-size: 0.96em;
}

.row-item {
  padding-left: var(--pad-x);
  padding-right: 1em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.row-vv { justify-content: center; color: #23200c; z-index: 3; }

.row-outro {
  justify-content: center;
  text-align: center;
  padding-inline: 0.5em;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.row-item::after {
  content: "";
  position: absolute;
  left: var(--pad-x);
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.row-outro::after {
  content: "";
  position: absolute;
  left: 0;
  right: var(--pad-x);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.r-last::after { display: none !important; }

.check { width: 1.15em; height: 1.15em; display: block; }

.compare__nota {
  margin: 1.5em 0 0 var(--pad-x);
  font-size: 0.9em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.42);
}

@media (max-width: 860px) {
  .cta-band { height: auto; min-height: 0; }
  .cta-band__inner { position: relative; inset: auto; padding-block: 108px 40px; }
  .cta-band__copy { position: relative; left: auto; top: auto; transform: none; width: 100%; padding-inline: var(--gutter); }
  .cta-band__copy h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .cta-band__copy p, .cta-band__actions .btn { font-size: 0.92rem; }
  .compare {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100% - 2 * var(--gutter));
    margin: 42px auto 0;
    font-size: 0.78rem;
    --cols: 1fr 24% 26%;
    --panel-top: 3.6em;
  }
  .vv-col { left: calc(100% - 50%); width: 24%; }
  .row-item, .row-vv, .row-outro { height: 4.2em; }
}

/* --------------------------------------------------------------------------
   16. CONTATO
   -------------------------------------------------------------------------- */
.contato { position: relative; background: var(--verde-fundo); overflow: hidden; isolation: isolate; }
.contato::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/galeria/deck-noite.webp");
  background-size: cover; background-position: center;
  opacity: 0.2;
}
.contato::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14, 31, 22, 0.86), rgba(8, 11, 9, 0.95));
}
.contato .shell { position: relative; z-index: 2; }

.contato-grid { display: grid; gap: clamp(32px, 5vw, 58px); }

/* o título divide a linha com o formulário: não pode usar a escala de display
   cheia, senão quebra em cinco linhas gigantes */
.contato h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
}

.form-card { padding: clamp(22px, 4vw, 34px); border-radius: var(--r-lg); }

.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  color: #fff; font-family: var(--sans); font-size: 0.98rem; font-weight: 300;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.36); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--dourado); background: rgba(255, 255, 255, 0.09);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--verde-escuro); color: #fff; }
.field-row { display: grid; gap: 15px; }

.form-actions { display: grid; gap: 11px; margin-top: 22px; }
.form-note { margin-top: 12px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.form-status {
  margin-top: 14px; padding: 13px 16px; border-radius: var(--r-md);
  background: rgba(201, 168, 76, 0.16); border: 1px solid rgba(201, 168, 76, 0.4);
  font-size: 0.9rem; display: none;
}
.form-status.is-visible { display: block; }

@media (min-width: 620px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-actions { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 1000px) { .contato-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   16b. VÍDEOS
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   ESPAÇO VILA VERDE — vídeo vertical + copy, como na página antiga
   -------------------------------------------------------------------------- */
.espaco-vv { background: var(--off-white); color: var(--texto-escuro); }

.espaco-vv-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1100px;
  margin-inline: auto;
}

.espaco-vv-grid .video-card { max-width: 340px; width: 100%; }

/* dourado puro sobre o off-white dá 2,08:1 — escurecido para passar em texto grande */
.espaco-vv-texto .h2 { color: #8e6c14; margin-bottom: 20px; }

.espaco-vv-texto p {
  margin-bottom: 14px;
  color: var(--texto-medio);
  line-height: 1.72;
}

.espaco-vv-lista {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.espaco-vv-lista li {
  position: relative;
  padding-left: 26px;
  color: var(--texto-medio);
}

/* o mesmo check dourado que a página antiga usava */
.espaco-vv-lista li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.48em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--dourado);
  border-bottom: 2px solid var(--dourado);
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .espaco-vv-grid { grid-template-columns: 1fr; }
  .espaco-vv-grid .video-card { margin-inline: auto; }
  /* o vídeo fica centralizado; o texto solto à esquerda deixava o bloco torto */
  .espaco-vv-texto { display: grid; justify-items: center; text-align: center; }
  .espaco-vv-lista { justify-items: start; }
}

.videos { background: var(--off-white); color: var(--texto-escuro); }

.videos-head {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  /* o título estava colado na primeira linha de vídeos */
  margin-bottom: clamp(56px, 7vw, 92px);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  max-width: 1100px;
  margin-inline: auto;
}

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;      /* vídeos verticais */
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0d140f;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.35);
}

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 620px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   17. RODAPÉ / FLUTUANTES
   -------------------------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  color: var(--texto-escuro);
  padding-block: clamp(46px, 7vw, 72px) 26px;
  font-size: 0.9rem;
  /* o rodapé estava `position: fixed`, flutuando por cima do conteúdo
     durante a rolagem inteira. Ele pertence ao fluxo da página. */
  position: relative;
  z-index: 1;
}
.footer-grid { display: grid; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.footer-brand p { margin-top: 14px; max-width: 32ch; }
.footer-col h4 {
  font-size: var(--t-kicker); font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--verde-escuro); margin-bottom: 12px;
}
.footer-col li { padding-block: 1px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; transition: color 0.25s var(--ease); color: var(--texto-escuro); }
.footer-col a:hover { color: var(--dourado); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between;
  padding-top: 22px; font-size: 0.8rem; color: rgba(0, 0, 0, 0.7);
}
.footer-bottom a {
  /* área de toque confortável no celular — os links tinham 16px de altura */
  display: inline-block;
  padding-block: 10px;
  color: rgba(0, 0, 0, 0.7);
  transition: color 0.25s var(--ease);
  font-weight: 500;
}

/* mesma folga para o link dentro da nota do formulário */
.form-note a { display: inline-block; padding-block: 6px; }
.footer-bottom a:hover {
  color: var(--verde-escuro);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

/* desfoque suave na base da tela — uma camada só (a versão anterior usava
   cinco backdrop-filter fixos empilhados, caro demais para celular) */
.base-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  z-index: 54;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 100%);
  mask-image: linear-gradient(to top, #000 15%, transparent 100%);
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.base-blur.is-off { opacity: 0; }

/* no celular o custo não compensa */
@media (max-width: 860px) {
  .base-blur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .base-blur { display: none; }
}

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 55;
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: var(--r-pill); color: #fff;
  /* o botão atravessa seções claras e escuras: o vidro leva um tint escuro
     para o ícone branco não sumir sobre a galeria off-white */
  background: rgba(10, 20, 14, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  transform: scale(0);
  transition: transform 0.45s var(--ease), background-color 0.35s var(--ease);
}
.wa-float.is-in { transform: scale(1); }
.wa-float:hover { transform: scale(1.07); background: rgba(37, 211, 102, 0.36); }
/* contorno suave no ícone para garantir leitura sobre qualquer fundo */
.wa-float svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }

.cookie-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 70;
  width: min(620px, calc(100% - 32px));
  transform: translate(-50%, calc(100% + 40px));
  padding: 18px 20px; border-radius: var(--r-lg);
  background: rgba(10, 18, 13, 0.96); color: var(--off-white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease);
}
.cookie-bar.is-in { transform: translate(-50%, 0); }
.cookie-bar p { font-size: 0.86rem; color: rgba(247, 245, 240, 0.78); }
.cookie-bar a { color: var(--dourado-light); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.cookie-actions .btn { min-height: 44px; padding: 0 20px; font-size: 0.85rem; }
.btn-quiet { border: 1px solid rgba(255, 255, 255, 0.24); color: #fff; }
.btn-quiet:hover { border-color: var(--dourado); }

@media (min-width: 620px) { .wa-float { right: 22px; bottom: 22px; width: 58px; height: 58px; } }

/* --------------------------------------------------------------------------
   18. PÁGINAS DE TEXTO
   -------------------------------------------------------------------------- */
.doc { padding-block: clamp(120px, 18vw, 180px) var(--sec-y); background: var(--off-white); color: var(--texto-escuro); }
.doc .shell { max-width: 760px; }
.doc h2 { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.7rem); margin: 38px 0 10px; }
.doc p, .doc li { color: var(--texto-medio); }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; }
.doc li { position: relative; padding-left: 18px; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--dourado); }
.doc .meta { color: var(--texto-claro); font-size: 0.82rem; }

.erro-404 {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: var(--preto); padding: 120px var(--gutter) 60px;
}
.erro-404 .display { color: var(--dourado-light); }
.erro-404 .lead { margin: 20px auto 30px; }
.erro-404 .hero-actions { justify-content: center; }

/* --------------------------------------------------------------------------
   19. MOVIMENTO REDUZIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-words .word { opacity: 1; filter: none; transform: none; }
  .rise { opacity: 1; transform: none; }
  .logo-track { transform: none !important; }
  .frame-track { height: auto; }
  .frame-stage { position: static; height: auto; min-height: 72svh; }
  .frame-clip { position: relative; inset: auto; clip-path: none; height: 62svh; }
  .frame-title { opacity: 1 !important; transform: none !important; }
  .frame-card { position: static; transform: none; opacity: 1 !important; margin: 18px auto 0; }
  .painel { min-height: 200px; }
  .painel img { filter: none; }
  .painel .painel-label b, .painel .painel-texto { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .frentes-head, .galeria-head, .galeria-head > div, .estrutura > .shell > .kicker, .estrutura > .shell > .h2, .marcas > .shell > .kicker, .marcas > .shell > .h2, .contato-grid > div, .footer-col, .footer-bottom, .footer-grid, .cta-band__copy {
    text-align: center;
    justify-items: center;
    align-items: center;
  }
  .kicker, .galeria-head .kicker, .estrutura > .shell > .kicker, .marcas > .shell > .kicker {
    justify-content: center;
  }
  .galeria-head .btn {
    margin: 16px auto 0;
    display: inline-flex;
  }
  .footer-grid {
    text-align: center;
  }
  .footer-col ul {
    padding: 0;
    list-style: none;
  }
}

@media (max-width: 999px) {
  .nav-cta { display: none !important; }
  .nav-menu a { padding: 8px 16px !important; font-size: 0.95rem !important; }
}
@media (max-width: 860px) {
  .painel-label h3 { font-family: var(--sans); font-weight: 500; }
  .painel-texto { display: none; }
  .painel.is-active .painel-texto { display: block; }
  .painel-label { bottom: 12px; }
}
@media (max-width: 768px) {
  /* A galeria continua em mosaico no celular: cada foto mantém a proporção
     em que foi tirada. Altura fixa (50vh) achatava as deitadas e esticava as
     em pé — era o que fazia as fotos parecerem cortadas. */
  .footer-brand img { width: 120px; height: auto; }
  .footer-bottom { justify-content: center; opacity: 0.8; }
  /* O rodapé é branco: manter contraste nos links legais. */
  .footer-bottom a { color: var(--verde-escuro); font-weight: 500; }
}

/* Alinhamento da marca acompanha as colunas do rodapé no celular. */
@media (max-width: 759px) {
  .footer-brand, .footer-brand .nav-brand {
    align-items: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   CABEÇALHO DE SEÇÃO — kicker e título sempre no mesmo eixo
   -------------------------------------------------------------------------- */
.sec-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* alvo de toque no rodapé: os links legais tinham 32px de altura no celular */
.footer-bottom a,
.cookie-texto a {
  display: inline-block;
  padding-block: 10px;
}

/* com o padding maior as duas linhas do rodapé encostavam */
.footer-bottom p { line-height: 1.5; }

/* Botão de orçamento dentro de cada tipo de evento: só aparece (e só recebe
   clique e foco) com o painel aberto. Leva ao WhatsApp com o tipo já escrito. */
.painel-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--dourado);
  color: var(--preto);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease) 0.14s, transform 0.5s var(--ease) 0.14s, visibility 0s linear 0.6s, background 0.25s;
}
.painel-cta:hover { background: var(--dourado-light); }
.painel-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.painel.is-active .painel-cta {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease) 0.14s, transform 0.5s var(--ease) 0.14s, visibility 0s, background 0.25s;
}
@media (prefers-reduced-motion: reduce) {
  .painel-cta { transition: none; transform: none; }
}

/* ==========================================================================
   DESEMPENHO NO CELULAR (13/10/2026)
   O vidro continua igual ao original (pedido do Miguel). Só as animações de
   entrada deixam de usar desfoque no celular, que era o que mais pesava.
   ========================================================================== */
@media (max-width: 900px) {
  .reveal-words .word, .mas-item, [class*="is-in"] {
    filter: none !important;
  }
  @keyframes word-in {
    100% { opacity: 1; transform: none; }
  }
}

/* Capa dos vídeos do YouTube (o player só carrega no clique) */
.yt-capa { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0d140f; }
.yt-capa img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s; }
.yt-capa:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(201, 168, 76, .95); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.yt-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #080b09; }
.yt-capa:focus-visible { outline: 3px solid var(--dourado); outline-offset: -3px; }

/* Mapa sem animação de rolagem (pedido do Miguel, 13/10/2026): título, mapa e endereço em fluxo normal */
.local-estatico { padding-block: var(--sec-y); }
.local-estatico .frame-track { height: auto; }
.local-estatico .frame-stage { position: static; height: auto; overflow: visible; display: grid; gap: 28px; justify-items: center; padding-inline: var(--gutter); }
.local-estatico .frame-title { order: 1; opacity: 1; transform: none; }
.local-estatico .frame-clip { order: 2; position: relative; inset: auto; width: min(var(--maxw), 100%); height: clamp(320px, 56vh, 560px); clip-path: none; border-radius: var(--r-lg); overflow: hidden; will-change: auto; }
.local-estatico .frame-scrim { display: none; }
.local-estatico .frame-card { order: 3; position: static; transform: none; opacity: 1; width: min(540px, 100%); }

/* Rolagem suave (Lenis, mesma configuração do site da BR Fibra) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Fundos: no celular, versão de 700 px (economia de dados e carregamento mais rápido) */
@media (max-width: 800px) {
  .estrutura::before { background-image: url("../img/galeria/salao-festa-700.webp"); }
  .faq::before { background-image: url("../img/galeria/fachada-noite-700.webp"); }
  .contato::before { background-image: url("../img/galeria/deck-noite-700.webp"); }
}

/* Abertura sem travar (13/10/2026):
   - a foto de capa fica no fundo e o vídeo surge por cima com esmaecimento quando começa a tocar;
   - o vidro forte em cima do vídeo usa desfoque de 16 px (era 50 px, recalculado a cada quadro do vídeo). */
.hero-media { background: #0d140f url("../img/hero-poster.webp") center / cover no-repeat; }
.hero-media video { opacity: 0; transition: opacity 0.5s ease; }
.hero-media video.is-playing { opacity: 1; }
.on-media .liquid-glass-strong { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media (max-width: 860px) {
  .on-media .liquid-glass-strong { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (max-width: 800px) {
  .hero-media { background-image: url("../img/hero-poster-700.webp"); }
}
