@font-face {
  font-family: "InterVar";
  src: url("vendor/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f4f4f1;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.09);
  --shadow: 0 1px 2px rgba(11, 11, 11, 0.04), 0 8px 24px -12px rgba(11, 11, 11, 0.12);
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --accent-soft: #e4eefb;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-7: #4a3aa7;
  --series-1-b: #185db0;
  --series-2-b: #db470b;
  --series-3-b: #0e845a;
  --series-7-b: #332584;
  --series-1-c: #1e24d8;
  --series-2-c: #be890a;
  --series-3-c: #1197a0;
  --series-7-c: #732fa8;
  --band: rgba(42, 120, 214, 0.14);
  --good: #0ca30c;
  --good-ink: #006300;
  --bad: #d03b3b;
  --bad-contrast: #ffffff;
  --bad-ink: #b42828;
  --warn: #fab219;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --font: "InterVar", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #242422;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --accent: #3987e5;
    --accent-soft: #1b2a3d;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-7: #9085e9;
    --series-1-b: #1373e7;
    --series-2-b: #c34918;
    --series-3-b: #0e855c;
    --series-7-b: #6453e9;
    --series-1-c: #272ded;
    --series-2-c: #b18316;
    --series-3-c: #11929c;
    --series-7-c: #a353e9;
    --band: rgba(57, 135, 229, 0.2);
    --good-ink: #0ca30c;
    --bad-ink: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #242422;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --accent: #3987e5;
  --accent-soft: #1b2a3d;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-7: #9085e9;
  --series-1-b: #1373e7;
  --series-2-b: #c34918;
  --series-3-b: #0e855c;
  --series-7-b: #6453e9;
  --series-1-c: #272ded;
  --series-2-c: #b18316;
  --series-3-c: #11929c;
  --series-7-c: #a353e9;
  --band: rgba(57, 135, 229, 0.2);
  --good-ink: #0ca30c;
  --bad-ink: #e66767;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.num, table td.r, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  display: none;
  width: 240px;
  flex-shrink: 0;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 550;
  border: 0; background: none; cursor: pointer; text-align: left; width: 100%;
}
.nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.sidebar .spacer { flex: 1; }

main { flex: 1; min-width: 0; padding: 20px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
.container { max-width: 1180px; margin: 0 auto; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--border);
}
.bottom-nav .nav-link {
  flex-direction: column; justify-content: center; gap: 3px;
  font-size: 11px; padding: 6px 2px; border-radius: 0; text-align: center;
}
.bottom-nav .nav-link.active { background: none; }
.bottom-nav .nav-link svg { width: 22px; height: 22px; }

@media (min-width: 900px) {
  .sidebar { display: flex; }
  .bottom-nav { display: none; }
  main { padding: 32px 36px 48px; }
}

/* ---------- Header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 750; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }
@media (min-width: 900px) { .page-head h1 { font-size: 30px; } }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.span-2 { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}
.card h2 { font-size: 16px; margin: 0 0 2px; letter-spacing: -0.01em; font-weight: 700; }
.card h3 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card-head .sub { margin: 2px 0 0; }

.kpi { padding: 14px 16px; }
.kpi .label { font-size: 12.5px; color: var(--ink-2); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (min-width: 700px) { .kpi .value { font-size: 24px; } }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.hero { padding: 22px; }
.hero .value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 700px) { .hero .value { font-size: 42px; } }

.delta { font-weight: 650; white-space: nowrap; }
.delta.up { color: var(--good-ink); }
.delta.down { color: var(--bad-ink); }
.delta.flat { color: var(--muted); }

/* split bar disponibili / vincolati */
.split { margin-top: 6px; }
.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--surface); }
.split-bar > div { height: 100%; min-width: 4px; }
.split-bar > div:first-child { border-radius: 999px 4px 4px 999px; }
.split-bar > div:last-child { border-radius: 4px 999px 999px 4px; }
.split-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.split-legend .item .t { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; font-weight: 550; }
.split-legend .item .v { font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.split-legend .item .p { font-size: 13px; color: var(--muted); }

/* charts */
.chart-box { position: relative; width: 100%; height: 260px; }
.chart-box.tall { height: 320px; }
.chart-box.short { height: 200px; }
@media (min-width: 900px) { .chart-box { height: 290px; } .chart-box.tall { height: 360px; } }
/* Barre finte per le anteprime Premium (numeri di esempio, non dati veri dell'utente) */
.fake-bars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 10px; }
.fake-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.fake-bar { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--accent); opacity: .55; }
.fake-bar-col span { font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 3px; border-radius: 2px; }
.legend i.dash { height: 0; border-top: 3px dashed; background: none !important; width: 16px; }
.legend i.band { opacity: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
td { padding: 10px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
th.r, td.r { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
tfoot td { font-weight: 700; border-top: 1px solid var(--axis); border-bottom: 0; }

/* ---------- Forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  text-decoration: none; min-height: 42px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad-ink); }
.btn[data-act="acc-out"] { background: var(--bad); color: var(--bad-contrast); border-color: transparent; }
.btn[data-act="acc-out"]:hover { filter: brightness(1.07); }
.btn.ghost { background: none; border-color: transparent; }
.btn.sm { padding: 6px 10px; min-height: 34px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 36px; height: 36px; padding: 0; min-height: 0; border-radius: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap .input { padding-right: 42px; }
.pw-eye { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 38px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); border-radius: 9px; cursor: pointer; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--ink); background: var(--surface-3, rgba(0,0,0,.06)); }
.pw-eye svg { width: 20px; height: 20px; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2);
  outline: none; min-height: 42px; transition: border-color .15s, background .15s;
}
.input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-euro { position: relative; }
.input-euro .input { padding-right: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.input-euro::after { content: "€"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-pct .input { padding-right: 32px; text-align: right; }
.input-pct { position: relative; }
.input-pct::after { content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (min-width: 700px) { .form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.big-input .input { font-size: 26px; font-weight: 750; min-height: 58px; letter-spacing: -0.02em; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 10px 0 0; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; border: 1px solid var(--border); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 550; font-size: 14px; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--axis); position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

/* expense rows */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row-line { display: grid; grid-template-columns: minmax(0, 1fr) 118px 36px; gap: 8px; align-items: center; }
.row-line.acc { grid-template-columns: minmax(0, 1fr) 128px 36px; }
.row-total { display: flex; justify-content: space-between; padding: 10px 2px 0; font-weight: 700; border-top: 1px solid var(--grid); margin-top: 6px; }

/* list items */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--grid); }
.list-item:last-child { border-bottom: 0; }
.list-item .main { min-width: 0; }
.list-item .main .t { font-weight: 600; }
.list-item .main .s { font-size: 12.5px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.disp { background: color-mix(in srgb, var(--series-1) 14%, transparent); color: var(--series-1); }
.pill.vinc { background: color-mix(in srgb, var(--series-2) 16%, transparent); color: var(--series-2); }

.note { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.note strong { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.stack > * + * { margin-top: 14px; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 10px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; }
.kv .k { color: var(--ink-2); }
.kv .v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.kv .sep { grid-column: 1 / -1; border-top: 1px solid var(--grid); margin: 2px 0; }
.kv .strong { font-weight: 800; color: var(--ink); }

.empty { text-align: center; padding: 42px 20px; }
.empty .ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty h2 { margin: 0 0 6px; }
.empty p { color: var(--ink-2); margin: 0 auto 16px; max-width: 420px; }

/* ---------- Dialog ---------- */
dialog {
  border: 0; padding: 0; background: var(--surface); color: var(--ink);
  border-radius: 22px; width: min(640px, calc(100vw - 20px)); max-height: calc(100dvh - 24px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
dialog::backdrop { background: rgba(10, 10, 10, 0.45); backdrop-filter: blur(3px); }
.dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dlg-head { padding: 18px 20px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--grid); }
.dlg-head h2 { margin: 0; font-size: 18px; }
.dlg-err { margin: 12px 20px 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad-ink); font-weight: 650; font-size: 14px; }
.dlg-err:empty, .dlg-err[hidden] { display: none; }
.dlg-body { padding: 16px 20px; overflow-y: auto; }
.dlg-foot { padding: 12px 20px 18px; border-top: 1px solid var(--grid); display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 600px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .dlg { max-height: 92dvh; }
  .dlg-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.group-title { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14px; margin: 16px 0 8px; }
.group-title:first-child { margin-top: 0; }
.live-total { position: sticky; bottom: -16px; background: var(--surface); padding: 12px 0 2px; border-top: 1px solid var(--grid); margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-total div { font-size: 12px; color: var(--muted); }
.live-total b { display: block; font-size: 15px; color: var(--ink); }

.toast { position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.big { top: 50%; bottom: auto; min-width: min(320px, calc(100vw - 32px)); transform: translate(-50%, -50%) scale(.96); padding: 18px 24px; font-size: 17px; text-align: center; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.toast.big.show { transform: translate(-50%, -50%) scale(1); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 30; border-radius: 16px; box-shadow: 0 10px 24px -8px rgba(42,120,214,.6); min-height: 52px; padding: 0 18px; }
@media (min-width: 900px) { .fab { display: none; } }
.desktop-only { display: none; }
@media (min-width: 900px) { .desktop-only { display: inline-flex; } }

details.box { border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; background: var(--surface); }
details.box > summary { cursor: pointer; padding: 12px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 400; }
details.box[open] > summary::after { content: "−"; }
details.box > div { padding-bottom: 14px; }

.method ol { padding-left: 18px; margin: 8px 0 0; }
.method li { margin-bottom: 6px; color: var(--ink-2); font-size: 13.5px; }
.range-note { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.only-mob { display: flex; }
.only-desk { display: none; }
@media (min-width: 700px) { .only-mob { display: none; } .only-desk { display: block; } }
.list-item.clickable { cursor: pointer; }
.list-item .s { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.live-total small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) {
  table { font-size: 13px; }
  th, td { padding: 8px 6px; }
  .live-total b { font-size: 14px; }
}

/* ---------- v2: blocco, assistente, fisco, modulo mese ---------- */
#appRoot { transition: filter .35s ease; }
#appRoot.blurred { filter: blur(18px) saturate(.9); pointer-events: none; user-select: none; }
.lock { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--page) 35%, transparent); }
.lock[hidden] { display: none; }
.lock-card { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); padding: 26px 22px 20px; text-align: center; }
.lock-logo { width: 52px; height: 52px; border-radius: 14px; }
.lock-card h2 { margin: 12px 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.lock-sub { margin: 0; color: var(--ink-2); font-size: 14px; min-height: 20px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 20px 0 18px; }
.pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--axis); transition: all .15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.pin-dots.shake { animation: shake .4s; }
.pin-dots.shake i { border-color: var(--bad); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 58px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); font-size: 22px; font-weight: 600; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.keypad button:active { background: var(--accent-soft); transform: scale(.97); }
.keypad .kp-ghost { background: none; border-color: transparent; font-size: 15px; color: var(--ink-2); }
.keypad .kp-ghost[data-key="del"] { font-size: 22px; }
.linkbtn { margin-top: 14px; background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 13.5px; }
.head-lock { display: inline-flex; }
@media (min-width: 900px) { .head-lock { display: none; } }
.page-head .actions { align-items: center; }

.ai-card { background: linear-gradient(160deg, color-mix(in srgb, var(--series-7) 7%, var(--surface)), var(--surface) 55%); }
.ai-card h2 { display: flex; align-items: center; gap: 8px; }
.ai-card h2 svg, .card h2 svg { width: 19px; height: 19px; color: var(--series-7); flex-shrink: 0; }
.insights { margin: 4px 0 0; padding-left: 18px; }
.insights li { margin-bottom: 8px; color: var(--ink-2); font-size: 14px; }
.checks { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.check { font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.check.ok { color: var(--good-ink); }
.check.ko { color: var(--bad-ink); }

.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.ex-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 110px 36px; gap: 8px; align-items: center; }
@media (max-width: 600px) { .ex-row { grid-template-columns: minmax(0, 1fr) 104px 36px; } .ex-row [data-exk="cat"] { grid-column: 1 / 2; grid-row: 2; } .ex-row { row-gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--grid); } }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.acc-row.archived .input { opacity: .55; }
@media (max-width: 600px) { .acc-row { grid-template-columns: minmax(0, 1fr) auto; } .acc-row select { grid-column: 1 / 2; grid-row: 2; } .acc-row { padding-bottom: 8px; border-bottom: 1px solid var(--grid); } }
.opt-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.opt-head .sub { margin: 2px 0 0; }
.opt-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.opt-ico svg { width: 20px; height: 20px; }
.steps { padding-left: 18px; margin: 0 0 12px; color: var(--ink-2); }
.steps li { margin-bottom: 4px; }
.add-acc > summary { font-size: 14px; }
details.box > summary { gap: 8px; }
.bottom-nav { grid-template-columns: repeat(5, 1fr); }
.bottom-nav .nav-link { font-size: 10.5px; }
.bottom-nav .nav-link svg { width: 21px; height: 21px; }
@media (max-width: 899px) {
  .page-head { position: relative; padding-right: 44px; }
  .page-head .head-lock { position: absolute; top: 0; right: 0; }
}

/* ================= Dividi Spesa ================= */
:root { --accent: #13815f; --accent-soft: #e0f2ea; --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --series-8: #e34948; --gray-cat: #9a988f;--series-4-b: #b57b00; --series-5-b: #e84381; --series-6-b: #004b00; --series-8-b: #dc1817; --gray-cat-b: #888369; --series-4-c: #879600; --series-5-c: #ea5952; --series-6-c: #007933; --series-8-c: #dc6b17; --gray-cat-c: #89916f; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --accent: #1baf7a; --accent-soft: #143328; --accent-ink: #06140e; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-8: #e66767; --gray-cat: #75736c;--series-4-b: #a56d00; --series-5-b: #d82a69; --series-6-b: #005f00; --series-8-b: #e94040; --gray-cat-b: #6a6553; --series-4-c: #859100; --series-5-c: #dc4940; --series-6-c: #007933; --series-8-c: #dd6b19; --gray-cat-c: #73785f; } }
:root[data-theme="dark"] { --accent: #1baf7a; --accent-soft: #143328; --accent-ink: #06140e; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-8: #e66767; --gray-cat: #75736c;--series-4-b: #a56d00; --series-5-b: #d82a69; --series-6-b: #005f00; --series-8-b: #e94040; --gray-cat-b: #6a6553; --series-4-c: #859100; --series-5-c: #dc4940; --series-6-c: #007933; --series-8-c: #dd6b19; --gray-cat-c: #73785f; }
.bottom-nav { grid-template-columns: repeat(5, 1fr); }
.bottom-nav .nav-link { font-size: 11px; }
.fab { box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }

/* calendario */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-head h2 { font-size: 20px; margin: 0; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-day { position: relative; min-height: 58px; border-radius: 12px; border: 1px solid transparent; background: var(--surface-2); padding: 5px 4px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; font: inherit; color: inherit; }
.cal-day:hover { border-color: var(--axis); }
.cal-day.out { opacity: .35; }
.cal-day.today .n { background: var(--ink); color: var(--surface); }
.cal-day.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--surface); }
.cal-day .n { font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.cal-day .amt { font-size: 10.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cal-day .dots { display: flex; gap: 2px; flex-wrap: wrap; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; }
@media (min-width: 700px) { .cal-day { min-height: 76px; padding: 7px; } .cal-day .amt { font-size: 12px; } }

.all-exp-list { max-height: 440px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.exp-day-sep { position: sticky; top: 0; background: var(--surface); z-index: 1; padding: 7px 0 5px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--axis); }
.exp-day-sep:first-child { margin-top: 0; }
.exp-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grid); cursor: pointer; }
.exp-item:last-child { border-bottom: 0; }
.exp-item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.exp-item .ic svg { width: 20px; height: 20px; }
.exp-item .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-item .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-item .a { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.exp-item .a small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip .sw { width: 10px; height: 10px; border-radius: 50%; }
.chip.on .sw { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.split-prev { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; color: var(--ink); }
.split-prev b { font-variant-numeric: tabular-nums; }

.settle { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--accent-soft); }
.settle .big { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.settle .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.settle .ico svg { width: 22px; height: 22px; }
.settle.even { background: var(--surface-2); }
.settle.even .ico { background: var(--muted); }

.member-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--grid); }
.member-row:last-child { border-bottom: 0; }
.member-row .dot { width: 12px; height: 12px; }
.member-row .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.member-row .b { font-size: 12.5px; text-align: right; min-width: 88px; }

.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.fx-row:last-child { border-bottom: 0; }
.fx-row .t { font-weight: 650; }
.fx-row .s { font-size: 12.5px; color: var(--muted); }
.fx-row.pending .t::after { content: "da confermare"; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--series-4); }
.fx-row.removed { opacity: .5; }
.fx-row.removed .t { text-decoration: line-through; }
.fx-actions { display: flex; gap: 6px; align-items: center; }

.wizard { max-width: 560px; margin: 0 auto; }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.wiz-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--grid); }
.wiz-steps i.on { background: var(--accent); }
.wiz-card h1 { font-size: 26px; letter-spacing: -0.02em; margin: 6px 0 6px; }
.wiz-card p.lead { color: var(--ink-2); margin: 0 0 18px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; font-weight: 600; }
.stepper .n { font-size: 40px; font-weight: 800; min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit; }
.choice:hover { border-color: var(--accent); }
.choice .ci { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.choice .ci svg { width: 22px; height: 22px; }
.choice b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.choice span { font-size: 13.5px; color: var(--ink-2); }
.choice.main { border: 2px solid var(--accent); padding: 15px; }

.sync-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.sync-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync-pill.ok i { background: var(--good); }
.sync-pill.wait i { background: var(--warn); }
.sync-pill.err i { background: var(--bad); }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; background: var(--surface-2); border-radius: 12px; padding: 12px; border: 1px dashed var(--axis); user-select: all; }
.pie-legend { display: flex; flex-direction: column; gap: 8px; }
.pie-legend .row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 14px; }
.pie-legend .row i { width: 12px; height: 12px; border-radius: 3px; }
.pie-legend .row .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pie-legend .row .p { color: var(--muted); font-size: 12.5px; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.forecast-card .value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.head-sync { display: inline-flex; }
@media (max-width: 899px) { .page-head { position: relative; } }
.page-head { padding-right: 0 !important; }
.only-mob-inline { display: inline-flex; }
@media (min-width: 900px) { .only-mob-inline { display: none; } }
body.wiz .sidebar, body.wiz .bottom-nav { display: none !important; }
body.wiz main { padding-bottom: 40px; }
body.wiz .wizard { padding-top: 12px; }
@media (min-width: 900px) { body.wiz .wizard { padding-top: 48px; } }
.cal-head h1 { font-size: 22px; }
@media (min-width: 900px) { .cal-head h1 { font-size: 28px; } }
@supports (padding: env(safe-area-inset-top)) { main { padding-top: max(20px, env(safe-area-inset-top)); } }

.exp-item .edit-hint svg { width: 13px; height: 13px; color: var(--muted); vertical-align: -1px; margin-left: 2px; }
.exp-item:active { background: var(--surface-2); }

.about { margin: 0 0 14px; border-left: 4px solid var(--accent); }
.about h2 { margin: 0 0 8px; font-size: 20px; }
.about p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.55; }
.about p:last-child { margin-bottom: 0; }
.about-pledge { background: var(--accent-soft, rgba(19,129,95,.1)); border-radius: 10px; padding: 10px 12px; color: var(--ink) !important; }

.credits { max-width: 880px; margin: 28px auto 0; padding: 16px 4px 0; border-top: 1px solid var(--line, rgba(128,128,128,.25)); text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.credits p { margin: 0 0 4px; }
.credits a { color: inherit; text-decoration: underline; }

#installBar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h, 64px) + 12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 12px; align-items: center; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 16px; padding: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.22); max-width: 560px; margin: 0 auto; }
#installBar img { border-radius: 10px; flex: none; }
#installBar .ib-t { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; }
#installBar .ib-t span { color: var(--ink-2, var(--muted)); }
#installBar .ib-a { display: grid; gap: 6px; flex: none; }
#installBar .ib-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
#installBar .ib-step { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
#installBar .ib-arrow { color: var(--muted); font-size: 13px; }
body.wiz #installBar { bottom: 12px; }
@media (min-width: 900px) { #installBar { bottom: 16px; left: auto; right: 16px; margin: 0; } }

/* Account */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.avatar.big { width: 52px; height: 52px; font-size: 21px; }
.avatar-btn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 0 12px; border-radius: 12px; border: 1px solid var(--line, rgba(128,128,128,.25)); text-decoration: none; color: inherit; }
.user-chip:hover, .user-chip.active { background: var(--accent-soft, rgba(19,129,95,.1)); }
.user-chip b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.danger-zone { border-color: var(--bad-ink, #b3261e); }
.danger-zone > h2 { color: var(--bad-ink, #b3261e); }
.avatar.light { background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent); width: 38px; height: 38px; }
.profile-link { align-items: center; gap: 8px; padding: 3px 12px 3px 3px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line, rgba(128,128,128,.3)); background: var(--surface, transparent); text-decoration: none; color: var(--ink); font-weight: 650; font-size: 13.5px; }
.profile-link:hover, .profile-link:focus-visible { border-color: var(--accent); }
.profile-label { white-space: nowrap; }
.user-chip .chev { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
#appVer { white-space: nowrap; opacity: .85; }

/* v2.8: il tasto Spesa sparisce quando si arriva al piè di pagina */
.fab { transition: opacity .18s ease, transform .18s ease; }
.fab.fab-off { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }

/* v2.9: corona Premium, tasti "Passa a Premium", stato attivo */
.av-wrap { position: relative; display: inline-flex; flex: none; }
.crown { position: absolute; top: -12px; left: 50%; width: 20px; height: 20px; transform: translateX(-50%) rotate(-8deg); z-index: 2; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); pointer-events: none; }
.avatar.big + .crown, .av-wrap:has(.avatar.big) .crown { width: 26px; height: 26px; top: -16px; }
.profile-link { display: inline-flex; }
.profile-wrap { flex-direction: column; align-items: stretch; gap: 6px; }
.premium-link { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 22px 6px 16px; border-radius: 999px; background: linear-gradient(135deg, #ffd95a 0%, #f5b800 55%, #e09b00 100%); color: #3b2600; border: 1px solid #c98a00; font-weight: 750; font-size: 13.5px; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(120,80,0,.25); }
.premium-link:hover, .premium-link:focus-visible { filter: brightness(1.06); }
.premium-link .crown { position: absolute; top: -11px; right: -6px; left: auto; width: 22px; height: 22px; transform: rotate(12deg); }
.premium-side { display: flex; width: 100%; margin: 0 0 14px; border-radius: 12px; }
.prem-ok { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft, rgba(19,129,95,.1)); border: 1px solid var(--accent); margin-bottom: 12px; }
.prem-ok .crown { position: static; transform: none; width: 30px; height: 30px; flex: none; filter: none; }
.prem-ok p { margin: 4px 0 0; font-size: 13.5px; }
.prem-more { margin-top: 4px; }
.prem-more summary { cursor: pointer; font-weight: 650; font-size: 14px; min-height: 40px; display: flex; align-items: center; }

/* v2.9: avviso di scadenza */
.exp-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--accent-soft, rgba(19,129,95,.1)); border: 1px solid var(--accent); }
.exp-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 14px; }
.exp-banner .premium-link { flex: none; }
.prem-more summary.btn { list-style: none; width: 100%; justify-content: center; text-align: center; }
.prem-more summary.btn::-webkit-details-marker { display: none; }
.card { scroll-margin-top: 12px; }

/* v2.11: lucchetti Premium e tabella dei piani */
.lock-ico { width: 14px; height: 14px; flex: none; }
.lock-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #ffd95a, #f5b800); color: #3b2600; border: 1px solid #c98a00; font-size: 11.5px; font-weight: 750; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.lock-badge .lock-ico { width: 12px; height: 12px; }
h1 .lock-badge, h2 .lock-badge { font-size: 12px; }
.nav-ico { position: relative; display: inline-flex; }
.lock-mini { position: absolute; top: -5px; right: -9px; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: #f5b800; color: #3b2600; border: 1px solid #c98a00; }
.nav-link .lock-mini .lock-ico, .bottom-nav .nav-link .lock-mini .lock-ico { width: 9px; height: 9px; }
.sidebar .nav-link .lock-badge { margin-left: auto; font-size: 10.5px; padding: 1px 7px 1px 5px; }
.sidebar .nav-link .lock-badge .lock-ico { width: 11px; height: 11px; }
.btn .lock-ico { width: 16px; height: 16px; }

.plan-table { margin-top: 18px; border: 1px solid var(--line, rgba(128,128,128,.25)); border-radius: 14px; overflow: hidden; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px 108px; align-items: center; }
.pt-row + .pt-row { border-top: 1px solid var(--line, rgba(128,128,128,.2)); }
.pt-l { padding: 11px 12px; font-size: 14px; overflow-wrap: anywhere; }
.pt-c { padding: 11px 6px; text-align: center; font-size: 14px; font-weight: 650; display: flex; align-items: center; justify-content: center; align-self: stretch; }
.pt-p { background: rgba(245, 184, 0, .13); border-left: 1px solid rgba(201, 138, 0, .35); }
.pt-head .pt-c { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding-top: 14px; padding-bottom: 12px; }
.pt-head .pt-p { position: relative; color: #8a5a00; }
.pt-head .pt-p .crown { position: static; transform: none; width: 18px; height: 18px; margin-right: 4px; filter: none; }
.pt-yes { color: var(--accent); font-size: 18px; font-weight: 800; }
.pt-no { color: var(--muted); display: inline-flex; opacity: .75; }
.pt-no .lock-ico { width: 15px; height: 15px; }
.pt-foot .pt-l { padding-top: 14px; padding-bottom: 14px; }
.pt-foot .pt-c { padding: 14px 6px; }
.pt-foot .premium-link { padding: 6px 20px 6px 10px; min-height: 40px; font-size: 12.5px; white-space: normal; text-align: center; line-height: 1.2; }
.pt-foot .premium-link .crown { top: -12px; right: -5px; }
@media (min-width: 560px) { .pt-row { grid-template-columns: minmax(0, 1fr) 100px 150px; } .pt-foot .premium-link { font-size: 13.5px; } }

/* v2.13: pagina di benvenuto (landing) */
.returning #landing { display: none; }
/* Chi torna non vede la landing: finché l'app non ha finito di avviarsi, mostra questo invece di una pagina vuota (sopra il footer). render() lo sovrascrive appena pronto. */
.boot-loader { display: none; }
.returning .boot-loader { display: flex; align-items: center; justify-content: center; min-height: min(60vh, 420px); }
/* Cerchio di caricamento a particelle in orbita (stile React Bits/Uiverse, solo CSS): 13 puntini in orbita su un asse che ruota lentamente; colore = accento */
.boot-orbit { --bs: 45px; --bsp: 1.75s; position: relative; width: var(--bs); height: var(--bs); animation: boot-rot calc(var(--bsp) * 4) linear infinite; }
.boot-orbit i { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.boot-orbit i::before { content: ""; position: absolute; width: 17.5%; height: 17.5%; border-radius: 50%; background: var(--accent); animation: boot-orb var(--bsp) linear calc(var(--d) * var(--bsp)) infinite; }
.boot-orbit i:nth-child(1) { --d: 0; transform: rotate(8deg); }
.boot-orbit i:nth-child(2) { --d: -0.4; transform: rotate(36deg); }
.boot-orbit i:nth-child(3) { --d: -0.9; transform: rotate(72deg); }
.boot-orbit i:nth-child(4) { --d: -0.5; transform: rotate(90deg); }
.boot-orbit i:nth-child(5) { --d: -0.3; transform: rotate(144deg); }
.boot-orbit i:nth-child(6) { --d: -0.2; transform: rotate(180deg); }
.boot-orbit i:nth-child(7) { --d: -0.6; transform: rotate(216deg); }
.boot-orbit i:nth-child(8) { --d: -0.7; transform: rotate(252deg); }
.boot-orbit i:nth-child(9) { --d: -0.1; transform: rotate(300deg); }
.boot-orbit i:nth-child(10) { --d: -0.8; transform: rotate(324deg); }
.boot-orbit i:nth-child(11) { --d: -1.2; transform: rotate(335deg); }
.boot-orbit i:nth-child(12) { --d: -0.5; transform: rotate(290deg); }
.boot-orbit i:nth-child(13) { --d: -0.2; transform: rotate(240deg); }
@keyframes boot-rot { to { transform: rotate(360deg); } }
@keyframes boot-orb {
  0% { transform: translate(calc(var(--bs) * 0.5)) scale(0.73684); opacity: 0.65; }
  5% { transform: translate(calc(var(--bs) * 0.4)) scale(0.684208); opacity: 0.58; }
  10% { transform: translate(calc(var(--bs) * 0.3)) scale(0.631576); opacity: 0.51; }
  15% { transform: translate(calc(var(--bs) * 0.2)) scale(0.578944); opacity: 0.44; }
  20% { transform: translate(calc(var(--bs) * 0.1)) scale(0.526312); opacity: 0.37; }
  25% { transform: translate(calc(var(--bs) * 0.0)) scale(0.47368); opacity: 0.3; }
  30% { transform: translate(calc(var(--bs) * -0.1)) scale(0.526312); opacity: 0.37; }
  35% { transform: translate(calc(var(--bs) * -0.2)) scale(0.578944); opacity: 0.44; }
  40% { transform: translate(calc(var(--bs) * -0.3)) scale(0.631576); opacity: 0.51; }
  45% { transform: translate(calc(var(--bs) * -0.4)) scale(0.684208); opacity: 0.58; }
  50% { transform: translate(calc(var(--bs) * -0.5)) scale(0.73684); opacity: 0.65; }
  55% { transform: translate(calc(var(--bs) * -0.4)) scale(0.789472); opacity: 0.72; }
  60% { transform: translate(calc(var(--bs) * -0.3)) scale(0.842104); opacity: 0.79; }
  65% { transform: translate(calc(var(--bs) * -0.2)) scale(0.894736); opacity: 0.86; }
  70% { transform: translate(calc(var(--bs) * -0.1)) scale(0.947368); opacity: 0.93; }
  75% { transform: translate(calc(var(--bs) * 0.0)) scale(1); opacity: 1; }
  80% { transform: translate(calc(var(--bs) * 0.1)) scale(0.947368); opacity: 0.93; }
  85% { transform: translate(calc(var(--bs) * 0.2)) scale(0.894736); opacity: 0.86; }
  90% { transform: translate(calc(var(--bs) * 0.3)) scale(0.842104); opacity: 0.79; }
  95% { transform: translate(calc(var(--bs) * 0.4)) scale(0.789472); opacity: 0.72; }
  100% { transform: translate(calc(var(--bs) * 0.5)) scale(0.73684); opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) { .boot-orbit { animation: none; } }
.wiz-card h2.wiz-title { font-size: 26px; letter-spacing: -0.02em; margin: 6px 0 6px; }
.lp-btn { min-height: 48px; padding: 0 22px; font-size: 16px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Assegni e contributi, valute */
.exp-item .a.pos { color: var(--good-ink); }
.neg { color: var(--bad-ink); font-weight: 650; }
.inc-grid { display: grid; gap: 8px; margin-top: 10px; }
.inc-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(120px, 150px); gap: 10px; align-items: center; font-weight: 600; }
.inc-row .input-euro .input { min-height: 44px; }
.input-euro[data-sym] .input { padding-right: 52px; }
.input-euro[data-sym]::after { content: attr(data-sym); font-size: 13px; font-weight: 650; }
.cur-lock { justify-self: start; }
.cur-lock .lock-ico { width: 14px; height: 14px; }
.cur-box { margin-top: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.cur-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 650; }
.cur-line .input { width: 120px; min-height: 44px; text-align: right; }
.cur-conv { font-size: 14px; }
@media (max-width: 420px) { .inc-row { grid-template-columns: 10px minmax(0, 1fr) 118px; } }

/* v2.16: anteprime grafiche in landing */
.lp-shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 2px 14px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.lp-shots::-webkit-scrollbar { display: none; }
.lp-shot { margin: 0; flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; display: flex; flex-direction: column; gap: 12px; }
.lp-phone { border-radius: 30px; border: 7px solid #1c1c1e; background: #1c1c1e; box-shadow: 0 14px 34px rgba(0,0,0,.22); overflow: hidden; }
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 22px; background: var(--surface-2, #eee); }
.lp-shot figcaption { display: grid; gap: 4px; text-align: center; padding: 0 4px; }
.lp-shot figcaption b { font-size: 16px; line-height: 1.25; }
.lp-shot figcaption span { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.lp-shots-note { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
@media (min-width: 760px) {
  .lp-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; overflow: visible; margin: 0; padding: 4px 0 8px; }
  .lp-shot { flex: none; max-width: none; padding: 0 8px; }
}

/* v2.17: scheda Assegni e contributi accanto a "Chi deve a chi" (PC) e subito prima (mobile) */
.inc-title { display: flex; align-items: center; gap: 10px; }
.inc-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--series-2) 16%, transparent); color: var(--series-2); }
.inc-ic svg { width: 22px; height: 22px; }
@media (min-width: 700px) {
  #calCard { order: 1; } #dayCard { order: 2; } #settleCard { order: 3; } #incCard { order: 4; align-self: start; }
}

/* v2.18: scheda amministratore (codici Premium) */
.adm-form { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .adm-form { grid-template-columns: 2fr 1fr 2fr; align-items: end; } }
.adm-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line, rgba(128,128,128,.2)); }
.adm-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.adm-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-st { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.adm-st.free { background: rgba(19,129,95,.14); color: var(--accent); }
.adm-st.wait { background: rgba(245,184,0,.2); color: #8a5a00; }
.adm-st.used { background: rgba(128,128,128,.16); color: var(--muted); }

/* Lingue */
html.i18n-wait #view,html.i18n-wait .sidebar,html.i18n-wait .bottom-nav,html.i18n-wait .credits{visibility:hidden}
.lp-langs{display:flex;flex-wrap:wrap;gap:6px}

/* Invito a partire e notifiche */
.start-card{border:1.5px solid color-mix(in srgb,var(--accent) 45%,transparent);background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 7%,var(--surface)),var(--surface));margin-bottom:16px}
.start-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.start-head h2{margin:0 0 4px;font-size:19px}
.start-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.start-steps{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.start-steps li{display:flex;align-items:center;gap:10px;font-size:14px}
.start-steps .st-t{flex:1;min-width:0}
.start-steps .st-ic{flex:0 0 22px;height:22px;border-radius:50%;border:2px solid var(--axis);display:grid;place-items:center}
.start-steps li.done .st-ic{background:var(--good);border-color:var(--good);color:#fff}
.start-steps li.done .st-ic svg{width:14px;height:14px}
.start-steps li.done .st-t{color:var(--muted);text-decoration:line-through}
.push-ask{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px;padding:14px 16px}
.push-ic{flex:0 0 40px;height:40px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.push-ic svg{width:22px;height:22px}
.push-btns{display:flex;gap:8px;margin-left:auto}
@media (max-width:520px){.push-btns{width:100%;margin-left:0}.push-btns .btn{flex:1}}
.push-opts{display:grid;gap:10px;margin-top:14px}
@keyframes fabPulse{0%,100%{box-shadow:0 10px 24px -8px color-mix(in srgb,var(--accent) 70%,transparent),0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}60%{box-shadow:0 10px 24px -8px color-mix(in srgb,var(--accent) 70%,transparent),0 0 0 14px transparent}}
body.no-exp .fab{animation:fabPulse 2.2s ease-out infinite}
@media (prefers-reduced-motion:reduce){body.no-exp .fab{animation:none}}

@media (min-width: 1100px) { .lp-shots { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.btn.wrap{white-space:normal;max-width:100%;height:auto;min-height:44px;text-align:center;line-height:1.25;padding-top:8px;padding-bottom:8px}

/* Statistiche: banner di scelta e cruscotto amministratore */
.consent{position:fixed;left:12px;right:12px;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));z-index:90;max-width:720px;margin:0 auto;max-height:calc(100vh - var(--nav-h) - 28px);overflow:auto}
.consent[hidden]{display:none}
.consent-in{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;background:var(--surface);color:var(--ink);border:1px solid var(--axis);border-radius:16px;box-shadow:var(--shadow);padding:14px 16px}
.consent-tx{flex:1 1 240px;min-width:0}
.consent-tx p{margin:4px 0 0;font-size:14px;line-height:1.45}
.consent-btns{display:flex;gap:8px;width:100%}
.consent-btns .btn{flex:1}
@media (min-width:900px){.consent{left:auto;right:20px;bottom:20px;max-width:560px;margin:0}}
.st-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin:12px 0}
.st-tile{background:var(--surface-2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.st-tile b{font-size:22px;line-height:1.1}
.st-tile span{font-size:13px;color:var(--ink-2)}
.st-tile small{font-size:11px;color:var(--muted)}
.st-h{margin:18px 0 8px;font-size:15px}
.st-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0}
.st-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.st-cal>span:not(.st-c){font-size:11px;color:var(--muted);text-align:center}
.st-c{position:relative;min-height:48px;border-radius:8px;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px}
.st-c.off{background:transparent}
.st-c.today{outline:2px solid var(--accent)}
.st-c i{position:absolute;top:2px;left:4px;font-size:10px;color:var(--muted);font-style:normal}
.st-c b{font-size:15px}
.st-c em{font-size:10px;color:var(--good-ink);font-style:normal;line-height:1}
.st-year{display:flex;align-items:stretch;gap:6px;height:170px}
.st-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px}
.st-bw{flex:1;width:100%;display:flex;align-items:flex-end}
.st-bw i{display:block;width:100%;background:var(--accent);border-radius:4px 4px 0 0;min-height:2px}
.st-col b{font-size:11px;min-height:14px}
.st-col span{font-size:10px;color:var(--muted)}
.st-col em{font-size:10px;color:var(--good-ink);font-style:normal;min-height:12px}
.st-30{gap:2px}.st-30 .st-col span{font-size:9px}
.st-bars{display:grid;gap:8px}
.st-bar{display:grid;grid-template-columns:minmax(90px,30%) 1fr auto;gap:8px;align-items:center;font-size:13px}
.st-bt{background:var(--surface-2);border-radius:6px;height:10px;overflow:hidden}
.st-bt i{display:block;height:100%;background:var(--accent)}
.st-bv{color:var(--ink-2);font-size:12px;white-space:nowrap}
@media (max-width:520px){.st-bar{grid-template-columns:1fr auto}.st-bar .st-bt{grid-column:1/-1;order:3}}

.st-delta{font-size:11px;font-weight:600;margin-top:2px}
.st-delta.up{color:var(--good-ink)}
.st-delta.down{color:var(--bad-ink)}
.st-delta.flat{color:var(--muted);font-weight:400}
.st-custom{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}
.st-custom label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-2)}
.st-custom input[type="date"]{font:inherit;color:var(--ink);background:var(--surface-2);border:1px solid var(--axis);border-radius:8px;padding:5px 8px}
.st-members{grid-template-columns:repeat(2,1fr)}
.st-big{background:var(--accent-soft)}
.st-big b{font-size:28px}
@media (min-width:700px){.st-members{grid-template-columns:repeat(4,1fr)}}

.st-ch{display:grid;grid-template-columns:1.3fr repeat(4,1fr);gap:6px;padding:7px 4px;border-bottom:1px solid var(--axis);font-size:13px;text-align:right}
.st-ch span:first-child{text-align:left}
.st-chh{font-size:11px;color:var(--muted);font-weight:600}

/* Risparmi personali: su PC è una pagina a parte (menu a sinistra), su telefono sta sotto "Conti e risparmi" */
.pill.vinc svg.lock-ico { width: 12px; height: 12px; vertical-align: -1px; }
.mine-in { width: 88px; text-align: right; min-height: 36px; padding: 4px 8px; }
@media (max-width: 600px) { .mine-in { width: 74px; padding: 4px 6px; font-size: 14px; } td.mine-m { white-space: nowrap; } td.mine-m .pill { display: none; } }

/* ----- Paywall, anteprime sfocate, limite spese ----- */
.pw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pw-list li { display: flex; gap: 10px; align-items: flex-start; }
.pw-list svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.pw .dlg-foot { justify-content: flex-end; }
.pw-card { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; border: 1px solid var(--accent); }
.pw-card.span-2 { grid-column: 1 / -1; }
.pw-card .ico { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft, rgba(26,127,90,.12)); color: var(--accent); }
.pw-card .ico svg { width: 22px; height: 22px; }
.pw-card h2 { margin: 0 0 4px; font-size: 17px; }
.pw-card p { margin: 0 0 12px; }
.limit-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* Card di anteprima Premium per chi non ha sbloccato: due etichette fisse negli angoli, così è impossibile scambiarle per
   la vista completa, anche a colpo d'occhio. Dentro, solo i primi due elementi sono dati reali: il resto non è scritto nel
   DOM (niente da "smascherare" con gli strumenti per sviluppatori), solo un blocco con lucchetto e bottone di sblocco. */
.fake-card { position: relative; overflow: hidden; }
.fake-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.fake-tag { position: absolute; top: 0; z-index: 1; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 750; letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 9px; line-height: 1.4; }
.fake-tag.ex { left: 0; border-radius: var(--radius) 0 10px 0; background: var(--surface-2); color: var(--ink-2); }
.fake-tag.prem { right: 0; border-radius: 0 var(--radius) 0 10px; background: linear-gradient(135deg, #ffd95a, #f5b800); color: #3b2600; }
.fake-tag.prem .crown { width: 12px; height: 12px; }
.fake-card > h2, .fake-card > .card-head { margin-top: 20px; }
/* Blocco di chiusura del teaser: stesso posto degli elementi reali mostrati sopra, ma senza alcun dato dentro. */
.teaser-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; color: var(--muted); border-top: 1px dashed var(--grid); margin-top: 4px; cursor: pointer; }
.teaser-more .lock-ico { width: 14px; height: 14px; vertical-align: -2px; }
.pie-legend .row.teaser-more { border-top: 1px dashed var(--grid); }
tr.teaser-more td { text-align: left; color: var(--muted); padding-top: 12px; }
tr.teaser-more .lock-ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.fake-bar-col.teaser-more { cursor: pointer; }
.fake-bar.locked { background: var(--surface-2); opacity: 1; display: grid; place-items: center; height: 60%; min-height: 48px; }
.fake-bar.locked .lock-ico { width: 16px; height: 16px; color: var(--muted); }
.kpi.locked .value { color: var(--muted); display: flex; align-items: center; }
.kpi.locked .lock-ico { width: 18px; height: 18px; }
.locked-value { color: var(--muted); display: flex; align-items: center; }
.locked-value .lock-ico { width: 22px; height: 22px; }
.pt-group { padding: 14px 4px 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); border-top: 1px solid var(--line, rgba(128,128,128,.2)); }
.pt-group:first-of-type { border-top: 0; }
.good { color: var(--good-ink); font-weight: 650; }
.bad { color: var(--bad-ink); font-weight: 650; }
@media (max-width: 899px) { .bottom-nav { grid-template-columns: repeat(5, 1fr); } .bottom-nav .nav-link { font-size: 10.5px; padding-left: 2px; padding-right: 2px; } }
.month-end { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 0; }
.month-end .ico { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.month-end .ico svg { width: 22px; height: 22px; }
.month-end p { margin: 4px 0 6px; }
.fam-links .actions { gap: 8px; flex-wrap: wrap; }
.month-end { margin-bottom: 14px; }

/* spese personali extra */
.mx-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mx-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #e5e2da); border-radius: 12px; }
.mx-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.mx-r { display: flex; align-items: center; gap: 4px; flex: none; }

/* percorso (breadcrumb) nelle schermate collegate */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; font-size: 14px; color: var(--muted, #6b6b66); }
.crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; text-decoration: none; padding: 6px 10px 6px 4px; border-radius: 8px; min-height: 36px; }
.crumb a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.crumb a svg { width: 16px; height: 16px; }
.crumb [aria-current] { color: var(--ink); }

/* invito a importare lo storico */
.hist-cta { display: grid; gap: 8px; justify-items: start; padding: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, transparent); margin-top: 12px; }
.hist-cta b { font-size: 15px; }
.card.hist-cta { padding: 16px; }
.limit-note.soft { background: transparent; border: 1px dashed var(--line, #d8d4c8); color: inherit; }

/* sezioni gemelle della pagina Previsioni */
.fc-sec { margin: 0 0 12px; }
.fc-sec h2 { margin: 0; font-size: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fc-sec .sub { margin: 4px 0 0; }

/* spese: colonne separate su schermi larghi, riga unica con dettaglio su telefono */
.c-d { display: none; }
.s-m { display: block; font-weight: 400; white-space: normal; max-width: 118px; margin-left: auto; line-height: 1.3; }
@media (min-width: 700px) { .c-d { display: table-cell; } .s-m { display: none; } }

/* ===== Riorganizzazione: Spese famiglia / Spese mie / Analisi / Previsioni ===== */
.sec-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 2px 0 6px; }
.sec-tag .pill { text-transform: none; letter-spacing: 0; font-size: 11px; }
.mine-intro p { color: var(--ink-2); }
.hist-cta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--surface-2); }
.hist-cta .actions { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn.wrap { white-space: normal; text-align: center; height: auto; min-height: 40px; }
.seg-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; margin: 4px 0 14px; }
.seg-tabs a, .seg-tabs button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; font-size: 14px; padding: 10px 8px; border-radius: 10px; text-align: center; cursor: pointer; text-decoration: none; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg-tabs .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sec-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.tour-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 45; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.tour-bar .t-row { display: flex; align-items: center; gap: 10px; }
.tour-bar .t-txt { flex: 1; min-width: 0; font-size: 14px; }
.tour-bar .t-txt b { display: block; font-size: 12px; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.tour-bar .t-dots { display: flex; gap: 5px; }
.tour-bar .t-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--border); }
.tour-bar .t-dots i.on { background: var(--accent); }
.tour-bar .t-skip { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; padding: 6px 0; cursor: pointer; align-self: center; }
@media (min-width: 900px) { .tour-bar { left: 240px; bottom: 0; max-width: 760px; margin: 0 auto; right: 0; border: 1px solid var(--border); border-radius: 16px 16px 0 0; } }
.pf-cards { display: grid; gap: 12px; }
.pf-card { border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--surface); }
.pf-card h3 { margin: 0 0 8px; font-size: 16px; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.pf-row:first-of-type { border-top: 0; }
.pf-row span:first-child { color: var(--ink-2); min-width: 0; }
.pf-row b { white-space: nowrap; }
.calc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 15px; }
.calc-row:first-child { border-top: 0; }
.calc-row > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.calc-row small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.calc-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-row.total { border-top: 2px solid var(--ink); font-size: 17px; margin-top: 4px; }
.calc-row.good b { color: var(--good-ink); } .calc-row.bad b { color: var(--bad-ink); }
.dlg.quick .fld-adv { display: none; }
body.tour-on #view { padding-bottom: 190px; }
body.tour-on .fab { bottom: calc(var(--nav-h) + 170px + env(safe-area-inset-bottom)); }
.seg-tabs svg { width: 18px; height: 18px; flex-shrink: 0; }
.sec-label svg, .sec-tag svg { width: 16px; height: 16px; flex-shrink: 0; }
.sec-label .crown { width: 18px; height: 18px; }
.sec-label .crown { position: static; transform: none; filter: none; }

/* Landing: selettore lingua con bandierine, in alto a destra */
.lp-langs{flex-wrap:nowrap;gap:6px;justify-content:flex-end}
.lp-langs button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:36px;min-height:36px;padding:0;border-radius:10px;border:2px solid transparent;background:transparent;opacity:.75}
.lp-langs button svg{width:28px;height:20px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.lp-langs button.on{background:transparent;border-color:var(--accent);opacity:1}
.lp-langs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* video embed (landing + popup) */
.lp-video-wrap { display: flex; justify-content: center; margin: 32px 0; }
.video-embed { aspect-ratio: 16/9; width: 100%; max-width: 720px; border: 0; border-radius: 16px; display: block; }
.help-video { margin: 12px 0 16px; display: flex; justify-content: center; }
.help-video .video-embed { max-width: 100%; border-radius: 12px; }
.video-embed.is-v { aspect-ratio: 9/16; max-width: 360px; }
.help-video .video-embed.is-v { max-width: min(100%, 320px); }

.help-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, rgba(128,128,128,.3)); background: var(--surface); color: var(--ink-2); font-weight: 750; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.help-btn:hover, .help-btn:focus-visible { border-color: var(--accent); color: var(--accent); }

.help-dlg { position: relative; border: 0; border-radius: 20px; padding: 20px; max-width: min(380px, 94vw); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.help-dlg::backdrop { background: rgba(0,0,0,.5); }
.help-dlg h2 { margin: 4px 36px 14px 0; font-size: 18px; line-height: 1.3; }
.dlg-close:hover { background: var(--accent-soft); color: var(--accent); }
.help-tour { margin-top: 14px; text-align: center; }
.help-tour .btn { width: 100%; justify-content: center; }
.help-tour p { margin: 8px 0 0; }
/* icona "?" sempre in alto a destra dell'intestazione (su schermi stretti, dove i controlli andrebbero a capo) */
@media (max-width: 899px) {
  .page-head { position: relative; }
  .page-head > div:first-child { padding-right: 46px; }
  .page-head .help-btn { position: absolute; top: 0; right: 0; }
}

/* Totale ben visibile sopra i risultati di una ricerca (famiglia e personale), solo Premium */
.search-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.search-total span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.search-total b { font-size: 19px; font-weight: 800; color: var(--accent); }
.search-total.locked { background: var(--surface-2); border-color: var(--border); }
.search-total.locked span { display: flex; align-items: center; gap: 6px; }
.search-total:empty { display: none; margin: 0; padding: 0; border: 0; }

/* Budget bar: gradiente verde > giallo > arancio > rosso, ancorato alla barra intera */
.bud-bar-wrap { padding: 6px 0 2px; --bud-c: #16a34a; }
.bud-mid { --bud-c: #ca8a04; } .bud-high { --bud-c: #ea580c; } .bud-over { --bud-c: #dc2626; }
.bud-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.bud-pct { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--bud-c); }
.bud-msg { font-size: 13px; font-weight: 600; color: var(--bud-c); text-align: right; }
.bud-bar-track { position: relative; height: 20px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, #22c55e, #a3e635 28%, #facc15 55%, #fb923c 78%, #ef4444); box-shadow: inset 0 1px 3px rgba(0,0,0,.18); }
.bud-bar-track::before { content: ""; position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--surface, #fff) 82%, transparent); }
.bud-bar-fill { position: relative; z-index: 1; height: 100%; min-width: 20px; border-radius: 999px; background-image: linear-gradient(90deg, #22c55e, #a3e635 28%, #facc15 55%, #fb923c 78%, #ef4444); background-repeat: no-repeat; box-shadow: 0 0 12px color-mix(in srgb, var(--bud-c) 55%, transparent); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bud-bar-fill::after { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 6px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); }
.bud-over .bud-bar-fill { animation: budPulse 1.8s ease-in-out infinite; }
@keyframes budPulse { 50% { box-shadow: 0 0 18px rgba(239,68,68,.85); } }
@media (prefers-reduced-motion: reduce) { .bud-over .bud-bar-fill { animation: none; } .bud-bar-fill { transition: none; } }
.bud-bar-labels { display: flex; justify-content: space-between; margin-top: 8px; }
.bud-teaser { cursor: pointer; }
.bud-teaser .actions { justify-content: flex-start; }
.bud-over-txt { color: var(--bad-ink); }
/* Netto disponibile: toggles */
.mine-net-cfg { background: var(--surface-2, #f5f2ec); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.mine-net-cfg-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 2px; }

/* Selettore Famiglia | Personale (Analisi e Previsioni): pulsanti in rilievo, ben visibili.
   Arancione della tavolozza dei grafici (--series-2), non un colore nuovo */
.seg-tabs { background: transparent; padding: 0; gap: 10px; }
.seg-tabs a, .seg-tabs button { background: var(--surface); color: var(--ink); border: 1.5px solid var(--series-2); box-shadow: 0 3px 0 color-mix(in srgb, var(--series-2) 45%, transparent), 0 4px 10px rgba(0,0,0,.08); transition: transform .08s, box-shadow .08s; }
.seg-tabs .on { background: linear-gradient(180deg, var(--series-2), var(--series-2-b)); color: #fff; border-color: var(--series-2-b); box-shadow: 0 3px 0 color-mix(in srgb, var(--series-2-b) 75%, #000), 0 6px 14px color-mix(in srgb, var(--series-2) 35%, transparent); }
.seg-tabs a:active, .seg-tabs button:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--series-2) 45%, transparent); }

/* Barra del budget: più alta, tacche ai quarti, tacca «oggi» (ritmo del mese) e modifica del budget subito sotto */
.bud-bar-track { height: 22px; overflow: visible; }
.bud-bar-track::before { border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), color-mix(in srgb, var(--ink) 14%, transparent) calc(25% - 1px) 25%), color-mix(in srgb, var(--surface, #fff) 82%, transparent); }
.bud-pace { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; z-index: 2; opacity: .75; }
.bud-pace i { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.bud-bar-track:has(.bud-pace) + .bud-bar-labels { margin-top: 20px; }
.bud-pace-txt { margin: 6px 0 0; }
.bud-act { margin-top: 12px; }
.bud-act .btn svg { width: 16px; height: 16px; }
.bud-edit { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.bud-edit-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; }
.bud-edit-row .input-euro { flex: 1; min-width: 140px; }
/* Barra del budget: più aria tra barra, etichetta «mese prec.», importi, frase e pulsante */
.bud-bar-head { margin-bottom: 14px; }
.bud-pace i { top: calc(100% + 6px); }
.bud-bar-track:has(.bud-pace) + .bud-bar-labels { margin-top: 34px; }
.bud-bar-labels { margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.bud-pace-txt { margin: 12px 0 0; line-height: 1.5; }
.bud-act { margin-top: 18px; }
/* Report PDF: riquadro in Analisi e scelta delle sezioni */
.rep-card h2 svg { width: 18px; height: 18px; vertical-align: -3px; }
.rep-card { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--border)); }
.rep-sect { display: grid; gap: 8px; margin-top: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* carosello 3D delle schermate */
.lp-shots, .lp-shots[role="list"] { display: flex !important; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; perspective: 1200px; margin: 0 -16px; padding: 24px 16px 22px; scrollbar-width: none; }
.lp-shot { flex: 0 0 min(260px, 70vw) !important; max-width: none !important; padding: 0 !important; scroll-snap-align: center; transform: rotateY(var(--sr, 0deg)) scale(var(--ss, 1)); opacity: var(--so, 1); transition: transform .25s ease-out, opacity .25s; transform-style: preserve-3d; }
.lp-shot .lp-phone { border-radius: 32px; border-width: 8px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); position: relative; }
.lp-shot .lp-phone::after { content: ""; position: absolute; inset: 0; border-radius: 24px; background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 35%); pointer-events: none; }
@media (min-width: 900px) { .lp-shots { margin: 0; padding: 24px calc(50% - 140px) 22px; } }
.lp-shots-nav { display: flex; justify-content: center; gap: 10px; margin: 4px 0 6px; }
.lp-shots-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); background: var(--surface); color: var(--ink); font-size: 20px; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0,0,0,.3); transition: transform .2s; }
.lp-shots-nav button:hover { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .lp-shot { transform: none !important; opacity: 1 !important; } }
/* le fasce della landing sono larghe quanto lo schermo: la pagina non deve scorrere di lato (il taglio è sul bordo dello schermo, main) */
main:has(.landing) { overflow-x: clip; }

/* ===== «Dai un'occhiata»: anello 3D a 360°, tutte le schermate della stessa misura ===== */
.lp-shots.on { display: block !important; --w: clamp(190px, 52vw, 250px); position: relative; overflow: visible !important; scroll-snap-type: none; perspective: 1500px; perspective-origin: 50% 45%; height: calc(var(--w) * 1.944 + 64px); margin: 0 !important; padding: 0 !important; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: 4px; }
.lp-shots.on.grab { cursor: grabbing; }
.lp-shots.on::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: calc(var(--w) * 1.5); height: 28px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.3), transparent); filter: blur(6px); pointer-events: none; }
.lp-ring { position: absolute; left: 50%; top: 30px; width: var(--w); height: calc(var(--w) * 1.944); margin-left: calc(var(--w) / -2); transform-style: preserve-3d; transform: translateZ(calc(var(--r, 300px) * -1)) rotateY(var(--a, 0deg)); will-change: transform; }
.lp-ring .lp-shot { position: absolute; inset: 0; width: var(--w) !important; flex: none !important; display: block; transform: rotateY(calc(var(--i) * var(--st, 45deg))) translateZ(var(--r, 300px)); opacity: var(--so, 1); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: none; }
.lp-ring .lp-shot .lp-phone { position: relative; height: 100%; }
.lp-ring .lp-shot .lp-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0; -webkit-user-drag: none; pointer-events: none; }
.lp-cap { display: grid; max-width: 540px; margin: 10px auto 0; padding: 0 8px; text-align: center; }
.lp-cap figcaption { grid-area: 1 / 1; display: grid; gap: 6px; align-content: start; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.lp-cap figcaption.on { opacity: 1; transform: none; pointer-events: auto; }
.lp-cap figcaption b { font-size: 18px; }
.lp-dots { display: inline-flex; align-items: center; gap: 4px; }
.lp-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.lp-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: transform .25s, background .25s; }
.lp-dots button.on::before { background: var(--accent); transform: scale(1.5); }
.lp-shots-nav { align-items: center; margin: 10px 0 6px; }
@media (prefers-reduced-motion: reduce) { .lp-ring .lp-shot { transform: rotateY(calc(var(--i) * var(--st, 45deg))) translateZ(var(--r, 300px)) !important; opacity: var(--so, 1) !important; } .lp-cap figcaption { transition: none; } }
.lp-ring .lp-shot .lp-phone { box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }

/* ===== «Dai un'occhiata»: pila di carte che si scambiano (cardswap.js, da React Bits) ===== */
.lp-swap { display: grid; gap: 8px; align-items: center; max-width: 1000px; margin: 0 auto; }
.lp-swap-box { min-width: 0; }
.lp-swap-side { display: grid; justify-items: center; min-width: 0; }
.lp-swap .lp-cap { width: 100%; min-height: 128px; margin-top: 4px; color: var(--lp-ink2, var(--ink-2)); }
.lp-swap .lp-cap figcaption b { color: var(--lp-ink, var(--ink)); }
@media (min-width: 900px) {
  .lp-swap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
  .lp-swap-side { justify-items: start; }
  .lp-swap .lp-cap { text-align: left; min-height: 150px; max-width: 420px; margin: 0 0 8px; padding: 0; }
  .lp-swap .lp-cap figcaption b { font-size: 22px; }
  .lp-swap .lp-cap figcaption span { font-size: 16px; }
}
.card-swap { clip-path: inset(-80px -48px -36px -48px); /* la carta che esce non deve passare sopra il testo e le sezioni sotto */ --swap-shade: var(--lp-alt, var(--surface-2)); --swap-shadow: 0 30px 60px -28px rgba(0,0,0,.45), 0 10px 24px -14px rgba(0,0,0,.3); --swap-edge: rgba(255,255,255,.1); --swap-light: rgba(255,255,255,.16); position: relative; width: 100%; outline: none; -webkit-tap-highlight-color: transparent; }
.card-swap-sizer { max-height: 100%; overflow: hidden; pointer-events: none; }
.card-swap-sizer > span { display: block; width: 100%; max-width: var(--swap-stage-w); aspect-ratio: var(--swap-ratio); }
.card-swap-stage { position: absolute; top: 50%; left: 50%; width: var(--swap-stage-w); height: var(--swap-stage-h); perspective: 900px; transform: translate(-50%, -50%); pointer-events: none; }
.card-swap-slot { position: absolute; top: var(--swap-oy); left: var(--swap-ox); width: var(--swap-w); height: var(--swap-h); margin: calc(var(--swap-h) / -2) 0 0 calc(var(--swap-w) / -2); border-radius: var(--swap-radius); overflow: hidden; isolation: isolate; box-shadow: var(--swap-shadow); pointer-events: auto; user-select: none; -webkit-user-select: none; touch-action: pan-y; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-swap:focus-visible .card-swap-slot[data-front] { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-swap-shade { position: absolute; inset: 0; z-index: 3; border-radius: inherit; background: var(--swap-shade); opacity: 0; pointer-events: none; }
.card-swap-card { position: relative; width: 100%; height: 100%; box-sizing: border-box; padding: 6px; border-radius: inherit; overflow: hidden; isolation: isolate; background: var(--lp-phone, #1d1d1f); }
.card-swap-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: calc(var(--swap-radius) - 6px); background: var(--surface-2, #eee); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.card-swap-card-rim { position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--swap-edge), inset 0 1px 0 var(--swap-light); pointer-events: none; }

/* ===== Recensioni: menu della landing, valutazione, sezione, pagina per scrivere, moderazione ===== */
.landing [hidden] { display: none !important; }
.rev-stars { display: inline-block; line-height: 1; font-size: 18px; letter-spacing: 2px; background: linear-gradient(90deg, #f5b800 var(--p, 0%), color-mix(in srgb, var(--ink) 22%, transparent) var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rev-n { font-size: 14px; color: var(--ink-2); }
.rev-n b { color: var(--ink); }
.rev-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin: 6px 0 24px; }
.rev-big { display: flex; align-items: center; gap: 14px; }
.rev-avg { font-size: 58px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.rev-big .rev-stars { font-size: 22px; }
.rev-dist { display: grid; gap: 5px; min-width: 220px; flex: 0 1 320px; }
.rev-dist > div { display: grid; grid-template-columns: 32px 1fr 26px; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.rev-dist i { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.rev-dist u { display: block; height: 100%; border-radius: 99px; background: var(--accent); text-decoration: none; }
.rev-dist em { font-style: normal; text-align: right; }
.rev-list { display: block; position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; outline-offset: 4px; }
.rev-list.grab { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.rev-card { margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 8px; }
.rev-card blockquote { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-line; }
.rev-card figcaption { font-size: 13.5px; color: var(--muted); }
.rev-card figcaption b { color: var(--ink); }
.rev-more { grid-column: 1 / -1; justify-self: center; }
.lp-rev-cta { justify-content: center; margin-top: 26px; }
.lp-rev-cta .lp-btn { flex: 0 1 320px; }
.rev-how { margin: 20px auto 0; max-width: 760px; font-size: 14px; color: var(--ink-2); }
.rev-how summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; text-align: center; }
.rev-how summary::-webkit-details-marker { display: none; }
.rev-how summary::after { content: " ▾"; color: var(--ink-2); }
.rev-how[open] summary::after { content: " ▴"; }
.rev-how p { margin: 10px 0 0; line-height: 1.55; }
.lbl { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
.rv-stars { display: flex; gap: 6px; }
.rv-stars button { width: 46px; height: 46px; font-size: 28px; line-height: 1; border-radius: 12px; border: 1px solid var(--line, rgba(128,128,128,.3)); background: var(--surface); color: var(--muted); cursor: pointer; }
.rv-stars button.on { color: #f5b800; border-color: #f5b800; background: color-mix(in srgb, #f5b800 12%, var(--surface)); }
.rv-stars button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rv-chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 750; }
.rv-chip.st0 { background: color-mix(in srgb, #eda100 22%, transparent); color: #7a5200; }
.rv-chip.st1 { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.rv-chip.st2 { background: color-mix(in srgb, var(--bad, #d33) 16%, transparent); color: var(--bad-ink, #a11); }
.rv-prev { padding: 12px 14px; border-radius: 12px; background: var(--surface-2, rgba(128,128,128,.1)); display: grid; gap: 6px; }
.rv-prev p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rv-item { padding: 14px 0; border-top: 1px solid var(--line, rgba(128,128,128,.25)); }
.rv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rv-st { color: #c98500; letter-spacing: 2px; white-space: nowrap; }
.rv-tx { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.rv-rej { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, rgba(128,128,128,.1)); display: grid; gap: 8px; }
.adm-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--bad, #d33); color: #fff; font-size: 12px; font-weight: 800; }
.rev-stars { width: max-content; max-width: 100%; }
.rv-gate { display: grid; gap: 12px; }

/* ===== Invito a recensire (schermata Famiglia) e recensione dentro il popup ===== */
.rvp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.rvp-t { display: grid; gap: 2px; min-width: 200px; flex: 1 1 260px; }
.rvp-t span { font-size: 13.5px; color: var(--ink-2); }
.rvp-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rvp-never { font: inherit; font-size: 13px; background: none; border: 0; padding: 6px 4px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.rv-in-dlg .card { box-shadow: none; border: 0; padding: 0; background: none; }
.rv-in-dlg h2 { font-size: 17px; }

/* ===== Avatar disegnati ===== */
.avatar.has-av { background: none; padding: 0; overflow: hidden; border: 0; color: inherit; }
.avatar.has-av svg { width: 100%; height: 100%; display: block; }
.avatar.light.has-av { border: 2px solid var(--accent); box-sizing: border-box; }
.av-wrap.noav { position: relative; }
.av-wrap.noav::after { content: "+"; position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 13px/15px system-ui, sans-serif; text-align: center; border: 2px solid var(--surface); box-sizing: border-box; pointer-events: none; }
.ave-prev { display: grid; place-items: center; margin: 0 0 12px; }
.ave-prev .avatar.big { width: 112px; height: 112px; }
.ave-row { display: flex; flex-wrap: wrap; gap: 8px; }
.avp { align-items: center; }
.avp-ex { display: flex; }
.avp-ex .avatar { width: 46px; height: 46px; margin-left: -10px; border: 2px solid var(--surface); }
.avp-ex .avatar:first-child { margin-left: 0; }
.rev-by { display: flex; align-items: center; gap: 10px; }
.rev-by .avatar { width: 40px; height: 40px; flex: none; font-size: 16px; }
.rv-prev .rev-by { font-weight: 700; }
.rv-avbox { display: flex; align-items: center; gap: 14px; }
@media (max-width: 560px) { .avp-ex { display: none; } }
#aveBody .field { margin-bottom: 16px; }

/* Campanella notifiche: a destra del "?" */
.bell-btn { position: relative; }
.bell-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; line-height: 18px; text-align: center; box-sizing: border-box; }
.bell-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 12px; background: var(--surface); color: inherit; cursor: pointer; font: inherit; }
.bell-row { transition: border-color .6s ease; }
.bell-row.new { border-color: var(--accent); }
.bell-row .t { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.bell-row .a { font-weight: 700; }
.bell-row .s { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 899px) {
  .page-head .bell-btn { position: absolute; top: 0; right: 0; }
  .page-head:has(.bell-btn) .help-btn:not(.bell-btn) { right: 44px; }
  .page-head:has(.bell-btn) > div:first-child { padding-right: 90px; }
}

/* Catalogo avatar illustrati: schede toccabili e filtri senza scorrimento orizzontale. */
.avc-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.avc-filters select { width: 100%; min-width: 0; }
.avc-group { margin-top: 20px; }
.avc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.avc-option { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 4px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 12px; text-align: center; }
.avc-option .avatar { width: 100%; height: auto; aspect-ratio: 1; max-width: 112px; flex-shrink: 0; }
.avc-option small { color: var(--muted); font-size: 11px; }
.avc-option.on, [data-avpersonal].on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.avc-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 560px) { .avc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ===== Landing in stile apple.com (ottobre 2026) =====
   Fasce piene alternate (bianco, grigio chiarissimo, una nera per la privacy), tipografia di sistema grande e compatta,
   tessere con angoli grandi, pulsanti piatti a pillola e link «›», barre in alto sottili e traslucide. Niente gradienti,
   ombre vistose o inclinazioni: solo una comparsa leggera delle sezioni. Il carosello «Dai un'occhiata» resta com'era. */
:root {
  --lp-bg: #fff; --lp-alt: #f5f5f7; --lp-tile: #fff; --lp-ink: #1d1d1f; --lp-ink2: #6e6e73; --lp-line: #d2d2d7;
  --lp-nav: rgba(255, 255, 255, .8); --lp-dark: #000; --lp-dark-tile: #1d1d1f; --lp-dark-ink: #f5f5f7; --lp-dark-ink2: #f5f5f7;
  --lp-dark-link: #34c58f; --lp-phone: #1d1d1f;
  --lp-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Roboto, "InterVar", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) { --lp-bg: #000; --lp-alt: #161617; --lp-tile: #232326; --lp-ink: #f5f5f7; --lp-ink2: #f5f5f7; --lp-line: #424245; --lp-nav: rgba(22, 22, 23, .8); --lp-dark: #1d1d1f; --lp-dark-tile: #2c2c2e; --lp-phone: #3a3a3c; }
}
:root[data-theme="dark"] { --lp-bg: #000; --lp-alt: #161617; --lp-tile: #232326; --lp-ink: #f5f5f7; --lp-ink2: #f5f5f7; --lp-line: #424245; --lp-nav: rgba(22, 22, 23, .8); --lp-dark: #1d1d1f; --lp-dark-tile: #2c2c2e; --lp-phone: #3a3a3c; }

body:has(#view > .landing) { background: var(--lp-bg); }
main:has(> #view > .landing) { padding-top: 0; }
.app:has(.landing) .sidebar { display: none; }
#view.container:has(> .landing) { max-width: none; }
.landing { position: relative; max-width: none; margin: 0; padding: 0; font-family: var(--lp-font); color: var(--lp-ink); -webkit-font-smoothing: antialiased; }
.landing h1, .landing h2, .landing h3 { font-family: inherit; color: inherit; }
.landing a { color: var(--accent); }

/* fasce a tutta larghezza: lo sfondo arriva ai bordi dello schermo, il contenuto resta in una colonna */
.lp-band { --lp-max: 980px; margin: 0 calc(50% - 50vw); padding: 104px max(22px, calc(50vw - var(--lp-max) / 2)); background: var(--lp-bg); scroll-margin-top: 0; }
.lp-alt { background: var(--lp-alt); }
.lp-dark { background: var(--lp-dark); color: var(--lp-dark-ink); }
@media (max-width: 734px) { .lp-band { padding-top: 64px; padding-bottom: 64px; } }

/* titoli e testi delle sezioni */
.lp-eyebrow { margin: 0 0 10px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; line-height: 1.2; letter-spacing: .005em; color: var(--lp-ink2); }
.lp-sec h2, .lp-final h2 { margin: 0 0 20px; font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; line-height: 1.07; letter-spacing: -.02em; }
.lp-promise-lead { margin: 0 0 56px; max-width: 760px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.42; color: var(--lp-ink2); }
.lp-note { margin: 20px 0 0; font-size: 14px; line-height: 1.45; color: var(--lp-ink2); }

/* pulsanti: pillole piatte, link «›» */
.landing .btn { border-radius: 980px; font-family: inherit; font-weight: 400; letter-spacing: -.01em; box-shadow: none; }
.landing .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.landing .btn.primary:hover { filter: none; background: color-mix(in srgb, var(--accent) 86%, #000); }
.landing .btn:not(.primary) { background: transparent; border-color: transparent; color: var(--lp-ink); }
.landing .btn:not(.primary):hover { background: color-mix(in srgb, var(--lp-ink) 7%, transparent); }
.landing .lp-btn { min-height: 46px; padding: 0 26px; font-size: 17px; flex: none; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.lp-more { padding: 6px 0; border: 0; background: none; font: inherit; font-size: 17px; color: var(--accent); cursor: pointer; }
.lp-more:hover, .lp-more:focus-visible { text-decoration: underline; }

/* barra in alto della pagina: sottile e traslucida */
.lp-top { position: relative; z-index: 30; display: flex; align-items: center; gap: 8px; height: 52px; margin: 0 calc(50% - 50vw); padding: 0 max(16px, calc(50vw - 512px)); background: var(--lp-nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--lp-ink) 10%, transparent); font-size: 13px; }
.lp-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.lp-brand img, .lp-bar-brand img { width: 24px; height: 24px; border-radius: 6px; }
.lp-toplinks { flex: 1; display: flex; justify-content: center; gap: 4px; }
.lp-toplinks button, .lp-toplinks a { padding: 6px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: var(--lp-ink); text-decoration: none; cursor: pointer; }
.lp-toplinks button:hover, .lp-toplinks a:hover, .lp-toplinks button:focus-visible, .lp-toplinks a:focus-visible { color: var(--lp-ink); }
.lp-top-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.landing .lp-top-btn, .landing .lp-bar-btn { min-height: 30px; padding: 0 14px; font-size: 13px; }
.lp-burger, .lp-bar-burger { display: none; align-items: center; justify-content: center; gap: 6px; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--lp-ink); font: inherit; cursor: pointer; }
.lp-burger span { display: none; }
.lp-langbox { position: relative; flex: none; }
.lp-langbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--lp-ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lp-langbtn:hover, .lp-langbtn:focus-visible { color: var(--lp-ink); }
.lp-langflag svg { width: 20px; height: 14px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.lp-langbox .lp-langs { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; min-width: 170px; max-height: 60vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--lp-bg); border: 1px solid color-mix(in srgb, var(--lp-ink) 10%, transparent); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .25); }
.lp-langbox .lp-langs button { width: auto; height: auto; min-height: 40px; justify-content: flex-start; gap: 10px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; opacity: 1; font: inherit; font-size: 15px; color: var(--lp-ink); text-align: left; }
.lp-langbox .lp-langs button.on, .lp-langbox .lp-langs button:hover { background: var(--lp-alt); }
.lp-langbox .lp-langs button svg { width: 24px; height: 17px; flex: none; }
.lp-menu { position: fixed; right: 10px; left: auto; width: min(360px, calc(100vw - 20px)); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; z-index: 60; display: flex; flex-direction: column; padding: 6px; border-radius: 18px; background: var(--lp-bg); border: 1px solid color-mix(in srgb, var(--lp-ink) 10%, transparent); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .3); font-family: var(--lp-font); }
.lp-menu button, .lp-menu a { padding: 12px 14px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 17px; color: var(--lp-ink); text-align: left; text-decoration: none; cursor: pointer; }
.lp-menu button:hover, .lp-menu a:hover, .lp-menu button:focus-visible, .lp-menu a:focus-visible { background: var(--lp-alt); }
.lp-menu .lp-menulogin { color: var(--accent); font-weight: 600; }

/* barra che compare scorrendo, con «Inizia gratis» */
.lp-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; transform: translateY(-100%); transition: transform .3s ease; pointer-events: none; font-family: var(--lp-font); }
.lp-bar.on { transform: none; pointer-events: auto; }
.lp-bar-in { height: 52px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 max(16px, calc(50vw - 512px)); background: var(--lp-nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--lp-ink) 10%, transparent); }
.lp-bar-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--lp-ink); white-space: nowrap; }
.lp-bar-act { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.landing .lp-bar-btn { min-height: 44px; }
.landing .lp-bar-burger { display: inline-flex; flex: none; min-width: 40px; min-height: 44px; padding: 0 6px; }
#lp-confronto, #lp-shots, #lp-plans, #lp-recensioni, #lp-faq, #lp-perche, #lp-how, #lp-why { scroll-margin-top: 72px; }
@media (max-width: 734px) {
  .lp-toplinks { display: none; }
  .lp-burger, .lp-bar-burger { display: inline-flex; }
  .lp-top { gap: 4px; }
  .lp-bar-in { gap: 4px; padding: 0 8px; }
  .lp-bar-act { flex: 1; min-width: 0; justify-content: flex-end; gap: 2px; }
  .landing .lp-bar-act .lp-bar-btn { flex: 0 1 auto; min-width: 0; padding: 0 4px; font-size: 12px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .landing .lp-bar-act .lp-bar-cmp { flex: none; white-space: nowrap; overflow-wrap: normal; }
}
@media (max-width: 480px) { .lp-brand, .lp-bar-brand { font-size: 0; gap: 0; } .lp-top-rev, .lp-bar .lp-theme-bar { display: none; } }

/* apertura: titolo grande, sottotitolo, «Inizia gratis» + «Scopri di più ›», telefono grande e fermo */
.lp-hero { padding-top: 72px; padding-bottom: 0; text-align: center; overflow: hidden; }
.lp-hero-text { max-width: 980px; margin: 0 auto; }
.lp-hero .lp-eyebrow { color: var(--accent); }
.lp-hero h1 { margin: 0 0 24px; font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
.lp-h1b { color: var(--lp-ink2); }
.lp-lead { max-width: 680px; margin: 0 auto 32px; font-size: 17px; line-height: 1.5; color: var(--lp-ink2); }
.lp-lead b { display: block; margin-bottom: 0; font-size: clamp(21px, 2.3vw, 28px); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; color: var(--lp-ink); }
.lp-hero .lp-cta { justify-content: center; }
.lp-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 14px 0 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--lp-ink); cursor: pointer; }
.lp-rating:hover { text-decoration: underline; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; max-width: 680px; margin: 28px auto 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.7; color: var(--lp-ink2); }
.lp-chips li:not(:last-child)::after { content: "·"; margin: 0 9px; }
.lp-cmp-btn { margin-top: 10px; }
.lp-stage { display: flex; justify-content: center; height: clamp(400px, 46vw, 560px); margin-top: 56px; overflow: hidden; }
.lp-ph { align-self: flex-start; width: clamp(250px, 28vw, 330px); padding: 10px; border-radius: 50px; background: var(--lp-phone); box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .35); }
.lp-ph img { display: block; width: 100%; height: auto; border-radius: 40px; }

/* video */
.lp-vband { padding-top: 72px; padding-bottom: 72px; }
.lp-video-wrap { margin: 0; }
.lp-howband .lp-video-wrap { margin-top: 64px; }
.vid-poster { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; padding: 16px; border: 0; border-radius: 28px; background: #1d1d1f; color: #f5f5f7; text-align: center; font-family: var(--lp-font); cursor: pointer; overflow: hidden; }
.vid-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.vid-poster .vp-v { display: none; }
.vid-poster .vid-play { position: relative; z-index: 1; width: 84px; height: 84px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.vid-poster .vid-play svg { width: 36px; height: 36px; }
.vid-title { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.vid-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1d1d1f; transition: transform .2s ease; }
.vid-play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.vid-cta { font-size: 15px; color: #f5f5f7; }
.vid-poster:hover .vid-play, .vid-poster:focus-visible .vid-play { transform: scale(1.06); }
.vid-poster:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lp-video-wrap .video-embed { border-radius: 28px; }
@media (max-width: 734px) { .vid-poster { max-width: 340px; aspect-ratio: 9 / 16; } .vid-poster .vp-h { display: none; } .vid-poster .vp-v { display: block; } }

/* tessere: angoli grandi, nessun bordo; icona semplice nel colore del marchio */
.lp-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 735px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1069px) { .lp-grid { grid-template-columns: repeat(3, 1fr); } .lp-promise .lp-grid { grid-template-columns: repeat(2, 1fr); } }
.lp-card { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 32px 30px 36px; border-radius: 28px; background: var(--lp-tile); }
.lp-ic { display: block; width: 32px; height: 32px; margin-bottom: 8px; color: var(--accent); }
.lp-ic svg { display: block; width: 32px; height: 32px; }
.lp-card h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lp-card p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--lp-ink2); }
.lp-dark .lp-eyebrow, .lp-dark .lp-ic { color: var(--lp-dark-link); }
.lp-dark .lp-promise-lead, .lp-dark .lp-card p { color: var(--lp-dark-ink2); }
.lp-dark .lp-card { background: var(--lp-dark-tile); }

/* confronto, alla maniera di «confronta i modelli» */
.lp-cmp { scroll-margin-top: 0; }
.cmp-wrap { margin: 0; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.4; }
.cmp thead th { padding: 0 12px 20px; border-bottom: 1px solid var(--lp-line); font-size: 19px; font-weight: 600; text-align: center; vertical-align: bottom; color: var(--lp-ink); }
.cmp thead th:first-child { width: 28%; }
.cmp thead .cmp-ds img { display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 11px; }
.cmp th, .cmp td { white-space: normal; }
.cmp tbody th, .cmp td { padding: 18px 12px; border-bottom: 1px solid var(--lp-line); vertical-align: top; overflow-wrap: anywhere; }
.cmp tbody th { padding-left: 0; font-size: 15px; font-weight: 600; text-align: left; color: var(--lp-ink); }
.cmp td { text-align: center; color: var(--lp-ink2); }
.cmp td.cmp-ds { color: var(--lp-ink); }
.cmp td b { font-weight: 600; color: var(--lp-ink); }
.cmp-c, .cmp-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cmp-y, .cmp-n { font-size: 18px; font-weight: 600; line-height: 1; }
.cmp-y { color: var(--accent); }
.cmp-n { color: var(--lp-ink2); }
.cmp-u { font-size: 13px; color: var(--lp-ink2); }
.lp-cmp-note { margin: 24px 0 0; font-size: 12px; line-height: 1.5; color: var(--lp-ink2); }
.lp-cmp-cta { margin-top: 32px; }
}

/* «Dai un'occhiata»: solo la fascia grigia intorno; il carosello è invariato */
.lp-shotsband { --lp-max: 1180px; }
.lp-shotsband h2 { text-align: center; }

/* come funziona: tre passi, numeri grandi */
.lp-steps { display: grid; gap: 40px; margin: 48px 0 0; padding: 0; list-style: none; }
@media (min-width: 735px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.lp-steps li { display: block; }
.lp-n { display: block; margin-bottom: 14px; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--lp-ink2); }
.lp-steps b { display: block; margin-bottom: 8px; font-size: 21px; font-weight: 600; line-height: 1.2; }
.lp-steps p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--lp-ink2); }

/* prezzi: due colonne sobrie */
.lp-plans { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 735px) { .lp-plans { grid-template-columns: 1fr 1fr; } }
.lp-plan { padding: 40px 32px; border-radius: 28px; background: var(--lp-alt); }
.lp-plan h3 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.015em; }
.lp-plan-pro h3 { color: var(--accent); }
.lp-price { margin: 10px 0 6px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.lp-price small { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--lp-ink2); }
.lp-or { margin: 0 6px; font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--lp-ink2); }
.lp-plan-tag { margin: 0 0 28px; font-size: 17px; color: var(--lp-ink2); }
.lp-plan ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.45; }
.lp-plan li { padding: 10px 0; border-top: 1px solid var(--lp-line); }
.lp-plan li.lp-grp { padding: 26px 0 8px; border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-ink2); }
.lp-plan li.lp-grp:first-child { padding-top: 0; }
.lp-plans + .lp-note, .c6-all + .lp-note { margin-top: 28px; font-size: 15px; }
.lp-plans + .lp-note b { color: var(--lp-ink); }

/* domande frequenti: righe semplici */
.lp-faq { max-width: 860px; margin-top: 40px; border-top: 1px solid var(--lp-line); }
.lp-faq details { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 600; line-height: 1.3; list-style: none; cursor: pointer; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 300; line-height: 1; color: var(--lp-ink2); transition: transform .25s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { max-width: 70ch; margin: 0 0 24px; font-size: 17px; line-height: 1.5; color: var(--lp-ink2); }

/* recensioni e chiusura */
.lp-rev-cta { justify-content: center; margin-top: 32px; }
.lp-final { padding-top: 120px; padding-bottom: 120px; text-align: center; }
.lp-final h2 { font-size: clamp(36px, 5.6vw, 64px); }
.lp-final p { max-width: 620px; margin: 0 auto 32px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.42; color: var(--lp-ink2); }
body:has(#view > .landing) .credits { margin-top: 0; }

/* comparsa leggera (solo con JS): si muove il contenuto, non lo sfondo della fascia */
.lp-js .lp-rv > * { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.25, .1, .25, 1); }
.lp-js .lp-rv.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .lp-js .lp-rv > * { opacity: 1; transform: none; transition: none; }
  .lp-bar, .vid-play, .lp-faq summary::after { transition: none; }
}

/* Recensioni: un blocco alla volta, filtri comodi anche sugli schermi piccoli. */
.lp-rev { --lp-max: 760px; scroll-margin-top: 52px; overflow-anchor: none; }
.rev-filters { display: grid; gap: 12px; margin: 0 0 12px; }
.rev-filters .field { margin: 0; min-width: 0; }
.rev-filters select { min-height: 46px; }
.rev-card { min-width: 0; width: 100%; position: absolute; top: 0; left: 0; padding: 16px 0; border-top: 1px solid var(--border); transform: translateX(calc(var(--shift) + var(--drag, 0px))); }
.rev-card.on { position: relative; }
.rev-nav #revStatus { min-width: 0; text-align: center; }
.rev-nav button { flex: none; }
.rev-nav button:disabled { opacity: .4; cursor: default; transform: none; }
.rev-by > span { min-width: 0; overflow-wrap: anywhere; }
.rev-by time { display: block; margin-top: 2px; }
.rev-reply { margin-top: 4px; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface); font-size: 14px; }
.rev-reply p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.rev-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
#revError { color: var(--bad-ink); }
@media (min-width: 760px) {
  .rev-filters { grid-template-columns: repeat(2, minmax(0, 240px)); }
}

/* Dock ispirato a React Bits: si animano le icone, non i bersagli dei link. */
.bottom-nav.dock {
  isolation: isolate;
  background: var(--page);
  border-top-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  touch-action: pan-y pinch-zoom;
}
.bottom-nav.dock::before {
  content: "";
  position: absolute;
  inset: 4px 6px calc(4px + env(safe-area-inset-bottom));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: -1;
  pointer-events: none;
}
.bottom-nav.dock .nav-link,
.bottom-nav.dock .nav-link:hover {
  background: transparent;
  overflow: visible;
  gap: 8px;
}
.bottom-nav.dock .nav-ico {
  --dock-scale: 1;
  --dock-lift: 0px;
  transform: translateY(calc(2px + var(--dock-lift))) scale(var(--dock-scale));
  transform-origin: center bottom;
  pointer-events: none;
  isolation: isolate;
}
.bottom-nav.dock .nav-ico::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  z-index: -1;
}
.bottom-nav.dock .active .nav-ico::before {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}
.bottom-nav.dock .nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav.dock .nav-ico { transform: translateY(2px); }
}
/* ===== Landing nello stile di Hero 18 (React Bits Pro): griglia sfumata, bagliore, pillola col nome, scheda del mese animata ===== */
.lp-hero, .lp-final { position: relative; isolation: isolate; overflow: hidden; }
.lp-hero-bg { --lp-grid: color-mix(in srgb, var(--lp-ink) 4.5%, transparent); position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, var(--lp-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--lp-grid) 1px, transparent 1px); background-size: 96px 96px; -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 38%, #000, transparent); mask-image: radial-gradient(ellipse 60% 50% at 50% 38%, #000, transparent); }
.lp-hero-bg::after { content: ""; position: absolute; left: 50%; top: 33%; width: 720px; max-width: 110vw; height: 360px; transform: translateX(-50%); border-radius: 9999px; background: color-mix(in srgb, var(--lp-ink) 6%, transparent); filter: blur(110px); }
.lp-hero-bg i { display: none; position: absolute; width: 144px; height: 224px; background-image: radial-gradient(color-mix(in srgb, var(--lp-ink) 14%, transparent) 1px, transparent 1px); background-size: 11px 11px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%); mask-image: radial-gradient(ellipse at center, #000, transparent 72%); }
.lp-hero-bg i:first-child { left: 6%; top: 38%; }
.lp-hero-bg i:last-child { right: 6%; top: 24%; }
@media (min-width: 1024px) { .lp-hero-bg i { display: block; } }
.lp-hero { padding-top: 36px; padding-bottom: 64px; }
.lp-stage { display: block; height: auto; margin-top: 44px; overflow: visible; }

/* pillola col nome (come il badge di Hero 18) e lettere che si ribaltano in 3D */
.lp-brandpill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 18px 6px 6px; border: 1px solid var(--lp-line); border-radius: 999px; background: color-mix(in srgb, var(--lp-bg) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); font-size: 14px; font-weight: 500; color: var(--lp-ink); }
.lp-brandpill img { display: block; width: 28px; height: 28px; border-radius: 999px; }
.lp-swap-text { display: inline-block; line-height: 1.2; perspective: 1000px; }
.ls-line, .ls-word { display: inline-block; transform-style: preserve-3d; }
.ls-line { white-space: nowrap; }
.ls-box { position: relative; display: inline-block; transform-style: preserve-3d; transform: translateZ(-.6em); will-change: transform; }
.ls-face { display: inline-block; height: 1.2em; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ls-front { transform: translateZ(.6em); }
.ls-back { position: absolute; top: 0; left: 0; opacity: 0; transform: rotateX(-90deg) translateZ(.6em); }
@media (min-width: 640px) { .lp-brandpill { font-size: 16px; } }

/* titolo: Hero 18 usa peso medio e interlinea stretta; il testo vero resta per lettori di schermo e motori di ricerca */
.lp-hero h1 { max-width: 56rem; margin: 18px auto 24px; font-weight: 500; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.04em; }
.lp-hero h1:not(.lp-gt-on) { animation: lpGtShow .01s 2.4s both; } /* ripiego: se lo script non parte, dopo 2,4 s il titolo compare comunque */
@keyframes lpGtShow { from { opacity: 0; } to { opacity: 1; } }
.lp-gt-on .lp-gt-real { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-gt-vis { white-space: pre-wrap; }
.lp-gt-acc { color: var(--lp-ink2); border-radius: .08em; }
.lp-gt-ghost { color: color-mix(in srgb, var(--lp-ink2) 45%, transparent); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .lp-hero .lp-gt-ghost { color: var(--lp-ink2); } } /* sul nero il suggerimento resta bianco (niente grigio): si distingue per la sfocatura che si schiarisce */
:root[data-theme="dark"] .lp-hero .lp-gt-ghost { color: var(--lp-ink2); }
.lp-gt-rest { visibility: hidden; }
.lp-gt-caret { display: inline-block; width: max(2px, .05em); height: .92em; margin: 0 calc(-1 * max(2px, .05em) - .02em) 0 .02em; vertical-align: -.14em; border-radius: 1px; background: var(--accent); }
.lp-gt-caret.is-blink { animation: lpBlink 1.06s ease-in-out infinite; }
.lp-gt-caret.is-hide { visibility: hidden; }
@keyframes lpBlink { 0%, 46% { opacity: 1; } 54%, 94% { opacity: 0; } 100% { opacity: 1; } }

/* scheda «mese tipo» (la riga di ricerca di Hero 18 diventa l'inserimento di una spesa) */
.lp-mc { width: 100%; max-width: 672px; margin: 0 auto; overflow: hidden; text-align: left; font-size: 14px; color: var(--lp-ink); border: 1px solid var(--lp-line); border-radius: 24px; background: var(--lp-tile); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .16); }
.lp-mc:empty { display: none; }
.lp-mc-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid color-mix(in srgb, var(--lp-line) 55%, transparent); }
.lp-mc-plus { flex: none; width: 20px; height: 20px; color: var(--lp-ink2); }
.lp-mc-field { display: flex; flex: 1; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; }
.lp-mc-ph { color: var(--lp-ink2); }
.lp-mc-ph[hidden], .lp-mc-caret[hidden] { display: none; }
.lp-mc-typed { overflow: hidden; text-overflow: ellipsis; }
.lp-mc-caret { flex: none; width: 1px; height: 20px; margin-left: 1px; background: var(--lp-ink); animation: lpBlink 1.06s steps(1, end) infinite; }
.lp-mc-amt { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.lp-mc-amt.on { opacity: 1; transform: none; }
.lp-mc-key { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--lp-line); border-radius: 6px; background: var(--lp-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); font: inherit; font-size: 11px; font-weight: 500; color: var(--lp-ink2); text-transform: capitalize; }
.lp-mc-scopes { display: flex; gap: 4px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
.lp-mc-scopes::-webkit-scrollbar { display: none; }
.lp-mc-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: 12px; font-weight: 500; color: var(--lp-ink2); transition: background .25s, color .25s, transform .25s; }
.lp-mc-chip i { width: 8px; height: 8px; border-radius: 50%; }
.lp-mc-chip b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--lp-ink2); }
.lp-mc-chip.on { background: var(--lp-alt); color: var(--lp-ink); transform: scale(1.04); }
.lp-mc-label { padding: 16px 20px 4px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--lp-ink2); }
.lp-mc-rows { display: flex; flex-direction: column; gap: 2px; min-height: 238px; padding: 0 8px 8px; transition: opacity .35s; }
.lp-mc-rows.is-out { opacity: 0; }
.lp-mc-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; overflow: hidden; border-radius: 12px; }
.lp-mc-row.is-new { background: var(--lp-alt); animation: lpRowIn .5s cubic-bezier(.22, 1, .36, 1) both; }
.lp-mc-row.is-new::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--lp-ink) 6%, transparent), transparent); animation: lpSweep 1.8s .3s cubic-bezier(.22, 1, .36, 1) both; }
.lp-mc-rico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--lp-line); border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--lp-bg)); color: var(--c); }
.lp-mc-rico svg { width: 18px; height: 18px; }
.lp-mc-rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.lp-mc-rc { display: none; flex: none; font-size: 12px; color: var(--lp-ink2); }
.lp-mc-rv { flex: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-mc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 20px; border-top: 1px solid color-mix(in srgb, var(--lp-line) 55%, transparent); }
.lp-mc-sum { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--lp-ink2); }
.lp-mc-total { font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--lp-ink); }
.lp-mc-ex { font-size: 11.5px; color: var(--lp-ink2); }
@keyframes lpRowIn { from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px); } to { opacity: 1; max-height: 64px; padding-top: 10px; padding-bottom: 10px; transform: none; } }
@keyframes lpSweep { from { transform: translateX(-140%); } to { transform: translateX(140%); } }
@media (min-width: 640px) { .lp-mc-rc { display: block; } .lp-mc-top, .lp-mc-foot { padding-left: 22px; padding-right: 22px; } .lp-mc-top { padding-top: 18px; padding-bottom: 18px; } }

