/* ==========================================================================
   Sacom Engineering — foglio di stile
   Token: blu notte (ora blu sugli impianti), scala dei 4 blu del logo,
   ambra del simbolo Ex usato solo per azioni e stati attivi.
   ========================================================================== */

:root {
  --night: #0b1a30;
  --night-2: #10233f;
  --deep: #07111f;
  --steel: #1b3253;
  --line: rgba(207, 230, 246, 0.14);
  --line-strong: rgba(207, 230, 246, 0.28);

  --logo-1: #cfe6f6;
  --logo-2: #8ecfef;
  --logo-3: #3b9ed6;
  --logo-4: #0a5487;

  --amber: #f5b72e;
  --amber-hi: #ffd46b;
  --amber-ink: #2a1c00;

  --text: #eef4fa;
  --muted: #9fb4cb;
  --soft: #c8d7e6;

  --font: "Archivo", system-ui, sans-serif;
  --wide: 125;
  --semi: 112;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 14px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* colore della luce in vetrina: cambia con il prodotto */
  --spot: 59 158 214;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--amber); color: var(--amber-ink); }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--amber); color: var(--amber-ink);
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
  transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" var(--wide);
  text-wrap: balance;
}

.lead {
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--soft);
  text-wrap: pretty;
}

.link {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .2s;
}
.link:hover { background-size: 100% 1px, 100% 1px; color: var(--amber-hi); }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Pulsanti ---------- */

.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s;
}
.btn span { position: relative; z-index: 1; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn--wide { width: 100%; }

.btn--amber {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 10px 30px -12px rgba(245, 183, 46, 0.65);
}
/* riflesso che attraversa il pulsante al passaggio del mouse */
.btn--amber::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn--amber:hover::after { transform: translateX(120%); }
.btn--amber:hover { background: var(--amber-hi); box-shadow: 0 16px 40px -14px rgba(245, 183, 46, 0.9); }
.btn--amber:active { transform: translate(var(--mx), var(--my)) scale(.97); }

.btn--line {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--logo-2); color: var(--logo-1); }

.btn--ghost {
  background: rgba(207, 230, 246, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { background: rgba(207, 230, 246, 0.16); }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--soft);
  transition: background-color .25s, color .25s, transform .3s var(--ease-out);
}
.icon-btn svg { width: 19px; fill: currentColor; }
.icon-btn:hover { background: rgba(207,230,246,.1); color: var(--text); transform: rotate(-12deg); }

/* ---------- Logo ---------- */

/* il logo è inline SVG: colori adattati al fondo scuro */
.lg-bar { transform-box: fill-box; transform-origin: left center; }
.lg-bar--1 { fill: var(--logo-1); }
.lg-bar--2 { fill: var(--logo-2); }
.lg-bar--3 { fill: var(--logo-3); }
.lg-bar--4 { fill: #1f7cc0; }
.lg-sacom { fill: var(--text); }
.lg-eng { fill: var(--logo-2); }
.lg-sub { fill: var(--muted); }
.logo-full { display: block; width: 100%; height: auto; overflow: visible; }

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-h { display: block; height: 34px; width: auto; overflow: visible; }
.brand:hover .lg-bar { animation: bar-wave .7s var(--ease-out); }
.brand:hover .lg-bar--2 { animation-delay: .05s; }
.brand:hover .lg-bar--3 { animation-delay: .1s; }
.brand:hover .lg-bar--4 { animation-delay: .15s; }
@keyframes bar-wave { 50% { transform: scaleX(.55); } }
.brand--foot .logo-h { height: 40px; }

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--deep);
}
.intro__logo { width: min(340px, 64vw); transform-origin: top left; }
.intro__skip {
  position: absolute;
  right: var(--gutter); bottom: 28px;
  padding: 8px 14px;
  border: 0; border-radius: 999px;
  background: rgba(207,230,246,.08);
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  opacity: 0;
  animation: fade-up .6s .6s var(--ease-out) forwards;
}
.intro__skip:hover { color: var(--text); background: rgba(207,230,246,.16); }
.intro .lg-bar { transform: scaleX(0); }
.intro .lg-ch { opacity: 0; }
.intro.is-play .lg-bar { animation: bar-in .9s var(--ease-out) forwards; }
.intro.is-play .lg-bar--2 { animation-delay: .12s; }
.intro.is-play .lg-bar--3 { animation-delay: .24s; }
.intro.is-play .lg-bar--4 { animation-delay: .36s; }
.intro.is-play .lg-sacom .lg-ch { animation: glyph-up .8s var(--ease-out) forwards; }
.intro.is-play .lg-eng .lg-ch,
.intro.is-play .lg-sub .lg-ch { animation: glyph-fade .7s var(--ease-out) forwards; }
.intro.is-out { opacity: 0; pointer-events: none; transition: opacity .7s .25s var(--ease-io); }
.intro.is-out .intro__skip { opacity: 0 !important; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glyph-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes glyph-fade { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Sezione logo ---------- */

.brandhero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 90px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 42%, rgb(59 158 214 / .16), transparent 70%),
    var(--deep);
  isolation: isolate;
}
/* le 4 barre del logo diventano fasci di luce che attraversano lo schermo */
.brandhero__lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  align-content: center;
  gap: 3.2vh;
  transform: translateY(-14vh);
  pointer-events: none;
}
.brandhero__lines span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c) 30%, var(--c) 70%, transparent);
  opacity: .22;
  transform: translateX(var(--x, 0));
  animation: drift 14s ease-in-out infinite alternate;
}
.brandhero__lines span:nth-child(1) { --c: var(--logo-1); animation-duration: 16s; }
.brandhero__lines span:nth-child(2) { --c: var(--logo-2); animation-duration: 13s; animation-delay: -4s; }
.brandhero__lines span:nth-child(3) { --c: var(--logo-3); animation-duration: 18s; animation-delay: -8s; }
.brandhero__lines span:nth-child(4) { --c: #1f7cc0; animation-duration: 15s; animation-delay: -2s; }
@keyframes drift { from { translate: -18% 0; } to { translate: 18% 0; } }

.brandhero__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  transform: translateY(var(--lift, 0)) scale(var(--shrink, 1));
  opacity: var(--fade, 1);
  will-change: transform, opacity;
}
.brandhero__logo { width: min(340px, 64vw); margin-bottom: 18px; }
.brandhero__claim {
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 750;
  font-variation-settings: "wdth" var(--semi);
  text-wrap: balance;
}
.brandhero__sub { max-width: 52ch; color: var(--soft); }
.brandhero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

