/* Caratteri ospitati sul sito (7/11/2026): niente Google Fonts. Instrument Serif si usa solo in corsivo. */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* ==========================================================================
   prelli.it — foglio di stile unico
   Scuro navy + ottone. Mobile-first. Nessuna build.
   ========================================================================== */

:root {
  --bg: #080d1a;
  --bg-2: #0c1222;
  --surface: rgba(16, 22, 42, .55);
  --surface-solid: #0b1021;
  --line: rgba(214, 200, 170, .12);
  --line-2: rgba(214, 200, 170, .24);
  --text: #f4f1ea;
  --text-2: #bfbfc4;
  --muted: #8f93a1;
  --accent: #c9a45c;
  --accent-hi: #e0c07e;
  --cyan: #efe1bd;
  --ok: #a8d5a2;
  --err: #ff8b8b;
  --on-accent: #17120a;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(6rem, 13vw, 11rem);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 1rem); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: transparent; color: var(--text);
  font-family: var(--f-sans); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { left: -9999px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: 10px; transition: top .2s; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Livelli: canvas WebGL dietro, contenuto sopra */
main, .site-header, .site-footer { position: relative; z-index: 2; }
.gl {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
.gl.is-ready { opacity: var(--gl-opacity, 1); }
body::before { /* bagliore di fondo, sempre presente anche senza WebGL */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% 12%, rgba(201, 164, 92, .16), transparent 70%),
    radial-gradient(50vw 40vh at 8% 88%, rgba(239, 225, 189, .06), transparent 70%);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia comune ---------- */
h2 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 500; line-height: 1.02;
  letter-spacing: -.038em; text-wrap: balance; max-width: 20ch;
}
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
p { color: var(--text-2); max-width: 64ch; text-wrap: pretty; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h2 em, .h1-main em {
  background: linear-gradient(100deg, var(--accent-hi) 0%, var(--cyan) 60%, #f7eedb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }

.label {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi);
}
.label span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 1.6rem; padding: 0 .55rem;
  border: 1px solid var(--line-2); border-radius: 99px; color: var(--text-2);
  letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums;
}
.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-intro { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }

/* ---------- Pulsanti ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: var(--h); padding: 0 1.6rem; border-radius: 99px; overflow: hidden; isolation: isolate;
  font-weight: 500; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap;
  transition: box-shadow .4s var(--ease-out), border-color .3s, background-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn > * { position: relative; z-index: 1; pointer-events: none; }
.btn::before { /* riempimento circolare al passaggio */
  content: ""; position: absolute; left: 50%; top: 100%; z-index: 0; width: 140%; aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, 0) scale(0); transition: transform .6s var(--ease-out);
}
.btn .i { transition: transform .45s var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(224, 192, 126, .5) inset, 0 12px 40px -12px rgba(201, 164, 92, .9); }
.btn-primary::before { background: var(--text); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost::before { background: rgba(224, 192, 126, .14); }
.btn-sm { --h: 42px; padding: 0 1.1rem; font-size: .92rem; }
@media (hover: hover) {
  .btn:hover::before { transform: translate(-50%, -62%) scale(1); }
  .btn-primary:hover { color: var(--bg); box-shadow: 0 0 0 1px var(--text) inset, 0 16px 50px -12px rgba(224, 192, 126, .9); }
  .btn:hover .i { transform: translateX(3px); }
  .btn:hover .i use[href="#i-arrow-up"] { transform: none; }
}
.btn:active { transform: scale(.98); }

.text-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-hi); font-weight: 500; border-bottom: 1px solid rgba(224, 192, 126, .35); padding-bottom: .15rem; transition: color .25s, border-color .25s; }
.text-link:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; gap: 1rem; padding-inline: var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: transform .5s var(--ease-out), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(8, 13, 26, .62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-105%); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 500; letter-spacing: -.02em; min-height: 44px; justify-self: start; }
.header-actions { display: flex; align-items: center; gap: .75rem; justify-self: end; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8c6b2c); color: var(--on-accent); font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 0 0 1px rgba(224, 192, 126, .45) inset, 0 8px 24px -8px rgba(201, 164, 92, .9);
}
.brand-name { font-size: 1.02rem; }
.site-nav ul { display: flex; gap: .25rem; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  font-size: .93rem; color: var(--text-2); transition: color .25s;
}
.site-nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 10px; height: 1px; background: var(--accent-hi);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.lang-switch {
  display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 99px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; color: var(--text-2); border: 1px solid var(--line);
  transition: color .25s, border-color .25s;
}
.lang-switch:hover { color: var(--text); border-color: var(--line-2); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line-2); position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .45s var(--ease-out), opacity .2s;
}
.menu-lines::before, .menu-lines::after { content: ""; }
.menu-lines::before { transform: translate(-50%, calc(-50% - 5px)); }
.menu-lines::after { transform: translate(-50%, calc(-50% + 5px)); }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-open .menu-lines::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (min-width: 1200px) { .site-header { display: grid; grid-template-columns: 1fr auto 1fr; } }
@media (max-width: 1199px) {
  .brand { margin-right: auto; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: rgba(8, 13, 26, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s .45s;
  }
  .site-nav ul { flex-direction: column; gap: .2rem; width: 100%; }
  .site-nav a { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.035em; color: var(--text); padding: .15rem 0; min-height: 0; }
  .site-nav a::after { display: none; }
  .site-nav li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
  .menu-open .site-nav li { opacity: 1; transform: none; }
  .menu-open .site-nav li:nth-child(2) { transition-delay: .04s; } .menu-open .site-nav li:nth-child(3) { transition-delay: .08s; }
  .menu-open .site-nav li:nth-child(4) { transition-delay: .12s; } .menu-open .site-nav li:nth-child(5) { transition-delay: .16s; }
  .menu-open .site-nav li:nth-child(6) { transition-delay: .2s; } .menu-open .site-nav li:nth-child(7) { transition-delay: .24s; }
  .menu-open .site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; padding-top: calc(var(--header-h) + clamp(1rem, 4vh, 3rem)); padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.hero-inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: clamp(1.2rem, 3.5vh, 2rem); padding: .45rem .9rem .45rem .7rem;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgba(11, 16, 33, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(239, 225, 189, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 225, 189, .55); } 70% { box-shadow: 0 0 0 10px rgba(239, 225, 189, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 225, 189, 0); } }

.hero-title { font-weight: 500; }
.h1-kicker { display: block; max-width: 60ch; margin-bottom: clamp(.8rem, 2.4vh, 1.4rem); font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); line-height: 1.5; letter-spacing: 0; color: var(--text-2); font-weight: 400; }
.h1-main {
  display: block; max-width: 15.5ch; font-size: clamp(2.5rem, min(1.1rem + 6.6vw, 11.5vh), 7.4rem);
  line-height: .98; letter-spacing: -.048em; color: var(--text);
}
.h1-main .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.h1-main .w > span { display: inline-block; transform: translateY(105%); animation: word-in 1.25s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .055s); }
@keyframes word-in { to { transform: none; } }
.hero-lead { margin-top: clamp(1.2rem, 3.5vh, 2rem); max-width: 56ch; font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.4rem, 4vh, 2.4rem); max-width: none; }
[data-hero] { opacity: 0; transform: translateY(18px); animation: fade-up 1.1s var(--ease-out) forwards; }
.eyebrow[data-hero] { animation-delay: .05s; }
.h1-kicker[data-hero] { animation-delay: .15s; }
.hero-lead[data-hero] { animation-delay: .85s; }
.hero-cta[data-hero] { animation-delay: 1s; }
.scroll-cue[data-hero] { animation-delay: 1.4s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-height: 44px;
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--accent-hi), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 639px), (max-height: 700px) { .scroll-cue { display: none; } }

