/* ==========================================================
   SOTECH — foglio di stile
   Direzione: tavola tecnica blueprint + acciaio lavorato.
   ========================================================== */

@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0A1B2E;          /* blu tavola tecnica */
  --ink-2: #0F2640;        /* superfici rialzate */
  --ink-3: #16324F;
  --grid: rgba(132, 196, 255, .09);
  --rule: rgba(160, 205, 245, .18);
  --steel: #D7E0E9;        /* testo */
  --steel-dim: #93A7BC;
  --cyan: #6FE3FF;         /* linea di progetto, interazioni */
  --amber: #FFB23F;        /* metallo caldo: solo Ingranaggi Express e CTA calde */
  --paper: #EDF1F5;        /* sezioni chiare (laboratorio metrologico) */
  --paper-ink: #0C2036;

  --f-display: "Chakra Petch", "Segoe UI", sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-dro: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --chamfer: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--steel);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--cyan); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: #fff; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.h-display { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; }
.h-section { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; max-width: 22ch; }
.h-page { font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.02em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: #fff; }
strong { color: #fff; font-weight: 700; }

.link {
  font-family: var(--f-display); font-weight: 600; text-decoration: none; color: var(--cyan);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: #fff; }

/* ---------- bottoni (spigoli smussati come un pezzo lavorato) ---------- */
.btn {
  --bg: var(--cyan); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: 600 1rem/1 var(--f-display); letter-spacing: .01em; text-decoration: none;
  color: var(--fg); background: var(--bg);
  padding: 1.05em 1.6em; border: 0; cursor: pointer;
  clip-path: var(--chamfer);
  transition: background .25s, color .25s, transform .3s var(--ease);
  will-change: transform;
}
.btn:hover { background: #fff; }
.btn-ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px var(--rule); clip-path: none; }
.btn-ghost:hover { background: rgba(111, 227, 255, .1); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn-hot { --bg: var(--amber); }
.btn-small { padding: .8em 1.2em; font-size: .92rem; }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 28px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.no-intro .intro, html:not(.js) .intro { display: none; }
.intro.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-gear { width: min(46vw, 280px); overflow: visible; }
.intro-path { fill: none; stroke: var(--cyan); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(111, 227, 255, .6)); }
.intro-hole { opacity: 0; transition: opacity .4s; }
.intro.is-hole .intro-hole { opacity: 1; }
.intro-tool { fill: #fff; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px var(--amber)); }
.intro-dro { display: flex; gap: 22px; font: 500 .85rem var(--f-dro); color: var(--steel-dim); }
.intro-dro b { color: var(--cyan); font-weight: 500; display: inline-block; min-width: 8ch; text-align: right; }
.intro-word {
  font: 700 clamp(1.4rem, 3vw, 2rem)/1 var(--f-display); letter-spacing: .5em; color: #fff;
  margin: 0; opacity: 0; transform: translateY(8px); transition: .6s var(--ease); padding-left: .5em;
}
.intro.is-word .intro-word { opacity: 1; transform: none; }

/* ---------- cursore ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js body.has-cursor { cursor: none; }
  .js body.has-cursor a, .js body.has-cursor button, .js body.has-cursor input, .js body.has-cursor textarea, .js body.has-cursor select, .js body.has-cursor label { cursor: none; }
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 300; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
  .cursor-ring {
    width: 34px; height: 34px; border: 1px solid rgba(111, 227, 255, .55);
    transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s;
  }
  /* mirino: due tacche, come il riferimento di un tastatore */
  .cursor-ring::before, .cursor-ring::after { content: ""; position: absolute; background: rgba(111, 227, 255, .55); }
  .cursor-ring::before { left: 50%; top: -6px; width: 1px; height: calc(100% + 12px); translate: -50% 0; opacity: .5; }
  .cursor-ring::after { top: 50%; left: -6px; height: 1px; width: calc(100% + 12px); translate: 0 -50%; opacity: .5; }
  .cursor.is-hover .cursor-ring { width: 58px; height: 58px; border-color: var(--cyan); background: rgba(111, 227, 255, .08); }
  .cursor.is-down .cursor-ring { width: 24px; height: 24px; }
}

.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; background: var(--cyan); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  transition: background .35s, padding .35s, box-shadow .35s;
}
.site-header.is-scrolled { background: rgba(10, 27, 46, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; box-shadow: 0 1px 0 var(--rule); }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
/* il logo originale viene reso in bianco sul fondo scuro (togli il filtro se il logo ha fondo bianco) */
.brand-img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.brand-word { display: none; font: 700 1.5rem/1 var(--f-display); letter-spacing: .28em; color: #fff; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; text-decoration: none; font: 500 .98rem/1 var(--f-display);
  color: var(--steel); position: relative;
}
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: .35s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; rotate: 45deg; }
.burger[aria-expanded="true"] span:last-child { top: 21px; rotate: -45deg; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--rule); }
.mobile-menu li a { display: block; padding: 16px 0; font: 600 clamp(1.6rem, 7vw, 2.4rem)/1.1 var(--f-display); text-decoration: none; color: #fff; }
.mobile-menu li a[aria-current] { color: var(--cyan); }
.mobile-menu-contact a { color: var(--cyan); text-decoration: none; font-family: var(--f-display); font-size: 1.1rem; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta { display: none; }
}

/* ---------- hero home ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate; padding: 130px 0 120px;
}
.hero-canvas, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback { display: none; }
.no-webgl .hero-fallback { display: block; left: auto; width: min(70vw, 820px); right: -12vw; opacity: .5; }
.hero-fallback path { fill: none; stroke: var(--cyan); stroke-width: .6; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 30%, transparent 75%);
}
.hero::after { /* velo per leggibilità del testo a sinistra */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 8%, rgba(10, 27, 46, .7) 40%, transparent 70%);
}
.hero-title { font-size: clamp(2.7rem, 7.4vw, 7rem); line-height: .94; font-weight: 600; letter-spacing: -.025em; margin: 0; max-width: 12ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line:last-child { color: var(--cyan); }
.hero-title .ch { display: inline-block; }
.js .hero-title .ch { opacity: 0; transform: translateY(105%); }
.hero-title.is-in .ch { opacity: 1; transform: none; transition: transform .9s var(--ease), opacity .4s; transition-delay: calc(var(--i) * 22ms); }
.hero-quote { font-family: var(--f-display); color: var(--steel-dim); margin: 1rem 0 2rem; }
.hero-quote::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--steel-dim); vertical-align: middle; margin-right: 12px; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 46ch; color: var(--steel); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.js .hero-quote, .js .hero-lead, .js .hero-actions { opacity: 0; transform: translateY(14px); }
.hero.is-in .hero-quote, .hero.is-in .hero-lead, .hero.is-in .hero-actions { opacity: 1; transform: none; transition: 1s var(--ease); }
.hero.is-in .hero-lead { transition-delay: .55s; } .hero.is-in .hero-quote { transition-delay: .45s; } .hero.is-in .hero-actions { transition-delay: .7s; }