.is-loading .brandhero__inner > :not(.brandhero__logo) { opacity: 0; }
.is-ready .brandhero__inner > :not(.brandhero__logo) { animation: fade-up .9s var(--ease-out) both; }
.is-ready .brandhero__claim { animation-delay: .05s; }
.is-ready .brandhero__sub { animation-delay: .15s; }
.is-ready .brandhero__cta { animation-delay: .25s; }

/* ---------- Navigazione ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease-out), background-color .4s, backdrop-filter .4s, height .4s var(--ease-out);
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(11, 26, 48, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__links {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.45);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav__links a {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--muted);
  transition: color .3s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }

/* la "pillola" che scivola sotto la voce attiva */
.nav__pill {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f7cc0, var(--logo-4));
  box-shadow: 0 6px 20px -8px rgba(59, 158, 214, .8);
  opacity: 0;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
}

.nav__actions { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(207,230,246,.08);
  cursor: pointer;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  background: var(--deep);
  clip-path: circle(0 at calc(100% - 38px) 38px);
  transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 38px) 38px); }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 800;
  font-variation-settings: "wdth" var(--wide);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .6s var(--ease-out), color .2s;
}
.menu nav a:hover { color: var(--amber); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu__foot { margin-top: 40px; color: var(--muted); }

/* ==========================================================================
   HERO — vetrina prodotti
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #143058 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--deep) 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__glow {
  position: absolute;
  left: 50%; top: 56%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--spot) / .42), rgb(var(--spot) / .12) 55%, transparent 75%);
  filter: blur(10px);
  transition: background .9s var(--ease-io);
}

/* fascio di luce dall'alto, come un faro di scena */
.hero__beam {
  position: absolute;
  left: 50%; top: -10%;
  width: min(640px, 90vw);
  height: 85%;
  translate: -50% 0;
  background: linear-gradient(180deg, rgb(var(--spot) / .0) 0%, rgb(var(--spot) / .16) 45%, rgb(var(--spot) / .04) 100%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(18px);
  opacity: .9;
  transition: background .9s var(--ease-io);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 60%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 60%, #000 0%, transparent 75%);
  opacity: .35;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas:
    "copy stage plate"
    "copy stage nav";
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: clamp(16px, 3vw, 48px);
  scroll-margin-top: 0;
}

.hero__copy { grid-area: copy; display: grid; gap: 22px; align-content: center; }

.hero__family {
  color: var(--logo-2);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
}

.hero__title {
  font-size: clamp(3.4rem, 8.6vw, 7.6rem);
  line-height: .9;
  font-weight: 850;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" var(--wide);
  white-space: nowrap;
}
.hero__title [data-field="name"] { display: inline-flex; overflow: hidden; padding-bottom: .06em; }
.hero__title .ch { display: inline-block; will-change: transform; }

.hero__desc {
  max-width: 40ch;
  color: var(--soft);
  min-height: 5em;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* selettore a esagoni, come i pallini colore del riferimento */
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.hex {
  --size: 46px;
  position: relative;
  width: var(--size);
  height: calc(var(--size) * 1.12);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: transform .4s var(--ease-out);
}
.hex::before,
.hex::after {
  content: "";
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .35s, transform .4s var(--ease-out);
}
.hex::before { background: var(--line-strong); }
.hex::after { inset: 2px; background: var(--night-2); }
.hex img {
  position: absolute; inset: 9px;
  z-index: 1;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: contain;
  filter: grayscale(.6) brightness(.8);
  transition: filter .35s, transform .45s var(--ease-out);
}
.hex:hover { transform: translateY(-4px); }
.hex:hover img { filter: none; transform: scale(1.08); }
.hex[aria-selected="true"]::before { background: var(--amber); }
.hex[aria-selected="true"] img { filter: none; }
.hex[aria-selected="true"] { transform: translateY(-4px); }

/* palco del prodotto */
.stage {
  grid-area: stage;
  position: relative;
  height: min(68vh, 640px);
  display: grid;
  place-items: center;
  perspective: 1100px;
  touch-action: pan-y;
}
.stage__halo {
  position: absolute;
  width: 74%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgb(var(--spot) / .22);
  box-shadow: inset 0 0 80px rgb(var(--spot) / .12);
  transition: border-color .9s, box-shadow .9s;
  animation: halo-breathe 6s ease-in-out infinite;
}
@keyframes halo-breathe { 50% { transform: scale(1.04); opacity: .7; } }

.stage__tilt {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}
.stage__img {
  max-height: 82%;
  max-width: 78%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 45px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgb(var(--spot) / .18));
  animation: float 7s ease-in-out infinite;
  will-change: transform, opacity, filter;
}
@keyframes float { 50% { translate: 0 -12px; } }

.stage__floor {
  position: absolute;
  bottom: 6%;
  width: 46%; height: 34px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent);
  animation: floor 7s ease-in-out infinite;
}
@keyframes floor { 50% { transform: scaleX(.86); opacity: .7; } }

/* targhetta di marcatura */
.plate {
  grid-area: plate;
  position: relative;
  align-self: end;
  padding: 26px 26px 22px;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(207,230,246,.1), rgba(207,230,246,.03));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.plate__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ex { width: 38px; flex: none; }
.ex path { fill: var(--amber); }
.ex text {
  font: 800 15px var(--font);
  font-variation-settings: "wdth" var(--wide);
  fill: var(--amber-ink);
  text-anchor: middle;
}
.plate__label { font-size: .8rem; color: var(--muted); }
.plate__dir { font-weight: 700; font-size: 1rem; }

.plate__lines { display: grid; gap: 10px; }
.plate__lines li {
  position: relative;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 550;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--logo-1);
}
.plate__lines li small { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.plate__cert {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: .8rem;
  color: var(--muted);
}
.plate__cert:empty { display: none; }
.screw {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b9c9d9, #4b6580);
  box-shadow: 0 1px 1px rgba(0,0,0,.5);
}
.screw::after { content: ""; position: absolute; inset: 3px 1px; background: rgba(0,0,0,.45); border-radius: 1px; }
.screw--tl { top: 10px; left: 10px; } .screw--tr { top: 10px; right: 10px; transform: rotate(60deg); }
.screw--bl { bottom: 10px; left: 10px; transform: rotate(120deg); } .screw--br { bottom: 10px; right: 10px; transform: rotate(30deg); }

.hero__nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.arrow {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border: 0; border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: box-shadow .3s, background-color .3s, transform .35s var(--ease-out);
}
.arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.arrow:hover { background: rgba(207,230,246,.08); box-shadow: inset 0 0 0 1px var(--logo-2); }
.arrow[data-prev]:hover svg { transform: translateX(-3px); }
.arrow[data-next]:hover svg { transform: translateX(3px); }
.arrow:active { transform: scale(.92); }

.counter {
  display: flex; align-items: center; gap: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--muted);
}
.counter__now { color: var(--text); display: inline-block; min-width: 2ch; }
.counter__sep { width: 34px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.counter__sep::after {
  content: ""; position: absolute; inset: 0;
  background: var(--amber);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform .6s var(--ease-out);
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  translate: -50% 0;
  width: 26px; height: 42px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px;
  width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--logo-2);
  animation: wheel 1.8s var(--ease-io) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- La vetrina si "accende" quando entra in vista ---------- */

.is-loading .nav { opacity: 0; }
.is-ready .nav { animation: fade-down .9s var(--ease-out) both; }

.js .hero:not(.is-on) .stage__img { opacity: 0; filter: brightness(0) blur(8px); transform: translateY(40px) scale(.94); animation: none; }
.js .hero:not(.is-on) .hero__beam,
.js .hero:not(.is-on) .hero__glow { opacity: 0; }
.js .hero:not(.is-on) .hero__copy > *,
.js .hero:not(.is-on) .plate,
.js .hero:not(.is-on) .hero__nav { opacity: 0; }

.hero.is-on .hero__glow { animation: rise-glow 1.6s var(--ease-out) both; }
.hero.is-on .hero__beam { animation: rise-beam 1.4s .15s var(--ease-out) both; }
.hero.is-on .stage__img { animation: light-on 1.5s .35s var(--ease-out) both, float 7s 2s ease-in-out infinite; }
.hero.is-on .hero__copy > * { animation: fade-up .9s var(--ease-out) both; }
.hero.is-on .hero__copy > :nth-child(1) { animation-delay: .6s; }
.hero.is-on .hero__copy > :nth-child(2) { animation-delay: .68s; }
.hero.is-on .hero__copy > :nth-child(3) { animation-delay: .76s; }
.hero.is-on .hero__copy > :nth-child(4) { animation-delay: .84s; }
.hero.is-on .hero__copy > :nth-child(5) { animation-delay: .92s; }
.hero.is-on .plate { animation: fade-left 1s .85s var(--ease-out) both; }
.hero.is-on .hero__nav { animation: fade-up .9s 1s var(--ease-out) both; }

@keyframes rise-glow { from { opacity: 0; transform: scale(.6); } }
@keyframes rise-beam { from { opacity: 0; clip-path: polygon(50% 0, 50% 0, 50% 0, 50% 0); } }
@keyframes light-on {
  0% { opacity: 0; filter: brightness(0) blur(8px); transform: translateY(40px) scale(.94); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-14px); } }