/* entrata a cascata (come in Hero 18), solo se non hai chiesto di ridurre il movimento */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero .lp-brandpill, .lp-hero .lp-eyebrow, .lp-hero .lp-lead, .lp-hero .lp-cta, .lp-hero .lp-note, .lp-hero .lp-chips, .lp-hero .lp-cmp-btn, .lp-hero .lp-mc { animation: lpUp .6s cubic-bezier(.22, 1, .36, 1) both; }
  .lp-hero .lp-brandpill { animation-delay: .05s; } .lp-hero .lp-eyebrow { animation-delay: .14s; } .lp-hero .lp-lead { animation-delay: .45s; }
  .lp-hero .lp-cta { animation-delay: .55s; } .lp-hero .lp-note, .lp-hero .lp-chips, .lp-hero .lp-cmp-btn { animation-delay: .65s; } .lp-hero .lp-mc { animation-delay: .75s; }
}
@keyframes lpUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 639px) { .lp-hero .lp-cta { flex-direction: column; align-items: stretch; gap: 8px; } .lp-hero .lp-cta .lp-btn { width: 100%; } }

/* scritta a granelli vicino al piede (Gravity Letters) */
.lp-final { padding-top: 72px; padding-bottom: 80px; }
@media (min-width: 640px) { .lp-final { padding-top: 120px; padding-bottom: 120px; } }
.lp-gl { position: relative; display: flex; align-items: center; justify-content: center; max-width: 1000px; min-height: 220px; margin: 0 auto 8px; color: var(--lp-ink); }
.lp-gl h2 { margin: 0; }
.lp-gl.on { display: block; height: clamp(320px, 92vw, 420px); overflow: hidden; isolation: isolate; cursor: pointer; border-radius: 24px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lp-gl.on h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lp-gl:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ===== Bento 40 (le scritte «in breve» del hero) ===== */
.lp-b40 { width: 100%; max-width: 680px; margin: 28px auto 0; overflow: hidden; text-align: left; border: 1px solid var(--lp-line); border-radius: 24px; background: var(--lp-tile); }
.lp-b40-rows { display: flex; flex-direction: column; gap: 8px; padding: 22px 0 6px; }
.lp-b40-row { position: relative; overflow: hidden; padding: 2px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.lp-b40-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.lp-b40-pill { -webkit-appearance: none; appearance: none; flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0 4px; padding: 7px 12px 7px 10px; white-space: nowrap; cursor: pointer; border: 1px solid var(--lp-line); border-radius: 999px; background: var(--lp-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--lp-ink2); transition: border-color .2s, color .2s; }
.lp-b40-pill svg { flex: none; width: 14px; height: 14px; opacity: .75; }
.lp-b40-pill svg:last-child { width: 12px; height: 12px; opacity: .45; }
.lp-b40-pill em { font-style: normal; padding: 1px 6px; border-radius: 999px; background: var(--lp-alt); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-ink2); }
.lp-b40-pill:hover, .lp-b40-pill[aria-pressed="true"] { border-color: var(--lp-ink); color: var(--lp-ink); }
.lp-b40-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-b40-row:focus-within .lp-b40-track { animation-play-state: paused !important; }
@media (hover: hover) { .lp-b40-row:hover .lp-b40-track { animation-play-state: paused !important; } }
.lp-b40-sel { display: flex; align-items: flex-start; gap: 12px; width: calc(100% - 40px); max-width: 440px; min-height: 68px; margin: 12px auto 20px; padding: 12px 14px; border-radius: 14px; background: var(--lp-ink); color: var(--lp-bg); }
.lp-b40-sel svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.lp-b40-sel .t { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.lp-b40-sel .d { margin: 4px 0 0; font-size: 12px; line-height: 1.4; opacity: .7; }
.lp-b40-sel.in div { animation: lpUp .35s cubic-bezier(.22, 1, .36, 1) both; }
.lp-b40.is-still .lp-b40-rows { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 0; padding: 18px 12px 6px; }
@keyframes b40-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes b40-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ===== Schede informative: privacy statica e vantaggi raggruppati ===== */
.lp-feature-grid .lp-card { gap: 20px; border: 1px solid color-mix(in srgb, var(--lp-dark-ink) 8%, transparent); border-radius: 24px; }
.lp-feature-grid .lp-ic, .lp-benefit-card .lp-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: 0; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--lp-tile)); }
.lp-feature-grid .lp-ic { background: color-mix(in srgb, var(--lp-dark-link) 10%, var(--lp-dark-tile)); }
.lp-feature-grid .lp-ic svg, .lp-benefit-card .lp-ic svg { width: 24px; height: 24px; }
.lp-benefit-groups { display: grid; gap: 24px; margin-top: 40px; }
.lp-benefit-group { border-bottom: 1px solid var(--lp-line); }
.lp-benefit-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 20px 0; list-style: none; cursor: pointer; }
.lp-benefit-toggle::-webkit-details-marker { display: none; }
.lp-benefit-toggle::marker { content: ""; }
.lp-benefit-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.lp-benefit-title { min-width: 0; margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.lp-benefit-chevron { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-tile); color: var(--accent); }
.lp-benefit-chevron svg { width: 24px; height: 24px; }
.lp-benefit-group[open] .lp-benefit-chevron svg { transform: rotate(180deg); }
.lp-benefit-panel { overflow: hidden; }
.lp-benefit-grid { padding: 4px 0 28px; transform-origin: center top; backface-visibility: hidden; }
.lp-benefit-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; column-gap: 16px; row-gap: 14px; padding: 24px; border: 1px solid color-mix(in srgb, var(--lp-line) 50%, transparent); border-radius: 24px; }
.lp-benefit-card .lp-ic { grid-column: 1; grid-row: 1; align-self: start; }
.lp-benefit-card h4 { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; margin: 0; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lp-benefit-card p { grid-column: 1 / -1; grid-row: 2; align-self: start; }
@media (min-width: 735px) {
  .lp-feature-grid, .lp-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-benefit-chevron svg { transition: transform .2s ease; }
  .lp-why-section.in .lp-benefit-group:not([open]) .lp-benefit-chevron svg { animation: lpBenefitHint 1.2s ease-in-out 2; }
}
@keyframes lpBenefitHint { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* ===== «100% di precisione, 0 litigi» (Ghost Type) ===== */
.lp-precision { max-width: 40rem; margin: 0 auto 28px; font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; text-align: center; color: var(--lp-ink); }
.lp-precision .lp-gt-tail, .lp-precision .lp-gt-acc { color: var(--accent); }
.lp-precision .lp-gt-ghost { color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ===== Privacy: la frase spostata dal hero ===== */
.lp-promise-lead.lp-pl1 { margin-bottom: 28px; }
.lp-pl2 { display: block; margin-top: 14px; }

/* ===== Tabella dei concorrenti (stile Comparison 8: capacità, chip di stato, colonna in evidenza) ===== */
.cmp-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--lp-ink2); }
.cmp-legend li { display: flex; align-items: center; gap: 8px; }
.cmp-wrap { position: relative; overflow-x: auto; border: 1px solid var(--lp-line); border-radius: 24px; background: var(--lp-tile); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .18); }
.cmp { min-width: 720px; table-layout: fixed; }
.cmp thead th { padding: 18px 20px; border-bottom: 1px solid var(--lp-line); font-size: 14px; font-weight: 600; text-align: left; vertical-align: middle; color: var(--lp-ink2); }
.cmp thead th:first-child { width: 31%; padding-left: 24px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.cmp thead .cmp-ds { color: var(--lp-ink); }
.cmp thead .cmp-ds img { display: inline-block; width: 24px; height: 24px; margin: 0 8px 0 0; border-radius: 7px; vertical-align: middle; }
.cmp tbody th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--lp-line); font-size: 14px; line-height: 1.4; text-align: left; vertical-align: middle; }
.cmp tbody th { position: sticky; left: 0; z-index: 1; padding-left: 24px; font-weight: 500; background: var(--lp-tile); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead .cmp-ds, .cmp td.cmp-ds { background: color-mix(in srgb, var(--lp-ink) 3.5%, var(--lp-tile)); border-left: 1px solid var(--lp-line); border-right: 1px solid var(--lp-line); }
.cmp-c { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.cmp-y, .cmp-n, .cmp-u::before { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 600; line-height: 1; }
.cmp-y { border: 1px solid var(--lp-line); color: var(--lp-ink2); }
.cmp td.cmp-ds .cmp-y { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.cmp-n { border: 1px solid var(--lp-line); background: var(--lp-alt); color: var(--lp-ink2); }
.cmp-u { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--lp-ink2); }
.cmp-u::before { content: "–"; border: 1px dashed var(--lp-line); }

/* ===== Gratuita / Premium (stile Comparison 6: due colonne, riga per riga) ===== */
.c6 { overflow: hidden; margin-top: 40px; border: 1px solid var(--lp-line); border-radius: 24px; background: var(--lp-tile); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .18); }
.c6-head { display: none; }
.c6-col { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.c6-oldh { background: var(--lp-alt); border-right: 1px solid var(--lp-line); }
.c6-name { font-size: 15px; font-weight: 600; color: var(--lp-ink2); }
.c6-pro .c6-name { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-ink); }
.c6-pro .c6-name::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.c6-price { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--lp-ink); }
.c6-price small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--lp-ink2); }
.c6-price .lp-or { margin: 0 4px; font-size: 13px; }
.c6-tag { font-size: 13px; color: var(--lp-ink2); }
.c6-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--lp-line); }
.c6-row:first-child { border-top: 0; }
.c6-old, .c6-new { padding: 18px 24px; }
.c6-old { background: var(--lp-alt); border-bottom: 1px solid var(--lp-line); }
.c6-lab { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--lp-ink2); }
.c6-item { display: flex; align-items: flex-start; gap: 14px; }
.c6-item p { margin: 0; font-size: 15px; line-height: 1.5; }
.c6-old .c6-item p { color: var(--lp-ink2); }
.c6-new .c6-item p { font-weight: 500; color: var(--lp-ink); }
.c6-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; font-size: 13px; font-weight: 600; line-height: 1; }
.c6-old .c6-ic { border: 1px dashed var(--lp-line); color: var(--lp-ink2); }
.c6-new .c6-ic { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 735px) {
  .c6-head { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--lp-line); }
  .c6-row { grid-template-columns: 1fr 1fr; }
  .c6-old { border-right: 1px solid var(--lp-line); border-bottom: 0; }
  .c6-old, .c6-new { padding: 20px 28px; }
  .c6-lab { display: none; }
}
.c6-all { margin-top: 24px; }
.c6-all summary { cursor: pointer; padding: 6px 0; font-size: 17px; color: var(--accent); }
.c6-all .lp-plans { margin-top: 24px; }

