/* ==============================================================
 * NEXIM FOUNDATION — PREMIUM LAYER v6 "Deep Signal" (ott 2026)
 * Caricato per ULTIMO (dopo pro.css). Dark-first: profondità reale
 * (WebGL), chrome di vetro, tipografia da top company, HUD da regia.
 * Sostituisce la skin chiara us-skin.css (file conservato, non più
 * enqueuato — rollback: ripristinare l'enqueue in functions.php).
 * Tutto brand-aware via token: --nx-brand/--nx-accent per skin
 * (Tokens.php) + --nx-onair (rosso tally) definito qui.
 * ============================================================== */

/* ---------- 1. Token (scala Obsidian approfondita) ---------- */
:root, body {
  --nx-bg:        #05070d;
  --nx-bg-2:      #080b14;
  --nx-bg-soft:   #0c1019;
  --nx-bg-alt:    #121724;
  --nx-surf:      #0c1019;
  --nx-surf-2:    #121724;
  --nx-line:      rgba(255,255,255,.08);
  --nx-line-2:    rgba(255,255,255,.14);
  --nx-line-3:    rgba(255,255,255,.24);
  --nx-ink:       #f4f6fb;
  --nx-ink-2:     #c9d1e0;
  --nx-ink-soft:  #8b95a9;
  --nx-ink-dim:   #5d6678;
  --nx-onair:     #ff3b4e;
  --nx-violet:    #b39cff;
  --nx-radius:    10px;
  --nx-radius-lg: 18px;
  --nx-radius-sm: 6px;
  --nx-shadow:    0 10px 36px rgba(0,0,0,.45);
  --nx-shadow-lg: 0 30px 80px -24px rgba(0,0,0,.7), 0 8px 24px rgba(0,0,0,.35);
  --nx-maxw:      1320px;
  --nx-ease:      cubic-bezier(.22,1,.36,1);
  --nx-font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --nx-font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nx-font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
html { background: var(--nx-bg); color-scheme: dark; }
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, color-mix(in srgb, var(--nx-brand) 9%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, color-mix(in srgb, var(--nx-accent) 5%, transparent), transparent 60%),
    var(--nx-bg) !important;
  color: var(--nx-ink); font-size: 15.5px;
}
body::after { opacity: .6; }
::selection { background: var(--nx-brand); color: #fff; }
h1, h2, h3, h4 { color: var(--nx-ink); font-family: var(--nx-font-display); letter-spacing: -.03em; text-wrap: balance; }
p { color: var(--nx-ink-2); }

/* eyebrow generico (mono + linea luminosa) */
.nx-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--nx-font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--nx-accent); margin-bottom: 22px;
}
.nx-eyebrow::before { content: ""; width: 32px; height: 1px; background: linear-gradient(90deg, var(--nx-accent), transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--nx-accent) 55%, transparent); }
.nx-eyebrow strong { color: var(--nx-ink); font-weight: 600; }

