/* =============================================================
   CesterMakers — Sistema visivo "Tavolo da disegno / Officina"
   Monocromo assoluto · Archivo Expanded / Inter / Space Mono
   ============================================================= */

/* ---------- Font auto-ospitati (privacy: nessuna chiamata a Google) ----------
   Inter (variabile, pesi 100–900) e Space Mono (400/700), sottoinsiemi latin +
   latin-ext con unicode-range: il browser scarica latin-ext solo se serve.
   I file .woff2 stanno in assets/fonts/ (scaricati da Google Fonts, licenza SIL OFL).
   "Archivo Expanded" = font display del brand (titoli): è la larghezza espansa (125%)
   del font variabile Archivo, ottenuta da Google Fonts con l'asse wdth. Pesi 700/800: i due file scaricati erano identici, quindi un solo file copre entrambi. */
@font-face {
  font-family: "Archivo Expanded"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../assets/fonts/archivo-expanded-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Expanded"; font-style: normal; font-weight: 700 800; font-display: swap;
  src: url("../assets/fonts/archivo-expanded-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Token ---------- */
:root {
  --black:  #000000;
  --ink:    #0A0A0A;
  --g900:   #1A1A1A;
  --g700:   #404040;
  --g500:   #737373;
  --g300:   #B3B3B3;
  --g100:   #E6E6E6;
  --white:  #FFFFFF;

  --font-display: "Archivo Expanded", "Arial Black", sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Space Mono", "Courier New", monospace;

  --maxw: 1360px;
  --gutter: clamp(20px, 5vw, 72px);
  --line: 1.5px;

  /* tema corrente — sovrascritto da .theme-* */
  --bg: var(--ink);
  --fg: var(--white);
  --muted: var(--g500);
  --hair: rgba(255,255,255,0.14);
  --hair-strong: rgba(255,255,255,0.28);
  --frame: rgba(255,255,255,0.22);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Su fondo scuro il testo secondario è G300: G500 su #0A0A0A dà 4,2:1, sotto la soglia WCAG AA */
.theme-dark  {
  --bg: var(--ink); --fg: var(--white); --muted: var(--g300);
  --hair: rgba(255,255,255,0.14); --hair-strong: rgba(255,255,255,0.30);
  --frame: rgba(255,255,255,0.22);
}
.theme-paper {
  --bg: var(--white); --fg: var(--ink); --muted: var(--g500);
  --hair: rgba(0,0,0,0.12); --hair-strong: rgba(0,0,0,0.26);
  --frame: rgba(0,0,0,0.20);
}
.theme-fog {
  --bg: var(--g100); --fg: var(--ink); --muted: var(--g700);
  --hair: rgba(0,0,0,0.14); --hair-strong: rgba(0,0,0,0.30);
  --frame: rgba(0,0,0,0.24);
}

/* ---------- Base ---------- */
html, body { background: var(--ink); }
body {
  font-family: var(--font-body);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

::selection { background: var(--white); color: var(--ink); }
.theme-paper ::selection, .theme-fog ::selection { background: var(--ink); color: var(--white); }

/* ---------- Cursore a crocino di registro (desktop) ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%); mix-blend-mode: difference; opacity: 0;
  transition: opacity .3s ease, width .25s var(--ease), height .25s var(--ease); }
.cursor::before, .cursor::after { content: ""; position: absolute; background: #fff; }
.cursor::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.cursor::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.cursor__ring { position: absolute; inset: 12px; border: 1px solid #fff; border-radius: 50%;
  transition: inset .25s var(--ease); }
.cursor.is-hover { width: 54px; height: 54px; }
.cursor.is-hover .cursor__ring { inset: 4px; }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } body.cursor-on { cursor: none; } }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; background: var(--bg); color: var(--fg);
  padding-block: clamp(84px, 12vh, 168px); overflow: clip; }
.section--tight { padding-block: clamp(56px, 8vh, 104px); }

/* trama blueprint di fondo */
.blueprint { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--hair) var(--line), transparent var(--line)),
    linear-gradient(90deg, var(--hair) var(--line), transparent var(--line));
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.h-xl { font-size: clamp(2.2rem, 8.5vw, 8.2rem); }
.h-lg { font-size: clamp(2.1rem, 6vw, 5rem); }
.h-md { font-size: clamp(1.7rem, 3.4vw, 3rem); }
.h-sm { font-size: clamp(1.3rem, 2.2vw, 2rem); }
/* sotto 375 px «FUNZIONARE» a 2.2rem esce dallo schermo */
@media (max-width: 374px) { .h-xl { font-size: 1.9rem; } }

.lede { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; max-width: 46ch;
  color: var(--fg); font-weight: 400; }
.body-lg { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
p.body-lg { line-height: 1.7; }
.muted { color: var(--muted); }

/* etichetta tecnica mono */
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Cornice di quotatura (signature) ---------- */
.frame { position: relative; border: 1px solid var(--frame); }
.frame::before, .frame::after,
.frame > .frame__tl, .frame > .frame__tr, .frame > .frame__bl, .frame > .frame__br { }
.reg { position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 2; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--fg); opacity: .85; }
.reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.reg::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.reg--tl { top: -7px; left: -7px; } .reg--tr { top: -7px; right: -7px; }
.reg--bl { bottom: -7px; left: -7px; } .reg--br { bottom: -7px; right: -7px; }

/* callout di quota */
.dim { position: absolute; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase; white-space: nowrap; z-index: 2; }
.dim--top { top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--bg); padding-inline: 8px; }
.dim--left { top: 50%; left: -0.75rem; transform: translate(-100%, -50%); }

/* ---------- Bottoni ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 26px; border: 1px solid var(--fg); color: var(--fg); background: transparent;
  overflow: hidden; transition: color .4s var(--ease); will-change: transform; }
.btn__label { position: relative; z-index: 2; }
.btn__arrow { position: relative; z-index: 2; transition: transform .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateY(101%);
  transition: transform .45s var(--ease); z-index: 1; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn:hover .btn__arrow { transform: translate(4px, -4px); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--fg); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* link testuale con wipe */
.link { position: relative; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding-bottom: 4px; }
.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   NAV
   ============================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 900; display: flex; align-items: center;
  justify-content: space-between; padding: 22px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent; mix-blend-mode: normal; }
.nav.is-scrolled { background: rgba(10,10,10,0.82); backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.12); padding-block: 14px; }
.nav__brand { display: flex; align-items: center; gap: 14px; z-index: 2; }
.nav__mark { width: 34px; height: 34px; flex: none; }
.nav__mark rect { fill: none; stroke: var(--white); stroke-width: 6; }
.nav__mark .core { fill: var(--white); stroke: none; }
.nav__word { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 0.95rem; letter-spacing: 0.02em; color: var(--white); line-height: 1; }
.nav__tag { display: block; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em;
  color: var(--g300); margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 1.8vw, 34px); }
