/* ==========================================================
   SicilyHackLab — style.css
   Tema scuro con colori fluo. Nessuna risorsa esterna:
   compatibile con la CSP "style-src 'self'" (niente stili inline).
   ========================================================== */

:root {
  --bg: #05060a;
  --bg-2: #080a12;
  --surface: #0b0e18;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #eef1f8;
  --soft: #b6bed0;
  --muted: #838ca0;
  --green: #39ff14;
  --cyan: #00e5ff;
  --pink: #ff2bd6;
  --green-rgb: 57,255,20;
  --cyan-rgb: 0,229,255;
  --pink-rgb: 255,43,214;
  --c: var(--cyan-rgb);
  --ink: #041006;
  --grad: linear-gradient(90deg, var(--cyan), var(--green));
  --grad-3: linear-gradient(90deg, var(--cyan), var(--green) 50%, var(--pink));
  --radius: 18px;
  --nav-h: 72px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Cascadia Mono", Consolas, "Roboto Mono", Menlo, monospace;
}
.c-green { --c: var(--green-rgb) }
.c-cyan  { --c: var(--cyan-rgb) }
.c-pink  { --c: var(--pink-rgb) }

/* ── BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100% }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
ul, ol { list-style: none }
h1, h2, h3 { color: #fff }
[hidden] { display: none !important }
::selection { background: var(--green); color: var(--ink) }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px }
main:focus { outline: none }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden }
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 10px 16px; border-radius: 10px;
  background: var(--green); color: var(--ink); font-weight: 700;
  transition: top .2s ease;
}
.skip:focus { top: 12px }

.grad-text { color: var(--green) }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}

/* ── PULSANTI ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s ease }
.btn:hover .ico-arrow { transform: translateX(3px) }
.btn-primary {
  background: var(--green); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(var(--green-rgb),.6), 0 0 24px rgba(var(--green-rgb),.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--green), 0 10px 34px rgba(var(--green-rgb),.45);
}
.btn-ghost {
  background: rgba(255,255,255,.03); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb),.5);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(var(--cyan-rgb),.08);
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 26px rgba(var(--cyan-rgb),.3);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px }
.actions-center { justify-content: center }

/* ── NAVIGAZIONE ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5,6,10,.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.nav.scrolled { background: rgba(5,6,10,.94) }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 800; letter-spacing: .08em; white-space: nowrap;
}
.brand img { height: 36px; width: auto }
.hl { color: var(--green); text-shadow: 0 0 12px rgba(var(--green-rgb),.55) }
.nav-right { display: flex; align-items: center; gap: 20px }
.nav-links { display: flex; align-items: center; gap: 28px }
.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--soft);
  transition: color .2s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active { color: #fff }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1) }
.nav-links .nav-cta {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: var(--green); color: var(--ink); font-weight: 700;
  box-shadow: 0 0 18px rgba(var(--green-rgb),.3);
  transition: box-shadow .25s ease, transform .25s ease;
}
.nav-links .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 26px rgba(var(--green-rgb),.6) }
.nav-back { font-size: 14px; font-weight: 500; color: var(--soft); transition: color .2s ease }
.nav-back:hover { color: #fff }
.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.lang-switch a {
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.lang-switch a:hover { color: #fff }
.lang-switch a.active {
  color: var(--cyan); background: rgba(var(--cyan-rgb),.12);
  box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb),.45);
}
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  place-items: center; color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.menu-btn .ico { width: 22px; height: 22px }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  pointer-events: none;
  background: var(--grad-3);
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 10px rgba(var(--cyan-rgb),.7);
}

/* ── HERO ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 64px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--cyan-rgb),.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--cyan-rgb),.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 80%);
}
.glow { position: absolute; border-radius: 50% }
.glow-cyan  { width: 760px; height: 760px; top: -280px; right: -220px; background: radial-gradient(circle, rgba(var(--cyan-rgb),.2), transparent 62%) }
.glow-pink  { width: 640px; height: 640px; bottom: -300px; left: -240px; background: radial-gradient(circle, rgba(var(--pink-rgb),.15), transparent 62%) }
.glow-green { width: 560px; height: 560px; top: 28%; left: 42%; background: radial-gradient(circle, rgba(var(--green-rgb),.07), transparent 60%) }
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 25%, transparent 85%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 7px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  background: rgba(var(--green-rgb),.06);
  box-shadow: inset 0 0 0 1px rgba(var(--green-rgb),.35);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 56px); line-height: 1.06;
  font-weight: 900; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 580px; margin-bottom: 36px;
  font-size: clamp(16.5px, 1.5vw, 19px); color: var(--soft);
}

/* terminale decorativo */
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: end }
.terminal {
  position: relative; overflow: hidden; border-radius: 16px;
  font-family: var(--mono);
  background: rgba(7,9,16,.9);
  box-shadow: 0 0 0 1px rgba(var(--cyan-rgb),.3), 0 30px 80px rgba(0,0,0,.55), 0 0 70px rgba(var(--cyan-rgb),.12);
}
.terminal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink) }
.term-bar i:nth-child(2) { background: #ffe600 }
.term-bar i:nth-child(3) { background: var(--green) }
.term-title { margin-left: 10px; font-size: 12px; color: var(--muted) }
.term-body { padding: 20px 22px 24px; font-size: 13.5px; line-height: 1.9 }
.term-line { min-height: 1.9em; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); opacity: 0 }
.term-line.shown { opacity: 1 }
.term-line.t-final { color: #fff; font-weight: 700 }
.t-p, .t-ok { color: var(--green) }
.t-c { color: #fff }
.t-w { color: var(--pink) }
.t-i { color: var(--cyan) }
.t-d { color: var(--muted) }
.cursor {
  display: inline-block; width: .6em; height: 1.1em; margin-left: 3px; vertical-align: -.2em;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blink 1s steps(1) infinite;
}
.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: rgba(7,9,16,.92);
  box-shadow: inset 0 0 0 1px rgba(var(--c),.55), 0 0 26px rgba(var(--c),.22);
  animation: float 6s ease-in-out infinite;
}
.chip .ico { width: 16px; height: 16px; color: rgb(var(--c)) }
.chip-a { top: -18px; left: -22px }
.chip-b { bottom: -18px; right: -14px; animation-delay: -3s }

/* numeri chiave */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px; border-radius: 18px; overflow: hidden;
  background: rgba(8,10,18,.62);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.stat { position: relative; padding: 22px 20px; text-align: center }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%;
  width: 1px; background: var(--line-2);
}
.stat-num {
  display: inline-block;
  font-size: clamp(22px, 2.3vw, 28px); font-weight: 900; line-height: 1.2; letter-spacing: -.02em;
}
.stat-label { display: block; margin-top: 2px; font-size: 13px; color: var(--muted) }