/* ---------- Chi sono ---------- */
.about-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.about-text p { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); }
.about-text h2 { margin-bottom: .6rem; }
.about-photo { position: relative; max-width: 520px; justify-self: center; width: 100%; }
.photo-frame {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #1b1d22;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -40px rgba(201, 164, 92, .55);
}
.photo-frame::after { /* velo blu leggero per legare la foto alla palette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 13, 26, .55)), linear-gradient(120deg, rgba(201, 164, 92, .12), transparent 45%);
}
.photo-frame img { width: 100%; will-change: transform; }
.about-photo figcaption { margin-top: 1rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.statement {
  margin-top: clamp(5rem, 12vw, 10rem); max-width: var(--wrap);
  font-size: clamp(1.75rem, 1rem + 3.4vw, 4rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; color: var(--text);
  text-wrap: balance;
}
.statement .sw { transition: color .2s; }

/* ---------- Percorso ---------- */
.path { padding-bottom: 0; }
.path-pin { position: relative; }
.path-track {
  display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; counter-reset: step;
}
.path-step {
  position: relative; padding: 1.8rem 1.6rem 1.9rem 3.2rem; border-left: 1px solid var(--line-2);
}
.path-step::before { /* nodo sulla linea */
  content: ""; position: absolute; left: -6px; top: 2.05rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-hi); box-shadow: 0 0 0 5px rgba(201, 164, 92, .12);
}
.path-step:last-child::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 22px rgba(239, 225, 189, .8); }
.path-tag { display: inline-block; margin-bottom: .8rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.path-step h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem); letter-spacing: -.025em; margin-bottom: .7rem; }
.path-step p { font-size: 1rem; }
.path-line { display: none; }