/* telefono: ogni riga della tabella dei concorrenti diventa una scheda (niente scorrimento di lato), con la colonna di Dividi Spesa in evidenza */
@media (max-width: 734px) {
  .cmp-wrap { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp { min-width: 0; width: 100%; }
  .cmp thead { display: none; }
  .cmp tbody tr { margin: 0 0 14px; padding: 18px 16px 12px; border: 1px solid var(--lp-line); border-radius: 20px; background: var(--lp-tile); }
  .cmp tbody th { position: static; padding: 0 0 10px; border: 0; background: none; font-size: 16px; font-weight: 600; line-height: 1.3; }
  .cmp td { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 8px 0; border: 0; font-size: 14px; }
  .cmp td::before { content: attr(data-l); font-size: 13px; font-weight: 600; color: var(--lp-ink2); }
  .cmp td.cmp-ds { margin: 0 -8px; padding: 8px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--lp-ink) 5%, transparent); }
  .cmp td.cmp-ds::before { color: var(--accent); }
  .cmp-col { align-items: flex-start; }
  .c6-old.is-none { padding-top: 10px; padding-bottom: 10px; }
  .c6-old.is-none .c6-lab { display: none; }
}
.cmp-col { align-items: flex-start; text-align: left; }

/* ===== «Come funziona»: schede numerate con icona, collegate da frecce ===== */
.lp-steps { gap: 30px; }
.lp-steps li { position: relative; padding: 26px 24px 28px; border: 1px solid var(--lp-line); border-radius: 24px; background: var(--lp-alt); transition: transform .25s, box-shadow .25s; }
@media (hover: hover) { .lp-steps li:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .28); } }
.lp-steps .lp-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--accent-ink); }
.lp-sic { position: absolute; top: 24px; right: 24px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-bg); color: var(--accent); }
.lp-sic svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .lp-js .lp-howband.lp-rv:not(.in) .lp-steps li { opacity: 0; transform: translateY(22px); }
  .lp-howband .lp-steps li { transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .25s; }
  .lp-howband .lp-steps li:nth-child(2) { transition-delay: .15s; } .lp-howband .lp-steps li:nth-child(3) { transition-delay: .3s; }
}

