/* ============================================================
   SIMBIAL — Design System "Planet"
   Il tuo talento per il pianeta. Base avorio, verde bosco per il
   talento, blu oceano per il lato aziende, lime SOLO premi/progressi.
   Tema chiaro di default; dark mode dalle brand guidelines.
   ============================================================ */

:root {
  /* Palette Planet (chiara, default) */
  --bg: #FAF9F5;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F0F1EA;
  --surface-3: #E2E4DD;
  --line: rgba(23, 35, 29, 0.12);
  --text: #17231D;
  --text-2: #47564E;
  --text-3: #6B7A70;

  --brand: #1B5E46;
  --brand-strong: #144736;
  --brand-2: #1B5E46;
  --brand-soft: rgba(27, 94, 70, 0.10);
  --on-primary: #FAF9F5;
  --ocean: #10586C;
  --xp: #7D9A1D;               /* lime "da testo": leggibile su fondo chiaro */
  --xp-bright: #B5E048;        /* lime pieno: solo riempimenti premi/progressi */
  --success: #2E7D4F;
  --success-soft: rgba(46, 125, 79, 0.12);
  --danger: #B4402B;
  --danger-soft: rgba(180, 64, 43, 0.12);
  --info: #10586C;
  --info-soft: rgba(16, 88, 108, 0.10);
  --tint-green: #E4EFE6;
  --tint-blue: #E0EDF1;
  --tint-sand: #F1E8D6;

  --grad-hero: linear-gradient(135deg, #1B5E46, #10586C);
  --grad-xp: linear-gradient(90deg, #B5E048, #9CCB35);
  --grad-card: linear-gradient(180deg, rgba(27, 94, 70, 0.06), rgba(27, 94, 70, 0) 60%);

  /* Tipografia: sans di sistema + Mansalva per gli accenti a mano */
  --font-display: -apple-system, 'SF Pro Text', 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, 'SF Pro Text', 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;

  /* Geometria */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow: 0 14px 34px -22px rgba(23, 35, 29, 0.25);
  --shadow-brand: 0 8px 24px rgba(27, 94, 70, 0.25);

  --nav-h: 64px;
  --sidebar-w: 232px;
}

/* ---------- Dark mode (dalle brand guidelines: verdi schiariti,
   lime invariato, testo dei bottoni pieni scuro) ---------- */
[data-theme='dark'] {
  --bg: #101B15;
  --bg-2: #16241D;
  --surface: #16241D;
  --surface-2: #1B2C23;
  --surface-3: #2A3B31;
  --line: rgba(232, 239, 233, 0.10);
  --text: #E8EFE9;
  --text-2: #9FB3A7;
  --text-3: #7E948A;

  --brand: #8CCBAA;
  --brand-strong: #A5DDBE;
  --brand-2: #A5DDBE;
  --brand-soft: rgba(140, 203, 170, 0.14);
  --on-primary: #101B15;
  --ocean: #6FB9CF;
  --xp: #B5E048;
  --success: #7FC79B;
  --success-soft: rgba(140, 203, 170, 0.15);
  --danger: #E08A76;
  --danger-soft: rgba(224, 138, 118, 0.14);
  --info: #6FB9CF;
  --info-soft: rgba(111, 185, 207, 0.14);

  --grad-card: linear-gradient(180deg, rgba(140, 203, 170, 0.08), rgba(140, 203, 170, 0) 60%);
  --shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] body::before {
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(140, 203, 170, 0.07), transparent 60%),
    radial-gradient(50% 35% at 90% 10%, rgba(111, 185, 207, 0.05), transparent 60%);
}

[data-theme='dark'] .topbar { background: rgba(16, 27, 21, 0.84); }
[data-theme='dark'] .nav { background: rgba(22, 36, 29, 0.94); }
[data-theme='dark'] .tutor-panel { background: var(--bg-2); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* glow ambientale, quieto: verde bosco e oceano appena accennati */
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(27, 94, 70, 0.07), transparent 60%),
    radial-gradient(50% 35% at 90% 10%, rgba(16, 88, 108, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { color: var(--text-2); }
a { color: var(--brand-2); text-decoration: none; }
strong { color: var(--text); }

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
::placeholder { color: var(--text-3); }

/* ---------- Layout ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 24px 18px calc(var(--nav-h) + 88px); }
.page--narrow { max-width: 680px; }
.page--wide { max-width: 1200px; }

.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; }

/* Top bar (in-app) */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.topbar__spacer { flex: 1; }

/* Il marchio è la S su tessera bianca del kit: nessuno sfondo CSS,
   il colore vive dentro l'SVG e non si tocca. */
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
}

/* Bottom nav (mobile) / side nav (desktop) */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.66rem; color: var(--text-3); padding: 6px 10px;
  border-radius: var(--r-sm); min-width: 58px;
}
.nav__item .ico { font-size: 1.25rem; line-height: 1; }
.nav__item.is-active { color: var(--brand-2); background: var(--brand-soft); }
.nav__item:disabled { opacity: 0.35; cursor: not-allowed; }

@media (min-width: 900px) {
  .nav {
    top: 0; bottom: 0; left: 0; right: auto;
    width: var(--sidebar-w);
    flex-direction: column; justify-content: flex-start; gap: 4px;
    border-top: none; border-right: 1px solid var(--line);
    padding: 84px 12px 16px;
  }
  .nav__item {
    flex-direction: row; gap: 12px; width: 100%;
    font-size: 0.9rem; padding: 11px 14px; min-width: 0;
    justify-content: flex-start;
  }
  .with-nav .app-main { margin-left: var(--sidebar-w); }
  .with-nav .topbar { margin-left: var(--sidebar-w); }
  .page { padding-bottom: 120px; }
}

/* ---------- Componenti base ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem;
  padding: 13px 22px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  border: 1px solid var(--line);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
/* Primario pieno: verde bosco solido (il gradiente Planet resta per l'unico
   brand moment per pagina). Ghost: testo e bordo SEMPRE blu oceano. */
.btn--primary { background: var(--brand); border: none; color: var(--on-primary); box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--success { background: var(--success); border: none; color: #06281c; }
.btn--ghost { background: transparent; color: var(--ocean); border: 1.5px solid var(--ocean); }
.btn--ghost:hover { background: var(--tint-blue); }
[data-theme='dark'] .btn--ghost:hover { background: rgba(111, 185, 207, 0.14); }
.btn--sm { padding: 8px 15px; font-size: 0.84rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.card--glow { background: var(--surface) var(--grad-card); }
.card--clickable { cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.card--clickable:hover { transform: translateY(-2px); border-color: rgba(27, 94, 70, 0.45); }
.card--selected { border-color: var(--brand-2); outline: 2px solid var(--brand-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600;
  padding: 4px 11px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line);
}
.chip--brand { background: var(--brand-soft); color: var(--brand-2); border-color: transparent; }
.chip--success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.chip--warn { background: rgba(181, 224, 72, 0.18); color: var(--xp); border-color: transparent; }
.chip--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip--info { background: var(--info-soft); color: var(--info); border-color: transparent; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.muted { color: var(--text-3); font-size: 0.84rem; }
.small { font-size: 0.85rem; }
.tcenter { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }

/* Barre di progresso */
.bar { height: 10px; border-radius: var(--r-full); background: var(--bg-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-full); background: var(--grad-hero); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.bar__fill--xp { background: var(--grad-xp); }
.bar__fill--success { background: var(--success); }

/* Stat pill (XP, crediti, streak) */
.stat {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: var(--r-full);
  font-weight: 700; font-size: 0.82rem;
}
.stat .ico { font-size: 1rem; }

/* Statistiche della topbar con descrittivo sotto l'icona */
.stat--tag {
  flex-direction: column; gap: 1px;
  padding: 4px 12px 5px; line-height: 1.1;
}
.stat--tag .stat__val { white-space: nowrap; }
.stat--tag .stat__label {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-3);
}
@media (max-width: 560px) {
  .stat--tag .stat__label { display: none; } /* su schermi piccoli vince la compattezza */
}

/* Avatar */
.avatar {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 800; font-size: 0.95rem; color: #fff;
  background: var(--surface-3);
}
.avatar--brand { background: var(--grad-hero); }
.avatar--lg { width: 60px; height: 60px; font-size: 1.4rem; }

/* ---------- Landing ---------- */
.hero { padding: 60px 18px 40px; text-align: center; max-width: 780px; margin: 0 auto; }
.hero h1 { margin: 18px 0 14px; }
.hero .grad-text { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.06rem; max-width: 560px; margin: 0 auto 26px; }

.steps-band { display: grid; gap: 14px; }
@media (min-width: 760px) { .steps-band { grid-template-columns: repeat(4, 1fr); } }
.step-card { text-align: left; }
.step-card .num {
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand-2);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
  font-family: var(--font-display);
}

/* ---------- Assessment ---------- */
.quiz-option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); font-size: 0.97rem; color: var(--text);
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.quiz-option:hover { border-color: var(--brand-2); transform: translateX(4px); }
.quiz-option.is-picked { background: var(--brand-soft); border-color: var(--brand-2); }
.quiz-option .emoji { font-size: 1.5rem; }

.tutor-bubble {
  display: flex; gap: 12px; align-items: flex-start;
  animation: rise 0.4s ease both;
}
.tutor-bubble__msg {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: 13px 16px; color: var(--text); max-width: 560px;
}

/* Trait bars nei risultati */
.trait { display: grid; grid-template-columns: 120px 1fr 40px; align-items: center; gap: 12px; font-size: 0.86rem; }
.trait b { font-weight: 600; color: var(--text-2); }
.trait .val { text-align: right; color: var(--text); font-weight: 700; }

/* ---------- Mappa livelli (percorso) ---------- */
.level-map { display: flex; flex-direction: column; gap: 0; position: relative; }
.level-node { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.level-node::before {
  content: ''; position: absolute; left: 23px; top: 48px; bottom: 0;
  width: 3px; background: var(--surface-3); border-radius: 2px;
}
.level-node:last-child::before { display: none; }
.level-node.is-done::before { background: var(--success); }
.level-node__badge {
  width: 48px; height: 48px; border-radius: var(--r-full); flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface-2); border: 2px solid var(--surface-3);
  z-index: 1;
}
.level-node.is-done .level-node__badge { background: var(--success-soft); border-color: var(--success); }
.level-node.is-current .level-node__badge {
  background: var(--brand-soft); border-color: var(--brand-2);
  box-shadow: 0 0 0 6px rgba(27, 94, 70, 0.15);
  animation: pulse 2s infinite;
}
.level-node.is-locked { opacity: 0.5; }
.level-node__body { flex: 1; padding-top: 2px; }

/* ---------- Workspace simulazione ---------- */
.ws-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tab {
  padding: 9px 16px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  white-space: nowrap; display: inline-flex; gap: 7px; align-items: center;
}
.ws-tab.is-active { background: var(--brand); color: var(--on-primary); border-color: transparent; }
.ws-tab .dot {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--danger); color: #fff; font-size: 0.68rem;
  display: grid; place-items: center; font-weight: 800;
}

.email-item {
  display: flex; gap: 13px; padding: 15px; width: 100%; text-align: left;
  border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line); transition: border-color 0.12s;
}
.email-item:hover { border-color: var(--brand-2); }
.email-item.is-unread { border-left: 3px solid var(--brand-2); }
.email-item.is-unread .email-item__subject { font-weight: 700; color: var(--text); }
.email-item__subject { color: var(--text-2); }

.chat-log { display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-end; animation: rise 0.3s ease both; }
.chat-msg__bubble {
  background: var(--surface-2); border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: 11px 15px; max-width: 78%; font-size: 0.93rem;
}
.chat-msg--me { flex-direction: row-reverse; }
.chat-msg--me .chat-msg__bubble { background: var(--brand); color: var(--on-primary); border-radius: var(--r-md) 4px var(--r-md) var(--r-md); }

.task-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
}
.task-item.is-done { opacity: 0.55; }
.task-item.is-done .task-item__title { text-decoration: line-through; }
.deadline { font-size: 0.75rem; font-weight: 700; }
.deadline--soon { color: var(--danger); }
.deadline--ok { color: var(--xp); }

/* ---------- Tutor dock (chat flottante) ---------- */
#tutor-dock { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 18px); z-index: 60; }
@media (min-width: 900px) { #tutor-dock { bottom: 22px; } }

.tutor-fab {
  width: 58px; height: 58px; border-radius: var(--r-full);
  background: var(--grad-hero); box-shadow: var(--shadow-brand);
  display: grid; place-items: center; font-size: 1.6rem;
  transition: transform 0.15s;
  position: relative;
}
.tutor-fab:hover { transform: scale(1.06); }
.tutor-fab .ping {
  position: absolute; top: 0; right: 0;
  width: 15px; height: 15px; border-radius: var(--r-full);
  background: var(--danger); border: 2px solid var(--bg);
  animation: pulse 1.6s infinite;
}

.tutor-panel {
  position: fixed; right: 12px; bottom: calc(var(--nav-h) + 14px);
  width: min(400px, calc(100vw - 24px));
  height: min(560px, calc(100vh - var(--nav-h) - 40px));
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  animation: rise 0.25s ease both;
  z-index: 70;
}
@media (min-width: 900px) { .tutor-panel { bottom: 18px; } }
.tutor-panel__head {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tutor-panel__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tutor-panel__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.tutor-panel__input input { flex: 1; }
.tutor-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; background: var(--surface); }

/* ---------- Toast & modal ---------- */
#toast-root { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 28px)); }
.toast {
  display: flex; gap: 11px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 16px;
  box-shadow: var(--shadow); animation: drop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-size: 0.9rem;
}
.toast--xp { border-color: rgba(181, 224, 72, 0.6); }
.toast .ico { font-size: 1.3rem; }

#modal-root:not(:empty) {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 16, 12, 0.55); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 18px;
}
.modal {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  animation: rise 0.3s ease both;
}

/* Level-up celebration */
.celebrate { text-align: center; padding: 10px 0; }
.celebrate .big { font-size: 4rem; animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Badge grid */
.badge-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 0.75rem; color: var(--text-2);
}
.badge-tile .ico { font-size: 2rem; }
.badge-tile.is-locked { opacity: 0.35; filter: grayscale(1); }

/* Ring progress (dashboard) */
.ring { position: relative; width: 118px; height: 118px; }
.ring svg { transform: rotate(-90deg); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }

/* Match score */
.match-ring {
  width: 52px; height: 52px; border-radius: var(--r-full); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 0.82rem;
  background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--surface-3) 0);
  position: relative;
}
.match-ring::before { content: ''; position: absolute; inset: 5px; border-radius: var(--r-full); background: var(--surface); }
.match-ring span { position: relative; }

