/* =========================================================
   PROVIDRO — "pele de vidro"
   1. Fonte e tokens  2. Base  3. Componentes  4. Header e menus
   5. Hero  6. Soluções  7. Obras  8. Empresa  9. Contato  10. Rodapé
   11. Portfólio e lightbox  12. Movimento
   ========================================================= */

/* ---------- 1. Fonte e tokens ---------- */
/* Archivo variável (largura 62–125, peso 300–900), subset latin, licença SIL OFL. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 300 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../assets/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Cores tiradas do logo: moldura grafite, montantes de alumínio, reflexo do vidro, vermelho da marca */
  --grafite: #1c1d21;
  --grafite-2: #2a2c31;
  --grafite-3: #3a3d42;
  --aluminio: #b8bcc3;
  --aluminio-claro: #e3e5e8;
  --nevoa: #e9ebee;
  --branco: #ffffff;
  --vidro: #7f93a8;
  --vermelho: #d52b2b;
  --vermelho-hover: #b82424;

  --texto: var(--grafite);
  --texto-suave: #575c64;        /* 5,6:1 sobre --nevoa */
  --texto-suave-escuro: #a3a8b0; /* 7:1 sobre --grafite */
  --linha-clara: rgba(28, 29, 33, 0.14);
  --linha-escura: rgba(227, 229, 232, 0.14);

  /* Archivo fica só na marca PROVIDRO (SVG); o texto usa fonte humanista do sistema, mais legível */
  --fonte: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --largura: 1440px;
  --header-h: 80px;
  --raio: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --t-display: clamp(2.9rem, min(7vw, 9.5vh + 0.5rem), 7.25rem);
  --t-h2: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  --t-grande: clamp(1.6rem, 1rem + 2.4vw, 3.25rem);
  --t-corpo: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-pequeno: 0.9375rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--fonte); font-size: var(--t-corpo); font-stretch: 100%; font-weight: 400;
  line-height: 1.65; color: var(--texto); background: var(--grafite); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: 0; word-spacing: 0.06em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--vidro); outline-offset: 3px; }
::selection { background: var(--vermelho); color: var(--branco); }
.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--vermelho); color: var(--branco); padding: 12px 20px; border-radius: var(--raio); }
.skip-link:focus { top: 16px; }
.container { width: min(100% - 2 * var(--gutter), var(--largura)); margin-inline: auto; }

