/* GC Web Solutions · multi-page
   Layout: ogni pagina apre con una parola gigante illuminata dal cursore; grafite e un solo blu elettrico; transizione a sipario tra le pagine */
/* Caratteri ospitati sul sito (nessuna richiesta a Google Fonts) */
/* Riserve calibrate: Arial ridimensionato per occupare lo stesso spazio di Unbounded e Geist,
   così il testo non si sposta quando arrivano i caratteri veri (Liberation Sans ha le misure di Arial). */
@font-face { font-family: 'Unbounded Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'); size-adjust: 134%; }
@font-face { font-family: 'Geist Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); size-adjust: 102%; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/geist-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/geist-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/unbounded-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: dark;
  --bg: oklch(0.175 0.012 252);
  --bg-2: oklch(0.2 0.014 252);
  --surface: oklch(0.228 0.016 252);
  --surface-2: oklch(0.26 0.018 252);
  --line: oklch(0.38 0.02 252 / 0.55);
  --fg: oklch(0.95 0.008 240);
  --muted: oklch(0.74 0.016 245);
  --dim: oklch(0.56 0.016 248);
  --blue: oklch(0.67 0.19 254);
  --blue-deep: oklch(0.5 0.18 258);
  --ice: oklch(0.89 0.07 225);
  --font-display: "Unbounded", "Unbounded Fallback", "Arial Black", system-ui, sans-serif;
  --font-body: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 30%; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--blue); color: var(--bg); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: min(100%, 1440px); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); flex: none; }
.h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(1.9rem, 1rem + 3.4vw, 4.2rem); }
.h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem); }
.lead { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); max-width: 58ch; margin: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Rivelazione allo scroll, solo dove il browser la supporta */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 48px; } }

/* ---------- Cursore ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 250; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor .hero { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.c-dot, .c-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ice); }
.c-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid oklch(0.89 0.07 225 / .5); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.c-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link .c-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--blue); background: oklch(0.67 0.19 254 / .12); }
.cursor.is-label .c-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ice); border-color: var(--ice); }
.cursor.is-label .c-label { opacity: 1; }
.cursor.is-label .c-dot, .cursor.is-link .c-dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Sipario tra le pagine ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 240; pointer-events: none; visibility: hidden; transform: translateY(100%);
  background: linear-gradient(170deg, var(--blue-deep), oklch(0.24 0.06 258) 70%);
  display: grid; place-items: center;
}
.curtain-in { display: grid; justify-items: center; gap: 14px; text-align: center; padding-inline: 16px; }
.curtain-mark { display: block; width: clamp(170px, 22vw, 280px); height: auto; filter: drop-shadow(0 18px 40px oklch(0.12 0.05 258 / .55)); }
.curtain span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.curtain.leave { visibility: visible; transform: none; transition: transform .6s var(--ease); pointer-events: auto; }
html.arriving .curtain { visibility: visible; transform: none; transition: none; }
html.arriving .curtain.reveal { transform: translateY(-100%); transition: transform .8s var(--ease) .12s; }

/* ---------- Header ---------- */
.progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 2px; z-index: 70; background: linear-gradient(90deg, var(--blue), var(--ice)); transform-origin: left; transform: scaleX(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 55; padding-top: env(safe-area-inset-top, 0px); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: oklch(0.175 0.012 252 / .74); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: height .4s var(--ease); }
.scrolled .header-in { height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { display: block; height: 34px; width: auto; transition: transform .5s var(--ease), height .4s var(--ease); }
.logo:hover .logo-mark { transform: none; }
/* Logo: riflesso di luce automatico ogni 5s; al passaggio del mouse si solleva e si ingrandisce */
.logo-mark-wrap { position: relative; display: block; line-height: 0; flex: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.logo:hover .logo-mark-wrap, .logo:focus-visible .logo-mark-wrap { transform: translateY(-2px) scale(1.08); }
.logo-mark-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("img/gc-logo-128.webp") center / contain no-repeat; mask: url("img/gc-logo-128.webp") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 36%, rgb(14 32 60 / .32) 43%, rgb(255 255 255 / 1) 49%, rgb(235 247 255 / .9) 51%, rgb(14 32 60 / .32) 57%, transparent 64%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0;
  animation: logoShine 5s cubic-bezier(.45, .05, .25, 1) .8s infinite;
}
@keyframes logoShine { 0% { background-position: 120% 0; } 24%, 100% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) { .logo-mark-wrap::after { animation: none; opacity: 0; } .logo:hover .logo-mark-wrap { transform: none; } }
.scrolled .logo-mark { height: 30px; }
.logo-text { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; color: var(--fg); white-space: nowrap; }
footer .logo-mark { height: 46px; }
footer .logo-text { font-size: 19px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav-item { position: relative; }
.nav-link { text-decoration: none; font-size: 14.5px; color: var(--muted); padding: 8px 14px; border-radius: 999px; position: relative; transition: color .25s; display: inline-flex; align-items: center; gap: 6px; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .3s var(--ease); }
.nav-item:hover .chev, .nav-item:focus-within .chev { rotate: 225deg; translate: 0 2px; }
.dd { position: absolute; top: 100%; left: -14px; padding-top: 12px; opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .3s var(--ease), translate .3s var(--ease), visibility .3s; }
.nav-item:hover .dd, .nav-item:focus-within .dd { opacity: 1; visibility: visible; translate: 0 0; }
.dd-in { width: min(600px, 70vw); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -20px #000c; }
.dd-in a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background .25s; }
.dd-in a:hover, .dd-in a[aria-current="page"] { background: var(--surface-2); }
.dd-in a b { font-weight: 500; font-size: 15px; }
.dd-in a small { color: var(--dim); font-size: 13px; line-height: 1.4; }
.dd-in a.all { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--ice); font-size: 14px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .menu-btn { display: none; }
.btn:not(.btn-primary) { background: oklch(0.175 0.012 252 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px/1 var(--font-body);
  padding: 15px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg);
  transition: background .3s, color .3s, border-color .3s; position: relative; isolation: isolate; white-space: nowrap; cursor: pointer;
}
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover { border-color: var(--ice); }
.btn-primary { border-color: transparent; background: var(--fg); color: var(--bg); }
.btn-primary::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -1; background: conic-gradient(from var(--angle), var(--blue), var(--ice), var(--blue-deep), var(--blue)); animation: spin 4s linear infinite; opacity: 0; transition: opacity .3s; }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--fg); transition: background .3s; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { background: var(--ice); }
@keyframes spin { to { --angle: 360deg; } }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.magnetic { will-change: transform; transition: transform .5s var(--ease); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--ice); text-decoration: none; border-bottom: 1px solid oklch(0.89 0.07 225 / .35); transition: border-color .25s; }
.text-link:hover { border-color: var(--ice); }

