/* ==========================================================================
   Novatek S.r.l. – foglio di stile
   Nessuna risorsa esterna: font self-hosted, nessun cookie, nessun tracciamento.
   ========================================================================== */

/* ---------- Font (OFL, self-hosted) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Variabili ---------- */
:root {
  --ink: #0B141C;
  --ink-2: #0F1C26;
  --ink-3: #152532;
  --ink-line: rgba(255, 255, 255, .09);
  --paper: #F2F4F5;
  --white: #FFFFFF;
  --text: #0E1820;
  --muted: #53616C;
  --line: #D8DFE4;
  --on-dark: #E8EEF2;
  --on-dark-muted: #9FAEBA;
  --green: #2BAA4A;
  --green-hover: #33BC55;
  --green-led: #3DDC6A;
  --green-text: #1D7A34;
  --red: #E5283F;
  --red-led: #FF4D63;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 76px;
  --radius: 6px;
  --section-y: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgba(11, 20, 28, .06), 0 8px 24px rgba(11, 20, 28, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .75em;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow-light { color: var(--on-dark-muted); }
.eyebrow-num { color: var(--green-text); }
.eyebrow-light .eyebrow-num { color: var(--green-led); }
.eyebrow-num::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: .75em; vertical-align: middle; background: currentColor; opacity: .6; }
.section-title {
  font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1; letter-spacing: -.005em;
  margin-bottom: 1.25rem; text-wrap: balance;
}
.section-intro { max-width: 58ch; color: var(--muted); font-size: 1.125rem; }
.lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text); }