/* visualizzatore quote (DRO) come su un centro di lavoro */
.dro {
  position: absolute; right: var(--gutter); bottom: 40px;
  font: 500 .9rem/1 var(--f-dro); color: var(--steel-dim);
  padding: 14px 18px; background: rgba(10, 27, 46, .6); backdrop-filter: blur(6px);
  border: 1px solid var(--rule); clip-path: var(--chamfer);
}
.dro-row { display: flex; gap: 14px; align-items: baseline; padding: 4px 0; }
.dro-row span { color: var(--steel-dim); width: 1ch; }
.dro-row b { color: var(--cyan); font-weight: 500; min-width: 9ch; text-align: right; font-variant-numeric: tabular-nums; }
.dro-row i { font-style: normal; font-size: .75rem; }
.dro-s b { color: var(--amber); min-width: 4ch; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 36px; border: 1.5px solid var(--rule); border-radius: 12px; translate: -50% 0; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; background: var(--cyan); translate: -50% 0; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
  .dro { display: none; }
  .hero { align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, var(--ink) 30%, rgba(10, 27, 46, .55) 70%, rgba(10, 27, 46, .2)); }
  .scroll-hint { display: none; }
}

/* ---------- sezioni ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about .h-display { position: sticky; top: 120px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about .h-display { position: static; } }

/* tre capacità: righe asimmetriche, foto in duotono blueprint che si "accende" al passaggio */
.cap-list { display: grid; gap: clamp(40px, 6vw, 90px); margin-top: clamp(40px, 6vw, 80px); }
.cap { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; text-decoration: none; }
.cap:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.cap:nth-child(even) .cap-media { order: 2; }
.cap-media {
  margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.cap-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); transform: scale(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.cap-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(111, 227, 255, .32), rgba(10, 27, 46, .55)); mix-blend-mode: multiply; transition: opacity .8s; }
