/* Sentinet³: foglio di stile principale */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/open-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy-900: #0f2442;
  --navy-800: #16315a;
  --navy: #234678;
  --blue: #0e66a4;
  --blue-600: #0c578d;
  --blue-100: #e3effa;
  --sky: #5ab3f1;
  --copper: #d18a6e;
  --ink: #1f2a37;
  --text: #3d4654;
  --muted: #6b7686;
  --line: #e2e8f0;
  --soft: #f4f7fb;
  --white: #ffffff;
  --ok: #2e9e5b;
  --warn: #e0a100;
  --crit: #d64545;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 36, 66, .06), 0 1px 3px rgba(15, 36, 66, .08);
  --shadow: 0 10px 30px -12px rgba(15, 36, 66, .25);
  --shadow-lg: 0 30px 60px -20px rgba(15, 36, 66, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --c-core: #0b4f93; --c-network: #3a9aea; --c-app: #00c6c8; --c-security: #2774c1; --c-threat: #1d3f8f; --c-ai: #7030a0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy)); color: #c9d6ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-dark .eyebrow { color: var(--sky); }
.lead { font-size: 1.18rem; color: var(--muted); }
.section-dark .lead { color: #b4c4dc; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--blue); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { width: 132px; height: auto; }
.main-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px; cursor: pointer; }
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--blue); background: var(--soft); }
.nav-item.is-active > .nav-link { color: var(--blue); }
.chev { width: 11px; height: 8px; transition: transform .2s; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.dropdown, .mega { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.dropdown { list-style: none; margin: 0; padding: 10px; min-width: 240px; }
.dropdown a, .mega a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .94rem; }
.dropdown a:hover, .mega a:hover, .dropdown a[aria-current], .mega a[aria-current] { background: var(--blue-100); color: var(--blue); }
.mega { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 8px 16px; padding: 22px; width: min(880px, 92vw); left: -120px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega-title { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 12px; }
.nav-item.is-open > .dropdown, .nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { font-weight: 700; font-size: .85rem; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.lang-switch:hover { color: var(--blue); background: var(--soft); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero home */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(90,179,241,.28), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy)); color: #c9d6ea; padding: clamp(64px, 9vw, 120px) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 19ch; font-size: clamp(2rem, 3.6vw, 3rem); }
.hero .lead { color: #b4c4dc; max-width: 60ch; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(90,179,241,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%235ab3f1' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-visual { position: relative; }
.hero-visual .browser { border-radius: 12px; }
.hero-status { position: absolute; left: -28px; bottom: 56px; display: grid; gap: 8px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: .82rem; min-width: 210px; }
.hero-status strong { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-crit { background: var(--crit); }
.hero-strip { position: relative; margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: .86rem; color: #9fb2cf; }
.hero-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.hero-strip strong { color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }

/* Cornice screenshot */
.browser { background: #fff; border-radius: 12px 12px 0 0; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.3); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cdd5e0; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.shot figcaption { font-size: .86rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Griglie e card */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .96rem; margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: #b9d3ec; box-shadow: var(--shadow); transform: translateY(-2px); }
a.card:hover h3 { color: var(--blue); }
.card .link-arrow { margin-top: 16px; font-size: .92rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }

/* Due livelli Core / Infinity */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.layer { border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; }
.layer-core { background: #fff; border: 1px solid var(--line); }
.layer-infinity { background: linear-gradient(150deg, var(--navy-900), var(--navy)); color: #c9d6ea; }
.layer-infinity h3 { color: #fff; }
.layer .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue); margin-bottom: 16px; }
.layer-infinity .tag { background: rgba(90,179,241,.16); color: var(--sky); }
.layer h3 { font-size: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 24px; }
.chips li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--navy); }
.layer-infinity .chips li { background: rgba(255,255,255,.08); color: #e2ebf7; }
.layer-infinity .link-arrow { color: var(--sky); }

/* Righe funzione (testo + immagine) */
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 8vw, 104px); }
.feature-row.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230e66a4' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Elenco capacità compatte */
.cap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; margin-top: 56px; }
.cap { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.cap h3 { font-size: 1.05rem; margin-bottom: .3em; }
.cap p { font-size: .94rem; margin: 0; }
.cap a { color: inherit; text-decoration: none; }
.cap a:hover h3 { color: var(--blue); }

/* Scenari */
.scenario { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.scenario .num { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--sky); margin-bottom: 12px; }
.scenario h3 { font-size: 1.08rem; }
.scenario p { font-size: .93rem; color: #b4c4dc; }
.scenario .tags { margin-top: auto; padding-top: 12px; font-size: .8rem; color: #8ea4c4; }

/* Pagine interne */
.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy)); color: #b4c4dc; padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #b4c4dc; max-width: 62ch; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #6f87aa; }
.breadcrumb a { color: #9fb2cf; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.page-hero .tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; }

.callout { border-left: 4px solid var(--blue); background: var(--blue-100); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 32px 0; }
.callout p { margin: 0; color: var(--ink); }
.callout strong { color: var(--navy); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.compare > div { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.compare h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.compare p { font-size: .95rem; margin: 0; }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--blue-100); color: var(--blue); }
.badge-alt { background: #fbeee8; color: #a2553a; }

.scenario-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.scenario-box .eyebrow { margin-bottom: 8px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a.card { padding: 22px; }
.related .card h3 { font-size: 1.02rem; }

/* Banda contatti */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #dbe8f7; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .4em; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb2cf; font-size: .92rem; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { width: 130px; margin-bottom: 16px; }
.footer-brand address { font-style: normal; line-height: 1.8; margin: 16px 0; }
.site-footer a { color: #c9d6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px var(--gutter); font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 18, 34, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #c9d6ea; text-align: center; margin-top: 14px; font-size: .92rem; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mega { grid-template-columns: repeat(2, 1fr); width: min(560px, 92vw); left: -60px; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; visibility: hidden; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; }
  .dropdown, .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; width: auto; display: none; }
  .nav-item.is-open > .dropdown { display: block; }
  .nav-item.is-open > .mega { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-actions { justify-content: space-between; margin-top: 20px; }
  .hero-grid, .feature-row, .layers { grid-template-columns: 1fr; }
  .feature-row.reverse > :first-child { order: 0; }
  .hero-status { left: 12px; bottom: 24px; }
  .grid-3, .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .related, .cap-list, .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-item.is-open > .mega { grid-template-columns: 1fr; }
  .hero-status { display: none; }
  .layer { padding: 28px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Pagina Infinity (impianto della pagina Infinity del sito attuale) ---------- */
.inf-hero { position: relative; padding: clamp(64px, 8vw, 96px) 0; text-align: center; background: url("../img/infinity/hero-back.webp") no-repeat 112% 50% / auto 120%, linear-gradient(45deg, rgba(255,255,255,0) 0%, #c9e6f9 100%); overflow: hidden; }
.inf-hero img { width: min(440px, 80%); margin: 0 auto 32px; }
.inf-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .35em; }
.inf-hero .inf-claim { color: #00569c; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; margin: 0; }
.inf-eco { padding: clamp(64px, 8vw, 90px) 0; }
.inf-eco h2 { text-align: center; margin-bottom: 48px; }
.inf-eco-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.inf-eco-grid ul { padding-left: 1.1em; }
.inf-eco-grid li { margin-bottom: .7em; }
.inf-eco-grid img { width: min(480px, 100%); margin: 0 auto; }

.inf-band { position: relative; color: #fff; padding: clamp(64px, 8vw, 90px) 0; background-color: var(--band, #3a9aea); background-image: url("../img/infinity/sfondo.webp"); background-size: cover; background-position: center; overflow: hidden; }
.inf-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.inf-band h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: .5em; }
.inf-band .inf-icon { width: 84px; height: 84px; margin-bottom: 18px; }
.inf-band .inf-icon-round { width: 110px; height: 110px; border-radius: 50%; }
.inf-band .inf-intro { font-weight: 700; color: #fff; }
.inf-items { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.inf-items li { position: relative; padding-left: 30px; color: rgba(255,255,255,.95); }
.inf-items li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/11px no-repeat; }
.inf-band .btn-light { color: var(--band, var(--navy)); }
.inf-shots { position: relative; padding-bottom: 12%; }
.inf-shots img { border-radius: 10px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.45); background: #fff; cursor: zoom-in; }
.inf-shots img:first-child { width: 92%; }
.inf-shots img + img { position: absolute; right: 0; bottom: 0; width: 62%; border: 4px solid #fff; }
.inf-shots.single { padding-bottom: 0; }
.inf-shots.single img:first-child { width: 100%; }

.inf-features { padding: clamp(48px, 6vw, 64px) 0 clamp(56px, 7vw, 80px); }
.inf-features > .container > h2 { text-align: center; margin-bottom: 48px; }
.inf-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.inf-feat img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 18px; }
.inf-feat h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; color: var(--ink); margin-bottom: .5em; }
.inf-feat ul { padding-left: 1.1em; margin: 0; }
.inf-feat li { margin-bottom: .45em; }

.inf-levels { background: #ededed; padding: clamp(48px, 6vw, 56px) 0; }
.inf-levels-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.inf-levels-grid > div > h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 24px; }
.inf-levels-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.inf-level-card img { width: 64px; height: 64px; margin-bottom: 14px; }
.inf-level-card h3 { font-size: 1.15rem; }
.inf-level-card ul { padding-left: 1.1em; margin: 0; font-size: .96rem; }

.inf-ai-qs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; margin: 28px 0 0; }
.inf-ai-qs li { background: #f3ecf8; border: 1px solid #e3d3ef; color: #4b1f6f; border-radius: 16px 16px 16px 4px; padding: 14px 18px; font-weight: 600; font-size: .96rem; }
.inf-more { display: flex; justify-content: center; margin-top: 40px; }
.badge-new { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.2); color: #fff; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }

@media (max-width: 960px) {
  .inf-eco-grid, .inf-band-grid, .inf-levels-grid { grid-template-columns: 1fr; }
  .inf-hero { background-size: auto 70%, auto; background-position: 140% 100%, 0 0; }
}
@media (max-width: 640px) {
  .inf-feat-grid, .inf-levels-sub, .inf-ai-qs { grid-template-columns: 1fr; }
  .inf-shots { padding-bottom: 0; }
  .inf-shots img + img { position: static; width: 100%; margin-top: 14px; border: 0; }
  .inf-shots img:first-child { width: 100%; }
}

/* Diagramma ecosistema (SVG in linea) */
.eco-diagram { width: min(500px, 100%); height: auto; margin: 0 auto; display: block; }
.eco-diagram .eco-label { fill: #fff; font: 700 19px "Open Sans", system-ui, sans-serif; }
.eco-diagram .eco-core { fill: #fff; font: 800 38px "Open Sans", system-ui, sans-serif; }
.eco-diagram .eco-core-small { fill: #c9e6f9; font: 600 17px "Open Sans", system-ui, sans-serif; letter-spacing: .04em; }
.eco-diagram .eco-link { cursor: pointer; }
.eco-diagram .eco-link > g { transition: transform .2s; }
.eco-diagram .eco-link:hover circle:first-child, .eco-diagram .eco-link:focus-visible circle:first-child { stroke: #c9e6f9; }

/* ---------- Linguaggio visivo comune: un colore per area (dalla pagina Infinity) ---------- */
.page-hero.band { background-color: var(--band, var(--c-core)); background-image: url("../img/infinity/sfondo.webp"); background-size: cover; background-position: center; color: rgba(255,255,255,.92); }
.page-hero.band::before { display: none; }
.page-hero.band .lead { color: rgba(255,255,255,.92); }
.page-hero.band .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero.band .breadcrumb li + li::before { color: rgba(255,255,255,.5); }
.page-hero.band .tag { color: #fff; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; }
.page-hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.page-hero-icon { justify-self: end; width: 168px; height: 168px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.35); }
.page-hero-icon img, .page-hero-icon svg { width: 92px; height: 92px; }

.hero-light { background: url("../img/infinity/hero-back.webp") no-repeat 108% 40% / auto 115%, linear-gradient(45deg, rgba(255,255,255,0) 0%, #c9e6f9 100%); color: var(--text); padding: clamp(56px, 7vw, 96px) 0 0; position: relative; overflow: hidden; }
.hero-light h1 { color: var(--ink); font-size: clamp(2rem, 3.6vw, 3rem); max-width: 19ch; }
.hero-light .lead { color: var(--muted); max-width: 58ch; }
.hero-light .eyebrow { color: #00569c; }
.hero-light .hero-points li::before { background-color: rgba(14,102,164,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230e66a4' stroke-width='2'/%3E%3C/svg%3E"); }
.hero-light .btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.hero-light .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.hero-light .hero-strip { border-top-color: rgba(15,36,66,.1); color: var(--muted); }
.hero-light .hero-strip strong { color: var(--navy); }
.hero-light .eco-diagram { width: min(520px, 100%); }

.card[data-area] { border-top: 5px solid var(--band); }
.card[data-area] .icon { background: color-mix(in srgb, var(--band) 14%, #fff); color: var(--band); }
.card[data-area]:hover h3 { color: var(--band); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.dot-area { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--band); margin-right: 8px; vertical-align: middle; }

.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th { text-align: left; background: var(--band, var(--navy)); color: #fff; font-weight: 700; padding: 12px 16px; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table td:first-child { font-weight: 700; color: var(--ink); width: 32%; }
.table-wrap { overflow-x: auto; }
.section-band-soft { background: color-mix(in srgb, var(--band, var(--c-core)) 7%, #fff); }
.callout.band { border-left-color: var(--band); background: color-mix(in srgb, var(--band) 10%, #fff); }

@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-icon { display: none; } }
@media (max-width: 640px) { .grid-5 { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .hero-light { background: url("../img/infinity/hero-back.webp") no-repeat 160% -40px / 320px auto, linear-gradient(45deg, rgba(255,255,255,0) 0%, #c9e6f9 100%); }
}

/* Chip cliccabili (elenco tecnologie) */
.chips-links li { padding: 0; }
.chips-links a { display: block; padding: 6px 12px; color: inherit; text-decoration: none; border-radius: 999px; }
.chips-links a:hover, .chips-links a:focus-visible { background: var(--c-core); color: #fff; }

/* Le colonne della griglia non si allargano oltre lo schermo; i nomi lunghi dei controlli vanno a capo */
.grid > * { min-width: 0; }
.data-table td:first-child { overflow-wrap: break-word; hyphens: manual; }

/* Pagina Tecnologie monitorate: catalogo denso */
.section-tight { padding-top: 40px; padding-bottom: 40px; }
.tech-stats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tech-stats li { background: var(--soft); border-radius: 12px; padding: 18px 20px; border-top: 4px solid var(--c-core); }
.tech-stats strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--c-core); }
.tech-stats span { font-size: .9rem; color: var(--muted, #5a6b82); }
.tech-index { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tech-index a { font-size: .82rem; font-weight: 600; padding: 5px 11px; border: 1px solid rgba(11,79,147,.25); border-radius: 999px; color: var(--c-core); text-decoration: none; }
.tech-index a:hover, .tech-index a:focus-visible { background: var(--c-core); color: #fff; }
.tech-cat { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid rgba(35,70,120,.12); scroll-margin-top: 90px; }
.tech-cat:first-child { border-top: 0; }
.tech-cat > * { min-width: 0; }
.tech-cat h2 { font-size: 1.25rem; margin: 0; color: var(--c-core); }
.tech-cat .chips { margin: 0; }
.tech-pattern { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tech-pattern a { display: block; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(11,79,147,.18); border-left: 4px solid var(--c-core); text-decoration: none; color: inherit; }
.tech-pattern a:hover, .tech-pattern a:focus-visible { box-shadow: 0 6px 18px rgba(11,79,147,.14); }
.tech-pattern strong { display: block; color: var(--c-core); font-size: .95rem; }
.tech-pattern span { display: block; font-size: .8rem; line-height: 1.4; color: var(--muted, #5a6b82); margin-top: 2px; }
@media (max-width: 960px) {
  .tech-stats { grid-template-columns: repeat(2, 1fr); }
  .tech-cat { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
}

/* Set di icone del sito (Lucide, tratto uniforme). Un concetto = sempre la stessa icona. */
.ico { display: inline-grid; place-items: center; flex: none; color: var(--band, var(--c-core)); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-tile { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--band, var(--c-core)) 12%, #fff); margin-bottom: 16px; }
.ico-plain svg { width: 30px; height: 30px; }
.ico-hero { width: 64px; height: 64px; color: #fff; }
.ico-hero svg { width: 40px; height: 40px; }
.section-band-soft .ico-tile, .section-soft .ico-tile { background: #fff; }
.related .ico-tile { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.related .ico-tile svg { width: 22px; height: 22px; }
.page-hero-icon svg { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Riga titolo con icona */
.ico-head { display: flex; align-items: center; gap: 14px; }
.ico-head .ico-tile { margin-bottom: 0; }
.tech-cat h2.ico-head { flex-direction: column; align-items: flex-start; gap: 12px; align-self: start; }
@media (max-width: 960px) { .tech-cat h2.ico-head { flex-direction: row; align-items: center; } }
.section-band-soft .card .ico-tile, .section-soft .card .ico-tile { background: color-mix(in srgb, var(--band, var(--c-core)) 12%, #fff); }
/* Icone bianche delle fasce colorate (pagine Core e Infinity) */
.inf-band .ico-hero { display: block; width: auto; height: auto; margin-bottom: 18px; }
.inf-band .ico-hero svg { width: 72px; height: 72px; stroke-width: 1.5; }

/* Selettore di lingua IT/EN */
.lang-switch { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--navy); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; margin-right: 10px; }
.lang-switch:hover, .lang-switch:focus-visible { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Loghi delle certificazioni SentiNet³ Certified */
.cert-logo { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 10px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(35,70,120,.12); }
.cert-logo-lg { max-width: 420px; margin-top: 24px; }
