/* AirDevs · stile del sito, preso dal kit grafico delle app (ui-kit/airdevs.slint):
   accento #5865f2, verde #23a55a, rosso #da373c, angoli 6 px (pulsanti) e 10 px (riquadri).
   Tema chiaro o scuro come il sistema (prefers-color-scheme), uguale in tutte le sezioni. */
:root {
  --accent: #5865f2; --accent-hover: #4752c4; --accent-pressed: #3c45a5; --accent-soft: #eef0fe; --accent-line: #cfd3fb;
  --accent-text: #4752c4;
  --green: #23a55a; --green-soft: #e6f6ec; --green-ink: #17773f;
  --amber: #f0b132; --amber-soft: #fdf3dd; --amber-ink: #8a5d05;
  --red: #da373c; --red-soft: #fbe7e8; --red-ink: #a3262a;
  --yellow: #e6bd35;
  --bg: #ffffff; --panel: #f5f6f8; --ink: #17181c; --muted: #5d606b; --line: #dcdee4;
  --neutral: rgba(23, 24, 28, .07); --neutral-hover: rgba(23, 24, 28, .13); --neutral-pressed: rgba(23, 24, 28, .19);
  --glass: rgba(255, 255, 255, .88); --grid: rgba(23, 24, 28, .06);
  /* mappa di esempio (mock): colori che seguono il tema */
  --mock-bg: #f7f8fa; --mock-bar: #eceef2; --mock-node: #ffffff; --mock-grid: #e7e9ef; --mock-line: #c9ccd6; --mock-link: #a3a7b5; --mock-dim: #6b6e7a; --mock-text: #17181c;
  --topbar-h: 60px;
  --radius: 6px; --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(17,18,24,.06);
  --font: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
/* il sito segue il tema del sistema o del browser: chiaro o scuro, ovunque e in ogni sezione */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181c; --panel: #1f2026; --ink: #ececf1; --muted: #a4a7b0; --line: #2f3139;
    --accent-soft: #23264a; --accent-line: #3a4180; --accent-text: #9aa2ff;
    --green-soft: #173726; --green-ink: #6fd69b; --amber-soft: #3a2f14; --amber-ink: #f3c967; --red-soft: #3d1c1e; --red-ink: #f08b8e;
    --neutral: rgba(236,236,241,.08); --neutral-hover: rgba(236,236,241,.14); --neutral-pressed: rgba(236,236,241,.2);
    --glass: rgba(23, 24, 28, .88); --grid: rgba(255, 255, 255, .04);
    --mock-bg: #0f1014; --mock-bar: #1a1c23; --mock-node: #1c1e26; --mock-grid: #1d1f27; --mock-line: #2f3240; --mock-link: #3d4152; --mock-dim: #8b8f99; --mock-text: #ececf1;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.8px; }
h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.4px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: var(--radius); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── pulsanti: stesso Btn delle app (32 px, angoli 6, testo 600) ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  border: 0; border-radius: var(--radius); background: var(--neutral); color: var(--ink); font: 600 14px/1 var(--font);
  cursor: pointer; transition: background .09s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--neutral-hover); }
.btn:active { background: var(--neutral-pressed); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-pressed); }
/* vuoto: sfondo della scheda, bordo d'accento, testo nel colore del testo (bianco nel tema scuro) */
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-outline:active { background: var(--accent-line); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .45; cursor: default; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; letter-spacing: .3px; background: var(--neutral); color: var(--muted); }
.tag.ok { background: var(--green-soft); color: var(--green-ink); }
.tag.wip { background: var(--amber-soft); color: var(--amber-ink); }
.tag.no { background: var(--red-soft); color: var(--red-ink); }

/* ─── barra in alto ─── */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: calc(var(--topbar-h) - 1px); } /* + 1 px di bordo = --topbar-h */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.2px; text-decoration: none !important; }
.topbar nav { display: flex; align-items: center; gap: 4px; }
.topbar nav a:not(.btn) { color: var(--muted); padding: 8px 12px; border-radius: var(--radius); font-weight: 600; font-size: 14px; text-decoration: none; }
.topbar nav a:not(.btn):hover, .topbar nav a[aria-current] { color: var(--ink); background: var(--neutral); }
.topbar nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .topbar nav { display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .topbar nav.open { display: flex; }
  .topbar nav .btn { margin: 8px 0 0; }
}