/* ===== Selettore del tema in alto (visibile anche da telefono) ===== */
.lp-theme { -webkit-appearance: none; appearance: none; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--lp-line); border-radius: 50%; background: color-mix(in srgb, var(--lp-bg) 70%, transparent); color: var(--lp-ink); cursor: pointer; transition: background .2s, border-color .2s; }
.lp-theme:hover { background: var(--lp-alt); border-color: var(--lp-ink2); }
.lp-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-theme svg { display: none; width: 18px; height: 18px; }
.lp-theme[data-mode="auto"] .i-auto, .lp-theme[data-mode="light"] .i-light, .lp-theme[data-mode="dark"] .i-dark, .lp-theme:not([data-mode]) .i-auto { display: block; }
.lp-theme-bar { width: 34px; height: 34px; }

/* ===== Luminous Type: testo fioco che si accende dove passa la luce ===== */
.lum-on { position: relative; cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; color: var(--lp-ink); }
.lp-dark .lum-on { color: var(--lp-dark-ink); }
.lum-base { display: block; }
.lum-lit { position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none; }

/* ===== Ricerca delle spese: stesso stile della scheda «mese tipo» della landing (Hero 18) ===== */
.card.sp-card, .app-polish .card.sp-card { padding: 0; overflow: hidden; border-radius: 24px; box-shadow: 0 25px 50px -24px rgba(0, 0, 0, .2); }
.sp-card .card-head { margin: 0; padding: 18px 20px 14px; }
.sp-card .sp-bar, .field.sp-bar { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 14px 18px; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.app-polish .sp-card .search-field > svg, .sp-card .search-field > svg { position: static; transform: none; flex: none; width: 20px; height: 20px; color: var(--muted); }
.app-polish .sp-card .sp-bar .input, .sp-card .sp-bar .input { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 15px; caret-color: var(--accent); }
.sp-card .sp-bar .input:focus { outline: none; box-shadow: none; }
.sp-card .sp-bar:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.sp-key { flex: none; min-width: 24px; height: 24px; padding: 0 8px; border: 1px solid var(--axis); border-radius: 6px; background: var(--page); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); font: inherit; font-size: 11px; font-weight: 500; text-transform: capitalize; color: var(--muted); -webkit-appearance: none; appearance: none; }
.sp-key[data-clear] { cursor: pointer; color: var(--ink); }
.sp-key:disabled { opacity: 1; cursor: default; }
.sp-chips { display: flex; gap: 4px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
.sp-chips::-webkit-scrollbar { display: none; }
.sp-chips:empty { display: none; }
.sp-chip { -webkit-appearance: none; appearance: none; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, transform .25s cubic-bezier(.22, 1, .36, 1); }
.sp-chip i { width: 8px; height: 8px; border-radius: 50%; }
.sp-chip b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.sp-chip:hover { background: var(--surface-2); }
.sp-chip.on { background: var(--surface-2); color: var(--ink); transform: scale(1.04); }
.sp-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-label { padding: 16px 20px 4px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.sp-card .all-exp-list { padding: 0 8px 8px; }
.sp-card .all-exp-list > p { margin: 0; padding: 8px 12px 12px; }
.sp-card .exp-day-sep { margin: 6px 0 2px; padding: 8px 12px 4px; border-bottom: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-polish .search-panel.sp-card .exp-item, .search-panel.sp-card .exp-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; margin: 2px 0; padding: 10px 12px; border-bottom: 0; border-radius: 12px; }
.app-polish .search-panel.sp-card .exp-item .ic, .search-panel.sp-card .exp-item .ic { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)) !important; color: var(--c, var(--ink)); box-shadow: inset 0 0 0 1px var(--grid); }
.search-panel.sp-card .exp-item .ic svg { width: 18px; height: 18px; }
.sp-card .sp-foot { border-top: 1px solid var(--grid); padding: 12px 20px; }
.sp-card .sp-foot:empty { display: none; }
.sp-card .sp-foot .search-total { gap: 12px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.sp-card .sp-foot .search-total span { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.sp-card .sp-foot .search-total b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.sp-card .sp-foot .search-total.locked { background: none; }
@media (min-width: 640px) { .sp-card .card-head { padding: 20px 24px 14px; } .sp-card .sp-bar { padding: 16px 22px; } .sp-card .sp-foot { padding: 14px 24px; } }
.sp-bar input[type="search"]::-webkit-search-cancel-button, .sp-bar input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

.sp-chips { cursor: grab; touch-action: pan-x; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; user-select: none; -webkit-user-select: none; }
.sp-chips.drag { cursor: grabbing; scroll-snap-type: none; }
.sp-chips.drag .sp-chip { pointer-events: none; }

/* Landing sul nero: niente grigi, solo testo bianco (leggibilità per chi vede poco). Vale per i testi che usano i colori dell'app (schermate, recensioni, didascalie). */
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .landing { --ink-2: #fff; --muted: #fff; } }
:root[data-theme="dark"] .landing { --ink-2: #fff; --muted: #fff; }
.lp-dark { --ink-2: #fff; --muted: #fff; } /* le fasce nere restano nere anche col tema chiaro */
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) body:has(#view > .landing) .credits { color: #fff; } }
:root[data-theme="dark"] body:has(#view > .landing) .credits { color: #fff; }

/* Accesso e registrazione restano visibili anche nei menu mobili. */
@media (max-width: 640px) {
  .landing .lp-bar-act .lp-bar-cmp { display: none; }
  .landing .lp-top-act .lp-top-btn { padding: 7px 9px; font-size: 12px; }
}
.auth-register { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-register p { margin: 0 0 8px; }

/* Video ospitati: lettore nostro, fasce a tutta larghezza */
.vid-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; border: 0; }
.vid-player.is-v { aspect-ratio: 9 / 16; }
.help-video .vid-player { max-width: 100%; border-radius: 12px; }
.help-video .vid-player.is-v { max-width: min(100%, 320px); }
.lp-band.lp-vband { --lp-max: 1120px; padding: 72px max(22px, calc(50vw - var(--lp-max) / 2)); }
.lp-vband .lp-video-wrap { margin: 0; }
.lp-vband .vid-poster, .lp-vband .vid-player { max-width: none; width: 100%; margin: 0 auto; border-radius: 28px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .45); }
@media (max-width: 734px) {
  .lp-band.lp-vband { padding: 0; background: #000; }
  .lp-vband .vid-poster, .lp-vband .vid-player { max-width: 520px; border-radius: 0; box-shadow: none; }
}
.lp-vband .lp-vtitle { margin: 0 0 28px; text-align: center; font-size: clamp(28px, 4.2vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
@media (max-width: 734px) { .lp-vband .lp-vtitle { margin: 0; padding: 40px 22px 24px; color: #f5f5f7; } }
