/* EVO Electric Systems — design system
   Colori e misure in :root. Nessuna dipendenza esterna oltre ai Google Fonts. */

:root {
  --ink: #0B0C0E;
  --ink-2: #131518;
  --ink-3: #1D1F23;
  --graphite: #1D1D1F;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --muted-dark: #A1A6AD;
  --line: #E5E5EA;
  --line-dark: rgba(255, 255, 255, .09);
  --paper: #FFFFFF;
  --mist: #F5F5F7;
  --mist-2: #ECECF0;
  --orange: #F47920;
  --orange-2: #FF8A3D;
  --orange-ink: #B9500A;
  --orange-soft: #FFF3EA;
  --green: #2FBF71;
  --red: #E5484D;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --brand: 'Exo 2', var(--font);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --radius-sm: 18px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -12px rgba(0,0,0,.14);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.04), 0 30px 80px -20px rgba(0,0,0,.25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 16px; background: var(--orange); color: var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
/* le animazioni d'ingresso laterali non devono creare scroll orizzontale (clip, a differenza di hidden, non rompe position: sticky) */
main { overflow-x: clip; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-sm { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-xs { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.bg-white { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink-2 { background: var(--ink-2); color: #fff; }
.center { text-align: center; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 6vw, 80px); align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.stack-sm > * + * { margin-top: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink);
}
.bg-ink .eyebrow, .bg-ink-2 .eyebrow, .on-dark .eyebrow { color: #F7934C; }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.no-line::before { display: none; }
.display { font-size: clamp(44px, 7vw, 104px); line-height: .96; letter-spacing: -.045em; }
.h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -.04em; }
.h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; }
.h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.06; letter-spacing: -.025em; }
.h4 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); }
.bg-ink .lead, .bg-ink-2 .lead, .on-dark .lead { color: var(--muted-dark); }
.body { font-size: 17px; line-height: 1.6; color: var(--muted); }
.bg-ink .body, .bg-ink-2 .body, .on-dark .body { color: var(--muted-dark); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--orange); }
.grad-text {
  background: linear-gradient(100deg, #fff 0%, #fff 40%, #FFB27A 70%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.head { max-width: 760px; }
.head.center { margin: 0 auto; }
.head > * + * { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(244, 121, 32, .7); }
.btn-primary:hover { background: var(--orange-2); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(244, 121, 32, .85); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: #C9CDD1; color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-ghost-light { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.02); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-wa:hover { border-color: #25D366; color: #25D366; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--orange-ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow, .bg-ink .link-arrow { color: #F7934C; }
.on-dark .link-arrow:hover, .bg-ink .link-arrow:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 12, 14, .94);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; color: rgba(255,255,255,.78); transition: color .2s; }
.brand:hover { color: #fff; }   /* come nel footer: al passaggio la scritta si accende di bianco (non si spegne) */
.brand img { height: 30px; width: auto; }
.brand .sep { width: 1.5px; height: 22px; background: rgba(255,255,255,.3); transition: background .2s; }
.brand:hover .sep { background: rgba(255,255,255,.6); }
.brand .word { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--brand); font-weight: 700; font-size: 10px; letter-spacing: .07em; }
.brand .word i { height: 2px; background: var(--orange); margin-top: 2px; border-radius: 1px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav > a, .nav .dd > button {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: none; border: 0; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .2s, background .2s;
}
.nav > a:hover, .nav .dd > button:hover, .nav .dd.open > button { color: #fff; background: rgba(255,255,255,.07); }
.nav .dd > button svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav .dd.open > button svg { transform: rotate(180deg); }
.dd { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(720px, 92vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: #131518; border: 1px solid var(--line-dark); border-radius: 22px; padding: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega-col .nav-h { margin: 8px 12px 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8A9098; }
.mega a { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #fff; transition: background .2s; }
.mega a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mega a .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(244,121,32,.12); color: var(--orange); flex-shrink: 0; }
.mega a .ico svg { width: 20px; height: 20px; }
.mega a b { display: block; font-size: 14px; font-weight: 600; }
.mega a small { display: block; font-size: 12px; color: #8A9098; margin-top: 2px; }
.mega .mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; padding: 14px 14px 6px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #8A9098; }
.mega .mega-foot a { display: inline-flex; padding: 0; color: #F7934C; font-weight: 600; }
.mega .mega-foot a:hover { background: none; color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Selettore della lingua (tools/i18n/lang-switch.mjs) */
.lang { position: relative; flex-shrink: 0; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; flex-shrink: 0; }
.lang summary:hover, .lang[open] summary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; padding: 6px; background: #131518; border: 1px solid var(--line-dark); border-radius: 14px; box-shadow: 0 20px 50px -14px rgba(0,0,0,.7); z-index: 110; }
.lang-menu a { display: block; padding: 11px 12px; border-radius: 9px; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; }
.lang-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-menu a[aria-current] { color: #F7934C; font-weight: 700; }
.quote-pill { position: relative; }
.quote-pill .badge {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .35s var(--ease-out);
}
.quote-pill .badge.on { transform: scale(1); }
.quote-pill .badge.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; color: #fff; border-radius: 999px; align-items: center; justify-content: center; }
.menu-btn span { position: relative; width: 20px; height: 1.6px; background: currentColor; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 20px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--ink); overflow-y: auto;
  padding: 12px var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.drawer .nav-h { margin: 26px 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8A9098; }
.drawer a.big { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font-size: 22px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.drawer a.big small { font-family: var(--mono); font-size: 11px; color: #8A9098; font-weight: 400; }
.drawer .btn-row { margin-top: 28px; }
.drawer a { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.menu-open .drawer a { opacity: 1; transform: none; }
@media (max-width: 1080px) {
  .nav, .header-actions .hide-m { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
/* Telefono: logo, lingua, preventivo e menu devono stare sempre nella barra */
@media (max-width: 480px) {
  .site-header .bar { gap: 8px; }
  .header-actions { gap: 6px; }
  .lang summary { padding: 0 9px; gap: 5px; }
  .header-actions .quote-pill { padding-left: 13px; padding-right: 13px; }
  .menu-btn { width: 40px; margin-right: -8px; }
}
@media (max-width: 389px) { .site-header .brand .sep, .site-header .brand .word { display: none; } }

/* Barra di avanzamento lettura */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 101; background: linear-gradient(90deg, var(--orange), #FFB27A); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Hero (home) ---------- */
.hero-story { position: relative; height: 380vh; background: var(--ink); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero-bg .glow.g1 { right: -20vmax; top: -25vmax; background: radial-gradient(circle, rgba(244,121,32,.35), transparent 60%); animation: drift 18s ease-in-out infinite alternate; }
.hero-bg .glow.g2 { left: -30vmax; bottom: -35vmax; background: radial-gradient(circle, rgba(70,110,255,.16), transparent 60%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-6vmax, 6vmax) scale(1.08); } }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
}
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-circuit path { fill: none; stroke: url(#circuitGrad); stroke-width: 1.2; stroke-dasharray: 6 14; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -200; } }
.hero-inner { position: relative; height: 100%; max-width: 1320px; margin: 0 auto; padding: var(--header-h) var(--gutter) 0; display: flex; flex-wrap: wrap; align-content: stretch; }
.hero-copy { position: relative; z-index: 2; flex: 1 1 440px; min-width: 0; display: grid; min-height: min(420px, 50vh); }
.hero-step { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; color: #fff; will-change: opacity, transform; }
.hero-step + .hero-step { opacity: 0; }
.hero-step .display { font-size: clamp(40px, min(5.4vw, 9.5vh), 92px); }
.hero-step .h1 { font-size: clamp(34px, min(4.4vw, 8vh), 72px); }
.hero-step .lead { font-size: clamp(16px, min(1.5vw, 2.6vh), 21px); }
.hero-step .lead { max-width: 480px; margin-top: 22px; }
.hero-step .btn-row { margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #C7CBD0; }
.hero-badges span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,191,113,.15); }
.hero-visual { position: relative; flex: 1 1 440px; min-width: 0; min-height: 260px; pointer-events: none; }
.hero-visual evo-quadro, .hero-visual .cabinet-fallback { position: absolute; inset: 0; }
.hero-visual evo-quadro { display: block; pointer-events: auto; }
.eq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: pan-y; cursor: grab; -webkit-tap-highlight-color: transparent; }
.eq-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(244,121,32,.5); border-radius: 24px; }
/* suggerimento discreto: compare a modello pronto, sparisce al primo giro o da solo dopo qualche secondo */
.eq-hint { position: absolute; left: 50%; bottom: 3%; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #8A9098; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-50%); transition: opacity .6s; }
.eq-hint svg { width: 14px; height: 14px; color: var(--orange); }
evo-quadro.is-ready .eq-hint { animation: eqHint 7s 1.6s both; }
evo-quadro.has-rotated .eq-hint, evo-quadro.is-tested .eq-hint { animation: none; opacity: 0; }
@keyframes eqHint { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
.cabinet-fallback { display: flex; align-items: center; justify-content: center; transition: opacity .6s; }
.cabinet-fallback img { height: min(78%, 620px); width: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
.cabinet-ready .cabinet-fallback { opacity: 0; }
/* Immagine di attesa del 3D (primo fotogramma, dimensionata da assets/3d/eq-poster.js): quando il 3D è pronto sparisce di colpo,
   le due immagini coincidono e il cambio non si vede */
.hero-visual [data-eq-poster] { overflow: hidden; }
[data-eq-poster] img { position: absolute; left: 50%; top: 50%; height: 100%; width: auto; max-width: none; transform: translate(-50%, -50%); filter: none; animation: none; }
.cabinet-ready [data-eq-poster] { visibility: hidden; transition: none; }
@keyframes float { 50% { transform: translateY(-12px); } }
.hero-hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 18px; color: #8A9098; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-hud .track { flex: 1; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.hero-hud .track i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.hero-hud .dots { display: flex; gap: 6px; }
.hero-hud .dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .3s, transform .3s; }
.hero-hud .dots b.on { background: var(--orange); transform: scale(1.3); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue .mouse { width: 18px; height: 28px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 10px; position: relative; }
.scroll-cue .mouse::after { content: ''; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; background: var(--orange); border-radius: 2px; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
@media (max-width: 900px) {
  .hero-story { height: 300vh; }
  .hero-inner { flex-direction: column; flex-wrap: nowrap; }
  .hero-copy { flex: 0 0 auto; min-height: 0; padding-top: 12px; }
  .hero-step { justify-content: flex-start; padding: 20px 0 0; }
  .hero-step .lead { margin-top: 14px; }
  .hero-step .btn-row { margin-top: 22px; }
  .hero-badges { display: none; }
  .hero-visual { flex: 1 1 auto; min-height: 0; }
  .hero-hud .scroll-cue { display: none; }
}
/* Telefono basso in verticale: testo più compatto, il quadro 3D deve restare sempre visibile */
@media (max-width: 900px) and (max-height: 720px) and (orientation: portrait) {
  .hero-step { padding-top: 12px; }
  .hero-step .display { font-size: clamp(26px, 5.6vh, 36px); margin-top: 10px !important; }
  .hero-step .h1 { font-size: clamp(24px, 5vh, 32px); margin-top: 10px !important; }
  .hero-step .lead { font-size: 14px; line-height: 1.4; margin-top: 8px; }
  .hero-step .btn-row { margin-top: 12px; gap: 8px 14px; }
  .hero-step .btn-lg { --h: 44px; font-size: 15px; }
  .hero-visual { min-height: 150px; }
  .eq-hint { display: none; }
}
/* Telefono in orizzontale: testo a sinistra e quadro a destra, altrimenti il 3D non ha spazio */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero-inner { flex-direction: row; }
  .hero-copy { flex: 1 1 58%; align-self: center; padding-top: 0; }
  .hero-step { justify-content: center; padding: 4px 0 26px; }
  .hero-step .display, .hero-step .h1 { font-size: clamp(22px, 8.5vh, 32px); margin-top: 8px !important; }
  .hero-step .lead { font-size: 13px; line-height: 1.35; margin-top: 8px; }
  .hero-step .btn-row { margin-top: 10px; }
  .hero-step .btn-lg { --h: 40px; font-size: 14px; }
  .hero-visual { flex: 1 1 42%; }
  .eq-hint { display: none; }
  .hero-hud { bottom: 8px; }
}

/* Page hero (pagine interne) */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(64px, 8vw, 110px); }
.page-hero .hero-bg .glow.g1 { top: -40vmax; }
.page-hero .wrap { position: relative; }
.page-hero .lead { max-width: 640px; margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; font-family: var(--mono); font-size: 12px; color: #8A9098; }
.crumbs a { color: #C7CBD0; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--radius); background: var(--mist); padding: clamp(28px, 3.4vw, 40px); overflow: hidden; isolation: isolate; }
.card.white { background: var(--paper); }
.card.dark { background: var(--graphite); color: #fff; }
.card.dark .body, .card.dark .muted { color: var(--muted-dark); }
.card.bordered { background: var(--paper); border: 1px solid var(--line); }
.card { min-height: var(--mh, auto); }
@media (max-width: 700px) {
  .card { min-height: 0; }
  .card.photo-card { min-height: 340px; }
  .card > .icon-tile { margin-bottom: 28px; }
}
a.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
a.card.dark:hover { color: #fff; }
.spot::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(244,121,32,.13), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.card .arrow-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: #fff; flex-shrink: 0; transition: transform .4s var(--ease-out), background .3s; }
.card.dark .arrow-btn { background: var(--orange); color: var(--ink); }
.card .arrow-btn svg { width: 18px; height: 18px; }
a.card:hover .arrow-btn { transform: translateX(4px) rotate(-45deg); background: var(--orange); color: var(--ink); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 28px; }
.card-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.card.dark .card-tag { color: var(--muted-dark); }
.card h3 { margin-top: 12px; }
.card p.body { margin-top: 12px; }
.price-from { font-size: 17px; font-weight: 600; }
.price-from small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

/* Card prodotto grande */
.card.feature-card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; min-height: 560px; padding: clamp(32px, 5vw, 64px); grid-column: 1 / -1; background: linear-gradient(160deg, #F7F7F9 0%, #ECECF0 100%); }
.feature-card .fc-copy { flex: 1 1 360px; position: relative; z-index: 1; }
.feature-card .fc-art { flex: 1 1 320px; display: flex; justify-content: center; align-items: center; align-self: stretch; position: relative; }
.feature-card .fc-art img { height: min(500px, 80vw); width: auto; filter: drop-shadow(0 34px 44px rgba(0,0,0,.2)); }
.feature-card .fc-art::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(244,121,32,.22), transparent 65%); filter: blur(20px); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #D2D2D7; font-size: 13px; font-weight: 500; color: var(--text); background: rgba(255,255,255,.6); }
.on-dark .pill, .bg-ink .pill { border-color: var(--line-dark); color: #D2D6DA; background: rgba(255,255,255,.03); }

/* Card con foto */
.card.photo-card { min-height: 460px; justify-content: flex-end; color: #fff; background: var(--graphite); }
.photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.photo-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,12,14,.05) 25%, rgba(11,12,14,.72) 58%, rgba(11,12,14,.92) 100%); }
.photo-card:hover > img { transform: scale(1.06); }
.photo-card .card-tag { color: #D2D6DA; }
.photo-card p.body { color: #E3E6E9; }
a.photo-card:hover { color: #fff; }

/* Icon tiles */
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); }
.icon-tile svg { width: 24px; height: 24px; }
.card.dark .icon-tile, .bg-ink .icon-tile { background: rgba(244,121,32,.12); color: var(--orange); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 32px; }
.stat b { display: block; font-size: clamp(56px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.stat b small { font-size: .38em; letter-spacing: -.01em; color: var(--muted); margin-left: 4px; }
.bg-ink .stat b small { color: var(--muted-dark); }
.stat > span { display: block; margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 240px; }
.bg-ink .stat > span { color: var(--muted-dark); }
.stat { padding-top: 22px; border-top: 1px solid var(--line); }
.bg-ink .stat { border-top-color: var(--line-dark); }

/* ---------- Finder ---------- */
.finder { margin-top: 48px; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow); }
.segmented { display: inline-flex; padding: 4px; background: var(--mist); border-radius: 999px; position: relative; }
.segmented button { position: relative; z-index: 1; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; font-weight: 600; color: var(--text); transition: color .3s; }
.segmented button[aria-pressed="true"] { color: #fff; }
.segmented .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--graphite); transition: left .4s var(--ease-out), width .4s var(--ease-out); }
.kw-readout { margin-top: 40px; text-align: center; }
.kw-readout b { font-size: clamp(72px, 11vw, 140px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kw-readout span { font-size: clamp(22px, 3vw, 36px); font-weight: 600; color: var(--muted); margin-left: 8px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 26px 0 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) 0%, var(--orange) var(--fill, 0%), var(--mist-2) var(--fill, 0%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--mist-2); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--orange); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.18); transition: transform .2s; }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.18); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 36px; }
.result { padding: 28px; background: var(--mist); border-radius: 22px; display: flex; flex-direction: column; animation: pop .5s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.result .top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.result .top b { color: var(--text); font-weight: 500; }
.result h3 { margin-top: 12px; font-size: 24px; }
.result .spec { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.result .foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.result .actions { display: flex; gap: 8px; }

/* ---------- Parallax band ---------- */
.band { position: relative; height: clamp(540px, 85vh, 860px); overflow: hidden; background: var(--ink); color: #fff; }
.band > img { position: absolute; left: 0; right: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; opacity: .55; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,14,.2), rgba(11,12,14,.85)); }
.band .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 7vw, 96px); }
.band .lead { max-width: 580px; margin-top: 22px; color: #D2D6DA; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(56px, 8vw, 110px); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 44px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Timeline / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 56px; counter-reset: step; position: relative; }
.step { position: relative; padding: 32px; background: var(--paper); border-radius: 24px; overflow: hidden; }
.step .num { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--orange-ink); }
.step .num svg { width: 26px; height: 26px; color: var(--text); opacity: .85; }
.step h3 { margin-top: 44px; font-size: 24px; letter-spacing: -.02em; }
.step p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-out); }
.step.in .bar { transform: scaleX(1); }

/* ---------- Spec table ---------- */
.spec-list { margin-top: 40px; border-top: 1px solid var(--text); }
.spec-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; background: var(--mist); border-radius: 18px; font-size: 16px; line-height: 1.45; }
.check svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--orange-ink); }
.bg-mist .check { background: var(--paper); }
.bg-ink .check { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); color: #E3E6E9; }
.bg-ink .check svg { color: var(--orange); }

/* ---------- FAQ ---------- */
.faq-find { max-width: 560px; margin-top: 32px; }
.faq-find .search { display: block; min-width: 0; }
.faq-find .search input { height: 54px; font-size: 16px; border-color: transparent; color: var(--text); }
.faq-status { min-height: 1.5em; margin-top: 10px; font-size: 14px; color: #A9AFB6; }
.faq-status a { color: #F7934C; }
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.bg-ink .faq { border-top-color: var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line); }
.bg-ink .faq details { border-bottom-color: var(--line-dark); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); flex-shrink: 0; transition: background .3s, transform .4s var(--ease-out); }
.bg-ink .faq summary .pm { background: rgba(255,255,255,.06); }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--orange); color: var(--ink); transform: rotate(180deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 56px 28px 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.bg-ink .faq .answer p { color: var(--muted-dark); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(100px, 13vw, 180px) 0; }
.cta .glow-ring { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(244,121,32,.22), transparent 60%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .7; } }
.cta .wrap-xs { position: relative; }
.cta .lead { max-width: 540px; margin: 22px auto 0; }
.cta .btn-row { margin-top: 40px; justify-content: center; }
/* tre canali affiancati, celle tutte uguali: la fila esce dal testo stretto della CTA così numero ed email stanno su una riga */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; text-align: left; width: min(1000px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; translate: -50% 0; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: minmax(0, 1fr); width: min(100%, 420px); margin-left: auto; margin-right: auto; translate: none; } }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); color: #fff; text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
.contact-card:hover { color: #fff; border-color: rgba(244,121,32,.5); background: rgba(244,121,32,.06); transform: translateY(-3px); }
.contact-card small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A9098; }
.contact-card b { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; border-top: 1px solid var(--line-dark); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 40px 56px; padding: 64px 0 40px; }
.site-footer .col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 11px; }
.site-footer .col.about { flex: 1.6 1 260px; }
.site-footer .col.about p { max-width: 300px; line-height: 1.6; margin-top: 18px; }
.site-footer .nav-h { margin: 0 0 4px; color: #fff; font-size: 14px; font-weight: 600; }
.site-footer a { color: var(--muted-dark); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 32px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.site-footer .bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-cert { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.footer-cert span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-dark); color: #C7CBD0; }

/* Contatti rapidi: email, telefono e WhatsApp, impilati in basso a destra */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.fab { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transform: scale(0); transition: transform .5s var(--ease-out); pointer-events: auto; }
.fab-mail, .fab-tel { background: var(--orange); color: var(--ink); box-shadow: 0 12px 30px -8px rgba(244,121,32,.6); }
.fab-stack.on .fab { transform: scale(1); }
.fab-stack.on .fab-tel { transition-delay: .06s; }
.fab-stack.on .fab-mail { transition-delay: .12s; }
body:has(.sel-bar.on) .fab { transform: scale(0); }
.fab-stack.on .fab:hover { color: #fff; transform: scale(1.08); transition-delay: 0s; }
.fab-stack.on .fab-mail:hover, .fab-stack.on .fab-tel:hover { color: var(--ink); background: var(--orange-2); }
.fab svg { width: 28px; height: 28px; }
.fab-mail svg, .fab-tel svg { width: 24px; height: 24px; }
.fab-wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 2.4s var(--ease) infinite; }
@media (max-width: 700px) { .fab-stack { right: 12px; bottom: 12px; gap: 8px; } .fab { width: 44px; height: 44px; } .fab svg { width: 23px; height: 23px; } .fab-mail svg, .fab-tel svg { width: 19px; height: 19px; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 12px 12px 18px; border-radius: 999px; background: var(--graphite); color: #fff; font-size: 14px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.45); transform: translate(-50%, 140%); transition: transform .5s var(--ease-out); }
.toast.on { transform: translate(-50%, 0); }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.toast .ok svg { width: 13px; height: 13px; color: #fff; }
.toast a { flex-shrink: 0; padding: 0 14px; height: 34px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--orange); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }

/* ---------- Product page ---------- */
html:has(body[data-page="product"]) { scroll-padding-top: calc(var(--header-h) + 72px); }
.subnav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line); transition: top .4s var(--ease); }
.subnav .wrap { height: 56px; display: flex; align-items: center; gap: 20px; }
.subnav .title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subnav nav { display: flex; gap: 4px; }
.subnav nav a { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--text); text-decoration: none; transition: background .2s, color .2s; }
.subnav nav a:hover { background: var(--mist); }
.subnav nav a.on { background: var(--graphite); color: #fff; }
@media (max-width: 860px) { .subnav nav { display: none; } }
.prod-hero { background: var(--mist); padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; }
.fam-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; padding: 4px; background: #fff; border-radius: 999px; margin-bottom: 36px; gap: 2px; }
.fam-tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); transition: background .25s, color .25s; }
.fam-tabs a:hover { background: var(--mist); color: var(--text); }
.fam-tabs a.on { background: var(--graphite); color: #fff; }
.prod-stage { position: relative; margin-top: clamp(40px, 6vw, 72px); height: clamp(380px, 56vw, 660px); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #fff 0%, #E3E4E9 70%); display: flex; align-items: flex-end; justify-content: center; }
.prod-stage.photo { background: var(--graphite); }
.prod-stage .art-wrap { position: relative; height: 96%; aspect-ratio: 976 / 1246; transform-origin: center bottom; will-change: transform; }
.prod-stage img.art { height: 100%; width: auto; filter: drop-shadow(0 50px 60px rgba(0,0,0,.25)); }
.prod-stage img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.prod-stage .hotspot { position: absolute; margin: -19px 0 0 -19px; white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease-out); }
.prod-stage .hotspot i { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); position: relative; }
.prod-stage .hotspot i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2s infinite; }
.prod-stage.in .hotspot { opacity: 1; transform: none; }
.prod-stage.in .hotspot:nth-of-type(2) { transition-delay: .15s; }
.prod-stage.in .hotspot:nth-of-type(3) { transition-delay: .3s; }
@media (max-width: 700px) { .prod-stage .hotspot { display: none; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.kpi { padding: 32px; background: var(--mist); border-radius: 24px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi span { font-size: 15px; color: var(--muted); }
.kpi b { font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.kpi.dark { background: var(--graphite); color: #fff; }
.kpi.dark span { color: var(--muted-dark); }
.kpi.accent { background: var(--orange); color: var(--ink); }
.kpi.accent span { color: rgba(11,12,14,.7); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { height: 44px; padding: 0 18px; border-radius: 999px; font-family: var(--mono); font-size: 14px; border: 1px solid #D2D2D7; background: #fff; color: var(--text); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.model-card { margin-top: 32px; background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; box-shadow: var(--shadow); }
.model-card .info { flex: 1 1 320px; min-width: 0; }
.model-card .spec-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 28px; }
.model-card .spec-mini span { display: block; font-size: 13px; color: var(--muted); }
.model-card .spec-mini b { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; }
.model-card .buy { flex: 0 1 320px; min-width: 250px; padding: 28px; background: var(--mist); border-radius: 22px; }
.model-card .buy .p { margin-top: 6px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.model-card .buy p { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.model-card .buy .btn { margin-top: 12px; }
.model-card .buy .btn:first-of-type { margin-top: 22px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 48px; }
.how .card { min-height: 240px; }
.how .card .n { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.how .card h3 { margin-top: 36px; font-size: 22px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app-tags span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid #D2D2D7; border-radius: 999px; font-size: 15px; transition: border-color .2s, background .2s; }
.app-tags span:hover { border-color: var(--orange); background: var(--orange-soft); }
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 32px; }
.others a { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 26px; background: #fff; border-radius: 22px; text-decoration: none; color: var(--text); transition: background .3s, transform .4s var(--ease-out); }
.others a:hover { background: var(--orange-soft); transform: translateY(-4px); color: var(--text); }
.others a small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.others a span { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.others a span svg { width: 22px; height: 22px; color: var(--orange-ink); flex-shrink: 0; }

/* ---------- Catalog ---------- */
.view-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); margin-top: 32px; }
.view-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; color: #C7CBD0; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .25s, color .25s; }
.view-tabs a:hover { color: #fff; }
.view-tabs a.on { background: #fff; color: var(--ink); }
.view-tabs a .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 11px; display: inline-grid; place-items: center; }
.view-tabs a .count:empty { display: none; }
.view[hidden] { display: none !important; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
#list-tabs { min-height: 44px; } /* riservato prima che JS crei i filtri */
.tabs button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #C9CDD1; background: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.tabs button:hover { border-color: var(--text); }
.tabs button[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.tabs button em { font-style: normal; font-family: var(--mono); font-size: 11px; opacity: .85; }
.search { position: relative; flex: 0 1 320px; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid #C9CDD1; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244,121,32,.15); }
.price-table { width: 100%; margin-top: 24px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; font-size: 14px; }
.price-table th { padding: 13px 16px; background: var(--mist); border-bottom: 1px solid var(--line); text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #4A4F56; white-space: nowrap; }
.price-table td { padding: 14px 16px; border-bottom: 1px solid #EEEFF1; vertical-align: middle; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tr.group td { background: #FAFAFB; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.price-table tr.group td span { float: right; font-weight: 400; color: var(--muted); }
.price-table tr.group-note td { background: var(--mist); font-size: 14px; color: #3A3F45; }
/* Listino: spazio riservato finché JavaScript non disegna filtri e tabella, così la pagina non salta al caricamento */
#list-tabs:empty { min-height: 44px; }
#list-count:empty { min-height: 18px; }
.price-table:has(#list-body:empty) { height: 150vh; }
.price-table tr.row { transition: background .2s; }
.price-table tr.row:hover { background: #FAFAFB; }
.price-table tr.row.sel { background: var(--orange-soft); }
.price-table .code { font-family: var(--mono); font-size: 13px; color: #4A4F56; }
.price-table .model .m { display: flex; flex-direction: column; gap: 2px; }
.price-table .model .m b { font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.price-table .model .m span { font-size: 13px; color: #4A4F56; }
.price-table .wt, .price-table .cur, .price-table .kw b { white-space: nowrap; }
.price-table .kw b { font-weight: 600; }
.price-table .kw small { display: block; font-size: 12px; color: var(--muted); }
.price-table .mono-s { font-family: var(--mono); font-size: 12px; color: #3A3F45; white-space: nowrap; }
.price-table .act { text-align: right; white-space: nowrap; }
.price-table .act .btn { margin-left: 6px; }
.add-btn[aria-pressed="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
@media (max-width: 1100px) {
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table { border: 0; border-radius: 0; border-top: 1px solid var(--text); }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* nascosta alla vista, non ai lettori di schermo */
  .price-table tr.group td { background: none; padding: 22px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .price-table tr.group td span { float: none; flex-shrink: 0; white-space: nowrap; }
  .price-table tr.group-note td { padding: 16px; margin-top: 12px; border: 0; border-radius: 14px; }
  #list-tabs:empty { min-height: 96px; }
  .price-table tr.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .price-table tr.row td { padding: 0; border: 0; }
  .price-table tr.row:hover { background: none; }
  .price-table tr.row.sel { background: var(--orange-soft); padding: 18px 12px; border-radius: 14px; }
  .price-table td.code { grid-column: 2; grid-row: 1; text-align: right; }
  .price-table td.model { grid-column: 1; grid-row: 1 / 3; }
  .price-table td.kw, .price-table td.cur, .price-table td.volt, .price-table td.box, .price-table td.wt { display: none; }
  .price-table td.specs-m { display: block !important; grid-column: 1 / -1; font-size: 14px; color: #3A3F45; }
  .price-table td.act { grid-column: 2; grid-row: 2; align-self: end; }
}
.price-table td.specs-m, .price-table th.specs-m { display: none; }
.sel-bar { position: fixed; left: 50%; bottom: 20px; z-index: 95; width: min(860px, calc(100vw - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 14px 14px 24px; border-radius: 24px; background: var(--graphite); color: #fff; box-shadow: 0 24px 60px -16px rgba(0,0,0,.5); transform: translate(-50%, 160%); transition: transform .5s var(--ease-out); }
.sel-bar.on { transform: translate(-50%, 0); }
.sel-bar .t { flex: 1 1 220px; }
.sel-bar .t b { display: block; font-size: 16px; }
.sel-bar .t span { font-size: 13px; color: var(--muted-dark); }
.sel-bar .btn-ghost-light { --h: 44px; }
/* nel listino la barra di selezione ha la precedenza: WhatsApp si toglie di mezzo, il toast sale in alto */
body:has(.sel-bar.on) #view-listino { padding-bottom: 200px; }
body[data-page="catalog"] .toast { top: calc(var(--header-h) + 12px); bottom: auto; transform: translate(-50%, calc(-100% - var(--header-h) - 24px)); }
body[data-page="catalog"] .toast.on { transform: translate(-50%, 0); }
@media (max-width: 700px) {
  body[data-page="catalog"] .fab-stack { display: none; }
  .sel-bar { bottom: 12px; padding: 14px; gap: 12px; }
  .sel-bar .t { flex: 1 1 100%; padding: 0 6px; }
  .sel-bar .btn-primary { flex: 1; }
  .toolbar .search { flex: 1 1 100%; min-width: 0; }
  #print-list { display: none; }
}
.note-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.note-grid > * { flex: 1 1 300px; }
.note-grid > :first-child { flex: 2 1 480px; }

/* Form preventivo */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .quote-layout { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.panel + .panel { margin-top: 16px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.panel-h h2 { font-size: 22px; letter-spacing: -.01em; }
.panel-h h2 span { font-family: var(--mono); font-size: 13px; color: var(--orange-ink); font-weight: 500; margin-right: 10px; }
.panel-h small { font-family: var(--mono); font-size: 12px; color: #4A4F56; }
.q-items > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #EEEFF1; animation: pop .4s var(--ease-out); }
.q-items .t b { display: block; font-size: 16px; }
.q-items .t small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid #C9CDD1; border-radius: 999px; height: 38px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; border-radius: 50%; }
.qty button:hover { background: var(--mist); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-items .rm { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.q-items .rm:hover { background: #FDECEC; color: var(--red); }
.q-items .rm svg { width: 16px; height: 16px; }
.q-items .custom, .q-items .custom-add { grid-column: 1 / -1; }
.q-items .custom { display: flex; align-items: center; gap: 12px; }
.q-items .custom span { flex-shrink: 0; font-size: 13px; font-weight: 600; color: #3A3F45; }
.q-items .custom input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid #C9CDD1; border-radius: 12px; background: #fff; font-size: 15px; }
.q-items .custom input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244,121,32,.15); }
.q-items .custom-add { justify-self: start; padding: 0; border: 0; background: none; color: var(--orange-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.q-items .custom-add:hover { text-decoration: underline; }
@media (max-width: 620px) { .q-items .custom { flex-direction: column; align-items: stretch; gap: 6px; } .q-items .custom input { flex: none; } }
@media (max-width: 620px) {
  .q-items > div { grid-template-columns: auto 1fr; gap: 10px 12px; }
  .q-items .t { grid-column: 1 / -1; }
  .q-items .rm { justify-self: end; }
}
.q-empty { padding: 28px; border: 1.5px dashed #D2D2D7; border-radius: 18px; text-align: center; color: var(--muted); }
.picker { margin-top: 18px; padding: 20px; background: var(--mist); border-radius: 18px; }
.picker .tabs { margin-bottom: 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pick-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid #C9CDD1; border-radius: 14px; background: #fff; text-align: left; transition: border-color .2s, background .2s; }
.pick-grid button:hover { border-color: var(--text); }
.pick-grid button b { font-family: var(--mono); font-size: 14px; }
.pick-grid button small { font-size: 12px; color: var(--muted); }
.pick-grid button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.other-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.other-chips button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #C9CDD1; background: #fff; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
.other-chips button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3A3F45; }
.field label i { font-style: normal; color: var(--orange-ink); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #C9CDD1; border-radius: 14px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244,121,32,.15); }
.field.err input, .field.err textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.field .msg { display: none; margin-top: 6px; font-size: 13px; color: var(--red); }
.field.err .msg { display: block; }
.field .hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.field.err .hint { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #3A3F45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); flex-shrink: 0; }
.consent.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--graphite); color: #fff; border-radius: 24px; padding: 28px; }
.summary h3 { font-size: 20px; letter-spacing: -.01em; }
.summary .rows { margin-top: 18px; border-top: 1px solid var(--line-dark); }
.summary .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.summary .rows div b { color: #fff; font-weight: 600; }
.summary .btn { margin-top: 18px; }
.summary .alt { margin-top: 14px; font-size: 13px; color: var(--muted-dark); text-align: center; }
.summary .alt a { color: #F7934C; }
.summary ul { margin-top: 20px; display: grid; gap: 10px; font-size: 13px; color: var(--muted-dark); }
.summary ul li { display: flex; gap: 10px; }
.summary ul svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
/* verifica anti-robot (Cloudflare Turnstile) nel riepilogo del preventivo */
.captcha { margin-top: 18px; }
.captcha-box { min-height: 65px; }
.captcha-box iframe { max-width: 100%; }
.captcha-msg { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted-dark); }
.captcha-msg:empty { display: none; }
.captcha.err .captcha-msg { color: #FF9EA1; }
.form-error { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(229,72,77,.12); color: #FF9EA1; font-size: 14px; }
.form-error.on { display: block; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(11,12,14,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { text-align: center; padding: clamp(40px, 6vw, 80px) 24px; }
.success .tick { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; animation: pop .6s var(--ease-out); }
.success .tick svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { margin-top: 24px; font-size: 34px; }
.success p { margin: 12px auto 0; max-width: 460px; color: var(--muted); font-size: 17px; }
.success .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Prose (privacy ecc.) ---------- */
.prose { font-size: 17px; line-height: 1.7; color: #3A3F45; }
.prose h2 { margin: 48px 0 14px; font-size: 26px; color: var(--text); }
.prose p + p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--graphite); min-height: 280px; }
.gallery figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(11,12,14,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 500; }
.gallery .g1 { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.gallery .g2 { grid-column: span 5; }
.gallery .g3 { grid-column: span 5; }
@media (max-width: 860px) { .gallery .g1, .gallery .g2, .gallery .g3 { grid-column: 1 / -1; min-height: 300px; } }

/* Norme */
.norm { display: flex; flex-direction: column; }
.norm .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--orange-ink); }
.norm h3 { margin-top: 16px; font-size: clamp(30px, 3vw, 40px); }
.norm p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.norm ul { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.norm ul li { display: flex; gap: 10px; }
.norm ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 8px; flex-shrink: 0; }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.split-words.in .w > span { transform: none; }

/* ---------- Hero: timbro di collaudo + badge EN 17451 ---------- */
.hero-badges span.new { border-color: rgba(244,121,32,.45); color: #FFD2B0; background: rgba(244,121,32,.08); }
.hero-badges span.new i { background: var(--orange); box-shadow: 0 0 0 4px rgba(244,121,32,.18); }
.test-stamp { position: absolute; left: 0; bottom: 9%; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(19,21,24,.72); border: 1px solid rgba(47,191,113,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.test-stamp .ok { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,191,113,.16); color: var(--green); flex-shrink: 0; }
.test-stamp .ok svg { width: 22px; height: 22px; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .6s .25s var(--ease-out); }
.test-stamp b { display: block; font-size: 15px; }
.test-stamp small { display: block; font-size: 12px; color: var(--muted-dark); margin-top: 2px; }
evo-quadro.is-tested + .test-stamp { opacity: 1; transform: none; }
evo-quadro.is-tested + .test-stamp .ok svg { stroke-dashoffset: 0; }
@media (max-width: 900px) { .test-stamp { left: 50%; transform: translate(-50%, 16px) scale(.96); top: 2%; bottom: auto; white-space: nowrap; } evo-quadro.is-tested + .test-stamp { transform: translate(-50%, 0); } }

/* ---------- Norma nuova ---------- */
.norm-new { background: var(--paper); border: 1px solid rgba(244,121,32,.4); box-shadow: 0 16px 40px -24px rgba(244,121,32,.6); color: inherit; text-decoration: none; }
.new-badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.new-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ink); vertical-align: 1px; animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .25; } }

/* ---------- Laboratorio: galleria foto in rilievo ---------- */
.lab-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 150px; gap: 16px; perspective: 1400px; }
.lab-item { position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-3); cursor: zoom-in; color: #fff; text-align: left; font: inherit;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.lab-item.tilting { transition: transform .12s linear, box-shadow .4s; box-shadow: 0 50px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(244,121,32,.25); }
.lab-item img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.06); transition: transform .6s var(--ease-out), filter .6s; filter: saturate(.92) brightness(.92); }
.lab-item.tilting img { transition: transform .12s linear, filter .6s; }
.lab-item:hover img, .lab-item:focus-visible img { filter: none; }
.lab-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,12,14,.78) 68%, rgba(11,12,14,.92)); pointer-events: none; }
.lab-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.25; transform: translateZ(40px); }
.lab-cap small { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #F7934C; }
.lab-item .glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 55%); mix-blend-mode: soft-light; }
.lab-item.tilting .glare { opacity: 1; }
/* foto prodotto su fondo bianco: colori originali, niente velo scuro */
.lab-item.is-product { background: #fff; box-shadow: var(--shadow); }
.lab-item.is-product img { top: 5%; left: 5%; width: 90%; height: 75%; object-fit: contain; filter: none; }
.lab-item.is-product::after { display: none; }
.lab-item.is-product .lab-cap { color: var(--text); }
.lab-item.is-product .lab-cap small { color: var(--orange-ink); }
/* Azienda: partner */
.partner-box { max-width: 720px; margin: 0 auto; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.partner-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px; }
.partner-box img { width: min(100%, 360px); height: auto; }
.lab-item.l1 { grid-column: span 7; grid-row: span 3; }
.lab-item.l2 { grid-column: span 5; grid-row: span 4; }
.lab-item.l3 { grid-column: span 4; grid-row: span 2; }
.lab-item.l4 { grid-column: span 3; grid-row: span 2; }
.lab-item.l5 { grid-column: span 5; grid-row: span 3; }
.lab-item.l6 { grid-column: span 7; grid-row: span 2; }
@media (max-width: 900px) {
  .lab-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 12px; }
  .lab-item.l1, .lab-item.l6 { grid-column: 1 / -1; grid-row: span 2; }
  .lab-item.l2, .lab-item.l3, .lab-item.l4, .lab-item.l5 { grid-column: span 1; grid-row: span 2; }
  .lab-cap { left: 14px; right: 14px; bottom: 12px; font-size: 14px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 64px 16px 72px; background: rgba(8,9,10,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.on { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.on figure { transform: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 40px 100px -30px #000; }
.lightbox figcaption { color: #D2D6DA; font-size: 15px; text-align: center; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--orange); color: var(--ink); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 16px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; margin: 0; } .lightbox .lb-prev { left: calc(50% - 60px); } .lightbox .lb-next { right: calc(50% - 60px); } }
html.lb-open { overflow: hidden; }

/* Foto con rilievo 3D generico (pagine interne) */
.photo-3d { position: relative; border-radius: var(--radius); overflow: hidden; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); box-shadow: var(--shadow-lg); }
.photo-3d.tilting { transition: transform .12s linear; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Print (listino) ---------- */
@media print {
  .site-header, .site-footer, .fab-stack, .toast, .sel-bar, .scroll-progress, .no-print, .page-hero .hero-bg { display: none !important; }
  .page-hero { background: #fff; color: #000; padding: 0 0 16px; }
  .page-hero .lead { color: #333; }
  .view-tabs { display: none; }
  body { font-size: 11px; }
  .price-table { font-size: 11px; }
  .price-table td, .price-table th { padding: 6px 8px; }
  .price-table .act { display: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Quadro 3D: su desktop il canvas arriva fino al bordo destro, così il quadro ha spazio per girare */
@media (min-width: 901px) { .hero-visual evo-quadro, .hero-visual [data-eq-poster] { right: calc(-1 * var(--gutter)); } }

/* Foto reali del laboratorio in bianco e nero, anche ingrandite. Restano a colori la foto prodotto della motopompa (Certificazioni)
   e le foto delle gamme ciclo dell'acqua (assets/images/gamme/, non toccate da questa regola). */
img[src*="/foto/"]:not([src*="motopompa"]) { filter: grayscale(1); }
.lab-item:not(.is-product) img, .lab-item:not(.is-product):hover img { filter: grayscale(1) contrast(1.04); }
@media (max-width: 400px) { .segmented { max-width: 100%; } .segmented button { font-size: 13px; padding-left: 10px; padding-right: 10px; white-space: nowrap; } }
/* Telefono: il badge non copre la sigla della norma, la riga CE resta su una riga */
@media (max-width: 520px) {
  .norm-new .card-tag { display: block; margin-top: 20px; }
  .new-badge { top: 12px; right: 12px; }
  .card.dark[style*="grid-column"] h3 { font-size: 18px !important; letter-spacing: -.02em; }
}
