/* INFOL — foglio di stile v2
   Colori ricavati dal logo: esagono slate, raggio nero (qui bianco su scuro), raggio rosso, raggio ciano.
   I tre raggi identificano le tre aree: infrastruttura, sicurezza, software. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --deep: #061118;
  --ink: #0a1a24;
  --ink-2: #0f2533;
  --ink-3: #163447;
  --panel: rgba(232, 240, 244, 0.035);
  --panel-2: rgba(232, 240, 244, 0.06);
  --line-d: rgba(169, 194, 205, 0.15);
  --line-d2: rgba(169, 194, 205, 0.28);
  --slate: #58889c;
  --slate-300: #a9c2cd;
  --slate-100: #e3ecf0;
  --cyan: #009cdc;
  --cyan-400: #3cc0f5;
  --cyan-600: #0079ad;
  --cyan-700: #00658f;
  --red: #e1251b;
  --red-400: #ff6a5f;
  --red-600: #cc1f16;
  --red-700: #ad1a12;
  --green: #22c55e;
  --amber: #f5a524;
  --paper: #eef3f6;
  --white: #fff;
  --text: #10202a;
  --muted: #4b616e;
  --line: #d4dfe5;
  --on-dark: #e8f0f4;
  --on-dark-muted: #9fb6c2;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1760px;
  --gutter: clamp(20px, 4.5vw, 96px);
  --section: clamp(64px, 8vw, 128px);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --topbar-h: 40px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); background: var(--deep); }
body {
  margin: 0;
  padding-top: calc(var(--topbar-h) + var(--header-h));
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-700); }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 640; font-stretch: 112%; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.1rem + 3.4vw, 4.6rem); font-weight: 680; font-stretch: 118%; letter-spacing: -0.028em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 1.1rem + 2.1vw, 3.4rem); letter-spacing: -0.024em; }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + 0.4vw, 1.45rem); font-stretch: 108%; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--cyan-600); color: var(--white); border-radius: 6px; }
.skip:focus { top: 12px; color: var(--white); }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* ───────── pulsanti ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.8em 1.25em;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: 0.98rem; font-weight: 600; font-stretch: 104%; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1em 1.6em; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--cyan-600); color: var(--white); box-shadow: 0 0 0 1px rgba(0, 156, 220, 0.45), 0 12px 32px -14px rgba(0, 156, 220, 0.9); }
.btn--primary:hover { background: var(--cyan-700); color: var(--white); box-shadow: 0 0 0 1px rgba(60, 192, 245, 0.8), 0 14px 40px -12px rgba(0, 156, 220, 1); }
.btn--support { background: var(--red-600); color: var(--white); box-shadow: 0 0 0 1px rgba(255, 106, 95, 0.35), 0 12px 30px -14px rgba(225, 37, 27, 0.95); }
.btn--support:hover, .btn--support[aria-current] { background: var(--red-700); color: var(--white); box-shadow: 0 0 0 1px rgba(255, 106, 95, 0.7), 0 14px 36px -12px rgba(225, 37, 27, 1); }
.btn--ghost { background: var(--panel); border-color: var(--line-d2); color: var(--on-dark); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cyan-400); color: var(--white); background: rgba(0, 156, 220, 0.1); }
.btn--outline { border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--deep); color: var(--white); }
.btn--ghost-dark { border-color: rgba(10, 26, 36, 0.55); color: var(--ink); }
.btn--ghost-dark:hover { background: rgba(10, 26, 36, 0.1); color: var(--ink); }

/* ───────── stato assistenza in tempo reale ───────── */
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 560; font-stretch: 98%; line-height: 1.3; }
.status__dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--slate-300); }
.status[data-state='open'] .status__dot { background: var(--green); box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
.status[data-state='open'] .status__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green); animation: ping 2s var(--ease) infinite; }
.status[data-state='pause'] .status__dot { background: var(--amber); }
.status[data-state='closed'] .status__dot { background: var(--red-400); }
.status--lg { padding: 9px 16px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-d); font-size: 0.95rem; }
.status--block { display: flex; padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line-d); margin-bottom: 12px; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ───────── header (fisso, vetro scuro) ───────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 21, 30, 0.78);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line-d);
  color: var(--on-dark);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.header.is-scrolled { transform: translateY(calc(-1 * var(--topbar-h))); background: rgba(8, 21, 30, 0.9); }
.topbar { height: var(--topbar-h); border-bottom: 1px solid var(--line-d); font-size: 0.86rem; color: var(--on-dark-muted); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.topbar__info { display: flex; gap: 26px; align-items: center; }
.topbar__info a, .topbar__links a { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark); text-decoration: none; }
.topbar__info a:hover { color: var(--white); text-decoration: underline; }
.topbar__links { display: flex; gap: 4px; }
.topbar__links a { padding: 5px 11px; border-radius: 6px; font-weight: 560; }
.topbar__links a:hover { background: var(--panel-2); color: var(--white); }
.topbar__links .i { color: var(--cyan-400); }

