/* ==========================================================================
   Neovilla Revestimentos & Móveis Planejados - Design System
   Estilo: Apple-like (respiro, hairlines, blur, tipografia light)
   Tipografia: Outfit (display sans, 200/300) + Inter (texto, 300/400)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Cor - neutros frios de pedra + latao da marca */
  --bg:            #fcfcfc;
  --bg-alt:        #f2f1ef;
  --bg-deep:       #17181a;
  --surface:       #ffffff;

  --ink:           #16171a;
  --ink-soft:      #4d4f54;
  --ink-mute:      #8a8c90;
  --ink-invert:    #f2f2f0;

  --line:          rgba(22, 23, 26, 0.11);
  --line-soft:     rgba(22, 23, 26, 0.06);
  --line-invert:   rgba(242, 242, 240, 0.16);

  /* Latao da marca. `--gold` e a cor exata do logo; `--accent` e uma versao
     escurecida so para texto, onde o dourado puro nao tem contraste. */
  --gold:          #d29d4d;
  --accent:        #9d7430;
  --accent-deep:   #7f5d25;
  --accent-wash:   #f4efe6;

  /* Logo - o cinza do arquivo original (#aaabaa) some sobre fundo claro.
     Trocado por um cinza legivel; para voltar ao original, edite aqui. */
  --logo-grey:     #5f6165;
  --logo-hole:     var(--bg);

  /* Tipografia */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.77rem + 0.13vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.07rem + 0.38vw, 1.36rem);
  --step-2:  clamp(1.45rem, 1.27rem + 0.88vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.55rem + 2vw, 3.1rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.3vw, 4.6rem);
  --step-5:  clamp(2.9rem, 1.85rem + 5vw, 6.2rem);

  /* Metrica */
  --shell: 1240px;
  --shell-narrow: 780px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5rem, 10vw, 9.5rem);
  --radius: 18px;
  --radius-lg: 26px;

  --nav-h: 56px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  /* Sem `overflow-x: hidden` aqui nem no body: isso transforma o elemento em
     container de rolagem e quebra os links de ancora. O guarda contra palavras
     longas e o `overflow-wrap` no body. */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, picture, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Utilitarios ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--alt { background: var(--bg-alt); --logo-hole: #f2f1ef; }
.section--deep {
  background: var(--bg-deep);
  color: var(--ink-invert);
  --logo-grey: #d5d6d4;
  --logo-hole: #17181a;
}

.skip-link {
  position: absolute; left: 0.75rem; top: -100px; z-index: 999;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 10px; font-size: var(--step--1);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- Logo ---------- */
.lg-gold { fill: var(--gold); }
.lg-grey { fill: var(--logo-grey); }
.lg-hole { fill: var(--logo-hole); }
/* Tagline "Revestimentos & Moveis Planejados", ja em curvas (ver logo.py). */
.lg-tag { fill: var(--logo-grey); }

.logo__mark { height: 24px; width: auto; }
.logo__full { height: 64px; width: auto; }

@media (max-width: 480px) { .logo__mark { height: 21px; } }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section--deep .eyebrow { color: var(--gold); }

.display {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h-hero  { font-size: var(--step-5); }
.h-xl    { font-size: var(--step-4); }
.h-lg    { font-size: var(--step-3); }
.h-md    { font-size: var(--step-2); }

.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.58;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.section--deep .lead { color: rgba(242, 242, 240, 0.76); }

.prose p { color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.15em; }
.prose strong { font-weight: 500; color: var(--ink); }

.em { color: var(--accent); }

/* ---------- Botoes ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.75em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }

.btn--accent { --btn-bg: var(--accent); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--light:hover { background: #fff; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}
.link-arrow::after {
  content: "\2192";
  transition: transform 0.35s var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* ==========================================================================
   Navegacao
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  /* Branco solido, sem transparencia nem blur (pedido do cliente, set/2026). */
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
  --logo-hole: #fff;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--line-soft); }

.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__menu a {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--ink); }

/* Especificidade acima de `.nav__menu a` e de `a[aria-current]`, senao o
   rotulo some sobre a pilula escura. */
.nav__menu .nav__cta,
.nav__menu .nav__cta:hover,
.nav__menu .nav__cta[aria-current="page"] {
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55em 1.2em; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: background 0.3s var(--ease);
}
.nav__menu .nav__cta:hover { background: var(--accent); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px; margin-right: -8px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 9px; width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem var(--gutter) 1.6rem;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
  }
  .nav__menu[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a {
    padding: 0.95rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__menu .nav__cta {
    margin-top: 1.1rem; text-align: center; border-bottom: 0;
    padding: 0.9em 1.15em;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* As imagens de capa sao 1920x1080: em desktop o hero segue a proporcao 16:9
     da foto (sem corte), limitado a altura da tela; no celular, 560px no minimo. */
  min-height: max(560px, min(56.25vw, 100svh));
  display: grid;
  align-items: end;
  isolation: isolate;
  color: #fff;
  padding-top: var(--nav-h);
}
/* A imagem fica absoluta diretamente no .hero (mesmo padrao de .tile/.band).
   Um wrapper absoluto extra disparava falha de invalidacao de pintura no
   Chromium quando a imagem terminava de carregar. */
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(8, 9, 11, 0.74) 0%, rgba(8, 9, 11, 0.34) 55%, rgba(8, 9, 11, 0.14) 100%),
    linear-gradient(to top, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0.3) 45%, rgba(8, 9, 11, 0.36) 100%);
}

/* Entrada suave do conteudo do hero (texto, nao a imagem) */
.hero__body > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1s var(--ease-out) forwards;
}
.hero__body > *:nth-child(1) { animation-delay: 0.05s; }
.hero__body > *:nth-child(2) { animation-delay: 0.15s; }
.hero__body > *:nth-child(3) { animation-delay: 0.25s; }
.hero__body > *:nth-child(4) { animation-delay: 0.35s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__body > * { opacity: 1; transform: none; animation: none; }
}