/* Tabelle dati (vista azienda) */
.dtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dtable th { text-align: left; color: var(--text-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dtable td { padding: 13px 12px; border-bottom: 1px solid var(--line); }

/* ---------- Animazioni ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(27, 94, 70, 0.45); } 50% { box-shadow: 0 0 0 9px rgba(27, 94, 70, 0); } }
@keyframes bounceIn { 0% { transform: scale(0.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.anim-rise { animation: rise 0.4s ease both; }

/* Typing indicator */
.typing { display: inline-flex; gap: 4px; padding: 12px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* Focus visibile per accessibilità */
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ---------- Brand Simbial ---------- */
/* Logotipo esteso dal kit: l'SVG scala col font-size del contenitore.
   In dark mode il lettering quasi-nero vive su targhetta bianca
   (stessa regola del mockup della home). */
.brand-word { display: inline-flex; align-items: center; line-height: 1; }
.brand-word svg { height: 1.3em; width: auto; display: block; }
[data-theme='dark'] .brand-word { background: #FFFFFF; border-radius: 0.35em; padding: 0.22em 0.45em; }
.brand-tagline {
  margin-top: 8px; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.28em; color: var(--text-3); text-transform: uppercase;
}

/* ---------- Materiali di lavoro nei task ---------- */
.materials {
  background: var(--bg-2); border: 1px dashed var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 0.85rem; color: var(--text-2);
  white-space: pre-wrap; line-height: 1.65;
  max-height: 300px; overflow-y: auto;
}

/* ---------- Scala di carriera (job ladder) ---------- */
.ladder { display: flex; align-items: center; gap: 4px; }
.ladder__step { flex: 1; height: 8px; border-radius: var(--r-full); background: var(--surface-3); }
.ladder__step.is-done { background: var(--grad-xp); }
.ladder__step.is-current { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Card ruolo (onboarding) ---------- */
.role-card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  transition: transform 0.15s, border-color 0.15s;
}
.role-card:hover { transform: translateY(-2px); border-color: var(--brand-2); }
.role-card--primary { background: var(--surface) var(--grad-card); border-color: rgba(27, 94, 70, 0.4); }

/* ---------- Lista funzionalità nei pacchetti ---------- */
.feat { display: flex; gap: 9px; align-items: flex-start; font-size: 0.86rem; color: var(--text-2); }
.feat::before { content: '✓'; color: var(--success); font-weight: 800; flex-shrink: 0; }
.feat--no { opacity: 0.45; }
.feat--no::before { content: '—'; color: var(--text-3); }

/* ---------- Hero: mappa talento × aspirazione ---------- */
.tal-map { max-width: 420px; margin: 26px auto 0; }
.tal-map svg { width: 100%; height: auto; }
.tal-map .pulse-star { animation: starPulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes starPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.85; } }

/* Glifi disegnati per gli step della landing */
.glyph { width: 44px; height: 44px; margin-bottom: 12px; }
.glyph path, .glyph circle, .glyph rect, .glyph line, .glyph polyline {
  fill: none; stroke: var(--brand-2); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.glyph .accent { stroke: var(--xp); }

/* ---------- Admin ---------- */
.admin-kpi { text-align: center; padding: 18px 10px; }
.admin-kpi .big { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); }
.report-bar { display: grid; grid-template-columns: 170px 1fr 46px; gap: 10px; align-items: center; font-size: 0.84rem; }

/* ---------- Paywall ---------- */
.pay-badge {
  position: absolute; top: 14px; right: -34px; transform: rotate(38deg);
  background: var(--grad-xp); color: #23330a; font-size: 0.68rem; font-weight: 800;
  padding: 4px 38px; letter-spacing: 0.04em;
}

/* Riduzione animazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ ATTESTATO (schermo + stampa PDF) ============ */
.certificate {
  --cert-ink: #17231D; --cert-muted: #5A6B60; --cert-line: #DCE0D8;
  background: #fdfdfc; color: var(--cert-ink);
  width: min(210mm, 100%); padding: 15mm 16mm; border-radius: 14px;
  border: 1px solid var(--cert-line);
  box-shadow: 0 18px 60px rgba(10, 12, 30, 0.35);
  font-size: 0.86rem; line-height: 1.45;
}
.certificate .brand-word { color: var(--cert-ink); }
.cert__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert__sub { font-size: 0.66rem; color: var(--cert-muted); letter-spacing: 0.4px; }
.cert__id { font-size: 0.7rem; color: var(--cert-muted); white-space: nowrap; padding-top: 6px; }
.cert__rule { height: 3px; margin-top: 12px; border-radius: 2px; background: linear-gradient(135deg, #1B5E46, #10586C); }
.cert__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; color: var(--cert-muted); }
.cert__name { font-size: 2rem; margin: 10px 0 2px; color: var(--cert-ink); }
.cert__line { color: var(--cert-muted); font-size: 0.86rem; }
.cert__title { font-size: 1.35rem; margin: 6px 0; color: var(--cert-ink); }
.cert__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.cert__cell { border: 1px solid var(--cert-line); border-radius: 10px; padding: 12px 14px; }
.cert__cell-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cert-muted); }
.cert__cell-val { font-weight: 800; margin-top: 3px; }
.cert__cell-sub { font-size: 0.74rem; color: var(--cert-muted); margin-top: 3px; }
.cert__section { margin-top: 14px; }
.cert__section h3 { font-size: 0.8rem; letter-spacing: 0.6px; text-transform: uppercase; color: var(--cert-ink); margin-bottom: 8px; }
.cert__skill { border: 1px solid var(--cert-line); border-radius: 999px; padding: 4px 11px; font-size: 0.74rem; font-weight: 600; color: var(--cert-ink); background: #F0F1EA; }
.cert__ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.cert__ind { border: 1px solid var(--cert-line); border-radius: 10px; padding: 8px 6px; text-align: center; }
.cert__ind-val { font-size: 1.25rem; font-weight: 800; background: linear-gradient(135deg, #1B5E46, #10586C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert__ind-label { font-size: 0.62rem; color: var(--cert-muted); margin-top: 2px; }
.cert__note { font-size: 0.65rem; color: var(--cert-muted); margin-top: 6px; }
.cert__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--cert-line); }
.cert__foot-line { font-size: 0.74rem; font-weight: 700; }
.cert__sign { font-size: 1.5rem; background: linear-gradient(135deg, #1B5E46, #10586C); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 2px; }

@media print {
  body, html { background: #fff !important; }
  body * { visibility: hidden; }
  .certificate, .certificate * { visibility: visible; }
  .certificate {
    position: absolute; inset: 0 auto auto 0; width: 100%;
    margin: 0; border: none; border-radius: 0; box-shadow: none;
    padding: 10mm 12mm;
  }
  .no-print, .nav, .topbar, #tutor-dock, #toast-root { display: none !important; }
}

/* ============ MATURAZIONE UI: juice, registro business, inbox ============ */

/* Coriandoli */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.confetti i {
  position: absolute; top: -14px; height: 13px; border-radius: 2px; opacity: 0.95;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(108vh) rotate(660deg); opacity: 0.85; }
}

/* Statistiche topbar: bump quando il valore cambia, fiamma che pulsa */
.stat--tag.bump .stat__val { animation: statbump 0.4s ease; }
@keyframes statbump { 45% { transform: scale(1.18); } }
.stat--fire .stat__val { animation: firepulse 1.9s ease-in-out infinite; }
@keyframes firepulse { 50% { transform: scale(1.07); filter: brightness(1.15); } }

/* Inbox in stile client di posta */
.mail-row { display: flex; gap: 12px; align-items: flex-start; }
.mail-row__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); margin-top: 7px; flex-shrink: 0; }
.mail-row__dot--read { background: transparent; border: 1px solid var(--line); }
.mail-row__body { flex: 1; min-width: 0; }
.mail-row__subject { font-weight: 800; }
.mail-row--read .mail-row__subject { font-weight: 600; color: var(--text-2); }
.mail-row__preview { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mail-row__time { font-size: 0.68rem; color: var(--text-3); flex-shrink: 0; padding-top: 3px; }

/* Registro business: sobrio, denso, professionale (aziende e admin) */
body[data-register='business']::before { opacity: 0.25; }
body[data-register='business'] .card { border-radius: 14px; }
body[data-register='business'] .card--glow { background: var(--surface); }
body[data-register='business'] .btn { border-radius: 10px; }
body[data-register='business'] .chip { border-radius: 7px; }
body[data-register='business'] .dtable th, body[data-register='business'] .dtable td { padding: 8px 10px; font-size: 0.8rem; }
body[data-register='business'] h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }

/* ============ IL FLUSSO: la simulazione come feed sociale ============ */
.feed-page { max-width: 620px; }

/* Strip di contesto sticky: sa sempre dirti dove sei, senza urlare */
.feed-head {
  position: sticky; top: 62px; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px 12px;
}

/* La card del flusso: un post */
.fcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 18px;
  animation: rise 0.35s ease both;
}
.fcard--unread { border-left: 3px solid var(--brand-2); }
.fcard--todo { border-left: 3px solid var(--xp); }
.fcard--intro { background: var(--surface) var(--grad-card); }
.fcard--nudge {
  border-color: rgba(233, 180, 76, 0.55); font-size: 0.9rem;
  background: rgba(233, 180, 76, 0.07); color: var(--text-2);
}
.fcard--finish { border-style: dashed; }
.fcard--finish.is-ready { border-style: solid; border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.fcard__head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fcard__time { font-size: 0.68rem; color: var(--text-3); flex-shrink: 0; }
.fcard__subject { font-weight: 800; margin: 2px 0 6px; }
.fcard__body { margin: 8px 0; color: var(--text-2); font-size: 0.92rem; }
.fcard__tip {
  background: var(--bg-2); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 0.82rem; color: var(--text-3);
}

/* La tua consegna: il tuo "post" dentro la card */
.fcard__me {
  background: var(--brand-soft); border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: 11px 14px; border: 1px solid transparent;
}

/* Commenti di capo e collega sotto la consegna */
.fcard__comment {
  display: block; margin-top: 8px;
  background: var(--bg-2); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 0.84rem; color: var(--text-2);
  animation: rise 0.4s ease both;
}
.fcard__comment b { color: var(--text); }

/* Reazioni: il linguaggio muscolare dei social */
.fcard__react { display: flex; gap: 6px; margin-top: 8px; }
.react-btn {
  font-size: 0.95rem; padding: 4px 10px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line);
  filter: grayscale(0.7); opacity: 0.7; transition: all 0.15s;
}
.react-btn:hover { filter: none; opacity: 1; transform: scale(1.08); }
.react-btn.is-on { filter: none; opacity: 1; background: var(--brand-soft); border-color: var(--brand-2); }

/* Decisione come sondaggio */
.poll-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: left; padding: 13px 15px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); font-size: 0.92rem; color: var(--text);
  transition: transform 0.12s, border-color 0.12s;
}
.poll-opt:hover { border-color: var(--brand-2); transform: translateX(4px); }
.poll-opt.is-picked { background: var(--brand-soft); border-color: var(--brand-2); }
.poll-opt .emoji { font-size: 1.25rem; }