.header__in { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.logo { height: 46px; width: auto; overflow: visible; }
.logo__k { stroke: #1a1a1a; }
.logo--dark .logo__k { stroke: var(--white); }
.logo__spokes { transform-box: view-box; transform-origin: 50px 50px; transition: transform 0.7s cubic-bezier(0.55, -0.35, 0.3, 1.45); }
.brand:hover .logo__spokes, .brand:focus-visible .logo__spokes { transform: rotate(120deg); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 15px; border: 0; border-radius: var(--r-sm); background: none;
  font: inherit; font-size: 1rem; font-weight: 560; font-stretch: 104%; color: var(--on-dark);
  text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover, .nav__link[aria-expanded='true'] { background: var(--panel-2); color: var(--white); }
.nav__link[aria-current='page'], .nav__link[data-active] { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nav__link .i { width: 1em; height: 1em; transition: transform 0.25s; }
.nav__link[aria-expanded='true'] .i { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line-d2); border-radius: var(--r-sm); background: var(--panel); color: var(--on-dark); cursor: pointer; }
.burger .i { width: 24px; height: 24px; }
.burger__close { display: none; }
.burger[aria-expanded='true'] .burger__open { display: none; }
.burger[aria-expanded='true'] .burger__close { display: block; }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; display: none; background: #08151e; border-bottom: 1px solid var(--line-d); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.nav__item.is-open .mega { display: block; animation: mega-in 0.25s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega__in { display: grid; grid-template-columns: repeat(3, 1fr) 320px; padding-block: 32px 36px; }
.mega__col { padding-right: 32px; }
.mega__col + .mega__col { padding-left: 32px; border-left: 1px solid var(--line-d); }
.mega__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 650; font-stretch: 108%; color: var(--white); }
.mega__col ul { list-style: none; }
.mega__col a { display: block; padding: 10px 12px; margin-inline: -12px; border-radius: var(--r-sm); text-decoration: none; color: var(--on-dark); transition: background-color 0.15s; }
.mega__col a:hover { background: var(--panel-2); }
.mega__col strong { display: block; font-weight: 600; }
.mega__col a span { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--on-dark-muted); }
.mega__col--infra a:hover strong { color: var(--white); }
.mega__col--sec a:hover strong { color: var(--red-400); }
.mega__col--soft a:hover strong { color: var(--cyan-400); }
.mega__help { margin-left: 32px; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-d); display: flex; flex-direction: column; gap: 4px; align-self: start; }
.mega__help .status { margin-bottom: 10px; }
.mega__help a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-inline: -10px; border-radius: var(--r-sm); color: var(--on-dark); text-decoration: none; font-size: 0.95rem; }
.mega__help a:hover { background: var(--panel-2); color: var(--white); }
.mega__help .i { color: var(--cyan-400); }
.mega__help-phone { margin-top: 8px; padding-top: 14px !important; border-top: 1px solid var(--line-d); border-radius: 0 !important; font-weight: 650; font-size: 1.15rem !important; }

/* menu mobile */
.mnav { border-top: 1px solid var(--line-d); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 16px var(--gutter) 28px; }
.mnav[hidden] { display: none; }
.mnav__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.mnav__quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--line-d); color: var(--on-dark); text-decoration: none; font-size: 0.85rem; font-weight: 600; text-align: center; line-height: 1.2; }
.mnav__quick .i { width: 22px; height: 22px; color: var(--cyan-400); }
.mnav__group { border-bottom: 1px solid var(--line-d); }
.mnav__group summary { display: flex; align-items: center; gap: 10px; padding: 16px 2px; cursor: pointer; list-style: none; font-weight: 620; font-stretch: 106%; }
.mnav__group summary::-webkit-details-marker { display: none; }
.mnav__group summary .i { margin-left: auto; transition: transform 0.2s; }
.mnav__group[open] summary .i { transform: rotate(180deg); }
.mnav__group ul, .mnav__links { list-style: none; }
.mnav__group ul { padding: 0 0 12px 34px; }
.mnav__group a, .mnav__links a { display: block; padding: 9px 0; color: var(--on-dark); text-decoration: none; }
.mnav__links { margin: 8px 0 18px; }
.mnav__links a { padding: 12px 2px; font-weight: 600; border-bottom: 1px solid var(--line-d); }

/* ───────── esagono indicatore area ───────── */
.mhex { width: 22px; height: 22px; flex: none; }
.mhex polygon { fill: none; stroke: var(--slate); stroke-width: 9; stroke-linejoin: round; }
.mhex__s { stroke: #c5d5dc; stroke-width: 9; stroke-linecap: round; }
.mhex__s--infra.is-on { stroke: var(--ink); }
.mhex__s--sec.is-on { stroke: var(--red); }
.mhex__s--soft.is-on { stroke: var(--cyan); }
.mhex--dark .mhex__s { stroke: rgba(232, 240, 244, 0.2); }
.mhex--dark .mhex__s--infra.is-on { stroke: var(--white); }
.mhex--dark .mhex__s--sec.is-on { stroke: var(--red); }
.mhex--dark .mhex__s--soft.is-on { stroke: var(--cyan); }
.pillar-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.pillar-tag--dark { color: var(--on-dark-muted); }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-d); color: var(--on-dark); font-size: 0.92rem; font-weight: 580; }