/* entrata dell'hero (solo CSS, nessun JavaScript) */
.enter { animation: enter .9s cubic-bezier(.2,.7,.2,1) both }
.d1 { animation-delay: .08s }
.d2 { animation-delay: .16s }
.d3 { animation-delay: .24s }
.d4 { animation-delay: .34s }
.d5 { animation-delay: .46s }

/* ── NASTRO SCORREVOLE ── */
.ticker {
  position: relative; overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(var(--cyan-rgb),.06), rgba(var(--green-rgb),.05), rgba(var(--pink-rgb),.06));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content }
.ticker.ready .ticker-track { animation: marquee 48s linear infinite }
.ticker:hover .ticker-track { animation-play-state: paused }
.ticker-group { display: flex; flex: none }
.ticker-item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: var(--soft);
}
.ticker-item::after {
  content: ""; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--green); box-shadow: 0 0 10px var(--green);
}

/* ── SEZIONI ── */
.section { position: relative; padding: 112px 0 }
.section-alt { background: var(--bg-2) }
.section-alt::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: min(760px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb),.55), transparent);
}
.section-head { max-width: 720px; margin-bottom: 56px }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green);
}
.kicker::before { content: "//"; color: var(--cyan); letter-spacing: 0 }
h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1;
  font-weight: 900; letter-spacing: -.03em;
  text-wrap: balance;
}
.section-lead { max-width: 640px; font-size: 17.5px; color: var(--soft) }

.ico-box {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  color: rgb(var(--c)); background: rgba(var(--c),.08);
  box-shadow: inset 0 0 0 1px rgba(var(--c),.35), 0 0 22px rgba(var(--c),.12);
}
.ico-box .ico { filter: drop-shadow(0 0 6px rgba(var(--c),.55)) }