/* ---------- 2. Header di vetro ---------- */
.nx-header { background: linear-gradient(180deg, rgba(5,7,13,.72), rgba(5,7,13,0)); border-bottom-color: transparent; }
.nx-header.pro-shrink {
  background: color-mix(in srgb, var(--nx-bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--nx-line);
}
.nx-header .nx-logo-img { filter: brightness(0) invert(1) !important; height: 28px; opacity: .96; }
.nx-nav__list a, .nx-mega__btn { color: var(--nx-ink-2); font-weight: 500; }
.nx-nav__list a:hover, .nx-mega__btn:hover { color: #fff; }
.nx-header__right .nx-btn--primary { border-radius: 999px; padding: 10px 20px; }
.nx-mega__panel { background: color-mix(in srgb, var(--nx-surf) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 20px; }
.nx-mobile { background: var(--nx-bg); }

/* ---------- 3. Bottoni e card ---------- */
.nx-btn { border-radius: 10px; }
.nx-btn--primary { color: var(--nx-on-brand, #06122a); }
.nx-btn--ghost { background: rgba(255,255,255,.03); border-color: var(--nx-line-2); backdrop-filter: blur(6px); }
.nx-btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--nx-line-3); color: #fff; }
.nx-services__item, .nx-why__item, .nx-process__step, .nx-hub-card, .nx-offer, .nx-post-card, .nxc-div, .nxc-office {
  border-radius: 16px;
  background-color: color-mix(in srgb, var(--nx-surf) 86%, transparent);
  border-color: var(--nx-line);
}
.nx-services__item:hover, .nx-why__item:hover, .nx-process__step:hover { border-color: var(--nx-line-2); }
.nx-section { padding: clamp(84px, 9vw, 132px) 0; }
.nx-section--alt { background: var(--nx-bg-2); border-block: 1px solid var(--nx-line); }
.nx-section-head .nx-kicker { border-radius: 999px; }
.nx-section-head h2 { letter-spacing: -.035em; }

/* ---------- 4. Hero verticale premium ---------- */
.nx-vhero { background: var(--nx-bg); border-bottom-color: var(--nx-line); }
.nx-vhero__scrim { background:
  linear-gradient(100deg, rgba(5,7,13,.95) 0%, rgba(5,7,13,.72) 40%, rgba(5,7,13,.28) 70%, rgba(5,7,13,.1) 100%),
  linear-gradient(180deg, rgba(5,7,13,.4) 0%, transparent 38%, rgba(5,7,13,.92) 84%, var(--nx-bg) 100%); }
.nx-vhero__scrim::after { opacity: .35; }
.nx-vhero__code { border-radius: 999px; background: rgba(255,255,255,.04); }
.nx-vhero h1 { letter-spacing: -.045em; }
.nx-vhero__trust span { color: var(--nx-ink-soft); }
/* hero con globo (verticali) */
.nx-vhero--globe { min-height: max(640px, 92svh); display: flex; align-items: center; padding: 150px 0 110px; }
.nx-vhero--globe .nx-vhero__inner { max-width: 720px; }
.nx-vhero--globe .nx-vhero__bg { opacity: .5; }
.nx-vhero__globe {
  position: absolute; z-index: 1; top: 50%; right: max(-12vw, -240px);
  width: min(96vh, 62vw); aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.nx-vhero__globe .nxg__stage { pointer-events: auto; }
@media (max-width: 980px) {
  .nx-vhero--globe { padding: 120px 0 80px; min-height: auto; }
  .nx-vhero__globe { right: -30vw; top: 40%; width: 118vw; opacity: .55; }
}

/* ---------- 5. GLOBO 3D (.nxg) ---------- */
.nxg { position: relative; margin: 0; isolation: isolate; --nxg-size: 100%; }
.nxg__stage {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  touch-action: pan-y; cursor: default;
}
.nxg[data-nxg*='"interactive":true'] .nxg__stage { cursor: grab; }
.nxg__stage.is-drag { cursor: grabbing; }
.nxg__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.nxg__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .9; transition: opacity 1.2s var(--nx-ease);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 66%); mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 66%);
}
.nxg.is-ready .nxg__poster { opacity: 0; }
.nxg.is-fallback .nxg__poster { opacity: .9 !important; }
.nxg.is-fallback .nxg__canvas, .nxg.is-fallback .nxg__labels { display: none; }
.nxg__orbit {
  position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1;
  transform: translate(-50%,-50%) rotate(-18deg) scaleY(.32);
  border: 1px dashed color-mix(in srgb, var(--nx-accent) 28%, transparent);
  border-radius: 50%; opacity: .55; pointer-events: none;
  animation: nxgOrbit 90s linear infinite;
}
@keyframes nxgOrbit { to { transform: translate(-50%,-50%) rotate(342deg) scaleY(.32); } }
.nxg__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nxg__label {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 5px 9px 5px 18px; margin: -14px 0 0 2px;
  font-family: var(--nx-font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.15;
  color: var(--nx-ink); background: rgba(5,7,13,.62); border: 1px solid var(--nx-line-2); border-radius: 6px;
  backdrop-filter: blur(6px); white-space: nowrap; transition: opacity .25s;
}
.nxg__label::before { content: ""; position: absolute; left: 7px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nxg__label b { font-weight: 600; }
.nxg__label i { font-style: normal; color: var(--nx-ink-soft); font-size: 9px; letter-spacing: .12em; }
.nxg__label--hub { border-color: color-mix(in srgb, var(--nx-accent) 45%, transparent); }
.nxg__label--dc::before { background: var(--nx-live); box-shadow: 0 0 8px var(--nx-live); }
.nxg__label--tp::before { background: var(--nx-violet); box-shadow: 0 0 8px var(--nx-violet); border-radius: 1px; transform: rotate(45deg); }
.nxg__label--red::before { background: var(--nx-onair); box-shadow: 0 0 8px var(--nx-onair); }
.nxg__label--blue::before { background: #3e8bff; box-shadow: 0 0 8px #3e8bff; }
.nxg__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--nx-font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-ink-dim);
  opacity: 0; transition: opacity .6s 1.2s;
}
.nxg.is-ready .nxg__hint { opacity: .8; }
.nxg__stage.is-drag ~ .nxg__hint, .nxg__stage.is-drag .nxg__hint { opacity: 0; }
/* HUD agli angoli */
.nxg__hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.nxg__hud-item {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px; border: 1px solid var(--nx-line); border-radius: 10px;
  background: rgba(5,7,13,.55); backdrop-filter: blur(8px);
  font-family: var(--nx-font-mono); text-transform: uppercase; letter-spacing: .16em;
}
.nxg__hud-item span { font-size: 9.5px; color: var(--nx-ink-dim); }
.nxg__hud-item strong { font-size: 15px; color: var(--nx-ink); font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.nxg__hud-item--0 { left: 14px; top: 14px; }
.nxg__hud-item--1 { right: 14px; top: 14px; text-align: right; }
.nxg__hud-item--2 { left: 14px; bottom: 14px; }
.nxg__hud-item--3 { right: 14px; bottom: 14px; text-align: right; }
.nxg__hud-item::before { content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--nx-accent); opacity: .7; }
.nxg__hud-item--0::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.nxg__hud-item--1::before { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.nxg__hud-item--2::before { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }
.nxg__hud-item--3::before { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
/* legenda e didascalia */
.nxg__legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nxg__legend li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--nx-font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-ink-soft); }
.nxg__key { width: 9px; height: 9px; border-radius: 50%; background: var(--nx-accent); box-shadow: 0 0 8px var(--nx-accent); }
.nxg__key--hub { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-accent) 40%, transparent); }
.nxg__key--pop { background: var(--nx-accent); }
.nxg__key--dc { background: var(--nx-live); border-radius: 2px; box-shadow: none; }
.nxg__key--tp { background: var(--nx-violet); border-radius: 1px; transform: rotate(45deg); box-shadow: none; }
.nxg__key--red { background: var(--nx-onair); box-shadow: 0 0 8px var(--nx-onair); }
.nxg__key--blue { background: #3e8bff; box-shadow: 0 0 8px #3e8bff; }
.nxg__key--arc { width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--nx-accent), var(--nx-brand)); box-shadow: none; }
.nxg__key--warm { width: 18px; height: 2px; border-radius: 2px; background: var(--nx-standby); box-shadow: none; }
.nxg__caption { margin-top: 12px; font-size: 13px; color: var(--nx-ink-soft); line-height: 1.55; }
/* varianti */
.nxg--hero .nxg__stage { aspect-ratio: 1; }
.nxg--hero .nxg__hud { display: none; }
.nxg--full {
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--nx-line); border-radius: 22px;
  background:
    radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--nx-brand) 10%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%),
    var(--nx-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--nx-shadow-lg);
}
.nxg--full .nxg__stage { aspect-ratio: 16 / 10; border-radius: 14px; }
.nxg--full .nxg__orbit { width: 72%; }
.nxg--card .nxg__stage { aspect-ratio: 1; border-radius: 14px; }
@media (max-width: 760px) {
  .nxg--full .nxg__stage { aspect-ratio: 1; }
  .nxg__hud-item--1, .nxg__hud-item--2 { display: none; }
  .nxg__hud-item { padding: 8px 10px; } .nxg__hud-item strong { font-size: 12.5px; } .nxg__hud-item span { font-size: 8.5px; }
  .nxg__label { font-size: 9px; padding: 4px 7px 4px 16px; }
}
/* layout sezione mappa: globo + pannello */
.nx-netmap__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: stretch; }
.nx-netmap__side {
  display: flex; flex-direction: column; gap: 22px; justify-content: space-between;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--nx-line); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 50%), var(--nx-surf);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.nx-netmap__side h3 { font-size: clamp(22px, 2vw, 30px); margin: 0 0 10px; }