/* ───────── effetto "glow" che segue il puntatore ───────── */
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.glow::before { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 156, 220, 0.14), transparent 45%); }
.glow::after {
  z-index: 2; padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(60, 192, 245, 0.9), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow:hover::before, .glow:hover::after, .glow:focus-visible::before, .glow:focus-visible::after { opacity: 1; }

/* ───────── sezioni ───────── */
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: 48px; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--deep { background: var(--deep); color: var(--on-dark); }
.section--dark h2, .section--deep h2, .section--dark h3, .section--deep h3 { color: var(--white); }
.section--dark a:not(.btn), .section--deep a:not(.btn) { color: var(--on-dark); }
.section:not(.section--dark):not(.section--deep):not(.section--paper):not(.related) + .section:not(.section--dark):not(.section--deep):not(.section--paper):not(.related) { padding-top: 0; }
.section__head { max-width: 820px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section__head p { margin-top: 18px; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--muted); }
.section--dark .section__head p, .section--deep .section__head p { color: var(--on-dark-muted); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 80px; align-items: end; }
.section__head--split p { margin-top: 0; }
.section__head--split .btn { margin-top: 22px; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.1rem); margin-bottom: 0.6em; }
.prose p + h2 { margin-top: 1.6em; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(48px, 6vw, 120px); align-items: start; }
.split > div > p { margin-top: 14px; color: var(--muted); }
.split > div > .btn { margin-top: 24px; }
.section--dark .split > div > p { color: var(--on-dark-muted); }

/* rivelazione allo scorrimento (attiva solo se main.js è caricato) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ───────── HOME: hero ───────── */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 75% 40%, #0f2a3a 0%, var(--ink) 45%, var(--deep) 100%); color: var(--on-dark); min-height: calc(100svh - var(--topbar-h) - var(--header-h)); display: flex; flex-direction: column; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 50% at 74% 46%, rgba(0, 156, 220, 0.16), transparent 70%), radial-gradient(30% 40% at 8% 100%, rgba(225, 37, 27, 0.1), transparent 70%); }
.hero__in { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 4vw, 96px); align-items: center; padding-block: clamp(36px, 5vw, 72px) 24px; }
.hero__pre { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--on-dark-muted); font-size: 0.95rem; }
.hero__where::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--line-d2); }
.hero h1 { font-size: clamp(2.4rem, min(0.6rem + 3.9vw, 7.4vh), 5.6rem); max-width: 14ch; color: var(--white); }
.hero__lead, .phero__lead { margin-top: 28px; font-size: clamp(1.08rem, 0.98rem + 0.4vw, 1.35rem); line-height: 1.55; color: var(--on-dark-muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero__visual { position: relative; }
.hero__bottom { padding-bottom: clamp(24px, 3vw, 40px); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line-d); border-radius: var(--r-lg); background: rgba(8, 21, 30, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line-d); }
.hero__stats div:first-child { border-left: 0; }
.hero__stats dd { margin: 0; font-size: clamp(2rem, 1.2rem + 2vw, 3.4rem); font-weight: 600; font-stretch: 120%; color: var(--white); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero__stats dt { color: var(--on-dark-muted); font-size: 0.95rem; }

/* il marchio come cubo 3D */
.cube { position: relative; width: min(100%, 780px); aspect-ratio: 1; margin-inline: auto; touch-action: pan-y; }
.cube__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.cube__canvas:active { cursor: grabbing; }
.cube__fallback { position: absolute; inset: 9%; width: 82%; height: 82%; }
.cube.is-live .cube__fallback { display: none; }
.cube__label { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-d); background: rgba(8, 21, 30, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; color: var(--on-dark); white-space: nowrap; transition: border-color 0.2s, background-color 0.2s, opacity 0.5s; }
.cube__label:hover, .cube__label:focus-visible { border-color: var(--line-d2); background: rgba(15, 37, 51, 0.85); color: var(--white); }
.cube__label strong { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 640; font-stretch: 112%; }
.cube__label strong::before { content: ''; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.cube__label span { font-size: 0.84rem; color: var(--on-dark-muted); }
.cube__label--infra strong::before { background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
.cube__label--sec strong::before { background: var(--red); box-shadow: 0 0 10px rgba(225, 37, 27, 0.9); }
.cube__label--soft strong::before { background: var(--cyan); box-shadow: 0 0 10px rgba(0, 156, 220, 0.9); }
/* posizioni senza JavaScript */
.cube__label--infra { left: 54%; top: 2%; }
.cube__label--sec { left: 0; top: 78%; }
.cube__label--soft { right: 0; top: 78%; }
.cube.is-live .cube__label { left: 0; top: 0; right: auto; will-change: transform; }

/* ───────── HOME: aree (bento) ───────── */
.areas { background: linear-gradient(180deg, var(--deep), var(--ink) 30%); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.tile { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-d); overflow: hidden; --p: var(--white); }
.tile--sec { --p: var(--red); }
.tile--soft { --p: var(--cyan); }
.tile__media { position: relative; height: clamp(220px, 18vw, 320px); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--ink-2) 100%); }
.tile__media::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; background: linear-gradient(90deg, var(--p), transparent 70%); }
.tile__body { flex: 1; display: flex; flex-direction: column; padding: 4px clamp(22px, 2.2vw, 36px) clamp(22px, 2.2vw, 32px); }
.tile__tag { display: flex; align-items: center; gap: 9px; color: var(--on-dark-muted); font-size: 0.9rem; font-weight: 600; }
.tile h3 { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem); }
.tile h3 .mhex { width: 28px; height: 28px; }
.tile__text { margin-top: 12px; color: var(--on-dark-muted); }
.tile__links { list-style: none; margin-top: auto; padding-top: 24px; }
.tile__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line-d); color: var(--on-dark); text-decoration: none; font-weight: 560; transition: color 0.2s, padding 0.25s var(--ease); }
.tile__links a .i { color: var(--slate); transition: transform 0.25s var(--ease), color 0.2s; }
.tile__links a:hover { color: var(--white); padding-left: 10px; }
.tile__links a:hover .i { color: var(--p); transform: translateX(4px); }

