/* Graphorum · landing (AM Solutions). Identità: brand/graphorum/BRAND.md.
   Linguaggio visivo «di progetto»: linee sottili, griglia, quote e didascalie tecniche, azzurro come luce. */
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #F6F8FB; --bg-2: #EEF2F8; --card: #FFFFFF; --card-2: #FAFBFD; --ink: #12141C; --muted: #5B6070; --faint: #697083;
  --line: #E6E8F0; --line-2: #D3D9E4; --accent: #2F6BFF; --accent-h: #1F59EC; --link: #2457E0; --az: #0284C7; --az-2: #38BDF8;
  --tick: #2F6BFF; --grid: rgba(47, 107, 255, .075); --mint: #12A56A; --mint-bg: #E3F6EE; --amber: #A86A00; --amber-bg: #FDF3DC;
  --block: #C2410C; --block-bg: #FDECE3; --violet: #7C5CFF;
  --shadow: 0 1px 2px rgba(18, 20, 28, .04), 0 18px 40px -24px rgba(23, 44, 92, .22);
  --nav: rgba(246, 248, 251, .72); --chip: #F1F4F9;
  /* vetro smerigliato e rilievo (luce sul bordo alto, ombre a più livelli) */
  --glass: rgba(255, 255, 255, .62); --glass-top: rgba(255, 255, 255, .86); --glass-solid: #FFFFFF; --glass-line: rgba(18, 28, 56, .09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .35);
  --sh-1: 0 1px 1px rgba(16, 24, 48, .04), 0 2px 6px -1px rgba(16, 24, 48, .05), 0 12px 24px -8px rgba(23, 44, 92, .10), 0 32px 64px -28px rgba(23, 44, 92, .26);
  --sh-2: 0 1px 1px rgba(16, 24, 48, .05), 0 4px 10px -2px rgba(16, 24, 48, .07), 0 20px 36px -12px rgba(23, 44, 92, .16), 0 48px 90px -36px rgba(23, 44, 92, .36);
  --aurora-a: rgba(56, 189, 248, .16); --aurora-b: rgba(47, 107, 255, .11); --aurora-c: rgba(124, 92, 255, .06);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B1220; --bg-2: #0E1626; --card: #141A2B; --card-2: #111829; --ink: #F3F4F8; --muted: #A3A8B8; --faint: #7C8496;
  --line: rgba(160, 190, 235, .12); --line-2: rgba(160, 190, 235, .22); --accent: #2F6BFF; --accent-h: #4A7EFF; --link: #7DD3FC; --az: #7DD3FC; --az-2: #38BDF8;
  --tick: #38BDF8; --grid: rgba(125, 211, 252, .055); --mint: #3DDC97; --mint-bg: rgba(61, 220, 151, .12); --amber: #F5B941; --amber-bg: rgba(245, 185, 65, .13);
  --block: #FB923C; --block-bg: rgba(251, 146, 60, .13);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 50px -28px rgba(0, 0, 0, .7);
  --nav: rgba(11, 18, 32, .66); --chip: rgba(255, 255, 255, .05);
  --glass: rgba(22, 30, 50, .56); --glass-top: rgba(34, 44, 70, .62); --glass-solid: #141A2B; --glass-line: rgba(160, 190, 235, .14);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 22px -10px rgba(0, 0, 0, .55), 0 34px 70px -34px rgba(0, 0, 0, .85);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 32px -12px rgba(0, 0, 0, .6), 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(125, 211, 252, .06);
  --aurora-a: rgba(56, 189, 248, .10); --aurora-b: rgba(47, 107, 255, .12); --aurora-c: rgba(124, 92, 255, .06);
  color-scheme: dark;
}
/* la fascia notte: uguale nei due temi (nel tema scuro un filo più profonda) */
:root { --gut: clamp(16px, 4.2vw, 120px); --maxw: 2320px; --blur: 18px;
  --band: #0B1220; --band-card: #141A2B; --band-line: rgba(125, 211, 252, .16); --band-ink: #F3F4F8; --band-muted: #A3A8B8; --band-grid: rgba(125, 211, 252, .06); }
[data-theme="dark"] { --band: #070C17; --band-card: #101727; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (min-width: 1760px) { html { font-size: 106.25%; } }
@media (min-width: 2200px) { html { font-size: 118.75%; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .35s, color .35s; }
img, video, svg, canvas { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 400; letter-spacing: -.02em; line-height: 1.06; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
b, strong { font-weight: 600; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
/* luce di fondo fissa: dà al vetro qualcosa da sfocare (nessuna animazione continua) */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(48vmax 40vmax at 88% 6%, var(--aurora-a), transparent 70%),
    radial-gradient(44vmax 38vmax at 4% 46%, var(--aurora-b), transparent 70%),
    radial-gradient(40vmax 34vmax at 70% 96%, var(--aurora-c), transparent 70%); }
:focus-visible { outline: 2px solid var(--az-2); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(61, 220, 151, .5); }
@media (prefers-reduced-motion: no-preference) { .live { animation: ping 2.4s ease-out infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }

/* pulsanti: rettangoli precisi, freccia che scorre */
.btn { --b-sh: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(0, 20, 80, .18), 0 1px 2px rgba(16, 40, 120, .22), 0 10px 22px -10px rgba(47, 107, 255, .7);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 11px; border: 1px solid transparent;
  background: linear-gradient(180deg, #3B74FF, #2D67FA 50%, #2659EA); color: #fff; text-decoration: none; font: 600 .98rem/1 "DM Sans", sans-serif;
  white-space: nowrap; cursor: pointer; box-shadow: var(--b-sh); -webkit-tap-highlight-color: transparent;
  transition: background .25s, border-color .25s, color .25s, box-shadow .35s cubic-bezier(.2, .8, .2, 1), transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { background: linear-gradient(180deg, #4A80FF, #3570FF 50%, #2A5FF0); transform: translateY(-2px);
  --b-sh: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(0, 20, 80, .16), 0 2px 4px rgba(16, 40, 120, .2), 0 18px 34px -12px rgba(47, 107, 255, .75); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s;
  --b-sh: inset 0 2px 4px rgba(0, 20, 80, .28), 0 1px 2px rgba(16, 40, 120, .2); }
.btn:focus-visible { outline: 2px solid var(--az-2); outline-offset: 3px; }
.btn.sm { height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.btn.ghost { background: var(--glass); color: var(--ink); border-color: var(--glass-line); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  --b-sh: var(--glass-hi), 0 1px 2px rgba(16, 24, 48, .05), 0 8px 18px -10px rgba(23, 44, 92, .22); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--glass-line)); color: var(--link); background: var(--glass-top);
  --b-sh: var(--glass-hi), 0 2px 4px rgba(16, 24, 48, .06), 0 16px 30px -14px rgba(23, 44, 92, .32); }
.btn.ghost:active { --b-sh: inset 0 2px 4px rgba(16, 24, 48, .12); }
.btn.ghost svg:first-child { width: 14px; height: 14px; color: var(--az); }
.btn.line { background: rgba(255, 255, 255, .06); color: var(--band-ink); border-color: rgba(125, 211, 252, .34);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); --b-sh: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px -14px rgba(0, 0, 0, .7); }
.btn.line:hover { border-color: #7DD3FC; background: rgba(125, 211, 252, .12); }
.btn.line:active { --b-sh: inset 0 2px 4px rgba(0, 0, 0, .4); }
.btn.login svg:first-child { width: 16px; height: 16px; color: var(--az); }
.btn.line.login svg:first-child { color: #7DD3FC; }

/* angolini da tavola tecnica */
.ticks { position: relative; }
.ticks::after { content: ""; position: absolute; inset: -1px; pointer-events: none; --t: var(--tick);
  background: linear-gradient(var(--t), var(--t)) top left / 14px 1.5px, linear-gradient(var(--t), var(--t)) top left / 1.5px 14px,
    linear-gradient(var(--t), var(--t)) top right / 14px 1.5px, linear-gradient(var(--t), var(--t)) top right / 1.5px 14px,
    linear-gradient(var(--t), var(--t)) bottom left / 14px 1.5px, linear-gradient(var(--t), var(--t)) bottom left / 1.5px 14px,
    linear-gradient(var(--t), var(--t)) bottom right / 14px 1.5px, linear-gradient(var(--t), var(--t)) bottom right / 1.5px 14px;
  background-repeat: no-repeat; border-radius: inherit; }

/* marchio: monocromatico, nero sul chiaro e bianco sullo scuro */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--ink); }
.brand .gmark { height: 30px; width: auto; flex: none; }
.brand .glogo { height: 22px; width: auto; display: block; }
.brand .wm { display: grid; justify-items: start; gap: 5px; line-height: 1; }
.brand .gword { font: 600 1.1rem/1 "Space Grotesk", sans-serif; letter-spacing: .12em; }
.brand small { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 500; color: var(--faint); letter-spacing: .02em; }
.brand small svg { width: 40px; height: auto; color: var(--faint); }

/* barra */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled, .nav.open { background: var(--nav); border-bottom-color: var(--glass-line); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04), 0 10px 30px -22px rgba(16, 24, 48, .35); }
.nav .bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.nav .links { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav .links a { text-decoration: none; color: var(--muted); font: 500 .93rem "DM Sans", sans-serif; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav .links a:hover, .nav .links a.on { color: var(--ink); background: var(--chip); }
.nav .tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-cta { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); cursor: pointer; flex: none; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--link); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; } .menu-btn[aria-expanded="true"] .i-close { display: block; }
.m-menu { display: grid; padding: 6px 16px 20px; border-top: 1px solid var(--line); max-height: calc(100dvh - 68px); overflow: auto; }
.m-menu[hidden] { display: none; }
.m-menu a:not(.btn) { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); font: 400 1.2rem "Space Grotesk", sans-serif;
  padding: 12px 2px; border-bottom: 1px solid var(--line); }
.m-menu a i { font: 500 .72rem "Space Grotesk", sans-serif; color: var(--az); font-style: normal; letter-spacing: .08em; width: 20px; }
.m-menu .btn { margin-top: 16px; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1080px) { .nav .links { display: flex; } .nav .tools { margin-left: 0; } .menu-btn, .m-menu { display: none !important; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; isolation: isolate; }
.hero-grid, .band-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 80%); mask: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 80%); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .16), rgba(47, 107, 255, .06) 55%, transparent); }
[data-theme="dark"] .hero::before { background: radial-gradient(closest-side, rgba(56, 189, 248, .14), rgba(47, 107, 255, .07) 55%, transparent); }
.hero-in { display: grid; gap: 4px; }
.hero-copy { position: relative; z-index: 2; order: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .74rem/1.3 "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(2.55rem, 10.4vw, 5.6rem); line-height: 1; letter-spacing: -.035em; margin: 18px 0 20px; }
.az { color: var(--accent); }
[data-theme="dark"] .az { color: #38BDF8; }
.lead { font-size: clamp(1.03rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.lead b { color: var(--ink); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stage { --s: min(100vw - 64px, 310px); position: relative; margin: 8px 0 44px; width: var(--s); height: var(--s); justify-self: center; order: 1; }
.stage canvas, .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage canvas { z-index: 2; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .8s; }
.stage canvas:active { cursor: grabbing; }
.stage.is-live canvas { opacity: 1; }
.stage .poster { z-index: 1; display: grid; place-items: center; transition: opacity .8s; }
.stage.is-live .poster { opacity: 0; }
.poster img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
[data-theme="dark"] .poster .pl, [data-theme="light"] .poster .pd { display: none; }
.poster img:not([src]) { display: none; }
[data-theme="dark"] .poster:has(.pd[src]) .gfb, [data-theme="light"] .poster:has(.pl[src]) .gfb { display: none; }
.gfb { width: 34%; height: auto; color: var(--ink); }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; fill: none; }
.rings circle { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rings .r2 { stroke-dasharray: 2 6; }
.rings .r3 { stroke: color-mix(in srgb, var(--az-2) 45%, transparent); stroke-dasharray: 1 11.4; stroke-width: 5; }
.rings .cross { stroke: var(--line-2); vector-effect: non-scaling-stroke; }
.rings text { fill: var(--faint); font: 500 11px "Space Grotesk", sans-serif; letter-spacing: .08em; }
.dial { transform-origin: 300px 300px; }
@media (prefers-reduced-motion: no-preference) { .dial { animation: spin 90s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.figcap { position: absolute; left: -16px; right: -16px; bottom: -34px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; text-align: center;
  font: 500 .72rem/1.35 "Space Grotesk", sans-serif; letter-spacing: .04em; color: var(--faint); }
.figcap span:first-child { color: var(--az); text-transform: uppercase; letter-spacing: .12em; }
.figcap .hint { display: none; }
@media (max-width: 599px) { #hero-stage .figcap .d { display: none; } }
.stage.is-live .figcap .hint { display: inline; }
.spec-strip { display: grid; grid-template-columns: 1fr 1fr; margin: 44px 0 0; border-top: 1px solid var(--line-2); }
.spec-strip div { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); }
.spec-strip div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
.spec-strip dt { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); margin-bottom: 6px; }
.spec-strip dd { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--ink); }
.coords { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 0; font: 500 .68rem "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 760px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .spec-strip div { padding: 20px 20px 20px 0; border-bottom: 0; }
  .spec-strip div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (min-width: 980px) {
  .hero { padding-top: 68px; min-height: min(100svh, 940px); display: flex; flex-direction: column; }
  .hero-in { flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; }
  .hero-copy { order: 0; padding: 40px 0; }
  .stage { --s: min(48vw, 660px, 100svh - 220px); margin-bottom: 0; order: 0; margin-right: -40px; justify-self: end; }
  .hero h1 { font-size: clamp(3.6rem, 6vw, 5.8rem); }
}

/* striscia canali */
.channels { border-block: 1px solid var(--line); background: var(--card-2); margin-top: 36px; }
.ch-row { display: grid; gap: 12px; padding: 18px 0; }
.ch-row p { font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ch-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ch-row li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.ch-row svg { width: 17px; height: 17px; color: var(--az); }
@media (min-width: 980px) { .ch-row { grid-template-columns: auto 1fr; align-items: center; gap: 40px; } .ch-row ul { justify-content: space-between; } }

/* ------------------------------------------------------------------ sezioni */
.sec { padding: 96px 0 0; position: relative; }
.sec.alt { padding-bottom: 96px; margin-top: 96px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); border-block: 1px solid var(--line); }
.sec.alt + .sec { padding-top: 96px; }
.alt + .band, .band + .alt { margin-top: 0; }
.sh { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.idx { display: flex; align-items: center; gap: 12px; font: 500 .74rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.idx span { color: var(--az); font-weight: 600; }
.idx::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); max-width: 220px; }
.sh h2 { font-size: clamp(2rem, 7.4vw, 3.5rem); }
.sh > p:last-child { color: var(--muted); font-size: 1.06rem; max-width: 40rem; }
@media (min-width: 980px) { .sec { padding-top: 140px; } .sec.alt { margin-top: 140px; padding: 120px 0; } .sec.alt + .sec { padding-top: 140px; } .sh { margin-bottom: 64px; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.note { color: var(--muted); font-size: .94rem; }
.note a { color: var(--link); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.p-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.p-head svg { width: 18px; height: 18px; color: var(--az); }
.p-head em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--faint); }

/* ------------------------------------------------------------------ 01 flusso */
.flow { display: grid; gap: 40px; }
.console { display: none; }
.steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 36px; }
.spine { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); border-radius: 2px; }
.spine i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); border-radius: 2px;
  background: linear-gradient(180deg, #2F6BFF, #38BDF8); }
.step { position: relative; }
.step .node { position: absolute; left: -34px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2);
  transition: border-color .4s, background .4s, box-shadow .4s; }
.step.on .node { border-color: #2F6BFF; background: #2F6BFF; box-shadow: 0 0 0 5px color-mix(in srgb, #38BDF8 22%, transparent); }
.step.on .node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.step h3 { font-size: 1.32rem; display: flex; align-items: baseline; gap: 12px; }
.step h3 small { font: 500 .74rem "Space Grotesk", sans-serif; color: var(--az); letter-spacing: .1em; }
.step > p { color: var(--muted); margin-top: 8px; max-width: 34rem; }
.trace { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 12px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); font-size: .86rem; line-height: 1.45; }
.trace time { font: 500 .72rem "Space Grotesk", sans-serif; color: var(--faint); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.trace .k { font: 600 .72rem "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--az); }
.trace > span:last-child { grid-column: 1 / -1; color: var(--ink); }
.trace .ok, .trace .wait { display: inline-block; margin-left: 6px; font: 600 .7rem "DM Sans", sans-serif; padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
.trace .ok { background: var(--mint-bg); color: var(--mint); }
.trace .wait { background: var(--amber-bg); color: var(--amber); }
.trace .tag { font-style: normal; display: inline-block; margin: 0 4px 4px 0; padding: 2px 9px; border-radius: 6px; background: var(--chip); border: 1px solid var(--line); font-size: .8rem; }
.trace .mini { display: grid; gap: 4px; }
.trace .mini svg { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.mini .e { stroke: var(--az-2); stroke-width: 1.5; fill: none; }
.mini .n { fill: var(--card); stroke: #2F6BFF; stroke-width: 2; } .mini .n.s { stroke: var(--az-2); }
.mini text { fill: var(--ink); font: 500 11px "DM Sans", sans-serif; }
.mini small { color: var(--faint); font-size: .76rem; }
@media (min-width: 980px) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .console { display: block; position: sticky; top: 104px; border-radius: 14px; background: var(--band); color: var(--band-ink); border: 1px solid var(--band-line);
    box-shadow: 0 30px 60px -30px rgba(11, 18, 32, .55); overflow: hidden; }
  .c-head, .c-foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: .82rem; }
  .c-head { border-bottom: 1px solid var(--band-line); }
  .c-head .dots { display: flex; gap: 6px; } .c-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
  .c-head b { font: 500 .8rem "Space Grotesk", sans-serif; letter-spacing: .06em; }
  .c-head em { margin-left: auto; font-style: normal; display: inline-flex; align-items: center; gap: 8px; color: var(--band-muted); }
  .c-foot { border-top: 1px solid var(--band-line); justify-content: space-between; color: var(--band-muted); font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
  .c-body { list-style: none; margin: 0; padding: 10px 0; }
  .c-body li { padding: 10px 18px 10px 20px; border-left: 2px solid transparent; opacity: .26; transition: opacity .5s, border-color .5s, background .5s; }
  .c-body li.on { opacity: .82; }
  .c-body li.cur { opacity: 1; border-left-color: #38BDF8; background: rgba(56, 189, 248, .06); }
  .c-body .trace { margin: 0; padding: 0; background: none; border: 0; color: var(--band-ink); }
  .c-body .trace > span:last-child { color: var(--band-ink); }
  .c-body .trace time { color: var(--band-muted); } .c-body .trace .k { color: #7DD3FC; }
  .c-body .trace .tag { background: rgba(255, 255, 255, .05); border-color: var(--band-line); }
  .c-body .mini text { fill: var(--band-ink); } .c-body .mini .n { fill: var(--band); } .c-body .mini small { color: var(--band-muted); }
  .c-body .trace .ok { background: rgba(61, 220, 151, .13); color: #3DDC97; } .c-body .trace .wait { background: rgba(245, 185, 65, .14); color: #F5B941; }
  .steps .trace { display: none; }
  .steps { gap: 0; padding-left: 48px; }
  .step { padding: 0 0 13vh; }
  .step:last-child { padding-bottom: 8vh; }
  .step .node { left: -48px; }
  .spine { left: 9px; }
  .step h3 { font-size: 1.7rem; }
  .step > p { font-size: 1.06rem; }
  .step { opacity: .45; transition: opacity .4s; } .step.on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .step { opacity: 1 !important; } }

/* ------------------------------------------------------------------ fasce notte (cervello, sicurezza) */
.band { background: var(--band); color: var(--band-ink); margin-top: 96px; padding: 96px 0; overflow: hidden; isolation: isolate;
  --line: var(--band-line); --line-2: rgba(125, 211, 252, .26); --muted: var(--band-muted); --faint: #7C8496; --ink: var(--band-ink); --az: #7DD3FC; --az-2: #38BDF8;
  --card: var(--band-card); --chip: rgba(255, 255, 255, .05); --grid: var(--band-grid); --link: #7DD3FC; --tick: #38BDF8; --mint: #3DDC97; --mint-bg: rgba(61, 220, 151, .12);
  --glass: rgba(22, 32, 54, .5); --glass-top: rgba(36, 48, 76, .56); --glass-solid: #141A2B; --glass-line: rgba(125, 211, 252, .16);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 26px -12px rgba(0, 0, 0, .6), 0 36px 70px -34px rgba(0, 0, 0, .9);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 34px -12px rgba(0, 0, 0, .65), 0 50px 100px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(125, 211, 252, .08); }
.band + .sec { padding-top: 96px; }
.band .band-grid { inset: -80px 0; -webkit-mask: radial-gradient(90% 80% at 30% 40%, #000 20%, transparent 85%); mask: radial-gradient(90% 80% at 30% 40%, #000 20%, transparent 85%); }
@media (min-width: 980px) { .band { margin-top: 140px; padding: 130px 0; } .band + .sec { padding-top: 140px; } }
.brainx { display: grid; gap: 40px; }
.stage-graph { --s: min(100vw - 48px, 420px); order: 0; }
.graph-fb { width: 78%; height: auto; }
.graph-fb .e path { stroke: rgba(125, 211, 252, .45); stroke-width: 1.2; fill: none; }
.graph-fb .n circle { fill: #0B1220; stroke: #38BDF8; stroke-width: 2; }
.graph-fb .n circle:first-child { fill: #2F6BFF; stroke: #7DD3FC; }
.qa { display: grid; gap: 10px; margin-bottom: 26px; }
.qa .q, .qa .a { border-radius: 12px; padding: 14px 16px; font-size: .98rem; }
.qa span { display: block; font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 4px; }
.qa .q { background: rgba(255, 255, 255, .05); border: 1px solid var(--band-line); justify-self: end; max-width: 88%; }
.qa .a { background: linear-gradient(180deg, rgba(47, 107, 255, .16), rgba(47, 107, 255, .07)); border: 1px solid rgba(56, 189, 248, .32); max-width: 94%; }
.qa .a span { color: #7DD3FC; }
.src { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.src li { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--band-line); color: #CFE9FB; }
.src svg { width: 14px; height: 14px; color: #7DD3FC; }
.legend { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--band-muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.brain-copy .btn { margin-top: 26px; }
@media (min-width: 980px) { .brainx { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; } .stage-graph { --s: min(44vw, 560px); margin-left: -30px; } }

/* ------------------------------------------------------------------ 03 bento */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile { margin: 0; display: grid; grid-template-rows: 1fr auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tile .zoom { display: block; padding: 0; border: 0; background: var(--bg-2); cursor: zoom-in; aspect-ratio: 16 / 10; overflow: hidden; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.tile:hover img { transform: scale(1.025); }
.tile figcaption { padding: 13px 16px 15px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); line-height: 1.45; }
.tile figcaption span { display: block; font: 500 .68rem "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--az); margin-bottom: 3px; }
.tile figcaption b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.t-phone .zoom { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #0E1626, #0B1220); display: grid; place-items: center; padding: 22px 0 0; }
.t-phone img { width: 62%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; border: 6px solid #1B2337; border-bottom: 0; }
.bento-cta { margin-top: 26px; display: flex; justify-content: center; }
@media (max-width: 699px) {   /* telefono: le schermate scorrono di lato, una alla volta */
  .bento { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .bento::-webkit-scrollbar { display: none; }
  .bento .tile { scroll-snap-align: start; }
  .bento .reveal { opacity: 1; transform: none; }
  .t-phone .zoom { aspect-ratio: 16 / 10; padding-top: 14px; } .t-phone img { width: 42%; }
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 3; } .t-wide { grid-column: span 6; } .t-phone { grid-column: span 3; grid-row: span 1; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .tile { grid-column: span 4; } .t-wide { grid-column: span 8; } .t-phone { grid-column: span 4; }
  .t-wide .zoom { aspect-ratio: auto; height: 100%; min-height: 0; } .t-phone .zoom { aspect-ratio: auto; height: 100%; }
  .t-half { grid-column: span 6; }
}

/* ------------------------------------------------------------------ 04 agenti */
.room { display: grid; gap: 16px; }
.room-chat .msgs { padding: 18px; display: grid; gap: 12px; }
.m { max-width: 92%; padding: 11px 14px; border-radius: 12px; font-size: .94rem; line-height: 1.45; background: var(--card-2); border: 1px solid var(--line); }
.m span { display: block; font: 600 .7rem "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; color: var(--faint); }
.m.me { justify-self: end; background: var(--accent); color: #fff; border-color: transparent; }
.m.me span { color: rgba(255, 255, 255, .75); }
.m.brain span { color: var(--az); }
.m.brain { border-color: color-mix(in srgb, var(--az-2) 40%, transparent); }
.m.ag { margin-left: 18px; }
.room-side { display: grid; gap: 16px; align-content: start; }
.board ul { list-style: none; margin: 0; padding: 6px 0; }
.board li { display: grid; grid-template-columns: 86px 1fr auto; gap: 10px; align-items: center; padding: 9px 18px; font-size: .9rem; }
.board li + li { border-top: 1px solid var(--line); }
.board li em { font-style: normal; color: var(--faint); font-size: .8rem; }
.st { font: 600 .68rem "DM Sans", sans-serif; text-align: center; padding: 3px 0; border-radius: 6px; letter-spacing: .02em; }
.st.todo { background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.st.run { background: color-mix(in srgb, #2F6BFF 14%, transparent); color: var(--link); }
.st.wait { background: var(--amber-bg); color: var(--amber); }
.st.done { background: var(--mint-bg); color: var(--mint); }
.st.block { background: var(--block-bg); color: var(--block); }
.chips { list-style: none; margin: 0; padding: 16px 18px 6px; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { font-size: .8rem; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--faint); }
.chips li.on { border-color: color-mix(in srgb, #2F6BFF 55%, transparent); color: var(--ink); background: color-mix(in srgb, #2F6BFF 9%, transparent); }
.chips li.on::before { content: "✓ "; color: var(--link); }
.powers > p { padding: 6px 18px 16px; font-size: .84rem; color: var(--muted); }
.approve { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px 18px; border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.ap-i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-bg); color: var(--amber); }
.ap-i svg { width: 20px; height: 20px; }
.approve b { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); font-family: "Space Grotesk", sans-serif; font-weight: 500; }
.approve p { font-size: .95rem; }
.ap-b { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.ap-b span { font-size: .84rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); }
.ap-b .yes { background: var(--accent); color: #fff; border-color: transparent; }
@media (min-width: 980px) { .room { grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; } .approve { grid-template-columns: auto 1fr auto; } .ap-b { grid-column: auto; } }

/* ------------------------------------------------------------------ 05 regolatore */
.reg { display: grid; gap: 36px; }
.ladder { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 10px; counter-reset: x; }
.ladder::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 1.5px; background: linear-gradient(#2F6BFF, #38BDF8 70%, var(--line-2)); }
.ladder li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-items: center; padding: 12px 16px 12px 0; }
.ladder i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 500 1rem "Space Grotesk", sans-serif; font-style: normal;
  background: var(--card); border: 1.5px solid #2F6BFF; color: var(--link); position: relative; z-index: 1; }
.ladder li:first-child i { background: #2F6BFF; color: #fff; }
.ladder b { font: 400 1.22rem "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.ladder span { color: var(--muted); font-size: .9rem; }
.ladder .opt i { border-style: dashed; border-color: var(--line-2); color: var(--muted); }
.ladder .ask i { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
.checks { display: grid; gap: 12px; }
.chk { padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.chk::before { content: ""; display: block; width: 28px; height: 2px; background: linear-gradient(90deg, #2F6BFF, #38BDF8); margin-bottom: 14px; }
.chk b { font: 500 1.08rem "Space Grotesk", sans-serif; }
.chk p { color: var(--muted); font-size: .94rem; margin-top: 4px; }
.score { padding: 16px 20px; border-radius: 12px; border: 1px dashed var(--line-2); }
.score p { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: 10px; }
.score p em { font-style: normal; color: var(--faint); font-size: .78rem; }
.score .bar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; gap: 2px; }
.score .bar i { flex: 0 0 var(--w); display: grid; place-items: center; font: 600 .72rem "DM Sans", sans-serif; font-style: normal; color: #fff; white-space: nowrap; overflow: hidden; }
.score .bar i:nth-child(1) { background: #2F6BFF; } .score .bar i:nth-child(2) { background: #2F9BFF; } .score .bar i:nth-child(3) { background: #38BDF8; color: #0B1220; }
.score .bar i:nth-child(4) { background: var(--line-2); flex: 1 1 auto; }
.sl { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--muted); }
.sl li { display: inline-flex; align-items: center; gap: 7px; } .sl li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: #2F6BFF; }
.sl li:nth-child(2)::before { background: #2F9BFF; } .sl li:nth-child(3)::before { background: #38BDF8; } .sl li:nth-child(4)::before { background: var(--line-2); }
.sl b { color: var(--ink); font-weight: 600; }
@media (min-width: 980px) { .reg { grid-template-columns: .9fr 1.1fr; gap: 64px; } .checks { grid-template-columns: 1fr 1fr; } .score { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ 06 voce */
.voice { display: grid; gap: 48px; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.vlist li { padding: 16px 0; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .96rem; }
.vlist li:last-child { border-bottom: 1px solid var(--line-2); }
.vlist b { display: block; color: var(--ink); font: 400 1.18rem "Space Grotesk", sans-serif; margin-bottom: 2px; }
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: 120%; max-width: 560px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2);
  background: radial-gradient(closest-side, color-mix(in srgb, #38BDF8 12%, transparent), transparent); }
.phone { position: relative; width: 290px; aspect-ratio: 290 / 600; border-radius: 46px; padding: 18px 18px 22px; background: #0B1220; color: #F3F4F8;
  border: 8px solid #1A2236; box-shadow: 0 0 0 1px rgba(125, 211, 252, .2), 0 50px 90px -40px rgba(11, 18, 32, .65); display: grid; grid-template-rows: auto 1fr auto auto auto; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font: 500 .74rem "Space Grotesk", sans-serif; color: #A3A8B8; padding: 0 6px; }
.ph-top i { width: 74px; height: 20px; border-radius: 12px; background: #000; }
.orb { position: relative; width: 168px; aspect-ratio: 1; place-self: center; }
.orb span { position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #E0F4FF 0%, #7DD3FC 26%, #38BDF8 52%, #2F6BFF 100%); box-shadow: 0 0 40px rgba(56, 189, 248, .45); transition: transform .5s; }
.orb i { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid rgba(125, 211, 252, .5); }
@media (prefers-reduced-motion: no-preference) {
  .orb i { animation: wave 3s cubic-bezier(.2, .6, .3, 1) infinite; } .orb i:nth-child(2) { animation-delay: 1s; } .orb i:nth-child(3) { animation-delay: 2s; }
  .orb span { animation: breathe 2.6s ease-in-out infinite; }
  .orb.think span { animation-duration: 1s; } .orb.speak span { animation-duration: .7s; }
}
@keyframes wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.06); } }
.vstate { text-align: center; font: 400 1.3rem "Space Grotesk", sans-serif; margin-bottom: 14px; min-height: 1.6em; }
.vtx { display: grid; gap: 8px; font-size: .82rem; line-height: 1.4; margin-bottom: 16px; }
.vtx p { padding: 9px 12px; border-radius: 12px; }
.vtx .you { justify-self: end; background: #2F6BFF; }
.vtx .gr { background: rgba(255, 255, 255, .07); border: 1px solid rgba(125, 211, 252, .18); color: #DCEBFA; }
.ph-bar { display: flex; justify-content: space-between; gap: 8px; }
.ph-bar span { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 9px 0; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: .7rem; color: #A3A8B8; }
.ph-bar svg { width: 18px; height: 18px; color: #F3F4F8; }
.ph-bar .end svg { color: #FCA5A5; }
@media (min-width: 980px) { .voice { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; } .phone { width: 310px; } }

/* ------------------------------------------------------------------ 07 sicurezza */
.secure { display: grid; gap: 40px; }
.perim { margin: 0; position: relative; padding-bottom: 28px; }
.perim svg { width: 100%; height: auto; overflow: visible; }
.perim .bound { fill: rgba(56, 189, 248, .025); stroke: #38BDF8; stroke-width: 1.4; stroke-dasharray: 6 6; }
.perim .cap { fill: #7DD3FC; font: 500 11px "Space Grotesk", sans-serif; letter-spacing: .16em; }
.perim .wire path { stroke: rgba(125, 211, 252, .5); stroke-width: 1.4; fill: none; }
.perim .wire.live path { stroke: #38BDF8; stroke-width: 2; }
.perim .wire.dash path { stroke: rgba(163, 168, 184, .6); stroke-dasharray: 4 6; }
.perim .wire.in path { stroke: #3DDC97; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) { .perim .wire.live path, .perim .wire.in path { stroke-dasharray: 6 8; animation: flowd 1.6s linear infinite; } }
@keyframes flowd { to { stroke-dashoffset: -28; } }
.perim .core { fill: #2F6BFF; stroke: #7DD3FC; stroke-width: 1.5; }
.perim .sat circle { fill: #101727; stroke: rgba(125, 211, 252, .55); stroke-width: 1.4; }
.perim .gate { fill: #0B1220; stroke: #3DDC97; stroke-width: 1.6; }
.perim .lock { fill: #38BDF8; } .perim .gate2 { fill: #0B1220; stroke: #A3A8B8; stroke-dasharray: 2 2; }
.perim .ext { fill: #101727; stroke: #38BDF8; stroke-width: 1.4; } .perim .ext.dashed { stroke: #A3A8B8; stroke-dasharray: 4 4; }
.perim text { font-family: "DM Sans", sans-serif; }
.perim .t1 { fill: #F3F4F8; font-size: 14px; font-weight: 600; } .perim .t2 { fill: #A3A8B8; font-size: 11px; }
.perim .t3 { fill: #DCEBFA; font-size: 11.5px; font-weight: 500; } .perim .t4 { fill: #7DD3FC; font: 500 10.5px "Space Grotesk", sans-serif; letter-spacing: .06em; }
.perim .figcap { bottom: 0; }
.spec { margin: 0; border-top: 1px solid var(--band-line); }
.spec div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--band-line); }
.spec dt { font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #7DD3FC; }
.spec dd { margin: 0; color: #DCE3EE; font-size: .96rem; }
@media (min-width: 600px) { .spec div { grid-template-columns: 150px 1fr; gap: 20px; } }
@media (min-width: 980px) { .secure { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .perim { position: sticky; top: 110px; } }

/* ------------------------------------------------------------------ 08 hardware */
.hw { display: grid; gap: 40px; }
.hw-fig { margin: 0; position: relative; padding-bottom: 30px; }
.hw-fig::before { content: ""; position: absolute; inset: -4% -4% 6%; z-index: -1; border-radius: 16px; border: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.hw-fig svg { width: 100%; height: auto; overflow: visible; }
.hw-fig .top { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.hw-fig .side { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; } .hw-fig .side.l { fill: var(--bg-2); } .hw-fig .side.r { fill: var(--line); }
.hw-fig .inset { fill: none; stroke: var(--line-2); stroke-width: 1; }
.hw-fig .chip { fill: color-mix(in srgb, #38BDF8 22%, transparent); stroke: #2F6BFF; stroke-width: 1.4; }
.hw-fig .chip-o { fill: none; stroke: #38BDF8; stroke-width: 1; stroke-dasharray: 3 4; }
@media (prefers-reduced-motion: no-preference) { .hw-fig .chip { animation: glow 3s ease-in-out infinite; } }
@keyframes glow { 50% { fill: color-mix(in srgb, #38BDF8 42%, transparent); } }
.hw-fig .ports path, .hw-fig .ports circle { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.hw-fig .vents path { stroke: var(--faint); stroke-width: 1; }
.hw-fig .lead path { fill: none; stroke: #2F6BFF; stroke-width: 1; }
[data-theme="dark"] .hw-fig .lead path { stroke: #38BDF8; }
.hw-fig .pin { fill: var(--bg); stroke: #2F6BFF; stroke-width: 1.6; }
.hw-fig .dim path { fill: none; stroke: var(--faint); stroke-width: .8; stroke-dasharray: 2 3; }
.hw-fig text { font-family: "Space Grotesk", sans-serif; } .hw-fig .t1 { fill: var(--ink); font-size: 14px; font-weight: 500; } .hw-fig .t2 { fill: var(--muted); font-size: 11px; }
.kv { margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.kv div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); margin-bottom: 3px; }
.kv dd { margin: 0; font-size: .95rem; }
@media (min-width: 980px) { .hw { grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; } }

/* ------------------------------------------------------------------ 09 collegamenti: piedinatura */
.pinout { display: grid; gap: 22px; }
.pins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pins li { font-size: .88rem; padding: 10px 12px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); position: relative; }
.chipx { order: -1; position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 20px; border-radius: 16px; background: var(--band); color: #F3F4F8;
  border: 1px solid rgba(125, 211, 252, .28); }
.chipx svg { width: 54px; height: auto; color: #fff; }
.chipx b { font: 500 .9rem "Space Grotesk", sans-serif; letter-spacing: .3em; }
.chipx small { color: #A3A8B8; font-size: .8rem; }
.chipx .pl, .chipx .pr { position: absolute; top: 14%; bottom: 14%; width: 7px; background: repeating-linear-gradient(#38BDF8 0 5px, transparent 5px 15px); opacity: .7; }
.chipx .pl { left: -7px; } .chipx .pr { right: -7px; }
@media (min-width: 900px) {
  .pinout { grid-template-columns: 1fr 260px 1fr; align-items: center; gap: 0; }
  .chipx { order: 0; padding: 60px 20px; min-height: 420px; align-content: center; }
  .pins { grid-template-columns: 1fr; gap: 10px; }
  .pins li { display: flex; align-items: center; }
  .pins.l li { margin-right: 48px; justify-content: flex-end; text-align: right; }
  .pins.r li { margin-left: 48px; }
  .pins li::after { content: ""; position: absolute; top: 50%; width: 48px; height: 1px; background: linear-gradient(90deg, var(--line-2), #38BDF8); }
  .pins.l li::after { left: 100%; } .pins.r li::after { right: 100%; background: linear-gradient(90deg, #38BDF8, var(--line-2)); }
  .pins li::before { content: ""; position: absolute; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: #38BDF8; }
  .pins.l li::before { left: calc(100% + 45px); } .pins.r li::before { right: calc(100% + 45px); }
}

/* ------------------------------------------------------------------ 10 confronto */
.cmp { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.cmp > div { display: grid; grid-template-columns: 1fr 1fr; }
.cmp > div + div { border-top: 1px solid var(--line); }
.cmp b { grid-column: 1 / -1; padding: 14px 16px 2px; font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.cmp span { padding: 6px 16px 14px; font-size: .92rem; color: var(--muted); }
.cmp span.g { color: var(--ink); font-weight: 500; position: relative; }
.cmp span.g::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #38BDF8; margin-right: 8px; vertical-align: 2px; }
.cmp-h { background: var(--card-2); }
.cmp-h span { padding: 14px 16px; font: 500 .78rem "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cmp-h span:first-child { display: none; }
.cmp-h span.g { color: var(--link); }
.cmp-h span.g::before { display: none; }
@media (min-width: 760px) {
  .cmp > div { grid-template-columns: 200px 1fr 1fr; align-items: center; }
  .cmp b { grid-column: auto; padding: 18px 22px; }
  .cmp span { padding: 18px 22px; font-size: 1rem; }
  .cmp-h span:first-child { display: block; }
  .cmp span.g { background: color-mix(in srgb, #38BDF8 6%, transparent); border-left: 1px solid color-mix(in srgb, #38BDF8 30%, var(--line)); align-self: stretch; display: flex; align-items: center; }
  .cmp span.g::before { flex: none; vertical-align: 0; }
}

/* ------------------------------------------------------------------ 11 spot */
.spots { display: grid; gap: 14px; }
.vid { position: relative; border-radius: 14px; overflow: hidden; background: #0B1220; border: 1px solid var(--line); box-shadow: var(--shadow); }
.vid video { width: 100%; height: 100%; object-fit: cover; }
.vid.h { aspect-ratio: 16 / 9; } .vid.v { aspect-ratio: 9 / 16; width: min(100%, 300px); justify-self: center; }
.vtag { position: absolute; left: 12px; top: 12px; font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .14em; padding: 4px 8px; border-radius: 6px; background: rgba(11, 18, 32, .7); color: #F3F4F8; pointer-events: none; }
@media (min-width: 900px) { .spots { grid-template-columns: 1fr .316fr; align-items: start; } .vid.v { width: 100%; } }

/* ------------------------------------------------------------------ 12 domande */
.faq-grid { display: grid; gap: 40px; }
.dls { display: grid; gap: 10px; }
.dl { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s; }
.dl:hover { border-color: var(--accent); }
.dl > svg:first-child { width: 22px; height: 22px; color: var(--az); flex: none; }
.dl span { display: grid; flex: 1; } .dl b { font-weight: 600; font-size: .95rem; } .dl small { color: var(--muted); font-size: .82rem; }
.dl .go { width: 18px; height: 18px; color: var(--faint); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  font: 400 1.18rem/1.3 "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--az), var(--az)) center / 100% 1.5px no-repeat,
  linear-gradient(var(--az), var(--az)) center / 1.5px 100% no-repeat; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 44rem; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } .faq-grid > div:first-child { position: sticky; top: 110px; align-self: start; } }

/* ------------------------------------------------------------------ finale */
.final-sec { padding-bottom: 96px; }
.final { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; background: var(--band); color: #F3F4F8; padding: 56px 24px; border: 1px solid rgba(125, 211, 252, .2);
  --grid: rgba(125, 211, 252, .07); }
.final .band-grid { -webkit-mask: radial-gradient(80% 100% at 85% 50%, #000, transparent 75%); mask: radial-gradient(80% 100% at 85% 50%, #000, transparent 75%); }
.final::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -260px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .18), rgba(47, 107, 255, .07) 60%, transparent); }
.final-g { position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 300px; height: auto; color: #fff; opacity: .06; }
.final .idx { color: #A3A8B8; } .final .idx span { color: #7DD3FC; } .final .idx::after { background: linear-gradient(90deg, rgba(125, 211, 252, .3), transparent); }
.final h2 { font-size: clamp(2.2rem, 8vw, 4.4rem); margin: 16px 0 16px; max-width: 14ch; }
.final > p { color: #C3CAD8; max-width: 36rem; font-size: 1.06rem; }
@media (min-width: 980px) { .final-sec { padding-bottom: 140px; } .final { padding: 88px 72px; } .final-g { width: 440px; right: 40px; bottom: -40px; } }

/* «torna su»: un tondo nel brand, in basso a destra; sul telefono sale sopra «Prova la demo» */
.totop { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 48px; height: 48px;
  border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff;
  border: 1px solid rgba(125, 211, 252, .45); background: linear-gradient(160deg, #2F6BFF, #1D4ED8);
  box-shadow: 0 14px 30px -12px rgba(47, 107, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0; transform: translateY(12px) scale(.92); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1), bottom .3s; }
.totop.on { opacity: 1; transform: none; }
.totop:hover { background: linear-gradient(160deg, #3B78FF, #2F6BFF); }
.totop:focus-visible { outline: 3px solid #7DD3FC; outline-offset: 3px; }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.totop.lift { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .totop { right: 28px; bottom: 28px; width: 52px; height: 52px; } .totop.lift { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
@media print { .totop { display: none; } }

/* pulsante fisso sul telefono, galleria ingrandita */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; height: 52px;
  box-shadow: 0 16px 34px -14px rgba(47, 107, 255, .7); transform: translateY(140%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.sticky-cta.on { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(7, 12, 23, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 80px -30px #000; }
.lb-x { position: absolute; top: 16px; right: 16px; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ================================================================== vetro, rilievo e movimento (tutte le card)
   Vetro smerigliato (backdrop-filter) sopra la luce di fondo; senza supporto, fondo pieno. Luce sul bordo alto, ombre a più
   livelli; le card cliccabili si sollevano al passaggio e si abbassano alla pressione. */
.glass, .panel, .tile, .chk, .cmp, .dl, .pins li, .steps .trace, .score, .plan, .both, .mcard, .alt-cloud, .tform, .help-ways li, .caps li,
.it-pts div, .lg-card, .vid, .qa .a, .qa .q {
  background: linear-gradient(180deg, var(--glass-top), var(--glass) 60%); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--sh-1);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%); backdrop-filter: blur(var(--blur)) saturate(160%); }
.vid { background: #0B1220; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .panel, .tile, .chk, .cmp, .dl, .pins li, .steps .trace, .score, .plan, .both, .mcard, .alt-cloud, .tform, .help-ways li, .caps li,
  .it-pts div, .lg-card, .btn.ghost, .btn.line, .nav.scrolled, .nav.open { background: var(--glass-solid); }
}
.tile, .dl, .plan, .chk, .lg-tile, .caps li, .help-ways li, .it-pts div, .pins li {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s; }
@media (hover: hover) {
  .tile:hover, .dl:hover, .plan:hover, .chk:hover, .lg-tile:hover, .caps li:hover, .help-ways li:hover, .it-pts div:hover, .pins li:hover {
    transform: translateY(-4px); box-shadow: var(--glass-hi), var(--sh-2); border-color: color-mix(in srgb, var(--az-2) 38%, var(--glass-line)); }
}
.tile:active, .dl:active, .lg-tile:active { transform: translateY(-1px) scale(.995); transition-duration: .1s; }
.score { border-style: solid; }
.cmp { background: linear-gradient(180deg, var(--glass-top), var(--glass)); }
.cmp-h { background: color-mix(in srgb, var(--card-2) 60%, transparent); }
/* comparse: salgono e si posano, con un filo di scala */
.reveal { transform: translateY(26px) scale(.985); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { transform: none; }
.tile.reveal.in:hover, .dl.reveal.in:hover, .plan.reveal.in:hover, .chk.reveal.in:hover, .caps li.reveal.in:hover, .help-ways li.reveal.in:hover { transform: translateY(-4px); }
/* parallasse leggera, sul compositore (scroll-driven), solo dove c'è e solo senza «riduci movimento» */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero::before { animation: px-down linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .band .band-grid, .final .band-grid { animation: px-grid linear both; animation-timeline: view(); }
    .final-g { animation: px-up linear both; animation-timeline: view(); }
    .mcard, .phone-wrap, .stamp { animation: px-float linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes px-down { to { transform: translate3d(0, 22vh, 0); } }
@keyframes px-grid { from { transform: translate3d(0, -60px, 0); } to { transform: translate3d(0, 60px, 0); } }
@keyframes px-up { from { transform: translate3d(0, 50px, 0); } to { transform: translate3d(0, -50px, 0); } }
@keyframes px-float { from { translate: 0 22px; } to { translate: 0 -22px; } }
@media (max-width: 699px) { :root { --blur: 12px; } }

/* tricolore: un filo, mai invadente */
.tric { display: inline-block; flex: none; width: 22px; height: 4px; border-radius: 2px; vertical-align: middle;
  background: linear-gradient(90deg, #009246 0 33.3%, #F4F5F0 33.3% 66.6%, #CE2B37 66.6%); box-shadow: 0 0 0 1px rgba(18, 20, 28, .08); }
[data-theme="dark"] .tric { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.eyebrow .tric { margin-left: 2px; }

/* barra e menu: Login, pulsanti del menu sul telefono */
.nav .tools .nav-login { padding: 0 14px; gap: 8px; }
.m-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.m-ctas .btn { margin: 0; } .m-ctas .btn:first-child { grid-column: 1 / -1; }
@media (max-width: 380px) { .nav .tools .nav-login { padding: 0 11px; } .brand small { display: none; } }

/* larghezze: gli schermi larghi usano tutto lo spazio */
.sh { max-width: min(100%, 60rem); }
@media (min-width: 1760px) {
  .stage { --s: min(46vw, 900px, 100svh - 200px); }
  .stage-graph { --s: min(40vw, 760px); }
  .phone { width: 340px; }
  .spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .spec div:nth-child(-n+2) { border-top: 0; }
  .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  .faq details:nth-child(2) { border-top: 1px solid var(--line-2); }
  .faq-grid { grid-template-columns: .55fr 1.45fr; }
  .room { grid-template-columns: 1.3fr 1fr; }
}

/* ------------------------------------------------------------------ 07 il tuo modello */
.model { display: grid; gap: 44px; align-items: center; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.caps li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: start; padding: 16px 18px; border-radius: 14px; }
.caps svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 11px; color: #7DD3FC;
  background: linear-gradient(180deg, rgba(56, 189, 248, .2), rgba(47, 107, 255, .14)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(125, 211, 252, .2); }
.caps b { font: 500 1.08rem "Space Grotesk", sans-serif; }
.caps span { color: var(--band-muted); font-size: .92rem; line-height: 1.45; }
.mcard { position: relative; margin: 0 0 34px; border-radius: 18px; padding: 0 0 4px; overflow: visible; }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--glass-line);
  font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #7DD3FC; }
.mc-head em { font-style: normal; display: inline-flex; align-items: center; gap: 8px; color: var(--band-muted); letter-spacing: .08em; }
.mc-name { padding: 18px 20px 0; font: 400 clamp(1.5rem, 4.6vw, 2.1rem) "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.mc-name small { font: 500 .78rem "DM Sans", sans-serif; letter-spacing: 0; color: var(--band-muted); margin-left: 6px; }
.growth { padding: 14px 20px 6px; }
.growth svg { width: 100%; height: auto; overflow: visible; }
.growth .gl path { stroke: rgba(125, 211, 252, .1); stroke-width: 1; }
.growth .cap { stroke: rgba(125, 211, 252, .5); stroke-width: 1; stroke-dasharray: 3 5; }
.growth .capt { fill: #7DD3FC; font: 500 11px "Space Grotesk", sans-serif; letter-spacing: .08em; }
.growth .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.growth .nd circle { fill: #0B1220; stroke: #38BDF8; stroke-width: 2; }
.growth .nd .now { fill: #38BDF8; stroke: #E0F4FF; filter: drop-shadow(0 0 8px rgba(56, 189, 248, .8)); }
.growth .xl text { fill: var(--band-muted); font: 500 10.5px "Space Grotesk", sans-serif; letter-spacing: .06em; }
.mc-kv { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--glass-line); }
.mc-kv div { padding: 12px 20px; border-bottom: 1px solid var(--glass-line); }
.mc-kv div:nth-child(2n) { border-left: 1px solid var(--glass-line); }
.mc-kv div:nth-last-child(-n+2) { border-bottom: 0; }
.mc-kv dt { font: 500 .66rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #7DD3FC; margin-bottom: 3px; }
.mc-kv dd { margin: 0; font-size: .92rem; color: #E6ECF5; }
.mcard .figcap { bottom: -32px; }
.model-note { margin-top: 40px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; color: #DCE3EE;
  border: 1px solid rgba(61, 220, 151, .32); background: linear-gradient(90deg, rgba(61, 220, 151, .12), rgba(61, 220, 151, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); font-size: .98rem; }
.model-note svg { width: 26px; height: 26px; flex: none; color: #3DDC97; }
.model-note b { color: #fff; }
.model-use { display: grid; gap: 40px; margin-top: 64px; }
.mu-h { font: 500 1.4rem "Space Grotesk", sans-serif; letter-spacing: -.01em; margin: 0 0 16px; color: var(--band-ink); }
.mu-ways { list-style: none; counter-reset: mu; margin: 0; padding: 0; display: grid; gap: 10px; }
.mu-ways li { counter-increment: mu; display: grid; grid-template-columns: 34px 1fr; gap: 3px 12px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--band-line); background: rgba(255, 255, 255, .03); }
.mu-ways li::before { content: counter(mu, decimal-leading-zero); grid-row: span 2; font: 500 .86rem "Space Grotesk", sans-serif;
  letter-spacing: .08em; color: #7DD3FC; padding-top: 3px; }
.mu-ways b, .mu-fields b { font: 500 1.04rem "Space Grotesk", sans-serif; color: var(--band-ink); }
.mu-ways span, .mu-fields span { color: var(--band-muted); font-size: .92rem; line-height: 1.45; }
.mu-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mu-fields li { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 13px 18px; border-left: 2px solid rgba(56, 189, 248, .6);
  border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(56, 189, 248, .09), rgba(56, 189, 248, 0)); }
.mu-limit { margin: 16px 0 0; font-size: .9rem; line-height: 1.5; color: var(--band-muted); }
@media (min-width: 700px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .mu-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .model-use { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; margin-top: 88px; } }
@media (min-width: 1080px) { .model { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; } }
@media (min-width: 1760px) { .caps { grid-template-columns: repeat(3, 1fr); } .model { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 96px; } }

/* ------------------------------------------------------------------ 08 locale o cloud */
.alt-cloud { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin: 0 0 18px; font-size: .95rem; color: var(--muted); }
.alt-cloud svg { width: 26px; height: 26px; flex: none; color: var(--az); }
.alt-cloud b { color: var(--ink); }
.alt-cloud a, .sec-legal a, .price-note a { color: var(--link); }

/* ------------------------------------------------------------------ 09 sicurezza: rimandi legali */
.sec-legal { margin-top: 36px; color: var(--band-muted); font-size: .92rem; }

/* ------------------------------------------------------------------ 12 piani */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: 20px; padding: 26px 22px 22px; overflow: hidden; isolation: isolate; }
.plan::before { content: ""; position: absolute; z-index: -1; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--az-2) 22%, transparent), transparent); }
.pl-top { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.pl-ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #38BDF8, #2F6BFF 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 24px -12px rgba(47, 107, 255, .8); }
.pl-ic svg { width: 26px; height: 26px; }
.pl-k { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); }
.plan h3 { font-size: clamp(1.9rem, 5vw, 2.5rem); letter-spacing: -.03em; }
.pl-d { grid-column: 1 / -1; color: var(--muted); margin-top: 12px; }
.price { display: grid; gap: 0; margin: 20px 0 6px; border-block: 1px solid var(--line); }
.pr { display: grid; gap: 2px; padding: 14px 0; }
.pr + .pr { border-top: 1px dashed var(--line-2); }
.pr-k { font: 500 .68rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.amt { font: 400 clamp(1.6rem, 4.4vw, 2.1rem)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.02em; color: var(--ink); }
.amt em { font: 500 .95rem "DM Sans", sans-serif; color: var(--muted); font-style: normal; margin-left: 4px; }
.pr small:last-child { color: var(--muted); font-size: .88rem; }
.incl { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 10px; }
.incl li { position: relative; padding-left: 28px; font-size: .96rem; line-height: 1.45; }
.incl li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' stroke='%2312A56A' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
[data-theme="dark"] .incl li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' stroke='%233DDC97' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.incl li.key { color: var(--ink); }
.incl li.key b { color: var(--link); }
.how { list-style: none; margin: auto 0 18px; padding: 14px 16px; display: grid; gap: 8px; border-radius: 12px; background: color-mix(in srgb, var(--chip) 80%, transparent);
  border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.how li { display: flex; align-items: baseline; gap: 10px; }
.how i { font: 600 .72rem "Space Grotesk", sans-serif; font-style: normal; color: var(--az); width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--az-2) 45%, transparent); transform: translateY(-1px); }
.pl-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pl-cta .btn { width: 100%; }
.plans-or { display: flex; align-items: center; justify-content: center; margin: -4px 0; }
.plans-or span { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); padding: 8px 16px;
  border-radius: 999px; background: var(--glass-top); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--sh-1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.both { margin-top: 18px; border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; }
.both-k { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); }
.both ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.both li { display: inline-flex; align-items: center; gap: 7px; font-size: .94rem; }
.both svg { width: 16px; height: 16px; color: var(--mint); }
.price-note { margin-top: 18px; color: var(--muted); font-size: .9rem; max-width: 60rem; }
@media (min-width: 560px) { .pl-cta { grid-template-columns: 1fr auto; } .pl-cta .btn { width: auto; } .pl-cta .btn:first-child { width: 100%; } }
@media (min-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr); gap: 24px; }
  .plans-or { margin: 0; position: relative; z-index: 2; }
  .plans-or span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
  .plan { padding: 34px 32px 28px; }
  .both { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}
@media (min-width: 1760px) { .plan { padding: 44px 44px 36px; } .incl { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* ------------------------------------------------------------------ 13 fatto in Italia */
.italia .it-in { display: grid; gap: 40px; align-items: center; }
.stamp { position: relative; margin: 0 auto 30px; width: min(100%, 360px); }
.stamp > svg { width: 100%; height: auto; overflow: visible; }
.band .az, .final .az { color: #38BDF8; }
.stamp .s1 { fill: none; stroke: rgba(125, 211, 252, .28); stroke-width: 1; }
.stamp .s2 { fill: rgba(56, 189, 248, .04); stroke: rgba(125, 211, 252, .5); stroke-width: 1.2; }
.stamp .s3 { fill: none; stroke: rgba(56, 189, 248, .45); stroke-width: 4; stroke-dasharray: 1 9.5; }
.stamp .dial { transform-origin: 200px 200px; }
.stamp .st-t { fill: #DCEBFA; font: 500 14px "Space Grotesk", sans-serif; }
.stamp .st-g { color: #fff; }
.stamp .st-m { fill: #F3F4F8; font: 500 15px "Space Grotesk", sans-serif; letter-spacing: .34em; }
.stamp .figcap { bottom: -30px; }
.it-pts { margin: 0; display: grid; gap: 10px; }
.it-pts div { padding: 16px 18px; border-radius: 14px; }
.it-pts dt { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #7DD3FC; margin-bottom: 4px; }
.it-pts dd { margin: 0; color: #DCE3EE; font-size: .96rem; }
@media (min-width: 700px) { .it-pts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .italia .it-in { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 80px; } .stamp { width: min(100%, 440px); margin-bottom: 0; } }
@media (min-width: 1760px) { .it-pts { grid-template-columns: repeat(4, 1fr); } .stamp { width: min(100%, 560px); } }

/* ------------------------------------------------------------------ 16 assistenza: modulo */
.help { display: grid; gap: 40px; align-items: start; }
.help-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.help-ways li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; }
.hw-i { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--az);
  background: color-mix(in srgb, var(--az-2) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--az-2) 28%, transparent); }
.hw-i svg { width: 20px; height: 20px; }
.help-ways p { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.help-ways b { display: block; color: var(--ink); font: 500 1.05rem "Space Grotesk", sans-serif; margin-bottom: 2px; }
.help-ways a { color: var(--link); font-weight: 600; word-break: break-word; }
.tform { border-radius: 20px; padding: 22px 18px 20px; display: grid; gap: 18px; position: relative; }
.tform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tform legend { padding: 0; margin-bottom: 10px; font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kinds legend { grid-column: 1 / -1; }
.kinds label, .seg label { position: relative; cursor: pointer; }
.kinds input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kinds span { display: grid; justify-items: start; gap: 6px; height: 100%; padding: 13px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; line-height: 1.25;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.kinds span svg { width: 20px; height: 20px; color: var(--az); }
.kinds small { font-weight: 500; font-size: .76rem; color: var(--muted); margin-top: -4px; }
.kinds label:hover span { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); transform: translateY(-1px); }
.kinds input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 20px -14px rgba(47, 107, 255, .7); }
.kinds input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--az-2); outline-offset: 2px; }
.seg-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--chip); border: 1px solid var(--line); }
.seg span { display: grid; place-items: center; text-align: center; min-height: 40px; padding: 6px 8px; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--muted);
  line-height: 1.2; transition: background .2s, color .2s, box-shadow .25s; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 48, .1), 0 6px 14px -8px rgba(23, 44, 92, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
[data-theme="dark"] .seg input:checked + span { background: #22304D; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px -8px #000; }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.f-hint { margin-top: -8px; font-size: .86rem; color: var(--amber); background: var(--amber-bg); padding: 9px 12px; border-radius: 9px; }
.grid2 { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: .86rem; font-weight: 600; color: var(--ink); }
.fld i, .f-note i { font-style: normal; color: var(--accent); }
[data-theme="dark"] .fld i, [data-theme="dark"] .f-note i { color: #7DD3FC; }
.fld input, .fld textarea { width: 100%; font: 400 1rem/1.4 "DM Sans", sans-serif; color: var(--ink); padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--card) 82%, transparent); box-shadow: inset 0 1px 2px rgba(16, 24, 48, .05);
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.fld textarea { resize: vertical; min-height: 128px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.fld.bad input, .fld.bad textarea { border-color: var(--block); box-shadow: 0 0 0 3px color-mix(in srgb, var(--block) 16%, transparent); }
.fld .msg { font-size: .8rem; color: var(--block); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--link); }
.f-err { padding: 12px 14px; border-radius: 11px; font-size: .92rem; line-height: 1.5; background: var(--block-bg); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--block) 35%, transparent); }
.f-err b { color: var(--block); }
.f-err a { color: var(--link); font-weight: 600; word-break: break-word; }
.f-err.soft { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.f-err.soft b { color: var(--amber); }
.f-foot { display: grid; gap: 12px; }
.f-foot .btn { width: 100%; }
.f-foot .btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.f-foot .btn[aria-busy="true"] svg { animation: send 1s ease-in-out infinite; }
@keyframes send { 50% { transform: translate(3px, -3px); } }
.f-note { font-size: .8rem; color: var(--faint); }
.f-done { position: absolute; inset: 0; z-index: 2; border-radius: inherit; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px;
  padding: 28px; background: linear-gradient(180deg, var(--glass-top), var(--glass-solid)); outline: none; }
.f-done[hidden] { display: none; }
.f-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 6px;
  background: linear-gradient(160deg, #3DDC97, #12A56A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 16px 30px -12px rgba(18, 165, 106, .7); }
.f-ok svg { width: 30px; height: 30px; }
.f-done h3 { font-size: 1.8rem; }
.f-done p { color: var(--muted); max-width: 26rem; }
.f-done .btn { margin-top: 10px; }
@media (min-width: 560px) { .kinds { grid-template-columns: repeat(4, 1fr); } .grid2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .tform { padding: 30px 30px 26px; } .f-foot { grid-template-columns: auto 1fr; align-items: center; gap: 18px; } .f-foot .btn { width: auto; } }
@media (min-width: 1080px) { .help { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } .help-copy { position: sticky; top: 110px; } }
@media (min-width: 1760px) { .help { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 96px; } }

/* finale: tre pulsanti */
.final .ctas .btn.line:not(.login) svg { color: #7DD3FC; }

/* ------------------------------------------------------------------ piè di pagina */
.foot { border-top: 1px solid var(--line); padding: 52px 0 110px; background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.f-grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.f-brand { grid-column: 1 / -1; }
.f-brand > p { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 30rem; }
.f-it { display: flex; align-items: center; gap: 12px; font-size: .88rem !important; }
.f-it b { color: var(--ink); }
.f-col { display: grid; align-content: start; gap: 10px; }
.f-col p { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.f-col a { text-decoration: none; color: var(--muted); font-size: .92rem; width: fit-content; max-width: 100%; overflow-wrap: anywhere; transition: color .2s; }
.f-col a:hover { color: var(--link); }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: .8rem; }
.legal-line a { color: inherit; }
@media (min-width: 760px) { .f-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .f-brand { grid-column: auto; } }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }

/* ================================================================== documenti legali */
.lg-body .nav .links.lg-links { margin-inline: auto; }
.lg-links a.on { color: var(--ink); background: var(--chip); }
.lg-hero { position: relative; padding: 112px 0 40px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.lg-hero::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .16), rgba(47, 107, 255, .06) 55%, transparent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .86rem; color: var(--faint); margin-bottom: 26px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs svg { width: 16px; height: 16px; }
.crumbs b { color: var(--ink); font-weight: 600; }
.lg-hero h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); letter-spacing: -.035em; margin: 16px 0 16px; max-width: 22ch; }
.lg-lead { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 52rem; }
.lg-meta { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line-2); max-width: 64rem; }
.lg-meta div { padding: 14px 24px 2px 0; margin-right: 24px; }
.lg-meta div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.lg-meta dt { font: 500 .68rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); margin-bottom: 4px; }
.lg-meta dd { margin: 0; font-size: .95rem; }
.lg { padding-bottom: 80px; }
.lg-grid { display: grid; gap: 28px; padding-top: 32px; }
.k { font: 500 .7rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); }
.toc { border-radius: 16px; padding: 4px 18px; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary em { font: 500 .78rem "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; color: var(--faint); font-style: normal; }
.toc summary::after { content: ""; width: 10px; height: 10px; border-right: 1.5px solid var(--az); border-bottom: 1.5px solid var(--az); transform: rotate(45deg) translateY(-3px);
  transition: transform .25s; margin-left: auto; }
.toc[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.toc ol, .lg-docs ol { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 1px; }
.toc a, .lg-docs a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .9rem;
  line-height: 1.35; transition: background .2s, color .2s; }
.toc a i, .lg-docs a i { font: 500 .7rem "Space Grotesk", sans-serif; font-style: normal; color: var(--faint); flex: none; width: 18px; }
.toc a:hover, .lg-docs a:hover { color: var(--ink); background: var(--chip); }
.toc a.on, .lg-docs a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.toc a.on i, .lg-docs a[aria-current] i { color: var(--az); }
.lg-docs { border-radius: 16px; padding: 4px 8px 4px; margin-top: 14px; background: linear-gradient(180deg, var(--glass-top), var(--glass)); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--sh-1); }
.lg-docs .k { padding: 16px 10px 8px; }
.brief { border-radius: 16px; padding: 18px 20px; }
.brief ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.brief li { display: flex; gap: 10px; font-size: .94rem; line-height: 1.45; }
.brief svg { width: 18px; height: 18px; flex: none; color: var(--mint); margin-top: 2px; }
.brief-side { display: none; }
.lg-side { min-width: 0; }
.lg-doc { min-width: 0; counter-reset: h2; }
.lg-doc > .brief-in { margin-bottom: 10px; }
.lg-doc h2 { counter-increment: h2; font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -.02em; margin: 52px 0 16px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 14px; align-items: baseline; scroll-margin-top: 90px; }
.lg-doc h2::before { content: counter(h2, decimal-leading-zero); font: 500 .8rem "Space Grotesk", sans-serif; letter-spacing: .1em; color: var(--az); flex: none; }
.lg-doc h3 { font-size: 1.22rem; margin: 30px 0 10px; scroll-margin-top: 90px; }
.lg-doc p, .lg-doc li { max-width: 74ch; color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.lg-doc p + p { margin-top: 12px; }
.lg-doc ul, .lg-doc ol { padding-left: 1.3em; margin: 12px 0; display: grid; gap: 8px; }
.lg-doc li::marker { color: var(--az); }
.lg-doc a { color: var(--link); text-underline-offset: 3px; }
.lg-doc code { font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--chip); border: 1px solid var(--line); word-break: break-word; }
.lg-doc .small, .lg-hub-foot .small { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.callout { margin: 20px 0; padding: 16px 18px 16px 20px; border-radius: 14px; max-width: 74ch; position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 3%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.tbl { margin: 18px 0; overflow-x: auto; border-radius: 14px; border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--sh-1);
  background: linear-gradient(180deg, var(--glass-top), var(--glass)); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.lg-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.45; min-width: 560px; }
.lg-table th { text-align: left; font: 500 .68rem "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  padding: 13px 14px; background: color-mix(in srgb, var(--card-2) 60%, transparent); border-bottom: 1px solid var(--line); }
.lg-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); }
.lg-table tr:first-child td { border-top: 0; }
.lg-table td small { display: block; color: var(--faint); font-size: .8rem; }
.lg-table.sub { min-width: 760px; }
.lg-card { margin: 14px 0; padding: 6px 18px; border-radius: 14px; display: grid; max-width: 74ch; }
.lg-card div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
.lg-card div + div { border-top: 1px solid var(--line); }
.lg-card dt { font: 500 .66rem "Space Grotesk", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--az); }
.lg-card dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.lg-card a { color: var(--link); }
.form-tipo { margin: 14px 0; padding: 18px 20px; border-radius: 14px; max-width: 74ch; border: 1px dashed var(--line-2); background: var(--card-2); font-size: .94rem; }
.form-tipo p { overflow-wrap: anywhere; }
.steps-lg { list-style: none; padding: 0 !important; counter-reset: st; }
.steps-lg li { counter-increment: st; position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.steps-lg li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font: 600 .78rem "Space Grotesk", sans-serif; color: #fff; background: linear-gradient(160deg, #38BDF8, #2F6BFF); }
.lg-end { margin-top: 48px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--faint) !important; }
.lg-print { margin-top: 14px; width: 100%; }
.lg-tiles { display: grid; gap: 14px; padding-top: 36px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.lg-tile { display: grid; gap: 8px; align-content: start; padding: 22px 22px 18px; border-radius: 18px; text-decoration: none; color: var(--ink); min-height: 220px; }
.lg-tile .n { font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .14em; color: var(--az); }
.lg-tile b { font: 400 1.5rem/1.15 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.lg-tile small { font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.lg-tile p { color: var(--muted); font-size: .93rem; }
.lg-tile em { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-style: normal; font-size: .82rem; color: var(--faint);
  border-top: 1px solid var(--line); }
.lg-tile em svg { width: 18px; height: 18px; color: var(--link); transition: transform .3s; }
.lg-tile:hover em svg { transform: translateX(4px); }
.lg-hub-foot { display: grid; gap: 14px; margin-top: 14px; }
.lg-hub-foot > div { border-radius: 18px; padding: 20px 22px; }
.lg-hub-foot .lg-card { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; margin: 8px 0 0; }
.laws { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
@media (min-width: 900px) { .lg-hub-foot { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .lg-card div { grid-template-columns: 170px 1fr; gap: 16px; } }
@media (min-width: 1100px) {
  .lg-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding-top: 44px; }
  .lg-nav { position: sticky; top: 92px; align-self: start; grid-row: span 2; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; }
  .lg-side { grid-column: 2; }
  .toc summary { cursor: default; pointer-events: none; } .toc summary::after { display: none; }
  .lg-hero { padding: 132px 0 48px; }
}
@media (min-width: 1500px) {
  .lg-grid { grid-template-columns: 280px minmax(0, 1fr) 340px; }
  .lg-doc > .brief-in { display: none; }
  .lg-side { grid-column: 3; grid-row: 1; position: sticky; top: 92px; align-self: start; }
  .lg-nav { grid-row: auto; }
  .brief-side { display: block; }
}
@media (min-width: 1760px) { .lg-grid { grid-template-columns: 300px minmax(0, 1fr) 400px; gap: 80px; } }
@media print {
  .nav, .lg-nav, .lg-side, .foot, .lg-hero::before, .hero-grid, body::before { display: none !important; }
  .lg-hero { padding: 0 0 12px; } .lg-grid { display: block; padding: 0; } .lg-doc > .brief-in { display: block; }
  body { background: #fff; color: #000; } .tbl, .glass, .lg-card { box-shadow: none !important; background: none !important; border-color: #ccc !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .dl, .plan, .chk, .lg-tile, .caps li, .help-ways li, .it-pts div, .pins li, .kinds span { transition: none; }
  .btn:hover, .tile:hover, .dl:hover, .plan:hover, .chk:hover, .lg-tile:hover, .caps li:hover, .help-ways li:hover, .it-pts div:hover, .pins li:hover { transform: none; }
}
@media (max-width: 599px) { .growth .xl text { font-size: 14px; } .growth .capt { font-size: 14px; } }
@media (max-width: 599px) { .lg-meta div + div { border-left: 0; padding-left: 0; } .lg-meta div { margin-right: 28px; padding-right: 0; } }
@media (min-width: 1760px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero h1 { font-size: clamp(5.8rem, 5.6vw, 9rem); }
  .lead { max-width: 44rem; font-size: 1.3rem; }
  .final h2 { max-width: 18ch; } .final > p { max-width: 46rem; }
}

/* ------------------------------------------------------------------ 09 cybersecurity (in evidenza) */
.cyber { background: radial-gradient(70% 60% at 85% 0%, rgba(47, 107, 255, .18), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(56, 189, 248, .10), transparent 70%), var(--band); }
.cy-head { display: grid; gap: 28px; align-items: end; margin-bottom: 40px; }
.cy-head .sh { margin-bottom: 0; }
.cy-kpi { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, var(--glass-top), var(--glass)); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--sh-1);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%); backdrop-filter: blur(var(--blur)) saturate(160%); }
.cy-kpi div { padding: 18px 20px; border-bottom: 1px solid var(--glass-line); }
.cy-kpi div:nth-child(2n) { border-left: 1px solid var(--glass-line); }
.cy-kpi div:nth-last-child(-n+2) { border-bottom: 0; }
.cy-kpi dt { font: 400 clamp(1.7rem, 4vw, 2.4rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.02em; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF, #9FDCFB); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cy-kpi dd { margin: 8px 0 0; font-size: .86rem; color: var(--band-muted); }
.cy-grid { list-style: none; margin: 0 0 56px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cy-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } .cy { padding: 22px 18px 20px; } .cy em { right: 16px; } }
.cy { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 20px 20px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--glass-top), var(--glass) 60%); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--sh-1);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%); backdrop-filter: blur(var(--blur)) saturate(160%);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .45s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.cy::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .7), transparent); }
.cy::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -70px; top: -90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .16), transparent); pointer-events: none; }
@media (hover: hover) { .cy:hover, .cy.reveal.in:hover { transform: translateY(-4px); box-shadow: var(--glass-hi), var(--sh-2); border-color: rgba(125, 211, 252, .4); } }
.cy-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #7DD3FC; flex: none;
  background: linear-gradient(180deg, rgba(56, 189, 248, .22), rgba(47, 107, 255, .14)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(125, 211, 252, .22), 0 10px 20px -12px rgba(56, 189, 248, .6); }
.cy-i svg { width: 22px; height: 22px; }
.cy em { position: absolute; top: 22px; right: 20px; font: 500 .66rem "Space Grotesk", sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase;
  color: #7DD3FC; padding: 4px 8px; border-radius: 6px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(125, 211, 252, .22); max-width: calc(100% - 90px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cy b { font: 500 1.16rem/1.25 "Space Grotesk", sans-serif; letter-spacing: -.01em; margin-top: 8px; color: #fff; }
.cy p { color: #C3CAD8; font-size: .93rem; line-height: 1.5; }
.cy-side { display: grid; gap: 18px; align-content: start; }
.cy-verify { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; color: #DCE3EE; font-size: .95rem;
  border: 1px solid rgba(61, 220, 151, .3); background: linear-gradient(90deg, rgba(61, 220, 151, .1), rgba(61, 220, 151, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.cy-verify .cy-i { color: #3DDC97; background: rgba(61, 220, 151, .12); box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .3); width: 38px; height: 38px; }
.cy-verify b { color: #fff; } .cy-verify a { color: #7DD3FC; }
@media (min-width: 1080px) { .cy-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; } }
@media (min-width: 2200px) { .cy-kpi { grid-template-columns: repeat(4, 1fr); } .cy-kpi div { border-bottom: 0; border-left: 1px solid var(--glass-line); } .cy-kpi div:first-child { border-left: 0; } }

/* la pillola della cybersecurity nell'apertura */
.cy-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 14px; text-decoration: none; color: var(--ink);
  max-width: 100%; background: linear-gradient(180deg, var(--glass-top), var(--glass)); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--sh-1);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.cy-pill:hover { transform: translateY(-2px); box-shadow: var(--glass-hi), var(--sh-2); border-color: color-mix(in srgb, var(--mint) 45%, var(--glass-line)); }
.cy-pill:active { transform: translateY(0) scale(.99); }
.cy-pi { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #3DDC97, #12A56A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 20px -10px rgba(18, 165, 106, .8); }
.cy-pi svg { width: 20px; height: 20px; }
.cy-pill > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.cy-pill b { font: 600 .92rem "DM Sans", sans-serif; }
.cy-pill small { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.cy-pill .go { width: 16px; height: 16px; flex: none; color: var(--link); transition: transform .3s; }
.cy-pill:hover .go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .cy, .cy-pill { transition: none; } .cy:hover, .cy-pill:hover { transform: none; } }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cy, .cy-kpi, .cy-pill { background: var(--glass-solid); } }
@media (min-width: 1760px) { .sh h2 { font-size: clamp(3.5rem, 2.9vw, 4.8rem); } .sh > p:last-child { max-width: 50rem; font-size: 1.12rem; } }

/* ================================================================== più rilievo: ombre più profonde e luce sui bordi
   Tutte le card e i riquadri: luce sul bordo alto, un filo d'ombra su quello basso, ombre a più livelli; al buio (tema
   scuro e fasce notte) sotto c'è anche un alone blu del brand, così il rilievo si vede pure su fondo scuro. */
:root, [data-theme="light"] {
  --relief: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(23, 44, 92, .07), inset 0 0 0 1px rgba(255, 255, 255, .4);
  --sh-r: 0 1px 1px rgba(16, 24, 48, .05), 0 3px 8px -2px rgba(16, 24, 48, .08), 0 14px 28px -10px rgba(23, 44, 92, .18), 0 40px 80px -30px rgba(23, 44, 92, .38);
  --sh-r2: 0 1px 1px rgba(16, 24, 48, .06), 0 6px 14px -4px rgba(16, 24, 48, .10), 0 24px 44px -14px rgba(23, 44, 92, .24), 0 60px 110px -40px rgba(23, 44, 92, .46);
}
[data-theme="dark"], .band {
  --relief: inset 0 1px 0 rgba(255, 255, 255, .11), inset 0 -1px 0 rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .025);
  --sh-r: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 22px -8px rgba(0, 0, 0, .6), 0 38px 76px -30px rgba(0, 0, 0, .92), 0 28px 64px -34px rgba(47, 107, 255, .42);
  --sh-r2: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 32px -10px rgba(0, 0, 0, .66), 0 56px 110px -40px rgba(0, 0, 0, .95), 0 34px 80px -40px rgba(56, 189, 248, .38),
    0 0 0 1px rgba(125, 211, 252, .08);
}
.glass, .panel, .tile, .chk, .cmp, .dl, .pins li, .steps .trace, .score, .plan, .both, .mcard, .alt-cloud, .tform, .help-ways li, .caps li,
.it-pts div, .lg-card, .vid, .qa .a, .qa .q, .cy, .cy-pill, .lg-docs, .tbl { box-shadow: var(--relief), var(--sh-r); }
/* al buio la luce viene dall'alto: un velo chiaro sulla parte alta della card, così ha volume */
:is([data-theme="dark"], .band) :is(.panel, .tile, .chk, .cmp, .dl, .plan, .mcard, .lg-card, .cy, .caps li, .help-ways li, .pins li) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 42%), linear-gradient(180deg, var(--glass-top), var(--glass) 60%); }
@media (hover: hover) {
  .tile:hover, .dl:hover, .plan:hover, .chk:hover, .lg-tile:hover, .caps li:hover, .help-ways li:hover, .it-pts div:hover, .pins li:hover,
  .cy:hover, .cy.reveal.in:hover, .cy-pill:hover, .panel.reveal.in:hover { box-shadow: var(--relief), var(--sh-r2); }
  .panel.reveal.in:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--az-2) 34%, var(--glass-line)); }
}

/* ------------------------------------------------------------------ Sala agenti: tutto si anima quando ci arrivi
   I messaggi arrivano uno dopo l'altro come in una chat, le righe di «Chi fa cosa» entrano in fila, i poteri si accendono,
   la richiesta da approvare si fa notare. Solo una volta, solo senza «riduci movimento». */
@media (prefers-reduced-motion: no-preference) {
  .room-chat .m { opacity: 0; transform: translateY(12px) scale(.96); transform-origin: left bottom;
    transition: opacity .5s cubic-bezier(.2, .8, .2, 1), transform .65s cubic-bezier(.2, .8, .2, 1); }
  .room-chat .m.me { transform: translateX(16px) scale(.96); transform-origin: right bottom; }
  .room-chat.in .m { opacity: 1; transform: none; }
  .room-chat.in .m:nth-child(1) { transition-delay: .3s; }
  .room-chat.in .m:nth-child(2) { transition-delay: 1s; }
  .room-chat.in .m:nth-child(3) { transition-delay: 1.65s; }
  .room-chat.in .m:nth-child(4) { transition-delay: 2.25s; }
  .room-chat.in .m:nth-child(5) { transition-delay: 2.95s; }
  .room-chat.in .m.brain { animation: m-glow 1.6s ease-out backwards; }
  .room-chat.in .m.brain:nth-child(2) { animation-delay: 1s; }
  .room-chat.in .m.brain:nth-child(5) { animation-delay: 2.95s; }
  @keyframes m-glow { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } 30% { box-shadow: 0 0 0 4px rgba(56, 189, 248, .18), 0 10px 30px -10px rgba(56, 189, 248, .5); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } }

  .board li { opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .board.in li { opacity: 1; transform: none; }
  .board .st { transform: scale(.6); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; }
  .board.in .st { transform: none; opacity: 1; }
  .board.in li:nth-child(1), .board.in li:nth-child(1) .st { transition-delay: .25s; }
  .board.in li:nth-child(2), .board.in li:nth-child(2) .st { transition-delay: .37s; }
  .board.in li:nth-child(3), .board.in li:nth-child(3) .st { transition-delay: .49s; }
  .board.in li:nth-child(4), .board.in li:nth-child(4) .st { transition-delay: .61s; }
  .board.in li:nth-child(5), .board.in li:nth-child(5) .st { transition-delay: .73s; }
  .board.in .st.run { animation: st-run 2.4s ease-in-out 1.4s infinite; }
  @keyframes st-run { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, #2F6BFF 16%, transparent); } }

  .powers .chips li { opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1),
    background .4s, border-color .4s, color .4s; }
  .powers.in .chips li { opacity: 1; transform: none; }
  .powers.in .chips li:nth-child(1) { transition-delay: .3s; } .powers.in .chips li:nth-child(2) { transition-delay: .36s; }
  .powers.in .chips li:nth-child(3) { transition-delay: .42s; } .powers.in .chips li:nth-child(4) { transition-delay: .48s; }
  .powers.in .chips li:nth-child(5) { transition-delay: .54s; } .powers.in .chips li:nth-child(6) { transition-delay: .6s; }
  .powers.in .chips li:nth-child(7) { transition-delay: .66s; } .powers.in .chips li:nth-child(8) { transition-delay: .72s; }
  .powers.in .chips li:nth-child(9) { transition-delay: .78s; } .powers.in .chips li:nth-child(10) { transition-delay: .84s; }
  .powers.in .chips li.on { animation: chip-on .9s ease-out backwards; }
  .powers.in .chips li.on:nth-child(1) { animation-delay: 1.05s; } .powers.in .chips li.on:nth-child(2) { animation-delay: 1.25s; }
  .powers.in .chips li.on:nth-child(3) { animation-delay: 1.45s; }
  @keyframes chip-on { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); } 35% { box-shadow: 0 0 0 4px rgba(47, 107, 255, .22), 0 6px 18px -6px rgba(47, 107, 255, .6); }
    100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); } }

  .approve .ap-i { position: relative; }
  .approve.in .ap-i::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; border: 2px solid var(--amber);
    opacity: 0; animation: ap-ring 1.8s ease-out .9s 2; }
  @keyframes ap-ring { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
  .approve .ap-b span { opacity: 0; transform: translateX(10px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
  .approve.in .ap-b span { opacity: 1; transform: none; }
  .approve.in .ap-b .no { transition-delay: .55s; } .approve.in .ap-b .yes { transition-delay: .7s; }
  .approve.in .ap-b .yes { animation: ap-yes 2.6s ease-in-out 1.6s infinite; }
  @keyframes ap-yes { 50% { box-shadow: 0 0 0 4px rgba(47, 107, 255, .2), 0 10px 24px -8px rgba(47, 107, 255, .7); } }
}
/* rilievo anche dentro: i messaggi, i poteri accesi e i pulsanti della richiesta */
.room-chat .m { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(16, 24, 48, .05), 0 8px 18px -10px rgba(23, 44, 92, .28); }
.room-chat .m.me { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px -10px rgba(47, 107, 255, .65); }
.chips li.on, .ap-b span { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px -6px rgba(23, 44, 92, .35); }
.ap-b .yes { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -8px rgba(47, 107, 255, .7); }
:is([data-theme="dark"], .band) .room-chat .m:not(.me) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 22px -12px rgba(0, 0, 0, .8); }
:is([data-theme="dark"], .band) :is(.chips li.on, .ap-b span:not(.yes)) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 6px 14px -8px rgba(0, 0, 0, .8); }

/* ================================================================== lingue (lingue.py, lang.js)
   Il selettore: il globo con il codice della lingua, l'elenco nei nomi originali. Sul telefono le lingue stanno nel menu. */
.lang { position: relative; display: none; }
.lang > summary { list-style: none; width: auto; min-width: 40px; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; justify-content: center;
  font: 500 .78rem/1 "Space Grotesk", sans-serif; letter-spacing: .08em; user-select: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:focus-visible { outline: 2px solid var(--az-2); outline-offset: 2px; }
.lang[open] > summary { border-color: var(--accent); color: var(--link); }
.lang-code { min-width: 1.4em; text-align: center; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; list-style: none; margin: 0; padding: 6px; min-width: 210px;
  border-radius: 14px; box-shadow: var(--glass-hi), var(--sh-2); animation: lang-in .22s cubic-bezier(.2, .8, .2, 1); }
.lang-pop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink);
  font: 500 .95rem "DM Sans", sans-serif; transition: background .2s, color .2s; }
.lang-pop a span { flex: 1; }
.lang-pop a small { font: 500 .66rem/1 "Space Grotesk", sans-serif; letter-spacing: .12em; color: var(--faint); }
.lang-pop a svg { width: 16px; height: 16px; color: var(--accent); visibility: hidden; }
.lang-pop a:hover, .lang-pop a:focus-visible { background: var(--chip); color: var(--link); outline: none; }
.lang-pop a[aria-current] { color: var(--link); }
.lang-pop a[aria-current] svg { visibility: visible; }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 1080px) and (max-width: 1279px) { .nav .links a { padding: 8px 9px; } }
/* nel menu del telefono */
.m-langs { margin-top: 18px; }
.m-langs-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 .72rem "Space Grotesk", sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: var(--az); }
.m-langs-t svg { width: 15px; height: 15px; }
.m-langs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.m-menu .m-langs-row a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--glass-line); border-radius: 99px;
  background: var(--chip); color: var(--ink); text-decoration: none; font: 500 .9rem "DM Sans", sans-serif; border-bottom: 1px solid var(--glass-line); }
.m-menu .m-langs-row a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
/* «questa pagina c'è anche nella tua lingua» (solo sulle pagine italiane, finché non si sceglie) */
.lang-hint { position: fixed; z-index: 55; top: calc(78px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 14px; box-shadow: var(--glass-hi), var(--sh-2); opacity: 0; transform: translateY(-8px);
  transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.lang-hint.in { opacity: 1; transform: none; }
.lang-hint > svg { width: 20px; height: 20px; flex: none; color: var(--az); }
.lang-hint p { margin: 0; flex: 1; min-width: 0; font-size: .92rem; line-height: 1.35; }
.lang-hint .btn { flex: none; }
.lang-hint .btn:hover { transform: none; }
.lang-hint-x { width: 36px; height: 36px; border-color: transparent; color: var(--muted); }
.lang-hint-x svg { width: 16px; height: 16px; }
@media (min-width: 720px) { .lang-hint { left: auto; right: var(--gut); max-width: 520px; } }
@media (max-width: 420px) { .lang-hint { flex-wrap: wrap; } .lang-hint p { flex-basis: calc(100% - 80px); } .lang-hint .btn { margin-left: 32px; } }
@media (prefers-reduced-motion: reduce) { .lang-hint, .lang-pop { transition: none; animation: none; transform: none; } }
@media print { .lang-hint, .lang { display: none !important; } }
/* documenti legali tradotti: fa fede l'italiano */
.lg-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; font-size: .94rem; line-height: 1.5;
  background: color-mix(in srgb, var(--az-2) 9%, transparent); border: 1px solid color-mix(in srgb, var(--az-2) 30%, var(--glass-line)); }
.lg-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--az); }
.lg-note a { color: var(--link); font-weight: 500; }
.lg-hub-note { max-width: 60rem; }
/* cinese: i caratteri vengono dai font di sistema, con un'interlinea più ariosa */
:lang(zh) body, body:lang(zh) { line-break: strict; }
:lang(zh) p, :lang(zh) li { line-height: 1.75; }
.lang.always { display: block; }
@media (max-width: 380px) { .lang.always > summary .lang-code { display: none; } .lang.always > summary { padding: 0; width: 40px; } }
/* la barra si adatta alla lingua (lang.js): voci su una riga, Login solo icona quando lo spazio non basta */
.nav .links a { white-space: nowrap; }
.nav .links a[hidden] { display: none; }
.nav .tools > * { flex: none; }
.nav.tight .tools .nav-login { font-size: 0; gap: 0; padding: 0; width: 40px; justify-content: center; }
.nav.tight .tools .nav-login svg { margin: 0; }
.lang { display: none; }
@media (min-width: 900px) { .lang { display: block; } }
.lang-pop.glass, .lang-hint.glass { background: linear-gradient(180deg, var(--glass-solid), color-mix(in srgb, var(--glass-solid) 90%, transparent)); }

/* ------------------------------------------------------------------ le tre illustrazioni vive (mini PC, perimetro, collegamenti) */
/* Entrano componendosi come il marchio: i contorni si disegnano, i punti arrivano, le scritte compaiono; poi restano vive
   con piccoli pacchetti di dati che corrono sui fili (sono SVG: nitidi a ogni misura). Con «riduci il movimento» restano
   ferme e complete. */
.hw-fig .chip-w { fill: none; stroke: #38BDF8; stroke-width: 1; opacity: 0; }
.hw-fig .ring circle { fill: none; stroke: #2F6BFF; stroke-width: 1.2; opacity: 0; }
[data-theme="dark"] .hw-fig .ring circle { stroke: #38BDF8; }
.hw-fig .pk circle { fill: #2F6BFF; } [data-theme="dark"] .hw-fig .pk circle { fill: #7DD3FC; }
.hw-fig .sweep { opacity: 0; pointer-events: none; }
.hw-fig .ports .led { fill: #3DDC97; stroke: none; }
.perim .orbit circle { fill: none; stroke: rgba(125, 211, 252, .35); stroke-width: 1; stroke-dasharray: 2 7; }
.perim .core-beat { fill: none; stroke: #7DD3FC; stroke-width: 1.5; opacity: 0; }
.perim .pk circle { fill: #7DD3FC; } .perim .pk .pk-in { fill: #3DDC97; } .perim .pk .pk-t { fill: #38BDF8; }
.chipx .scan { display: none; }
@media (prefers-reduced-motion: reduce) { .hw-fig .pk, .perim .pk { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* mini PC: il disegno tecnico si traccia, poi il chip lavora (onda), le porte respirano, i dati escono verso le note */
  .hw-fig :is(.top, .side, .inset, .chip, .lead path, .dim path) { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hw-fig :is(.top, .side, .chip) { fill-opacity: 0; }
  .hw-fig :is(.ports, .vents, .chip-o, .pin, .lbl, .pk) { opacity: 0; }
  .hw-fig .pin { transform-box: fill-box; transform-origin: center; }
  .hw-fig.in .top { animation: g-draw 1s cubic-bezier(.6, 0, .2, 1) .15s forwards, g-fill .6s ease 1s forwards; }
  .hw-fig.in .side.l { animation: g-draw .9s cubic-bezier(.6, 0, .2, 1) .45s forwards, g-fill .6s ease 1.2s forwards; }
  .hw-fig.in .side.r { animation: g-draw .9s cubic-bezier(.6, 0, .2, 1) .6s forwards, g-fill .6s ease 1.3s forwards; }
  .hw-fig.in .inset { animation: g-draw .8s ease 1s forwards; }
  .hw-fig.in .chip { animation: g-draw .5s ease 1.4s forwards, g-fill .5s ease 1.6s forwards, glow 3s ease-in-out 2.2s infinite; }
  .hw-fig.in :is(.ports, .vents, .chip-o) { animation: g-show .6s ease 1.5s forwards; }
  .hw-fig.in .dim path { animation: g-draw 1.2s ease 1.6s forwards; }
  .hw-fig.in .lead path { animation: g-draw .9s cubic-bezier(.6, 0, .2, 1) 1.7s forwards; }
  .hw-fig.in .lead path:nth-child(2) { animation-delay: 1.85s; }
  .hw-fig.in .lead path:nth-child(3) { animation-delay: 2s; }
  .hw-fig.in .lead path:nth-child(4) { animation-delay: 2.15s; }
  .hw-fig.in .pin { animation: g-pop .45s cubic-bezier(.3, 1.6, .5, 1) 1.65s forwards; }
  .hw-fig.in .lbl { animation: g-show .7s ease 2.3s forwards; }
  .hw-fig.in .pk { animation: g-show .4s ease 2.8s forwards; }
  .hw-fig.in .sweep { animation: g-show .1s linear 2.6s forwards; }
  .hw-fig.in .sweep rect { animation: hw-sweep 6s cubic-bezier(.45, 0, .55, 1) 2.6s infinite; }
  .hw-fig.in .chip-w { transform-box: fill-box; transform-origin: center; animation: hw-wave 2.8s ease-out 2.4s infinite; }
  .hw-fig.in .ring circle { transform-box: fill-box; transform-origin: center; animation: hw-ring 3.2s ease-out 2.4s infinite; }
  .hw-fig.in .ring circle:nth-child(2) { animation-delay: 3.2s; }
  .hw-fig.in .ring circle:nth-child(3) { animation-delay: 4s; }
  .hw-fig.in .ring circle:nth-child(4) { animation-delay: 4.8s; }
  .hw-fig.in .vents path { stroke-dasharray: 14 10; animation: g-flow 1.6s linear 2s infinite; }
  .hw-fig.in .ports .led { animation: hw-led 1.4s steps(2) 2s infinite; }

  /* perimetro: il confine si accende, il PC arriva al centro, i fili si tracciano verso i quattro servizi interni; poi
     i dati girano dentro, il telefono entra dal tunnel e quello che arriva da fuori passa dallo smistamento */
  .perim .bound, .perim text, .perim .pk, .perim :is(.live, .dash, .in) path { opacity: 0; }
  .perim :is(.core, .sat circle, .orbit circle, .ext, .gate, .lock, .gate2) { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .perim .spoke path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .perim.in .bound { animation: g-show .8s ease .1s forwards, pm-march 40s linear 1s infinite; }
  .perim.in .cap { animation: g-show .6s ease .5s forwards; }
  .perim.in .core { animation: g-pop .6s cubic-bezier(.3, 1.5, .5, 1) .5s forwards; }
  .perim.in .spoke path { animation: g-draw .6s ease .9s forwards; }
  .perim.in .spoke path:nth-child(2) { animation-delay: 1s; }
  .perim.in .spoke path:nth-child(3) { animation-delay: 1.1s; }
  .perim.in .spoke path:nth-child(4) { animation-delay: 1.2s; }
  .perim.in .sat circle { animation: g-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.2s forwards; }
  .perim.in .sat circle:nth-child(2) { animation-delay: 1.3s; }
  .perim.in .sat circle:nth-child(3) { animation-delay: 1.4s; }
  .perim.in .sat circle:nth-child(4) { animation-delay: 1.5s; }
  .perim.in .orbit circle { animation: g-show .6s ease 1.8s forwards, pm-spin 24s linear 1.8s infinite; }
  .perim.in .orbit circle:nth-child(even) { animation-direction: normal, reverse; }
  .perim.in :is(.live, .in) path { animation: g-show .6s ease 1.7s forwards, flowd 1.6s linear infinite; }
  .perim.in .dash path { animation: g-show .6s ease 1.9s forwards; }
  .perim.in :is(.ext, .gate2) { animation: g-pop .5s ease 1.8s forwards; }
  .perim.in .gate { animation: g-pop .5s ease 1.8s forwards, pm-gate 3.2s ease-in-out 2.4s infinite; }
  .perim.in .lock { animation: g-pop .5s ease 1.9s forwards, pm-lock 2.6s ease-in-out 2.4s infinite; }
  .perim.in text { animation: g-show .6s ease 2s forwards; }
  .perim.in .pk { animation: g-show .4s ease 2.4s forwards; }
  .perim.in .core-beat { transform-box: fill-box; transform-origin: center; animation: pm-beat 2.6s ease-out 2.4s infinite; }

  /* collegamenti: i canali arrivano da sinistra, gli strumenti da destra, i fili si stendono verso il chip; poi i dati
     scorrono sui fili uno dopo l'altro, i contatti del chip lampeggiano e una luce scorre dentro il chip */
  .pinout.in .pins.l li { animation: pin-in-l .6s cubic-bezier(.2, .8, .2, 1) backwards; }
  .pinout.in .pins.r li { animation: pin-in-r .6s cubic-bezier(.2, .8, .2, 1) backwards; }
  .pinout.in .pins li::after {
    transform-origin: left center; background-repeat: no-repeat; background-size: 260% 100%, 100% 100%;
    background-image: linear-gradient(90deg, transparent 42%, #E0F2FE 50%, transparent 58%), linear-gradient(90deg, var(--line-2), #38BDF8);
    animation: pin-line .5s ease backwards, pin-flow 2.6s linear infinite;
  }
  .pinout.in .pins.r li::after { background-image: linear-gradient(90deg, transparent 42%, #E0F2FE 50%, transparent 58%), linear-gradient(90deg, #38BDF8, var(--line-2)); }
  .pinout.in .pins li::before { animation: g-pop-css .4s ease backwards, pin-ping 2.6s ease-out infinite; }
  .pinout.in .pins li:nth-child(1) { animation-delay: 0.32s; }
  .pinout.in .pins li:nth-child(1)::after { animation-delay: 0.67s, 1.57s; }
  .pinout.in .pins li:nth-child(1)::before { animation-delay: 0.77s, 1.97s; }
  .pinout.in .pins li:nth-child(2) { animation-delay: 0.39s; }
  .pinout.in .pins li:nth-child(2)::after { animation-delay: 0.74s, 1.94s; }
  .pinout.in .pins li:nth-child(2)::before { animation-delay: 0.84s, 2.34s; }
  .pinout.in .pins li:nth-child(3) { animation-delay: 0.46s; }
  .pinout.in .pins li:nth-child(3)::after { animation-delay: 0.81s, 2.31s; }
  .pinout.in .pins li:nth-child(3)::before { animation-delay: 0.91s, 2.71s; }
  .pinout.in .pins li:nth-child(4) { animation-delay: 0.53s; }
  .pinout.in .pins li:nth-child(4)::after { animation-delay: 0.88s, 2.68s; }
  .pinout.in .pins li:nth-child(4)::before { animation-delay: 0.98s, 3.08s; }
  .pinout.in .pins li:nth-child(5) { animation-delay: 0.60s; }
  .pinout.in .pins li:nth-child(5)::after { animation-delay: 0.95s, 3.05s; }
  .pinout.in .pins li:nth-child(5)::before { animation-delay: 1.05s, 3.45s; }
  .pinout.in .pins li:nth-child(6) { animation-delay: 0.67s; }
  .pinout.in .pins li:nth-child(6)::after { animation-delay: 1.02s, 3.42s; }
  .pinout.in .pins li:nth-child(6)::before { animation-delay: 1.12s, 3.82s; }
  .pinout.in .pins li:nth-child(7) { animation-delay: 0.74s; }
  .pinout.in .pins li:nth-child(7)::after { animation-delay: 1.09s, 3.79s; }
  .pinout.in .pins li:nth-child(7)::before { animation-delay: 1.19s, 4.19s; }
  .pinout.in .chipx svg { animation: chip-g 1s cubic-bezier(.3, 1.4, .5, 1) .2s backwards; }
  .pinout.in .chipx b { animation: chip-t 1.1s cubic-bezier(.2, .8, .2, 1) .45s backwards; }
  .pinout.in .chipx small { animation: g-show-css .8s ease .9s backwards; }
  .pinout.in .chipx :is(.pl, .pr) { animation: chip-pins 1.1s linear infinite; }
  .pinout.in .chipx .pr { animation-direction: reverse; }
  .pinout.in .chipx { animation: chip-breathe 4s ease-in-out 1.5s infinite; }
  .chipx .scan { display: block; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
  .chipx .scan::before { content: ""; position: absolute; left: 0; right: 0; top: -35%; height: 35%;
    background: linear-gradient(180deg, transparent, rgba(56, 189, 248, .13), transparent); }
  .pinout.in .chipx .scan::before { animation: chip-scan 4.5s ease-in-out 1.2s infinite; }
}
@keyframes g-draw { to { stroke-dashoffset: 0; } }
@keyframes g-fill { to { fill-opacity: 1; } }
@keyframes g-show { to { opacity: 1; } }
@keyframes g-show-css { from { opacity: 0; } }
@keyframes g-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes g-pop-css { from { opacity: 0; transform: scale(0); } }
@keyframes g-flow { to { stroke-dashoffset: -24; } }
@keyframes hw-sweep { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(720px); } }
@keyframes hw-wave { 0% { opacity: .85; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes hw-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.4); } }
@keyframes hw-led { 50% { opacity: .25; } }
@keyframes pm-march { to { stroke-dashoffset: -480; } }
@keyframes pm-spin { to { transform: rotate(360deg); } }
@keyframes pm-beat { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }
@keyframes pm-gate { 0%, 100% { filter: none; } 45% { filter: drop-shadow(0 0 6px rgba(61, 220, 151, .95)); } }
@keyframes pm-lock { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pin-in-l { from { opacity: 0; transform: translateX(-24px); } }
@keyframes pin-in-r { from { opacity: 0; transform: translateX(24px); } }
@keyframes pin-line { from { transform: scaleX(0); } }
@keyframes pin-flow { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
@keyframes pin-ping { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .7); } 40%, 100% { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); } }
@keyframes chip-g { from { opacity: 0; transform: scale(.55) rotate(-25deg); } }
@keyframes chip-t { from { opacity: 0; letter-spacing: .9em; } }
@keyframes chip-pins { to { background-position: 0 15px; } }
@keyframes chip-breathe { 50% { box-shadow: 0 0 0 1px rgba(125, 211, 252, .18), 0 18px 60px -20px rgba(56, 189, 248, .45); } }
@keyframes chip-scan { 0% { top: -35%; } 70%, 100% { top: 100%; } }