/* ─── sezioni ─── */
/* La prima schermata di ogni pagina occupa tutto lo schermo sotto la barra in alto. */
.hero { background: var(--bg); color: var(--ink); padding: 56px 0; position: relative; overflow: hidden;
  min-height: calc(100svh - var(--topbar-h)); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }
.hero > .wrap { position: relative; }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-text); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.pill { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px 16px; min-width: 200px; flex: 1; }
.pill b { display: block; font-size: 15px; } .pill span { font-size: 13px; color: var(--muted); }
/* pagine senza hero (404, attesa del download): anche qui un'unica schermata piena */
.section-full { min-height: calc(100svh - var(--topbar-h)); display: flex; align-items: center; }

.section { padding: 72px 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section.dark { background: var(--panel); color: var(--ink); }
.section.dark .muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .lead { color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.with-side { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 980px) { .with-side { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.section.alt .card { background: var(--bg); }
.card.accent { background: var(--accent-soft); border-color: var(--accent-line); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card ul { padding-left: 18px; margin: 8px 0 0; } .card li { margin-bottom: 3px; }

/* prodotti in home */

/* passi */
.steps { counter-reset: n; display: grid; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before { counter-increment: n; content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.step p { margin: 3px 0 0; color: var(--muted); }

/* schema Suite (come nella presentazione) */
.schema { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; color: var(--ink); }
.schema .srv { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 14px; text-align: center; }
.schema .srv b { display: block; } .schema .srv span { font-size: 12.5px; color: var(--muted); }
.schema .links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; position: relative; }
.schema .links div { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 10px; font-size: 12.5px; color: var(--muted); text-align: center; position: relative; }
.schema .links div b { display: block; color: var(--ink); font-size: 13.5px; }
.schema .links div::before { content: ""; position: absolute; left: 50%; top: -15px; height: 14px; border-left: 2px dashed var(--mock-link); }

/* mockup della mappa di LanExpert: segue il tema del sistema */
.mock { background: var(--mock-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--mock-bar); border-bottom: 1px solid var(--line); align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--mock-line); }
.mock-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.mock svg { display: block; width: 100%; height: auto; }
.m-grid { stroke: var(--mock-grid); } .m-lan { stroke: var(--mock-line); } .m-link { stroke: var(--mock-link); }
.m-node { fill: var(--mock-node); } .m-screen { fill: var(--mock-bar); } .m-pc { stroke: var(--mock-dim); }
.m-text { fill: var(--mock-text); } .m-ink { stroke: var(--mock-text); } .m-dim { fill: var(--mock-dim); } .m-dimfill { fill: var(--mock-dim); }

/* edizioni e piani */
.price { margin: 6px 0 16px; } .price b { font-size: 30px; letter-spacing: -.5px; display: block; } .price span { font-size: 13px; color: var(--muted); }
.edition, .plan { display: flex; flex-direction: column; }
.edition .btn, .plan .btn { margin-top: auto; }
.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .3px; }
.checks { list-style: none; padding: 0 !important; margin: 0 0 20px !important; }
.checks li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.checks .yes svg { color: var(--green); } .checks .no { color: var(--muted); } .checks .no svg { color: var(--red); }

/* download */
.dl-os { display: flex; flex-direction: column; gap: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; background: var(--panel); }

/* pagina intermedia di download */
.wait { max-width: 760px; margin: 0 auto; text-align: center; }
.wait .card { text-align: left; }
.countdown { font-size: 15px; margin: 16px 0; }
.bar { height: 6px; border-radius: 3px; background: var(--neutral); overflow: hidden; margin: 10px 0 18px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .25s ease-out; }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.meta dt { color: var(--muted); } dl.meta dd { margin: 0; word-break: break-all; }

/* ruoli Suite */
.role.soon { opacity: .7; }
.role-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }

/* spazi pubblicitari */
.ad { position: relative; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 26px 18px 16px; margin: 32px 0; min-height: 120px; }
.ad-label { position: absolute; top: 7px; left: 12px; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.with-side .ad { margin: 0; position: sticky; top: 80px; }

/* modulo */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--red); }
/* campi minimali: stesso sfondo di ciò che hanno intorno, solo una linea sotto */
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: 15px var(--font); }
select option { background: var(--bg); color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 20px; background: var(--neutral); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.alert.ok { background: var(--green-soft); color: var(--green-ink); } .alert.err { background: var(--red-soft); color: var(--red-ink); }
.alert:empty { display: none; }

/* testi legali */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin-top: 36px; } .legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; }
.note-box { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-lg); padding: 14px 18px; font-size: 14px; }