/* chi siamo */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px; align-items: center;
}
.about-text p:not(.kicker) { margin-bottom: 18px; font-size: 16.5px; color: var(--soft) }
.mission {
  position: relative; overflow: hidden;
  margin-top: 30px; padding: 24px 26px 24px 30px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--green-rgb),.09), rgba(var(--cyan-rgb),.04));
  box-shadow: inset 0 0 0 1px rgba(var(--green-rgb),.3);
}
.mission::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  box-shadow: 0 0 14px rgba(var(--green-rgb),.8);
}
.mission-label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.about-text .mission p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; color: #fff }
.pillars { display: grid; gap: 16px }
.pillar {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px; border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1px rgba(var(--c),.5), 0 0 34px rgba(var(--c),.1) }
.pillar h3 { margin-bottom: 4px; font-size: 17px }
.pillar p { font-size: 14.5px; color: var(--muted) }

/* servizi */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }
.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  transition: transform .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(var(--c),.6), rgba(255,255,255,.07) 40%, rgba(255,255,255,.05) 65%, rgba(var(--c),.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .6; transition: opacity .3s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--c),.14), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { transform: translateY(-6px) }
.card:hover::before, .card:hover::after { opacity: 1 }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px }
.card .ico-box { width: 52px; height: 52px; border-radius: 14px }
.card .ico-box .ico { width: 26px; height: 26px }
.card-num { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: rgba(var(--c),.85) }
.card h3 { margin-bottom: 10px; font-size: 18.5px; line-height: 1.3 }
.card p { font-size: 14.8px; color: var(--muted) }

/* metodo */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: calc(12.5% - 9px); right: calc(12.5% - 9px);
  height: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--green) 33%, var(--pink) 67%, var(--green));
  box-shadow: 0 0 14px rgba(var(--cyan-rgb),.55);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .15s;
}
.step { position: relative; text-align: center }
.step-node {
  position: relative; z-index: 1;
  width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px; font-weight: 800; color: rgb(var(--c));
  background: var(--bg);
  box-shadow: inset 0 0 0 2px rgb(var(--c)), 0 0 24px rgba(var(--c),.45);
}
.step-tag {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: rgb(var(--c));
}
.step h3 { margin-bottom: 8px; font-size: 19px }
.step p { max-width: 250px; margin: 0 auto; font-size: 14.8px; color: var(--muted) }

/* contatti */
.contact-panel {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 920px; margin: 0 auto; padding: 68px 48px; border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(640px 320px at 50% -10%, rgba(var(--green-rgb),.13), transparent 70%),
    radial-gradient(520px 300px at 100% 110%, rgba(var(--pink-rgb),.1), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}
.contact-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(var(--cyan-rgb),.7), rgba(var(--green-rgb),.35) 45%, rgba(var(--pink-rgb),.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.contact-panel .section-lead { margin: 0 auto 36px }
.mail-box {
  display: inline-flex; align-items: center; gap: 18px; max-width: 100%;
  margin-bottom: 30px; padding: 16px 26px 16px 16px; border-radius: 18px;
  text-align: left;
  background: rgba(0,0,0,.35);
  box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb),.35);
}
.mail-ico {
  flex: none; width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green); color: var(--ink);
  box-shadow: 0 0 28px rgba(var(--green-rgb),.5);
}
.mail-ico .ico { width: 26px; height: 26px; stroke-width: 2 }
.mail-meta { min-width: 0 }
.mail-label {
  display: block;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.mail-addr {
  display: inline-block;
  font-family: var(--mono); font-size: clamp(17px, 2.4vw, 25px); font-weight: 700;
  color: #fff; overflow-wrap: anywhere;
  transition: color .2s ease;
}
a.mail-addr:hover { color: var(--cyan) }
.copy-status { min-height: 1.5em; margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--green) }
.contact-note { max-width: 560px; margin: 18px auto 0; font-size: 13.5px; color: var(--muted) }
.contact-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px }
.contact-note a:hover { color: var(--green) }