.hero__body { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero .eyebrow { color: var(--gold); }
.hero__title { color: #fff; margin-bottom: 1.5rem; max-width: 16ch; }
.hero__sub {
  max-width: 48ch;
  font-size: var(--step-1);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.25rem;
}

.hero__scroll {
  position: absolute; z-index: 2; bottom: 1.6rem; right: var(--gutter);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- Hero em carrossel (home) ----------
   Os slides ficam empilhados na mesma celula do grid, entao a altura do hero e
   a do slide mais alto e nada pula ao trocar. Cada slide e o proprio contexto
   da imagem (mesmo padrao de .tile), sem wrapper absoluto extra. */
.hero--carousel {
  display: grid;
  padding-top: 0;
  --hero-interval: 7s;
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: max(560px, min(56.25vw, 100svh));
  padding-top: var(--nav-h);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease), visibility 0s;
}
/* O overlay do .hero passa a ser por slide. */
.hero--carousel::after { content: none; }
.hero__slide::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(8, 9, 11, 0.74) 0%, rgba(8, 9, 11, 0.34) 55%, rgba(8, 9, 11, 0.14) 100%),
    linear-gradient(to top, rgba(8, 9, 11, 0.72) 0%, rgba(8, 9, 11, 0.3) 45%, rgba(8, 9, 11, 0.36) 100%);
}
/* O texto reanima a cada troca: a regra so passa a valer quando o slide fica ativo.
   Fora do slide ativo o texto fica visivel, para sair junto com o fade da foto. */
.hero--carousel .hero__body > * { opacity: 1; transform: none; animation: none; }
.hero--carousel .is-active .hero__body > * { animation: heroRise 1s var(--ease-out) both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero--carousel .is-active .hero__body > *:nth-child(1) { animation-delay: 0.15s; }
.hero--carousel .is-active .hero__body > *:nth-child(2) { animation-delay: 0.25s; }
.hero--carousel .is-active .hero__body > *:nth-child(3) { animation-delay: 0.35s; }
.hero--carousel .is-active .hero__body > *:nth-child(4) { animation-delay: 0.45s; }
/* Espaco para os controles embaixo do texto. */
.hero--carousel .hero__body { padding-bottom: calc(clamp(3.5rem, 9vw, 7rem) + 2rem); }

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-active { transition: none; }
  .hero--carousel .is-active .hero__body > * { animation: none; opacity: 1; transform: none; }
}

/* Controles: so existem com JS vivo. Sem JS fica o primeiro slide, estatico. */
.hero__controls {
  display: none;
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center; justify-content: space-between; gap: 1rem;
}
html.js .hero__controls { display: flex; }