/* ───────── HOME: assistenza ───────── */
.support-home { overflow: hidden; }
.support-home__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 60% at 20% 50%, rgba(225, 37, 27, 0.12), transparent 70%), radial-gradient(40% 60% at 85% 30%, rgba(0, 156, 220, 0.1), transparent 70%); }
.support-home__in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(48px, 6vw, 120px); align-items: center; }
.support-home__media { position: relative; }
.support-home__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-lg); }
.live { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 20px 22px; border-radius: var(--r); background: rgba(6, 17, 24, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-d2); }
.live__phone { margin-top: 12px; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 620; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1; }
.live__phone a { color: var(--white) !important; text-decoration: none; }
.live__note { margin-top: 10px; font-size: 0.9rem; color: var(--on-dark-muted); }
.support-home__text > p { margin-top: 20px; color: var(--on-dark-muted); font-size: 1.15rem; max-width: 60ch; }
.support-home__list { list-style: none; margin-top: 36px; display: grid; gap: 12px; }
.support-home__list a { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-d); border-radius: var(--r); background: var(--panel); text-decoration: none; transition: background-color 0.2s, border-color 0.2s; }
.support-home__list a:hover { background: var(--panel-2); }
.support-home__list .i { width: 28px; height: 28px; color: var(--cyan-400); }
.support-home__list li:first-child .i:first-child { color: var(--red-400); }
.support-home__list .go { width: 20px; height: 20px; margin-left: auto; color: var(--slate) !important; transition: transform 0.25s var(--ease), color 0.2s; }
.support-home__list a:hover .go { color: var(--white) !important; transform: translateX(3px); }
.support-home__list span { display: flex; flex-direction: column; color: var(--on-dark-muted); font-size: 0.95rem; }
.support-home__list strong { color: var(--white); font-size: 1.12rem; font-weight: 620; font-stretch: 106%; margin-bottom: 2px; }

/* ───────── blocchi "feature" ───────── */
.feature { overflow: hidden; }
.feature__in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px clamp(48px, 6vw, 120px); align-items: center; }
.feature--flip .feature__in, .feature__in.feature--flip { grid-template-columns: 1fr 1.15fr; }
.feature--flip .feature__media, .feature__in.feature--flip .feature__media { order: 2; }
.feature__media--product img { width: 100%; filter: drop-shadow(0 30px 40px rgba(10, 26, 36, 0.22)); }
.section--dark .feature__media--product img { filter: drop-shadow(0 30px 60px rgba(0, 156, 220, 0.25)); }
.feature__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(35% 55% at 30% 50%, rgba(0, 156, 220, 0.16), transparent 70%), radial-gradient(25% 40% at 15% 85%, rgba(225, 37, 27, 0.12), transparent 70%); }
.feature--flip .feature__glow { background: radial-gradient(35% 55% at 72% 50%, rgba(0, 156, 220, 0.18), transparent 70%), radial-gradient(25% 40% at 60% 85%, rgba(225, 37, 27, 0.14), transparent 70%); }
.feature__text > p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; max-width: 58ch; }
.section--dark .feature__text > p { color: var(--on-dark-muted); }
.feature__text h2 { max-width: 18ch; }
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; border: 1px solid var(--line-d); border-radius: var(--r); overflow: hidden; }
.mini-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 18px 20px; border-left: 1px solid var(--line-d); background: var(--panel); }
.mini-stats div:first-child { border-left: 0; }
.mini-stats dd { margin: 0; font-size: 1.9rem; font-weight: 620; font-stretch: 118%; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; }
.mini-stats dt { font-size: 0.86rem; color: var(--on-dark-muted); }