.nx-netmap__side p { font-size: 14.5px; line-height: 1.65; color: var(--nx-ink-soft); margin: 0; }
.nx-netmap__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; padding-top: 18px; border-top: 1px solid var(--nx-line); }
.nx-netmap__stat b {
  display: block; font-family: var(--nx-font-display); font-size: clamp(30px, 2.6vw, 42px); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, var(--nx-accent), var(--nx-brand)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.nx-netmap__stat span { display: block; margin-top: 6px; font-family: var(--nx-font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--nx-ink-soft); }
.nx-netmap__hubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nx-netmap__hubs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nx-line); font-family: var(--nx-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-ink-2); }
.nx-netmap__hubs li b { color: var(--nx-ink); font-weight: 600; }
.nx-netmap__hubs li i { font-style: normal; color: var(--nx-ink-dim); }
.nx-netmap__hubs li em { font-style: normal; color: var(--nx-accent); font-variant-numeric: tabular-nums; }
@media (max-width: 1020px) { .nx-netmap__grid { grid-template-columns: 1fr; } }

/* ---------- 6. CATENA DEL SEGNALE (.nxs) ---------- */
.nxs {
  position: relative; margin: 0; overflow: hidden;
  padding: clamp(14px, 2vw, 26px) clamp(10px, 1.6vw, 22px) 0;
  border: 1px solid var(--nx-line); border-radius: 22px;
  background:
    radial-gradient(70% 80% at 50% 50%, color-mix(in srgb, var(--nx-brand) 7%, transparent), transparent 70%),
    linear-gradient(var(--nx-line) 1px, transparent 1px), linear-gradient(90deg, var(--nx-line) 1px, transparent 1px),
    var(--nx-bg);
  background-size: auto, 44px 44px, 44px 44px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--nx-shadow-lg);
}
.nxs__svg { display: block; width: 100%; height: auto; overflow: visible; }
.nxs__glow { fill: none; stroke-width: 9; stroke-linecap: round; opacity: .12; filter: blur(2px); }
.nxs__glow--red { stroke: var(--nx-onair); } .nxs__glow--blue { stroke: #3e8bff; } .nxs__glow--sat { stroke: var(--nx-violet); } .nxs__glow--cdn { stroke: var(--nx-accent); }
.nxs__path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 7 11; animation: nxsFlow 1.1s linear infinite; opacity: .85; }
.nxs__path--red { stroke: var(--nx-onair); } .nxs__path--blue { stroke: #3e8bff; }
.nxs__path--sat { stroke: var(--nx-violet); stroke-dasharray: 3 9; animation-duration: 1.6s; } .nxs__path--cdn { stroke: var(--nx-accent); }
@keyframes nxsFlow { to { stroke-dashoffset: -18; } }
.nxs__pkt { filter: url(#nxs-glow); }
.nxs__pkt--red { fill: #fff; stroke: var(--nx-onair); stroke-width: 1.5; } .nxs__pkt--blue { fill: #fff; stroke: #3e8bff; stroke-width: 1.5; }
.nxs__pkt--sat { fill: var(--nx-violet); } .nxs__pkt--cdn { fill: var(--nx-accent); }
.nxs__halo { fill: var(--nx-accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.nxs__node { fill: rgba(8,11,20,.95); stroke: var(--nx-line-3); stroke-width: 1.3; transition: stroke .35s, filter .35s; }
.nxs__icon { fill: none; stroke: var(--nx-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.nxs__lab { font-family: var(--nx-font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; fill: var(--nx-ink); }
.nxs__sub { font-family: var(--nx-font-mono); font-size: 10px; letter-spacing: .08em; fill: var(--nx-ink-dim); }
.nxs__tag { font-family: var(--nx-font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; fill: var(--nx-ink-dim); }
.nxs__tag--red { fill: var(--nx-onair); } .nxs__tag--blue { fill: #6ea6ff; } .nxs__tag--sat { fill: var(--nx-violet); } .nxs__tag--cdn { fill: var(--nx-accent); }
.nxs__stage.is-on .nxs__node { stroke: var(--nx-accent); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--nx-accent) 60%, transparent)); }
.nxs__stage.is-on .nxs__icon { stroke: var(--nx-accent); }
.nxs__stage.is-on .nxs__halo { animation: nxsHalo 2.4s var(--nx-ease) infinite; }
.nxs__stage--mcr .nxs__node { stroke: var(--nx-line-3); stroke-width: 2; }
@keyframes nxsHalo { 0% { opacity: .35; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.5); } }
.nxs__bar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 10px calc(-1 * clamp(10px, 1.6vw, 22px)) 0; padding: 12px clamp(14px, 2vw, 24px);
  border-top: 1px solid var(--nx-line); background: rgba(255,255,255,.02);
  font-family: var(--nx-font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--nx-ink-soft);
}
.nxs__led { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-onair); box-shadow: 0 0 10px var(--nx-onair); animation: nxsBlink 1.4s ease-in-out infinite; }
@keyframes nxsBlink { 50% { opacity: .35; } }
.nxs__tc { margin-inline-start: auto; color: var(--nx-ink); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
@media (max-width: 760px) {
  .nxs__bar { gap: 12px; font-size: 9.5px; } .nxs__tc { margin-inline-start: 0; }
  .nxs__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin: 0 calc(-1 * clamp(10px, 1.6vw, 22px)); padding: 0 clamp(10px, 1.6vw, 22px); }
  .nxs__svg { min-width: 720px; }
}

/* ---------- 7. MULTIVIEWER MCR (.nxmv) ---------- */
.nxmv {
  position: relative; overflow: hidden;
  border: 1px solid var(--nx-line-2); border-radius: 18px;
  background: #04060b; box-shadow: var(--nx-shadow-lg), inset 0 1px 0 rgba(255,255,255,.05);
  font-family: var(--nx-font-mono); text-transform: uppercase; letter-spacing: .14em;
}
.nxmv__top, .nxmv__foot { display: flex; align-items: center; gap: 18px; padding: 11px 16px; font-size: 10px; color: var(--nx-ink-soft); background: rgba(255,255,255,.025); }
.nxmv__top { border-bottom: 1px solid var(--nx-line); } .nxmv__foot { border-top: 1px solid var(--nx-line); flex-wrap: wrap; }
.nxmv__title { color: var(--nx-ink); font-weight: 600; }
.nxmv__ptp { display: inline-flex; align-items: center; gap: 6px; color: var(--nx-live); }
.nxmv__ptp i, .nxmv__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-live); box-shadow: 0 0 8px var(--nx-live); display: inline-block; margin-inline-end: 6px; }
.nxmv__tc { margin-inline-start: auto; color: var(--nx-ink); font-variant-numeric: tabular-nums; font-size: 11px; }
.nxmv__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: #000; }
.nxmv__tile {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px;
  background: var(--img) center / cover no-repeat, #0a0d14;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .3s;
}
.nxmv__tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 40%, rgba(0,0,0,.55)); }
.nxmv__tile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.14) 2px 3px); mix-blend-mode: multiply; pointer-events: none; }
.nxmv__id { position: absolute; left: 8px; top: 7px; font-size: 9px; color: #fff; background: rgba(0,0,0,.55); padding: 3px 6px; border-radius: 3px; z-index: 2; }
.nxmv__fmt { position: absolute; left: 8px; bottom: 7px; font-size: 8.5px; color: var(--nx-ink-2); z-index: 2; letter-spacing: .1em; }
.nxmv__tally { position: absolute; right: 8px; top: 7px; font-size: 9px; font-weight: 700; color: #fff; background: var(--nx-onair); padding: 3px 7px; border-radius: 3px; z-index: 2; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; box-shadow: 0 0 14px var(--nx-onair); }
.nxmv__tile.is-air { outline-color: var(--nx-onair); }
.nxmv__tile.is-air .nxmv__tally { opacity: 1; transform: none; animation: nxsBlink 1.2s ease-in-out infinite; }
.nxmv__meter { position: absolute; right: 8px; bottom: 7px; height: 44%; width: 10px; display: flex; gap: 2px; align-items: flex-end; z-index: 2; }
.nxmv__meter i { display: block; width: 4px; height: 40%; border-radius: 1px; background: linear-gradient(0deg, var(--nx-live) 0 60%, var(--nx-standby) 60% 85%, var(--nx-onair) 85%); background-size: 100% 220%; background-position: 0 100%; transition: height .12s linear; opacity: .9; }
.nxmv__meter i.is-hot { box-shadow: 0 0 8px var(--nx-onair); }
@media (max-width: 760px) { .nxmv__grid { grid-template-columns: repeat(2, 1fr); } .nxmv__top, .nxmv__foot { gap: 10px; font-size: 9px; } }

/* layout sezione broadcast: catena + copy + wall */
.nx-bcast { position: relative; overflow: hidden; }
.nx-bcast__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; margin-top: 22px; }
.nx-bcast__copy h3 { font-size: clamp(26px, 2.6vw, 40px); margin: 0 0 14px; letter-spacing: -.035em; }
.nx-bcast__copy p { color: var(--nx-ink-soft); font-size: 15.5px; line-height: 1.65; }
.nx-bcast__specs { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.nx-bcast__specs li { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(255,255,255,.025); }
.nx-bcast__specs b { font-family: var(--nx-font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--nx-ink); }
.nx-bcast__specs span { font-family: var(--nx-font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-ink-dim); }
@media (max-width: 1020px) { .nx-bcast__grid { grid-template-columns: 1fr; } }

/* ---------- 8. Strip numeri generica ---------- */
.nx-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--nx-line); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.nx-strip__item { padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.6vw, 36px); border-inline-end: 1px solid var(--nx-line); }
.nx-strip__item:last-child { border-inline-end: 0; }
.nx-strip__n { display: block; font-family: var(--nx-font-display); font-size: clamp(30px, 3.4vw, 50px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.nx-strip__n em { font-style: normal; background: linear-gradient(120deg, var(--nx-accent), var(--nx-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-strip__l { display: block; margin-top: 8px; font-family: var(--nx-font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-ink-soft); }
@media (max-width: 760px) { .nx-strip { grid-template-columns: repeat(2, 1fr); } .nx-strip__item:nth-child(2) { border-inline-end: 0; } .nx-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--nx-line); } }

/* ---------- 9. Pannelli "hub" con orologio locale ---------- */
.nx-hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.nx-hub {
  position: relative; overflow: hidden; padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--nx-line); border-radius: 20px;
  background: linear-gradient(var(--nx-line) 1px, transparent 1px), linear-gradient(90deg, var(--nx-line) 1px, transparent 1px), var(--nx-surf);
  background-size: 40px 40px, 40px 40px, auto;
  transition: transform .3s var(--nx-ease), border-color .3s;
}
.nx-hub::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 0%, transparent 20%, var(--nx-surf) 100%); pointer-events: none; }
.nx-hub > * { position: relative; }
.nx-hub:hover { transform: translateY(-4px); border-color: var(--nx-line-3); }
.nx-hub__clock { position: absolute; top: 0; right: 0; font-family: var(--nx-font-mono); font-size: 12px; letter-spacing: .14em; color: var(--nx-accent); font-variant-numeric: tabular-nums; }
.nx-hub__city { font-family: var(--nx-font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--nx-ink); display: flex; align-items: center; gap: 12px; }
.nx-hub__city::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nx-live); box-shadow: 0 0 10px var(--nx-live); }
.nx-hub__role { margin-top: 10px; font-family: var(--nx-font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-ink-soft); }
.nx-hub__name { margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--nx-ink-2); }
.nx-hub__addr { margin-top: 6px; font-style: normal; font-size: 14px; line-height: 1.6; color: var(--nx-ink-soft); }
.nx-hub__coords { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--nx-line); font-family: var(--nx-font-mono); font-size: 11px; letter-spacing: .14em; color: var(--nx-ink-dim); }
@media (max-width: 980px) { .nx-hubs { grid-template-columns: 1fr; } }

