/* Pinkpoint — design system */

:root {
  --bg: #fff6fa;
  --bg-glow: radial-gradient(1200px 500px at 85% -120px, rgba(255, 46, 136, .10), transparent 60%),
             radial-gradient(900px 400px at 10% -160px, rgba(139, 92, 246, .08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #fff8fb;
  --surface-3: #fff0f6;
  --line: #f5dde8;
  --line-2: #ecc7d8;
  --ink: #22091a;
  --ink-2: #4a2a3d;
  --muted: #8a6f7e;
  --pink: #ff2e88;
  --pink-600: #e6177a;
  --pink-700: #b80f5e;
  --pink-50: #fff0f7;
  --pink-100: #ffe0ee;
  --violet: #8b5cf6;
  --violet-50: #f3eeff;
  --grad: linear-gradient(135deg, #ff2e88 0%, #ff5fa2 45%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, #fff0f7 0%, #fbeaff 100%);
  --ok: #0f9d6b; --ok-bg: #e5f7ef;
  --warn: #b86e00; --warn-bg: #fff3dc;
  --danger: #d92d4b; --danger-bg: #ffe8ec;
  --gray: #8c8190; --gray-bg: #f3eff2;
  --side: #1c0716; --side-2: #2a0d22; --side-ink: #f8ddea; --side-muted: #b08aa0;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(34, 9, 26, .04), 0 8px 24px -12px rgba(184, 15, 94, .12);
  --shadow-lg: 0 24px 60px -24px rgba(184, 15, 94, .35);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120510;
    --bg-glow: radial-gradient(1200px 500px at 85% -120px, rgba(255, 46, 136, .16), transparent 60%),
               radial-gradient(900px 400px at 10% -160px, rgba(139, 92, 246, .14), transparent 60%);
    --surface: #1b0917; --surface-2: #220d1d; --surface-3: #2b1026;
    --line: #37162f; --line-2: #4a1f40;
    --ink: #fbe9f2; --ink-2: #eccfdd; --muted: #b996ab;
    --pink-50: #33102a; --pink-100: #45143a; --violet-50: #251540;
    --grad-soft: linear-gradient(135deg, #2b0f25 0%, #22123a 100%);
    --ok: #4bd6a0; --ok-bg: #0f2b22; --warn: #f3b653; --warn-bg: #2f2210; --danger: #ff7189; --danger-bg: #36121b;
    --gray: #b5a7b1; --gray-bg: #2a1c26;
    --side: #0c030a; --side-2: #1a0715;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); background-image: var(--bg-glow); background-attachment: fixed; color: var(--ink);
  font: 450 14.5px/1.55 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
a { color: var(--pink-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.15; margin: 0; }
h1 { font-size: 30px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.9; flex: none; }
.i-sm [data-lucide], [data-lucide].i-sm { width: 15px; height: 15px; }

/* --- Layout ----------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  background-image: radial-gradient(400px 260px at 0% 0%, rgba(255, 46, 136, .22), transparent 70%),
                    radial-gradient(300px 300px at 100% 100%, rgba(139, 92, 246, .18), transparent 70%); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(255, 46, 136, .7); }
.brand-mark [data-lucide] { color: #fff; width: 19px; height: 19px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--side-muted); letter-spacing: .02em; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--side-muted); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--side-ink);
  font-weight: 500; opacity: .82; transition: background .15s, opacity .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); opacity: 1; text-decoration: none; }
.nav a.on { background: linear-gradient(135deg, rgba(255, 46, 136, .95), rgba(168, 85, 247, .85)); opacity: 1; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 46, 136, .8); }
.nav a .count { margin-left: auto; font: 600 11px var(--mono); background: rgba(255, 255, 255, .14); padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 10px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--side-muted); }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4bd6a0; box-shadow: 0 0 0 3px rgba(75, 214, 160, .18); }
.status-dot.off::before { background: #f3b653; box-shadow: 0 0 0 3px rgba(243, 182, 83, .18); }
.side-foot a { color: var(--side-muted); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; position: relative; }
.search [data-lucide] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input { padding-left: 38px; border-radius: 12px; background: var(--surface); }
.topbar .spacer { flex: 1; }
.content { padding: 28px 32px 64px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pink-600);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

.mobile-bar { display: none; }
#nav-toggle { display: none; }
.scrim { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  #nav-toggle:checked ~ .app .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  #nav-toggle:checked ~ .app .scrim { display: block; }
  .scrim { position: fixed; inset: 0; background: rgba(20, 5, 16, .45); z-index: 40; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 30; }
  .mobile-bar label { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); cursor: pointer; }
  .topbar { padding: 12px 16px; top: 60px; }
  .content { padding: 20px 16px 48px; }
  h1 { font-size: 25px; }
}

/* --- Elementi --------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h2 [data-lucide], .card-head h3 [data-lucide] { color: var(--pink); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--font); border-radius: 11px;
  padding: 10px 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 46, 136, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(255, 46, 136, 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-soft { background: var(--pink-50); color: var(--pink-700); border-color: var(--pink-100); }
.btn-soft:hover { background: var(--pink-100); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-600); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading [data-lucide] { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-soft { color: #ff8fc0; } }

input, select, textarea { width: 100%; font: 450 14px var(--font); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 16%, transparent); }
textarea { min-height: 96px; resize: vertical; }
label.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }

/* Chip, badge */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip [data-lucide] { width: 14px; height: 14px; }
.chip.pink { background: var(--pink-50); border-color: var(--pink-100); color: var(--pink-700); }
.chip.violet { background: var(--violet-50); border-color: transparent; color: #6d3fd8; }
.chip.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.chip.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.chip.danger { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.chip.gray { background: var(--gray-bg); border-color: transparent; color: var(--gray); }
.chip.solid { background: var(--grad); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.pink { color: #ff9cc8; } :root:not([data-theme="light"]) .chip.violet { color: #c4a8ff; } }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.SI { background: var(--ok); } .dot.POTENZIALMENTE { background: var(--violet); } .dot.DA_VERIFICARE { background: #f0a020; } .dot.NO { background: var(--line-2); }
.esito { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.esito.SI { background: var(--ok-bg); color: var(--ok); }
.esito.POTENZIALMENTE { background: var(--violet-50); color: #6d3fd8; }
.esito.DA_VERIFICARE { background: var(--warn-bg); color: var(--warn); }
.esito.NO { background: var(--gray-bg); color: var(--gray); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .esito.POTENZIALMENTE { color: #c4a8ff; } }
.fascia { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; }
.fascia.alta_priorita { background: var(--grad); color: #fff; }
.fascia.da_approfondire { background: var(--violet-50); color: #6d3fd8; }
.fascia.monitoraggio { background: var(--gray-bg); color: var(--ink-2); }
.fascia.archivio { background: var(--gray-bg); color: var(--gray); }

/* Anello del Fit Score */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .track { stroke: var(--pink-100); }
.ring .val { position: absolute; font: 700 var(--ring-font, 16px) var(--mono); letter-spacing: -.04em; color: var(--ink); }
.ring.archivio .track { stroke: var(--gray-bg); }
.ring small { position: absolute; bottom: 18%; font: 600 9px var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* KPI */
.kpi { position: relative; overflow: hidden; }
.kpi .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--pink-50); color: var(--pink); margin-bottom: 14px; }
.kpi .num { font: 700 32px/1 var(--mono); letter-spacing: -.05em; }
.kpi .lbl { color: var(--muted); font-size: 13px; margin-top: 6px; }
.kpi.hero-kpi { background: var(--grad); color: #fff; border: 0; }
.kpi.hero-kpi .ico { background: rgba(255, 255, 255, .18); color: #fff; }
.kpi.hero-kpi .lbl { color: rgba(255, 255, 255, .85); }
.kpi a.stretch::after { content: ""; position: absolute; inset: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 32px; color: #fff; background: #26081d;
  background-image: radial-gradient(600px 300px at 90% 0%, rgba(255, 46, 136, .75), transparent 60%),
                    radial-gradient(500px 300px at 60% 120%, rgba(168, 85, 247, .7), transparent 60%),
                    radial-gradient(400px 200px at 0% 0%, rgba(255, 95, 162, .35), transparent 70%);
  box-shadow: var(--shadow-lg); margin-bottom: 22px; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.hero h1 { font-size: 34px; font-weight: 650; max-width: 720px; }
.hero h1 .serif { font-size: 1.12em; }
.hero p { color: rgba(255, 255, 255, .82); margin: 10px 0 0; max-width: 620px; font-size: 15px; }
.hero .row { margin-top: 20px; position: relative; z-index: 1; }
.hero .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn-primary { background: #fff; color: var(--pink-700); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.radar-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; opacity: .55; pointer-events: none; }
@media (max-width: 960px) { .radar-art { display: none; } .hero { padding: 24px 20px; } .hero h1 { font-size: 26px; } }

/* Imbuto */
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.funnel .step { position: relative; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.funnel .step b { display: block; font: 700 26px/1.1 var(--mono); letter-spacing: -.04em; }
.funnel .step span { font-size: 12.5px; color: var(--muted); }
.funnel .step .bar { height: 6px; border-radius: 3px; background: var(--pink-100); margin-top: 12px; overflow: hidden; }
.funnel .step .bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.funnel .step:last-child { background: var(--grad-soft); border-color: var(--pink-100); }
@media (max-width: 720px) { .funnel { grid-template-columns: 1fr 1fr; } }

.barlist { display: grid; gap: 10px; }
.barlist .it { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.barlist .track { height: 10px; border-radius: 6px; background: var(--pink-50); overflow: hidden; }
.barlist .track i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }

/* Liste */
.list { display: grid; }
.list > * { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; padding-bottom: 0; }
.list > *:first-child { padding-top: 0; }
.date-tile { width: 48px; flex: none; text-align: center; border-radius: 12px; background: var(--pink-50); color: var(--pink-700); padding: 6px 0; line-height: 1.05; }
.date-tile b { display: block; font: 700 18px var(--mono); }
.date-tile span { font-size: 10.5px; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.date-tile.urgent { background: var(--grad); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .date-tile { color: #ff9cc8; } :root:not([data-theme="light"]) .date-tile.urgent { color: #fff; } }

/* Card opportunità */
.opp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.opp:hover { border-color: var(--pink-100); transform: translateY(-1px); box-shadow: var(--shadow), 0 14px 30px -18px rgba(255, 46, 136, .45); }
.opp h3 { font-size: 15.5px; line-height: 1.35; margin-bottom: 6px; }
.opp h3 a { color: var(--ink); }
.opp h3 a::after { content: ""; position: absolute; inset: 0; }
.opp .why { color: var(--ink-2); font-size: 13.5px; margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opp .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.opp .meta span { display: inline-flex; align-items: center; gap: 5px; }
.opp .meta [data-lucide] { width: 14px; height: 14px; }
.opp .money { text-align: right; min-width: 120px; }
.opp .money b { display: block; font: 700 20px var(--mono); letter-spacing: -.04em; }
.opp .money span { font-size: 12px; color: var(--muted); }
.opp .tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; pointer-events: none; }
@media (max-width: 720px) { .opp { grid-template-columns: auto 1fr; } .opp .money { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; } }

/* Barra filtri */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.filterbar > * { flex: 1 1 160px; }
.filterbar .search { flex: 2 1 240px; max-width: none; }
.filterbar .btn { flex: 0 0 auto; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 550; font-size: 13.5px; }
.seg a:hover { background: var(--surface-3); text-decoration: none; }
.seg a.on { background: var(--ink); color: var(--surface); }
.seg a .n { font: 600 11px var(--mono); opacity: .7; }
details.more { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; box-shadow: var(--shadow); }
details.more summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { border-bottom: 1px solid var(--line); }
details.more .body { padding: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 960px) { details.more .body { grid-template-columns: 1fr 1fr; } }

/* Scheda bando */
.detail-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; margin-bottom: 20px; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 100% 0%, rgba(255, 46, 136, .12), transparent 70%),
  radial-gradient(400px 200px at 0% 100%, rgba(139, 92, 246, .10), transparent 70%); pointer-events: none; }
.detail-hero > * { position: relative; }
.detail-hero h1 { font-size: 26px; margin: 10px 0 8px; }
@media (max-width: 720px) { .detail-hero { grid-template-columns: 1fr; padding: 20px; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.fact .k { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 550; }
.fact .k [data-lucide] { width: 14px; height: 14px; color: var(--pink); }
.fact .v { font: 650 17px/1.3 var(--font); margin-top: 6px; letter-spacing: -.02em; }
.fact .s { font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; position: sticky; top: 62px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); z-index: 10; }
.tabs a { padding: 12px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--pink-600); border-color: var(--pink); }
section.sec { scroll-margin-top: 130px; margin-bottom: 26px; }
section.sec > h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
section.sec > h2 [data-lucide] { color: var(--pink); }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 8px; } }
ul.clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.clean li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
ul.clean li [data-lucide] { width: 16px; height: 16px; margin-top: 2px; color: var(--pink); }
ul.clean.x li [data-lucide] { color: var(--gray); }
.comp3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.comp3 .c { border-radius: 14px; padding: 16px; background: var(--grad-soft); border: 1px solid var(--pink-100); }
.comp3 .c .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.comp3 .c .v { font-size: 17px; font-weight: 650; margin-top: 6px; text-transform: capitalize; }
@media (max-width: 720px) { .comp3 { grid-template-columns: 1fr; } }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.steps .chip { padding: 6px 12px; font-size: 13px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.meter { height: 8px; background: var(--pink-50); border-radius: 4px; overflow: hidden; min-width: 80px; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
blockquote { margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid var(--pink); background: var(--surface-2); border-radius: 0 10px 10px 0;
  font-size: 13.5px; color: var(--ink-2); }
.rail { position: sticky; top: 80px; display: grid; gap: 16px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 20px 52px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .node { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--pink); }
.timeline .node.hot { background: var(--grad); color: #fff; border: 0; }
.timeline .node [data-lucide] { width: 16px; height: 16px; }

/* Stato vuoto, flash */
.empty { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--pink); }
.empty .ico [data-lucide] { width: 26px; height: 26px; }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 16px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; border: 1px solid;
  animation: pop .25s ease-out; }
.flash.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--ok); }
.flash.ko { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 25%, transparent); color: var(--danger); }
.flash b { display: block; color: var(--ink); }
.flash span { color: var(--ink-2); font-size: 13.5px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--pink-100); margin-bottom: 18px; flex-wrap: wrap; }
.banner .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.banner > div { flex: 1 1 260px; }
.demo-note { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); padding: 3px 9px; border-radius: 99px; }

/* Job */
.job { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.job .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--pink); }
.source { display: flex; align-items: center; gap: 12px; }
.source .logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--pink-600); font-weight: 700; font-size: 13px; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { position: relative; overflow: hidden; background: #1c0716; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(700px 400px at 100% 0%, rgba(255, 46, 136, .8), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(168, 85, 247, .7), transparent 60%); }
.login .art h1 { font-size: 46px; line-height: 1.05; max-width: 520px; }
.login .art p { color: rgba(255, 255, 255, .8); max-width: 460px; font-size: 16px; }
.login .form { display: grid; place-items: center; padding: 32px 20px; }
.login .form > div { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login .art { padding: 32px 24px; min-height: 280px; } .login .art h1 { font-size: 32px; } }

.guide-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.guide-step .n { width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 17px var(--mono); }
kbd { font: 600 12px var(--mono); background: var(--surface-3); border: 1px solid var(--line-2); border-bottom-width: 2px; padding: 1px 6px; border-radius: 6px; }
.hide-sm { } @media (max-width: 720px) { .hide-sm { display: none !important; } }

@media (max-width: 1100px) { .g2.jobs { grid-template-columns: 1fr; } }
.topbar .search { min-width: 180px; }
.wm { display: block; font: 700 23px/1 var(--font); letter-spacing: -.045em;
  background: linear-gradient(135deg, #ff4f9a 0%, #ff8cc0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm i { font-style: normal; color: #fff; -webkit-text-fill-color: #fff; }