.checks { list-style: none; display: grid; gap: 11px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { color: var(--cyan-600); margin-top: 0.2em; }
.checks--dark .i, .section--dark .checks .i, .section--deep .checks .i { color: var(--cyan-400); }

/* ───────── HOME: robot ───────── */
.robots-home__row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.robots-home__row li { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 28px; border-radius: var(--r-lg); border: 1px solid var(--line-d); background: radial-gradient(ellipse 55% 40% at 50% 62%, rgba(0, 156, 220, 0.2), transparent 70%), var(--ink-2); }
.robots-home__row img { height: clamp(240px, 24vw, 420px); width: auto; object-fit: contain; transition: transform 0.6s var(--ease); }
.robots-home__row li:hover img { transform: translateY(-8px); }
.robots-home__row p { margin-top: 20px; text-align: center; color: var(--on-dark-muted); font-size: 0.95rem; }
.robots-home__row strong { display: block; color: var(--white); font-size: 1.2rem; font-stretch: 114%; font-weight: 640; }

/* ───────── HOME: testing center ───────── */
.testing-home__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(48px, 6vw, 120px); align-items: center; }
.testing-home__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-lg); }
.testing-home__text > p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; max-width: 58ch; }
.testing-home__text .btn { margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }
.badges img { height: 56px; width: auto; }

/* ───────── partner (scorrimento) ───────── */
.partners { overflow: hidden; }
.marquee { display: grid; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; list-style: none; }
.marquee__track li { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); padding-right: clamp(28px, 3vw, 56px); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.8rem); font-weight: 650; font-stretch: 125%; letter-spacing: -0.02em; color: rgba(232, 240, 244, 0.32); white-space: nowrap; transition: color 0.2s; }
.marquee__track li::after { content: ''; width: 10px; height: 11px; background: var(--slate); opacity: 0.6; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.marquee__track li:hover { color: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── sedi ───────── */
.sites__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.site-card { padding: clamp(24px, 2.2vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: var(--white); position: relative; overflow: hidden; }
.site-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--slate), var(--cyan) 50%, transparent); }
.site-card__role { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.site-card h3 { font-size: 1.3rem; }
.site-card address { font-style: normal; margin-top: 12px; line-height: 1.55; font-size: 1.08rem; }
.site-card__links { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.site-card__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 560; }
.site-card__links a:hover { text-decoration: underline; }
.legal-line { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }

/* ───────── fascia CTA ───────── */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(115deg, #0089c4 0%, var(--cyan) 45%, #2cbcf2 100%); color: var(--ink); }
.cta-band__pattern { position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffffff' stroke-opacity='.2' stroke-width='1'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 28px 64px; padding-block: clamp(56px, 6vw, 96px); }
.cta-band h2 { font-size: clamp(1.8rem, 1.1rem + 2vw, 3.2rem); max-width: 22ch; }
.cta-band p { margin-top: 14px; max-width: 60ch; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ───────── fascia assistenza (pagine servizio) ───────── */
.support-strip { background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--line-d); }
.support-strip__in { display: grid; grid-template-columns: 1fr 1.7fr; gap: 24px 64px; align-items: center; padding-block: clamp(40px, 4vw, 56px); }
.support-strip h2 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem); color: var(--white); margin-top: 14px; }
.support-strip__head p { margin-top: 8px; color: var(--on-dark-muted); }
.support-strip__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.support-strip__actions a { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line-d); border-radius: var(--r); background: var(--panel); text-decoration: none; color: var(--on-dark-muted); font-size: 0.9rem; line-height: 1.4; }
.support-strip__actions .i { width: 24px; height: 24px; color: var(--red-400); }
.support-strip__actions span { display: flex; flex-direction: column; }
.support-strip__actions strong { color: var(--white); font-size: 1.04rem; font-weight: 620; margin-bottom: 3px; }

/* ───────── hero delle pagine interne ───────── */
.phero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(100% 120% at 80% 30%, #0f2a3a 0%, var(--ink) 50%, var(--deep) 100%); color: var(--on-dark); }
.phero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 75%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 35%, #000 75%); opacity: 0.75; }
.phero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 17, 24, 0.2), transparent 30%, rgba(6, 17, 24, 0.75)); }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%2358889C' stroke-opacity='.22' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%2358889C' stroke-opacity='.12' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 20% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 20% 40%, #000 0%, transparent 70%);
}
.phero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: clamp(460px, 64vh, 720px); padding-block: clamp(48px, 6vw, 96px); }
.phero__text { max-width: 860px; }
.phero h1 { color: var(--white); max-width: 18ch; }
.phero--product .phero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(48px, 5vw, 96px); }
.phero--product .phero__media img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 156, 220, 0.25)); }
.phero--compact .phero__in { min-height: 0; padding-block: clamp(56px, 6vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; font-size: 0.9rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: var(--on-dark); }
.phero .status--lg { margin-bottom: 22px; }
.support-hours { display: grid; gap: 10px; margin-top: 28px; }
.support-hours p { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark-muted); }
.support-hours .i { width: 22px; height: 22px; color: var(--cyan-400); margin-top: 1px; }
.support-hours strong { color: var(--white); font-weight: 620; margin-right: 6px; }
.support-hours a { color: var(--on-dark); }
.support-hours strong a { color: var(--white); font-size: 1.25rem; text-decoration: none; }