/* ---------- Hero home ---------- */
.hero { position: relative; min-height: clamp(600px, 88svh, 920px); display: flex; align-items: center; overflow: hidden; padding-top: var(--header-h); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: .28; mask-image: radial-gradient(ellipse 70% 60% at 72% 50%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 50%, #000 0%, transparent 75%); }
.hero-glow { position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: 50%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle, oklch(0.5 0.18 258 / .32), transparent 62%); pointer-events: none; }
#gc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: 100%; padding-block: 48px 64px; }
.hero-text { max-width: 62%; display: grid; gap: 28px; }
.hero h1, .ph-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.045em; line-height: .98; font-size: clamp(1.85rem, .8rem + 4.2vw, 4.75rem); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .1s; }
.ln:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } }
.scramble { color: var(--blue); }
.scramble .g { color: var(--ice); opacity: .7; }
.hero-sub { color: var(--muted); max-width: 52ch; font-size: clamp(1rem, .96rem + .3vw, 1.15rem); margin: 0; animation: fade 1s .45s var(--ease) both; }
.hero .actions { animation: fade 1s .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.hud { position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.hud-bl { left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 26px; display: flex; align-items: center; gap: 12px; }
.hud-br { right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 26px; text-align: right; }
.hint { color: var(--ice); }
.scroll-line { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ice); animation: drop 2s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Hero pagine interne ---------- */
.page-hero { --mx: 30%; --my: 50%; /* --w: larghezza della parola gigante in em, scritta nella pagina */ --ph-fs: min(clamp(5rem, 21vw, 22rem), min(90vw, 1400px) / var(--w, 6.5)); position: relative; overflow: hidden; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 110px)); padding-bottom: max(clamp(56px, 7vw, 110px), calc(var(--ph-fs) * .82 + 28px)); border-bottom: 1px solid var(--line); }
.ph-word { position: absolute; left: 50%; bottom: .02em; translate: -50% 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; line-height: .8; font-size: var(--ph-fs); white-space: nowrap; pointer-events: none; user-select: none; color: transparent; -webkit-text-stroke: 1px oklch(0.89 0.07 225 / .14); }
.ph-word.fill { -webkit-text-stroke: 0; background: linear-gradient(120deg, var(--blue), var(--ice)); -webkit-background-clip: text; background-clip: text; opacity: .55;
  mask-image: radial-gradient(circle clamp(140px, 18vw, 260px) at var(--mx) var(--my), #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle clamp(140px, 18vw, 260px) at var(--mx) var(--my), #000 0%, transparent 70%); }
.page-hero:not(.tracked) .ph-word.fill { --mx: var(--sx); animation: sweep 9s ease-in-out infinite alternate; }
@keyframes sweep { from { --sx: 10%; } to { --sx: 90%; } }
.ph-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.ph-grid.solo { grid-template-columns: 1fr; }
.ph-main { display: grid; gap: 26px; min-width: 0; }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--ice); }
.ph-title { font-size: clamp(2rem, 1rem + 4vw, 5rem); max-width: 18ch; }
.ph-side { position: relative; z-index: 2; min-width: 0; animation: fade 1s .35s var(--ease) both; }
.ph-main .lead, .ph-main .actions { animation: fade 1s .4s var(--ease) both; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; display: grid; gap: 10px; background: var(--bg-2); }
.m-row { overflow: hidden; }
.m-inner { display: flex; width: max-content; will-change: transform; }
.m-item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem); letter-spacing: -0.03em; white-space: nowrap; }
.m-row.outline .m-item { color: transparent; -webkit-text-stroke: 1px oklch(0.89 0.07 225 / .55); }
.m-item svg { width: .55em; height: .55em; flex: none; fill: var(--blue); }

/* ---------- Statement ---------- */
.statement-in { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 40px; align-items: start; }
.words { margin: 0; font-weight: 500; font-size: clamp(1.45rem, .9rem + 2.5vw, 3.15rem); line-height: 1.18; letter-spacing: -0.025em; max-width: 30ch; }
.words .w { color: oklch(0.95 0.008 240 / .26); transition: color .5s var(--ease); }
.words .w.on { color: var(--fg); }
.words .w.k.on { color: var(--ice); }