/* Pendências de conteúdo: ocultas em produção, marcadas em desenvolvimento (localhost) */
.pendente { display: none !important; }
.is-dev .pendente { display: revert !important; outline: 1px dashed #e8c547; outline-offset: 2px; }
.is-dev .pendente::after { content: " (pendente)"; color: #b8961f; font-size: 0.75em; }

.claro { background: var(--nevoa); color: var(--texto); }
.escuro { background: var(--grafite); color: var(--aluminio-claro); }

/* ---------- 3. Componentes ---------- */
.btn {
  --btn-bg: transparent; --btn-cor: inherit; --btn-borda: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--btn-borda);
  background: var(--btn-bg); color: var(--btn-cor); overflow: hidden; isolation: isolate;
  font-size: 1rem; font-weight: 600; font-stretch: 105%; letter-spacing: 0; white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
/* Preenchimento que sobe como uma folha de vidro deslizando no trilho */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill, var(--branco));
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primario { --btn-bg: var(--vermelho); --btn-cor: var(--branco); --btn-borda: var(--vermelho); --btn-fill: var(--vermelho-hover); }
.btn--vidro {
  --btn-bg: rgba(255, 255, 255, 0.08); --btn-cor: var(--branco); --btn-borda: rgba(255, 255, 255, 0.35); --btn-fill: var(--branco);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--vidro:hover, .btn--vidro:focus-visible { color: var(--grafite); }
.btn--linha { --btn-cor: var(--texto); --btn-borda: var(--linha-clara); --btn-fill: var(--grafite); }
.btn--linha:hover, .btn--linha:focus-visible { color: var(--branco); border-color: var(--grafite); }
.escuro .btn--linha { --btn-cor: var(--aluminio-claro); --btn-borda: var(--linha-escura); --btn-fill: var(--aluminio-claro); }
.escuro .btn--linha:hover, .escuro .btn--linha:focus-visible { color: var(--grafite); border-color: var(--aluminio-claro); }

.vidro-painel {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--raio);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
}

.titulo-secao { font-size: var(--t-h2); font-stretch: 106%; font-weight: 700; letter-spacing: -0.005em; line-height: 1.1; }

/* Logo (sprite inline). --logo-pro alterna o “PRO” prata (fundo escuro) ou grafite (fundo claro). */
.logo { display: block; width: 150px; height: auto; --logo-moldura: #9a9ea4; --logo-pro: url(#lg-prata); --logo-sub: var(--aluminio-claro); }
.logo--claro { --logo-moldura: #2a2c31; --logo-pro: url(#lg-grafite); --logo-sub: #2a2c31; }

/* ---------- 4. Header e menus ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--branco);
  border-bottom: 1px solid transparent;
  transition: height 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.site-header.is-rolado {
  height: 68px; background: rgba(28, 29, 33, 0.72); border-bottom-color: var(--linha-escura);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-principal { display: none; }
.nav-principal ul { display: flex; gap: 6px; }
.nav-principal a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); transition: color 0.3s, background-color 0.3s;
}
.nav-principal a:hover { color: var(--branco); background: rgba(255, 255, 255, 0.08); }
.nav-principal a[aria-current] { color: var(--branco); background: rgba(255, 255, 255, 0.12); }
.header-acoes { display: flex; align-items: center; gap: 10px; }
.header-acoes .btn { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; display: none; }
.btn-menu {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06);
}
.btn-menu span { display: block; height: 1.5px; background: currentColor; }
@media (min-width: 640px) { .header-acoes .btn { display: inline-flex; } }
@media (min-width: 1024px) { .nav-principal { display: block; } .btn-menu { display: none; } .logo { width: 170px; } }

.menu-mobile {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--grafite); color: var(--branco);
}
.menu-mobile::backdrop { background: var(--grafite); }
.menu-mobile[open] { display: flex; flex-direction: column; }
.menu-mobile-topo { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); padding-inline: var(--gutter); }
.btn-fechar { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: none; font-size: 1.5rem; line-height: 1; }
.menu-mobile nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }
.menu-mobile nav a { padding: 10px 0; font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 700; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1.05; }
.menu-mobile-rodape { padding: 24px var(--gutter) 32px; display: grid; gap: 12px; }
.menu-mobile-rodape .btn { width: 100%; }

.wa-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--branco);
  background: rgba(42, 44, 49, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); transition: transform 0.4s var(--ease), background-color 0.3s;
}
.wa-flutuante:hover { transform: scale(1.06); background: var(--grafite-3); }
.wa-flutuante svg { width: 26px; height: 26px; }
.wa-menu {
  position: fixed; inset: auto 16px 84px auto; margin: 0; padding: 8px; width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--linha-escura); border-radius: 14px; background: rgba(28, 29, 33, 0.94); color: var(--aluminio-claro);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.wa-menu p { padding: 10px 12px 8px; font-size: var(--t-pequeno); color: var(--texto-suave-escuro); }
.wa-menu a { display: grid; gap: 2px; padding: 12px; border-radius: 10px; min-height: 44px; }
.wa-menu a:hover { background: rgba(255, 255, 255, 0.07); }
.wa-menu strong { font-weight: 600; color: var(--branco); }
.wa-menu span { font-size: var(--t-pequeno); color: var(--texto-suave-escuro); }
@media (min-width: 768px) { .wa-flutuante { right: 28px; bottom: 28px; } .wa-menu { right: 28px; bottom: 96px; } }

/* ---------- 5. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: var(--branco); background: var(--grafite); overflow: hidden; isolation: isolate; }
.hero-midia { position: absolute; inset: 0; z-index: -3; }
.hero-midia img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform-origin: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(28, 29, 33, 0.45) 0%, rgba(28, 29, 33, 0) 18%),
    linear-gradient(0deg, rgba(28, 29, 33, 0.88) 0%, rgba(28, 29, 33, 0.38) 34%, rgba(28, 29, 33, 0) 60%),
    linear-gradient(90deg, rgba(28, 29, 33, 0.32) 0%, rgba(28, 29, 33, 0) 55%);
}
/* Malha de painéis: cobre a foto e se abre na entrada, como uma pele de vidro sendo montada */
.pele { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); grid-template-rows: repeat(var(--rows, 6), 1fr); pointer-events: none; }
.pele span { border-right: 1px solid rgba(227, 229, 232, 0.07); border-bottom: 1px solid rgba(227, 229, 232, 0.07); background: var(--grafite); opacity: 0; }
@media (min-width: 768px) { .pele { --cols: 6; --rows: 4; } }
.anima .pele span { opacity: 1; }
/* Até a abertura começar, o texto do hero espera escondido (se o JS falhar, .anima sai e tudo aparece). */
.anima [data-hero-titulo], .anima [data-hero-lado], .anima [data-hero-rodape] { visibility: hidden; }

.hero-conteudo { align-self: end; display: grid; gap: clamp(24px, 4vh, 40px); padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero h1 { font-size: clamp(2.6rem, min(6vw, 8.6vh + 0.4rem), 6.4rem); font-weight: 750; font-stretch: 106%; letter-spacing: -0.005em; word-spacing: 0.08em; line-height: 1.1; max-width: 13ch; }
.hero-lado { display: grid; gap: 24px; max-width: 44ch; }
.hero-lado p { color: rgba(255, 255, 255, 0.84); }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 1024px) {
  .hero-conteudo { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: end; column-gap: 64px; }
  .hero-lado { justify-self: end; }
}
@media (max-width: 559px) { .hero-acoes .btn { flex: 1 1 100%; } }
.hero-rodape { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-rodape .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: var(--t-pequeno); color: rgba(255, 255, 255, 0.72); }
.hero-rodape a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.hero-rodape a:hover { color: var(--branco); text-decoration-color: currentColor; }

/* ---------- 6. Soluções ---------- */
.solucoes { padding-block: clamp(96px, 12vw, 180px); }
.solucoes-topo { display: grid; gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); }
.solucoes-topo p { color: var(--texto-suave); max-width: 52ch; }
@media (min-width: 900px) { .solucoes-topo { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
.lista-solucoes { border-top: 1px solid var(--linha-clara); }
.solucao { display: grid; gap: 20px; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--linha-clara); }
.solucao h3 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem); font-stretch: 106%; font-weight: 700; letter-spacing: -0.005em; }
.solucao p { color: var(--texto-suave); max-width: 46ch; }
.solucao-foto { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--raio); background: var(--grafite-2); }
.solucao-foto picture { width: 100%; height: 100%; }
.solucao-foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .solucao { grid-template-columns: minmax(220px, 3fr) 4fr 5fr; grid-template-areas: "foto titulo texto"; align-items: center; gap: 48px; }
  .solucao-foto { grid-area: foto; }
  .solucao h3 { grid-area: titulo; }
  .solucao p { grid-area: texto; }
}