/* LED */
.led { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.led-green { background: var(--green-led); box-shadow: 0 0 0 3px rgba(61, 220, 106, .18), 0 0 12px rgba(61, 220, 106, .8); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.4em;
  font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.1; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .ic { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hover); box-shadow: 0 6px 22px rgba(43, 170, 74, .35); }
.btn-ghost-light { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .02); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn-outline-light { color: var(--on-dark); border-color: rgba(255, 255, 255, .22); }
.btn-outline-light:hover { border-color: var(--green); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #16222d; }
.btn-sm { min-height: 42px; padding: .6em 1em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(11, 20, 28, .82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
  color: var(--white);
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); background: rgba(11, 20, 28, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; color: var(--white); text-decoration: none; }
.brand-logo { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 12px;
  color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: color .2s;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--white); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  background: var(--ink); color: var(--on-dark);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% 10%, rgba(43, 170, 74, .16), transparent 60%),
    radial-gradient(800px 600px at 95% 95%, rgba(229, 40, 63, .12), transparent 60%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-title {
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 7.4vw, 6.25rem); line-height: .92; letter-spacing: -.01em;
  color: var(--white); margin-bottom: 1.5rem; text-wrap: balance;
}
.hero-title .accent { color: var(--green-led); }
.hero-lead { max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--on-dark-muted); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero-coords {
  margin: 10px 0 0; text-align: center;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; color: rgba(159, 174, 186, .7);
}

/* Quadrante 360° */
.dial { width: 100%; height: auto; overflow: visible; }
.dial .tick { fill: none; stroke: #fff; }
.dial .t1 { stroke-opacity: .2; stroke-width: 1; }
.dial .t2 { stroke-opacity: .38; stroke-width: 1.2; }
.dial .t3 { stroke-opacity: .7; stroke-width: 1.6; }
.dial .deg { font-family: var(--font-mono); font-size: 11px; fill: rgba(255, 255, 255, .45); text-anchor: middle; dominant-baseline: middle; }
.dial .seg { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 16; }
.dial .seg-label { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; fill: #C9D4DC; text-anchor: middle; }
.dial .node { fill: var(--ink); stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.dial .dial-bezel { transform-box: view-box; transform-origin: 50% 50%; animation: spin 120s linear infinite; }
.dial .seg { animation: seg-cycle 8s linear infinite; }
.dial .seg2 { animation-delay: 2s; }
.dial .seg3 { animation-delay: 4s; }
.dial .seg4 { animation-delay: 6s; }
.dial .node { animation: node-cycle 8s linear infinite; }
.dial .node2 { animation-delay: 2s; }
.dial .node3 { animation-delay: 4s; }
.dial .node4 { animation-delay: 6s; }
.dial .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4s ease-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes seg-cycle {
  0% { stroke: rgba(255, 255, 255, .12); }
  3%, 25% { stroke: var(--green); }
  30%, 100% { stroke: rgba(255, 255, 255, .12); }
}
@keyframes node-cycle {
  0%, 22% { fill: var(--green-led); stroke: var(--green-led); }
  28%, 100% { fill: var(--ink); stroke: rgba(255, 255, 255, .45); }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.32); opacity: 0; }
}

/* Letture (readouts) */
.readouts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--ink-line);
}
.readout { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 28px 24px 36px; border-left: 1px solid var(--ink-line); }
.readout:first-child { border-left: 0; padding-left: 0; }
.readout dd { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2.5rem, 4.4vw, 3.5rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.readout dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.readout:nth-child(3) dd { color: var(--green-led); }

/* ---------- Sezioni ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.section-ink .section-title { color: var(--white); }
.section-ink .section-intro { color: var(--on-dark-muted); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.ink-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- Azienda ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-copy p:not(.eyebrow):not(.lead) { color: var(--muted); max-width: 60ch; }
.about-copy .lead { max-width: 56ch; }

.titleblock { background: var(--white); border: 1.5px solid var(--text); border-radius: 2px; font-size: .95rem; box-shadow: 8px 8px 0 rgba(14, 24, 32, .06); }
.tb-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1.5px solid var(--text); }
.tb-mark { width: 40px; height: 40px; }
.tb-name { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 1.375rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.tb-sub { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tb-rows > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.tb-rows dt { padding: 12px 14px 12px 18px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); display: flex; align-items: center; }
.tb-rows dd { padding: 12px 18px; font-weight: 500; line-height: 1.4; }
.tb-foot { display: grid; grid-template-columns: repeat(3, 1fr); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--muted); }
.tb-foot span { padding: 10px 14px; text-align: center; border-left: 1px solid var(--line); }
.tb-foot span:first-child { border-left: 0; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 80px); }
.value { padding: 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { font-family: var(--font-cond); font-weight: 700; font-size: 1.5rem; margin: 18px 0 8px; }
.value p { margin: 0; color: var(--muted); font-size: 1rem; }
.value-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--ink); color: var(--green-led); }
.value-ic .ic { width: 22px; height: 22px; }
.value:nth-child(2) .value-ic { color: var(--red-led); }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  --accent: var(--green);
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s, background-color .25s;
}
.service-red { --accent: var(--red); }
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(.18); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.service:hover { border-color: #C3CDD4; background: var(--white); box-shadow: var(--shadow); transform: translateY(-3px); }
.service:hover::before { transform: scaleX(1); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.service-num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: var(--muted); }
.service-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.service-ic .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.service:hover .service-ic { color: var(--accent); }
.service h3 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(1.625rem, 2.4vw, 2rem); margin-bottom: 12px; }
.service p { color: var(--muted); margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips li { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text); }

/* ---------- Metodo ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: linear-gradient(90deg, var(--green) 0%, rgba(255, 255, 255, .18) 12%, rgba(255, 255, 255, .18) 88%, var(--red) 100%); }
.step { position: relative; padding-top: 44px; }
.step-node { position: absolute; top: 0; left: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--green); }
.step-node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--green-led); box-shadow: 0 0 12px rgba(61, 220, 106, .7); }
.step-node-red { border-color: var(--red); }
.step-node-red::after { background: var(--red-led); box-shadow: 0 0 12px rgba(255, 77, 99, .6); }
.step-num { display: block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--on-dark-muted); margin-bottom: 10px; }
.step h3 { font-family: var(--font-cond); font-weight: 700; font-size: 1.75rem; color: var(--white); margin-bottom: 10px; }
.step p { color: var(--on-dark-muted); margin: 0; font-size: 1rem; max-width: 30ch; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--ink-2); color: var(--on-dark); border-top: 1px solid var(--ink-line); overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--green) 0 50%, var(--red) 50% 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 6vw, 72px); flex-wrap: wrap; }
.cta-title { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.75rem); color: var(--white); margin-bottom: 8px; text-wrap: balance; }
.cta-text { margin: 0; color: var(--on-dark-muted); font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 32px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 44px 88px minmax(0, 1fr); align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--green); }
.contact-ic .ic { width: 20px; height: 20px; }
.contact-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 500; font-size: 1.0625rem; text-decoration: none; overflow-wrap: anywhere; }
a.contact-value { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
a.contact-value:hover { background-size: 100% 1px; }
.contact-big { font-family: var(--font-cond); font-weight: 700; font-size: 1.875rem; letter-spacing: .01em; line-height: 1.1; }

.location { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.location-map { background: var(--ink); aspect-ratio: 400 / 260; max-width: 100%; }
.map-art { width: 100%; height: 100%; }
.map-art .ring { fill: none; stroke: rgba(43, 170, 74, .5); stroke-width: 1; }
.map-art .r2 { stroke-opacity: .5; }
.map-art .r3 { stroke-opacity: .25; }
.map-art .map-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; fill: rgba(159, 174, 186, .8); }
.map-pin { animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(182px, 88px); } 50% { transform: translate(182px, 82px); } }
.location-body { padding: 26px 28px 30px; }
.location-label { margin: 0 0 6px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.location-address { font-family: var(--font-cond); font-weight: 700; font-size: 1.75rem; line-height: 1.15; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 80px); font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--green-led); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 48px; }
.footer-logo { width: 220px; height: auto; color: var(--white); margin-bottom: 18px; }

.footer-brand p { max-width: 32ch; margin: 0; }
.footer-head { margin: 0 0 14px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.footer-col li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-legal { border-top: 1px solid var(--ink-line); padding-block: 22px 28px; font-size: .82rem; line-height: 1.6; }
.footer-legal p { margin: 0 0 8px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.footer-legal a:hover { text-decoration-color: currentColor; }

/* ---------- Pagine interne (privacy, 404) ---------- */
.page-hero { position: relative; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 56px) 0 56px; background: var(--ink); color: var(--on-dark); isolation: isolate; }
.page-hero .section-title { color: var(--white); margin: 0; }
.page-hero .hero-bg::before { -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%); mask-image: linear-gradient(90deg, #000, transparent 80%); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-cond); font-weight: 700; font-size: 1.75rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33424D; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--green-text); text-underline-offset: 2px; }
.prose .updated { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--on-dark); padding: 40px var(--gutter); isolation: isolate; position: relative; overflow: hidden; }
.notfound .code { font-family: var(--font-mono); letter-spacing: .3em; color: var(--red-led); font-size: .85rem; margin-bottom: 16px; }
.notfound h1 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.5rem); color: var(--white); text-transform: uppercase; margin-bottom: 14px; }
.notfound p { color: var(--on-dark-muted); max-width: 40ch; margin: 0 auto 28px; }
.notfound .nf-logo { width: 220px; margin: 0 auto 48px; color: var(--white); }

