/* =========================================================
   Connext – W6 Edge Cloud Control
   Palette dallo stand Chillventa 2026 (file di stampa):
   arancio #ea8d30 · blu #425070 · blu chiaro #636a87 · lavanda #a4a6b8/#dbdae3 · nero #1d1d1b
   Tinte piatte, niente gradienti arancio.
   ========================================================= */
/* Font ospitati in locale (assets/fonts) – Inter e Sora, set latin + latin-ext, pesi variabili */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/sora-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/sora-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --orange: #ea8d30;
  --orange-2: #f5b778; /* tinta di #ea8d30 per testo piccolo su blu (AA) */
  --orange-600: #b25d10; /* arancio scurito per testo piccolo su bianco */
  --navy: #425070;
  --navy-700: #364260;
  --ink-900: #364260; /* blu stand scurito: header, footer */
  --ink-800: #425070; /* blu stand: hero e sezioni scure */
  --ink-700: #4b5878;
  --text: #1d1d1b;
  --muted: #5d6580;
  --muted-d: #dbdae3;
  --line: #e7e9f0;
  --line-d: rgba(255,255,255,.16);
  --bg-soft: #f3f3f7;
  --ok: #34d399;
  --r: 20px;
  --max: 1200px;
  --grad: linear-gradient(var(--orange), var(--orange)); /* arancio pieno come sullo stand */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--text); background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .55em; color: var(--navy); letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--orange); color: #fff; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section--soft { background: var(--bg-soft); }