/* La spina dorsale: rail di avanzamento ancorata allo scroll */
.rail {
  position: fixed; right: 10px; top: 110px; bottom: 110px; width: 26px;
  z-index: 35; display: flex; flex-direction: column;
  justify-content: space-between; align-items: center;
  pointer-events: none;
}
.rail::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: var(--surface-3); border-radius: 2px;
}
.rail__fill {
  position: absolute; top: 0; left: 50%; width: 3px;
  transform: translateX(-50%);
  background: var(--grad-hero); border-radius: 2px;
  height: 0%; transition: height 0.2s ease;
}
.rail__node {
  position: relative; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800;
  background: var(--surface-2); border: 2px solid var(--surface-3);
  color: var(--text-3); pointer-events: auto;
}
.rail__node.is-done { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.rail__node.is-current {
  background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-2);
  animation: pulse 2s infinite;
}
@media (max-width: 760px) {
  .rail { right: 4px; width: 18px; top: 120px; bottom: 130px; }
  .rail__node { width: 16px; height: 16px; font-size: 0.5rem; }
}
@media (min-width: 900px) {
  .feed-head { top: 66px; }
}

/* Percorso: la barra di viaggio a tappe (dashboard) */
.journey { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.journey__step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.62rem; color: var(--text-3); text-align: center;
}
.journey__dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.85rem;
  background: var(--surface-2); border: 2px solid var(--surface-3);
}
.journey__step.is-done .journey__dot { background: var(--success-soft); border-color: var(--success); }
.journey__step.is-current .journey__dot { background: var(--brand-soft); border-color: var(--brand-2); animation: pulse 2s infinite; }
.journey__bar { flex: 0 0 12px; height: 3px; background: var(--surface-3); border-radius: 2px; margin-top: -14px; }
.journey__bar.is-done { background: var(--success); }