.nav__links a { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); position: relative; padding: 6px 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; }

/* menu mobile fullscreen — fino a 1340 px: con sei voci più il pulsante la barra chiede
   ~1170 px senza spazi; più stretta, le voci andavano a capo o toccavano il marchio
   (era 1180 con cinque voci, alzato il 27/10/2026 con «Casi studio») */
@media (max-width: 1340px) {
  .nav__links, .nav__cta.desktop-only { display: none; }
  .nav__toggle { display: flex; flex-direction: column; gap: 6px; z-index: 1002; width: 34px; }
  .nav__toggle span { display: block; height: 2px; width: 100%; background: var(--white);
    transition: transform .4s var(--ease), opacity .3s ease; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu { position: fixed; inset: 0; z-index: 1000; background: var(--ink);
    display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
    clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); }
  .nav.menu-open + .menu, .menu.open { clip-path: inset(0 0 0 0); }
  .menu a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    /* 6.4vw: «PROTOTIPAZIONE» è larga 11,6 volte il corpo, così sta in una riga anche a 320 px */
    font-size: clamp(1.15rem, 6.4vw, 3.4rem); color: var(--white); line-height: 1.05; padding: 6px 0;
    display: flex; align-items: baseline; gap: 16px; }
  .menu a .idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--g300); font-weight: 400; }
  .menu a[aria-current="page"] { -webkit-text-stroke: 1.5px var(--white); color: transparent; }
  .menu a[aria-current="page"] .idx { -webkit-text-stroke: 0; color: var(--white); }
  .menu__foot { margin-top: 42px; }
}
@media (min-width: 1341px) { .menu { display: none; } }