.hero__dots { display: flex; gap: 0.25rem; }
.hero__dot {
  padding: 0.9rem 0.2rem;           /* area de toque de 44px com traco fino */
  background: none; border: 0; cursor: pointer;
}
.hero__dot span {
  display: block; position: relative; overflow: hidden;
  width: 1.75rem; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.5s var(--ease-out);
}
.hero__dot[aria-current="true"] span { width: 3.25rem; }
.hero__dot span::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}
.hero__dot[aria-current="true"] span::after { transform: scaleX(1); }
/* Com autoplay, o traco ativo enche no ritmo do intervalo. */
.hero--carousel[data-playing="true"] .hero__dot[aria-current="true"] span::after {
  animation: heroProgress var(--hero-interval) linear forwards;
}
.hero--carousel[data-paused="true"] .hero__dot[aria-current="true"] span::after {
  animation-play-state: paused;
}
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__arrows { display: flex; gap: 0.5rem; }
.hero__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hero__btn:hover { background: #fff; color: var(--ink); }
.hero__btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero__btn .i-play { display: none; }
.hero__btn[data-state="paused"] .i-play { display: block; }
.hero__btn[data-state="paused"] .i-pause { display: none; }
.hero__btn[hidden] { display: none; }

@media (max-width: 560px) {
  .hero__btn[data-carousel-prev], .hero__btn[data-carousel-next] { display: none; }
}

/* Cabecalho de paginas internas */
.pagehead {
  padding-top: calc(var(--nav-h) + clamp(4rem, 9vw, 7.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.pagehead .lead { max-width: 60ch; margin-top: 1.5rem; }

/* ==========================================================================
   Faixa "Em resumo" - bloco factual (GEO)
   ========================================================================== */
.facts {
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.facts__item {
  padding: clamp(1.75rem, 3.5vw, 2.6rem) clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--line-soft);
}
.facts__item:first-child { border-left: 0; }
.facts__k {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.7rem;
}
.facts__v {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 200; line-height: 1.12; letter-spacing: -0.02em;
}
.facts__v small {
  display: block; font-family: var(--font-sans);
  font-size: 0.82rem; font-weight: 300; letter-spacing: 0;
  color: var(--ink-mute); margin-top: 0.4rem; line-height: 1.5;
}
@media (max-width: 640px) {
  .facts__item { border-left: 0; border-top: 1px solid var(--line-soft); }
  .facts__item:first-child { border-top: 0; }
}

/* ==========================================================================
   Cabecalho de secao
   ========================================================================== */
.sec-head { max-width: 68ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .lead { margin-top: 1.35rem; }
.sec-head--center .lead { margin-inline: auto; }

/* ==========================================================================
   Colecoes - grid editorial
   ========================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.tile {
  position: relative;
  grid-column: span 6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  isolation: isolate;
  color: #fff;
  min-height: clamp(360px, 46vw, 560px);
  display: flex; align-items: flex-end;
}
.tile--tall { min-height: clamp(420px, 62vw, 720px); }
.tile--wide { grid-column: span 12; min-height: clamp(340px, 40vw, 520px); }
.tile--third { grid-column: span 4; min-height: clamp(320px, 34vw, 440px); }

.tile img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.78), rgba(8, 9, 11, 0.12) 62%, rgba(8, 9, 11, 0.04));
}
.tile:hover img { transform: scale(1.045); }

.tile__body { position: relative; z-index: 2; padding: clamp(1.6rem, 3vw, 2.6rem); }
.tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 200; line-height: 1.12; letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
}
.tile__text {
  font-size: 0.94rem; font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch; margin-bottom: 1.1rem;
}
.tile .link-arrow { color: var(--gold); }

@media (max-width: 1000px) {
  .tile--third { grid-column: span 6; }
}
@media (max-width: 800px) {
  .tile, .tile--wide, .tile--third { grid-column: span 12; min-height: 380px; }
  .tile--tall { min-height: 460px; }
}

/* ==========================================================================
   Split - texto + imagem
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.split__media--wide { aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   Pilares
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.pillar__n {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 1.1rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.section--deep .pillar__n { border-color: var(--line-invert); color: var(--gold); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: var(--step-2); font-weight: 200; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.pillar p { color: var(--ink-soft); font-size: 0.96rem; }
.section--deep .pillar p { color: rgba(242, 242, 240, 0.72); }

/* Depoimentos — textos de tamanhos bem diferentes, então colunas (não grid)
   para não abrir buracos ao lado dos curtos. */
.testis {
  columns: 2 340px;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.testi {
  break-inside: avoid;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
.testi__q {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 300; line-height: 1.6;
  color: var(--ink);
}
.testi__q p + p { margin-top: 0.9em; }
.testi__by {
  margin-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem;
  font-size: 0.9rem; color: var(--ink-mute);
}
.testi__by a {
  color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.testi__by a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

/* ==========================================================================
   Faixa full-bleed
   ========================================================================== */
.band {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: clamp(420px, 55vw, 620px);
  display: grid; place-items: center;
  text-align: center;
}
.band img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 50% 50%, rgba(9, 10, 12, 0.68) 0%, rgba(9, 10, 12, 0.52) 100%);
}
.band__body { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 7rem); }
.band .eyebrow { color: var(--gold); }
.band__body h2 { max-width: 18ch; margin-inline: auto; }
.band__body .lead {
  color: rgba(255, 255, 255, 0.84);
  margin-top: 1.5rem; max-width: 50ch; margin-inline: auto;
}

/* ==========================================================================
   Processo
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5rem 1fr 1.1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 300;
  color: var(--accent); letter-spacing: 0.14em;
  padding-top: 0.45rem;
}
.step__n::before { content: "0" counter(step); }
.step h3 {
  font-family: var(--font-display);
  font-size: var(--step-2); font-weight: 200; line-height: 1.15;
  letter-spacing: -0.02em;
}
.step p { color: var(--ink-soft); font-size: 0.96rem; }

@media (max-width: 760px) {
  .step { grid-template-columns: 3rem 1fr; }
  .step p { grid-column: 2; }
}

/* ==========================================================================
   Numeros
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.stat__v {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  font-weight: 200; line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.stat__k {
  font-size: 0.85rem; font-weight: 300;
  color: rgba(242, 242, 240, 0.62);
  max-width: 22ch;
}

/* ==========================================================================
   Catalogo - pagina de colecoes
   ========================================================================== */
.cat { padding-block: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid var(--line-soft); }
.cat:first-of-type { border-top: 0; }

.cat__head { display: grid; gap: 1.35rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.cat__head h2 { max-width: 20ch; }
.cat__head p { color: var(--ink-soft); max-width: 64ch; text-wrap: pretty; }

.cat__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .cat__grid { grid-template-columns: 1fr; } }

/* Lista de acabamentos / variacoes */
.variants { display: grid; gap: 0; }
.variant {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.variant:last-child { border-bottom: 1px solid var(--line); }
.variant dt {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 300; letter-spacing: -0.01em;
}
.variant dd { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .variant { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* Ficha tecnica */
.spec {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.spec h3 {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 400; margin-bottom: 1.4rem;
}
.spec dl { display: grid; gap: 1.1rem; }
.spec dt {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.2rem;
}
.spec dd { font-size: 0.97rem; font-weight: 300; line-height: 1.55; }
.spec h4 {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 400; margin-bottom: 1.4rem;
}

/* ==========================================================================
   Galeria
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.35rem);
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1.1rem;
  font-size: 0.84rem; color: #fff;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.74), transparent);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(1.35rem, 2.6vw, 1.9rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300; line-height: 1.35; letter-spacing: -0.015em;
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { padding-bottom: 1.9rem; }
.faq__a p { color: var(--ink-soft); max-width: 68ch; font-size: 0.97rem; }
.faq__a p + p { margin-top: 0.9rem; }

/* ==========================================================================
   Lojas / contato
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.store {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.store h3 {
  font-family: var(--font-display);
  font-size: var(--step-2); font-weight: 200; letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}
.store address {
  font-style: normal; color: var(--ink-soft);
  font-size: 0.97rem; line-height: 1.75;
}
/* Telefone e e-mail precisam se ler como link mesmo herdando a cor do texto. */
.store address a {
  text-decoration: underline;
  text-decoration-color: rgba(22, 23, 26, 0.22);
  text-underline-offset: 3px;
}
.store address a:hover { color: var(--accent); text-decoration-color: currentColor; }
.store__hours {
  margin-top: 1.35rem; padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.87rem; color: var(--ink-mute);
}

/* Loja unica: endereco a esquerda, horario e botoes a direita. */
.store--single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.store--single .store__hours { margin-top: 0; margin-bottom: 1.6rem; }
@media (max-width: 700px) { .store--single { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 1.9rem; }
.info-list dt {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.5rem;
}
.info-list dd { font-size: 1.02rem; font-weight: 300; line-height: 1.55; }
.info-list dd a:hover { color: var(--accent); }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157, 116, 48, 0.14);
}
.form__note { font-size: 0.82rem; color: var(--ink-mute); max-width: 52ch; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 0; }
.checklist li {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.96rem; color: var(--ink-soft);
}
.checklist li:last-child { border-bottom: 1px solid var(--line-soft); }
.checklist li::before { content: "\2014"; color: var(--accent); }

/* ==========================================================================
   Imagem + conteudo (etapas, checklist): foto fixa ao lado do texto
   ========================================================================== */
.media-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.media-split__media {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.media-split__media img { width: 100%; height: 100%; object-fit: cover; }
.media-split .step { grid-template-columns: 3.5rem 1fr; }
.media-split .step p { grid-column: 2; }
.media-split--reverse .media-split__media { order: 2; }

@media (max-width: 860px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split__media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .media-split--reverse .media-split__media { order: 0; }
}

/* Imagem larga logo abaixo de um cabecalho de secao */
.feature-media {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--bg-alt);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .feature-media { aspect-ratio: 4 / 3; } }

/* Duas frentes lado a lado (home, "O que e a Neovilla"):
   planejados a esquerda, revestimentos a direita; no celular, nessa ordem. */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.duo__item { display: flex; flex-direction: column; align-items: flex-start; }
.duo__media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--bg-alt);
}
.duo__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.duo__item:hover .duo__media img { transform: scale(1.04); }
.duo__title { margin: 0.2rem 0 1rem; max-width: 22ch; text-wrap: balance; }
.duo__text { color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.5rem; }
.duo .link-arrow { margin-top: auto; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Foto no topo de cada pilar */
.pillar__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
}
.pillar__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.pillar:hover .pillar__media img { transform: scale(1.04); }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta { text-align: center; }
.cta .lead { max-width: 54ch; margin-inline: auto; margin-top: 1.5rem; }
.cta .btn-row { justify-content: center; margin-top: 2.4rem; }

/* ==========================================================================
   Rodape
   ========================================================================== */
.footer {
  background: var(--bg-deep);
  color: var(--ink-invert);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  --logo-grey: #d5d6d4;
  --logo-hole: #17181a;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-invert);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.footer .logo__full { margin-bottom: 1.25rem; }
.footer__blurb { font-size: 0.9rem; color: rgba(242, 242, 240, 0.6); max-width: 34ch; }

.footer h3 {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(242, 242, 240, 0.45); margin-bottom: 1.1rem; font-weight: 400;
}
.footer li + li { margin-top: 0.65rem; }
.footer a {
  font-size: 0.92rem; color: rgba(242, 242, 240, 0.78);
  transition: color 0.25s var(--ease);
}
.footer a:hover { color: #fff; }
.footer address {
  font-style: normal; font-size: 0.92rem;
  color: rgba(242, 242, 240, 0.78); line-height: 1.7;
}

.footer__bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  font-size: 0.76rem; color: rgba(242, 242, 240, 0.42);
}
.footer__bottom a {
  font-size: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ==========================================================================
   Amostras de acabamento (padroes de MDF, laca, vidro)
   ========================================================================== */
.swatch-group + .swatch-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.swatch-group__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-bottom: 1rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.swatch-group__head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 300; letter-spacing: -0.01em;
}
.swatch-group__head p { font-size: 0.9rem; color: var(--ink-soft); max-width: 52ch; }
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 1.1rem 0.9rem;
}
.swatch img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: calc(var(--radius) * 0.6);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--bg-alt);
}
.swatch figcaption {
  margin-top: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-soft);
}
@media (max-width: 480px) {
  .swatches { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 0.9rem 0.7rem; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Escondido so quando o JS esta vivo para revelar de novo (a classe `js` e
   posta no <html> pelo script do <head>). Sem JS, tudo nasce visivel - o
   arquivo pode ser aberto em qualquer lugar sem virar uma pagina em branco. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Revestimentos — vitrine (colecoes.html)
   Grade pre-renderizada por gera_revestimentos.py; hidratada por
   revestimentos.js. Tudo com o prefixo .vt-.
   ========================================================================== */

.vt {
  --vt-bar-h: 64px;
  --vt-r: 14px;
  --vt-skel: #ecebe8;
  --vt-skel-hi: #f6f5f3;
  padding-top: var(--nav-h);
}

.vt-ico { width: 18px; height: 18px; flex: none; }

.vt-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: var(--step--1); color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.vt-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.vt-x {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer; color: var(--ink);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.vt-x svg { width: 18px; height: 18px; }
.vt-x:hover { background: var(--bg-alt); border-color: transparent; }

/* ---------- Topo ---------- */
.vt-head { padding-top: clamp(2rem, 5vw, 3.5rem); }
.vt-crumbs {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-mute);
  margin-bottom: 0.9rem;
}
.vt-crumbs a:hover { color: var(--ink); }
.vt-title { font-size: var(--step-4); }
.vt-sub {
  margin-top: 0.7rem; max-width: 60ch;
  color: var(--ink-soft); font-size: var(--step-0);
}

/* ---------- Onde vai usar ---------- */
.vt-amb { padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.vt-amb__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.25rem 1.5rem;
  margin-bottom: 1rem;
}
.vt-amb__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-1); letter-spacing: -0.01em;
}
.vt-amb__note { font-size: 0.8rem; color: var(--ink-mute); }

.vt-amb__scroll {
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding-bottom: 0.25rem;
}
.vt-amb__scroll::-webkit-scrollbar { display: none; }
.vt-amb__list {
  display: flex; gap: 0.75rem;
  width: max-content; min-width: 100%;
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  padding-block: 4px;
}
.vt-amb__list li { scroll-snap-align: start; }

.vt-chip {
  display: flex; flex-direction: column; gap: 0.5rem;
  width: 108px; padding: 0; border: 0; background: none;
  cursor: pointer; text-align: left;
}
.vt-chip__img {
  position: relative; display: block;
  width: 108px; aspect-ratio: 1; border-radius: var(--vt-r);
  overflow: hidden; background: var(--vt-skel);
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: box-shadow 0.25s var(--ease);
}
.vt-chip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.vt-chip:hover .vt-chip__img img { transform: scale(1.05); }
.vt-chip__label { font-size: 0.86rem; font-weight: 400; color: var(--ink-soft); line-height: 1.3; }
.vt-chip__label small { display: block; font-size: 0.74rem; font-weight: 300; color: var(--ink-mute); }
.vt-chip[aria-pressed="true"] .vt-chip__img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.vt-chip[aria-pressed="true"] .vt-chip__label { color: var(--ink); }
.vt-chip:disabled { opacity: 0.4; cursor: default; }
.vt-chip:disabled:hover .vt-chip__img img { transform: none; }

/* ---------- Barra de filtros (sticky) ---------- */
.vt-bar {
  position: sticky; top: var(--nav-h); z-index: 60;
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  background: rgba(252, 252, 252, 0.97);
  border-block: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .vt-bar { background: rgba(252, 252, 252, 0.88); backdrop-filter: saturate(1.4) blur(14px); }
}
.vt-bar__inner {
  min-height: var(--vt-bar-h);
  display: flex; align-items: center; gap: 0.6rem;
  padding-block: 0.6rem;
}

.vt-search { position: relative; flex: 0 1 300px; min-width: 180px; }
.vt-search__icon {
  position: absolute; left: 0.85rem; top: 50%; translate: 0 -50%;
  width: 17px; height: 17px; color: var(--ink-mute); pointer-events: none;
}
.vt-search__input {
  width: 100%; height: 40px;
  padding: 0 2.3rem 0 2.4rem;
  font: inherit; font-size: 0.88rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.vt-search__input::placeholder { color: var(--ink-mute); }
.vt-search__input::-webkit-search-cancel-button { display: none; }
.vt-search__input:hover { border-color: rgba(22, 23, 26, 0.22); }
.vt-search__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vt-search__clear {
  position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-mute);
}
.vt-search__clear svg { width: 16px; height: 16px; }
.vt-search__clear:hover { color: var(--ink); background: var(--bg-alt); }

.vt-bar__groups { display: flex; gap: 0.45rem; }

.vt-drop { position: relative; }
.vt-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 40px; padding: 0 0.95rem 0 1.05rem;
  font-size: 0.86rem; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.vt-pill:hover { border-color: rgba(22, 23, 26, 0.3); }
.vt-pill__chev { width: 10px; height: 10px; transition: transform 0.25s var(--ease-out); }
.vt-pill[aria-expanded="true"] { border-color: var(--ink); }
.vt-pill[aria-expanded="true"] .vt-pill__chev { transform: rotate(180deg); }
.vt-pill__n {
  display: none; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 0.7rem; line-height: 1.35rem; text-align: center;
}
.vt-pill.is-on .vt-pill__n { display: inline-block; }

.vt-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
  width: max-content; min-width: 260px; max-width: min(420px, 90vw);
  max-height: min(70vh, 520px); overflow: auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: 0 18px 50px -18px rgba(22, 23, 26, 0.28), 0 2px 6px rgba(22, 23, 26, 0.05);
}
.vt-pop[hidden] { display: none; }
.vt-pop__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; color: var(--ink-mute);
}

.vt-bar__mobile {
  display: none; align-items: center; gap: 0.5rem;
  height: 40px; padding: 0 1rem;
  font-size: 0.86rem; font-weight: 400;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
}
.vt-bar__mobile svg { width: 17px; height: 17px; }
.vt-bar__badge:not(:empty)::before { content: " ("; }
.vt-bar__badge:not(:empty)::after { content: ")"; }

.vt-bar__end { margin-left: auto; display: flex; align-items: center; gap: 0.9rem; }
.vt-count { font-size: 0.84rem; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vt-sort select {
  height: 40px; padding: 0 2rem 0 0.9rem;
  font: inherit; font-size: 0.84rem; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%2316171a' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 10px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.vt-sort select:hover { border-color: rgba(22, 23, 26, 0.3); }

/* ---------- Opções de filtro (popover e bottom sheet) ---------- */
.vt-group + .vt-group { margin-top: 1.6rem; }
.vt-group__title {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.75rem;
}
.vt-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vt-opts--list { flex-direction: column; flex-wrap: nowrap; gap: 0.15rem; }

.vt-opt {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 38px; padding: 0.3rem 0.85rem;
  font-size: 0.86rem; font-weight: 300; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.vt-opt:hover { border-color: rgba(22, 23, 26, 0.3); }
.vt-opt small { color: var(--ink-mute); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.vt-opt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vt-opt[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.6); }
.vt-opt:disabled { opacity: 0.38; cursor: default; }
.vt-opt:disabled:hover { border-color: var(--line); }

/* Opção em linha (acabamento/formato, com resumo do guia) */
.vt-opt--row {
  width: 100%; border-radius: 12px; border-color: transparent;
  padding: 0.55rem 0.7rem; align-items: flex-start;
}
.vt-opt--row:hover { background: var(--bg-alt); border-color: transparent; }
.vt-opt--row .vt-opt__box {
  flex: none; width: 18px; height: 18px; margin-top: 0.15rem;
  border: 1px solid rgba(22, 23, 26, 0.3); border-radius: 5px;
  display: grid; place-items: center; background: var(--surface);
}
.vt-opt--row .vt-opt__box svg { width: 12px; height: 12px; opacity: 0; }
.vt-opt--row[aria-pressed="true"] { background: var(--bg-alt); color: var(--ink); border-color: transparent; }
.vt-opt--row[aria-pressed="true"] small { color: var(--ink-mute); }
.vt-opt--row[aria-pressed="true"] .vt-opt__box { background: var(--ink); border-color: var(--ink); color: #fff; }
.vt-opt--row[aria-pressed="true"] .vt-opt__box svg { opacity: 1; }
.vt-opt__txt { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.35; }
.vt-opt__txt span { font-weight: 400; }
.vt-opt__txt em { font-style: normal; font-size: 0.78rem; color: var(--ink-mute); max-width: 34ch; }

/* Estilo: miniatura */
.vt-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 0.75rem; }
.vt-style { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.vt-style__btn {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink);
}
.vt-style__img {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--vt-skel); box-shadow: 0 0 0 1px var(--line-soft);
  transition: box-shadow 0.2s var(--ease);
}
.vt-style__img img { width: 100%; height: 100%; object-fit: cover; }
.vt-style__name { font-size: 0.84rem; font-weight: 400; line-height: 1.25; }
.vt-style__name small { font-weight: 300; color: var(--ink-mute); font-size: 0.74rem; margin-left: 0.2rem; }
.vt-style__btn[aria-pressed="true"] .vt-style__img { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
.vt-style__btn:disabled { opacity: 0.38; cursor: default; }
.vt-guide-link {
  align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 0.74rem; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(157, 116, 48, 0.35);
}
.vt-guide-link:hover { text-decoration-color: currentColor; }

/* Cor: bolinhas */
.vt-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 0.7rem 0.4rem; }
.vt-color {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0; border: 0; background: none; cursor: pointer; color: var(--ink-soft);
  font-size: 0.74rem; line-height: 1.2;
}
.vt-color__dot {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 26, 0.14);
  transition: box-shadow 0.2s var(--ease), transform 0.25s var(--ease-out);
}
.vt-color:hover .vt-color__dot { transform: scale(1.08); }
.vt-color__dot svg { width: 14px; height: 14px; opacity: 0; }
.vt-color[aria-pressed="true"] { color: var(--ink); }
.vt-color[aria-pressed="true"] .vt-color__dot {
  box-shadow: inset 0 0 0 1px rgba(22, 23, 26, 0.14), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink);
}
.vt-color[aria-pressed="true"] .vt-color__dot svg { opacity: 1; }
.vt-color:disabled { opacity: 0.35; cursor: default; }
.vt-color:disabled:hover .vt-color__dot { transform: none; }

/* ---------- Filtros ativos ---------- */
.vt-results { padding-top: 1.4rem; padding-bottom: clamp(4rem, 8vw, 6rem); }
.vt-active {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin-bottom: 1.3rem;
}
.vt-active[hidden] { display: none; }
.vt-active__list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vt-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 32px; padding: 0 0.55rem 0 0.8rem;
  font-size: 0.8rem; color: var(--ink);
  background: var(--bg-alt); border: 0; border-radius: 999px; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.vt-tag:hover { background: #e7e5e1; }
.vt-tag svg { width: 14px; height: 14px; color: var(--ink-mute); }
.vt-tag i {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 26, 0.18);
}

/* Contexto do guia (1 estilo ou 1 ambiente selecionado) */
.vt-context {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem;
  margin-bottom: 1.6rem; padding: 0.9rem 1.1rem;
  background: var(--accent-wash); border-radius: 12px;
  font-size: 0.88rem; color: var(--ink-soft);
}
.vt-context[hidden] { display: none; }
.vt-context strong { font-weight: 500; color: var(--ink); }
.vt-context p { flex: 1 1 32ch; }

/* ---------- Grade de cards ---------- */
.vt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: clamp(1.8rem, 3vw, 2.4rem) clamp(0.9rem, 1.8vw, 1.4rem);
}
.vt-grid:focus { outline: none; }