/* Logo mobile: il wordmark non si spezza mai. Sotto i 420px resta
   solo il marchio T✦ (il naming completo vive negli spazi larghi). */
.topbar__logo { white-space: nowrap; flex-shrink: 0; }
.brand-word { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar__logo .brand-word { display: none; }
}
@media (min-width: 421px) and (max-width: 560px) {
  .topbar__logo .brand-word { font-size: 0.92rem !important; }
}

/* ============ UX 2.0: notifiche, agenda, allegati, schede ============ */

/* Banner-notifica stile smartphone */
#pnotif-root { position: fixed; top: 14px; right: 14px; z-index: 320; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 28px)); }
.pnotif {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 12px; box-shadow: 0 12px 34px rgba(8, 10, 26, 0.35);
  animation: pnotif-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.pnotif.is-out { opacity: 0; transform: translateY(-8px); transition: all 0.3s; }
@keyframes pnotif-in { from { opacity: 0; transform: translateY(-16px) scale(0.97); } }
.pnotif__ico { font-size: 1.3rem; line-height: 1; margin-top: 2px; }
.pnotif__body { flex: 1; min-width: 0; }
.pnotif__title { font-weight: 800; font-size: 0.82rem; }
.pnotif__text { font-size: 0.76rem; color: var(--text-2); margin-top: 2px; }
.pnotif__x { color: var(--text-3); font-size: 1rem; padding: 0 2px; }

/* Campanella e centro notifiche */
.bell { position: relative; }
.bell__badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  border-radius: 999px; background: var(--danger, #ef4444); color: #fff;
  font-size: 0.62rem; font-weight: 800; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(340px, calc(100vw - 28px));
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(8, 10, 26, 0.4); z-index: 210; overflow: hidden;
}
.notif-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; background: none; border-left: none; border-right: none; border-top: none; color: inherit; font: inherit; }
.notif-item:hover { background: var(--bg-3, rgba(255,255,255,0.04)); }
.notif-item.is-unread { background: var(--brand-soft, rgba(27, 94, 70, 0.1)); }
.notif-item__t { font-weight: 700; font-size: 0.8rem; }
.notif-item__d { font-size: 0.72rem; color: var(--text-2); }
.notif-item__at { font-size: 0.65rem; color: var(--text-3); margin-left: auto; white-space: nowrap; }