/* =============================================================
   HERO
   ============================================================= */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding-block: 140px 60px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; position: relative; z-index: 3; }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title { position: relative; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(102%);
  animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .15s; }
.hero__title .line:nth-child(2) > span { animation-delay: .28s; }
.hero__title .line:nth-child(3) > span { animation-delay: .41s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__title .thin { -webkit-text-stroke: 1.5px var(--white); color: transparent; }
.hero__sub { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end;
  justify-content: space-between; opacity: 0; animation: fade .9s var(--ease) .8s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__pillars { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero__pillars li { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--g300); display: flex; align-items: center; gap: 10px; }
.hero__pillars li::before { content: "+"; color: var(--g500); }

.hero__object { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: grid; place-items: center; opacity: 0; animation: fade 1.4s var(--ease) .6s forwards; }
.hero__object svg { width: min(58vw, 620px); height: auto; overflow: visible; }
.hero__object .wire { fill: none; stroke: var(--g700); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__object .wire--bright { stroke: var(--g300); }
.hero__object .rig { transform-origin: 50% 50%; animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero__object .edge { stroke: var(--g300); stroke-width: 1.25; }
.hero__object .layer { stroke: var(--g700); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke;
  stroke-dasharray: 360; stroke-dashoffset: 360; animation: print 5.5s var(--ease-io) infinite; }
@keyframes print { 0% { stroke-dashoffset: 360; } 45%, 100% { stroke-dashoffset: 0; } }
.hero__object .scanline { stroke: var(--white); stroke-width: 1.25; opacity: .9;
  animation: scan 5.5s var(--ease-io) infinite; }
@keyframes scan { 0% { transform: translateY(190px); opacity: 0; }
  8% { opacity: .9; } 45% { transform: translateY(0); opacity: .9; } 55%,100% { opacity: 0; } }

.hero__scroll { position: absolute; bottom: 26px; left: var(--gutter); display: flex; align-items: center;
  gap: 12px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--g500);
  text-transform: uppercase; z-index: 3; }
.hero__scroll .rail { width: 1px; height: 46px; background: var(--g700); position: relative; overflow: hidden; }
.hero__scroll .rail::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--white); animation: drop 2.2s var(--ease-io) infinite; }
@keyframes drop { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* hero con loop video di sfondo: il video sta sotto la trama blueprint e sfuma verso
   sinistra e verso il basso, dove stanno titolo e testo */
.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; opacity: .55;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%), linear-gradient(0deg, transparent 0%, #000 45%);
  mask-composite: intersect; -webkit-mask-composite: source-in; }
.hero--video .hero__object { display: none; }
.hero__ai { position: absolute; right: var(--gutter); bottom: 26px; z-index: 3; font-size: 0.62rem; }
@media (max-width: 760px) { .hero__video { opacity: .35; object-position: 50% 0; } }

/* testata delle pagine servizi con loop video di sfondo: stessa sfumatura dell'hero */
.page-head--media { overflow: clip; }
.page-head__media { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 5%, #000 60%), linear-gradient(0deg, transparent 0%, #000 50%);
  mask-composite: intersect; -webkit-mask-composite: source-in; }
.page-head__media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .5; }
.page-head--media .wrap { position: relative; z-index: 2; }
.page-head__ai { position: absolute; right: var(--gutter); bottom: 22px; z-index: 3; font-size: 0.62rem; }
@media (max-width: 760px) { .page-head__media video { opacity: .35; object-position: 60% 30%; } }

/* linee di quota che si disegnano nella hero */
.hero__ticks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__ticks .tickline { stroke: var(--g700); stroke-width: 1; stroke-dasharray: 1; }
.hero__ticks text { fill: var(--g500); font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; }