/* ---------- Servizi orizzontali (home) ---------- */
.services { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.services.h-on { padding-block: 0; }
.services.h-on .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); padding-top: 60px; }
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.svc-head .h2 { max-width: 16ch; }
.svc-meter { display: grid; gap: 10px; min-width: 220px; }
.services:not(.h-on) .svc-meter { display: none; }
.svc-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .08em; display: flex; justify-content: space-between; gap: 16px; }
.svc-count b { color: var(--fg); font-weight: 500; }
.svc-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.svc-bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, .2)); }
.track { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; will-change: transform; }
.services.h-on .track { flex-direction: row; margin-top: 0; width: max-content; }
.svc { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(20px, 3vw, 48px); align-items: stretch; background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 3vw, 44px); position: relative; overflow: hidden; }
.services.h-on .svc { width: min(84vw, 1080px); height: min(62svh, 560px); flex: none; }
.svc-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.svc h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); }
.svc p { margin: 0; color: var(--muted); max-width: 40ch; }
.svc-copy .btn { margin-top: auto; align-self: flex-start; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Demo animate ---------- */
.demo { position: relative; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; min-height: 280px; min-width: 0; }
.demo.big { min-height: 360px; box-shadow: 0 40px 100px -40px oklch(0.5 0.18 258 / .55); }
.demo-label { position: absolute; right: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.browser-bar span { margin-left: 10px; flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--dim); background: var(--surface); border-radius: 999px; padding: 5px 12px; }
.serp { padding: 18px; display: grid; gap: 14px; }
.serp-q { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; color: var(--muted); }
.serp-q svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.serp-list { position: relative; height: 236px; }
.sr { position: absolute; left: 0; right: 0; top: 0; height: 52px; border-radius: 12px; padding: 9px 14px; display: grid; gap: 6px; align-content: center; background: var(--bg-2); border: 1px solid transparent; }
.sr b { display: block; height: 9px; width: 60%; border-radius: 5px; background: var(--surface-2); }
.sr i { display: block; height: 7px; width: 85%; border-radius: 4px; background: var(--surface); }
.sr.gc { border-color: oklch(0.67 0.19 254 / .6); background: oklch(0.5 0.18 258 / .16); }
.sr.gc b { width: auto; height: auto; background: none; font: 600 13px/1.2 var(--font-body); color: var(--ice); }
.sr.gc i { width: auto; height: auto; background: none; font: 400 12px/1.2 var(--font-mono); color: var(--muted); font-style: normal; }
.sr:nth-child(1) { animation: s1 6s var(--ease) infinite; }
.sr:nth-child(2) { animation: s2 6s var(--ease) infinite; }
.sr:nth-child(3) { animation: s3 6s var(--ease) infinite; }
.sr.gc { animation: sg 6s var(--ease) infinite; }
@keyframes s1 { 0%, 25% { transform: translateY(0); } 50%, 90% { transform: translateY(60px); } 100% { transform: translateY(0); } }
@keyframes s2 { 0%, 25% { transform: translateY(60px); } 50%, 90% { transform: translateY(120px); } 100% { transform: translateY(60px); } }
@keyframes s3 { 0%, 25% { transform: translateY(120px); } 50%, 90% { transform: translateY(180px); } 100% { transform: translateY(120px); } }
@keyframes sg { 0%, 25% { transform: translateY(180px); } 50%, 90% { transform: translateY(0); box-shadow: 0 0 0 1px var(--blue), 0 10px 40px oklch(0.67 0.19 254 / .3); } 100% { transform: translateY(180px); } }
.health { padding: 20px; display: grid; gap: 14px; }
.pulse svg { width: 100%; height: 70px; display: block; }
.pulse path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 420; stroke-dashoffset: 420; animation: ekg 3s linear infinite; filter: drop-shadow(0 0 6px var(--blue)); }
@keyframes ekg { to { stroke-dashoffset: -420; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding: 10px 14px; border-radius: 12px; background: var(--bg-2); }
.checks li span:last-child { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); animation: tick 6s steps(1) infinite; }
.checks li:nth-child(2) span:last-child { animation-delay: .5s; }
.checks li:nth-child(3) span:last-child { animation-delay: 1s; }
.checks li:nth-child(4) span:last-child { animation-delay: 1.5s; }
@keyframes tick { 0% { color: var(--dim); } 12%, 100% { color: var(--ice); } }
.term { padding: 18px 20px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; display: grid; }
.tl { display: block; overflow: hidden; white-space: nowrap; width: 0; animation: type 9s steps(var(--n)) infinite; animation-delay: var(--d); }
.tl.ok { color: var(--ice); }
.tl .p { color: var(--blue); }
@keyframes type { 0% { width: 0; } 8%, 88% { width: calc(var(--n) * 1ch); } 94%, 100% { width: 0; } }
.flow svg { width: 100%; height: 100%; display: block; min-height: 280px; }
.flow .node rect { fill: var(--bg-2); stroke: var(--line); }
.flow .node.hub rect { fill: oklch(0.5 0.18 258 / .2); stroke: var(--blue); }
.flow .node text { fill: var(--fg); font: 500 12.5px var(--font-body); }
.flow .node text.s { fill: var(--dim); font: 400 10.5px var(--font-mono); letter-spacing: .06em; }
.flow .wire { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 5; }
.flow .dot { fill: var(--ice); }

/* ---------- Indice servizi (pagina Servizi) ---------- */
.svc-index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1.3fr) minmax(0, 1fr) 48px; gap: 28px; align-items: center; padding-block: clamp(26px, 3vw, 42px); border-top: 1px solid var(--line); text-decoration: none; isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: linear-gradient(90deg, oklch(0.5 0.18 258 / .22), transparent 80%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleX(1); }
.svc-row h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-size: clamp(1.7rem, 1rem + 2.8vw, 3.6rem); transition: translate .5s var(--ease), color .3s; }
.svc-row:hover h2 { translate: 14px 0; color: var(--ice); }
.svc-row p { margin: 0; color: var(--muted); font-size: 15.5px; }
.svc-row .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .35s, border-color .35s, rotate .5s var(--ease); }
.svc-row:hover .go { background: var(--fg); color: var(--bg); border-color: var(--fg); rotate: -45deg; }
.float-preview { position: fixed; left: 0; top: 0; z-index: 80; width: 380px; pointer-events: none; opacity: 0; scale: .85; transition: opacity .3s var(--ease), scale .4s var(--ease); }
.float-preview.show { opacity: 1; scale: 1; }
.float-preview .demo { box-shadow: 0 40px 90px -30px #000d; }

/* ---------- Blocchi pagina servizio ---------- */
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 56px); }
.qcard { position: relative; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2)); display: grid; gap: 12px; align-content: start; overflow: hidden; transition: border-color .35s, translate .5s var(--ease); }
.qcard:hover { border-color: oklch(0.67 0.19 254 / .7); translate: 0 -4px; }
.qcard .q { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1px oklch(0.67 0.19 254 / .7); }
.qcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.qcard p { margin: 0; color: var(--muted); font-size: 15.5px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split-side { position: sticky; top: 110px; display: grid; gap: 18px; }
.blocks { display: grid; gap: 0; }
.block { display: grid; gap: 12px; padding-block: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block p { margin: 0; color: var(--muted); max-width: 60ch; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.checklist svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.checklist svg circle { fill: oklch(0.5 0.18 258 / .25); stroke: var(--blue); }
.checklist svg path { fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; }
.checklist.armed svg path { stroke-dashoffset: 20; }
.checklist.armed.in svg path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease); }
.checklist.in li:nth-child(2) svg path { transition-delay: .12s; }
.checklist.in li:nth-child(3) svg path { transition-delay: .24s; }
.checklist.in li:nth-child(4) svg path { transition-delay: .36s; }
.note { color: var(--dim); font-size: 14.5px; margin: 18px 0 0; max-width: 70ch; }

.faq { display: grid; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); font-weight: 500; cursor: pointer; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ice); }
.plus { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); transition: rotate .45s var(--ease), background .3s, border-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.plus::after { rotate: 90deg; }
.faq details[open] .plus { rotate: 45deg; background: var(--blue); border-color: var(--blue); }
.faq .ans { padding-bottom: 26px; color: var(--muted); max-width: 70ch; }
.faq .ans p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