/* footer */
.footer { background: var(--panel); color: var(--muted); border-top: 1px solid var(--line); padding: 56px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer a, .footer .linklike { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; }
.footer a:hover, .footer .linklike:hover { color: var(--ink); }
.footer .brand { margin-bottom: 10px; color: var(--ink); }
.footer .muted { color: var(--muted); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.footer-legal a { display: inline; padding: 0; color: var(--accent-text); font-size: inherit; }

/* ─── banner cookie ─── */
.cc-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 22px 24px 20px; }
.cc-banner h2 { font-size: 18px; margin: 0 32px 8px 0; }
.cc-banner p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.cc-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: var(--radius); border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.cc-close:hover { background: var(--neutral); color: var(--ink); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-actions .btn { flex: 1 1 160px; }
.cc-modal { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.cc-dialog { position: relative; background: var(--bg); color: var(--ink); border-radius: 12px; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.cc-dialog h2 { font-size: 20px; margin-right: 32px; }
.cc-cat { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-cat p { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--neutral-pressed); border-radius: 12px; transition: background .12s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .12s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .6; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-actions-modal { margin-top: 16px; }
.actions-center { justify-content: center; }
code { font-family: var(--mono); font-size: .92em; background: var(--neutral); padding: 1px 5px; border-radius: 4px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 8px; padding: 0; }
.linklike.link { color: var(--accent-text); }
[id] { scroll-margin-top: 76px; }
/* le colonne non si allargano oltre lo schermo per colpa di tabelle e pulsanti lunghi */
.with-side { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 980px) { .with-side { grid-template-columns: minmax(0, 1fr); } }
.grid > *, .with-side > * { min-width: 0; }

/* riga di download: "Installa" grande e "ZIP" piccolo accanto */

/* pre-lancio e store per cellulare */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn.store { justify-content: flex-start; min-height: 52px; padding: 0 16px; gap: 10px; text-align: left; }
.btn.store span { display: flex; flex-direction: column; line-height: 1.2; }
.btn.store small { font-weight: 400; font-size: 11px; opacity: .75; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* ─── versione per cellulari ───────────────────────────────────────────────
   Su telefono: niente decorazioni pesanti, meno spazi vuoti, pulsanti da 44 px,
   download del sistema del telefono per primo (vedi phoneFirst in app.js). */
.topbar-dl { display: none; }
@media (max-width: 760px) {
  .topbar-dl { display: inline-flex; margin-left: auto; margin-right: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .topbar { backdrop-filter: none; background: var(--bg); }
  :root { --topbar-h: 56px; }
  .topbar nav { top: var(--topbar-h); }
  .brand img { width: 32px; height: 32px; }
  [id] { scroll-margin-top: 64px; }

  /* hero corto: il pulsante di download si vede senza scorrere */
  .hero { padding: 32px 0 36px; }
  .hero::before { display: none; }
  .hero .mock { display: none; }
  .hero-grid { gap: 0; }
  .hero-grid > .schema { margin-top: 28px; }
  .hero .lead { font-size: 15.5px; }
  h1 { font-size: 30px; letter-spacing: -.5px; }
  h2 { font-size: 23px; }
  .actions { margin-top: 20px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .pill { min-width: 0; }

  .section { padding: 40px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head .lead { font-size: 15.5px; }
  .card { padding: 18px; }
  .grid { gap: 14px; }

  /* pulsanti comodi al pollice */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .btn-lg { min-height: 50px; }

  /* download: "Installa" grande, "ZIP" piccolo accanto */
  /* il riquadro del telefono, messo per primo da phoneFirst, prende tutta la riga */

  /* storico: solo versione, sistema, dimensione e pulsante */
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
  td .tag { font-size: 10px; padding: 1px 6px; }

  /* pubblicità in coda, mai appiccicata */
  .with-side .ad { position: static; }
  .ad { margin: 24px 0; min-height: 0; }

  /* pagina di attesa del download */
  .wait h1 { font-size: 26px; }
  .wait .actions .btn { flex: 1 1 100%; }
  dl.meta { grid-template-columns: 1fr; gap: 0; }
  dl.meta dd { margin-bottom: 8px; word-break: normal; overflow-wrap: anywhere; }
  dl.meta dd.mono { word-break: break-all; }

  .footer { padding: 36px 0 20px; }
  .footer-grid { gap: 20px; }
  .footer a, .footer .linklike { padding: 6px 0; }

  /* banner cookie compatto: non copre la pagina */
  .cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 14px 12px; border-radius: 10px; }
  .cc-banner h2 { font-size: 16px; margin-bottom: 6px; }
  .cc-banner p { font-size: 12.5px; line-height: 1.45; margin-bottom: 10px; }
  .cc-actions { gap: 6px; flex-wrap: nowrap; }
  .cc-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 13px; }
  .cc-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* riquadro "presto disponibile" (al posto degli spazi pubblicitari quando non c'è un circuito esterno) */
.promo-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 18px 20px; margin: 32px 0; }
.promo-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.promo-in b { display: block; margin: 6px 0 2px; } .promo-in span:not(.tag) { color: var(--muted); font-size: 14px; }
.with-side .promo-box { margin: 0; position: sticky; top: 80px; }
.with-side .promo-box .promo-in { flex-direction: column; align-items: flex-start; }
@media (max-width: 980px) { .with-side .promo-box { position: static; } }

/* download: riquadri cavi, uno per sistema */
.dl-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 150px; padding: 20px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: transparent;
  color: var(--ink); text-decoration: none !important; transition: border-color .12s, background .12s; }
a.dl-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.dl-tile svg { width: 34px; height: 34px; color: var(--muted); }
a.dl-tile:hover svg, .dl-os.recommended .dl-tile svg { color: var(--accent); }
.dl-tile b { font-size: 16px; }
.dl-tile > span { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.dl-tile small { font-size: 12px; opacity: .8; }
.dl-tile.is-off { border-style: dashed; opacity: .6; }
.dl-os.recommended .dl-tile { border-color: var(--accent); }
.dl-alt { margin: 6px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.dl-alt a { color: var(--accent-text); }
.changelog { margin-top: 40px; }
.changelog article { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; margin-bottom: 18px; }
.changelog h4 { margin: 0 0 6px; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.changelog ul { margin: 0; padding-left: 18px; color: var(--muted); }
/* footer: logo e nome allineati al centro */
.footer .brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; }
.footer .brand img { display: block; flex: none; }
[hidden] { display: none !important; }

/* LanExpert: apertura a schermo intero (nome, mappa, pulsanti di download), su telefono e computer.
   Altezza = schermo meno la barra in alto: la mappa si ingrandisce o rimpicciolisce per starci. */
.hero-name { display: none; }
.hero-dl { display: none; }
.page-lanexpert .hero { box-sizing: border-box; height: calc(100svh - var(--topbar-h)); min-height: 480px; padding: clamp(14px, 3.5vh, 44px) 0; align-items: stretch; }
.page-lanexpert .hero > .wrap { flex: 0 1 auto; width: min(1160px, 100% - 32px); min-height: 0; }
.page-lanexpert .hero-grid { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". map" "text map" "dl map" ". map"; column-gap: clamp(20px, 4vw, 56px); row-gap: 20px; align-items: center; }
.page-lanexpert .hero-grid > div:first-child { grid-area: text; display: flex; flex-direction: column; gap: 10px; }
.page-lanexpert .hero .mock { grid-area: map; align-self: center; }
.page-lanexpert .hero-dl { grid-area: dl; }
.page-lanexpert .hero-name { display: block; margin: 0; font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; letter-spacing: -1px; line-height: 1.05; color: var(--ink); }
.page-lanexpert .hero h1 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0; }
.page-lanexpert .hero .lead { margin: 0; font-size: 16px; }
/* mappa: riempie lo spazio disponibile senza superarlo */
.page-lanexpert .hero .mock { display: flex; flex-direction: column; width: 100%; max-width: none; max-height: 100%; min-height: 0; margin: 0; }
.page-lanexpert .hero .mock svg { width: 100%; height: auto; min-height: 0; max-height: calc(100svh - var(--topbar-h) - 2 * clamp(14px, 3.5vh, 44px) - 42px); }
.page-lanexpert .hero .mock-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* pulsanti: quello del sistema riconosciuto grande, gli altri tre sotto */
.page-lanexpert .hero-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.hero-dl .dl-os.is-main { grid-column: 1 / -1; order: -1; }
.hero-dl .dl-tile { min-height: 76px; padding: 10px 6px; gap: 4px; }
.hero-dl a.dl-tile:hover { background: var(--accent-soft); }
.hero-dl .dl-tile svg { width: 26px; height: 26px; }
.hero-dl .dl-tile b { font-size: 13px; }
.hero-dl .dl-tile > span, .hero-dl .dl-alt { display: none; }
.hero-dl .dl-os.is-main .dl-tile { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 64px; padding: 12px 16px; text-align: left;
  border-color: var(--accent); background: var(--accent-soft); }
.hero-dl .dl-os.is-main .dl-tile svg { width: 30px; height: 30px; color: var(--accent-text); }
.hero-dl .dl-os.is-main .dl-tile b { font-size: 16px; }
.hero-dl .dl-os.is-main .dl-tile > span { display: flex; font-size: 12.5px; margin-left: auto; text-align: right; }
.hero-dl .dl-os.is-main .dl-tile.is-off { opacity: .85; }
.hero-dl .dl-os.is-main .dl-alt { display: block; margin-top: 6px; text-align: left; font-size: 12.5px; }
/* sul computer ogni riquadro dice anche cosa scarica (es. "Ubuntu 24.04", "Non disponibile") */
@media (min-width: 901px) {
  .hero-dl .dl-tile > span { display: flex; }
  .hero-dl .dl-tile small { display: none; }
  .hero-dl .dl-os.is-main .dl-tile small { display: block; }
  .hero-dl .dl-alt { display: block; margin-top: 4px; font-size: 12px; }
}
@media (max-width: 900px) {
  /* telefono: in colonna. Nome e slogan, poi la mappa che prende tutto lo spazio libero, poi i pulsanti */
  .page-lanexpert .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .page-lanexpert .hero-grid > div:first-child { flex: none; gap: 4px; }
  .page-lanexpert .hero .lead { display: none; }
  .page-lanexpert .hero .mock { display: flex; flex: 1 1 0; }
  .page-lanexpert .hero .mock svg { flex: 1 1 0; height: 0; max-height: none; }
  .page-lanexpert .hero-dl { flex: none; margin-top: 0; }
}

/* avviso "versione di test" */
.beta-note { margin: 0 0 18px; }
.wait .beta-note { margin: 18px 0 8px; text-align: left; }
.footer-beta { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.footer-beta a { display: inline; padding: 0; color: var(--accent-text); font-size: inherit; }
.hero-beta { grid-column: 1 / -1; order: 99; margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hero-beta a { color: var(--accent-text); }

/* home: strumenti divisi per destinatario */
.pill-groups { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.pill-group { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.pill-label { font-size: 13px; font-weight: 600; color: var(--muted); }
a.pill { display: block; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
a.pill:hover { border-color: var(--accent-line); background: var(--accent-soft); }
@media (max-width: 720px) { .pill-groups { margin-top: 24px; } .pill-group { min-width: 0; flex-basis: 100%; } }

/* animazione LanExpert + Suite (views/partials/lanexpert-anim.html; era la home fino al 17/11/2026, ora in nessuna pagina). Al centro il marchio; a sinistra LanExpert scopre la rete
   (onda di scansione, dispositivi riconosciuti, mappa che si disegna), a destra la Suite dà a ogni persona la sua app.
   Regia in app.js con Web Animations (ciclo di 12 s, si ferma fuori schermo). Qui lo stato fermo = mappa finita. */
.lanexpert-anim { margin: 0; width: 100%; }
.lanexpert-anim svg { display: block; width: 100%; height: auto; overflow: visible; }
.ha-wave { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ha-link { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; }
.ha-le { stroke: var(--accent); } .ha-su { stroke: var(--green); }
.ha-pk { opacity: 0; fill: var(--yellow); }
.ha-ping { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ha-ghost { fill: none; stroke: var(--mock-link); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0; }
.ha-node { fill: var(--mock-node); stroke: var(--accent); stroke-width: 2; }
.ha-avatar { fill: var(--green-soft); stroke: var(--green); stroke-width: 2; }
.ha-ico { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ha-ico-su { stroke: var(--green-ink); }
.ha-app rect { fill: var(--accent); }
.ha-app path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ha-pop, .ha-logo { transform-box: fill-box; transform-origin: center; }
.ha-halo { fill: var(--accent-soft); stroke: var(--accent-line); stroke-width: 1.5; }
.ha-cap text { font: 700 19px var(--font); fill: var(--ink); letter-spacing: -.2px; }
/* logo di LanExpert: quadrato nero in chiaro, solo simbolo bianco in scuro */
.ha-le-bg { fill: #000; }
.ha-le-sym { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .ha-le-bg { fill: none; } }
/* home: animazione "tool indipendenti, controllo centrale se vuoi" (views/partials/home-anim.html, 17/11/2026, versione semplice).
   Un solo movimento: i tool si avvicinano al marchio, linee sottili verso il centro, pausa, si allontanano. Regia in app.js.
   Stato fermo (senza JS o con "riduci movimento") = tool uniti attorno al marchio. */
.home-anim { margin: 0; width: 100%; }
.home-anim svg { display: block; width: 100%; height: auto; overflow: visible; }
.hs-link { fill: none; stroke: var(--accent-line); stroke-width: 1.5; stroke-linecap: round; }
.hs-tile { fill: var(--mock-node); stroke: var(--line); stroke-width: 1.5; }
.hs-ico { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* LanExpert: quadrato nero in chiaro, solo simbolo bianco in scuro */
.hs-tile-le { fill: #000; stroke: none; }
.hs-le-sym { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .hs-tile-le { fill: var(--mock-node); stroke: var(--line); stroke-width: 1.5; } }
.hs-halo { fill: var(--accent-soft); stroke: var(--accent-line); stroke-width: 1.5; }
@media (max-width: 720px) { .home-anim { margin-top: 28px; } }

/* home: su PC testo a sinistra e animazione a destra; su telefono tutto centrato, animazione tra pulsanti e riquadri */
.home-hero { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 48px; align-items: center;
  grid-template-areas: "head anim" "actions anim" "pills anim"; }
.home-hero .hh-head { grid-area: head; align-self: end; }
.home-hero .actions { grid-area: actions; }
.home-hero .home-anim { grid-area: anim; }
.home-hero .pill-groups { grid-area: pills; align-self: start; }
@media (max-width: 900px) {
  .home-hero { display: block; text-align: center; }
  .home-hero .actions { justify-content: center; }
  .home-hero .home-anim { max-width: 520px; margin: 26px auto 0; }
  .home-hero .pill-groups { text-align: left; margin-top: 18px; }
  .home-hero .pill-label { text-align: center; }
}

/* LanExpert Pro: interesse e idee */
.pro-disclaimer { margin-top: 18px; max-width: 760px; }
.pro-ideas { max-width: 760px; }
.pro-ideas textarea { min-height: 110px; }
.pro-ideas .form > * + * { margin-top: 12px; }

/* LanExpert Pro: "Abbonati" nei piani (<details>); il modulo si vede solo senza JavaScript */
.pro-sub { margin-top: auto; }
.pro-sub > summary { list-style: none; display: inline-flex; cursor: pointer; }
.pro-sub > summary::-webkit-details-marker { display: none; }
.pro-sub[open] > summary { opacity: .55; }
.pro-sub-box { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.pro-sub-box > * + * { margin-top: 10px; }
.pro-sub-box form:not(:has(button)) { display: none; }
.pro-sub-box .alert:empty { display: none; }
.edition .pro-sub > summary { display: flex; justify-content: center; width: 100%; }

/* /lanexpert/piani: tabella di confronto */
.compare th:not(:first-child) { text-align: center; white-space: nowrap; }

/* ─── sezioni a schermo intero (2026-11-14): ogni sezione alta quanto lo schermo sotto la barra ─── */
.section.screen { min-height: calc(100svh - var(--topbar-h)); display: flex; align-items: center; padding-block: clamp(28px, 6vh, 64px); }
.wrap.narrow { max-width: 820px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split-rev > :first-child { order: 0; } }
.slogan { font-size: clamp(17px, 2vw, 21px); color: var(--muted); }
.checks-lg li { font-size: 16px; border: 0; padding: 4px 0; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: var(--mock-bg); }
.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.duo { position: relative; padding: 0 9% 6% 0; }
.duo .shot-tel { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: 18px; border-width: 3px; }
.feats { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.feats li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; color: var(--muted); font-size: 14.5px; }
.feats .icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feats .icon svg { width: 22px; height: 22px; }
.feats b { color: var(--ink); }
.edition-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.edition-head h3 { margin: 0; font-size: 22px; }
.more-link { display: flex; justify-content: flex-end; margin-top: 18px; }
.compare td.y, .compare td.n { text-align: center; width: 70px; }
.compare td svg { width: 18px; height: 18px; }
.compare td.y { color: var(--green); } .compare td.n { color: var(--red); }
.compare td span { display: block; font-size: 13px; color: var(--muted); }
.changelog-old summary, .form-more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.form-more .form { margin-top: 12px; }
.schema .links div::before { border-left: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px); animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 0 8px; } }
.aa-doc { animation: aa-doc 3s ease-in-out infinite; }
@keyframes aa-doc { 0%, 15% { transform: translateX(-120px) scale(.4); opacity: 0; } 45%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
} }
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .schema .links div::before, .aa-doc { animation: none; } }
@media (max-width: 640px) {
  .hide-phone { display: none; }
  .checks-lg li { font-size: 15px; }
  .plans-2 .checks li { padding: 3px 0; font-size: 13.5px; }
}
/* telefono: piani, novità, ruoli e modulo stanno in uno schermo */
@media (max-width: 640px) {
  .plans-2 { gap: 10px; }
  .plans-2 .card { padding: 14px 16px; }
  .plans-2 .edition > p { display: none; }
  .plans-2 .checks { margin: 8px 0 12px !important; }
  .plans-2 .checks li { padding: 2px 0; font-size: 13px; border: 0; }
  .plans-2 .checks svg { width: 15px; height: 15px; }
  .plans-2 .edition-head h3 { font-size: 19px; }
  .section.screen { padding-block: 20px; }
  .section.screen .section-head { margin-bottom: 14px; }
  .section.screen .section-head h1 { font-size: 26px; margin-bottom: 4px; }
  .more-link { margin-top: 10px; }
  #novita .beta-note { display: none; }
  .roles { gap: 8px; }
  .roles .card { padding: 10px 14px; }
  .roles .card p { font-size: 13.5px; margin-bottom: 0; }
  #richiesta .card { padding: 16px; }
  #richiesta .form { gap: 10px; }
  #richiesta .check { font-size: 12.5px; }
}
/* /lanexpert/piani: "Abbonati" sotto la colonna Pro della tabella */
.compare-cta { display: flex; justify-content: flex-end; margin-top: 14px; }
.compare-cta .pro-sub { width: min(340px, 100%); }
.compare-cta .pro-sub > summary { display: flex; justify-content: center; width: 100%; }

/* margini: un pulsante o un riquadro non tocca mai il testo che segue (stesso passo ovunque) */
.actions + p, form + p, .btn + p, .compare-cta + p { margin-top: 14px; }
.changelog-old > summary { margin-bottom: 10px; }
.schema .links div { overflow-wrap: anywhere; }

/* Logo di LanExpert accanto al nome (chiaro: quadrato nero; scuro: solo il simbolo bianco) */
.le-logo { display: inline-flex; flex: none; }
.le-logo img { width: 0.9em; height: 0.9em; display: block; }
.page-lanexpert .hero-name, h2.with-logo { display: flex; align-items: center; gap: 0.3em; }