/* =============================================================
   REVEAL
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

.draw-line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1.4s var(--ease-io); }
.is-visible .draw-line, [data-reveal].is-visible .draw-line { stroke-dashoffset: 0; }

/* =============================================================
   MANIFESTO
   ============================================================= */
.manifesto { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(30px,5vw,72px); }
.manifesto__lead { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  line-height: 1.02; letter-spacing: -0.01em; font-size: clamp(1.9rem, 4.6vw, 4.2rem); }
.manifesto__lead .dim-word { color: var(--g500); }
.manifesto__body { display: grid; gap: 22px; align-content: start; }

/* =============================================================
   INDEX / SERVIZI (elenco a righe)
   ============================================================= */
.rows { border-top: 1px solid var(--hair); }
.row { position: relative; display: grid; grid-template-columns: 88px 1fr auto; align-items: center;
  gap: clamp(16px, 4vw, 48px); padding: clamp(26px, 4vw, 48px) 4px; border-bottom: 1px solid var(--hair);
  transition: background .5s var(--ease), padding-inline .5s var(--ease); overflow: hidden; }
.row::before { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleY(0);
  transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0; }
.row > * { position: relative; z-index: 1; transition: color .4s var(--ease); }
.row:hover::before { transform: scaleY(1); }
.row:hover, .row:hover .row__idx, .row:hover .row__desc { color: var(--bg); }
.row:hover { padding-inline: 20px; }
.row__idx { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.row__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem); line-height: 1; }
.row__desc { font-size: 0.98rem; color: var(--muted); max-width: 42ch; }
.row__go { width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.row:hover .row__go { transform: rotate(-45deg); }
@media (max-width: 760px) {
  .row { grid-template-columns: 44px 1fr; grid-template-areas: "idx title" "desc desc"; row-gap: 14px; }
  .row__idx { grid-area: idx; } .row__title { grid-area: title; } .row__desc { grid-area: desc; }
  .row__go { display: none; }
}
/* «PROTOTIPAZIONE» a 1.5rem non entra nella colonna sotto i 420 px */
@media (max-width: 419px) { .row__title { font-size: clamp(1.1rem, 5.8vw, 1.5rem); } }

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee { border-block: 1px solid var(--hair); padding-block: 22px; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 44px; animation: marq 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--fg); display: inline-flex; align-items: center; gap: 44px; }
.marquee__item::after { content: "✳"; font-size: 0.6em; color: var(--muted); }
.marquee__item.is-ghost { color: transparent; -webkit-text-stroke: 1px var(--muted); }
@keyframes marq { to { transform: translateX(-50%); } }

/* =============================================================
   STAT / DATI
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); }
.stat { background: var(--bg); padding: clamp(28px, 4vw, 44px); display: grid; gap: 10px; align-content: start; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1; letter-spacing: -0.02em; }
.stat__num .u { font-size: 0.42em; color: var(--muted); margin-left: 4px; vertical-align: super; }
.stat__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); }
.stat__note { font-family: var(--font-mono); font-size: 0.62rem; color: var(--g500); }

/* =============================================================
   PROCESSO (sequenza numerata — qui i numeri hanno senso)
   ============================================================= */
.steps { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.step { background: var(--bg); padding: clamp(26px, 3.5vw, 42px); display: grid;
  grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.step__no { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); padding-top: 8px; }
.step__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.05; margin-bottom: 12px; }
/* «MANUFACTURING» allarga la colonna oltre lo schermo sotto i 420 px */
@media (max-width: 419px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .step__title { font-size: clamp(1.1rem, 5.8vw, 1.3rem); }
}
.step__body { color: var(--muted); max-width: 60ch; }

/* =============================================================
   CTA
   ============================================================= */
.cta { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 34px; }
.cta__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  line-height: 0.95; font-size: min(7rem, 8vw, calc((100vw - 2 * var(--gutter)) / var(--fit, 9.8))); }
.cta__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--black); color: var(--white); padding-block: clamp(56px, 8vh, 96px) 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 54px;
  border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__mark { width: 54px; height: 54px; margin-bottom: 22px; }