/* orizzontale fissato (desktop, attivato dal JS) */
.has-hpath .path-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.has-hpath .path-track { display: flex; gap: 0; width: max-content; max-width: none; margin-inline: 0; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform; }
.has-hpath .path-step { width: clamp(340px, 30vw, 440px); flex: none; border-left: 0; border-top: 1px solid var(--line-2); padding: 2.6rem 3rem 0 0; }
.has-hpath .path-step::before { left: 0; top: -6px; }
.has-hpath .path-line { display: block; position: relative; margin: 3rem auto 0; width: min(var(--wrap), 100%); padding-inline: var(--gutter); }
.has-hpath .path-line::before { content: ""; display: block; height: 2px; background: var(--line); border-radius: 2px; }
.has-hpath .path-line span { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transform-origin: left; transform: scaleX(0); border-radius: 2px; box-shadow: 0 0 16px rgba(239, 225, 189, .6); }

.sectors { padding-block: clamp(5rem, 11vw, 9rem) clamp(2rem, 5vw, 4rem); text-align: center; }
.sectors-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.sectors-head h3 { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); }
.sectors-head h3::before, .sectors-head h3::after { content: ""; width: 2.5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-hi)); }
.sectors-head h3::after { transform: scaleX(-1); }
.sectors-head p { margin-inline: auto; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.55; color: var(--text-2); }
.sector-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em 0; max-width: 1180px; margin-inline: auto; }
.sector-cloud li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.9rem, 1rem + 4.2vw, 5rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; color: var(--text);
  transition: color .4s;
}
.sector-cloud li:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent-hi); }
.sector-cloud li:not(:last-child)::after { content: ""; flex: none; width: .16em; height: .16em; margin: 0 .38em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
@media (hover: hover) { .sector-cloud li:hover { color: var(--cyan); } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.chips li { padding: .55rem 1rem; border: 1px solid var(--line-2); border-radius: 99px; font-size: .93rem; color: var(--text-2); background: rgba(11, 16, 33, .5); transition: border-color .3s, color .3s, background-color .3s; }
.chips li:hover { border-color: var(--accent-hi); color: var(--text); background: rgba(201, 164, 92, .12); }

/* ---------- Schede servizi (con riflesso che segue il mouse) ---------- */
.cards { display: grid; gap: 1rem; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(20, 27, 52, .72), rgba(9, 13, 27, .72)); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 164, 92, .22), transparent 60%);
}
.card::after { /* bordo illuminato */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(224, 192, 126, .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; padding: 11px; margin-bottom: 2.2rem; border-radius: 14px; color: var(--accent-hi);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(201, 164, 92, .1); box-shadow: 0 0 0 1px rgba(224, 192, 126, .25) inset;
}
.card h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -.025em; margin-bottom: .9rem; }
.card p { font-size: 1rem; }
.card { display: flex; flex-direction: column; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 1.6rem; align-self: flex-start; min-height: 44px; color: var(--accent-hi); font-weight: 500; }
.card-link .i { transition: transform .4s var(--ease-out); }
.card-link:hover .i { transform: translateX(4px); }