/* ───────── pagine servizio ───────── */
.intro__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(48px, 7vw, 140px); align-items: start; }
.intro__text { font-size: 1.12rem; max-width: 72ch; }
.intro__text > p:first-child { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem); line-height: 1.45; color: var(--ink); font-weight: 450; }
.facts { position: relative; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.facts::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--p, var(--slate)); }
.pillar-infra .facts { --p: var(--ink); }
.pillar-sec .facts { --p: var(--red); }
.pillar-soft .facts { --p: var(--cyan); }
.facts dl { margin: 0; display: grid; gap: 20px; }
.facts dt { font-size: 0.88rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-stretch: 104%; line-height: 1.4; }
.facts--stats dl { grid-template-columns: 1fr 1fr; }
.facts__num { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.5rem); font-stretch: 120% !important; letter-spacing: -0.02em; line-height: 1.1 !important; font-variant-numeric: tabular-nums; }
.svc-stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.svc-stats div { display: flex; flex-direction: column-reverse; }
.svc-stats dd { margin: 0; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.4rem); font-weight: 620; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.svc-stats dt { font-size: 0.95rem; color: var(--muted); max-width: 22ch; }

.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px clamp(40px, 4vw, 80px); }
.groups--1 { grid-template-columns: 1fr; max-width: 820px; }
.groups--3 { grid-template-columns: repeat(3, 1fr); }
.groups--4 { grid-template-columns: repeat(4, 1fr); }
.group h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.group li { position: relative; padding-left: 24px; }
.group li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 10px; background: var(--p, var(--slate)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.pillar-infra .group li::before { --p: var(--slate); }
.pillar-sec .group li::before { --p: var(--red); }
.pillar-soft .group li::before { --p: var(--cyan); }

.versions { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.version { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 2.6vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.version h3 { display: flex; align-items: center; gap: 10px; }
.version h3 .i { color: var(--cyan-600); width: 24px; height: 24px; }
.version > p { margin-top: 12px; color: var(--muted); }
.version__for { font-weight: 560; color: var(--ink) !important; }
.version__note { font-size: 0.93rem; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.version .checks { margin-bottom: 24px; }
.version .btn, .version .dl { margin-top: auto; }
.version__badge { height: 48px; width: auto; margin-bottom: 18px; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.2vw, 18px); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; padding: clamp(22px, 2vw, 32px); border: 1px solid var(--line-d); border-radius: var(--r); background: var(--panel); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 22px; font-size: clamp(2.4rem, 1.8rem + 1.4vw, 3.4rem); font-weight: 250; font-stretch: 125%; line-height: 1; color: var(--cyan-400); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(0, 156, 220, 0.5); }
.steps h3 { color: var(--white); font-size: 1.18rem; }
.steps p { margin-top: 8px; color: var(--on-dark-muted); font-size: 0.98rem; }

.defs { margin: 0; border-top: 1px solid var(--line); }
.defs div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 620; font-stretch: 104%; }
.defs dd { margin: 0; color: var(--muted); }
.defs--compact div { grid-template-columns: 110px 1fr; padding: 11px 0; }
.defs--compact dd { color: var(--text); }

.dl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 20px; }
.dl { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--text); text-decoration: none; transition: border-color 0.2s, background-color 0.2s; }
.dl:hover { border-color: var(--cyan-600); background: #f3fafd; color: var(--text); }
.dl > .i:first-child { width: 26px; height: 26px; color: var(--red-600); }
.dl > .i:last-child { margin-left: auto; color: var(--cyan-600); }
.dl span { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.dl small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

.related { padding-block: clamp(56px, 6vw, 96px); background: var(--paper); }
.related__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); margin-top: 24px; }
.related__item { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--muted); text-decoration: none; font-size: 0.93rem; line-height: 1.45; transition: border-color 0.2s, transform 0.3s var(--ease), box-shadow 0.3s; }
.related__item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(10, 26, 36, 0.35); color: var(--muted); }
.related__item .mhex { width: 28px; height: 28px; margin-top: 1px; }
.related__item span { display: flex; flex-direction: column; flex: 1; }
.related__item strong { color: var(--text); font-size: 1.06rem; font-weight: 620; margin-bottom: 4px; }
.related__item > .i { color: var(--slate); margin-top: 3px; }
.related .glow::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 156, 220, 0.08), transparent 45%); }

/* robot */
.robots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.robot { display: flex; flex-direction: column; border: 1px solid var(--line-d); border-radius: var(--r-lg); background: var(--ink-2); overflow: hidden; }
.robot__img { display: flex; justify-content: center; padding: 40px 16px 24px; background: radial-gradient(ellipse 55% 40% at 50% 65%, rgba(0, 156, 220, 0.22), transparent 70%); }
.robot__img img { height: clamp(260px, 22vw, 380px); width: auto; }
.robot__body { padding: 8px clamp(22px, 2vw, 32px) clamp(24px, 2vw, 32px); }
.robot__for { color: var(--cyan-400); font-weight: 600; margin: 4px 0 12px; }
.robot__body > p:not(.robot__for) { color: var(--on-dark-muted); }
.specs { margin: 24px 0 0; border-top: 1px solid var(--line-d); font-size: 0.92rem; }
.specs div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-d); }
.specs dt { color: var(--on-dark-muted); }
.specs dd { margin: 0; font-weight: 560; font-variant-numeric: tabular-nums; color: var(--on-dark); }