.vt-card { display: block; color: inherit; border-radius: var(--vt-r); }
.vt-card:focus-visible { outline-offset: 4px; border-radius: var(--vt-r); }
.vt-card__media {
  position: relative; display: block; aspect-ratio: 1;
  overflow: hidden; border-radius: var(--vt-r);
  background: var(--vt-skel);
}
.vt-card__media::before {
  /* skeleton */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--vt-skel-hi) 50%, transparent 80%) var(--vt-skel);
  background-size: 200% 100%;
}
html.js .vt-card__media::before { animation: vtShimmer 1.4s linear infinite; }
.vt-card__media.is-loaded::before { animation: none; opacity: 0; transition: opacity 0.3s; }
@keyframes vtShimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.vt-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 0.9s var(--ease-out);
}
.vt-card__media img.vt-card__hover { opacity: 0; }
@media (hover: hover) {
  .vt-card:hover .vt-card__media img { transform: scale(1.035); }
  .vt-card:hover .vt-card__media img.vt-card__hover.is-in { opacity: 1; }
}
.vt-card__name {
  margin-top: 0.85rem;
  font-size: 0.95rem; font-weight: 400; color: var(--ink); line-height: 1.3;
}
.vt-card__fmt { margin-top: 0.15rem; font-size: 0.82rem; color: var(--ink-mute); }

