/* Clarivendo: sistema visivo v2 (tele chiare, card arrotondate, card scure, accenti giallo e lavanda) */
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #ECEDF0;
  --card: #FFFFFF;
  --soft: #F4F5F7;
  --ink: #17181C;
  --ink-2: #24262C;
  --ink-3: #33363E;
  --text: #17181C;
  --muted: #6B6F78;
  --muted-2: #9A9EA7;
  --line: #E4E5E9;
  --yellow: #FFD84D;
  --yellow-2: #FFE98F;
  --lav: #B8B2F3;
  --lav-2: #E7E4FC;
  --good: #1E8A4C; --good-bg: #E2F5EA;
  --warn: #9A5A00; --warn-bg: #FFF0CC;
  --bad: #C0322B; --bad-bg: #FDE6E4;
  --focus: #5B53E0;
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px;
  --shadow: 0 1px 2px rgba(16, 17, 20, .04), 0 10px 30px rgba(16, 17, 20, .06);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.1; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
[hidden] { display: none !important; }

/* Barra in alto */
.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 0 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 21; }
.topbar-inner {
  display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.nav { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: #fff; background: var(--ink); }
.topbar .btn { flex: none; }
@media (max-width: 980px) {
  .topbar-inner { flex-wrap: wrap; border-radius: 26px; padding: 10px 10px 8px 16px; }
  .nav { order: 3; width: 100%; margin: 4px 0 0; }
  .topbar .btn { margin-left: auto; }
}

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }

/* Card */
.card { background: var(--card); border-radius: var(--r-xl); padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--shadow); }
.card.dark { background: var(--ink); color: #fff; }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.dark .muted, .card.dark .small { color: #A9ACB5; }
.card.yellow { background: var(--yellow); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { flex: 1; }
.icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); flex: none; }
.card.dark .icon { background: var(--ink-3); }
.icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Chip e pillole */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.chip svg { width: 16px; height: 16px; stroke: var(--good); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.yellow { background: var(--yellow); color: var(--ink); }
.pill.lav { background: var(--lav-2); color: #3F37A8; }
.pill.dark { background: var(--ink-3); color: #fff; }

/* Numeri grandi */
.big { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.big small { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.card.dark .big small { color: #A9ACB5; }

/* Barre di avanzamento */
.bar { height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.card.dark .bar { background: var(--ink-3); }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .3s ease; }
.bar.yellow > span { background: var(--yellow); }
.bar.lav > span { background: var(--lav); }
.bar.bad > span { background: var(--bad); }
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }

/* Moduli */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--ink); }
.hint { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 5px; }
input[type="number"], select {
  width: 100%; height: 50px; padding: 0 16px; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--soft); border: 1.5px solid transparent; border-radius: var(--r-md); transition: border-color .15s;
}
input[type="number"]::placeholder { color: var(--muted-2); font-weight: 500; }
input:hover, select:hover { border-color: var(--line); }
input:focus, select:focus { outline: none; border-color: var(--focus); background: #fff; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317181C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.money { position: relative; }
.money input { padding-right: 38px; }
.money span { position: absolute; right: 16px; top: 25px; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }

/* Pagina iniziale */
.hero { padding: clamp(28px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.5vw, 40px); align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-copy { padding-top: 8px; }
.hero-copy > .chip:first-child { margin-bottom: 18px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin-top: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.section { padding: clamp(28px, 5vw, 56px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head p { max-width: 52ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* Calcolatore DAC7 */
.calc-rows { display: grid; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 1.25fr 1fr 1.15fr auto; gap: 10px; align-items: end; padding: 14px; background: var(--soft); border-radius: var(--r-lg); }
.calc-row input, .calc-row select { background: #fff; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr 1fr auto; } .calc-row .f-platform { grid-column: 1 / 3; } .calc-row .f-sales { grid-column: 1; } .calc-row .f-revenue { grid-column: 2 / 4; } .calc-row .remove { grid-column: 3; grid-row: 1; } }
.remove { width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.remove:hover { color: var(--bad); }
.remove[hidden] { display: block !important; visibility: hidden; }
.add { margin-top: 12px; }
.results { display: grid; gap: 12px; margin-top: 18px; }
.result { border-radius: var(--r-lg); padding: 18px 18px 16px; background: var(--ink); color: #fff; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-name { font-weight: 700; font-size: 1.1rem; }
.result-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 14px; }
@media (max-width: 460px) { .result-meters { grid-template-columns: 1fr; } }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.meter-top b { font-size: 1.55rem; letter-spacing: -.03em; }
.meter-top span { color: #A9ACB5; font-size: .85rem; font-weight: 600; }
.result .bar { background: var(--ink-3); }
.result-msg { margin-top: 14px; color: #D4D6DC; font-size: .95rem; }
.result .pill.good { background: #1F3A2C; color: #8FE0B0; }
.result .pill.warn { background: #3E3115; color: var(--yellow); }
.result .pill.bad { background: #47201E; color: #FF9B93; }
.empty { color: var(--muted); padding: 6px 2px; }
.card.dark .empty { color: #A9ACB5; padding: 14px 0 0; }
.out-figure.idle { color: var(--ink-3); }
.share { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.share p { font-weight: 700; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Card strumento */
.tool-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-height: 210px; transition: transform .15s ease; }
.tool-card:hover { transform: translateY(-3px); }
.tool-card p { color: var(--muted); }
.tool-card .go { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.tool-card .go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .tool-card { transition: none; } .tool-card:hover { transform: none; } }

/* Fatti con numeri grandi */
.fact .big { margin: 10px 0 12px; color: var(--ink); }
.card.dark.fact .big { color: #fff; }
.fact p { color: var(--muted); }
.card.dark.fact p { color: #C3C6CE; }

/* Prodotti */
.offer { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.5l3 3 6-7' fill='none' stroke='%2317181C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.price b { font-size: 2.4rem; letter-spacing: -.04em; }

/* Mini anteprima della dashboard */
.mini-dash { background: var(--bg); border-radius: 22px; padding: 14px; display: grid; gap: 10px; }
.mini-dash .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; }
.mini-card.dark { background: var(--ink); color: #fff; }
.mini-card .lbl { font-size: .78rem; font-weight: 600; color: var(--muted); }
.mini-card.dark .lbl { color: #A9ACB5; }
.mini-card .num { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; }
.mini-bars { display: flex; align-items: end; gap: 6px; height: 70px; margin-top: 10px; }
.mini-bars i { flex: 1; border-radius: 6px; background: var(--ink-3); }
.mini-bars i.on { background: var(--yellow); }
.mini-bars i.lav { background: var(--lav); }

/* Tabelle */
.table-scroll { overflow-x: auto; margin-top: 14px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: none; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:first-child td { font-weight: 700; }
tbody tr:first-child td:first-child { position: relative; }
.note-row td { font-size: .82rem; color: var(--muted); padding-top: 0; }

/* Risultato strumento (card scura) */
.out-label { color: #A9ACB5; font-weight: 600; }
.out-figure { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin-top: 8px; color: var(--yellow); }
.out-figure.neg { color: #FF9B93; }
.breakdown { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 2px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-3); color: #D4D6DC; }
.breakdown li.total { color: #fff; font-weight: 700; border-bottom: 0; }
.out-note { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ink-2); color: #D4D6DC; font-size: .92rem; }

/* Fonti */
.sources { margin-top: 16px; }
.sources summary { cursor: pointer; font-weight: 700; }
.sources ul { padding-left: 1.1rem; margin: .6rem 0 0; }
.sources li + li { margin-top: .4rem; }

/* Domande frequenti */
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--card); border-radius: var(--r-lg); padding: 18px 22px; box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; background: var(--yellow); }
.faq-list details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

/* Testi lunghi */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose ul, .prose ol { margin-top: .8rem; }
.prose li + li { margin-top: .35rem; }
.callout { background: var(--yellow); border-radius: var(--r-lg); padding: 16px 18px; margin-top: 18px; font-weight: 600; }

/* Pagine strumento */
.page-head { padding: clamp(28px, 5vw, 52px) 0 20px; }
.page-head .lede { margin-top: 12px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; align-items: start; padding-bottom: clamp(32px, 6vw, 64px); }
@media (max-width: 920px) { .tool-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 28px 0 40px; }
.footer-inner { background: var(--card); border-radius: var(--r-xl); padding: 22px 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow); }
.footer-inner p + p { margin-top: 4px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-weight: 600; font-size: .9rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Varianti di layout */
.tool-grid.wide-right { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 920px) { .tool-grid.wide-right { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.tool-grid > *, .stack > *, .hero-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .offer > * { min-width: 0; }

/* Area personale (anteprima Pro) */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; padding: 16px; min-height: 100vh; }
.app-side { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 16px; height: calc(100vh - 32px); }
.app-side .brand { color: #fff; padding: 0 8px 18px; }
.app-side .brand-mark { background: var(--yellow); }
.app-nav { display: grid; gap: 4px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 999px; color: #C3C6CE; text-decoration: none; font-weight: 600; }
.app-nav a:hover { color: #fff; background: var(--ink-2); }
.app-nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.app-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-nav .count { margin-left: auto; background: var(--yellow); color: var(--ink); border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 2px 8px; }
.app-promo { margin-top: auto; background: var(--yellow); color: var(--ink); border-radius: var(--r-lg); padding: 18px; }
.app-promo h3 { color: var(--ink); }
.app-promo p { font-size: .88rem; margin: 6px 0 14px; }
.app-promo .btn { width: 100%; }
.app-main { display: grid; gap: 16px; align-content: start; min-width: 0; }
.app > *, .app-grid > * { min-width: 0; }
.app-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lav); display: grid; place-items: center; font-weight: 800; color: var(--ink); flex: none; }
.who b { display: block; }
.who span { font-size: .85rem; color: var(--muted); }
.app-search { margin-left: auto; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 0 18px; height: 48px; min-width: 240px; color: var(--muted-2); box-shadow: var(--shadow); }
.app-search svg, .round-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); position: relative; color: var(--ink); }
.round-btn .badge { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); font-size: .65rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.app-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 2px; }
.app-title h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.app-title .controls { display: flex; align-items: center; gap: 10px; }
.select-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; font-weight: 700; box-shadow: var(--shadow); }
.app-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; }
.kpi-top { display: flex; align-items: center; gap: 12px; }
.kpi-top h3 { flex: 1; font-size: 1.02rem; }
.kpi-val { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; }
.kpi-val .pill { margin-top: 6px; }
.kpi-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; margin-top: 10px; }
.plat-rows { display: grid; gap: 16px; margin-top: 8px; }
.plat-row .meter-top b { font-size: 1.05rem; letter-spacing: 0; }
.plat-row .meter-top span { color: var(--muted); }
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; margin-top: 22px; }
.chart .col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .b { width: 100%; max-width: 30px; border-radius: 999px; background: repeating-linear-gradient(135deg, var(--ink-3) 0 6px, var(--ink-2) 6px 12px); }
.chart .b.on { background: var(--yellow); }
.chart .b.future { background: var(--ink-2); opacity: .5; }
.chart .m { font-size: .75rem; color: #A9ACB5; }
.chart .m.on { color: #fff; font-weight: 700; }
.chart-kpis { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.chart-kpis div { border-left: 4px solid var(--yellow); padding-left: 12px; }
.chart-kpis div.lav { border-color: var(--lav); }
.chart-kpis b { font-size: 1.9rem; letter-spacing: -.03em; display: block; line-height: 1.1; }
.chart-kpis span { color: #A9ACB5; font-size: .85rem; }
.list { display: grid; }
.list-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.list-item b { display: block; font-size: .95rem; }
.list-item span { font-size: .82rem; color: var(--muted); }
.list-item .amt { text-align: right; }
.list-item .amt b { font-size: 1rem; }
.alerts { display: grid; gap: 10px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-lg); background: var(--soft); }
.alert.warn { background: var(--warn-bg); }
.alert .icon { width: 36px; height: 36px; background: #fff; }
.alert b { display: block; }
.alert span { font-size: .88rem; color: var(--muted); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; font-weight: 600; font-size: .92rem; }
@media (max-width: 1100px) { .span-4 { grid-column: span 6; } .span-5, .span-7, .span-8 { grid-column: span 12; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; padding: 10px; }
  .app-side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 22px; }
  .app-side .brand { padding: 0 8px; }
  .app-nav { display: flex; overflow-x: auto; gap: 4px; width: 100%; scrollbar-width: none; }
  .app-nav a { padding: 10px 14px; white-space: nowrap; }
  .app-promo { display: none; }
  .span-4, .span-6 { grid-column: span 12; }
  .app-search { display: none; }
  .chart { gap: 4px; height: 180px; }
  .chart .m { font-size: .62rem; }
  .app-side .brand { width: 100%; }
}

/* Campi numerici senza frecce */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
