/* Guida della Live Map (utente, 05/12/2026): stesso stile della mappa, vetro scuro, colori dei tipi e dei TG */
:root {
  --bg: #0b1017; --bg2: #0f1621; --glass: rgba(14, 20, 29, .72); --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .14);
  --text: #e8edf3; --muted: #93a0b0; --accent: #4c8dff; --accent2: #7fb0ff;
  --rpt: #ffb020; --hs: #22d3ee; --hsd: #34d399; --app: #a78bfa; --chk: #94a3b8; --air: #ff4d4f; --name: #ffd166;
  --st: #3ddc84; --dy: #ff4fd8; --ff: #8f86ff; --priv: #ff8fa3; --ts1: #4cc3ff; --ts2: #ff9f43;
  --radius: 14px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --toc-w: 290px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16.5px; line-height: 1.62; -webkit-text-size-adjust: 100%; }
/* la carta scura dietro, appena accennata, come sotto le finestre della mappa */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(76, 141, 255, .13), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 176, 32, .07), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(255, 79, 216, .07), transparent 60%),
    var(--bg); }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, kbd, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; }
kbd { display: inline-block; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line2); border-bottom-width: 2px; background: rgba(255,255,255,.06); font-size: .82em; line-height: 1.6; }
code { background: rgba(255,255,255,.07); padding: 1px 5px; border-radius: 5px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }

/* ---------- barra in alto ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  background: rgba(11, 16, 23, .82); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.top .logo { width: 38px; height: 38px; border-radius: 22%; box-shadow: 0 2px 8px rgba(0,0,0,.45); flex: none; }
.top .t { min-width: 0; flex: 1; line-height: 1.2; }
.top .t b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .t b .lm { color: var(--accent2); }
.top .t small { color: var(--muted); font-size: 12px; }
.top .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line2);
  background: rgba(255,255,255,.05); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.top .btn:hover { background: rgba(76,141,255,.16); border-color: rgba(76,141,255,.6); text-decoration: none; }
.top .btn.primary { background: rgba(76,141,255,.22); border-color: rgba(76,141,255,.7); }
#toc-btn { display: none; }

/* ---------- impaginazione: indice a sinistra, testo a destra ---------- */
.wrap { display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr); gap: 34px; max-width: 1320px; margin: 0 auto; padding: 26px 22px 80px; }
nav.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding: 14px 10px 14px 14px; font-size: 13.5px; }
nav.toc h2 { margin: 0 0 8px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); }
nav.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
nav.toc > ol > li { counter-increment: s; }
nav.toc a { display: block; padding: 4px 8px; border-radius: 8px; color: var(--text); opacity: .82; line-height: 1.35; }
nav.toc > ol > li > a::before { content: counter(s) "."; display: inline-block; width: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* voce su due righe (06/12/2026): la seconda riga parte sotto il testo, non sotto il numero */
nav.toc > ol > li > a { padding-left: 32px; text-indent: -24px; }
nav.toc ol ol { margin: 1px 0 4px 24px; font-size: 12.8px; }
nav.toc ol ol a { opacity: .66; padding: 2px 8px; }
nav.toc a:hover { background: rgba(255,255,255,.06); text-decoration: none; opacity: 1; }
nav.toc a.on { background: rgba(76,141,255,.18); color: #fff; opacity: 1; box-shadow: inset 2px 0 0 var(--accent); }
main { min-width: 0; }

/* ---------- copertina ---------- */
.hero { position: relative; overflow: hidden; padding: 30px 30px 26px; margin-bottom: 26px; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, .25), rgba(255, 79, 216, 0) 65%); pointer-events: none; }
.hero .kick { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--muted);
  padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,.05); }