/* ---------- AI locale ---------- */
.ai-grid, .infra-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: start; }
.ai-text > p, .infra-text > p { margin-top: 1.4rem; }
.ai-text h2, .infra-text h2 { font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.8rem); }
.ai-text > h3 { margin-top: 3rem; }
.about-grid > *, .ai-grid > *, .infra-grid > *, .contact-grid > *, .area-grid > * { min-width: 0; }
.feature-list { display: grid; gap: 0; margin-top: 2.6rem; border-top: 1px solid var(--line); }
.feature { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.feature h3 { margin-bottom: .45rem; }
.feature p { font-size: 1rem; }
.demo-slot:empty { display: none; }

.window {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 20, 40, .92), rgba(7, 10, 21, .96));
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -40px rgba(201, 164, 92, .6), 0 0 0 8px rgba(214, 200, 170, .03);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.win-bar { display: flex; align-items: center; gap: .9rem; height: 46px; padding: 0 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(214, 200, 170, .2); }
.win-title { font-family: var(--f-mono); color: var(--text-2); font-size: .76rem; }
.win-status { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--ok); white-space: nowrap; }
.win-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@media (max-width: 480px) { .win-status { display: none; } }

.chat-body { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.6rem 1.3rem; min-height: 360px; }
.msg { max-width: 92%; }
.msg p { color: var(--text); font-size: .98rem; line-height: 1.55; max-width: none; }
.msg-user { align-self: flex-end; }
.msg-user p { padding: .8rem 1.1rem; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(201, 164, 92, .9); }
.msg-ai { display: flex; gap: .8rem; align-items: flex-start; }
.ai-avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--on-accent); background: conic-gradient(from 200deg, var(--accent), var(--cyan), var(--accent)); box-shadow: 0 0 20px rgba(239, 225, 189, .4); }
.ai-avatar .i { width: 16px; height: 16px; }
.msg-ai-body { padding-top: .3rem; }
.sources { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.sources li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 8px; font-size: .78rem; color: var(--text-2); background: rgba(214, 200, 170, .07); border: 1px solid var(--line); }
.sources .i { width: 13px; height: 13px; color: var(--accent-hi); }
.thinking { display: inline-flex; gap: 5px; padding: .6rem 0; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); animation: think 1.2s infinite var(--ease-in-out); }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.chat-input { display: flex; align-items: center; gap: 1rem; margin: 0 1rem 1rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(8, 13, 26, .6); font-size: .92rem; }
.chat-typing { flex: 1; color: var(--muted); min-height: 1.4em; }
.chat-typing.is-typing { color: var(--text); }
.chat-typing.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent-hi); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-replay { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi); opacity: 0; transition: opacity .4s; padding: .4rem .2rem; }
.chat-replay.is-visible { opacity: 1; }