/* ---------- Estado vazio ---------- */
.vt-empty {
  text-align: center; max-width: 520px; margin: clamp(2rem, 6vw, 4rem) auto;
}
.vt-empty[hidden] { display: none; }
.vt-empty__title {
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-2);
  letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 0.8rem;
}
.vt-empty__text { color: var(--ink-soft); margin-bottom: 1.8rem; }
.vt-empty .btn-row { justify-content: center; }

/* ---------- Como escolher ---------- */
.vt-guide { background: var(--bg-alt); padding-block: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: var(--nav-h); }
.vt-guide__title { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.vt-guide__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.75rem clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: vtpasso;
}
.vt-guide__list li { counter-increment: vtpasso; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.vt-guide__list li::before {
  content: counter(vtpasso, decimal-leading-zero);
  display: block; font-size: 0.74rem; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.6rem;
}
.vt-guide__list h3 { font-size: 1rem; font-weight: 400; margin-bottom: 0.35rem; }
.vt-guide__list p { font-size: 0.9rem; color: var(--ink-soft); }
.vt-guide__styles {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  margin-top: clamp(2rem, 4vw, 2.8rem); font-size: 0.88rem; color: var(--ink-soft);
}
.vt-guide__styles:empty { display: none; }
.vt-guide__cta { margin-top: 2rem; }

/* ---------- Camadas (painel, guia, sheet) ---------- */
.vt-layer { position: fixed; inset: 0; z-index: 200; }
.vt-layer[hidden] { display: none; }
.vt-layer__scrim {
  position: absolute; inset: 0; background: rgba(12, 13, 15, 0.42);
  animation: vtFade 0.3s var(--ease) both;
}
@keyframes vtFade { from { opacity: 0; } }
@keyframes vtInRight { from { transform: translateX(40px); opacity: 0; } }
@keyframes vtInUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes vtInScale { from { transform: translateY(12px) scale(0.98); opacity: 0; } }

html.vt-lock, html.vt-lock body { overflow: hidden; }

/* Painel da peça */
.vt-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(580px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.35);
  animation: vtInRight 0.45s var(--ease-out) both;
}
.vt-drawer:focus { outline: none; }
.vt-drawer__top {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
}
.vt-drawer__top .vt-x { background: rgba(255, 255, 255, 0.92); border-color: transparent; box-shadow: 0 1px 6px rgba(0,0,0,0.12); }
.vt-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.vt-drawer__cta {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.9rem clamp(1.1rem, 3vw, 1.75rem) calc(0.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft); background: var(--surface);
}
.vt-cta { justify-content: center; }
.vt-cta:first-child { flex: 1 1 260px; }
.vt-cta:last-child { flex: 0 1 auto; }
.vt-cta .vt-ico { width: 16px; height: 16px; }