@keyframes fade-left { from { opacity: 0; transform: translateX(26px); } }

/* ==========================================================================
   Manifesto
   ========================================================================== */

.manifesto {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 130px);
  background: var(--deep);
}
.manifesto__text {
  max-width: 24ch;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.012em;
  font-variation-settings: "wdth" var(--semi);
  text-wrap: balance;
}
.manifesto__text .w { color: rgb(238 244 250 / .16); transition: color .5s; }
.manifesto__text .w.is-lit { color: var(--text); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding: 28px 24px 0 0;
}
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { color: var(--muted); font-size: .95rem; }
.stat dd {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 800;
  font-variation-settings: "wdth" var(--wide);
  font-variant-numeric: tabular-nums;
}
.stat dd.stat__zones { white-space: nowrap; font-size: clamp(1.7rem, 3.3vw, 2.9rem); word-spacing: .05em; }
.stat__zones i { font-style: normal; color: var(--logo-3); }

/* ==========================================================================
   Consulenza
   ========================================================================== */

.services { padding: clamp(90px, 12vw, 150px) 0; }

.services__body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.services__list { display: grid; }
.svc {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 26px 0 26px 34px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__bar {
  position: absolute;
  left: 0; top: 33px;
  width: 18px; height: 5px;
  border-radius: 3px;
  background: var(--bar);
  transition: width .5s var(--ease-out), box-shadow .5s;
}
.svc__title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 750;
  line-height: 1.2;
  font-variation-settings: "wdth" var(--semi);
  color: var(--muted);
  transition: color .3s, transform .5s var(--ease-out);
}
.svc__sub { color: var(--muted); font-size: .95rem; opacity: .8; }
.svc:hover .svc__title { color: var(--soft); transform: translateX(4px); }
.svc[aria-selected="true"] .svc__title { color: var(--text); transform: translateX(10px); }
.svc[aria-selected="true"] .svc__sub { color: var(--soft); opacity: 1; transform: translateX(10px); }
.svc .svc__sub { transition: transform .5s var(--ease-out), color .3s; }
.svc[aria-selected="true"] .svc__bar { width: 28px; box-shadow: 0 0 18px var(--bar); }