/* Faixa de obras de referência: nomes rolando devagar, como uma placa de obra contínua */
.referencias { background: var(--grafite-2); color: var(--aluminio-claro); border-bottom: 1px solid var(--linha-escura); overflow: hidden; }
.referencias-trilho { display: flex; width: max-content; animation: faixa 60s linear infinite; }
.referencias:hover .referencias-trilho { animation-play-state: paused; }
.referencias ul { display: flex; flex: none; }
.referencias li { display: flex; align-items: center; gap: 28px; padding: 22px 28px 22px 0; font-size: 1rem; font-stretch: 110%; font-weight: 500; white-space: nowrap; }
.referencias li::after { content: ""; width: 6px; height: 6px; background: var(--vermelho); }
@keyframes faixa { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .referencias-trilho { width: auto; }
  .referencias ul { flex-wrap: wrap; padding-inline: var(--gutter); }
  .referencias ul[aria-hidden] { display: none; }
}

/* Números do diferencial */
.numeros { display: grid; margin: 0 0 clamp(56px, 7vw, 96px); border-top: 1px solid var(--linha-clara); }
.numeros div { padding: 24px 0; border-bottom: 1px solid var(--linha-clara); }
.numeros dt { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); font-stretch: 106%; font-weight: 750; letter-spacing: -0.005em; line-height: 1.1; }
.numeros dd { margin: 10px 0 0; color: var(--texto-suave); max-width: 28ch; }
@media (min-width: 768px) {
  .numeros { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--linha-clara); }
  .numeros div { border-bottom: 0; padding: 32px 32px 32px 0; }
  .numeros div + div { border-left: 1px solid var(--linha-clara); padding-left: 32px; }
}
.link-imprensa { display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px; color: var(--texto); font-weight: 600; text-decoration: underline; text-decoration-color: var(--linha-clara); text-underline-offset: 6px; transition: text-decoration-color 0.3s; }
.link-imprensa:hover { text-decoration-color: var(--vermelho); }