.cap-media::before { /* linea di scansione */
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; z-index: 2;
  background: var(--cyan); box-shadow: 0 0 16px var(--cyan); opacity: 0;
}
.cap:hover .cap-media img, .cap:focus-visible .cap-media img { filter: none; transform: scale(1); }
.cap:hover .cap-media::after, .cap:focus-visible .cap-media::after { opacity: 0; }
.cap:hover .cap-media::before { animation: scan 1s var(--ease); }
@keyframes scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.cap-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.12; transition: color .3s; }
.cap:hover .cap-body h3 { color: var(--cyan); }
.cap-body p { color: var(--steel-dim); }
@media (max-width: 760px) { .cap, .cap:nth-child(even) { grid-template-columns: 1fr; } .cap:nth-child(even) .cap-media { order: 0; } }

/* scheda tecnica in stile cartiglio */
.spec { background: var(--ink-2); }
.spec-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.spec-intro p { color: var(--steel-dim); }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); }
.spec-table th, .spec-table td { padding: 20px 24px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.spec-table th { font-weight: 500; color: var(--steel-dim); width: 46%; border-right: 1px solid var(--rule); }
.spec-table td { font: 600 clamp(1.15rem, 2vw, 1.6rem)/1.2 var(--f-display); color: #fff; }
.spec-table tr { transition: background .3s; }
.spec-table tr:hover { background: rgba(111, 227, 255, .05); }
.spec-table tr:hover td { color: var(--cyan); }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } .spec-table th, .spec-table td { display: block; width: 100%; border-right: 0; } .spec-table th { border-bottom: 0; padding-bottom: 0; } }

/* settori */
.sectors { border-block: 1px solid var(--rule); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 600 clamp(1.4rem, 3vw, 2.4rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--steel-dim); white-space: nowrap; padding: 0 .9em; position: relative; transition: color .3s; }
.marquee-track span:hover { color: #fff; -webkit-text-stroke-color: #fff; }
.marquee-track span::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border: 1.5px solid var(--cyan); rotate: 45deg; translate: 0 -50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* teaser ingranaggi */
.express-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.express-gear { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; }
.express-gear svg { width: 100%; height: 100%; overflow: visible; }
.spin-gear { fill: none; stroke: var(--amber); stroke-width: 1.2; animation: spin 24s linear infinite; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 10px rgba(255, 178, 63, .35)); }
@keyframes spin { to { transform: rotate(360deg); } }
.express-24 { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(4rem, 10vw, 7.5rem)/1 var(--f-display); color: #fff; letter-spacing: -.04em; }
.express-24 small { font-size: .32em; color: var(--amber); letter-spacing: 0; position: absolute; top: 61%; left: 68%; }
@media (max-width: 760px) { .express-grid { grid-template-columns: 1fr; } .express-gear { max-width: 280px; } }

/* CTA finale */
.cta-band { padding: clamp(70px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--ink), var(--ink-2)); border-top: 1px solid var(--rule); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.cta-inner { position: relative; }
.cta-title { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.02; max-width: 18ch; }
.cta-band p { color: var(--steel-dim); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* footer */
.site-footer { background: #071526; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-word { font: 700 1.8rem/1 var(--f-display); letter-spacing: .28em; color: #fff; margin-bottom: .6em; }
.footer-claim { color: var(--steel-dim); max-width: 28ch; }
.site-footer h3 { font-size: 1rem; color: var(--steel-dim); font-weight: 500; margin-bottom: 1em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--steel-dim); font-size: .85rem; }
.footer-legal p { margin: 0; max-width: none; }
.footer-legal a { color: var(--steel); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   PAGINE INTERNE
   ========================================================== */
.page-hero { position: relative; padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 100px); overflow: hidden; border-bottom: 1px solid var(--rule); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 90% at 85% 40%, #000 20%, transparent 70%); }
.page-hero .lead { max-width: 52ch; color: var(--steel); margin-top: 1.4rem; }
.page-hero-gear { position: absolute; right: -8vw; top: 50%; width: min(52vw, 620px); aspect-ratio: 1; translate: 0 -50%; z-index: -1; opacity: .55; pointer-events: none; }
.page-hero-gear svg { width: 100%; height: 100%; overflow: visible; }
.page-hero-gear .spin-gear { stroke: var(--cyan); stroke-width: .5; animation-duration: 60s; filter: none; }
.page-hero-gear .dim { stroke: var(--steel-dim); stroke-width: .35; fill: none; stroke-dasharray: 2 3; }
.page-hero-gear text { fill: var(--steel-dim); font: 500 5px var(--f-dro); }
.h-page .line { display: block; overflow: hidden; }
.h-page .ch { display: inline-block; }
.js .h-page .ch { transform: translateY(105%); }
.h-page.is-in .ch { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 20ms); }
@media (max-width: 760px) { .page-hero-gear { opacity: .25; width: 90vw; right: -40vw; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { margin: 0; clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px); background: var(--ink-3); aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: rgba(10, 27, 46, .8); font-size: .85rem; color: var(--steel-dim); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* timeline (sequenza reale: la storia) */
.timeline { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); counter-reset: t; }
.timeline li { padding: 28px 24px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--ink); border: 1.5px solid var(--cyan); rotate: 45deg; }
.timeline h3 { font-size: 1.25rem; margin-bottom: .4em; }
.timeline p { color: var(--steel-dim); font-size: .98rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule); padding-left: 24px; } .timeline li::before { left: -30px; top: 32px; } }