.services__panels { position: relative; }
.panel { display: grid; gap: 30px; }
.panel[hidden] { display: none; }
.panel__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--night-2);
}
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel.is-entering .panel__img { animation: wipe .9s var(--ease-io) both; }
.panel.is-entering .panel__img img { animation: settle 1.4s var(--ease-out) both; }
.panel.is-entering .ticks li { animation: fade-up .6s var(--ease-out) both; }
.panel.is-entering .ticks li:nth-child(2) { animation-delay: .06s; }
.panel.is-entering .ticks li:nth-child(3) { animation-delay: .12s; }
.panel.is-entering .ticks li:nth-child(4) { animation-delay: .18s; }
.panel.is-entering .ticks li:nth-child(5) { animation-delay: .24s; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0 round var(--r-md)); } to { clip-path: inset(0 0 0 0 round var(--r-md)); } }
@keyframes settle { from { transform: scale(1.15); } }

.ticks { display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--soft);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: 14px; height: 14px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--logo-3);
}

/* ==========================================================================
   Catalogo
   ========================================================================== */

.catalog {
  padding: clamp(90px, 12vw, 150px) 0;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.catalog__list { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr) 40px;
  align-items: center;
  gap: 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
}
.row::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(59 158 214 / .14), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.row:hover::before,
.row:focus-visible::before { transform: scaleX(1); }
.row__img { height: 72px; display: grid; place-items: center; }
.row__img img { max-height: 72px; width: auto; transition: transform .6s var(--ease-out); }
.row:hover .row__img img { transform: scale(1.12) rotate(-4deg); }
.row__name { font-weight: 800; font-size: 1.35rem; line-height: 1.1; font-variation-settings: "wdth" var(--wide); }
.row__name small { display: block; margin-top: 4px; font-size: .9rem; font-weight: 500; color: var(--muted); font-variation-settings: "wdth" 100; }
.row__marks { font-size: .9rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.row__go {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .3s, transform .5s var(--ease-out);
}
.row__go svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row:hover .row__go { background: var(--amber); color: var(--amber-ink); transform: rotate(-45deg); box-shadow: none; }
.catalog__more { margin-top: 32px; color: var(--muted); }

/* ==========================================================================
   Chi siamo
   ========================================================================== */

.about { padding: clamp(90px, 12vw, 150px) 0; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
/* pannello con il logo: le barre scorrono a velocità diverse con lo scroll */
.about__logo {
  --p: 0;
  position: sticky;
  top: 100px;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 14% 12%;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    radial-gradient(80% 60% at 50% 35%, rgb(59 158 214 / .22), transparent 70%),
    linear-gradient(160deg, var(--night-2), var(--deep));
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}
.about__logo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 80%);
  opacity: .5;
}
.about__logo-inner { width: 100%; }
.about__logo .lg-bar { transition: transform .2s linear; }
.about__logo .lg-bar--1 { transform: translateX(calc((var(--p) - .5) * -60px)); }
.about__logo .lg-bar--2 { transform: translateX(calc((var(--p) - .5) * 40px)); }
.about__logo .lg-bar--3 { transform: translateX(calc((var(--p) - .5) * -25px)); }
.about__logo .lg-bar--4 { transform: translateX(calc((var(--p) - .5) * 70px)); }
.about__since {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.about__since strong {
  color: var(--logo-1);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" var(--semi);
}
.about__copy { display: grid; gap: 24px; }

.timeline {
  --progress: 0;
  position: relative;
  display: grid;
  gap: 44px;
  margin-top: 30px;
  padding-left: 40px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(180deg, var(--logo-2), var(--logo-3));
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.timeline__item { position: relative; display: grid; gap: 8px; }
.timeline__item::before {
  content: "";
  position: absolute; left: -40px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  transition: box-shadow .5s, background-color .5s;
}
.timeline__item.is-lit::before { background: var(--logo-3); box-shadow: inset 0 0 0 2px var(--logo-2), 0 0 0 6px rgb(59 158 214 / .18); }
.timeline__when { color: var(--logo-2); font-weight: 600; font-size: .95rem; }
.timeline__item h3 { font-size: 1.5rem; font-weight: 750; font-variation-settings: "wdth" var(--semi); }
.timeline__item p:last-child { color: var(--soft); max-width: 56ch; }

.vision { margin-top: clamp(80px, 10vw, 130px); }
.vision__title { font-size: 1.1rem; font-weight: 600; color: var(--logo-2); margin-bottom: 26px; }
.vision__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.vision__item { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.vision__item + .vision__item { padding-left: 28px; border-left: 1px solid var(--line); }
.vision__item h4 { font-size: 1.3rem; font-weight: 750; font-variation-settings: "wdth" var(--semi); }
.vision__item p { color: var(--soft); }

/* ==========================================================================
   Come lavoriamo (scorrimento orizzontale agganciato)
   ========================================================================== */

.method {
  --steps: 6;
  position: relative;
  height: calc(100svh + var(--steps) * 34vw);
  background: linear-gradient(180deg, var(--night) 0%, var(--deep) 100%);
}
.method__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 5vh, 56px);
  overflow: hidden;
}
.method__head { display: grid; gap: 18px; }
.method__viewport { position: relative; }
.method__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  transform: translateX(var(--tx, 0px));
  will-change: transform;
}
.step {
  position: relative;
  width: clamp(270px, 28vw, 380px);
  min-height: 300px;
  padding: 30px 28px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(207,230,246,.07), rgba(207,230,246,.015));
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  align-content: start;
  gap: 14px;
  transition: box-shadow .5s, background-color .5s, transform .6s var(--ease-out);
}
.step.is-active {
  box-shadow: inset 0 0 0 1px var(--logo-3), 0 30px 60px -30px rgb(59 158 214 / .45);
  transform: translateY(-6px);
}
.step__n {
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 850;
  font-variation-settings: "wdth" var(--wide);
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.step.is-active .step__n { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.step h3 { font-size: 1.45rem; font-weight: 750; font-variation-settings: "wdth" var(--semi); }
.step p { color: var(--soft); }

.method__rail {
  margin: 34px auto 0;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.method__rail span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--logo-2), var(--logo-3), var(--amber));
  transform-origin: left;
  transform: scaleX(var(--mp, 0));
}