/* Agenda della settimana con priorità */
.agenda-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.84rem; }
.agenda-row:last-child { border-bottom: none; }
.agenda-row__what { flex: 1; min-width: 0; }
.agenda-row__when { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }

/* Allegato 2.0: il documento che sembra un documento */
.attach { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.attach__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-3, rgba(255,255,255,0.03)); border-bottom: 1px solid var(--line); }
.attach__fico { font-size: 1.4rem; }
.attach__name { font-weight: 800; font-size: 0.82rem; }
.attach__meta { font-size: 0.68rem; color: var(--text-3); }
.attach__body { padding: 12px 16px; font-size: 0.82rem; line-height: 1.6; }
.attach__body h4 { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-2); margin: 10px 0 4px; }
.attach__body ul { margin: 2px 0 6px 18px; }
.attach__body li { margin-bottom: 2px; }
.attach__chart { padding: 6px 10px 2px; }
.attach__chart-title { font-weight: 700; font-size: 0.78rem; padding: 8px 6px 0; }
.attach__chart-sub { font-size: 0.7rem; color: var(--text-3); padding: 0 6px 4px; }

/* Barre attitudini nella scheda professione */
.apt-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; font-size: 0.78rem; margin-bottom: 5px; }

/* Professioni bloccate (freemium) */
.prof-locked { filter: blur(0.6px); opacity: 0.55; }
.prof-locked .chip { filter: blur(2.5px); }

/* Il claim del hero: non più un chip, una dichiarazione.
   Peso a metà strada tra badge e H1: si legge per prima, non ruba la scena. */
.hero-claim {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  letter-spacing: 0.015em; line-height: 1.2;
}
.hero-claim__star {
  font-size: 0.72em; line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: starPulse 2.6s ease-in-out infinite; display: inline-block;
}
.hero-claim + h1 { margin-top: 10px; }

/* Landing di campagna (#/test): CTA fissa a portata di pollice su mobile */
.lp { padding-bottom: 0; }
.lp-sticky { display: none; }
@media (max-width: 720px) {
  .lp { padding-bottom: 76px; }
  .lp-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-2); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(8, 10, 26, 0.35);
  }
}

/* Attitudini richieste con valore ed etichetta accanto alla barra */
.apt-row--val { grid-template-columns: 110px 1fr auto; }