/* mercati */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.market { background: var(--ink); padding: 30px 24px 34px; position: relative; overflow: hidden; transition: background .35s; }
.market svg { width: 44px; height: 44px; stroke: var(--cyan); fill: none; stroke-width: 1.4; margin-bottom: 26px; transition: transform .6s var(--ease); }
.market h3 { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.market:hover { background: var(--ink-2); }
.market:hover svg { transform: rotate(-12deg) scale(1.1); }

.statement { font: 600 clamp(1.8rem, 4.4vw, 3.6rem)/1.08 var(--f-display); color: #fff; max-width: 22ch; margin: 0; letter-spacing: -.015em; }
.statement-wrap { text-align: left; }
.statement-wrap p:not(.statement) { color: var(--steel-dim); margin-top: 1.4rem; }

/* servizi: fasi con indicatore fisso */
.phases { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 96px); }
.phase-rail { position: sticky; top: 120px; align-self: start; }
.phase-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.phase-rail a { display: flex; gap: 14px; padding: 10px 0 10px 20px; text-decoration: none; color: var(--steel-dim); font: 500 1rem/1.2 var(--f-display); position: relative; transition: color .3s; }
.phase-rail a span { font-family: var(--f-dro); font-size: .8rem; padding-top: .15em; }
.phase-rail a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--cyan); transform: scaleY(0); transition: transform .35s var(--ease); }
.phase-rail a.is-active { color: #fff; }
.phase-rail a.is-active::before { transform: scaleY(1); }
.phase { padding: 0 0 clamp(56px, 7vw, 96px); scroll-margin-top: 120px; }
.phase:last-child { padding-bottom: 0; }
.phase h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); display: flex; gap: 16px; align-items: baseline; }
.phase h2 span { font: 500 .9rem var(--f-dro); color: var(--cyan); }
.phase p { color: var(--steel); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.chips li { border: 1px solid var(--rule); padding: 6px 12px; font-size: .9rem; color: var(--steel); }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } .phase-rail { display: none; } }