.next-svc { display: grid; gap: 14px; text-decoration: none; padding-block: clamp(60px, 8vw, 110px); position: relative; }
.next-svc small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.next-svc b { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; line-height: .95; font-size: clamp(2.2rem, 1rem + 6vw, 7rem); display: flex; align-items: center; gap: .3em; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--ice), var(--blue)) 0 0 / 0% 100% no-repeat, linear-gradient(var(--fg), var(--fg));
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-size .9s var(--ease); }
.next-svc:hover b { background-size: 100% 100%, 100% 100%; }
.next-svc b span { display: inline-block; transition: translate .5s var(--ease); -webkit-text-fill-color: var(--blue); }
.next-svc:hover b span { translate: 16px -6px; }

/* ---------- Progetti ---------- */
.proj-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); perspective: 1400px; }
.project { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: clamp(340px, 34vw, 480px); padding: clamp(22px, 2.6vw, 36px); border-radius: calc(var(--radius) + 4px); text-decoration: none; overflow: hidden; isolation: isolate; color: var(--pc-fg); background: var(--pc-bg); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.project:hover { box-shadow: 0 30px 80px -20px #000c; }
.project::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), oklch(1 0 0 / .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.project:hover::after { opacity: 1; }
.project .art { position: absolute; inset: 0; z-index: -1; }
.project .art svg { width: 100%; height: 100%; display: block; }
.p-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; position: relative; z-index: 2; }
.p-bottom { position: relative; z-index: 2; display: grid; gap: 10px; }
.p-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.6rem); letter-spacing: -0.04em; line-height: .9; }
.p-tag { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); opacity: .9; margin: 0; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.p-chips span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; }
.p-open { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; }
.p-open span { transition: transform .35s var(--ease); display: inline-block; }
.project:hover .p-open span { transform: translate(3px, -3px); }
.pc-dimora { --pc-bg: linear-gradient(170deg, #e9e3d4, #cfc6ae); --pc-fg: #2c2a22; }
.pc-forma { --pc-bg: linear-gradient(160deg, #efe1dc, #d9c1bb); --pc-fg: #3a2a28; }
.pc-cortile { --pc-bg: linear-gradient(170deg, #1f3328, #12201a); --pc-fg: #f3ead2; }
.pc-lume { --pc-bg: linear-gradient(160deg, #26123f, #120a24); --pc-fg: #f1e6ff; }
.forma-rings { transform-origin: 75% 35%; animation: rot 40s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.lights circle { animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
.eq rect { transform-box: fill-box; transform-origin: bottom; animation: eq 1.2s ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.hills path { transition: transform 1.2s var(--ease); }
.pc-dimora:hover .hills path:nth-child(1) { transform: translateY(-6px); }
.pc-dimora:hover .hills path:nth-child(2) { transform: translateY(-12px); }
.pc-dimora:hover .hills path:nth-child(3) { transform: translateY(-18px); }
.concept-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare > div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: grid; gap: 10px; align-content: start; }
.compare > div.hl { border-color: oklch(0.67 0.19 254 / .6); background: oklch(0.5 0.18 258 / .12); }
.compare h3 { font-size: 18px; font-weight: 600; }
.compare ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; display: grid; gap: 6px; }

/* ---------- Metodo ---------- */
.method-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.method-side { position: sticky; top: 120px; display: grid; gap: 22px; }
.steps { --p: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: clamp(40px, 6vw, 72px); }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(var(--ice), var(--blue)); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px var(--blue); }
.step { position: relative; display: grid; gap: 10px; opacity: .55; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step::before { content: ""; position: absolute; left: -40px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s; z-index: 1; }
.step.on::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 6px oklch(0.67 0.19 254 / .18); }
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--blue); letter-spacing: .1em; }
.step h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); line-height: 1.05; }
.step p { margin: 0; color: var(--muted); max-width: 46ch; }
.step .out { font-size: 14.5px; color: var(--fg); padding: 12px 16px; border-left: 2px solid var(--blue); background: oklch(0.5 0.18 258 / .1); border-radius: 0 12px 12px 0; max-width: 46ch; }
.step .out b { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); display: block; margin-bottom: 2px; }
.mini-steps { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.mini-steps li { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); position: relative; transition: border-color .35s, translate .5s var(--ease); }
.mini-steps li:hover { border-color: var(--blue); translate: 0 -4px; }
.mini-steps li h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.mini-steps li p { margin: 0; color: var(--muted); font-size: 15px; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(32px, 4vw, 56px); }
.path { --mx: 50%; --my: 50%; position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); text-decoration: none; overflow: hidden; isolation: isolate; min-height: 300px; }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx) var(--my), oklch(0.5 0.18 258 / .35), transparent 65%); opacity: 0; transition: opacity .4s; }
.path:hover::before { opacity: 1; }
.path:hover { border-color: oklch(0.67 0.19 254 / .6); }
.path h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.path p { margin: 0; color: var(--muted); }
.path .p-open { margin-top: auto; color: var(--ice); }
.path svg.ico { width: 44px; height: 44px; stroke: var(--ice); fill: none; stroke-width: 1.4; }

/* ---------- Chi siamo ---------- */
.about-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.terminal { border-radius: var(--radius); border: 1px solid var(--line); background: oklch(0.15 0.012 252); box-shadow: 0 40px 100px -40px oklch(0.5 0.18 258 / .55); overflow: hidden; min-width: 0; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.terminal-bar i:first-child { background: var(--blue); }
.terminal-bar span { margin-left: auto; }
.terminal pre { margin: 0; padding: clamp(18px, 2.4vw, 30px); font-family: var(--font-mono); font-size: clamp(12.5px, .7rem + .3vw, 15px); line-height: 1.85; white-space: pre-wrap; word-break: break-word; min-height: 300px; color: var(--fg); }
.terminal .p { color: var(--blue); }
.terminal .o { color: var(--muted); }
.terminal .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--ice); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sig { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.sig-photo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.sig strong { display: block; font-size: 17px; }
.sig span { font-size: 14px; color: var(--muted); }
.kinetic { display: grid; gap: 4px; }
.kinetic .kw { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-size: clamp(2.4rem, 1rem + 7vw, 8.4rem); color: transparent; -webkit-text-stroke: 1px oklch(0.89 0.07 225 / .4);
  background: linear-gradient(90deg, var(--ice), var(--blue)) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.2s var(--ease); }
.kinetic .kw.on { background-size: 100% 100%; }
.kinetic .kw:nth-child(2) { padding-left: 8vw; }
.kinetic .kw:nth-child(3) { padding-left: 16vw; }
.quote { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; margin: 0; max-width: 26ch; }
.quote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 2.6em; line-height: .6; color: var(--blue); margin-bottom: 10px; }