/* ---------- 7. Obras ---------- */
.obras { padding-block: clamp(96px, 12vw, 160px); }
.obras-topo { display: grid; gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); }
.obras-topo p { color: var(--texto-suave-escuro); max-width: 50ch; }
@media (min-width: 900px) { .obras-topo { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
.obras-explorar { display: grid; gap: 24px; }
.obras-lado { display: grid; gap: 24px; align-content: start; }
.obras-lado .btn { justify-self: start; }
/* Lista de obras: no celular vira uma fileira de abas deslizáveis acima do visor */
.obras-lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.obras-lista::-webkit-scrollbar { display: none; }
.obras-aba {
  flex: 0 0 auto; display: grid; gap: 2px; text-align: left; padding: 10px 16px; min-height: 44px;
  border: 1px solid var(--linha-escura); border-radius: 999px; background: none; color: var(--texto-suave-escuro);
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.obras-aba strong { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.obras-aba span { display: none; }
.obras-aba[aria-selected="true"] { background: var(--aluminio-claro); border-color: var(--aluminio-claro); color: var(--grafite); }
@media (min-width: 900px) {
  .obras-explorar { grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .obras-visor { order: 0; }
  .obras-lista { display: grid; gap: 0; overflow: visible; margin: 0; padding: 0; border-top: 1px solid var(--linha-escura); }
  .obras-aba {
    position: relative; padding: 18px 0 18px 20px; border: 0; border-bottom: 1px solid var(--linha-escura); border-radius: 0;
  }
  .obras-aba::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--vermelho); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease); }
  .obras-aba strong { font-size: 1.125rem; font-stretch: 110%; white-space: normal; }
  .obras-aba span { display: block; font-size: var(--t-pequeno); }
  .obras-aba:hover { color: var(--aluminio-claro); }
  .obras-aba[aria-selected="true"] { background: none; color: var(--branco); }
  .obras-aba[aria-selected="true"]::before { transform: scaleY(1); }
  .obras-aba[aria-selected="true"] span { color: var(--texto-suave-escuro); }
}

/* Visor de fotos de uma obra (home e página de obras): passa sozinho a cada 3 s */
.visor { display: grid; gap: 12px; animation: visor-entra 0.6s var(--ease); }
@keyframes visor-entra { from { opacity: 0; } }
.visor-palco { position: relative; overflow: hidden; border-radius: var(--raio); background: var(--grafite-2); aspect-ratio: 4 / 3; touch-action: pan-y; }
.visor-trilho { display: flex; height: 100%; transition: transform 0.9s var(--ease); }
.visor-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.visor-fundo, .visor-foto { position: absolute; inset: 0; }
.visor-fundo img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(0.9) brightness(0.55); transform: scale(1.15); }
.visor-foto img { width: 100%; height: 100%; object-fit: contain; }
.visor-barra { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.12); z-index: 2; }
.visor-barra span { display: block; height: 100%; background: var(--aluminio-claro); transform-origin: left; transform: scaleX(0); }
@keyframes visor-progresso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.visor-controles { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.visor-botoes { display: flex; gap: 8px; pointer-events: auto; }
.visor-contador, .visor-botao {
  background: rgba(28, 29, 33, 0.6); color: var(--branco); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.visor-contador { margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.visor-botao { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; transition: background-color 0.3s; }
.visor-botao svg { width: 17px; height: 17px; }
.visor-botao:hover { background: rgba(28, 29, 33, 0.9); }
.visor-miniaturas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.visor-miniaturas::-webkit-scrollbar { display: none; }
.visor-mini { flex: 0 0 64px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--grafite-2); opacity: 0.45; transition: opacity 0.3s; }
.visor-mini picture, .visor-mini img { width: 100%; height: 100%; object-fit: cover; }
.visor-mini:hover { opacity: 0.8; }
.visor-mini[aria-current] { opacity: 1; outline: 1px solid var(--aluminio-claro); outline-offset: 2px; }
.claro .visor-mini[aria-current] { outline-color: var(--grafite); }
@media (min-width: 900px) {
  .visor-palco { aspect-ratio: auto; height: clamp(300px, 54vh, 500px); }
  .visor-mini { flex-basis: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .visor-trilho { transition: opacity 0.4s !important; }
}

/* ---------- 8. Empresa ---------- */
.empresa { padding-block: clamp(96px, 12vw, 180px); }
.manifesto { font-size: var(--t-grande); font-stretch: 106%; font-weight: 600; letter-spacing: -0.005em; word-spacing: 0.04em; line-height: 1.14; max-width: 28ch; margin-bottom: clamp(80px, 11vw, 160px); }
.empresa-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
.empresa-foto { overflow: hidden; border-radius: var(--raio); aspect-ratio: 4 / 5; background: var(--grafite-2); }
.empresa-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.empresa-texto .titulo-secao { margin-bottom: 36px; }
.empresa-texto p { color: var(--texto-suave); max-width: 58ch; }
.empresa-texto p + p { margin-top: 18px; }
@media (min-width: 900px) { .empresa-grid { grid-template-columns: 5fr 6fr; align-items: center; } }
.linha-tempo { position: relative; display: grid; gap: 28px; margin-top: 56px; padding-top: 32px; }
.linha-tempo::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--linha-clara); }
.linha-tempo { --progresso: 1; }
.linha-tempo::after { content: ""; position: absolute; top: -0.5px; left: 0; right: 0; height: 2px; background: var(--grafite); transform-origin: left; transform: scaleX(var(--progresso)); }
.linha-tempo li { display: grid; gap: 6px; }
.linha-tempo strong { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-stretch: 106%; font-weight: 700; letter-spacing: -0.005em; line-height: 1.1; }
.linha-tempo span { color: var(--texto-suave); font-size: 0.9375rem; }
@media (min-width: 600px) { .linha-tempo { grid-template-columns: repeat(3, 1fr); } }
.assinatura { margin: clamp(96px, 12vw, 180px) 0 0; font-size: clamp(2.1rem, 0.6rem + 4.6vw, 6rem); font-stretch: 106%; font-weight: 800; letter-spacing: -0.005em; word-spacing: 0.08em; line-height: 1.1; color: var(--grafite); }
.assinatura span { display: block; white-space: nowrap; }
@media (max-width: 599px) { .assinatura span { white-space: normal; } }

/* ---------- 9. Contato ---------- */
.contato { position: relative; padding-block: clamp(96px, 12vw, 180px); overflow: hidden; isolation: isolate; }
.contato-fundo { position: absolute; inset: 0; z-index: -1; }
.contato-fundo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.contato-fundo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--grafite) 0%, rgba(28, 29, 33, 0.6) 45%, var(--grafite) 100%); }
.contato-topo { display: grid; gap: 28px; margin-bottom: clamp(48px, 6vw, 80px); }
.contato-topo p { color: var(--texto-suave-escuro); max-width: 52ch; }
@media (min-width: 900px) { .contato-topo { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
.pessoas { display: grid; gap: 16px; }
@media (min-width: 768px) { .pessoas { grid-template-columns: repeat(2, 1fr); } }
.pessoa { display: grid; gap: 28px; padding: clamp(24px, 3vw, 40px); align-content: space-between; min-height: 280px; }
.pessoa small { font-size: var(--t-pequeno); color: var(--texto-suave-escuro); }
.pessoa h3 { font-size: var(--t-h3); font-stretch: 106%; font-weight: 650; color: var(--branco); margin-top: 8px; }
.pessoa .tel { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; color: var(--aluminio); font-size: 1.0625rem; }
.pessoa .tel:hover { color: var(--branco); }
.pessoa .btn { justify-self: start; }
.contato-local { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; margin-top: 16px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--linha-escura); border-radius: var(--raio); }
.contato-local small { font-size: var(--t-pequeno); color: var(--texto-suave-escuro); }
.contato-local p { margin-top: 6px; color: var(--branco); font-size: 1.0625rem; max-width: 52ch; }

/* Etapas: o comprometimento da PROVIDRO, do projeto à entrega (sequência real, por isso numerada) */
.etapas { margin-top: clamp(96px, 12vw, 180px); }
.etapas-titulo { font-size: var(--t-h2); font-stretch: 106%; font-weight: 700; max-width: 18ch; margin-bottom: clamp(40px, 5vw, 64px); }
.etapas-lista { display: grid; border-top: 1px solid var(--linha-clara); }
.etapas-lista li { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; gap: 12px; padding-block: 22px; border-bottom: 1px solid var(--linha-clara); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-stretch: 106%; font-weight: 650; letter-spacing: -0.005em; line-height: 1.15; }
.etapas-lista span { font-size: var(--t-pequeno); font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--vermelho); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .etapas-lista { grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--linha-clara); }
  .etapas-lista li { grid-template-columns: 1fr; align-content: start; gap: 40px; padding: 24px 20px 32px 0; border-bottom: 0; font-size: clamp(1.05rem, 0.55rem + 0.85vw, 1.45rem); font-stretch: 100%; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .etapas-lista li + li { border-left: 1px solid var(--linha-clara); padding-left: 20px; }
}
.contato-ig { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; min-height: 44px; color: var(--texto-suave-escuro); transition: color 0.3s; }
.contato-ig svg { width: 22px; height: 22px; flex: none; }
.contato-ig strong { color: var(--branco); font-weight: 600; }
.contato-ig:hover { color: var(--branco); }