/* inviluppo di lavoro in 3D */
.envelope { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.env-stage { perspective: 1100px; aspect-ratio: 1.15; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; }
.env-stage:active { cursor: grabbing; }
.env-box { --w: 300px; --h: 160px; --d: 160px; width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-36deg); }
.env-face { position: absolute; border: 1px solid var(--cyan); background: rgba(111, 227, 255, .045); background-image: linear-gradient(rgba(111, 227, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 227, 255, .12) 1px, transparent 1px); background-size: 20px 20px; }
.env-front, .env-back { width: var(--w); height: var(--h); }
.env-left, .env-right { width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2); }
.env-top, .env-bottom { width: var(--w); height: var(--d); top: calc(50% - var(--d) / 2); }
.env-front { transform: translateZ(calc(var(--d) / 2)); }
.env-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.env-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.env-left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.env-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.env-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background-color: rgba(111, 227, 255, .1); }
.env-label { position: absolute; font: 500 13px var(--f-dro); color: var(--cyan); white-space: nowrap; background: var(--ink); padding: 2px 6px; }
.env-x { left: 50%; bottom: -30px; translate: -50% 0; transform: translateZ(calc(var(--d) / 2)); }
.env-y { right: calc(-1 * var(--d) / 2 - 10px); bottom: -24px; transform: translateX(50%) rotateY(90deg); }
.env-z { left: -64px; top: 50%; translate: 0 -50%; transform: translateZ(calc(var(--d) / 2)); }
.env-hint { color: var(--steel-dim); font-size: .9rem; }
@media (max-width: 860px) { .envelope { grid-template-columns: 1fr; } .env-box { --w: 220px; --h: 118px; --d: 118px; } }

.materials { background: var(--ink-2); }