.vt-gal { position: relative; background: var(--bg-alt); }
.vt-gal__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; aspect-ratio: 1;
}
.vt-gal__track::-webkit-scrollbar { display: none; }
.vt-gal__track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start;
  background: var(--vt-skel);
}
.vt-gal__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s var(--ease);
}
.vt-gal__nav svg { width: 16px; height: 16px; }
.vt-gal__nav--prev { left: 0.8rem; }
.vt-gal__nav--next { right: 0.8rem; }
.vt-gal__nav:disabled { opacity: 0; pointer-events: none; }
.vt-gal__count {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  padding: 0.15rem 0.6rem; border-radius: 999px;
  background: rgba(22, 23, 26, 0.6); color: #fff; font-size: 0.72rem; font-variant-numeric: tabular-nums;
}
.vt-thumbs { display: flex; gap: 0.5rem; padding: 0.75rem clamp(1.1rem, 3vw, 1.75rem) 0; overflow-x: auto; }
.vt-thumb {
  flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 9px; overflow: hidden;
  cursor: pointer; background: var(--vt-skel); opacity: 0.6;
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-thumb:hover { opacity: 1; }
.vt-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink); }

.vt-p { padding: 1.4rem clamp(1.1rem, 3vw, 1.75rem) 1.75rem; }
.vt-p__name {
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-2);
  letter-spacing: -0.015em; line-height: 1.15;
}
.vt-p__meta { margin-top: 0.35rem; font-size: 0.88rem; color: var(--ink-mute); }
.vt-p__meta i {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 26, 0.18); vertical-align: 0;
}
.vt-p__sec { margin-top: 1.6rem; }
.vt-p__h {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.6rem;
}
.vt-specs { border-top: 1px solid var(--line-soft); }
.vt-spec {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem;
}
.vt-spec svg { width: 20px; height: 20px; color: var(--ink-soft); }
.vt-spec dt { color: var(--ink-soft); }
.vt-spec dd { margin: 0; text-align: right; color: var(--ink); font-weight: 400; }
.vt-spec--no dd { color: var(--ink-mute); font-weight: 300; }
.vt-spec--plain { grid-template-columns: 1fr auto; }
.vt-p__desc { font-size: 0.93rem; color: var(--ink-soft); }
.vt-p__desc p + p { margin-top: 0.8em; }
.vt-p__warn {
  display: flex; gap: 0.6rem; padding: 0.8rem 0.95rem; border-radius: 12px;
  background: var(--accent-wash); font-size: 0.86rem; color: var(--ink-soft);
}
.vt-p__warn svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 0.15rem; }
.vt-p__sku {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
}
.vt-p__sku:hover { text-decoration-color: currentColor; }
.vt-p__guide { margin-top: 0.8rem; }