/* ───────── assistenza ───────── */
.support-options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.sopt { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 2.8vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); scroll-margin-top: calc(var(--header-h) + 24px); overflow: hidden; }
.sopt::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--cyan-600), transparent); }
.sopt--remote::before { background: linear-gradient(90deg, var(--red-600), transparent); }
.sopt--area::before { background: linear-gradient(90deg, var(--ink), transparent); }
.sopt__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 14px; background: #e6f4fb; color: var(--cyan-600); }
.sopt--remote .sopt__icon { background: #fdeceb; color: var(--red-600); }
.sopt--area .sopt__icon { background: var(--slate-100); color: var(--ink); }
.sopt__icon .i { width: 28px; height: 28px; }
.sopt h2 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }
.sopt > p { margin-top: 12px; color: var(--muted); margin-bottom: 28px; }
.sopt .checks { margin-bottom: 26px; font-size: 0.97rem; }
.sopt > .btn { margin-top: auto; }
.sopt__dl { display: grid; gap: 10px; margin-top: auto; }
.sopt__note { margin-top: 14px; font-size: 0.92rem; }
.sopt:target { box-shadow: 0 0 0 3px rgba(0, 156, 220, 0.35); }
.sopt--remote:target { box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.3); }
.ipbox { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.ipbox__value { flex: 1 1 220px; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem); font-weight: 600; font-stretch: 114%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--ink); }
.ipbox__note { flex-basis: 100%; font-size: 0.86rem; color: var(--muted); }

/* ───────── azienda ───────── */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 18px); }
.timeline li { position: relative; padding: 40px 28px 28px; border: 1px solid var(--line-d); border-radius: var(--r); background: var(--panel); }
.timeline li::before { content: ''; position: absolute; top: 18px; left: 28px; width: 12px; height: 13px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.timeline__y { display: block; margin-top: 8px; font-size: clamp(2.2rem, 1.5rem + 1.8vw, 3.4rem); font-weight: 600; font-stretch: 122%; letter-spacing: -0.03em; color: var(--white); line-height: 1.05; }
.timeline p { margin-top: 10px; color: var(--on-dark-muted); }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px clamp(40px, 4vw, 72px); }
.cert h3 { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cert ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; color: var(--muted); }

/* ───────── contatti ───────── */
.contact__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(48px, 6vw, 120px); align-items: start; }
.form { display: grid; gap: 18px; }
.form__hint { color: var(--muted); font-size: 0.92rem; margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #b9cbd4; border-radius: var(--r-sm); background: var(--white);
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-600); box-shadow: 0 0 0 4px rgba(0, 156, 220, 0.18); }
.field [aria-invalid='true'] { border-color: var(--red-600); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--cyan-600); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* verifica "Non sono un robot" */
.captcha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; max-width: 440px; padding: 14px 16px 14px 14px; border: 1px solid #b9cbd4; border-radius: var(--r-sm); background: var(--paper); }
.captcha[data-state='error'] { border-color: var(--red-600); }
.captcha[data-state='ok'] { border-color: rgba(34, 197, 94, 0.6); }
.captcha__box { display: inline-flex; align-items: center; gap: 14px; padding: 4px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; }
.captcha__check { position: relative; width: 28px; height: 28px; flex: none; border: 2px solid #8aa3b0; border-radius: 6px; background: var(--white); transition: background-color 0.2s, border-color 0.2s; }
.captcha__box:hover .captcha__check { border-color: var(--cyan-600); }
.captcha[data-state='busy'] .captcha__check { border-color: var(--cyan-600); border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.captcha[data-state='ok'] .captcha__check { background: var(--green); border-color: var(--green); }
.captcha[data-state='ok'] .captcha__check::after { content: ''; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.captcha[data-state='ok'] .captcha__box { cursor: default; }
.captcha__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; line-height: 1.25; color: var(--muted); }
.captcha__brand .mhex { width: 24px; height: 24px; }
.captcha__msg { flex-basis: 100%; font-size: 0.86rem; color: var(--muted); }
.captcha__msg:empty { display: none; }
.captcha[data-state='error'] .captcha__msg { color: var(--red-700); }
@keyframes spin { to { transform: rotate(360deg); } }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__status { font-size: 0.95rem; }
.form__status.is-error { color: var(--red-700); }
.form__status.is-ok { color: #0b7a3e; }
.contact__side { display: grid; gap: 20px; }
.contact__block { padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.contact__block .defs { margin-top: 16px; }
.contact__block--support { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.contact__block--support h2 { color: var(--white); margin-top: 16px; }
.contact__block--support p { margin: 10px 0 20px; color: var(--on-dark-muted); }

/* ───────── documento (privacy) ───────── */
.prose--doc { max-width: 78ch; }
.prose--doc h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: 0.5em; }
.prose--doc h2:first-child { margin-top: 0; }
.prose--doc h3 { font-size: 1.14rem; margin-top: 1.4em; margin-bottom: 0.4em; }
.prose--doc ul, .prose--doc ol { padding-left: 1.4em; margin: 0.8em 0; display: grid; gap: 0.4em; }
.prose--doc p + p, .prose--doc ul + p, .prose--doc ol + p { margin-top: 0.9em; }

/* ───────── footer ───────── */
.footer { position: relative; overflow: hidden; background: var(--deep); color: var(--on-dark-muted); font-size: 0.95rem; border-top: 1px solid var(--line-d); }
.footer__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 10% 0%, rgba(0, 156, 220, 0.12), transparent 70%); }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 32px; padding-block: clamp(56px, 5vw, 88px) 40px; }
.brand--footer .logo { height: 54px; }
.footer__brand p { margin-top: 18px; max-width: 36ch; }
.footer__brand .status { margin-top: 20px; }
.footer__contact { display: grid; gap: 6px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer__title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--white); font-weight: 640; font-stretch: 108%; }
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__sites { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; padding-block: 24px; border-top: 1px solid var(--line-d); font-size: 0.9rem; }
.footer__sites strong { display: block; color: var(--on-dark); font-weight: 620; }
.footer__legal { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line-d); font-size: 0.84rem; }