/* ── FOOTER ── */
.footer {
  position: relative; padding: 34px 0;
  background: #030407; border-top: 1px solid var(--line);
}
.footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; opacity: .55;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), var(--pink), transparent);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px }
.footer .brand { font-size: 13px }
.footer .brand img { height: 28px }
.footer-legal { font-size: 13.5px; color: var(--muted) }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px }
.footer-links a { color: var(--soft); transition: color .2s ease }
.footer-links a:hover { color: var(--cyan) }

/* ── PAGINE LEGALI ── */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08;
  font-weight: 900; letter-spacing: -.03em;
}
.page-hero p:not(.kicker) { max-width: 720px; font-size: 15px; color: var(--muted) }
.legal { padding: 56px 0 104px }
.legal .container { max-width: 880px }
.legal h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 52px 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; font-weight: 800; letter-spacing: -.01em;
}
.legal h2 .num { flex: none; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--green) }
.legal p, .legal li { font-size: 15.5px; color: var(--soft) }
.legal p { margin-bottom: 14px }
.legal ul { list-style: disc; margin-bottom: 14px; padding-left: 22px }
.legal li { margin-bottom: 8px }
.legal li::marker { color: var(--cyan) }
.legal strong { color: #fff }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px }
.legal a:hover { color: var(--green) }
.info-box {
  margin-bottom: 8px; padding: 24px 28px; border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb),.3), 0 0 40px rgba(var(--cyan-rgb),.06);
}
.info-box p { margin: 0; font-size: 15px; line-height: 1.85 }

/* pagina 404 */
.notfound {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 64px 0;
}
.notfound h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.05; font-weight: 900; letter-spacing: -.035em;
}
.notfound .section-lead { margin-bottom: 32px }

/* ── COMPARSA ALLO SCROLL (attivata da JS solo sotto la piega) ── */
.reveal.armed { opacity: 0; transform: translateY(26px); transition: none }
.reveal.in {
  transition:
    opacity .7s ease var(--delay, 0ms),
    transform .7s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms);
}
.steps.armed::before { transform: scaleX(0); transition: none }

/* ── ANIMAZIONI ── */
@keyframes enter   { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@keyframes pulse   { 0%, 100% { opacity: 1; transform: scale(1) } 50% { opacity: .35; transform: scale(.7) } }
@keyframes blink   { 50% { opacity: 0 } }
@keyframes float   { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 60px }
  .hero-visual { justify-self: center; max-width: 560px }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 48px }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 900px) {
  .nav-right { gap: 12px }
  .menu-btn { display: grid }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 24px 22px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0,0,0,.55);
  }
  .nav-links.open { display: flex }
  .nav-links li + li { border-top: 1px solid var(--line) }
  .nav-links li:last-child { border-top: 0; padding-top: 14px }
  .nav-links a { display: block; padding: 14px 0; font-size: 15px }
  .nav-links a:not(.nav-cta)::after { display: none }
  .nav-links .nav-cta { display: block; padding: 13px 18px; text-align: center }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .stat + .stat::before { display: none }
  .stat:nth-child(even) { box-shadow: inset 1px 0 0 var(--line) }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line) }
}
@media (max-width: 720px) {
  .section { padding: 84px 0 }
  .section-head { margin-bottom: 40px }
  .services-grid { grid-template-columns: minmax(0, 1fr) }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px }
  .steps::before {
    top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto;
    transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--cyan), var(--green) 33%, var(--pink) 67%, var(--green));
  }
  .steps.armed::before { transform: scaleY(0) }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; text-align: left }
  .step-node { grid-row: 1 / span 3; margin: 0 }
  .step p { max-width: none; margin: 0 }
  .contact-panel { padding: 52px 22px; border-radius: 22px }
  .mail-box { flex-direction: column; width: 100%; padding: 20px 18px; text-align: center }
  .chip-a { left: -6px }
  .chip-b { right: -6px }
}
@media (max-width: 480px) {
  .container { padding: 0 16px }
  .actions { flex-direction: column }
  .btn { width: 100%; white-space: normal }
  .term-body { padding: 16px 16px 20px; font-size: 12px }
  .stat { padding: 18px 12px }
  .nav-back { display: none }
}
@media (max-width: 380px) {
  .brand span { display: none }
  .eyebrow { font-size: 11px; letter-spacing: .1em }
}

/* ── ACCESSIBILITÀ: movimento ridotto ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .term-line { opacity: 1 }
}