/* Widget segnalazioni team 🐞 */
.fb-fab {
  position: fixed; bottom: 18px; left: 18px; z-index: 240;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.25rem;
  background: var(--bg-2); border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 10px 28px rgba(8, 10, 26, 0.4);
  transition: transform 0.15s;
}
.fb-fab:hover { transform: scale(1.08); }
.fb-panel {
  position: fixed; bottom: 74px; left: 18px; z-index: 241;
  width: min(360px, calc(100vw - 36px));
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 18px 50px rgba(8, 10, 26, 0.5);
  animation: pnotif-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* ============ Gestionale (#/admin) ============ */
.adm { display: flex; min-height: 100vh; align-items: stretch; }
.adm-side {
  width: 218px; flex-shrink: 0; background: var(--bg-2);
  border-right: 1px solid var(--line); padding: 18px 12px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 14px;
}
.adm-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.adm-nav button {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 9px; background: none; border: none; color: var(--text-2);
  cursor: pointer; font-size: 0.84rem; text-align: left; width: 100%;
}
.adm-nav button:hover { background: var(--bg-3, rgba(128,128,128,0.08)); color: var(--text); }
.adm-nav button.is-active { background: var(--brand-soft, rgba(27, 94, 70, 0.14)); color: var(--text); font-weight: 700; }
.adm-main { flex: 1; min-width: 0; padding: 24px clamp(14px, 3vw, 36px) 60px; }
.adm-main h1 { font-size: 1.35rem; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.adm-table th, .adm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td:nth-child(2) { white-space: normal; word-break: break-all; }
.adm-table th { color: var(--text-2); font-weight: 600; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.5px; }
.adm-table tbody tr:hover td { background: var(--bg-2); }
@media (max-width: 760px) {
  .adm { flex-direction: column; }
  .adm-side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .adm-nav { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .adm-nav button { width: auto; padding: 7px 9px; }
}

/* ============ VETRINA 2.0 — people & data (reference LutherOne) ============ */
/* Font a mano self-hosted: Caveat (OFL). Usato SOLO integrato nelle frasi. */
@font-face {
  font-family: 'Mansalva';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/mansalva-400.woff2') format('woff2');
}
:root {
  --hand-font: 'Mansalva', 'Bradley Hand', 'Segoe Print', cursive;
  --v2-green: #1B5E46;
  --v2-green-deep: #144736;
  --v2-green-soft: rgba(27, 94, 70, 0.12);
  --v2-giallo: #E9B44C;
  --v2-giallo-soft: rgba(233, 180, 76, 0.16);
  --v2-shadow: 0 18px 44px -18px rgba(23, 35, 29, 0.30);
}
.hand { font-family: var(--hand-font); font-weight: 400; line-height: 1; letter-spacing: 0; font-size: 1.02em; color: inherit; }
.hand--xl { font-size: 1.05em; }
.hand-u { position: relative; white-space: nowrap; }
.hand-u svg { position: absolute; left: 0; bottom: -0.34em; width: 100%; height: 0.32em; }

/* ---- hero ---- */
.v2-hero { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.v2-hero h1 { text-wrap: balance; }
.v2-proof { display: flex; align-items: center; gap: 10px; margin-top: 20px; justify-content: flex-start; }
.v2-proof .faces { display: flex; flex-shrink: 0; }
.v2-proof .faces img { width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--bg); object-fit: cover; margin-left: -10px; }
.v2-proof .faces img:first-child { margin-left: 0; }
.v2-proof span { font-size: 0.78rem; color: var(--text-2); text-align: left; }
.v2-proof b { color: var(--text); }

/* collage foto + card fluttuanti */
.v2-collage { position: relative; min-height: 440px; }
.v2-photo-main { position: absolute; top: 10px; left: 6%; width: 62%; border-radius: 26px; overflow: hidden; box-shadow: var(--v2-shadow); transform: rotate(-2deg); }
.v2-photo-main img { width: 100%; display: block; aspect-ratio: 4 / 4.5; object-fit: cover; }
.v2-fcard { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--v2-shadow); padding: 13px 15px; text-align: left; }
.v2-fcard .lbl { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.v2-fc-indice { top: 5%; right: 0; transform: rotate(2deg); display: flex; gap: 12px; align-items: center; }
.v2-fc-indice b { font-size: 1.3rem; }
.v2-fc-indice small { color: var(--success); font-weight: 700; }
.v2-fc-sen { bottom: 22%; right: 3%; transform: rotate(-1.5deg); }
.v2-fc-sen .srow { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 0.85rem; }
.v2-fc-sen .tag { background: var(--brand-soft); color: var(--brand-2); border-radius: 8px; padding: 3px 9px; }
.v2-fc-sen .tag.next { background: var(--v2-green-soft); color: var(--v2-green); }
.v2-fc-coach { bottom: 2%; left: 0; display: flex; gap: 10px; align-items: flex-start; max-width: 252px; transform: rotate(1.5deg); }
.v2-fc-coach img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.v2-fc-coach p { margin: 0; font-size: 0.76rem; line-height: 1.35; }
.v2-fc-coach p b { display: block; font-size: 0.68rem; color: var(--brand-2); letter-spacing: 0.05em; }

/* ---- striscia numeri ---- */
.v2-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.v2-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-align: left; }
.v2-stat b { font-size: 1.65rem; letter-spacing: -0.02em; display: block; background: linear-gradient(100deg, var(--brand-2), var(--info)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-stat span { font-size: 0.74rem; color: var(--text-2); }

/* ---- box domande: viola / verde scuro / giallo ---- */
.v2-q { border-radius: 20px; padding: 24px 22px; text-align: left; }
.v2-q h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.35; }
.v2-q p { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.v2-q .go { display: inline-block; margin-top: 12px; font-size: 0.83rem; font-weight: 700; }
.v2-q--viola { background: var(--brand-soft); }
.v2-q--viola .go { color: var(--brand-2); }
.v2-q--verde { background: var(--v2-green-soft); }
.v2-q--verde .go { color: var(--v2-green); }
.v2-q--giallo { background: var(--v2-giallo-soft); }
.v2-q--giallo .go { color: #A97B1F; }

/* ---- banda Vantaggio Umano ---- */
.v2-vant { background: linear-gradient(115deg, #144736, #1B5E46 55%, #10586C); color: #fff; border-radius: 28px; overflow: hidden; }
.v2-vant-in { padding: clamp(30px, 5vw, 52px); text-align: left; }
.v2-vant .kick { color: var(--v2-giallo); }
.v2-vant h2 { color: #fff; }
.v2-vant .lede { color: rgba(255, 255, 255, 0.84); max-width: 46em; }
.v2-vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.v2-v { background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; padding: 17px; }
.v2-v b { display: block; margin-bottom: 6px; color: #fff; }
.v2-v p { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); }
.v2-patente { display: inline-flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, 0.13); border: 1px dashed var(--v2-giallo); border-radius: 999px; padding: 10px 20px; margin-top: 24px; font-size: 0.88rem; color: #fff; }

/* ---- metodo: step card con mini-grafici ---- */
.v2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v2-step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; text-align: left; box-shadow: 0 10px 30px -24px rgba(12, 10, 40, 0.5); }
.v2-step .n { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(115deg, var(--brand), var(--info)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.v2-step h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.v2-step p { margin: 0; font-size: 0.87rem; color: var(--text-2); }
.v2-viz { margin-top: 16px; border-radius: 14px; background: var(--bg-2); padding: 12px; }
.v2-viz svg { display: block; width: 100%; height: auto; }
.v2-who { display: flex; gap: 9px; align-items: center; margin-top: 14px; font-size: 0.74rem; color: var(--text-2); }
.v2-who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* ---- storie con foto ---- */
.v2-tests { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.v2-test { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; text-align: left; }
.v2-test img { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; flex-shrink: 0; }
.v2-test p { margin: 0; font-size: 0.95rem; }
.v2-test .who { margin-top: 10px; font-size: 0.78rem; color: var(--text-2); }
.v2-test .who b { color: var(--text); }

/* ---- gran finale: verde scuro acceso + giallo a mano ---- */
.v2-fin { background: linear-gradient(120deg, var(--v2-green-deep), var(--v2-green) 70%, #10586C); border-radius: 28px; color: #fff; text-align: center; padding: clamp(38px, 6vw, 60px) 24px; }
.v2-fin h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 8px; }
.v2-fin .hand { color: var(--v2-giallo); }
.v2-fin p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.88); }
.v2-fin .btn { background: #fff; color: var(--v2-green-deep); border: none; font-weight: 800; }

@media (max-width: 880px) {
  .v2-hero { grid-template-columns: 1fr; }
  .v2-collage { min-height: 400px; margin-top: 8px; }
  .v2-stats { grid-template-columns: 1fr 1fr; }
  .v2-steps, .v2-tests { grid-template-columns: 1fr; }
  .v2-vgrid { grid-template-columns: 1fr 1fr; }
}

/* ============ VETRINA 3.0 — fedele a LutherOne ============ */
/* Bianco avorio + quasi-nero verde + verde profondo Planet;
   il lime B5E048 è l'unico accento acceso (premi/progressi). */
:root {
  --v3-ink: #17231D;
  --v3-ink-2: #5A6B60;
  --v3-white: #ffffff;
  --v3-paper: #F0F1EA;
  --v3-dark: #0E3A2A;
  --v3-dark-2: #144736;
  --v3-acid: #B5E048;
  --v3-sun: #B5E048;
  --v3-radius: 28px;
}
[data-theme="light"] .v3, .v3 { color: var(--v3-ink); }
.v3 { background: var(--v3-white); }
[data-theme="dark"] .v3 { background: #0d100e; color: #eef2ee; }
[data-theme="dark"] .v3 .v3-card { background: #161b17; }
[data-theme="dark"] .v3 .v3-ink2 { color: #9aa39c; }

.v3 .wrapx { max-width: 1140px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); }
.v3-ink2 { color: var(--v3-ink-2); }

/* header */
.v3-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); }
[data-theme="dark"] .v3-head { background: rgba(13, 16, 14, 0.88); }
.v3-head-in { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }

/* bottone pillola nera con glow viola (la firma) */
.v3-pill {
  background: linear-gradient(120deg, #144736, #10586C); color: #fff; border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; border-radius: 999px; padding: 13px 26px;
  box-shadow: 0 0 0 1.5px rgba(181, 224, 72, 0.55), 0 0 22px rgba(27, 94, 70, 0.40);
  transition: box-shadow 0.2s, transform 0.15s; font-family: inherit;
}
.v3-pill:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px rgba(181, 224, 72, 0.85), 0 0 30px rgba(27, 94, 70, 0.55); }
.v3-pill--sm { padding: 8px 18px; font-size: 0.82rem; }
.v3-ghost { background: none; border: 1.5px solid rgba(16, 20, 15, 0.16); color: inherit; border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 0.92rem; cursor: pointer; font-family: inherit; }
[data-theme="dark"] .v3 .v3-ghost { border-color: rgba(255, 255, 255, 0.2); }

/* hero centrato con riga a mano intera */
.v3-hero { text-align: center; padding: clamp(36px, 6vw, 64px) 16px 8px; }
.v3-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.v3-hero h1 .script { display: block; font-family: var(--hand-font); font-weight: 400; font-size: 0.88em; margin-top: 6px; }
.v3-hero .sub { max-width: 40em; margin: 22px auto 0; color: inherit; opacity: 0.75; font-size: 1.02rem; }
.v3-hero .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.v3-hero .note { font-size: 0.78rem; opacity: 0.6; margin-top: 12px; }

/* collage dashboard a tutta larghezza */
.v3-dash { position: relative; margin-top: clamp(22px, 4vw, 40px); }
.v3-dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.v3-card { background: var(--v3-white); border: 1px solid rgba(16, 20, 15, 0.08); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 34px -22px rgba(16, 20, 15, 0.25); text-align: left; }
.v3-card .lbl { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.v3-card .big { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.v3-card .up { color: #1a9e6c; font-weight: 700; font-size: 0.8rem; }
.v3-card .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.v3-card svg { display: block; width: 100%; height: auto; }
.v3-face { position: absolute; width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 4px solid var(--v3-white); box-shadow: 0 12px 26px -12px rgba(16, 20, 15, 0.4); z-index: 2; }
.v3-face--l { left: -22px; top: 42%; }
.v3-face--r { right: -18px; top: 12%; }

/* sezioni = mega-card arrotondate, alternanza bianco / verde profondo */
.v3-sec { border-radius: var(--v3-radius); margin-top: 16px; overflow: hidden; }
.v3-sec--dark { background: radial-gradient(90% 120% at 82% 8%, rgba(16, 88, 108, 0.55), transparent 60%), linear-gradient(125deg, #0E3A2A, #144736 60%, #10586C); color: #ffffff; }
.v3-sec--white { background: var(--v3-white); border: 1px solid rgba(16, 20, 15, 0.07); }
[data-theme="dark"] .v3 .v3-sec--white { background: #161b17; border-color: rgba(255, 255, 255, 0.08); }
.v3-sec-in { padding: clamp(30px, 5vw, 56px); }
.v3-kick { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.v3-sec--dark .v3-kick { color: var(--v3-sun); }
.v3-sec--white .v3-kick { color: #10586C; }
.v3-sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; margin: 10px 0 8px; font-weight: 700; }
.v3-sec .lede { opacity: 0.85; max-width: 46em; margin: 0; }
.v3-sec--dark .lede, .v3-sec--dark p { color: #ffffff; opacity: 1; }

/* matrice resilienza (banda scura) */
.v3-matrix { margin-top: 26px; overflow-x: auto; }
.v3-matrix table { border-collapse: collapse; min-width: 560px; width: 100%; }
.v3-matrix th { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; font-weight: 600; padding: 6px 10px; text-align: center; }
.v3-matrix td { text-align: center; padding: 9px 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.v3-matrix td:first-child { text-align: left; font-size: 0.8rem; opacity: 0.85; white-space: nowrap; }
.v3-mdot { display: inline-block; border-radius: 50%; background: var(--v3-acid); }

/* pillole AI gialle */
.v3-aipill { display: inline-flex; align-items: center; gap: 8px; background: var(--v3-sun); color: #211a00; font-weight: 700; border-radius: 999px; padding: 11px 20px; font-size: 0.95rem; box-shadow: 0 10px 24px -12px rgba(255, 216, 77, 0.55); }
.v3-chat { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 20px; }
.v3-chat .msg { background: rgba(255, 255, 255, 0.92); color: #232823; border-radius: 14px; padding: 12px 16px; font-size: 0.92rem; max-width: 420px; }
.v3-chat .msg b { color: #000; }

/* science / metodo: foto con card sovrapposta */
.v3-photo { position: relative; border-radius: 20px; overflow: hidden; }
.v3-photo img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 10; }
.v3-photo .over { position: absolute; left: 16px; bottom: 16px; background: var(--v3-white); color: var(--v3-ink); border-radius: 14px; padding: 10px 16px; font-weight: 700; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5); }
.v3-photo .over small { display: block; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; font-weight: 700; }
.v3-photo .over .g { color: #1a9e6c; }

/* citazione con foto grande (testimonial) */
.v3-quote { position: relative; }
.v3-quote img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16 / 8.5; filter: saturate(0.9); }
.v3-quote .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 28, 21, 0) 30%, rgba(10, 28, 21, 0.92) 82%); }
.v3-quote .qtxt { position: absolute; left: clamp(18px, 4vw, 44px); right: clamp(18px, 4vw, 44px); bottom: 20px; color: #f2f6ef; }
.v3-quote .qtxt p { margin: 0; font-size: clamp(1rem, 2.2vw, 1.3rem); font-weight: 600; line-height: 1.4; }
.v3-quote .qtxt .who { font-size: 0.78rem; opacity: 0.75; margin-top: 8px; }
.v3-quote .tagchip { position: absolute; top: 18px; left: 18px; background: var(--v3-white); color: var(--v3-ink); border-radius: 12px; padding: 8px 14px; font-weight: 800; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }

/* numeri giganti */
.v3-bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v3-bignums b { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; display: block; line-height: 1; }
.v3-bignums b i { font-style: normal; color: #10586C; }
.v3-sec--dark .v3-bignums b i { color: var(--v3-acid); }
.v3-bignums span { font-size: 0.85rem; opacity: 0.7; display: block; margin-top: 8px; }

@media (max-width: 880px) {
  .v3-dash-grid { grid-template-columns: 1fr 1fr; }
  .v3-face { display: none; }
  .v3-bignums { grid-template-columns: 1fr; }
}


/* Resilienza AI: barre chiare e leggibili su banda blu */
.v3-resbars { margin-top: 26px; display: grid; gap: 14px; }
.v3-resrow { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 84px; gap: 12px; align-items: center; }
.v3-resrow .nome { font-size: 0.92rem; font-weight: 600; color: #ffffff; }
.v3-resrow .track { height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.v3-resrow .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #B5E048, #9CCB35); }
.v3-resrow .fill--low { background: linear-gradient(90deg, #ff5d5d, #ff9e4d); }
.v3-resrow .val { font-weight: 800; color: #B5E048; text-align: right; font-size: 1.05rem; white-space: nowrap; }
.v3-resrow .val--low { color: #ffa1a1; }
.v3-reslegend { margin-top: 16px; font-size: 0.8rem; color: #ffffff; }

/* Variante compatta della banda scura (resilienza sopra il report) */
.v3-sec--slim .v3-sec-in { padding: clamp(20px, 3.5vw, 34px); }
.v3-sec--slim h2 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); margin: 6px 0 4px; }
.v3-sec--slim .lede { font-size: 0.86rem; max-width: 52em; }
.v3-sec--slim .v3-resbars { margin-top: 12px; gap: 7px; }
.v3-sec--slim .v3-resrow { grid-template-columns: minmax(120px, 170px) 1fr 64px; gap: 10px; }
.v3-sec--slim .v3-resrow .nome { font-size: 0.78rem; }
.v3-sec--slim .v3-resrow .track { height: 8px; }
.v3-sec--slim .v3-resrow .val { font-size: 0.86rem; }
.v3-sec--slim .v3-reslegend { margin-top: 10px; font-size: 0.7rem; opacity: 0.85; }

/* Frasi singole giganti: metà normale + metà a mano, un solo colore */
.v3-statement { text-align: center; padding: clamp(34px, 6vw, 64px) 18px; }
.v3-statement p { margin: 0; font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.v3-statement .sub2 { margin: 16px auto 0; max-width: 42em; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.6; opacity: 0.75; }

/* Claim in cima: Il talento è umano */
.v3-claim { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; }
.v3-claim .hand { font-size: 1.05em; }

/* ============ Card posizioni 3.0: header sobrio con monogramma ============ */
.jobcard { overflow: hidden; padding: 0 !important; position: relative; }
.jobcard__head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 0; }
.jobcard__logo { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.03em; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.05); }
.jobcard .fav { position: absolute; top: 12px; right: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px -10px rgba(0,0,0,0.3); z-index: 1; }
.jobcard__body { padding: 12px 16px 14px; }

/* ============ HOME SIMBIAL — dal mockup approvato ============ */
/* Struttura: hero neutro → collage → banda gradiente Planet (unico
   brand moment) → due lati verde/blu → statement → sabbia community
   → vetrina posizioni → finale. Classi prefissate sb- per non
   collidere con i componenti dell'app. */

.sb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.sb-nav { display: flex; gap: 22px; font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.sb-nav a { color: inherit; cursor: pointer; }
.sb-nav a:hover { color: var(--brand); }
@media (max-width: 760px) { .sb-nav { display: none; } }

.sb-hero { text-align: center; padding: clamp(40px, 6vw, 72px) 0 10px; }
.sb-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 800; margin: 18px auto 0; max-width: 15em; text-wrap: balance;
}
.sb-hero h1 .script { display: block; font-family: var(--hand-font); font-weight: 400; font-size: 0.88em; margin: 0 0 8px; }
.sb-hero .sub { max-width: 41em; margin: 22px auto 0; color: var(--text-2); font-size: 1.04rem; }
.sb-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.sb-nota { font-size: 0.78rem; color: var(--text-3); margin-top: 14px; }

/* collage dashboard */
.sb-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(26px, 4vw, 44px); }
.sb-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow); text-align: left;
}
.sb-lbl { font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.sb-big { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sb-up { color: var(--brand); font-weight: 700; font-size: 0.78rem; }
.sb-bar { height: 6px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; border-radius: 4px; background: var(--xp-bright); }
.sb-dash .sb-card--wide { grid-column: span 2; }
@media (max-width: 760px) { .sb-dash { grid-template-columns: 1fr 1fr; } }

/* sezioni della home */
.sb-sec { border-radius: 24px; margin-top: 18px; overflow: hidden; }
.sb-sec-in { padding: clamp(28px, 4.5vw, 52px); }
.sb-sec h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 8px 0 6px; font-weight: 800; text-wrap: balance; }
.sb-kick { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sb-lede { color: var(--text-2); max-width: 48em; margin: 0; }

/* banda gradiente Planet: l'unico brand moment della pagina */
.sb-planet { background: var(--grad-hero); color: #F2F7F0; }
.sb-planet .sb-kick { color: var(--xp-bright); }
.sb-planet .sb-lede { color: rgba(242, 247, 240, 0.85); }
.sb-resbars { margin-top: 20px; display: grid; gap: 9px; }
.sb-resrow { display: grid; grid-template-columns: minmax(150px, 240px) 1fr 70px; gap: 12px; align-items: center; }
.sb-resrow .nome { font-size: 0.85rem; font-weight: 600; }
.sb-resrow .track { height: 9px; border-radius: 6px; background: rgba(250, 249, 245, 0.22); overflow: hidden; }
.sb-resrow .fill { height: 100%; border-radius: 6px; background: var(--xp-bright); }
.sb-resrow .val { font-weight: 800; color: var(--xp-bright); text-align: right; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.sb-fonti { font-size: 0.72rem; color: rgba(242, 247, 240, 0.7); margin: 16px 0 0; }

/* due lati: verde = talento, blu = aziende */
.sb-lati { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 820px) { .sb-lati { grid-template-columns: 1fr; } }
.sb-lato { border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); }
.sb-lato--talento { background: var(--tint-green); }
.sb-lato--aziende { background: var(--tint-blue); }
[data-theme='dark'] .sb-lato--talento { background: rgba(140, 203, 170, 0.10); }
[data-theme='dark'] .sb-lato--aziende { background: rgba(111, 185, 207, 0.10); }
.sb-lato--talento .sb-kick { color: var(--brand); }
.sb-lato--aziende .sb-kick { color: var(--ocean); }
.sb-lato h3 { font-size: 1.35rem; letter-spacing: -0.015em; margin: 6px 0 4px; font-weight: 800; }
.sb-lato ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sb-lato li { font-size: 0.9rem; color: var(--text-2); padding-left: 22px; position: relative; }
.sb-lato li::before { content: '✓'; position: absolute; left: 0; font-weight: 800; }
.sb-lato--talento li::before { color: var(--brand); }
.sb-lato--aziende li::before { color: var(--ocean); }
.sb-lato .btn { margin-top: 18px; }
.btn--ocean { background: var(--ocean); border: none; color: #FAF9F5; box-shadow: none; }
.btn--ocean:hover { background: #0C4354; }
[data-theme='dark'] .btn--ocean { color: #101B15; }
[data-theme='dark'] .btn--ocean:hover { background: #8FCBDD; }

/* statement */
.sb-statement { text-align: center; padding: clamp(40px, 6vw, 64px) 20px; }
.sb-statement p { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
.sb-statement .hand { font-size: 1.02em; }
.sb-statement .sub2 { font-size: 1rem; font-weight: 400; color: var(--text-2); max-width: 44em; margin: 16px auto 0; letter-spacing: 0; }

/* community / dati (sabbia) */
.sb-sand { background: var(--tint-sand); }
[data-theme='dark'] .sb-sand { background: rgba(241, 232, 214, 0.08); }
.sb-sand .sb-kick { color: var(--brand); }
.sb-bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 640px) { .sb-bignums { grid-template-columns: 1fr; } }
.sb-bignums b { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.03em; display: block; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.sb-bignums span { font-size: 0.85rem; color: var(--text-2); display: block; margin-top: 8px; }

/* vetrina posizioni */
.sb-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 24px; }
.chip--ral { background: var(--tint-green); border-color: transparent; color: var(--brand); }
[data-theme='dark'] .chip--ral { background: rgba(181, 224, 72, 0.14); color: var(--xp-bright); }

/* finale + footer */
.sb-fin { text-align: center; }
.sb-fin .btn { font-size: 1rem; padding: 15px 30px; }
.sb-footer { text-align: center; font-size: 0.72rem; color: var(--text-3); padding: 34px 0 40px; }
.sb-footer .brand-word svg { height: 20px; }