/* ---------- 10. Footer ---------- */
.nx-footer { background: #04060b !important; }
.nx-footer__certs { background: rgba(255,255,255,.015); }
.nx-cert-chip { border-radius: 999px; }

/* ---------- 11. Motion safety / stampa ---------- */
@media (prefers-reduced-motion: reduce) {
  .nxg__orbit, .nxs__path, .nxs__led, .nxmv__tally, .nxs__halo { animation: none !important; }
  .nxg__poster { transition: none; }
}
@media print { .nxg__canvas, .nxg__orbit, .nxg__hud { display: none; } .nxg__poster { opacity: 1; } }

/* ---------- 12. v6.0.1 — enfasi nei titoli di sezione (verticali) e spaziatura hero ---------- */
.nx-section-head h2 em, .nx-vband h2 em, .nx-netmap__side h3 em, .nx-bcast__copy h3 em, .nx-strip__n em {
  font-style: normal;
  background: linear-gradient(110deg, var(--nx-accent) 0%, var(--nx-brand) 60%, #fff 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-vhero__trust + * { margin-top: 26px; }
.nx-vhero__trust { row-gap: 10px; }

/* ---------- 13. v6.0.1 — hero verticali con globo: scala titolo e larghezza colonna ---------- */
.nx-vhero--globe .nx-vhero__inner { max-width: 780px; }
.nx-vhero--globe h1 { font-size: clamp(42px, 5.4vw, 78px); letter-spacing: -.04em; line-height: .98; max-width: 14ch; }
.nx-vhero--globe .nx-vhero__sub { font-size: clamp(16px, 1.3vw, 19px); max-width: 620px; }
@media (max-width: 680px) { .nx-vhero--globe h1 { font-size: clamp(36px, 10.5vw, 52px); max-width: none; } }

/* ---------- 14. SAN SIRO 3D (.nxs3d) ---------- */
.nxs3d { position: relative; margin: 0; isolation: isolate; }
.nxs3d__stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.nxs3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.nxs3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 1; transition: opacity 1.4s var(--nx-ease); filter: saturate(.95) brightness(.92); }
.nxs3d.is-ready:not(.is-debug) .nxs3d__poster { opacity: 0; }
.nxs3d.is-fallback .nxs3d__poster { opacity: 1 !important; }
.nxs3d.is-fallback .nxs3d__canvas { display: none; }
.nxs3d--hero, .nxs3d--hero .nxs3d__stage { position: absolute; inset: 0; }
.nxs3d--full .nxs3d__stage { aspect-ratio: 16 / 9; border-radius: 22px; border: 1px solid var(--nx-line); }
.nxs3d__caption { margin-top: 12px; font-size: 13px; color: var(--nx-ink-soft); }