/* Sezioni scure */
.section--dark, .section--navy, .hero { background: var(--ink-800); color: var(--muted-d); }
.site-footer { background: var(--ink-900); color: var(--muted-d); }
.section--navy { background: radial-gradient(900px 500px at 85% 0%, rgba(99,106,135,.45), transparent 60%), var(--ink-900); }
.section--dark { background: radial-gradient(800px 420px at 10% 100%, rgba(234,141,48,.14), transparent 60%), var(--ink-800); }
.section--dark h2, .section--dark h3, .section--navy h2, .section--navy h3, .hero h1, .hero h2, .hero h3 { color: #fff; }

/* Chip eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-size: .76rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-600); background: rgba(234,141,48,.1);
  border: 1px solid rgba(234,141,48,.25); padding: .45em 1em; border-radius: 999px;
  margin-bottom: 1.3rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.section--dark .eyebrow, .section--navy .eyebrow, .hero .eyebrow { color: var(--orange-2); background: rgba(234,141,48,.12); }
.head-bar { }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44rem; line-height: 1.6; }
.section--dark .lead, .section--navy .lead, .hero .lead { color: var(--muted-d); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .9em 1.6em; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #1d1d1b; box-shadow: 0 10px 30px -8px rgba(234,141,48,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover { box-shadow: 0 14px 40px -6px rgba(234,141,48,.85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--ghost { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--line); color: var(--ink-900); background: #fff; box-shadow: 0 1px 2px rgba(54,66,96,.06); }
.btn--outline:hover { border-color: var(--ink-900); }
.section--dark .btn--outline, .section--navy .btn--outline { background: transparent; color: #fff; border-color: var(--line-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* ---------- Header (vetro scuro) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(54,66,96,.9);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-d);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-size: .9rem; font-weight: 500;
  color: #dbdae3; padding: .55em .85em; border-radius: 999px; transition: color .15s, background .15s;
}
.menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.menu .btn { color: #1d1d1b; margin-left: .6rem; padding: .62em 1.25em; }
.menu .btn:hover { background: var(--grad); color: #1d1d1b; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; }
@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: .2rem;
    background: rgba(54,66,96,.97); border-bottom: 1px solid var(--line-d); padding: .8rem 1.25rem 1.4rem; display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: .85em 1em; }
  .menu .btn { margin: .6rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(6rem, 11vw, 9rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero-plant.jpg") center/cover no-repeat;
  opacity: 1; mix-blend-mode: normal;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0/56px 56px,
    linear-gradient(180deg, transparent 65%, rgba(40,50,78,.85)),
    linear-gradient(90deg, rgba(40,50,78,.92) 0%, rgba(40,50,78,.8) 40%, rgba(40,50,78,.45) 75%, rgba(40,50,78,.3) 100%);
  -webkit-mask-image: none;
}
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(40,50,78,.82), rgba(40,50,78,.9)); }
}
.hero > .container { position: relative; z-index: 1; }
/* HERO-BG:START */
/* Sfondi delle hero per pagina, dalle immagini del sito precedente */
.hero--ai-hand::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-ai-hand.jpg") center/cover no-repeat; }
.hero--chatbot::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-chatbot.jpg") center/cover no-repeat; }
.hero--checklist::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-checklist.jpg") center/cover no-repeat; }
.hero--circuit::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-circuit.jpg") center/cover no-repeat; }
.hero--city-blocks::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-city-blocks.jpg") center/cover no-repeat; }
.hero--city-lights::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-city-lights.jpg") center/cover no-repeat; }
.hero--cloud::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-cloud.jpg") center/cover no-repeat; }
.hero--data-streams::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-data-streams.jpg") center/cover no-repeat; }
.hero--network::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-network.jpg") center/cover no-repeat; }
.hero--secure-login::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-secure-login.jpg") center/cover no-repeat; }
.hero--team::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-team.jpg") center/cover no-repeat; }
.hero--waves::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-waves.jpg") center/cover no-repeat; }
.hero--engineers::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-engineers.jpg") center/cover no-repeat; }
.hero--checkout::before { background:
    radial-gradient(700px 420px at 78% 30%, rgba(234,141,48,.22), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(99,106,135,.35), transparent 60%),
    url("../img/hero/hero-checkout.jpg") right -240px center/cover no-repeat; }
/* HERO-BG:END */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-tagline { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: #fff; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.hero-tagline span { padding: .4em .95em; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255,255,255,.04); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.page-hero { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4.5rem, 8vw, 7rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }

/* ---------- Chart card ---------- */
.chart-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.chart-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(234,141,48,.6), transparent 35%, transparent 65%, rgba(164,166,184,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; font-family: var(--font-head); font-size: .8rem; gap: 1rem; }
.chart-head .live { display: inline-flex; align-items: center; gap: .5em; color: #dbdae3; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.chart-alert { font-weight: 600; color: #1d1d1b; background: var(--grad); padding: .35em .85em; border-radius: 999px; opacity: 0; animation: fadeIn .5s 3.2s forwards; box-shadow: 0 0 24px rgba(234,141,48,.6); white-space: nowrap; }
.anomaly-chart { width: 100%; height: auto; overflow: visible; }
.anomaly-chart .band { fill: rgba(164,166,184,.22); }
.anomaly-chart .exp { fill: none; stroke: rgba(201,207,223,.55); stroke-width: 1.6; stroke-dasharray: 4 6; }
.anomaly-chart .real { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s cubic-bezier(.4,0,.2,1) .3s forwards; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
.anomaly-chart .zone { fill: url(#zoneGrad); fill: rgba(234,141,48,.13); opacity: 0; animation: fadeIn .6s 2.6s forwards; }
.anomaly-chart .dot { fill: var(--orange); opacity: 0; animation: fadeIn .4s forwards; filter: drop-shadow(0 0 6px var(--orange)); }
.anomaly-chart .lbl { font: 600 12px var(--font-head); fill: #c9cad8; }
.anomaly-chart .lbl-o { fill: var(--orange-2); opacity: 0; animation: fadeIn .5s 3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .8rem; color: #c9cad8; margin-top: .5rem; }
.legend i { display: inline-block; width: 16px; height: 9px; border-radius: 3px; margin-right: .45em; vertical-align: middle; }
.legend .l-band { background: rgba(164,166,184,.45); }
.legend .l-real { background: #fff; height: 3px; }
.legend .l-zone { background: var(--orange); }
@media (prefers-reduced-motion: reduce) {
  .anomaly-chart .real { animation: none; stroke-dashoffset: 0; }
  .anomaly-chart .zone, .anomaly-chart .dot, .anomaly-chart .lbl-o, .chart-alert { animation: none; opacity: 1; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Schede in evidenza ---------- */
.news-strip { margin-top: -4.5rem; position: relative; z-index: 2; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.news-card {
  position: relative; display: block; overflow: hidden;
  background: #fff; border-radius: 24px; padding: 2.1rem 2.1rem 1.9rem;
  border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 30px 60px -25px rgba(54,66,96,.35);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,141,48,.22), transparent 70%); transition: transform .4s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(234,141,48,.45); box-shadow: 0 40px 70px -25px rgba(54,66,96,.45); }
.news-card:hover::after { transform: scale(1.25); }
.news-card h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.news-card p { color: var(--muted); margin-bottom: 1.2rem; }
.news-card .more { font-family: var(--font-head); font-weight: 600; color: var(--orange-600); }
.news-card .ico { width: 54px; height: 54px; padding: 12px; border-radius: 16px; margin-bottom: 1.2rem; color: #fff; background: linear-gradient(140deg, var(--ink-700), var(--navy)); box-shadow: 0 10px 24px -8px rgba(54,66,96,.6); }
@media (max-width: 820px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Griglie & card ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.9rem; height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card--shadow { box-shadow: 0 1px 2px rgba(54,66,96,.04), 0 12px 32px -16px rgba(54,66,96,.18); }
.card--shadow:hover { transform: translateY(-3px); border-color: rgba(234,141,48,.4); }
.card--navy { background: linear-gradient(160deg, var(--ink-700), var(--ink-900)); border-color: var(--line-d); color: #dbdae3; }
.card--navy h3 { color: #fff; }
.card--navy p, .card--navy li { color: #dbdae3; }
.card--orange { background: radial-gradient(400px 260px at 100% 0%, rgba(255,255,255,.25), transparent 60%), var(--grad); border: 0; color: #1d1d1b; }
.card--orange h3, .card--orange p, .card--orange li, .card--orange .kicker { color: #1d1d1b !important; }
.card--glass { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: var(--line-d); }
.card--glass p { color: var(--muted-d); }
.card--glass:hover { border-color: rgba(234,141,48,.35); }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: .5rem; }
.card .ico { width: 44px; height: 44px; color: var(--orange); margin-bottom: 1rem; }

.num { font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; line-height: 1; margin-bottom: .7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: .4rem; display: block; }
.section--dark .kicker, .section--navy .kicker, .card--glass .kicker { color: var(--orange-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 920px) { .split, .split--wide { grid-template-columns: 1fr; } }
.img-frame { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(54,66,96,.5); position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

.checks { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--grad) ; -webkit-mask: none;
}
.checks li::after {
  content: ""; position: absolute; left: .38rem; top: .55em; width: .32rem; height: .58rem;
  border: solid #1d1d1b; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: stretch; }
.compare .vs { align-self: center; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink-900); color: var(--orange-2); font-weight: 700; font-size: 1.3rem; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } .compare .vs { justify-self: center; transform: rotate(90deg); } }
.state-pill { display: inline-flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.1rem; }
.state-pill span { font-family: var(--font-head); font-size: .74rem; font-weight: 600; padding: .3em .85em; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.15); }
.card--orange .state-pill span { background: rgba(29,29,27,.1); border-color: rgba(29,29,27,.15); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.8rem; position: relative; }
.step .dot {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1.2rem; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; background: var(--bg-soft); color: var(--ink-900);
}
.step--fail { background: transparent; border-style: dashed; }
.step--fail .dot { color: #b4b9c6; }
.step--fail h3 { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(234,141,48,.6); }
.step--win .dot, .step:last-child .dot { background: var(--grad); color: #1d1d1b; box-shadow: 0 10px 24px -8px rgba(234,141,48,.7); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Ciclo protezione attiva ---------- */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: c; }
.cycle-item {
  counter-increment: c; position: relative; border-radius: var(--r); padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--line-d);
  transition: border-color .2s, transform .2s;
}
.cycle-item:hover { border-color: rgba(234,141,48,.45); transform: translateY(-3px); }
.cycle-item::before { content: "0" counter(c); position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.3); }
.cycle-item .verb { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cycle-item .name { font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: .55rem 0 .9rem; }
.cycle-item p { font-size: .95rem; color: var(--muted-d); margin: 0; }
.cycle-item .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--orange-2); background: rgba(234,141,48,.12); margin-bottom: 1.1rem; }
.cycle--light .cycle-item { background: #fff; border-color: var(--line); }
.cycle--light .cycle-item::before { color: #c2c7d3; }
.cycle--light .cycle-item .name { color: var(--navy); }
.cycle--light .cycle-item p { color: var(--muted); }
@media (max-width: 980px) { .cycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cycle { grid-template-columns: 1fr; } }

/* ---------- 7 misure ---------- */
.measures { counter-reset: m; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.measures li { counter-increment: m; position: relative; padding: 1.4rem 1.5rem 1.4rem 4.6rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s; }
.measures li:hover { border-color: rgba(234,141,48,.45); }
.measures li::before {
  content: counter(m); position: absolute; left: 1.4rem; top: 1.4rem; width: 2.3rem; height: 2.3rem; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; background: var(--ink-900); color: var(--orange-2);
}
.measures strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink-900); margin-bottom: .2rem; }
.measures span { color: var(--muted); font-size: .96rem; }
.measures li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .measures { grid-template-columns: 1fr; } }

.note { border: 1px solid rgba(234,141,48,.3); background: rgba(234,141,48,.07); padding: 1.2rem 1.5rem; border-radius: 16px; color: var(--text); font-size: .96rem; }
.section--dark .note, .section--navy .note { color: #dbdae3; }

.arch-flow { display: block; width: min(100%, 1024px); height: auto; margin: 1.8rem auto 0; }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.pill { font-family: var(--font-head); font-size: .84rem; font-weight: 500; padding: .45em 1em; border-radius: 999px; background: #fff; color: var(--ink-900); border: 1px solid var(--line); }
.section--dark .pill, .section--navy .pill { background: rgba(255,255,255,.05); color: #fff; border-color: var(--line-d); }

.loop { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.loop span { font-family: var(--font-head); font-weight: 500; font-size: .85rem; padding: .55em 1em; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-900); }
.loop b { color: var(--orange); }

.quote { font-family: var(--font-head); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; color: #fff; max-width: 32em; }
.quote em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2.4rem, 5vw, 4rem);
  background: radial-gradient(600px 300px at 90% 0%, rgba(234,141,48,.35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(99,106,135,.35), transparent 60%), var(--ink-900);
  color: var(--muted-d); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  border: 1px solid var(--line-d);
}
.cta-band h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; max-width: 38rem; }
.cta-band .btn { background: var(--grad); color: #1d1d1b; box-shadow: 0 10px 30px -8px rgba(234,141,48,.7); }

.device { position: relative; background: #000; border-radius: 24px; display: grid; place-items: center; padding: 2.5rem; box-shadow: 0 40px 80px -30px rgba(54,66,96,.6); overflow: hidden; }
.device::before { content: ""; position: absolute; width: 70%; height: 70%; background: radial-gradient(circle, rgba(234,141,48,.25), transparent 65%); }
.device img { position: relative; max-height: 420px; width: auto; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.form label { display: block; font-family: var(--font-head); font-size: .84rem; font-weight: 500; margin-bottom: .4rem; color: var(--ink-900); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1rem; padding: .85em 1.05em; border-radius: 12px; border: 1px solid #d8dce6; background: #fff; margin-bottom: 1.15rem; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(234,141,48,.15); }
.form textarea { min-height: 150px; resize: vertical; }
.form .privacy { font-size: .85rem; color: var(--muted); display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.3rem; }
.form .privacy input { width: auto; margin: .3em 0 0; }

/* Footer */
.site-footer { padding: 4.5rem 0 2rem; font-size: .94rem; border-top: 1px solid var(--line-d); }
.site-footer a { color: #dbdae3; }
.site-footer a:hover { color: var(--orange-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid h4.footer-w6 { margin-bottom: 1rem; }
.footer-w6 img { display: block; height: 1.9rem; width: auto; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.1rem; }
.footer-bottom { border-top: 1px solid var(--line-d); margin-top: 3rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: 3rem; }
.maxw { max-width: 48rem; }

/* ---------- Modulo contatti (invio a /api/v1/contact) ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.req { color: var(--orange-600); }
.form [aria-invalid="true"] { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-row { display: flex; gap: .6rem; align-items: stretch; }
.captcha-row input { max-width: 8rem; }
.captcha-new { font: inherit; font-size: .85rem; color: var(--orange-600); background: none; border: 0; padding: 0 .2rem; cursor: pointer; text-decoration: underline; }
.captcha-new:hover { color: var(--ink-900); }
#f-captcha-q { font-weight: 600; white-space: nowrap; }
.form .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.feedback { display: none; margin-top: 1.1rem; padding: .85rem 1.1rem; border-radius: 12px; font-size: .94rem; }
.feedback.ok { display: block; border: 1px solid rgba(52,211,153,.5); background: rgba(52,211,153,.1); color: var(--text); }
.feedback.err { display: block; border: 1px solid rgba(229,72,77,.45); background: rgba(229,72,77,.08); color: var(--text); }
.feedback.err a { color: inherit; text-decoration: underline; }
.form-aside { margin: 1.1rem 0 0; font-size: .85rem; color: var(--muted); }

/* Selettore lingua IT / EN */
.menu a.lang { font-size: .78rem; font-weight: 600; letter-spacing: .08em; padding: .4em .75em; border: 1px solid var(--line-d); color: #dbdae3; }
.menu a.lang:hover { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 1300px) { .menu a.lang { align-self: flex-start; margin: .3rem 0 0 .5rem; } }

/* ---------- Presidio AI ---------- */
.feed-badge { font-weight: 600; color: var(--ok); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); padding: .3em .8em; border-radius: 999px; white-space: nowrap; }
.feed { list-style: none; margin: .4rem 0 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line-d); font-size: .92rem; color: #dbdae3; line-height: 1.45; }
.feed li:first-child { border-top: 0; }
.feed time { font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--muted-d); padding-top: .1em; }
.feed strong { color: #fff; font-weight: 600; }
.feed .act { display: block; margin-top: .35rem; font-size: .8rem; font-family: var(--font-head); font-weight: 500; color: var(--muted-d); }
.feed .act::before { content: "→ "; }
.feed .act--ok { color: var(--ok); }
.feed .act--warn { color: var(--orange-2); }

.cost-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.cost-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); margin: 0; }
.cost-list span { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); }
.cost-list em { font-style: normal; color: var(--muted); text-align: right; }

.compare-table { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 12px 32px -16px rgba(54,66,96,.18); }
.ct-row { display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; border-top: 1px solid var(--line); }
.ct-row:first-child { border-top: 0; }
.ct-row > span { padding: 1rem 1.3rem; color: var(--muted); font-size: .97rem; }
.ct-row > span:first-child { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); font-size: .9rem; }
.ct-row > span:last-child { background: rgba(234,141,48,.06); color: var(--ink-900); }
.ct-head > span { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }
.ct-head > span:last-child { background: var(--grad); color: #1d1d1b !important; }
.ct-foot > span:last-child { background: rgba(234,141,48,.16); }
@media (max-width: 760px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-head { display: none; }
  .ct-row > span { padding: .5rem 1.2rem; }
  .ct-row > span:first-child { padding-top: 1rem; }
  .ct-row > span:nth-child(2)::before { content: "Tradizionale: "; font-weight: 600; }
  .ct-row > span:last-child { padding-bottom: 1rem; }
  .ct-row > span:last-child::before { content: "Presidio AI: "; font-weight: 600; color: var(--orange-600); }
}

.stack { display: grid; gap: .9rem; position: relative; }
.stack-row { display: grid; grid-template-columns: 15rem 1fr; gap: 1.2rem; align-items: center; }
.stack-lbl { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); text-align: right; }
.stack-box { padding: 1.15rem 1.4rem; border-radius: 16px; border: 1px solid var(--line-d); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); color: #fff; }
.stack-row--hl .stack-lbl { color: var(--orange-2); }
.stack-row--hl .stack-box { border-color: rgba(234,141,48,.55); background: linear-gradient(100deg, rgba(234,141,48,.22), rgba(234,141,48,.06)); color: #fff; font-weight: 500; box-shadow: 0 0 40px -10px rgba(234,141,48,.5); }
@media (max-width: 760px) { .stack-row { grid-template-columns: 1fr; gap: .4rem; } .stack-lbl { text-align: left; } }

/* card in evidenza nella home (Presidio AI) */
.news-card--feature { grid-column: 1 / -1; background: radial-gradient(500px 260px at 100% 0%, rgba(234,141,48,.35), transparent 60%), linear-gradient(140deg, var(--ink-700), var(--ink-900)); border-color: rgba(234,141,48,.4); color: #dbdae3; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.news-card--feature h3 { color: #fff; }
.news-card--feature p { color: #dbdae3; margin: 0; }
.news-card--feature .ico { margin: 0; background: var(--grad); color: #1d1d1b; }
.news-card--feature .more { color: var(--orange-2); white-space: nowrap; }
@media (max-width: 820px) { .news-card--feature { grid-template-columns: 1fr; } }

/* Menu con molte voci: header più largo del contenuto, voci su una riga */
.site-header .container { width: min(1380px, 100% - 2.5rem); }
.menu a { white-space: nowrap; }
@media (min-width: 1301px) { .menu { gap: 0; } .menu a { padding: .55em .7em; font-size: .88rem; } }


/* Infografica W6 (Anomaly Detection) */
.ad-info-wrap { margin: 3rem auto 0; max-width: 980px; }
.ad-info { display: block; width: 100%; height: auto; border-radius: var(--radius, 20px); }
.ad-info-labels { font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 29px; letter-spacing: .01em; }

/* Piattaforma: ecosistema W6 e ciclo dei dati */
.arch-cycle-wrap { margin: 2.5rem auto; max-width: 860px; }
.arch-cycle { display: block; width: 100%; height: auto; }
.arch-cycle-labels { font-family: 'Sora', system-ui, sans-serif; font-weight: 700; font-size: 32px; }

/* ECO:START */
/* Piattaforma: ecosistema W6 con etichette */
.eco { margin: 0; }
.eco-map { position: relative; max-width: 540px; margin-inline: auto; }
.eco-map img { display: block; width: 100%; height: auto; }
.eco-lbl { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: clamp(.62rem, 1.4vw, .78rem); font-weight: 600; line-height: 1.2; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25em .7em; box-shadow: 0 4px 12px -6px rgba(54,66,96,.35); }
.eco-lbl--cloud { color: #fff; background: var(--ink-700); border-color: var(--ink-700); }
.eco-lbl--edge { color: #fff; background: var(--orange); border-color: var(--orange); }
.eco-legend { display: flex; justify-content: center; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .85rem; color: var(--ink-700); }
.eco-key { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; border: 2px solid var(--ink-700); margin-right: -.6rem; vertical-align: middle; }
.eco-key--cloud { background: var(--ink-700); margin-left: .6rem; }
.eco-steps { display: grid; gap: 1rem; }
.eco-step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.eco-step .num { margin: 0; }
/* ECO:END */

/* Piattaforma: soluzioni; pagine soluzione: collegamenti finali */
.sol-base { font-size: .88rem; color: var(--ink-700); border-top: 1px solid var(--line); padding-top: .8rem; }
.related-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin: 1.6rem 0 0; font-size: .95rem; }

/* Piattaforma: foto del dispositivo nella card W6 Edge */
.how-device { float: right; height: 210px; width: auto; max-width: 42%; object-fit: contain; margin: 0 0 .8rem 1.2rem; }
@media (max-width: 520px) { .how-device { float: none; display: block; height: 180px; max-width: 100%; margin: 0 auto 1rem; } }


/* Offerta: tabella di confronto tra le versioni */
.ver-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px -16px rgba(54,66,96,.18); }
.ver-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
.ver-table th, .ver-table td { padding: .95rem 1.2rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ver-table thead th, .ver-table thead td { border-top: 0; background: var(--ink-900); color: #fff; vertical-align: bottom; }
.ver-table thead th { width: 26%; }
.ver-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.ver-for { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-top: .2rem; }
.ver-table tbody th { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); font-size: .9rem; width: 22%; }
.ver-table tbody td { color: var(--muted); }
.ver-table tbody tr:nth-child(even) { background: rgba(54,66,96,.03); }
.ver-table .yes { color: var(--orange); font-weight: 700; font-size: 1.1rem; }
.ver-table .no { color: #b6b9c6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
