/* Conecta Metrologia — estilos do site */
:root {
  --navy: #2d4777;
  --navy-900: #1b2c4c;
  --navy-950: #121f37;
  --blue: #0b8ec9;
  --sky: #56c3ef;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 31, 55, .08);
  --shadow-lg: 0 20px 50px rgba(18, 31, 55, .14);
  --wrap: 1200px;
  --head: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: "Exo 2", "Inter", sans-serif;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: linear-gradient(135deg, var(--navy-950), var(--navy)); color: #dfe7f3; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .78rem/1 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.section.dark .eyebrow { color: var(--sky); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.section.dark .lead { color: #b9c7dc; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { margin-bottom: 44px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .98rem/1 "Inter", sans-serif; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: 0 8px 22px rgba(11, 142, 201, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 142, 201, .4); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .3); }
.btn-wa:hover { transform: translateY(-2px); background: #1fbe5b; }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.section.dark .btn-ghost, .page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.section.dark .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(18, 31, 55, .06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .has-sub > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; color: var(--navy-900); font-weight: 600; font-size: .95rem;
}
.nav > a:hover, .nav .has-sub > a:hover, .nav a.active { color: var(--blue); background: var(--bg-soft); }
.has-sub { position: relative; }
.has-sub > a svg { width: 14px; height: 14px; transition: transform .2s; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > a svg { transform: rotate(180deg); }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy-900); font-weight: 500; }
.sub a:hover { background: var(--bg-soft); color: var(--blue); }
.head-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: var(--bg-soft); border-radius: 10px; cursor: pointer; color: var(--navy-900); }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .head-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--head) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--head)); overflow: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a, .nav .has-sub > a { padding: 14px 12px; font-size: 1.02rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .has-sub > a svg { display: none; }
  .nav .nav-wa { display: inline-flex; margin-top: 10px; }
}
.nav .nav-wa { display: none; }
@media (max-width: 1020px) { .nav .nav-wa { display: inline-flex; } }