/* ==========================================================================
   Zone ATEX
   ========================================================================== */

.zones { padding: clamp(90px, 12vw, 150px) 0; background: var(--deep); }
.zones__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.zones__visual { display: grid; gap: 22px; justify-items: start; }

.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(207,230,246,.06);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg__btn {
  position: relative; z-index: 1;
  padding: 9px 18px;
  border: 0; border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 600; font-size: .92rem;
  cursor: pointer;
  transition: color .3s;
}
.seg__btn[aria-pressed="true"] { color: var(--amber-ink); }
.seg__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: var(--w, 50%);
  border-radius: 999px;
  background: var(--amber);
  transform: translateX(var(--x, 0));
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}

.zmap { width: 100%; height: auto; overflow: visible; }
.zmap .ground { stroke: var(--line-strong); stroke-width: 2; }
.tank rect, .tank line { fill: none; stroke: var(--logo-2); stroke-width: 2.5; }
.tank rect:nth-child(2) { fill: var(--deep); }
.zone { cursor: pointer; outline: none; }
.zone__shape { transition: fill .4s, stroke .4s, opacity .4s; stroke-width: 2; stroke-dasharray: 6 6; }
.zone[data-zone="2"] .zone__shape { fill: rgb(245 183 46 / .07); stroke: rgb(245 183 46 / .35); }
.zone[data-zone="1"] .zone__shape { fill: rgb(245 183 46 / .18); stroke: rgb(245 183 46 / .6); }
.zone[data-zone="0"] .zone__shape { fill: url(#hatch); stroke: rgb(245 183 46 / .8); }
.zone__label {
  font: 800 22px var(--font);
  font-variation-settings: "wdth" var(--wide);
  fill: var(--amber);
  text-anchor: middle;
  pointer-events: none;
  transition: transform .4s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.zone:hover .zone__shape,
.zone:focus-visible .zone__shape { stroke-dasharray: none; }
.zone.is-active .zone__shape { stroke: var(--amber); stroke-width: 3; stroke-dasharray: none; }
.zone[data-zone="2"].is-active .zone__shape { fill: rgb(245 183 46 / .16); }
.zone[data-zone="1"].is-active .zone__shape { fill: rgb(245 183 46 / .34); }
.zone.is-active .zone__label { transform: scale(1.35); }
.zone[data-zone="0"].is-active .zone__shape { animation: hatch-pulse 1.8s ease-in-out infinite; }
@keyframes hatch-pulse { 50% { opacity: .65; } }

.zinfo {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(207,230,246,.07), rgba(207,230,246,.02));
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 14px;
}
.zinfo__kicker { color: var(--logo-2); font-weight: 600; font-size: .95rem; }
.zinfo__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 850;
  font-variation-settings: "wdth" var(--wide);
}
.zinfo__text { color: var(--soft); min-height: 4.8em; }
.zinfo__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.zinfo__facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.zinfo__facts dt { font-size: .85rem; color: var(--muted); }
.zinfo__facts dd { font-size: 1.25rem; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
.zinfo__note { font-size: .92rem; color: var(--muted); }
.zinfo__note:empty { display: none; }
.zinfo.is-swap > * { animation: fade-up .5s var(--ease-out) both; }
.zinfo.is-swap > :nth-child(2) { animation-delay: .04s; }
.zinfo.is-swap > :nth-child(3) { animation-delay: .08s; }
.zinfo.is-swap > :nth-child(4) { animation-delay: .12s; }

.decoder {
  margin-top: clamp(70px, 9vw, 120px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.decoder__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; font-variation-settings: "wdth" var(--semi); }
.decoder__lead { color: var(--soft); max-width: 60ch; }
.decoder__code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.tok {
  min-width: 64px;
  height: 64px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: rgba(207,230,246,.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--logo-1);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  font-variation-settings: "wdth" var(--wide);
  cursor: pointer;
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .3s, color .3s;
}
.tok--hex { padding: 0 14px; display: grid; place-items: center; }
.tok--hex .ex { width: 34px; }
.tok:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--logo-2); }
.tok[aria-selected="true"] { background: var(--amber); color: var(--amber-ink); box-shadow: 0 14px 30px -14px rgba(245,183,46,.8); transform: translateY(-4px); }
.tok--hex[aria-selected="true"] .ex path { fill: var(--amber-ink); }
.tok--hex[aria-selected="true"] .ex text { fill: var(--amber); }
.decoder__out {
  min-height: 3.4em;
  max-width: 64ch;
  font-size: 1.1rem;
  color: var(--text);
}
.decoder__out strong { color: var(--amber); font-weight: 700; }
.decoder__out.is-swap { animation: fade-up .45s var(--ease-out) both; }

/* ==========================================================================
   Settori
   ========================================================================== */

.sectors { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.sectors__list { border-top: 1px solid var(--line); }
.sector {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.sector h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  font-weight: 800;
  font-variation-settings: "wdth" var(--wide);
  color: var(--muted);
  transition: color .35s, transform .6s var(--ease-out);
}
.sector p { color: var(--muted); max-width: 44ch; transition: color .35s; }
.sector:hover h3 { color: var(--text); transform: translateX(14px); }
.sector:hover p { color: var(--soft); }
.sector__thumb { display: none; }

/* immagine che segue il cursore */
.sectors__float {
  position: fixed;
  left: 0; top: 0;
  z-index: 5;
  width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(.6) rotate(-6deg);
  transition: opacity .35s, transform .5s var(--ease-out);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.sectors__float.is-on { opacity: 1; transform: translate(var(--fx, 0), var(--fy, 0)) scale(1) rotate(var(--fr, 0deg)); }
.sectors__float img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Domande frequenti
   ========================================================================== */

.faq { padding: clamp(90px, 12vw, 150px) 0; background: var(--night); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__head { position: sticky; top: 110px; display: grid; gap: 20px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  transition: color .25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--logo-1); }
.qa__icon {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .3s, transform .5s var(--ease-out);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--amber); color: var(--amber-ink); transform: rotate(180deg); box-shadow: none; }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.qa__body > div { overflow: hidden; }
.qa__body p { padding: 0 54px 26px 0; color: var(--soft); }
.qa.is-open .qa__body { grid-template-rows: 1fr; }

/* ==========================================================================
   Certificazioni
   ========================================================================== */

.certs {
  position: relative;
  padding: clamp(110px, 14vw, 180px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.certs__media { position: absolute; inset: 0; z-index: -1; }
.certs__media img {
  width: 100%; height: 120%;
  object-fit: cover;
  transform: translateY(var(--py, 0));
}
.certs__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,17,31,.94) 0%, rgba(7,17,31,.7) 50%, rgba(7,17,31,.35) 100%),
    linear-gradient(0deg, var(--deep) 0%, transparent 35%);
}
.certs__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
.certs__big {
  font-size: clamp(6rem, 17vw, 15rem);
  line-height: .8;
  font-weight: 900;
  font-variation-settings: "wdth" var(--wide);
  letter-spacing: -0.05em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.certs__copy { display: grid; gap: 20px; justify-items: start; max-width: 40ch; }
.certs__copy p { color: var(--soft); }
.certs .h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }

.ticker {
  margin-top: clamp(80px, 10vw, 130px);
  padding: 22px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: rgba(7,17,31,.6);
  backdrop-filter: blur(6px);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  font-variation-settings: "wdth" var(--wide);
  color: var(--soft);
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 12px; height: 13px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--amber);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Contatti
   ========================================================================== */

.contact { padding: clamp(90px, 12vw, 150px) 0; background: var(--deep); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__info { display: grid; gap: 24px; }

.info { display: grid; gap: 22px; margin-top: 16px; }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.info dt { color: var(--muted); }
.info dd { line-height: 1.7; }

.map {
  margin-top: 10px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.map iframe {
  width: 100%; height: 100%; border: 0;
  filter: invert(.92) hue-rotate(185deg) saturate(.6) brightness(.95);
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(207,230,246,.07), rgba(207,230,246,.02));
  box-shadow: inset 0 0 0 1px var(--line);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* etichette che salgono quando il campo è attivo */
.field { position: relative; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 26px 16px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(7,17,31,.55);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  transition: box-shadow .3s, background-color .3s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { cursor: pointer; padding-right: 44px; }
.field--select::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-30%) rotate(45deg);
  pointer-events: none;
}
.field label {
  position: absolute; left: 16px; top: 18px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--logo-3); background: rgba(7,17,31,.8); }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-10px) scale(.78); color: var(--logo-2); }