/* ---------- Mappa ---------- */
.area-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.town-info { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; background: var(--bg-2); max-width: 420px; }
.town-info b { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; }
.town-info span { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.town-info em { font-style: normal; color: var(--ice); font-size: 14.5px; }
.map { position: relative; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); overflow: hidden; background: oklch(0.16 0.02 252); min-width: 0; }
.map svg { display: block; width: 100%; height: auto; }
.map .land { fill: var(--surface); }
.map .coast { fill: none; stroke: var(--ice); stroke-width: 1.4; opacity: .7; stroke-dasharray: 900; stroke-dashoffset: 0; }
.map.draw .coast { animation: coast 3s var(--ease) both; }
@keyframes coast { from { stroke-dashoffset: 900; } }
.map .ring { fill: none; stroke: var(--line); stroke-dasharray: 3 6; }
.map .ring-l { fill: var(--dim); font: 400 10px var(--font-mono); letter-spacing: .08em; }
.map .sea-l { fill: var(--dim); font: 400 11px var(--font-mono); letter-spacing: .3em; }
.town { cursor: pointer; outline: none; }
.town .pt { fill: var(--fg); transition: fill .3s; }
.town .halo { fill: var(--blue); opacity: 0; transform-box: fill-box; transform-origin: center; }
.town .lbl { fill: var(--muted); font: 500 12px var(--font-body); transition: fill .3s; }
.town.base .pt { fill: var(--blue); }
.town.base .halo, .town.on .halo { animation: ping 2.2s var(--ease) infinite; }
.town.on .pt { fill: var(--ice); }
.town.on .lbl, .town:focus-visible .lbl { fill: var(--fg); }
@keyframes ping { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }
.link-line { stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 4 4; fill: none; opacity: 0; transition: opacity .3s; }
.link-line.on { opacity: .9; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }

/* ---------- CTA condivisa e contatti ---------- */
.cta-band { padding-block: clamp(90px, 12vw, 170px); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-title { --mx: 50%; --my: 50%; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; line-height: .95; font-size: clamp(2.4rem, 1rem + 6.6vw, 8rem); background: radial-gradient(340px circle at var(--mx) var(--my), var(--ice), var(--blue) 38%, var(--fg) 72%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); }
.cta-row p { color: var(--muted); max-width: 46ch; margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.18rem); }
.cta-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list > p { color: var(--muted); margin: 0 0 8px; max-width: 42ch; }
.c-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); flex-wrap: wrap; }
.c-item small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.c-item strong { font-weight: 500; font-size: 16.5px; user-select: all; word-break: break-all; }
.c-actions { display: flex; gap: 8px; }
.mini { font: 500 13px var(--font-body); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); text-decoration: none; cursor: pointer; transition: border-color .25s, background .25s; }
.mini:hover { border-color: var(--ice); background: oklch(0.89 0.07 225 / .08); }
form.contact { display: grid; gap: 14px; padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.svc-pick { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-pick legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; padding: 0; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-grid label { position: relative; }
.pick-grid input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pick-grid span { display: inline-flex; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); transition: all .25s var(--ease); cursor: pointer; }
.pick-grid input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pick-grid input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: grid; }
.field input, .field textarea { width: 100%; font: 400 16px var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px 16px 10px; transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--dim); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px oklch(0.67 0.19 254 / .18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.field input:user-invalid, .field textarea:user-invalid { border-color: oklch(0.65 0.2 25); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.form-foot small { color: var(--dim); font-size: 12.5px; max-width: 40ch; }
.form-status { font-size: 14.5px; color: var(--ice); margin: 0; }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-top: 56px; overflow: hidden; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-in p { color: var(--muted); max-width: 40ch; margin: 14px 0 0; font-size: 15px; }
.foot-in h2 { margin: 0 0 14px; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-in ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-in ul a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .25s; }
.foot-in ul a:hover { color: var(--ice); }
.giant { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; line-height: .8; white-space: nowrap; text-align: center; font-size: clamp(1.6rem, 7.6vw, 8.6rem); color: transparent; -webkit-text-stroke: 1px var(--line); background: linear-gradient(90deg, var(--blue), var(--ice), var(--blue)) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.2s var(--ease); padding-bottom: .08em; user-select: none; }
.giant:hover, .giant.lit { background-size: 100% 100%; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); font-family: var(--font-mono); letter-spacing: .03em; }

.wa-float { position: fixed; z-index: 50; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 999px; text-decoration: none; background: var(--fg); color: var(--bg); font: 500 14px var(--font-body); box-shadow: 0 14px 40px -10px #000c; transition: opacity .4s var(--ease), transform .4s var(--ease); opacity: 0; transform: translateY(20px); pointer-events: none; }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Menu mobile ---------- */
#menu { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; overflow-y: auto;
  padding: calc(90px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 40px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--bg); color: var(--fg); opacity: 0; translate: 0 -12px;
  transition: opacity .35s var(--ease), translate .35s var(--ease), display .35s allow-discrete, overlay .35s allow-discrete; }
#menu:popover-open { opacity: 1; translate: 0 0; display: grid; align-content: start; gap: 4px; }
@starting-style { #menu:popover-open { opacity: 0; translate: 0 -12px; } }
#menu > a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 8vw, 3rem); letter-spacing: -0.04em; text-decoration: none; padding-block: 8px; border-bottom: 1px solid var(--line); }
#menu .sub { display: grid; gap: 2px; padding: 6px 0 12px 4px; border-bottom: 1px solid var(--line); }
#menu .sub a { text-decoration: none; color: var(--muted); font-size: 16px; padding-block: 5px; }
#menu .close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header-cta .btn-primary { display: none; }
  .header-cta .menu-btn { display: inline-flex; }
  .hero { align-items: flex-start; min-height: 0; }
  .hero-text { max-width: 100%; }
  .hero-content { padding-block: 36px calc(min(52vw, 260px) * 1.15 + 80px); }
  .hero-grid { mask-image: radial-gradient(ellipse 90% 40% at 50% 85%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 85%, #000, transparent 75%); }
  .hero-glow { right: auto; left: 50%; top: auto; bottom: -30vmax; translate: -50% 0; }
  .hud-br { display: none; }
  .statement-in, .method-in, .about-in, .area-in, .cta-in, .svc, .ph-grid, .split, .concept-note { grid-template-columns: 1fr; }
  .method-side, .split-side { position: static; }
  .proj-grid { grid-template-columns: 1fr; }
  .qgrid, .paths { grid-template-columns: 1fr; }
  .mini-steps { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 10px 18px; }
  .svc-row .tag { grid-column: 1 / -1; }
  .svc-row p { grid-column: 1; }
  .svc-row .go { grid-row: 2 / span 2; grid-column: 2; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
  .kinetic .kw:nth-child(2) { padding-left: 4vw; }
  .kinetic .kw:nth-child(3) { padding-left: 8vw; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .f-row, .checklist, .compare, .mini-steps { grid-template-columns: 1fr; }
  .hero .actions .btn, .ph-main .actions .btn { flex: 1 1 auto; justify-content: center; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tl { width: auto; }
  .words .w { color: var(--fg); }
  .kinetic .kw { background-size: 100% 100%; }
}

/* ---------- Il titolare (Chi siamo) ---------- */
.owner-in { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.owner-photo { margin: 0; display: grid; gap: 14px; min-width: 0; }
.owner-frame {
  position: relative; aspect-ratio: 10 / 11; border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 50px 110px -50px #000;
}
.owner-img { position: absolute; z-index: 1; left: 50%; bottom: 0; height: 93%; width: auto; max-width: none; translate: -50% 0; display: block; }
.owner-photo figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.owner-role { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.owner-text { margin: 0; color: var(--muted); max-width: 58ch; }
.owner-facts { margin: 6px 0 0; display: grid; border-top: 1px solid var(--line); }
.owner-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.owner-facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.owner-facts dd { margin: 0; }
@media (max-width: 980px) {
  .owner-in { grid-template-columns: 1fr; }
  .owner-photo { max-width: 400px; }
}
@media (max-width: 560px) {
  .owner-facts div { grid-template-columns: 1fr; gap: 4px; }
  .logo-text { font-size: 15px; }
  .logo-mark { height: 30px; }
}

/* ---------- Demo "Siti web su misura": un sito che prende forma ---------- */
.site-build { container-type: inline-size; display: flex; flex-direction: column; }
.site-build .browser-bar { position: relative; }
.site-build .browser-bar span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sb-lock { width: 11px; height: 11px; flex: none; fill: none; stroke: oklch(0.78 0.17 150); stroke-width: 2.4; }
.sb-status { flex: none; display: flex; align-items: center; gap: 6px; font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.sb-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px oklch(0.67 0.19 254 / .25); transition: background .3s, box-shadow .3s; }
.sb-status b { font-weight: 500; }
.sb-status b::after { content: "Struttura"; }
.s2 .sb-status b::after { content: "Design"; }
.s3 .sb-status b::after { content: "Contenuti"; }
.s4 .sb-status b::after { content: "Verifica"; }
.s5 .sb-status b::after { content: "Online"; }
.s5 .sb-status { color: oklch(0.85 0.15 150); }
.s5 .sb-status::before { background: oklch(0.78 0.17 150); box-shadow: 0 0 0 3px oklch(0.78 0.17 150 / .25); animation: sbPulse 1.4s ease-out infinite; }
.sb-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--ice)); transition: width .9s var(--ease), opacity .4s; }
.s1 .sb-progress { width: 20%; } .s2 .sb-progress { width: 45%; } .s3 .sb-progress { width: 68%; } .s4 .sb-progress { width: 86%; } .s5 .sb-progress { width: 100%; }

.sb-page { position: relative; container-type: inline-size; aspect-ratio: 16 / 10; margin: auto 14px 36px; transition: opacity .45s var(--ease); }
.site-build .browser-bar { margin-bottom: 14px; }
.sb-page::before { content: ""; position: absolute; inset: -6px; border-radius: 10px; pointer-events: none; opacity: .9; transition: opacity .6s;
  background-image: linear-gradient(oklch(0.67 0.19 254 / .08) 1px, transparent 1px), linear-gradient(90deg, oklch(0.67 0.19 254 / .08) 1px, transparent 1px); background-size: 18px 18px; }
.s2 .sb-page::before { opacity: 0; }
.sb-out .sb-page, .sb-out .sb-toast { opacity: 0; }

/* blocchi: prima wireframe tratteggiato, poi design pieno */
.sb-b { opacity: 0; transform: translateY(8px); border: 1px dashed oklch(0.67 0.19 254 / .6); border-radius: 9px; background: transparent;
  transition: opacity .5s var(--ease), transform .6s var(--ease), border-color .5s, background-color .5s; }
.s1 .sb-b { opacity: 1; transform: none; }
.s1 .sb-hero { transition-delay: .12s; } .s1 .sb-card:nth-child(1) { transition-delay: .24s; } .s1 .sb-card:nth-child(2) { transition-delay: .32s; } .s1 .sb-card:nth-child(3) { transition-delay: .4s; }
.s2 .sb-b { border-color: transparent; background-color: var(--surface); transition-delay: 0s; }
.sb-nav { position: absolute; left: 0; right: 0; top: 0; height: 11%; display: flex; align-items: center; gap: 2.4cqi; padding: 0 2.8cqi; }
.sb-nav > * { opacity: 0; transition: opacity .4s .1s; }
.s2 .sb-nav > * { opacity: 1; }
.sb-logo { width: 3.2cqi; height: 3.2cqi; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--blue), var(--ice)); }
.sb-brand { font-size: 2.7cqi; font-weight: 650; white-space: nowrap; color: var(--fg); }
.sb-menu { margin-left: auto; display: flex; gap: 2cqi; }
.sb-menu i { width: 5cqi; height: 1.1cqi; border-radius: 99px; background: var(--dim); }
.sb-navcta { width: 9cqi; height: 3.4cqi; border-radius: 99px; flex: none; background: var(--blue); }

.sb-hero { position: absolute; left: 0; right: 0; top: 15%; height: 52%; overflow: hidden; isolation: isolate; }
.sb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(90% 120% at 85% 0%, oklch(0.5 0.18 258 / .9), transparent 60%), linear-gradient(120deg, oklch(0.3 0.08 255), oklch(0.22 0.03 252)); }
.s2 .sb-hero::before { opacity: 1; }
.sb-copy { position: absolute; left: 5%; top: 13%; width: 56%; display: grid; gap: 1.5cqi; justify-items: start; }
.sb-h { display: block; font-family: var(--font-display); font-weight: 700; font-size: 3.7cqi; line-height: 1.1; letter-spacing: -0.03em; white-space: nowrap; color: var(--fg); }
.sb-h span { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path .8s steps(16); }
.s3 .sb-h span { clip-path: inset(0 0 0 0); }
.s3 .sb-h + .sb-h span { transition-delay: .55s; }
.sb-line { display: block; width: 86%; height: 1.2cqi; border-radius: 99px; background: oklch(0.95 0.008 240 / .3); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.sb-line.short { width: 58%; }
.s3 .sb-copy .sb-line { transform: none; transition-delay: .9s; }
.s3 .sb-copy .sb-line.short { transition-delay: 1s; }
.sb-btn { margin-top: 1.2cqi; font-size: 2.7cqi; font-weight: 650; line-height: 1; padding: 1.5cqi 3.4cqi; border-radius: 99px; background: var(--ice); color: var(--bg); opacity: 0; transform: scale(.6); transition: opacity .35s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.s4 .sb-btn { opacity: 1; transform: none; }
.s5 .sb-btn { animation: sbPress .35s .15s; box-shadow: 0 0 0 4px oklch(0.89 0.07 225 / .25); }
.sb-img { position: absolute; right: 5%; top: 12%; bottom: 12%; width: 33%; border-radius: 8px; overflow: hidden; background: oklch(0.32 0.08 255); opacity: 0; transform: scale(.9); transition: opacity .5s, transform .7s var(--ease); }
.s3 .sb-img { opacity: 1; transform: none; transition-delay: .2s; }
.sb-img svg { display: block; width: 100%; height: 100%; }
.sb-img circle { fill: var(--ice); } .sb-img .hl1 { fill: oklch(0.55 0.16 254); } .sb-img .hl2 { fill: oklch(0.42 0.13 256); }
.sb-score { position: absolute; right: 3%; bottom: 7%; display: flex; align-items: center; gap: 1.2cqi; padding: .9cqi 2.4cqi .9cqi .9cqi; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 2.4cqi; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.s5 .sb-score { opacity: 1; transform: none; transition-delay: .9s; }
.sb-score svg { width: 5.6cqi; height: 5.6cqi; rotate: -90deg; fill: none; stroke-width: 4; }
.sb-score circle { stroke: var(--surface-2); }
.sb-score .arc { stroke: oklch(0.78 0.17 150); stroke-linecap: round; stroke-dasharray: 94.2; stroke-dashoffset: 94.2; transition: stroke-dashoffset 1s var(--ease) 1s; }
.s5 .sb-score .arc { stroke-dashoffset: 2; }
.sb-score b { font-family: var(--font-mono); font-weight: 500; color: var(--fg); }

.sb-cards { position: absolute; left: 0; right: 0; top: 71%; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4cqi; }
.sb-card { display: flex; flex-direction: column; gap: 1.4cqi; padding: 2.2cqi; min-width: 0; }
.sb-ico { width: 5cqi; height: 5cqi; border-radius: 1.4cqi; background: linear-gradient(135deg, var(--blue), var(--ice)); transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.sb-card .sb-line { background: oklch(0.95 0.008 240 / .2); }
.s3 .sb-card .sb-ico { transform: none; } .s3 .sb-card .sb-line { transform: none; }
.s3 .sb-card:nth-child(1) > * { transition-delay: .3s; } .s3 .sb-card:nth-child(2) > * { transition-delay: .45s; } .s3 .sb-card:nth-child(3) > * { transition-delay: .6s; }

/* cursore, clic e notifica */
.site-build .fake-cursor { animation: none; left: 0; top: 0; width: 15px; height: 15px; z-index: 3; opacity: 0; transform: translate(var(--cx, 300px), var(--cy, 200px)); transition: transform .95s var(--ease), opacity .3s; }
.s1 .fake-cursor { opacity: 1; }
.s5 .fake-cursor svg { animation: sbClick .3s .1s; }
.sb-ripple { position: absolute; left: var(--cx, 0); top: var(--cy, 0); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--ice); opacity: 0; pointer-events: none; z-index: 2; }
.s5 .sb-ripple { animation: sbRipple .8s .15s ease-out; }
.sb-toast { position: absolute; right: 12px; bottom: 40px; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px #000c; opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .6s var(--ease); }
.s5 .sb-toast { opacity: 1; transform: none; transition-delay: .45s; }
.sb-toast svg { width: 20px; height: 20px; flex: none; }
.sb-toast span { display: grid; line-height: 1.25; }
.sb-toast b { font-size: 12px; font-weight: 600; color: var(--fg); }
.sb-toast small { font-size: 10.5px; color: var(--muted); }
@keyframes sbPress { 50% { transform: scale(.9); } }
@keyframes sbClick { 50% { transform: scale(.75); } }
@keyframes sbRipple { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.4); } }
@keyframes sbPulse { 70% { box-shadow: 0 0 0 6px oklch(0.78 0.17 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.78 0.17 150 / 0); } }
@container (max-width: 330px) { .sb-status { display: none; } }
@media (prefers-reduced-motion: reduce) { .site-build .fake-cursor, .sb-ripple { display: none; } }

/* ---------- Demo "Assistenza informatica": la rete prende forma, poi una riparazione ---------- */
.net-build { container-type: inline-size; display: flex; flex-direction: column; }
.net-build .browser-bar { position: relative; margin-bottom: 8px; }
.net-build .browser-bar span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.net-build .sb-status b::after { content: "Progetto"; }
.n2 .sb-status b::after { content: "Cablaggio"; }
.n3 .sb-status b::after { content: "Configurazione"; }
.n4 .sb-status b::after { content: "Protezione"; }
.n5 .sb-status b::after { content: "Assistenza"; }
.n5 .sb-status { color: oklch(0.8 0.15 60); }
.n5 .sb-status::before { background: oklch(0.75 0.16 60); box-shadow: 0 0 0 3px oklch(0.75 0.16 60 / .25); }
.n6 .sb-status b::after { content: "Operativa"; }
.n6 .sb-status { color: oklch(0.85 0.15 150); }
.n6 .sb-status::before { background: oklch(0.78 0.17 150); box-shadow: 0 0 0 3px oklch(0.78 0.17 150 / .25); animation: sbPulse 1.4s ease-out infinite; }
.n1 .sb-progress { width: 16%; } .n2 .sb-progress { width: 34%; } .n3 .sb-progress { width: 52%; } .n4 .sb-progress { width: 68%; } .n5 .sb-progress { width: 84%; } .n6 .sb-progress { width: 100%; }
.nb-svg { display: block; width: calc(100% - 28px); height: auto; margin: auto 14px 32px; overflow: visible; transition: opacity .45s var(--ease); }
.nb-out .nb-svg, .nb-out .nb-toast { opacity: 0; }
.nb-node { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.n1 .nb-node { opacity: 1; transform: none; }
.nb-node .box { fill: transparent; stroke: oklch(0.67 0.19 254 / .6); stroke-width: 1.2; stroke-dasharray: 4 3; transition: fill .5s, stroke .5s; }
.n3 .nb-node .box { fill: var(--surface); stroke: oklch(0.45 0.03 252); stroke-dasharray: none; }
.nb-lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; fill: var(--dim); transition: fill .4s; }
.n3 .nb-lbl { fill: var(--muted); }
.n3 .nb-lbl.in { fill: var(--fg); }
.nb-ico { color: var(--fg); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.nb-ico .paper { fill: var(--surface); }
.n3 .nb-ico { opacity: 1; }
.n3 .fw .nb-ico { color: var(--ice); }
.nb-cable { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); }
.n2 .nb-cable { stroke-dashoffset: 0; transition-delay: calc(var(--i) * 110ms); }
.nb-led { fill: var(--surface-2); transition: fill .3s; }
.n3 .nb-led { fill: oklch(0.78 0.17 150); transition-delay: calc(var(--i) * 60ms); }
.n6 .nb-led { animation: nbBlink 1.1s steps(2) infinite; animation-delay: calc(var(--i) * -170ms); }
.nb-ok, .nb-warn, .nb-gear { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.nb-ok circle { fill: oklch(0.78 0.17 150); } .nb-ok path { fill: none; stroke: #0b1a10; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.n3 .nb-ok { opacity: 1; transform: none; transition-delay: calc(.5s + var(--i) * .15s); }
.nb-warn circle { fill: oklch(0.65 0.22 25); } .nb-warn path { stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.nb-gear circle { fill: none; stroke: oklch(0.8 0.15 60); }
.nb-gear circle:first-child { stroke-width: 3.6; stroke-dasharray: 3.2 2.7; }
.nb-gear circle:last-child { stroke-width: 1.8; }
.n5:not(.n6) .pc2 .nb-ok { opacity: 0; transition-delay: 0s; }
.n5:not(.n6) .pc2 .nb-warn { opacity: 1; transform: none; }
.n5:not(.n6) .pc2 .box { stroke: oklch(0.65 0.22 25); fill: oklch(0.65 0.22 25 / .12); }
.n5:not(.n6) .pc2 .nb-ico { opacity: .25; }
.n5:not(.n6) .pc2 .nb-gear { opacity: 1; transform: none; transition-delay: .5s; animation: nbSpin 1.6s linear infinite; }
.nb-pkt { fill: var(--ice); opacity: 0; transition: opacity .4s; }
.n6 .nb-pkt { opacity: 1; }
.nb-threat { fill: oklch(0.65 0.22 25); opacity: 0; transform-box: fill-box; transform-origin: center; }
.n4 .nb-threat { animation: nbThreat 1.4s var(--ease) forwards; }
.n4 .fw .box { animation: nbFlash 1s .85s; }
.nb-blocked { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; fill: oklch(0.72 0.19 25); opacity: 0; transition: opacity .3s; }
.n4:not(.n5) .nb-blocked { opacity: 1; transition-delay: .9s; }
.nb-toast { top: 64px; bottom: auto; }
@container (max-width: 440px) {
  .nb-toast { top: 58px; right: auto; left: 10px; gap: 6px; padding: 6px 9px 6px 7px; border-radius: 10px; }
  .nb-toast svg { width: 15px; height: 15px; }
  .nb-toast b { font-size: 10.5px; }
  .nb-toast small { font-size: 9px; }
}
.n6 .nb-toast { opacity: 1; transform: none; transition-delay: .5s; }
@keyframes nbThreat { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 65% { opacity: 1; transform: translateY(16px); } 100% { opacity: 0; transform: translateY(16px) scale(2.6); } }
@keyframes nbFlash { 30%, 60% { stroke: oklch(0.65 0.22 25); fill: oklch(0.65 0.22 25 / .18); } }
@keyframes nbSpin { to { rotate: 360deg; } }
@keyframes nbBlink { 50% { fill: oklch(0.5 0.1 150); } }
@media (prefers-reduced-motion: reduce) { .nb-pkt, .nb-threat { display: none; } }

/* ---------- Modulo contatti collegato a /api/contact ---------- */
.contact-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.contact-fields:disabled { opacity: .7; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-antispam:not(:empty) { min-height: 65px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-status[data-state="error"] { color: oklch(0.78 0.15 30); }
.form-status[data-state="success"] { color: oklch(0.85 0.15 150); }
.form-status:focus { outline: none; }
.privacy-link, .legal-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-link:hover, .legal-link:hover { color: var(--fg); }
dialog#privacy-dialog { max-width: min(560px, calc(100vw - 32px)); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--fg); }
dialog#privacy-dialog::backdrop { background: oklch(0.12 0.01 252 / .7); backdrop-filter: blur(4px); }
dialog#privacy-dialog h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
dialog#privacy-dialog p { color: var(--muted); font-size: 15.5px; }
dialog#privacy-dialog a { color: var(--ice); }
dialog#privacy-dialog .actions { margin-top: 18px; }

/* ---------- Cornice dei quattro concept (Dimora, Forma, Cortile, Lume) ---------- */
main .concept-intro { display: grid; gap: 16px; padding: calc(var(--header-h) + clamp(40px, 6vw, 90px)) 0 clamp(28px, 4vw, 48px); max-width: 76ch; }
main .concept-intro > * { margin: 0; }
.concept-intro h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(2rem, 1rem + 3.6vw, 4.2rem); }
.concept-intro > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); margin: 0; }
.concept-back { justify-self: start; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.concept-back:hover { color: var(--fg); }
.content-bottom { padding-bottom: clamp(56px, 8vw, 120px); }
.service-related { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(28px, 4vw, 48px); }
.concept-outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--bg-2); }
.concept-outro p { margin: 0; color: var(--muted); max-width: 60ch; }
.concept-outro .button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 500 15px var(--font-body); text-decoration: none; transition: background .25s; }
.concept-outro .button:hover { background: var(--ice); }


.related-links { padding-block: 0 clamp(56px, 7vw, 100px); }
.contact-form .form-status, .contact-form .form-status:empty { display: block; min-height: 1.5em; }

/* ---------- Testi lunghi (informativa privacy) ---------- */
.legal-text { display: grid; gap: 0; justify-items: start; }
.legal-text > * { max-width: 78ch; }
.legal-text h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); margin: clamp(30px, 4vw, 44px) 0 12px; }
.legal-text p, .legal-text li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.legal-text p { margin: 0 0 12px; }
.legal-text ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-text strong { color: var(--fg); font-weight: 600; }
.legal-text a { color: var(--ice); text-underline-offset: 3px; }
.legal-text .legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0; }
.legal-text .actions { margin-top: clamp(28px, 4vw, 44px); }