.hero .kick .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); box-shadow: 0 0 0 4px rgba(61,220,132,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } }
.hero h1 { margin: 12px 0 6px; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.5px; }
.hero h1 span { background: linear-gradient(90deg, #7fb0ff, #ff4fd8 60%, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0; font-size: 18px; color: #cdd6e1; max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.steps div { padding: 13px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.steps > div > b:first-child { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 15px; }
.steps > div > b > i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 800;
  color: #0b1017; background: var(--name); }

/* ---------- sezioni ---------- */
section.s { margin: 0 0 22px; padding: 26px 28px 22px; }
section.s > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 25px; line-height: 1.2; letter-spacing: -.2px; }
section.s > h2 .n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-size: 16px; font-weight: 800; color: #0b1017;
  background: var(--c, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); }
section.s > .sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
h3 { margin: 26px 0 8px; font-size: 18.5px; color: #fff; display: flex; align-items: center; gap: 9px; }
h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--c, var(--accent)); }
h4 { margin: 18px 0 6px; font-size: 15.5px; color: #dfe6ee; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 3px 0; }
li::marker { color: var(--muted); }
strong, b { color: #fff; }
.muted { color: var(--muted); }

/* ---------- riquadri ---------- */
.kid { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 209, 102, .12), rgba(255, 209, 102, .04)); border: 1px solid rgba(255, 209, 102, .28); }
.kid .ic { flex: none; font-size: 26px; line-height: 1; }
.kid p:last-child { margin-bottom: 0; }
.kid b.t { display: block; color: var(--name); font-size: 13px; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 2px; }
.tip, .warn, .note { margin: 14px 0; padding: 12px 15px 12px 44px; border-radius: 12px; position: relative; font-size: 15px; }
.tip::before, .warn::before, .note::before { position: absolute; left: 14px; top: 11px; font-size: 18px; }
.tip { background: rgba(61, 220, 132, .08); border: 1px solid rgba(61, 220, 132, .3); } .tip::before { content: "💡"; }
.warn { background: rgba(255, 77, 79, .08); border: 1px solid rgba(255, 77, 79, .32); } .warn::before { content: "⚠️"; }
.note { background: rgba(76, 141, 255, .08); border: 1px solid rgba(76, 141, 255, .3); } .note::before { content: "ℹ️"; }
/* premessa nella testata: per chi è alle prime armi e per gli esperti */
.note.hello { margin: 18px 0 4px; max-width: 860px; background: rgba(255, 196, 61, .08); border-color: rgba(255, 196, 61, .35); }
.note.hello::before { content: "🤝"; }
.note.hello p + p { margin-top: 8px; }
.tip p:last-child, .warn p:last-child, .note p:last-child { margin: 0; }