.field__err {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  font-size: .85rem;
  color: #ffb4a2;
  transition: max-height .35s var(--ease-out), margin-top .35s;
}
.field.is-invalid input,
.field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #ff8a70; }
.field.is-invalid .field__err,
.field__err--check.is-shown { max-height: 3em; margin-top: 6px; }
.field.is-invalid { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color .25s, box-shadow .25s;
}
.check__box svg { width: 14px; fill: none; stroke: var(--amber-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s .05s var(--ease-out); }
.check input:checked + .check__box { background: var(--amber); box-shadow: none; }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--amber); outline-offset: 3px; }
.field__err--check { margin-top: -10px; }

.btn__plane { position: relative; z-index: 1; width: 18px; fill: currentColor; transition: transform .5s var(--ease-out); }
.btn:hover .btn__plane { transform: translate(3px, -3px) rotate(8deg); }
.form.is-sent .btn__plane { animation: fly .9s var(--ease-io) both; }
@keyframes fly { 60% { transform: translate(40px, -30px) rotate(20deg); opacity: 0; } 61% { transform: translate(-40px, 30px); } 100% { transform: none; opacity: 1; } }

.form__done { min-height: 1.5em; color: var(--logo-2); font-size: .95rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { padding: 72px 0 30px; border-top: 1px solid var(--line); background: var(--deep); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer__claim { margin-top: 18px; color: var(--muted); }
.footer__nav { display: grid; gap: 8px; align-content: start; }
.footer__nav a { color: var(--soft); text-decoration: none; width: fit-content; transition: color .2s, transform .35s var(--ease-out); }
.footer__nav a:hover { color: var(--text); transform: translateX(4px); }
.footer__legal { display: grid; gap: 14px; color: var(--muted); font-size: .92rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.footer__top { margin-left: auto; color: var(--soft); text-decoration: none; }
.footer__top:hover { color: var(--amber); }

/* ==========================================================================
   Comparse allo scroll (varie, non tutte uguali)
   ========================================================================== */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 -10% 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "stage stage"
      "copy plate"
      "copy nav";
    grid-template-rows: auto 1fr auto;
    row-gap: 24px;
  }
  .stage { height: min(48vh, 460px); }
  .plate { align-self: start; }
  .nav__links, .nav__actions .btn { display: none; }
  .burger { display: block; }
}

@media (max-width: 900px) {
  .services__body,
  .about__grid,
  .contact__grid,
  .zones__body,
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .about__logo { position: relative; top: 0; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
  .faq__head { position: static; }

  /* "Come lavoriamo" diventa un elenco verticale */
  .method { height: auto; padding: clamp(90px, 12vw, 150px) 0; }
  .method__sticky { position: static; height: auto; overflow: visible; }
  .method__track { width: auto; flex-direction: column; padding-inline: var(--gutter); transform: none; }
  .step { width: 100%; min-height: 0; }
  .method__rail { display: none; }

  .sector { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sector__thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); margin-bottom: 8px; }
  .sector h3 { color: var(--text); }
  .sector p { color: var(--soft); }
  .sectors__float { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .vision__grid { grid-template-columns: minmax(0, 1fr); }
  .vision__item + .vision__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .certs__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .row { grid-template-columns: 70px minmax(0, 1fr) 40px; }
  .row__marks { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 92px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "nav" "copy" "plate";
    grid-template-rows: auto;
  }
  .stage { height: 46vh; min-height: 300px; }
  .hero__nav { justify-content: center; margin-top: -6px; }
  .hero__title { font-size: clamp(3rem, 17vw, 4.6rem); white-space: normal; }
  .hero__desc { min-height: 0; }
  .hex { --size: 42px; }
  .hero__scroll { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .info div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__top { margin-left: 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat { padding-right: 12px; }
  .zinfo__facts { grid-template-columns: minmax(0, 1fr); }
  .tok { min-width: 52px; height: 54px; padding: 0 12px; }
  .qa__body p { padding-right: 0; }
  .brandhero__logo { width: min(260px, 70vw); }
}

/* ==========================================================================
   Movimento ridotto: niente animazioni decorative
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal], .js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; }
  .manifesto__text .w { color: var(--text); }
  .intro .lg-bar, .intro .lg-ch { transform: none; opacity: 1; }
  .brandhero__lines span { animation: none; }
}