.footer__mark rect { fill: none; stroke: var(--white); stroke-width: 6; }
.footer__slogan { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.05; max-width: 20ch; }
.footer__h { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--g300); margin-bottom: 18px; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: var(--g100); font-size: 0.94rem; margin-bottom: 10px; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-top: 24px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em;
  color: var(--g300); text-transform: uppercase; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 34px; } }

/* =============================================================
   PAGINE INTERNE — header
   ============================================================= */
.page-head { padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(48px, 7vh, 90px); position: relative; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
/* Il titolo occupa al massimo la larghezza utile: --fit è la riga più lunga misurata in em
   (Archivo Expanded 800, maiuscolo) più un margine del 3%. Le pagine con parole più lunghe di
   «Informativa» impostano --fit nell'attributo style del proprio h1. */
.page-head__title { font-size: min(7.5rem, calc((100vw - 2 * var(--gutter)) / var(--fit, 9.2))); }
.crumbs { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 34px; display: flex; gap: 10px; align-items: center; }
.crumbs a:hover { color: var(--fg); }

/* blocco alternato testo/schema */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.feature--flip .feature__media { order: -1; }
.feature__media { position: relative; aspect-ratio: 4/3; }
.feature__media svg { width: 100%; height: 100%; }
.feature h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; margin-bottom: 18px; }
.feature p { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; } }

/* ---------- Casi studio ---------- */
.stack-xl { display: grid; gap: clamp(48px, 7vw, 96px); }
.case__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; margin: 4px 0 20px; }
.case__facts { display: grid; gap: 16px; margin-bottom: 26px; }
.case__fact { color: var(--muted); line-height: 1.5; margin: 0; }
.case__fact strong { display: block; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); margin-bottom: 5px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags .chip { cursor: default; }
.case__tags .chip:hover { border-color: var(--frame); }
.draft-banner { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5;
  border: 1px dashed var(--frame); padding: 12px 16px; margin-bottom: 26px; color: var(--muted); }
.draft-banner code { color: var(--fg); }

/* Trappola anti-spam: fuori schermo (non display:none, così i bot la compilano) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Testo legale / informativa ---------- */
.legal { max-width: 70ch; }
.legal h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.15; margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 1.25em; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal__updated { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--g500); margin-top: 40px; }

/* ---------- FAQ (accordion nativo) ---------- */
.faq { max-width: 76ch; }
.faq + .faq { margin-top: clamp(40px, 6vw, 72px); }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 22px 44px 22px 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--muted); }
.faq__a { color: var(--muted); line-height: 1.7; padding: 0 44px 24px 0; max-width: 68ch; margin: 0; }
.faq__a + .faq__a { margin-top: -8px; }

/* elenco spec tecniche */
.spec { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-top: 8px; }
.spec__row { background: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 20px;
  padding: 16px 20px; align-items: baseline; }
.spec__row dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); }
.spec__row dd { font-family: var(--font-mono); font-size: 0.82rem; color: var(--fg); text-align: right; }

/* schema tecnico riquadrato riutilizzabile */
.schematic { width: 100%; height: 100%; }
.schematic .s-wire { fill: none; stroke: var(--g500); stroke-width: 1; vector-effect: non-scaling-stroke; }
.schematic .s-wire--b { stroke: var(--fg); }
.schematic .s-fill { fill: var(--hair); }
.schematic .s-dim { fill: none; stroke: var(--g500); stroke-width: 0.75; }
.schematic text { fill: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; }
.schematic .s-hatch { stroke: var(--g500); stroke-width: 0.75; }

/* =============================================================
   RECENSIONI
   ============================================================= */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(16px, 2vw, 24px); }
.review { position: relative; border: 1px solid var(--hair); padding: clamp(26px, 3vw, 38px);
  display: grid; gap: 22px; align-content: start; background: var(--bg);
  transition: transform .5s var(--ease), border-color .5s var(--ease); }