/* ---------- qualità: sezione chiara, laboratorio di metrologia ---------- */
.lab { background: var(--paper); color: var(--paper-ink); }
.lab h2, .lab h3, .lab strong { color: var(--paper-ink); }
.lab p { color: #34485E; }
.chain { position: relative; margin: clamp(40px, 6vw, 72px) 0 0; }
.chain-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: c; position: relative; }
.chain::before, .chain-fill { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: #C6D2DE; }
.chain-fill { background: var(--paper-ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.chain li { counter-increment: c; padding-right: 16px; position: relative; }
.chain li::before { content: counter(c, decimal-leading-zero); display: grid; place-items: center; width: 48px; height: 48px; background: var(--paper); border: 2px solid var(--paper-ink); font: 600 1rem var(--f-display); color: var(--paper-ink); position: relative; z-index: 1; margin-bottom: 18px; clip-path: var(--chamfer); transition: background .3s, color .3s; }
.chain li.is-on::before { background: var(--paper-ink); color: var(--paper); }
.chain li h3 { font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 900px) { .chain-list { grid-template-columns: 1fr 1fr 1fr; row-gap: 32px; } .chain::before, .chain-fill { display: none; } }
@media (max-width: 520px) { .chain-list { grid-template-columns: 1fr 1fr; } }

.instruments { margin-top: 40px; border-top: 2px solid var(--paper-ink); }
.instrument { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid #C6D2DE; align-items: baseline; transition: padding .3s var(--ease), background .3s; }
.instrument:hover { padding-inline: 12px; background: #E1E8EF; }
.instrument span { font-weight: 600; color: var(--paper-ink); }
.instrument b { font: 500 .92rem var(--f-dro); color: #2C5A86; white-space: nowrap; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.doc { display: flex; gap: 18px; align-items: center; padding: 22px; text-decoration: none; border: 1px solid var(--rule); background: var(--ink-2); transition: border-color .3s, transform .4s var(--ease); clip-path: var(--chamfer); }
.doc:hover { border-color: var(--cyan); transform: translateY(-3px); }
.doc svg { flex: none; width: 36px; height: 36px; stroke: var(--cyan); fill: none; stroke-width: 1.4; }
.doc strong { display: block; font-family: var(--f-display); font-weight: 600; }
.doc small { color: var(--steel-dim); }
.lab .doc { background: #fff; border-color: #C6D2DE; }
.lab .doc strong { color: var(--paper-ink); }
.lab .doc small { color: #4E6378; }
.lab .doc svg { stroke: #2C5A86; }
.lab .doc:hover { border-color: var(--paper-ink); }

/* ---------- ingranaggi express ---------- */
.express-page .page-hero .h-page .line:last-child { color: var(--amber); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.benefit { background: var(--ink); padding: 32px 28px; }
.benefit svg { width: 40px; height: 40px; stroke: var(--amber); fill: none; stroke-width: 1.4; margin-bottom: 22px; }
.benefit h3 { font-size: 1.3rem; }
.benefit p { color: var(--steel-dim); margin: 0; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

.configurator { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--ink-2); border: 1px solid var(--rule); padding: clamp(24px, 4vw, 56px); clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px); }
.cfg-view { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.cfg-view svg { width: 100%; height: 100%; overflow: visible; }
#cfgGear { fill: rgba(255, 178, 63, .07); stroke: var(--amber); stroke-width: .9; transform-box: fill-box; transform-origin: center; }
.cfg-view .dim { stroke: var(--steel-dim); stroke-width: .5; fill: none; }
.cfg-view text { fill: var(--steel); font: 500 7px var(--f-dro); }
.cfg-controls label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-weight: 600; color: #fff; margin-bottom: 10px; }
.cfg-controls output { font: 500 1.05rem var(--f-dro); color: var(--amber); }
.cfg-field { margin-bottom: 28px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--amber) var(--fill, 50%), var(--rule) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--ink); border: 2px solid var(--amber); rotate: 45deg; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 2px solid var(--amber); border-radius: 0; rotate: 45deg; }
.cfg-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 8px 0 24px; }
.cfg-readout div { background: var(--ink); padding: 14px 16px; }
.cfg-readout small { display: block; color: var(--steel-dim); font-size: .82rem; }
.cfg-readout b { font: 500 1.1rem var(--f-dro); color: #fff; }
.cfg-note { font-size: .88rem; color: var(--steel-dim); }
@media (max-width: 860px) { .configurator { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font: 500 .95rem var(--f-display); color: var(--steel); }
.field label i { font-style: normal; color: var(--steel-dim); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; color: #fff; background: rgba(255, 255, 255, .03);
  border: 1px solid var(--rule); border-bottom-color: var(--steel-dim); padding: 14px 16px; border-radius: 0;
  transition: border-color .25s, background .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(111, 227, 255, .05); }
.field input:invalid:not(:placeholder-shown) { border-bottom-color: #FF7A7A; }
.file-drop { position: relative; border: 1.5px dashed var(--rule); padding: 22px; text-align: center; color: var(--steel-dim); transition: border-color .25s, background .25s; }
.file-drop.is-over, .file-drop:focus-within { border-color: var(--cyan); background: rgba(111, 227, 255, .05); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop strong { color: var(--cyan); }
.file-name { display: block; margin-top: 6px; color: #fff; font-size: .9rem; }
.consent { grid-column: 1 / -1; font-size: .9rem; color: var(--steel-dim); background: rgba(255, 255, 255, .02); border: 1px solid var(--rule); padding: 18px; }
.consent p { max-width: none; margin-bottom: .8em; }
.consent label { display: flex; gap: 10px; align-items: flex-start; color: var(--steel); margin-top: 6px; }
.consent input { margin-top: 4px; accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 18px; display: none; }
.form-status.is-ok { display: block; background: rgba(111, 227, 255, .1); border-left: 3px solid var(--cyan); color: #fff; }
.form-status.is-err { display: block; background: rgba(255, 122, 122, .1); border-left: 3px solid #FF7A7A; color: #fff; }
.form-actions { grid-column: 1 / -1; }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-card { border: 1px solid var(--rule); padding: 28px; background: var(--ink-2); }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: .85rem; color: var(--steel-dim); }
.contact-card dd { margin: 0; color: #fff; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.contact-card a { text-decoration: none; color: var(--cyan); }
.big-contact { display: block; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--f-display); text-decoration: none; color: #fff; margin-bottom: 8px; transition: color .3s; }
.big-contact:hover { color: var(--cyan); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.map { position: relative; aspect-ratio: 21 / 8; min-height: 320px; background: var(--ink-2); border-block: 1px solid var(--rule); overflow: hidden; display: grid; place-items: center; }
.map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.map-pin { position: relative; text-align: center; }
.map-pin::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 18px; background: var(--cyan); rotate: 45deg; box-shadow: 0 0 0 10px rgba(111, 227, 255, .15), 0 0 0 22px rgba(111, 227, 255, .07); animation: ping 2.4s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 16px rgba(111, 227, 255, .08), 0 0 0 34px rgba(111, 227, 255, 0); } }
.map-pin p { margin: 0 auto 16px; color: var(--steel-dim); font-size: .9rem; max-width: 40ch; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* privacy / testo lungo */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--cyan); }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-title .ch, .js .h-page .ch, .js .hero-quote, .js .hero-lead, .js .hero-actions { opacity: 1 !important; transform: none !important; }
}

/* rifiniture */
.form-grid { margin-top: 32px; }
.express-page .page-hero-gear .spin-gear { stroke: var(--amber); }
.band-2 { background: var(--ink-2); }
