/* W Advisory · landing W FAIR (Check divario). Grafica propria della campagna, stessa famiglia di LE²AD: ottanio profondo,
   accento rosso, bande piene, numeri grandi. Caratteri: Aeonik (file in /assets/fonts) con Archivo e Public Sans di riserva. */
@font-face { font-family: 'Aeonik'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/aeonik-regular.woff') format('woff'); }
@font-face { font-family: 'Aeonik'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/aeonik-regular-italic.woff') format('woff'); }
@font-face { font-family: 'Aeonik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/aeonik-bold.woff') format('woff'); }
@font-face { font-family: 'Aeonik'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/aeonik-bold-italic.woff') format('woff'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/archivo-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/archivo-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: italic; font-weight: 900; font-display: swap; src: url('/assets/fonts/archivo-latin-900-italic.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/public-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #0B2A3D; --navy-2: #06344D; --blue: #00597D; --blue-2: #004C6B; --sky: #8CC4E0; --soft: #CFE0EA;
  --red: #E30613; --red-dark: #C00511; --pink: #FF8A94;
  --ink: #0B2A3D; --ink-2: #2C3D49; --muted: #4A5A66; --muted-2: #76868F;
  --line: #D5E1E8; --line-2: #E3EAEF; --bg: #F3F6F8; --bg-2: #EEF3F6; --paper: #fff;
  --bad: #B3261E; --bad-bg: #FBE9E7; --good: #1F6B49; --good-bg: #E5F2EB; --warn: #8A5A00; --warn-bg: #FFF4D6; --ns: #76868F; --ns-bg: #EEF1F3;
  --display: 'Aeonik', 'Archivo', 'Arial Black', Helvetica, sans-serif;
  --body: 'Aeonik', 'Public Sans', Helvetica, Arial, sans-serif;
  --mono: 'Aeonik', 'Public Sans', ui-monospace, Menlo, Consolas, monospace;
  --gutter: 24px;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---- tipografia ---- */
.eyebrow { font-family: var(--mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; color: var(--red); display: flex; gap: 12px; align-items: center; }
.eyebrow .dash { width: 28px; height: 3px; background: currentColor; display: inline-block; flex-shrink: 0; transform: skewX(-22deg); }
.eyebrow-light { color: var(--sky); }
.eyebrow-pink { color: #FFD4D8; }
.h-xl { font-family: var(--display); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; font-weight: 700; color: var(--navy); letter-spacing: -.025em; text-wrap: balance; }
.h-lg { font-family: var(--display); font-size: clamp(26px, 2.9vw, 38px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; color: var(--navy); }
.body-lg { font-size: 20px; line-height: 1.6; color: var(--ink-2); }
.body-md { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); font-size: 14.5px; }
.white { color: #fff; } .light { color: var(--soft); }
.w-500 { max-width: 500px; } .w-700 { max-width: 720px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ---- pulsanti ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); } .btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-navy { background: var(--blue); color: #fff; border-color: var(--blue); } .btn-navy:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); } .btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-ghost-dark { background: var(--paper); color: var(--blue); border-color: var(--blue); } .btn-ghost-dark:hover { background: var(--blue); color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* ---- barra in alto ---- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { height: 32px; width: auto; }
.brand-sep { width: 1px; height: 26px; background: var(--line); }
.brand-product { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--red); }
.topnav { display: flex; gap: 22px; }
.topnav a { font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; }
.topnav a:hover { color: var(--red); }
@media (max-width: 900px) { .topnav { display: none; } .brand-sep, .brand-product { display: none; } }

/* ---- apertura ---- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue) 0%, var(--navy-2) 60%, var(--navy) 100%); color: #fff; }
.hero-slash { position: absolute; right: 36%; bottom: -8%; width: 120px; height: 62%; background: var(--red); transform: skewX(-22deg); opacity: .95; }
.hero-glow { position: absolute; left: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(140,196,224,.22), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--pink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: .08em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); font-size: 13.5px; color: #fff; }
.pills svg { width: 16px; height: 16px; }
.hero-visual { position: relative; }
.shot { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,20,30,.45); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 12px; color: var(--muted); font-family: var(--mono); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.shot-bar span { margin-left: 6px; }
.shot-hero { transform: rotate(-1.5deg); }
.shot-tall img { max-height: 560px; object-fit: cover; object-position: top; }
.float { position: absolute; background: var(--paper); color: var(--navy); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 40px -20px rgba(0,20,30,.5); display: flex; flex-direction: column; gap: 2px; animation: floaty 6s ease-in-out infinite; }
.float-n { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.02em; color: var(--red); }
.float-l { font-size: 12px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.float-a { left: -18px; top: 18%; } .float-b { right: -14px; bottom: 14%; animation-delay: -3s; }
.float-b .float-n { color: var(--blue); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; } .hero-slash { right: -6%; height: 40%; } .shot-hero { transform: none; } .float-a { left: 8px; } .float-b { right: 8px; } }

/* ---- banda rossa ---- */
.band-red { background: var(--red); color: #fff; }
.band-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.big-n { display: flex; align-items: baseline; gap: 18px; }
.big-n .n { font-family: var(--display); font-weight: 700; font-size: clamp(88px, 12vw, 160px); line-height: .9; letter-spacing: -.05em; }
.big-n .n small { font-size: .45em; letter-spacing: -.02em; }
.big-n .u { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; line-height: 1.4; color: #FFD4D8; }
.band-copy { display: flex; flex-direction: column; gap: 14px; }
.band-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.band-copy p { font-size: 17px; line-height: 1.6; color: #FFE3E5; max-width: 62ch; }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; } }

/* ---- sezioni ---- */
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec-white { background: var(--paper); }
.sec-grey { background: var(--bg); }
.sec-navy { background: var(--navy); color: #fff; }
@media (max-width: 700px) { .sec { padding-top: 64px; padding-bottom: 64px; } }

/* passi */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.step-line { flex: 1; height: 2px; background: var(--line); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step-line { display: none; } }

/* ---- il check ---- */
.drop { border: 2px dashed var(--sky); border-radius: 18px; padding: 40px 24px; text-align: center; background: var(--paper); transition: border-color .15s, background .15s; display: flex; flex-direction: column; gap: 10px; align-items: center; cursor: pointer; color: var(--blue); position: relative; }
.drop strong { color: var(--navy); font-size: 18px; }
.drop.over { border-color: var(--red); background: #FFF5F5; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .row-gap { margin-top: 8px; justify-content: center; }
.helper { border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.helper.ok { background: var(--good-bg); } .helper.warn { background: var(--warn-bg); } .helper.bad { background: var(--bad-bg); }
.helper ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.helper summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.issues { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin-top: 8px; }
.issues table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.issues th, .issues td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.issues th { color: var(--muted-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.res-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); color: var(--navy); letter-spacing: -.02em; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.kcard { display: flex; flex-direction: column; gap: 8px; }
.kcard .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.kcard .big { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.05; color: var(--navy); letter-spacing: -.03em; }
.kcard .big.ns { color: var(--muted-2); }
.kcard .cmt { font-size: 14px; color: var(--muted); line-height: 1.5; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip-bad { background: var(--bad-bg); color: var(--bad); } .chip-good { background: var(--good-bg); color: var(--good); } .chip-ns { background: var(--ns-bg); color: var(--ns); } .chip-warn, .chip-amber { background: var(--warn-bg); color: var(--warn); }
.chip.sm { font-size: 10.5px; padding: 1px 7px; }
.bandbox { background: var(--navy); color: #fff; border-color: transparent; }
.bandbox strong { color: #fff; }
.gate { position: relative; }
.gate .blur { filter: blur(7px); pointer-events: none; user-select: none; opacity: .55; }
.gatebox { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 24px; }
.gatebox .form { max-width: 560px; width: 100%; box-shadow: 0 30px 60px -28px rgba(0,20,30,.5); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h3 { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--navy); letter-spacing: -.01em; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.form input[type=text], .form input[type=email], .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #9FB6C4; border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 16px var(--body); }
.form textarea { min-height: 90px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(0,89,125,.3); border-color: var(--blue); }
label.ck { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); font-weight: 400; }
label.ck input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
label.ck b { font-weight: 700; color: var(--red); }
.err { color: var(--bad); font-size: 14px; font-weight: 700; }
.ok { color: var(--good); font-size: 15px; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.tbl { overflow-x: auto; } .tbl table { width: 100%; min-width: 620px; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); padding: 10px 12px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.tbl .r { text-align: right; } .tbl tr.ns td { color: var(--muted-2); }
.qrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.qrow .q { flex: 1 1 170px; min-width: 0; } .qrow .q b { font-weight: 700; font-size: 14.5px; display: block; } .qrow .q span { font-size: 13px; color: var(--muted); }
.qrow .bar { flex: 999 1 300px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.qrow .bar .tr { position: relative; flex: 1; height: 20px; background: var(--line-2); border-radius: 6px; }
.qrow .bar .tr .fl { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); border-radius: 6px 0 0 6px; }
.qrow .bar .tr .ref { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--navy); }
.qrow .bar .v { width: 56px; text-align: right; font-weight: 700; color: var(--red); }
.dec { display: flex; height: 40px; border-radius: 10px; overflow: hidden; }
.dec div { display: flex; align-items: center; padding-left: 12px; font-weight: 700; font-size: 14px; min-width: 0; white-space: nowrap; }
.dec .a { background: var(--blue); color: #fff; } .dec .b { background: var(--sky); color: var(--navy); }
.full-card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }
#full .card { display: flex; flex-direction: column; gap: 14px; }
#full .card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }

/* ---- il software ---- */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.feat-rev .feat-txt { order: 2; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.ticks svg { color: var(--good); flex-shrink: 0; margin-top: 3px; }
.minis { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.minis li { background: var(--bg); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; }
.minis img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.minis h3 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); padding: 14px 22px 0; }
.minis p { color: var(--muted); font-size: 15px; line-height: 1.55; padding: 0 22px; }
@media (max-width: 960px) { .feat { grid-template-columns: 1fr; } .feat-rev .feat-txt { order: 0; } .minis { grid-template-columns: 1fr; } }

/* ---- parliamone ---- */
.form-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--soft); }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets svg { color: var(--sky); flex-shrink: 0; margin-top: 2px; }
.bullets a { color: #fff; }
.sec-navy .card { border-color: transparent; }
@media (max-width: 900px) { .form-sec { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.footer { background: var(--navy); color: var(--soft); font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 36px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); }
.footer-logo { width: 190px; height: auto; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols strong { color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 4px; }
.footer-cols a, .footer-cols .linklike { color: var(--soft); text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: var(--sky); }

/* ---- modale e avviso ---- */
.modal { position: fixed; inset: 0; background: rgba(11,42,61,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal-card { max-width: 640px; max-height: 85vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); }
.prose-sm { font-size: 14.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; display: none; z-index: 70; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.toast.show { display: block; }

/* banner anteprima del motore landing */
.preview-banner { background: var(--warn-bg); color: var(--warn); font-size: 14px; padding: 8px 16px; text-align: center; }
.ts { min-height: 65px; }
.nosave { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.nosave svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); align-items: center; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* istogramma a bandiera della scomposizione del divario */
.bfly { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 6px 0 2px; }
.bfly-head { display: grid; grid-template-columns: 220px 1fr 84px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.bfly-head > div { display: flex; justify-content: space-between; gap: 12px; } .bfly-head { gap: 0 14px; }
.bfly-row { display: grid; grid-template-columns: 220px 1fr 84px; gap: 0 14px; align-items: center; }
.bfly-label b { display: block; font-size: 14.5px; color: var(--navy); } .bfly-label span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.bfly-track { position: relative; height: 30px; background: var(--bg); border-radius: 6px; }
.bfly-track::before { content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; border-left: 2px solid var(--navy); }
.bfly-bar { position: absolute; top: 5px; height: 20px; border-radius: 4px; min-width: 2px; }
.b-total { background: var(--navy); } .b-comp { background: var(--blue); } .b-within { background: var(--red); }
.bfly-val { font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.bfly-val.b-total { color: var(--navy); background: none; } .bfly-val.b-comp { color: var(--blue); background: none; } .bfly-val.b-within { color: var(--red); background: none; }
.bfly-zero { display: none; }
@media (max-width: 760px) { .bfly-head, .bfly-row { grid-template-columns: 1fr; } .bfly-head i { display: none; } .bfly-val { text-align: left; } }
/* i limiti del check, da leggere prima dei numeri */
.limits { border: 2px solid var(--red); background: #FFF7F7; }
.limits .grid b { color: var(--navy); }