.review:hover { transform: translateY(-4px); border-color: var(--hair-strong); }
.review__stars { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 3px; color: var(--fg); }
.review__quote { font-size: 1.05rem; line-height: 1.6; color: var(--fg); }
.review__quote::before { content: "“"; font-family: var(--font-display); font-size: 2.4rem;
  line-height: 0; display: block; margin-bottom: 14px; color: var(--muted); }
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--hair); margin-top: auto; }
.review__who { display: grid; gap: 2px; }
.review__name { font-weight: 600; font-size: 0.95rem; }
.review__meta { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); }
.review__src { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--hair); padding: 4px 8px; }
.review--feature { grid-column: span 2; }
@media (max-width: 720px) { .review--feature { grid-column: span 1; } }

.rating-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 24px; }
.rating-hero__score { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1; letter-spacing: -0.02em; }
.rating-hero__stars { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: 4px; }
.rating-hero__note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }

/* contatti */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__list { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.contact__item { background: var(--bg); padding: 22px 24px; display: grid; gap: 6px; }
.contact__item .k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); }
.contact__item .v { font-size: 1.05rem; }
.contact__item a.v:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* utility */
.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 24px; }
.stack-lg > * + * { margin-top: 40px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--hair); border: 0; margin-block: clamp(40px,6vw,80px); }
.hide-mobile { }
@media (max-width: 620px) { .hide-mobile { display: none; } }

/* grid helpers */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.split-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px,5vw,80px); align-items: end;
  margin-bottom: clamp(40px,6vw,72px); }
@media (max-width: 760px) { .split-head { grid-template-columns: 1fr; gap: 20px; } }

/* =============================================================
   MATERIALI — confronto interattivo
   ============================================================= */
.matfilter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--hair-strong); color: var(--fg); background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.chip:hover { border-color: var(--fg); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.matcompare { display: grid; grid-template-columns: 290px 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: start; margin-top: 28px; }
@media (max-width: 860px) { .matcompare { grid-template-columns: 1fr; } }
.matselect { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 90px; }
@media (max-width: 860px) { .matselect { position: static; } }
.matselect__hint { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.mchip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px;
  border: 1px solid var(--hair-strong); font-family: var(--font-mono); font-size: 0.76rem; color: var(--fg);
  background: transparent; text-transform: uppercase; letter-spacing: 0.05em; text-align: left;
  transition: border-color .3s var(--ease), opacity .3s var(--ease); }
.mchip:hover { border-color: var(--fg); }
.mchip[hidden] { display: none; }
.mchip__sw { width: 14px; height: 14px; border: 1px solid var(--fg); flex: none; }
.mchip.is-on .mchip__sw { background: var(--sw, var(--fg)); }
.mchip[disabled]:not(.is-on) { opacity: .34; cursor: not-allowed; }

.mchart { display: grid; gap: 24px; }
.mchart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.mchart__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 0.98rem; letter-spacing: 0.02em; }
.mchart__unit { font-family: var(--font-mono); font-size: 0.58rem; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; }
.mbar { display: grid; grid-template-columns: 84px 1fr 70px; gap: 12px; align-items: center; padding: 5px 0; }
.mbar__name { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); text-transform: uppercase; }
.mbar__track { height: 14px; background: var(--hair); position: relative; overflow: hidden; }
.mbar__fill { display: block; height: 100%; width: 0; background: var(--sw, #1A1A1A); transition: width 1s var(--ease); }
.mbar__val { font-family: var(--font-mono); font-size: 0.66rem; color: var(--fg); text-align: right; }
.mchart__src { font-family: var(--font-mono); font-size: 0.66rem; color: var(--g700);
  letter-spacing: 0.06em; margin-top: 4px; }
.mchart__empty { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding: 24px 0; }

/* tabella materiali */
.mtable-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--hair); }
.mtable { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 660px; }
.mtable th, .mtable td { text-align: right; padding: 12px 15px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.mtable th:first-child, .mtable td:first-child { text-align: left; }
.mtable th { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; user-select: none; background: var(--bg); }
.mtable th:hover { color: var(--fg); }
.mtable th.sort-asc, .mtable th.sort-desc { color: var(--fg); }
.mtable th.sort-asc::after { content: " ↑"; } .mtable th.sort-desc::after { content: " ↓"; }
.mtable td:first-child { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); }
.mtable tbody tr { transition: background .2s ease; }
.mtable tbody tr:hover { background: var(--hair); }