/* ---------- Animazioni di comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d2 { transition-delay: .08s; }
.js .reveal.d3 { transition-delay: .16s; }
.js .reveal.d4 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 460px; margin-top: 8px; }
  .readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout:nth-child(3) { border-left: 0; padding-left: 0; }
  .readout:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .titleblock { max-width: 560px; }
  .values { grid-template-columns: 1fr; gap: 14px; }
  .value { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; align-items: start; padding: 24px; }
  .value-ic { grid-row: span 2; }
  .value h3 { margin: 2px 0 6px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
  .step { padding-top: 40px; }
  .step::before { content: ""; position: absolute; left: 30px; right: 0; top: 11px; height: 1px; background: rgba(255, 255, 255, .16); }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
    color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle .ic { width: 22px; height: 22px; }
  .nav-toggle .ic-close { display: none; }
  .nav-open .nav-toggle .ic-open { display: none; }
  .nav-open .nav-toggle .ic-close { display: block; }
  .js .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px;
    background: var(--ink); border-bottom: 1px solid var(--ink-line); box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .js.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--ink-line); }
  .js .site-nav ul a::after { display: none; }
  .nav-cta { align-self: flex-start; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-logo { height: 28px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .step::before { display: none; }
  .step { padding: 0 0 0 44px; }
  .step-node { top: 2px; }
  .steps::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 30px; width: 1px; background: rgba(255, 255, 255, .16); }
  .readout { padding: 22px 16px 26px; }
  .contact-list li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 2px; }
  .contact-list .contact-ic { grid-row: span 2; }
  .contact-big { font-size: 1.625rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col-nav { order: 1; }
  .footer-col-address { order: 2; }
  .footer-col-contacts { order: 3; grid-column: 1 / -1; }
  .tb-rows > div { grid-template-columns: 116px minmax(0, 1fr); }
  .tb-rows dt { padding-left: 14px; letter-spacing: .1em; }
  .tb-rows dd { padding-inline: 14px; }
  .cta-actions .btn { flex: 1 1 auto; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-col-contacts { grid-column: auto; }
  .readout dd { font-size: 2.25rem; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dial .seg1 { stroke: var(--green); }
  .dial .node1 { fill: var(--green-led); stroke: var(--green-led); }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .hero-visual, .cta, .nav-toggle, .skip-link { display: none !important; }
  .hero, .section-ink, .site-footer { background: #fff !important; color: #000 !important; }
  .hero-title, .section-ink .section-title, .step h3, .readout dd { color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