/* ---------- Automazione: tessere attorno al nodo n8n ---------- */
.auto-stage { position: relative; }
.auto-title { margin-bottom: 1.6rem; }
.auto-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .7rem; }
.tile {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 16px; font-size: .95rem; line-height: 1.35;
  background: rgba(14, 20, 40, .75); border: 1px solid var(--line); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .5s, box-shadow .5s, background-color .5s;
}
.tile .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: var(--accent-hi); background: rgba(201, 164, 92, .12); }
.tile.is-active { border-color: rgba(224, 192, 126, .8); box-shadow: 0 0 0 1px rgba(224, 192, 126, .4), 0 0 40px -6px rgba(201, 164, 92, .8); background: rgba(22, 34, 72, .9); }
.auto-hub { display: none; }
.auto-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.auto-lines path { fill: none; stroke: rgba(224, 192, 126, .18); stroke-width: 1; }
.auto-lines path.pk { stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 1000; stroke-dashoffset: 1010; opacity: 0; filter: drop-shadow(0 0 4px var(--cyan)); }
.auto-lines path.pk.is-run { animation: packet 1.4s var(--ease-in-out) forwards; }
@keyframes packet { 0% { stroke-dashoffset: 0; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -1000; opacity: 0; } }

.is-orbit .auto-title { position: relative; z-index: 2; text-align: center; margin-inline: auto; }
.is-orbit.auto-stage { height: clamp(640px, 50vw, 760px); }
.is-orbit .auto-tiles { display: block; position: absolute; inset: 0; }
.is-orbit .tile { position: absolute; left: 0; top: 0; width: max-content; max-width: 230px; animation: bob 6s var(--ease-in-out) infinite alternate; animation-delay: var(--d, 0s); }
@keyframes bob { to { transform: translateY(-7px); } }
.is-orbit .auto-hub {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  position: absolute; left: 50%; top: 54%; translate: -50% -50%; z-index: 1;
}
.hub-core {
  position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; color: var(--on-accent);
  background: linear-gradient(145deg, #d6b46e, #7a5c24); box-shadow: 0 0 0 1px rgba(224, 192, 126, .6) inset, 0 0 80px rgba(201, 164, 92, .75);
}
.hub-core::before, .hub-core::after { content: ""; position: absolute; inset: -14px; border-radius: 40px; border: 1px solid rgba(224, 192, 126, .35); animation: ring 3s var(--ease-out) infinite; }
.hub-core::after { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.hub-core .i { width: 42px; height: 42px; stroke-width: 1.5; }
.hub-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }

.cols-3 { display: grid; gap: 2rem; margin-top: clamp(3.5rem, 7vw, 6rem); }
.col { padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.col h3 { margin-bottom: .7rem; }
.col p { font-size: 1rem; }

/* ---------- Finestra "sotto il cofano" ---------- */
.code-body { display: grid; }
.code-tabs { display: flex; gap: .2rem; padding: .6rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.code-tabs button {
  position: relative; flex: none; min-height: 44px; padding: 0 1rem; border-radius: 10px; font-size: .86rem; color: var(--muted); text-align: left; overflow: hidden;
  transition: color .25s, background-color .25s;
}
.code-tabs button:hover { color: var(--text); }
.code-tabs button[aria-selected="true"] { color: var(--text); background: rgba(201, 164, 92, .14); }
.tab-bar { position: absolute; left: .8rem; bottom: 5px; height: 2px; width: calc(100% - 1.6rem); border-radius: 2px; background: var(--accent-hi); transform: scaleX(0); transform-origin: left; }
.code-panes { position: relative; min-height: 300px; min-width: 0; }
.code-pane { margin: 0; padding: 1.4rem 1.4rem 1.8rem; overflow: hidden; font-family: var(--f-mono); font-size: clamp(.78rem, .74rem + .15vw, .86rem); line-height: 1.8; color: var(--text-2); tab-size: 2; }
.code-pane .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-c { color: #6b7082; font-style: italic; }
.tk-s { color: #e6cf9c; }
.tk-k { color: var(--cyan); }
.tk-p { color: var(--accent-hi); }
.tk-ok { color: var(--ok); }
@media (min-width: 640px) {
  .code-body { grid-template-columns: 170px 1fr; }
  .code-tabs { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); padding: .8rem; }
  .code-tabs button { width: 100%; }
  .tab-bar { left: auto; right: 0; top: 0; bottom: 0; width: 2px; height: 100%; border-radius: 0; transform: scaleY(0); transform-origin: top; }
}

/* ---------- Metodo ---------- */
.method-list { display: grid; gap: 0; counter-reset: m; }
.method-list li { position: relative; padding: 2rem 0 2.2rem 4.2rem; border-top: 1px solid var(--line-2); counter-increment: m; }
.method-list li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 2.15rem; font-family: var(--f-mono); font-size: .8rem; color: var(--accent-hi); letter-spacing: .08em; }
.method-list h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); letter-spacing: -.03em; margin-bottom: .7rem; }

/* ---------- Strumenti: fascia che scorre ---------- */
.tools .section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.marquee { display: grid; gap: .6rem; overflow: hidden; padding-block: 1rem; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-row { display: flex; overflow: hidden; }
.marquee-inner { display: flex; flex: none; gap: 0; animation: marquee 60s linear infinite; will-change: transform; }
.marquee-row:nth-child(2) .marquee-inner { animation-direction: reverse; animation-duration: 70s; }
.marquee-inner span {
  display: inline-flex; align-items: center; flex: none; padding-inline: clamp(1rem, 2vw, 1.8rem);
  font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.25; white-space: nowrap; color: var(--text);
}
.marquee-inner span::after { content: ""; width: .28em; height: .28em; margin-left: clamp(1rem, 2vw, 1.8rem); border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.marquee-row:nth-child(2) span { color: transparent; -webkit-text-stroke: 1px rgba(214, 200, 170, .45); }
@keyframes marquee { to { transform: translateX(-50%); } }
.tool-groups { display: grid; gap: 1.8rem; margin-top: clamp(3rem, 6vw, 5rem); }
.tool-group { padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
.tool-group h3 { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: .8rem; font-weight: 500; }
.tool-group p { font-size: .98rem; line-height: 1.75; }

/* ---------- Zona ---------- */
.area-grid { display: grid; gap: 3rem; align-items: end; }
.area-grid p { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.zones li {
  display: flex; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3.1rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; color: var(--text);
}
.zones li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid var(--accent-hi); transition: background-color .3s, box-shadow .3s; }
.zones-h { margin: 0 0 .4rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.zones + .zones-h { margin-top: 2.6rem; color: var(--cyan); }
.area-grid .zones-h { font-size: .75rem; margin-top: 0; }
.area-grid .zones + .zones-h { margin-top: 2.6rem; }
.zones-next li { color: var(--accent-hi); }
.zones-next li::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact-info h3 { margin-top: 2.8rem; margin-bottom: 1rem; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); font-weight: 500; }
.contact-info > p.lead { margin-top: 1.4rem; }
address { line-height: 1.95; color: var(--text-2); }
address strong { color: var(--text); font-weight: 500; }
address a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s; }
address a:hover { color: var(--accent-hi); border-color: var(--accent-hi); }
.contact-info .muted { margin-top: 1rem; font-size: .95rem; }
.form-wrap { padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: calc(var(--radius) + 4px); background: linear-gradient(180deg, rgba(18, 25, 50, .8), rgba(8, 11, 23, .85)); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 50px 120px -50px rgba(201, 164, 92, .5); }
.form-title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 1.8rem; }
.contact-form { display: grid; gap: 1.1rem 1rem; }
.contact-form.is-sent { display: none; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; color: var(--text-2); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: 1rem;
  background: rgba(8, 13, 26, .55); border: 1px solid var(--line-2); color: var(--text); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23e0c07e' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field select option { background: var(--surface-solid); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(214, 200, 170, .4); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-hi); box-shadow: 0 0 0 4px rgba(201, 164, 92, .22); background: rgba(8, 13, 26, .8); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); }
.err { min-height: 0; font-size: .82rem; color: var(--err); }
.err:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .3rem .8rem; }
.field-check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.field-check label { font-size: .92rem; cursor: pointer; }
.field-check label a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.field-check .err { grid-column: 2; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form-actions .btn[disabled] { opacity: .6; pointer-events: none; }
.form-note { font-size: .82rem; color: var(--muted); max-width: 40ch; }
.form-status { font-size: .92rem; color: var(--err); max-width: none; }
.form-status:empty { display: none; }
.form-ok { padding: 2rem 0 1rem; outline: none; }
.form-ok h3 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.04em; margin-bottom: 1rem; background: linear-gradient(100deg, var(--accent-hi), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.form-ok a { color: var(--text); border-bottom: 1px solid var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(4rem, 9vw, 8rem) 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 13, 26, .2), var(--bg) 40%); }
.footer-big {
  display: inline-flex; align-items: center; gap: .15em; margin-bottom: clamp(3rem, 7vw, 6rem);
  font-size: clamp(3.2rem, 1rem + 11vw, 12rem); font-weight: 500; letter-spacing: -.06em; line-height: .95; color: var(--text);
  transition: color .5s;
}
.footer-big .i { width: .55em; height: .55em; stroke-width: 1.4; color: var(--accent-hi); transition: transform .6s var(--ease-out); }
.footer-big:hover { color: var(--accent-hi); }
.footer-big:hover .i { transform: translate(.08em, -.08em) rotate(0deg); color: var(--cyan); }
.footer-grid { display: grid; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand { color: var(--text); font-weight: 500; margin-bottom: .6rem; }
.footer-about p { font-size: .95rem; }
.footer-h { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .15rem; font-size: .95rem; color: var(--text-2); }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; transition: color .25s; }
.site-footer li a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .85rem; }
.footer-bottom p { color: var(--muted); max-width: none; }
.footer-bottom a { transition: color .25s; }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom strong { color: var(--accent-hi); font-weight: 500; }


/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Chat: entrata dei messaggi ---------- */
.chat .msg, .chat .sources li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.chat .msg.is-in, .chat .sources li.is-in { opacity: 1; transform: none; }

/* ---------- Stati iniziali impostati dal JS (niente flash senza JS) ---------- */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Breakpoint ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-groups { grid-template-columns: repeat(2, 1fr); }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .path-track { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
}
@media (min-width: 900px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .method-list { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .area-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1.15fr .85fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-web { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1.4fr auto; gap: 2.5rem; align-items: center; }
  .card-web .card-icon, .card-web h3, .card-web p, .card-web .card-link { margin: 0; padding-top: 0; }
  .ai-grid, .infra-grid { grid-template-columns: 1fr 1.05fr; }
  .demo-slot { position: sticky; top: calc(var(--header-h) + 3rem); }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .tool-groups { grid-template-columns: repeat(5, 1fr); }
  .path-track { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1440px) { :root { --header-h: 84px; } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-hero], .h1-main .w > span { opacity: 1; transform: none; animation: none; }
  .marquee-inner { animation: none; }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .gl, .grain, .demo-slot, .marquee, .scroll-cue, .form-wrap { display: none !important; }
  body { color: #000; background: #fff; }
  p, h2, h3 { color: #000; }
}

/* ---------- Pagina privacy ---------- */
.legal { padding: calc(var(--header-h) + 4rem) 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-bottom: 1rem; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: 3rem 0 1rem; max-width: none; }
.legal p, .legal li { margin-bottom: 1rem; color: var(--text-2); }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.services { padding-top: clamp(4rem, 8vw, 7rem); }