/* ---------- 10. Rodapé ---------- */
.site-footer { background: var(--grafite); color: var(--texto-suave-escuro); border-top: 1px solid var(--linha-escura); overflow: hidden; }
.footer-topo { display: grid; gap: 48px; padding-block: clamp(64px, 8vw, 104px) 48px; }
.footer-marca p { color: var(--aluminio-claro); font-size: 1.25rem; font-stretch: 110%; font-weight: 600; line-height: 1.3; max-width: 24ch; margin-top: 28px; }
/* 300px deixa o subtítulo do SVG em ~10px; com 200px ficava ilegível */
.footer-marca .logo { width: min(300px, 100%); --logo-sub: var(--branco); }
.footer-colunas { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); }
.footer-colunas h3 { font-size: var(--t-pequeno); font-weight: 500; letter-spacing: 0; color: var(--aluminio-claro); margin-bottom: 14px; }
.footer-colunas li { font-size: 0.9375rem; }
.footer-colunas li + li { margin-top: 4px; }
.footer-colunas a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-colunas a:hover { color: var(--branco); }
.footer-cta { padding-bottom: 40px; text-align: center; }
.footer-cta .btn { white-space: normal; text-align: center; }
@media (min-width: 900px) { .footer-topo { grid-template-columns: 4fr 8fr; } .footer-colunas { grid-template-columns: repeat(4, 1fr); } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--linha-escura); font-size: 0.875rem; }
.marca-gigante {
  display: block; margin: clamp(24px, 4vw, 48px) 0 -0.1em; text-align: center; white-space: nowrap;
  font-size: clamp(3.4rem, 15vw, 17rem); font-stretch: 125%; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: var(--grafite-2); user-select: none;
}
.marca-gigante::before { content: "PROVIDRO";
}