/* ───────── responsive ───────── */
@media (max-width: 1280px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .mega__in { grid-template-columns: 1fr; }
  .groups--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .hero { min-height: 0; }
  .hero__in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 1rem + 4.6vw, 4.2rem); }
  .cube { width: min(100%, 560px); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats div:nth-child(3) { border-left: 0; }
  .hero__stats div:nth-child(n + 3) { border-top: 1px solid var(--line-d); }
  .bento { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .tile__media { height: 100%; min-height: 280px; }
  .tile__media::after { background: linear-gradient(90deg, transparent 50%, var(--ink-2)); }
  .tile__body { padding-top: clamp(22px, 2.2vw, 32px); }
  .support-home__in, .feature__in, .feature--flip .feature__in, .feature__in.feature--flip, .testing-home__in, .intro__in, .contact__in, .split, .phero--product .phero__in { grid-template-columns: 1fr; }
  .feature--flip .feature__media, .feature__in.feature--flip .feature__media { order: 0; }
  .support-home__media img { aspect-ratio: 16 / 10; }
  .section__head--split { grid-template-columns: 1fr; }
  .phero__bg { width: 100%; }
  .phero__bg img { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6)); mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6)); }
  .support-strip__in { grid-template-columns: 1fr; }
  .robots, .support-options__grid, .versions { grid-template-columns: 1fr; }
  .robot { display: grid; grid-template-columns: 280px 1fr; }
  .robot__img { align-items: center; }
  .steps, .steps--4, .steps--6, .timeline { grid-template-columns: repeat(2, 1fr); }
  .certs, .groups--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .related__list { grid-template-columns: 1fr; }
  .robots-home__row img { height: clamp(200px, 30vw, 300px); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .topbar__info a { display: none; }
  .topbar__links a { padding: 5px 7px; }
  .logo { height: 38px; }
  .header__in { gap: 12px; }
  .tile { grid-template-columns: 1fr; }
  .tile__media { min-height: 0; height: 220px; }
  .tile__media::after { background: linear-gradient(180deg, transparent 35%, var(--ink-2)); }
  .groups, .groups--3, .groups--4, .form__row, .sites__list, .certs, .footer__sites, .mini-stats { grid-template-columns: 1fr; }
  .mini-stats div { border-left: 0; border-top: 1px solid var(--line-d); }
  .mini-stats div:first-child { border-top: 0; }
  .support-strip__actions { grid-template-columns: 1fr; }
  .robots-home__row { grid-template-columns: 1fr; }
  .robots-home__row li { flex-direction: row; gap: 20px; padding: 20px; }
  .robots-home__row img { height: 170px; }
  .robots-home__row p { text-align: left; margin: 0; }
  .robot { grid-template-columns: 1fr; }
  .cta-band__in { flex-direction: column; align-items: flex-start; }
  .defs div { grid-template-columns: 1fr; gap: 2px; }
  .cube__label { padding: 7px 10px; }
  .cube__label strong { font-size: 0.92rem; }
  .cube__label span { display: none; }
}
@media (max-width: 600px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }
  .hero__stats div { padding: 18px 16px; }
  .steps, .steps--4, .steps--6, .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .btn--support { padding: 0.7em 0.9em; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  .marquee__row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__track[aria-hidden] { display: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; }
}

@media print {
  body { padding-top: 0; }
  .header, .footer, .cta-band, .support-strip, .hero__grid-bg, .hero__net { display: none !important; }
  .phero, .hero, .section--dark, .section--deep { background: none; color: #000; }
}