.vt-similar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.vt-sim {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink);
}
.vt-sim__img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--vt-skel); }
.vt-sim__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.vt-sim:hover .vt-sim__img img { transform: scale(1.05); }
.vt-sim span:last-child { font-size: 0.76rem; line-height: 1.25; }

/* Modal do guia */
.vt-layer--center { display: grid; place-items: center; padding: 1rem; }
.vt-layer--center[hidden] { display: none; }
.vt-modal {
  position: relative; width: min(620px, 100%); max-height: min(86vh, 760px); overflow: auto;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.4);
  animation: vtInScale 0.4s var(--ease-out) both;
}
.vt-modal:focus { outline: none; }
.vt-modal__x { position: absolute; top: 1rem; right: 1rem; }
.vt-modal .eyebrow { margin-bottom: 0.7rem; }
.vt-modal h2 {
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-2);
  letter-spacing: -0.015em; line-height: 1.15; padding-right: 2.5rem; margin-bottom: 0.9rem;
}
.vt-modal__lead { color: var(--ink); font-size: var(--step-0); margin-bottom: 1rem; }
.vt-modal__body p { color: var(--ink-soft); font-size: 0.93rem; }
.vt-modal__body p + p { margin-top: 0.8em; }
.vt-modal__tips { margin-top: 1.3rem; }
.vt-modal__tips li {
  position: relative; padding-left: 1.2rem; font-size: 0.9rem; color: var(--ink-soft);
}
.vt-modal__tips li + li { margin-top: 0.45rem; }
.vt-modal__tips li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--accent); }
.vt-modal .vt-specs { margin-top: 1.3rem; }
.vt-modal .btn-row { margin-top: 1.6rem; }