/* tabella laser */
.laser-table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--hair); }
.laser-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.laser-table th, .laser-table td { padding: 13px 16px; border-bottom: 1px solid var(--hair); text-align: center; }
.laser-table th:first-child, .laser-table td:first-child { text-align: left; font-family: var(--font-mono);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); }
.laser-table th { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.laser-table td { font-size: 1rem; }
.laser-table .note td { font-size: 0.78rem; color: var(--muted); text-align: left; }
.dot-yes { color: var(--fg); } .dot-no { color: var(--g300); } .dot-x { color: var(--g500); }
.laser-legend { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; }

/* =============================================================
   FORM GUIDATO (contatti)
   ============================================================= */
.qform { display: grid; gap: clamp(26px, 3.5vw, 42px); max-width: 780px; }
.qform__q { display: grid; gap: 14px; }
.qform__label { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.1; }
.qform__num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); font-weight: 400; flex: none; }
.qform__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: grid; gap: 8px; }
.field > label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--fg);
  background: transparent; border: 1px solid var(--hair-strong); padding: 14px 16px; width: 100%;
  border-radius: 0; transition: border-color .3s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--g500); }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .qform__grid { grid-template-columns: 1fr; } }
.qform__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.qform__hint { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); }
/* Richiamata telefonica (modulo contatti) */
.qcheck { display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.qcheck input { width: 16px; height: 16px; accent-color: var(--fg); cursor: pointer; flex: none; }
.qform__hint.is-err { color: var(--fg); }
.qform__hint.is-ok { color: var(--fg); }

/* =============================================================
   PREVENTIVATORE
   ============================================================= */
.quoter { display: grid; gap: clamp(22px, 3vw, 34px); }
.is-hidden { display: none !important; }

.dropzone { border: 1.5px dashed var(--hair-strong); padding: clamp(34px, 6vw, 66px);
  text-align: center; display: grid; gap: 12px; justify-items: center;
  transition: border-color .3s var(--ease), background .3s var(--ease); cursor: pointer; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--fg); background: var(--hair); }
.dropzone__icon { width: 42px; height: 42px; }
.dropzone__icon path, .dropzone__icon line { stroke: var(--fg); stroke-width: 1.5; fill: none; }
.dropzone__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.5rem); }
.dropzone__hint { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.dropzone input[type=file] { display: none; }

.qparams { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; }
.qfield { display: grid; gap: 8px; }
.qfield > label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.qfield select, .qfield input { font-family: var(--font-body); font-size: 0.98rem; color: var(--fg);
  background: transparent; border: 1px solid var(--hair-strong); padding: 12px 14px; width: 100%;
  border-radius: 0; -webkit-appearance: none; appearance: none; transition: border-color .3s var(--ease); }
.qfield select { background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.qfield select:focus, .qfield input:focus { outline: none; border-color: var(--fg); }
.qfield select option { color: #000; }

.qstate { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted); }

.qresult { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 840px) { .qresult { grid-template-columns: 1fr; } }
.qviewer { position: relative; aspect-ratio: 1 / 1; background: var(--ink); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); }
.qviewer canvas { width: 100%; height: 100%; display: block; }
.qviewer__zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.qviewer__zoom button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10,10,10,0.6); color: #fff; font-family: var(--font-mono); font-size: 1.05rem;
  line-height: 1; display: grid; place-items: center; transition: border-color .3s var(--ease); }
.qviewer__zoom button:hover { border-color: #fff; }
.qviewer__tag { position: absolute; top: 12px; left: 14px; font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g500); }
.qviewer__reg { position: absolute; width: 12px; height: 12px; }
.qviewer__reg::before, .qviewer__reg::after { content: ""; position: absolute; background: rgba(255,255,255,.5); }
.qviewer__reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.qviewer__reg::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