/* ---------- 11. Portfólio e lightbox ---------- */
.pagina-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 6vw, 80px); }
.pagina-hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.6rem); font-stretch: 106%; font-weight: 750; letter-spacing: -0.005em; line-height: 1.1; max-width: 15ch; }
.pagina-hero p { margin-top: 28px; color: var(--texto-suave-escuro); max-width: 56ch; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filtro { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--linha-escura); background: transparent; color: var(--aluminio-claro); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.filtro:hover { border-color: var(--aluminio); }
.filtro[aria-pressed="true"] { background: var(--aluminio-claro); color: var(--grafite); border-color: var(--aluminio-claro); }
[data-portfolio] { min-height: 100vh; background: var(--nevoa); }
.projeto { padding-block: clamp(56px, 7vw, 96px); color: var(--texto); }
.projeto + .projeto { border-top: 1px solid var(--linha-clara); }
.projeto[hidden] { display: none; }
.projeto .container { display: grid; gap: 28px; }
.projeto-ficha { display: grid; gap: 16px; align-content: start; }
.projeto-ficha h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.9rem); font-stretch: 106%; font-weight: 700; letter-spacing: -0.005em; }
.projeto-ficha dl { display: grid; gap: 14px; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--linha-clara); }
.projeto-ficha dt { font-size: var(--t-pequeno); color: var(--texto-suave); }
.projeto-ficha dd { margin: 2px 0 0; font-weight: 500; }
.projeto-ficha .btn { justify-self: start; margin-top: 12px; }
@media (min-width: 900px) {
  .projeto .container { grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .projeto-ficha { position: sticky; top: 100px; }
}
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 21, 24, 0.97); color: var(--branco); overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(20, 21, 24, 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.lightbox-titulo { font-weight: 600; font-stretch: 110%; }
.lightbox-contador { color: var(--texto-suave-escuro); font-variant-numeric: tabular-nums; }
.lightbox-palco { margin: 0; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lightbox-palco img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); width: auto; height: auto; object-fit: contain; border-radius: var(--raio); }
.lightbox-base { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter) 20px; }
.lightbox-legenda { flex: 1; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; }
.lightbox-nav { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: none; color: inherit; font-size: 1.25rem; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- 12. Movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pele { display: none; }
}