/* Hero (slider da home) */
.hero-slider { position: relative; background: var(--bg-soft); overflow: hidden; }
.slides { display: flex; transition: transform .55s cubic-bezier(.22, .61, .36, 1); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.slides:active { cursor: grabbing; }
.slides img { -webkit-user-drag: none; }
.slide { flex: 0 0 100%; height: clamp(480px, 44vw, 680px); position: relative; overflow: hidden; }

/* Capas montadas em HTML (nítidas em qualquer resolução) */
.hs { background: linear-gradient(180deg, #e3f3fc 0%, #f7fbfe 60%, #ffffff 100%); display: grid; place-items: center; isolation: isolate; }
.hs-photo { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 30%; filter: grayscale(1) contrast(.85) brightness(1.1); opacity: .12; }
.hs-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(243, 245, 248, .85), transparent 75%); }
.hs:not(.hs-sys) { background: #f3f5f8; }
.hs-bars { position: absolute; height: 100%; width: auto; z-index: 0; pointer-events: none; }
.hs-bars.l { left: 0; bottom: 0; }
.hs-bars.r { right: 0; top: 0; transform: rotate(180deg); }
.hs-content { position: relative; z-index: 1; width: min(1100px, 100% - 200px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hs-logo { height: clamp(96px, 11vw, 168px); width: auto; margin-bottom: clamp(10px, 1.6vw, 22px); }
.hs-title {
  font: 800 clamp(1.7rem, 4.3vw, 4rem)/1.05 "Montserrat", "Exo 2", sans-serif; text-transform: uppercase;
  color: var(--blue); letter-spacing: .01em; margin: 0 0 .25em;
}
.hs-sub { font: 500 clamp(1.05rem, 2vw, 1.9rem)/1.3 "Montserrat", sans-serif; color: var(--navy); margin: 0 0 clamp(14px, 2vw, 26px); }
.hs-sub span { position: relative; white-space: nowrap; }
.hs-sub span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: 3px; border-radius: 3px; background: var(--blue); }
.hs-btns { justify-content: center; }
.hs-sys .hs-logo { height: clamp(80px, 8.5vw, 132px); margin-bottom: 0; }
.hs-products { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 3vw, 48px); width: 100%; margin: clamp(4px, 1vw, 12px) 0 clamp(10px, 1.6vw, 20px); }
.hs-products img { mix-blend-mode: multiply; height: clamp(150px, 19vw, 300px); width: auto; max-width: 32%; object-fit: contain; }
.hs-pill { font-size: clamp(.85rem, 1.1vw, 1rem); }
@media (max-width: 700px) {
  .slide { height: 600px; }
  .hs-content { width: calc(100% - 40px); }
  .hs-bars { opacity: .9; height: 55%; }
  .hs-bars.l { bottom: 0; } .hs-bars.r { top: 0; }
  .hs-logo { height: 110px; }
  .hs-products img { height: 130px; }
  .hs-btns .btn-ghost { display: none; }
}

/* Capas em duas colunas (Bambu Lab, MiSTAR, Vickers) — ocupam a faixa inteira */
.hx { --orange: #f26722; isolation: isolate; }
.c-blue { color: var(--blue); } .c-orange { color: var(--orange); }
.hx-grid { position: relative; z-index: 1; height: 100%; width: min(1240px, 100% - 140px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; padding-bottom: 28px; }
.hx-text { display: flex; flex-direction: column; align-items: flex-start; }
.hx-media { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.hx-media img { max-height: 92%; max-width: 100%; width: auto; object-fit: contain; }
.hx-media img.mul { mix-blend-mode: multiply; }
.hx-media img.fade { -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 48%, transparent 100%); }
.hx-title { font: 800 clamp(2.2rem, 5.6vw, 5.4rem)/1 "Exo 2", sans-serif; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .3em; }
.hx-title small { display: block; font-size: .56em; font-weight: 700; color: var(--navy); margin-top: .08em; }
.hx-p { font-size: clamp(1rem, 1.35vw, 1.25rem); color: var(--ink); margin: 0 0 1.1em; max-width: 520px; }
.hx-lead { font-size: clamp(1.1rem, 1.7vw, 1.6rem); color: var(--navy-900); margin: -.2em 0 .5em; }
.hx-box { background: var(--navy); color: #fff; font: 700 clamp(1.05rem, 1.8vw, 1.7rem)/1.3 "Exo 2", sans-serif; padding: .55em .9em; margin: 0 0 1.2em; max-width: 520px; box-shadow: var(--shadow-lg); }
.hx-mark { height: clamp(64px, 6.5vw, 100px); width: auto; margin-bottom: clamp(10px, 1.4vw, 20px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(242, 103, 34, .35); }
.btn-orange:hover { transform: translateY(-2px); background: #e05a17; }
.btn-orange svg { width: 18px; height: 18px; }

/* Bambu Lab */
.hx-bambu { background: linear-gradient(115deg, #f7f8fa 0%, #eceff3 48%, #f6f7f9 48.2%, #eef1f4 100%); }
.hx-hex { position: absolute; z-index: 0; width: clamp(160px, 18vw, 280px); height: auto; pointer-events: none; }
.hx-hex.tl { left: -40px; top: -30px; }
.hx-hex.tr { right: -30px; top: -20px; }
.hx-hex.br { right: 22%; bottom: -70px; transform: rotate(30deg); opacity: .6; }

/* MiSTAR */
.hx-mistar { background: radial-gradient(ellipse 60% 80% at 78% 50%, #ffffff 0%, #f1f2f4 70%), #f1f2f4; }
.hx-mistar::before { content: ""; position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(255, 255, 255, .55) 140px 220px); }
.hx-tag { display: inline-block; background: var(--orange); color: #fff; font: 800 .8rem/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px; transform: rotate(-2deg); margin-bottom: 14px; }
.hx-feats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; max-width: 560px; }
.hx-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink); line-height: 1.35; }
.hx-feats svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); }

/* Vickers (escuro) */
.hx-dark { background: radial-gradient(ellipse 70% 90% at 75% 45%, #3a3d44 0%, #1c1e22 55%, #0f1013 100%); color: #e9ebef; }
.hx-dark::before { content: ""; position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(180deg, transparent 0 60px, rgba(255, 255, 255, .025) 60px 61px); }
.hx-dark .hx-title { color: #fff; text-transform: uppercase; font-family: "Montserrat", sans-serif; font-size: clamp(2rem, 4.8vw, 4.6rem); }
.hx-dark .hx-p { color: #d5d9e0; }
.hx-kicker { font: 500 clamp(1rem, 1.5vw, 1.4rem) "Montserrat", sans-serif; color: #fff; margin-bottom: 8px; }
.hx-kicker::after { content: ""; display: block; width: 46px; height: 3px; background: var(--orange); margin-top: 8px; border-radius: 3px; }
.hx-labels { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; gap: clamp(30px, 8vw, 130px); }
.hx-labels span { white-space: nowrap; font: 700 clamp(.85rem, 1.2vw, 1.05rem)/1.15 "Montserrat", sans-serif; color: #fff; text-align: center; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 8px; border-left: 3px solid var(--orange); }
.hx-labels small { display: block; font-weight: 500; font-size: .78em; color: #c9ced6; }
.hero-slider.on-dark .slide-dots button:not(.on) { background: rgba(255, 255, 255, .4); }

@media (max-width: 900px) {
  .hx-grid { width: calc(100% - 40px); grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 6px; padding: 26px 0 40px; text-align: left; }
  .hx-media { height: auto; min-height: 0; }
  .hx-media img { max-height: 100%; height: 100%; }
  .hx-feats { grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 14px; }
  .hx-feats li { font-size: .8rem; } .hx-feats svg { width: 28px; height: 28px; padding: 5px; }
  .hx-feats li:nth-child(n+3) { display: none; }
  .hx-box { margin-bottom: .8em; }
  .hx-mark { height: 58px; }
  .hx-hex.tr { width: 140px; top: auto; bottom: -40px; right: -30px; }
  .hx-hex.br { display: none; }
  .hx-labels { bottom: 2%; }
  .hx .btn { padding: 12px 18px; font-size: .9rem; }
}
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(45, 71, 119, .3); cursor: pointer; transition: .25s; }
.slide-dots button.on { width: 28px; background: var(--blue); }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.slide-nav svg { width: 22px; height: 22px; }
.slide-nav.prev { left: 16px; } .slide-nav.next { right: 16px; }
@media (max-width: 700px) { .slide-nav { display: none; } }

/* Hero interno das páginas */
.page-hero {
  position: relative; color: #fff; padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 8vw, 96px);
  background: var(--navy-950); overflow: hidden; isolation: isolate;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18, 31, 55, .96) 0%, rgba(27, 44, 76, .82) 50%, rgba(11, 142, 201, .35) 100%); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #c9d6ea; }
.page-hero .eyebrow { color: var(--sky); }
.crumbs { font-size: .88rem; color: #9fb2cf; margin-bottom: 18px; }
.crumbs a { color: #c9d6ea; }
.crumbs a:hover { color: #fff; }

/* Quem somos */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.media-frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.badge-years {
  position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.badge-years strong { font: 800 2.4rem/1 "Exo 2", sans-serif; background: linear-gradient(135deg, var(--sky), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-years span { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }

/* Clientes */
.logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; gap: 20px; width: max-content; animation: marquee 38s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logo-card { flex: none; width: 190px; height: 104px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; padding: 16px 22px; }
.logo-card img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s; }
.logo-card:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logos { mask-image: none; } }

/* Cards de serviço */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* A imagem é presa ao quadro por posição absoluta: funciona igual no Safari (iPhone) */
.card .thumb { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb.product { background: #fff; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.card .thumb.product img { inset: 7%; width: 86%; height: 86%; object-fit: contain; }
@media (max-width: 640px) { .card .thumb.product { aspect-ratio: 1 / 1; } .card .thumb.product img { inset: 6%; width: 88%; height: 88%; } }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--muted); font-size: .96rem; }
.card .body .btn, .card .body .more { margin-top: auto; align-self: flex-start; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(86, 195, 239, .18), rgba(11, 142, 201, .18)); color: var(--blue); margin-bottom: 16px; }
.icon-badge svg { width: 26px; height: 26px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; margin: 0 6px 12px 0; }
.code { font-size: .82rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; margin-bottom: 14px; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.gallery a.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery a.wide { grid-column: span 2; aspect-ratio: 16/9; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 28, .92); display: none; place-items: center; padding: 24px; }
.lightbox.on { display: grid; }
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 24px; height: 24px; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; margin-top: 26px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: .2s; }
a.contact-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.contact-item .icon-badge { margin: 0; width: 46px; height: 46px; }
.contact-item small { display: block; color: var(--muted); font-size: .82rem; }
.contact-item strong { font-weight: 600; word-break: break-word; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form h3 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-size: .94rem; font-weight: 500; }
.form-msg.ok { color: #138a4b; } .form-msg.err { color: #c0392b; }

/* Faixa CTA */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--blue)); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .07); }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #d6e4f5; }

/* Produtos / Novacam */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product:nth-child(even) > :first-child { order: 2; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; place-items: center; }
.product-media img { max-height: 380px; width: auto; object-fit: contain; }
.product h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.product ul { padding-left: 0; list-style: none; margin: 0 0 18px; display: grid; gap: 8px; }
.product li { position: relative; padding-left: 26px; color: var(--muted); }
.product li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.product ul ul { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.product ul ul li { padding: 4px 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; color: var(--navy-900); }
.product ul ul li::before { display: none; }
.product h4 { font-size: 1rem; margin: 18px 0 10px; color: var(--navy); }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product:nth-child(even) > :first-child { order: 0; } }

/* Abas de categorias (Mitutoyo) */
.tabs { position: sticky; top: var(--head); z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: .92rem; color: var(--navy-900); border: 1px solid var(--line); background: #fff; }
.tabs ~ section[id], .product[id] { scroll-margin-top: calc(var(--head) + 64px); }
.tabs a:hover, .tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; margin-bottom: 36px; align-items: end; }
.cat-head p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .cat-head { grid-template-columns: 1fr; gap: 8px; } }
.also { margin-top: 22px; padding: 18px 22px; background: var(--bg-soft); border: 1px dashed #c9d3e2; border-radius: 14px; font-size: .95rem; color: var(--muted); }
.also strong { color: var(--navy-900); }

/* Depoimentos */
.quote { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; }
.quote .stars { color: #f5b301; letter-spacing: 3px; margin-bottom: 12px; }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--navy)); color: #fff; font-weight: 700; }

/* Marca (Sistemas) */
.brand-logo { height: 54px; width: auto; margin-bottom: 20px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo .product-media { padding: 16px; }
.duo img { max-height: 220px; }

/* Rodapé */
.site-footer { background: var(--navy-950); color: #a9b7cc; padding: 72px 0 0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #a9b7cc; }
.site-footer a:hover { color: #fff; }
.foot-logo { height: 70px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-links a { display: inline-flex; gap: 10px; align-items: center; }
.foot-links svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: .2s; }
.socials a:hover { background: var(--blue); }
.socials svg { width: 20px; height: 20px; }
.mini-form { display: flex; gap: 8px; margin-top: 12px; }
.mini-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.mini-form input::placeholder { color: #8394ad; }
.mini-form button { padding: 12px 14px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mini-form button svg { width: 20px; height: 20px; }
.foot-bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Banner largo */
.banner-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.banner-img img { width: 100%; }

.stack-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack-imgs img { border-radius: 14px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hx-dark .hx-media img.fade { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.hx-grid > * { min-width: 0; min-height: 0; }
@media (max-width: 900px) { .hx-media { overflow: hidden; } .hx-media img { width: 100%; height: 100%; max-height: none; } .hx-labels { gap: 12px; } }
@media (max-width: 900px) { .hx-labels { bottom: 34px; } .hx-dark .hx-media { padding-bottom: 30px; } }
@media (max-width: 900px) { .hx-labels { top: 4px; bottom: auto; z-index: 2; } .hx-dark .hx-media { padding: 40px 0 0; } }
@media (max-width: 900px) { .hx-grid { grid-template-rows: auto minmax(0, 1fr); align-items: stretch; } .hx-media { height: 100%; } .hx-media img { object-position: center bottom; } }
/* Deixa o fundo branco das fotos "sumir" no fundo da capa (multiply precisa do mesmo contexto) */
.hx-grid { z-index: auto; }
.hx-mistar::before, .hx-dark::before { z-index: -1; }

/* ---------- Página Digitalização 3D ---------- */
.mini-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.mini-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.mini-list svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 2px; }
.meter { display: inline-flex; gap: 5px; }
.meter i { width: 16px; height: 16px; border-radius: 3px; background: #d6dbe3; }
.meter i.on { background: var(--blue); }
.level-index { border-top: 2px solid var(--navy-900); }
.level-row { display: grid; grid-template-columns: 70px 1fr 220px 130px; align-items: center; gap: 18px; padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s; }
.level-row:hover { background: var(--bg-soft); }
.level-num { font: 800 2.6rem/1 "Exo 2", sans-serif; color: var(--blue); text-align: center; }
.level-name strong { display: block; font: 700 1.15rem/1.25 "Exo 2", sans-serif; color: var(--navy-900); }
.level-name small { color: var(--muted); font-size: .9rem; }
.level-row img { height: 92px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.level-inv { text-align: right; }
.level-inv small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) {
  .level-row { grid-template-columns: 46px 1fr 96px; gap: 10px; }
  .level-row img { height: 64px; }
  .level-inv { display: none; }
  .level-num { font-size: 2rem; }
  .level-name strong { font-size: 1rem; } .level-name small { font-size: .8rem; }
}
.level-head { display: flex; gap: 22px; align-items: center; padding-bottom: 22px; border-bottom: 2px solid var(--navy-900); margin-bottom: 30px; }
.level-head h2 { margin: 0 0 4px; }
.level-big { font: 800 clamp(4rem, 9vw, 6.5rem)/.85 "Exo 2", sans-serif; color: var(--blue); min-width: .7em; text-align: center; }
.level-imgs { display: grid; gap: 22px; margin-bottom: 26px; }
.level-imgs.n1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
.level-imgs.n2 { grid-template-columns: repeat(2, 1fr); }
.level-imgs.n3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .level-imgs.n2, .level-imgs.n3 { grid-template-columns: 1fr; } }
.level-imgs figure { margin: 0; }
.level-img { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.level-img img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; }
.level-imgs figcaption { margin-top: 10px; }
.level-imgs figcaption strong { display: block; color: var(--navy-900); font-family: "Exo 2", sans-serif; }
.level-imgs figcaption span { color: var(--muted); font-size: .92rem; }
.level-desc { font-size: 1.08rem; max-width: 900px; margin: 0 0 26px; }
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.level-grid > div { border-top: 2px solid var(--navy-900); padding-top: 12px; }
.level-grid h4 { font: 700 .76rem/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.level-grid ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: .94rem; }
.level-grid li::marker { color: var(--blue); }
@media (max-width: 900px) { .level-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .level-grid { grid-template-columns: 1fr; } .level-head { gap: 14px; } }
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.val-grid div { border-top: 2px solid rgba(255, 255, 255, .3); padding-top: 10px; }
.val-grid strong { display: block; color: #fff; font-family: "Exo 2", sans-serif; margin-bottom: 4px; }
.val-grid span { font-size: .9rem; color: #b9c7dc; }
@media (max-width: 640px) { .val-grid { grid-template-columns: 1fr; } }
.tech-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chips span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 10px 16px; color: #fff; font-weight: 700; }
.tech-chips small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.app-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.app-chips span { display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; color: var(--navy-900); }
.app-chips svg { width: 18px; height: 18px; color: var(--blue); }
.level { scroll-margin-top: calc(var(--head) + 64px); }
.level-grid .meter { display: flex; }
.level-grid .btn { display: flex; width: max-content; }

/* ---------- Capa Sistemas com 4 produtos ---------- */
.hs-products img { max-width: 24%; }
.hs-products img.sm { height: clamp(120px, 15vw, 240px); }
@media (max-width: 700px) {
  .hs-products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; justify-items: center; align-items: end; }
  .hs-products img, .hs-products img.sm { height: 108px; max-width: 100%; }
  .hs-products img.sm { height: 92px; }
}

/* ---------- Página Scanners 3D ---------- */
.scanner { scroll-margin-top: calc(var(--head) + 64px); }
.scanner .product { border-bottom: 0; padding-bottom: clamp(24px, 4vw, 44px); }
.scanner-name { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 4px; }
.scanner-line { color: var(--blue); font: 600 clamp(1rem, 1.4vw, 1.15rem)/1.35 "Exo 2", sans-serif; margin: 0 0 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.feat-grid > div { border-top: 2px solid var(--navy-900); padding-top: 14px; }
.feat-grid h4 { display: flex; gap: 8px; align-items: flex-start; font-size: 1.02rem; margin: 0 0 8px; color: var(--navy-900); }
.feat-grid h4 svg { flex: none; width: 19px; height: 19px; color: var(--blue); margin-top: 2px; }
.feat-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 1020px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; gap: 20px; } }
.sc-gal .level-img { display: block; cursor: zoom-in; }
.sc-gal .level-img img { inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sc-gal .level-img:hover img { transform: scale(1.04); }
.sc-gal .level-img.contain img { inset: 6%; width: 88%; height: 88%; object-fit: contain; }
@media (max-width: 760px) {
  .level-imgs.sc-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .sc-gal figcaption strong { font-size: .92rem; }
  .sc-gal figcaption span { font-size: .82rem; display: block; line-height: 1.35; }
}
.spec-wrap { margin-top: clamp(32px, 5vw, 52px); }
.spec-wrap h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 16px; }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { width: 32%; background: var(--bg-soft); color: var(--navy-900); font-weight: 600; }
.spec-table td { color: var(--text, #33415c); }
.spec-note { margin: 10px 0 0; font-size: .84rem; color: var(--muted); }
@media (max-width: 640px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { padding: 12px 16px 4px; border-top: 1px solid var(--line); }
  .spec-table td { padding: 0 16px 12px; border-top: 0; background: var(--bg-soft); }
  .spec-table tr:first-child th { border-top: 0; }
}
.cmp .card { height: 100%; }
.cmp dl { margin: 0 0 22px; display: grid; gap: 4px; }
.cmp dt { font: 700 .72rem/1.2 "Inter", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-top: 12px; }
.cmp dt:first-child { margin-top: 4px; }
.cmp dd { margin: 0; color: var(--navy-900); font-size: .96rem; }
/* O z-index isolava a camada e impedia o multiply de "apagar" o fundo branco das fotos sobre as barras */
.hs-sys .hs-content { z-index: auto; }

/* ---------- Capa Sistemas: 2 produtos em destaque, com nome ---------- */
.hs-products.duo2 { display: flex; align-items: flex-end; justify-content: center; gap: clamp(24px, 7vw, 120px); }
.hs-prod { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none; transition: transform .3s; }
.hs-prod:hover { transform: translateY(-4px); }
.hs-products.duo2 img { height: clamp(190px, 23vw, 350px); width: auto; max-width: 100%; mix-blend-mode: multiply; object-fit: contain; }
.hs-name { margin-top: clamp(6px, 1vw, 14px); font: 800 clamp(1.15rem, 2vw, 1.9rem)/1.1 "Exo 2", sans-serif; color: var(--navy); letter-spacing: .01em; }
.hs-kind { margin-top: 4px; font: 600 clamp(.66rem, .85vw, .8rem)/1.3 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 700px) {
  .hs-products.duo2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
  .hs-products.duo2 img { height: 150px; }
  .hs-name { font-size: 1.05rem; }
  .hs-kind { font-size: .6rem; letter-spacing: .08em; }
}
.hs-products.duo2 img { height: clamp(170px, 18vw, 290px); }
@media (max-width: 700px) { .hs-products.duo2 { align-items: start; } .hs-products.duo2 img { height: 150px; } }

/* Capa Shining 3D (scanners) */
.hs-shining .hs-logo { height: auto; width: clamp(220px, 24vw, 380px); margin-bottom: clamp(10px, 1.6vw, 22px); }
@media (max-width: 700px) { .hs-shining .hs-logo { width: 220px; height: auto; } }