.qmetrics { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.qmetric { background: var(--bg); padding: 15px 18px; display: flex; justify-content: space-between;
  align-items: baseline; gap: 14px; }
.qmetric__k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); }
.qmetric__v { font-family: var(--font-mono); font-size: 1.02rem; color: var(--fg); text-align: right; font-weight: 700; }
.qmetric__v .u { font-weight: 400; font-size: 0.72em; color: var(--muted); margin-left: 3px; }
.qmetric__v small { display: block; font-weight: 400; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; }

.qprice { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--fg); }
.qprice__k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.qprice__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.01em; }
.qdisclaimer { font-family: var(--font-mono); font-size: 0.64rem; line-height: 1.5; color: var(--muted); }
.qactions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* preventivatore multi-pezzo */
.pieces { display: grid; gap: 14px; margin-top: 4px; }
.piece { display: grid; grid-template-columns: 130px 1fr; border: 1px solid var(--hair-strong); background: var(--bg); }
@media (max-width: 560px) { .piece { grid-template-columns: 92px 1fr; } }
.piece__view { position: relative; background: var(--ink); aspect-ratio: 1; overflow: hidden; }
.piece__view canvas { width: 100%; height: 100%; display: block; }
.piece__body { padding: 14px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.piece__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.piece__name { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece__remove { flex: none; width: 26px; height: 26px; border: 1px solid var(--hair-strong);
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1; color: var(--muted);
  display: grid; place-items: center; transition: border-color .3s var(--ease), color .3s var(--ease); }
.piece__remove:hover { border-color: var(--fg); color: var(--fg); }
.piece__params { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.piece__params label { display: grid; gap: 5px; font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.piece__params select, .piece__params input { font-family: var(--font-body); font-size: 0.9rem;
  color: var(--fg); background: transparent; border: 1px solid var(--hair-strong); padding: 8px 10px;
  border-radius: 0; -webkit-appearance: none; appearance: none; }
.piece__params input { width: 66px; }
.piece__params select { padding-right: 26px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.piece__params select:focus, .piece__params input:focus { outline: none; border-color: var(--fg); }
.piece__params select option { color: #000; }
.piece__hint { font-family: var(--font-body); font-size: 0.76rem; line-height: 1.45; color: var(--muted); margin: 0; }
.piece__hint strong { color: var(--fg); font-weight: 600; }
.piece__metrics { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; color: var(--muted);
  padding-top: 10px; border-top: 1px solid var(--hair); }
.piece__metrics strong { color: var(--fg); }
.piece__note { opacity: 0.7; }

.qtotal { display: grid; gap: 20px; margin-top: 8px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--fg); }
.qtotal__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.qtotal__stat { display: grid; gap: 5px; }
.qtotal__k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.qtotal__v { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--fg); }
.qtotal__v .u { font-weight: 400; font-size: 0.72em; color: var(--muted); margin-left: 3px; }
.qtotal .qprice { border: 0; padding: 0; }
.qtotal__count { margin: 0; color: var(--muted); }

/* ---------- Telefono: le etichette mono non scendono sotto i 12 px ---------- */
@media (max-width: 620px) {
  .mono, .eyebrow, .qform__hint, .field > label, .chip, .footer__bottom { font-size: 0.75rem; }
}

/* ---------- Accessibilità: salto al contenuto e focus da tastiera ---------- */
.skip { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 12px 18px;
  background: var(--white); color: var(--ink); font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; transform: translateY(-200%);
  transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Transizioni fra pagine (Chrome, Edge, Safari 18.2+; gli altri ignorano) ----------
   La barra di navigazione resta ferma, il contenuto scorre via come un foglio sul tavolo. */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

/* ---------- Linea di quota che misura la lettura (scroll-driven, nessun JS) ---------- */
@supports (animation-timeline: scroll()) {
  .nav::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
    background: var(--white); transform-origin: left; transform: scaleX(0);
    animation: quota linear both; animation-timeline: scroll(root); }
  @keyframes quota { to { transform: scaleX(1); } }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .draw-line { stroke-dashoffset: 0; }
  .cursor { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