/* Bottom sheet (mobile) */
.vt-layer--bottom .vt-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0;
  animation: vtInUp 0.4s var(--ease-out) both;
}
.vt-sheet:focus { outline: none; }
.vt-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem 0.8rem 1.25rem; border-bottom: 1px solid var(--line-soft);
}
.vt-sheet__head::before {
  content: ""; position: absolute; top: 7px; left: 50%; translate: -50% 0;
  width: 36px; height: 4px; border-radius: 4px; background: var(--line);
}
.vt-sheet__title { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; }
.vt-sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1.25rem 1.5rem; }
.vt-sheet__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1.25rem calc(0.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}
.vt-sheet__go { flex: 0 1 auto; justify-content: center; min-width: 58%; }
.vt-sheet .vt-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .vt-search { flex-basis: 220px; }
  .vt-count { display: none; }
}
@media (max-width: 900px) {
  .vt-bar__groups { display: none; }
  .vt-bar__mobile { display: inline-flex; }
  .vt-count { display: block; }
  .vt-search { flex: 1 1 auto; }
}
@media (max-width: 759px) {
  .vt { --vt-bar-h: auto; }
  .vt-bar__inner { flex-wrap: wrap; gap: 0.5rem; }
  .vt-search { flex: 1 1 100%; order: -1; min-width: 0; }
  .vt-bar__end { gap: 0.6rem; }
  .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0.75rem; }
  .vt-card__name { margin-top: 0.6rem; font-size: 0.88rem; }
  .vt-card__fmt { font-size: 0.76rem; }
  .vt-chip, .vt-chip__img { width: 88px; }
  .vt-drawer { width: 100%; animation-name: vtInUp; }
  .vt-cta:first-child { flex-basis: 100%; }
  .vt-cta:last-child { flex: 1 1 100%; }
  .vt-similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-sort select { padding-right: 1.8rem; }
}
@media (max-width: 380px) {
  .vt-count { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vt *, .vt-layer * , .vt-layer__scrim {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .vt-card__media::before { animation: none; }
  .vt-gal__track { scroll-behavior: auto; }
}

/* ---------- Ajustes pós-verificação ---------- */
.vt-search__clear[hidden] { display: none; }
.vt-search { flex-basis: 340px; }
.vt-card__fmt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-cta, .vt-cta:first-child, .vt-cta:last-child { flex: 1 1 100%; }
@media (min-width: 760px) {
  .vt-gal__track { aspect-ratio: auto; height: min(520px, 50vh); }
}
.vt-amb__scroll { scroll-padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter))); }
.vt-guide-link { text-align: left; }

/* ---------- Vitrine no site (acrescimos ao prototipo) ---------- */
.vt [hidden] { display: none !important; }

/* Sem JS: sem barra de filtros nem chips de ambiente; os chips de tipo viram
   atalhos para as secoes e a grade aparece agrupada por tipo. */
html:not(.js) .vt-bar,
html:not(.js) [data-vt-amb-sec],
html:not(.js) .vt-layer { display: none !important; }

.vt-tipos { padding-top: clamp(1.25rem, 3vw, 1.9rem); }
.vt-chip { color: inherit; text-decoration: none; }
.vt-chip--atalho .vt-chip__label { font-style: normal; }
.vt-chip--atalho .vt-chip__img::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(157, 116, 48, 0.35); border-radius: inherit;
}

/* Etapa: barra + resultados. A barra deixa de grudar depois da grade. */
.vt-stage { position: relative; }

/* Grade agrupada por tipo (sem JS). */
.vt-sec { padding-top: clamp(1.5rem, 3.5vw, 2.5rem); }
.vt-sec + .vt-sec { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line-soft); }
.vt-sec__head { display: grid; gap: 0.35rem; margin-bottom: 1.4rem; max-width: 70ch; }
.vt-sec__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-2); letter-spacing: -0.015em; line-height: 1.15;
}
.vt-sec__title small { font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-mute); margin-left: 0.5rem; letter-spacing: 0; }
.vt-sec__lead { color: var(--ink-soft); font-size: 0.95rem; }
.vt-sec__note { margin: -0.4rem 0 1.4rem; font-size: 0.9rem; color: var(--ink-soft); max-width: 70ch; }
.vt-sec__note strong { font-weight: 500; color: var(--ink); }

/* Guias (Entenda o...) em <details>: texto no HTML, para quem nao tem JS e para busca. */
.vt-guide__lead { max-width: 64ch; color: var(--ink-soft); margin: -0.8rem 0 clamp(1.8rem, 4vw, 2.6rem); }
.vt-guides { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.vt-guides__title {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.4rem;
}
.vt-guides__lead { max-width: 64ch; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.vt-guides__list { border-top: 1px solid var(--line); columns: 2 22rem; column-gap: clamp(1.5rem, 4vw, 3rem); }
.vt-gd { break-inside: avoid; border-bottom: 1px solid var(--line); }
.vt-gd > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 0; cursor: pointer; list-style: none; font-size: 0.95rem; color: var(--ink);
}
.vt-gd > summary::-webkit-details-marker { display: none; }
.vt-gd > summary::marker { content: ""; }
.vt-gd > summary::after { content: "+"; font-size: 1.1rem; color: var(--ink-mute); transition: transform 0.25s var(--ease); }
.vt-gd[open] > summary::after { transform: rotate(45deg); }
.vt-gd > summary:hover { color: var(--accent); }
.vt-gd__body { padding: 0 0 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.vt-gd__body p + p { margin-top: 0.7em; }
.vt-gd__body ul { margin-top: 0.8rem; }
.vt-gd__body li { position: relative; padding-left: 1.1rem; }
.vt-gd__body li + li { margin-top: 0.35rem; }
.vt-gd__body li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--accent); }
.vt-gd__body dl { margin-top: 0.9rem; }
.vt-gd__body dl div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 0.8rem; padding: 0.45rem 0; border-top: 1px solid var(--line-soft); }
.vt-gd__body dt { color: var(--ink); }

/* CTA final */
.vt-visit { padding-block: clamp(3.5rem, 7vw, 6rem); }
.vt-visit h2 { max-width: 22ch; margin-bottom: 1rem; }
.vt-visit .lead { max-width: 58ch; margin-bottom: 1.8rem; }

@media (max-width: 759px) {
  .vt-sec__title small { display: block; margin: 0.2rem 0 0; }
  .vt-gd__body dl div { grid-template-columns: 1fr; gap: 0.1rem; }
}