/* figure */
figure { margin: 16px 0 18px; }
figure .shot { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: #0b1017; box-shadow: 0 12px 34px rgba(0,0,0,.45); cursor: zoom-in; }
figure .shot img { display: block; width: 100%; height: auto; }
figure.narrow .shot { max-width: 420px; margin: 0 auto; }
figure.mid .shot { max-width: 640px; margin: 0 auto; }
figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; align-items: start; }
.figs figure { margin: 0; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 18px 0; }
.phones figure { margin: 0; }
.phones .shot { border-radius: 22px; border: 3px solid #222c3a; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.5); }
/* numeri sulle figure */
.pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 800; color: #0b1017; background: var(--name); border: 2px solid #0b1017; box-shadow: 0 0 0 3px rgba(255, 209, 102, .35), 0 4px 10px rgba(0,0,0,.5); pointer-events: none; }
.legend-n { counter-reset: n; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 6px 18px; }
.legend-n li { display: flex; gap: 10px; align-items: baseline; }
.legend-n li > i { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; color: #0b1017; background: var(--name); }

/* tabelle */
.tw { overflow-x: auto; margin: 12px 0 16px; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; padding: 9px 12px; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }

/* ---------- pezzi dell'interfaccia rifatti in piccolo, per spiegarli ---------- */
.ui { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.chip { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: 12.5px; font-weight: 800; color: #0b1017; line-height: 1.55; vertical-align: 1px; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.06);
  text-transform: uppercase; letter-spacing: .6px; vertical-align: middle; white-space: nowrap; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #6b7785; }
.conn.ok i { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); } .conn.ok { color: #c9f5dc; }
.conn.bad i { background: var(--air); box-shadow: 0 0 0 3px rgba(255,77,79,.2); } .conn.bad { color: #ffc9c9; }
.conn.wait i { background: var(--name); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.states { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; margin: 12px 0 16px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; background: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 25%, transparent); }
.sw.sq { border-radius: 4px; }
.ts { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #0b1017; line-height: 1.5; vertical-align: 1px; }
.ts.t1 { background: var(--ts1); } .ts.t2 { background: var(--ts2); }
.pill { display: inline-block; padding: 0 8px; border-radius: 20px; font-size: 12.5px; font-weight: 700; border: 1.5px solid currentColor; line-height: 1.45; vertical-align: 1px; }
.pill.st { color: var(--st); } .pill.dy { color: var(--dy); }
.fftag { display: inline-block; font-size: 12px; font-weight: 700; color: #c9c3ff; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(150, 140, 255, .55); background: rgba(120, 110, 255, .14); vertical-align: 1px; }
.btnx { display: inline-block; padding: 1px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1px solid var(--line2); background: rgba(255,255,255,.06); vertical-align: 1px; white-space: nowrap; }
.btnx.ffb { color: #c9c3ff; border-color: rgba(150, 140, 255, .55); text-transform: uppercase; font-size: 11px; letter-spacing: .5px; }
.btnx.on { background: rgba(76,141,255,.24); border-color: rgba(76,141,255,.7); }
.btnx.ffb.on { color: #e4e0ff; background: rgba(120, 110, 255, .28); border-color: rgba(150, 140, 255, .7); }
.callsign { font-weight: 800; color: #fff; } .opname { color: var(--name); font-weight: 600; }
/* banner rifatto (TG impegnati) */
.mock { max-width: 360px; margin: 14px auto; padding: 8px; border-radius: 14px; background: rgba(14,20,29,.85); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; }
.mock .g { border-radius: 10px; background: rgba(255,255,255,.04); padding: 6px 0 4px; margin: 6px 0; }
.mock .g.ff { background: rgba(120,110,255,.20); box-shadow: inset 0 0 0 1px rgba(150,140,255,.30); }
.mock .g.priv { background: rgba(255,110,140,.17); box-shadow: inset 0 0 0 1px rgba(255,143,163,.32); }
.mock .h { display: flex; align-items: center; gap: 7px; padding: 0 10px 4px 12px; border-left: 3px solid var(--c); margin-left: 0; font-weight: 600; }
.mock .h .cnt { margin-left: auto; display: flex; gap: 4px; }
.mock .r { display: grid; grid-template-columns: 1fr auto; padding: 2px 12px 2px 14px; line-height: 1.35; }
.mock .r .tm { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.mock .r .v { color: var(--muted); font-size: 12.5px; }
/* icone dei device */
.icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 14px 0; }
.icons > div { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.icons .gl { flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.gi { width: 34px; height: 34px; image-rendering: auto; }
.gi.off { width: 26px; height: 26px; filter: grayscale(1) brightness(.8); opacity: .65; }
.g-rpt { width: 30px; height: 30px; border-radius: 8px; background: var(--k, var(--rpt)); display: grid; place-items: center; color: #3a2600; font-size: 17px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--k, var(--rpt)) 18%, transparent); }
.g-rpt.off { background: #59626e; color: #2a3038; box-shadow: none; }
.g-hs { width: 28px; height: 28px; border-radius: 50%; background: var(--k, var(--hs)); display: grid; place-items: center; color: #062a33; font-weight: 900; font-size: 16px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--k, var(--hs)) 18%, transparent); }
.g-hs sub { font-size: 9px; margin-left: -1px; }
.g-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--k, var(--app)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k, var(--app)) 22%, transparent); }
.g-cl { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: color-mix(in srgb, var(--k, var(--hs)) 30%, #0b1017); border: 2.5px solid var(--k, var(--hs)); }
.g-air { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--k, var(--dy)); }
.g-air::before, .g-air::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--k, var(--dy)); opacity: .5; animation: ring 2s infinite; }
.g-air::after { animation-delay: 1s; }
@keyframes ring { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.4); opacity: 0; } }
.g-ring { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--k); }

/* glossario e domande */
dl.gl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 8px 18px; margin: 10px 0; }
dl.gl dt { font-weight: 800; color: #fff; }
dl.gl dd { margin: 0; color: #d3dbe5; }
details { margin: 8px 0; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
details summary { cursor: pointer; padding: 11px 14px; font-weight: 700; list-style: none; display: flex; gap: 10px; align-items: baseline; }
details summary::before { content: "＋"; color: var(--accent2); font-weight: 800; }
details[open] summary::before { content: "－"; }
details summary::-webkit-details-marker { display: none; }
details > div { padding: 0 16px 12px 38px; }

/* fondo pagina */
.foot { margin-top: 26px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.foot b { color: var(--text); }
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 15; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px;
  color: var(--text); background: var(--glass); border: 1px solid var(--line2); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.on { opacity: 1; pointer-events: auto; }

/* ingrandimento delle figure */
.lb { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 3vh 3vw; background: rgba(4, 7, 11, .9); cursor: zoom-out; opacity: 0; pointer-events: none; transition: opacity .18s; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.lb p { position: absolute; bottom: 2vh; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px; }

/* ---------- telefono ---------- */
@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 12px 70px; }
  #toc-btn { display: inline-flex; }
  nav.toc { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); max-height: none; border-radius: 0 18px 18px 0;
    transform: translateX(-104%); transition: transform .25s ease; padding-top: 18px; font-size: 15px; background: rgba(11, 16, 23, .97); }
  nav.toc a { padding: 7px 10px; }
  nav.toc > ol > li > a { padding-left: 34px; }
  body.toc-open nav.toc { transform: none; }
  body.toc-open::after { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.5); }
  .top { padding: 8px 10px; gap: 8px; }
  .top .t small, .top .t b .dm { display: none; }
  .top .btn { padding: 7px 10px; }
  .top .btn .lbl { display: none; }
  .hero { padding: 22px 18px 18px; }
  .steps { grid-template-columns: 1fr; }
  section.s { padding: 20px 16px 16px; border-radius: 16px; }
  section.s > h2 { font-size: 21px; }
  body { font-size: 16px; }
  .pin { width: 22px; height: 22px; font-size: 11.5px; }
  dl.gl { grid-template-columns: 1fr; gap: 2px 0; } dl.gl dd { margin-bottom: 8px; }
  td:first-child { white-space: normal; }
}
@media print {
  .top, nav.toc, .totop { display: none; } .wrap { display: block; } body::before { display: none; }
  section.s { break-inside: avoid-page; }
}

/* sito di riferimento generale in testata (utente, 05/12/2026) */
.site-ref { margin: 14px 0 0; font-size: 16px; color: #cdd6e1; }
.site-ref a b { color: var(--accent2); }
/* logo: ricarica forzata come sulla mappa, l'equivalente di Ctrl+Shift+R (utente, 05/12/2026) */
.logo-btn { flex: none; display: block; padding: 0; margin: 0; border: 0; background: none; border-radius: 22%; line-height: 0; cursor: pointer; }
.logo-btn:hover .logo { box-shadow: 0 0 0 3px rgba(76, 141, 255, .45); }
.logo-btn.spin .logo { animation: logospin .8s linear infinite; }
@keyframes logospin { to { transform: rotate(360deg); } }
