/* MurphFin — pages.css */


/* ── Normativa ── */
.normativa-file {
  color: var(--brand-text);
  transition: background 0.12s;
}
.normativa-file:hover {
  background: var(--brand-surface-alt);
  color: var(--brand-text);
}
.normativa-ext {
  min-width: 42px;
  text-transform: uppercase;
  font-size: 0.68rem;
  text-align: center;
}
.normativa-dl-icon { font-size: 0.72rem; }
.normativa-tab-btn {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--brand-muted);
  background: transparent;
  border: 1px solid var(--brand-border);
}
.normativa-tab-btn:hover { background: var(--brand-surface-alt); color: var(--brand-text); }
.normativa-tab-btn.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

/* ── Knowledge AI cards ── */
.kai-card { min-height: 120px; display: flex; flex-direction: column; justify-content: center; }
.kai-label { font-size: 0.72rem; }
.kai-card--ai { border-top: 3px solid var(--brand-red); }
.kai-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-red);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.kai-brand-fin { color: var(--brand-text); }
.kai-brand-ai { color: var(--brand-nvidia); font-size: 0.85em; }
.kai-brand--inline { font-size: inherit; margin-bottom: 0; }
.kai-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-nvidia);
  margin-bottom: 2px;
}

/* ── Tooltip info icon ── */
.info-tip {
  font-size: 0.75rem;
  opacity: 0.4;
  cursor: help;
  transition: opacity 0.15s;
}
.info-tip:hover { opacity: 0.8; }

/* ── Share box (step 9) ── */
.bp-share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bp-share-box__info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bp-share-box__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-share-url {
  max-width: 320px;
  font-size: 0.75rem;
  font-family: monospace;
}
.bp-share-revoke {
  color: var(--brand-danger);
  border-color: var(--brand-danger);
}
.bp-share-revoke:hover {
  background: var(--brand-danger-bg);
}

/* ── Timeline scadenze mandati ── */
.timeline-scadenze { position: relative; padding-left: 16px; }
.timeline-mese {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--brand-muted); margin: 12px 0 6px;
}
.timeline-mese:first-child { margin-top: 0; }
.timeline-item {
  position: relative; display: flex; align-items: center; gap: 0;
  padding: 6px 0; border-left: 2px solid var(--brand-border); margin-left: 4px;
  padding-left: 16px;
}
.timeline-dot {
  position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-muted); border: 2px solid var(--brand-surface);
}
.timeline-item--warning .timeline-dot { background: var(--brand-warning); }
.timeline-item--danger .timeline-dot { background: var(--brand-danger); }
.timeline-data {
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem; flex: 1; min-width: 0;
}
.timeline-date { font-weight: 700; min-width: 40px; color: var(--brand-text); }
.timeline-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-mandato {
  font-size: 0.72rem; color: var(--brand-muted);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.timeline-countdown {
  font-size: 0.68rem; font-weight: 700; padding: 1px 6px;
  border-radius: var(--radius-sm); background: var(--brand-danger-bg); color: var(--brand-danger);
}
.timeline-item--warning .timeline-countdown { background: var(--brand-warning-bg); color: var(--brand-warning); }


/* Responsive */

/* ═══════ 18. PUBLIC PAGES ═══════ */

/* ── Page hero (navy gradient) ── */
.page-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-lighter) 100%);
  color: #fff;
  padding: 42px 26px;
  margin: -1.5rem -12px 0;
  border-radius: 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Page intro (centered title + red bar) ── */
.page-intro {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 26px;
}
.page-intro h1, .page-intro h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.red-bar {
  height: 3px;
  background: var(--brand-red);
  border-radius: var(--radius-sm);
  width: 48px;
  margin: 0 auto;
}
.page-intro p {
  color: var(--brand-muted);
  max-width: 560px;
  font-size: 0.92rem;
  margin: 12px auto 0;
}

/* ── Section title (for landing sections) ── */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--brand-muted);
  max-width: 580px;
  font-size: 0.92rem;
  margin: 10px auto 26px;
}

/* ── CTA box (gradient pastello) ── */
.cta-box {
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 26px;
}

/* ── Icon box ── */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.icon-box--navy { background: rgba(26,47,94,0.06); color: var(--brand-navy); }
.icon-box--blue { background: rgba(59,130,246,0.06); color: var(--brand-blue); }
.icon-box--green { background: rgba(16,185,129,0.06); color: #10b981; }
.icon-box--red { background: rgba(217,4,41,0.06); color: var(--brand-red); }

/* ── Legal pages ── */
.legal-content {
  font-size: 0.92rem;
  line-height: 1.7;
}
.legal-content h5 {
  color: var(--brand-navy);
}

/* ── Contact item ── */
.contact-icon {
  color: var(--brand-navy);
  width: 24px;
  text-align: center;
}
.contact-card {
  background: var(--brand-surface-alt);
  border-radius: var(--radius);
}

/* ═══════ 19. UTILITIES ═══════ */

.text-navy { color: var(--brand-navy); }
.text-blue { color: var(--brand-blue); }
.text-green { color: var(--brand-success); }
.text-emerald { color: #10b981; }
.bg-navy-soft { background: rgba(26,47,94,0.08); }
.bg-blue-soft { background: rgba(59,130,246,0.08); }
.kpi-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.table-header-row { background: var(--brand-bg); border-bottom: 2px solid var(--brand-border); }
.table-header-cell { color: var(--brand-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cursor-pointer { cursor: pointer; }
.table-compact { font-size: 0.9rem; }
.section-divider { border-top: 1px solid var(--brand-border-light); padding-top: 12px; }

.bp-surface-alt { background: var(--brand-surface-alt); }
.bp-selectable { user-select: all; cursor: text; }
.bp-cursor-help { cursor: help; }
.bp-hidden { display: none; }
.bp-border-danger { border-left: 3px solid var(--brand-danger) !important; }

/* Font size utils */
.adm-fs-07  { font-size: 0.7rem !important; }
.adm-fs-075 { font-size: 0.75rem !important; }
.adm-fs-08  { font-size: 0.8rem !important; }

.adm-page-header { margin-bottom: 1.5rem; }
.adm-page-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.adm-page-title--lg { font-size: 1.8rem; }
.adm-row-clickable { cursor: pointer; }
.adm-row-clickable:hover { background: var(--brand-gray-50); }
.adm-nowrap { white-space: nowrap; }
.adm--sm { font-size: 0.85rem; }

.col-w-120 { width: 120px; text-align: center; }
.col-w-100 { width: 100px; }
.col-w-55  { width: 55px; }
.col-w-desc { min-width: 150px; }
.border-accent-left { border-left: 3px solid var(--brand-blue) !important; }
/* What-If Slider */
.whatif-slider { cursor: pointer; }
.whatif-val { font-family: 'SFMono-Regular', monospace; font-size: 0.82rem; }

/* Landing hero pill */
body.public-area .hero-pill {
  display: inline-block; background: rgba(255,255,255,0.15);
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 14px; border-radius: var(--radius);
  margin-bottom: 8px;
}
body.public-area .hero-subtitle { color: rgba(255,255,255,0.6); font-size: .85rem; margin: 4px 0 0; }

/* Pricing */
.text-success-check { color: var(--brand-success); }
.text-muted-cross { color: var(--brand-red); }

/* Cookie banner */
.ck-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; background: var(--brand-navy-dark); color: rgba(255,255,255,0.85); padding: 18px 28px; border-radius: 0; max-width: 560px; width: calc(100% - 32px); display: none; border: 1px solid rgba(255,255,255,0.1); }
.ck-banner p { font-size: 0.84rem; line-height: 1.5; margin: 0 0 14px; }
.ck-banner a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.ck-banner a:hover { color: #fff; }
.ck-btns { display: flex; gap: 10px; justify-content: flex-end; }
.ck-btn { border: none; border-radius: var(--radius-sm); padding: 8px 20px; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.ck-btn-ghost { background: rgba(255,255,255,0.12); color: #fff; }
.ck-btn-ghost:hover { background: rgba(255,255,255,0.2); }
.ck-btn-accept { background: var(--brand-surface); color: var(--brand-navy-dark); }
.ck-btn-accept:hover { background: var(--brand-border); }

/* Scrollbar sottile (Webkit) */
.app-main ::-webkit-scrollbar { width: 6px; height: 6px; }
.app-main ::-webkit-scrollbar-track { background: transparent; }
.app-main ::-webkit-scrollbar-thumb { background: var(--brand-gray-300); border-radius: var(--radius-sm); }
.app-main ::-webkit-scrollbar-thumb:hover { background: #9ca3af; }


/* ═══════ 30. NEXT STEPS CARD ═══════ */

.next-steps-card {
  border-left: 4px solid var(--brand-blue);
  background: var(--brand-info-bg);
}
.next-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.next-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.next-step-icon--todo { background: var(--brand-info-bg); color: #3b82f6; }
.next-step-icon--done { background: var(--brand-success-bg); color: var(--brand-success); }
.next-step-text { font-size: 0.85rem; }
.next-step-text strong { color: var(--brand-navy); }
.next-step-text .text-muted { font-size: 0.78rem; }


/* ═══════ 31. DASHBOARD v2 ═══════ */

/* ── Header ── */
.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--brand-border);
}
.dash-header-left { flex: 1; min-width: 0; }
.dash-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brand-navy);
}
.dash-title i { display: none; }
.dash-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.dash-context-item { white-space: nowrap; }
.dash-context-sep { color: var(--brand-border); }
.dash-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── KPI Bar (compact horizontal) ── */
.dash-kpi-bar {
  display: flex;
  gap: 1px;
  background: var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.dash-kpi-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-surface);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.dash-kpi-item:hover { background: var(--brand-bg); color: inherit; }
.dash-kpi-ic { font-size: 0.85rem; flex-shrink: 0; }
.dash-kpi-ic--navy { color: var(--brand-navy); }
.dash-kpi-ic--blue { color: var(--brand-blue); }
.dash-kpi-ic--amber { color: var(--brand-warning); }
.dash-kpi-ic--red { color: var(--brand-danger); }
.dash-kpi-item--wide { flex: 1.6; min-width: 0; }
.dash-kpi-item--wide .dash-kpi-val { font-size: clamp(0.85rem, 1.8vw, 1.1rem); }
.dash-kpi-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand-text);
  white-space: nowrap;
}
.dash-kpi-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-muted);
}

/* ── Mandati cards ── */
.dash-mandati-list { padding: 4px 0; }
.dash-mandato-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--brand-bg);
  transition: background 0.15s;
}
.dash-mandato-card:last-child { border-bottom: none; }
.dash-mandato-card:hover { background: var(--brand-bg); color: inherit; }
.dash-mandato-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.dash-mandato-cliente {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.dash-mandato-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.dash-mandato-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-mandato-pbar {
  width: 60px;
  height: 5px;
  background: var(--brand-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.dash-mandato-pfill {
  height: 100%;
  background: var(--brand-blue);
  border-radius: var(--radius-sm);
  transition: width 0.3s;
}
.dash-mandato-pfill--ok { background: var(--brand-success); }
.dash-mandato-pfill--low { background: var(--brand-danger); }
.dash-mandato-pct {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-muted);
  min-width: 28px;
}
.dash-mandato-scad {
  font-size: 0.72rem;
  color: var(--brand-muted);
  white-space: nowrap;
}
.dash-mandato-arrow {
  font-size: 0.6rem;
  color: var(--brand-muted);
  opacity: 0;
  transition: opacity 0.15s;
}
.dash-mandato-card:hover .dash-mandato-arrow { opacity: 1; }
.dash-mandati-more {
  padding: 10px 20px;
  border-top: 1px solid var(--brand-border-light);
  font-size: 0.82rem;
}
.dash-mandati-more a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }
.dash-mandati-more a:hover { text-decoration: underline; }

/* ── Section link ── */
.dash-section-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
}
.dash-section-link:hover { text-decoration: underline; }

/* ── Table footer ── */
.dash-table-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--brand-border-light);
  font-size: 0.82rem;
}
.dash-table-footer a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }
.dash-table-footer a:hover { text-decoration: underline; }

/* ── Demo Banner ── */
.dash-demo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--brand-info-bg);
  border: 1px solid var(--brand-info-bg);
}
.dash-demo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand-warning-bg);
  color: var(--brand-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dash-demo-body { flex: 1; min-width: 0; }
.dash-demo-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 2px;
}
.dash-demo-desc {
  font-size: 0.82rem;
  color: var(--brand-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Section ── */
.dash-section {
  background: var(--brand-surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 24px;
  overflow: hidden;
}
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0 20px;
}
.dash-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
}
.dash-section-title i {
  font-size: 0.8em;
  opacity: 0.4;
}
.dash-section-count {
  font-size: 0.78rem;
  color: var(--brand-muted);
}

/* ── Prossimi passi (step cards) ── */
.dash-steps-list {
  padding: 12px 20px 16px;
}
.dash-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.dash-step-item:hover {
  background: var(--brand-surface-alt);
  color: inherit;
}
.dash-step-progress {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.dash-step-ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.dash-step-ring-bg {
  fill: none;
  stroke: var(--brand-border);
  stroke-width: 3;
}
.dash-step-ring-fill {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 3;
  stroke-linecap: round;
}
.dash-step-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-navy);
}
.dash-step-info {
  flex: 1;
  min-width: 0;
}
.dash-step-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--brand-navy);
}
.dash-step-hint {
  font-size: 0.78rem;
  color: var(--brand-muted);
}
.dash-step-arrow {
  font-size: 0.7rem;
  color: var(--brand-muted);
  opacity: 0;
  transition: opacity 0.2s;
}
.dash-step-item:hover .dash-step-arrow { opacity: 1; }

/* ── Filtri ── */
.dash-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--brand-border-light);
  flex-wrap: wrap;
}
.dash-filter-search {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.dash-filter-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--brand-muted);
  pointer-events: none;
}
.dash-filter-search .form-control {
  padding-left: 32px;
}
.dash-filter-select {
  max-width: 170px;
}
.dash-filter-actions {
  display: flex;
  gap: 6px;
}

/* ── Tabella ── */
.dash-table-wrap {
  overflow: hidden;
}
.dash-table {
  font-size: 0.88rem;
}
.dash-table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--brand-border-light);
  padding: 10px 14px;
  white-space: nowrap;
}
.dash-table tbody td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--brand-bg);
}
.dash-table tbody tr { cursor: pointer; }
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: var(--brand-bg); }
.dash-bp-link {
  color: var(--brand-text);
  text-decoration: none;
  font-weight: 600;
}
.dash-bp-link:hover {
  color: var(--brand-blue);
}

/* ── Empty State ── */
.dash-empty {
  text-align: center;
  padding: 60px 32px;
  background: var(--brand-surface);
  border-radius: var(--radius);
  border: 1.5px dashed var(--brand-border);
}
.dash-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--brand-border);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
  opacity: 0.6;
}
.dash-empty h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.dash-empty p {
  font-size: 0.88rem;
  color: var(--brand-muted);
  margin-bottom: 20px;
}

/* ── Onboarding Modal ── */
.dash-onboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 60, 0.7);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-onboard-modal {
  background: var(--brand-surface);
  border-radius: var(--radius);
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.dash-onboard-header {
  background: var(--brand-navy-dark);
  padding: 28px 32px;
  text-align: center;
}
.dash-onboard-header h3 {
  color: #fff;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}
.dash-onboard-header h3 span { color: var(--brand-red); }
.dash-onboard-body { padding: 28px 32px; }
.dash-onboard-body > p {
  color: var(--brand-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.dash-onboard-step {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.dash-onboard-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.dash-onboard-step strong { font-size: 0.92rem; }
.dash-onboard-step .text-muted { font-size: 0.85rem; }
.dash-onboard-action {
  text-align: center;
  margin-top: 24px;
}

/* ── No results ── */
.dash-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--brand-muted);
}
.dash-no-results i {
  font-size: 1.5rem;
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}
.dash-no-results p {
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ── Pagination override ── */
.dash-pagination { display: none; }

/* ── Utility: inline style replacements ── */

/* AI robot avatar (chat) */
.ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Demo banner (base.html) — fisso sotto header */
.demo-banner {
  position: sticky;
  top: var(--header-h, 40px);
  z-index: 1000;
  background: linear-gradient(135deg, #1A2F5E, #2d4a7a);
  color: #fff;
  font-size: 0.84rem;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.demo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 20px;
  margin-left: var(--sidebar-w, 260px);
  transition: margin-left 0.2s ease;
}
body.sidebar-collapsed .demo-banner-inner {
  margin-left: var(--sidebar-collapsed-w, 62px);
}
.demo-banner-link {
  color: var(--brand-warning);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.demo-banner-link:hover { color: #fff; }

/* Footer partner badges */
.footer-partners { margin-top: 16px; }
.footer-partners-row {
  margin-top: 12px;
}
.footer-partners-flags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0.7;
}
.footer-partner-img { opacity: 0.7; }
.footer-partner-img--pay { height: 28px; opacity: 0.5; filter: brightness(0) invert(1); }
.footer-version-muted { opacity: 0.4; }
.footer-ragsoc { color: rgba(255,255,255,0.8); }
.footer-flag-svg { border-radius: var(--radius-sm); }

/* Icon circle (40px) — knowledge_ai, mandati */
.icon-circle-40 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* NVIDIA color */
.text-nvidia { color: var(--brand-nvidia); }
.bg-nvidia-soft { background: rgba(118, 185, 0, 0.1); }
.badge-nvidia { background: var(--brand-nvidia); color: #fff; }
/* Card border-left variants */
.card-border-blue { border-left: 3px solid var(--brand-blue); }
.card-border-navy { border-left: 3px solid var(--brand-navy); }
.card-border-warning { border-left: 3px solid var(--brand-warning); }
.card-border-success { border-left: 3px solid var(--brand-success); }
.card-border-top-navy { border-top: 3px solid var(--brand-navy); }
.card-border-top-nvidia { border-top: 3px solid var(--brand-nvidia); }

/* Nvidia knowledge banner */
.kai-banner-nvidia {
  border-left: 4px solid var(--brand-nvidia);
  background: var(--brand-bg);
}

/* Cursor pointer for clickable rows */
.cursor-pointer { cursor: pointer; }

/* Logo preview */
.logo-preview { max-height: 80px; max-width: 200px; border: 1px solid var(--brand-gray-200); border-radius: var(--radius-sm); padding: 8px; }
.logo-preview-sm { max-height: 60px; }
.color-input { width: 60px; height: 40px; }

/* Progress bar thin */
.progress-thin { height: 6px; }

/* Ticket badge icon small */
.badge-icon-xs { font-size: 0.5rem; }

/* Mandati bar chart */
.mandati-bar-bg { background: var(--fisit-border); border-radius: var(--radius-sm); height: 20px; overflow: hidden; }
.mandati-bar-fill {
  background: var(--brand-navy);
  height: 100%;
  border-radius: var(--radius-sm);
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mandati-bar-label { min-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Mandati lista v2 ── */

/* Filters */
.mnd-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--brand-border-light);
  flex-wrap: wrap;
}

/* Table */
.mnd-table { font-size: 0.84rem; }
.mnd-th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--brand-border-light);
  padding: 8px 12px;
  white-space: nowrap;
  background: var(--brand-bg);
}
.mnd-table tbody td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid var(--brand-bg); }
.mnd-table tbody tr:last-child td { border-bottom: none; }

/* Doc progress mini bar */
.mnd-doc-progress { display: flex; align-items: center; gap: 6px; }
.mnd-doc-bar { width: 50px; height: 5px; background: var(--brand-border); border-radius: var(--radius-sm); overflow: hidden; }
.mnd-doc-fill { height: 100%; background: var(--brand-blue); border-radius: var(--radius-sm); }
.mnd-doc-fill--ok { background: var(--brand-success); }
.mnd-doc-fill--low { background: var(--brand-danger); }
.mnd-doc-count { font-size: 0.72rem; font-weight: 600; color: var(--brand-muted); }

/* Funnel */
.mnd-funnel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.mnd-funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.mnd-funnel-step:hover { background: var(--brand-surface-alt); }
.mnd-funnel-step--empty { opacity: 0.35; }
.mnd-funnel-label { font-size: 0.65rem; color: var(--brand-muted); white-space: nowrap; }
.mnd-funnel-arrow { font-size: 0.5rem; color: var(--brand-border); }

/* Pipeline */
.mnd-pipeline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.mnd-pipeline-row:hover .mnd-pipeline-bar { opacity: 0.85; }
.mnd-pipeline-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-text);
  min-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.mnd-pipeline-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mnd-pipeline-bar {
  height: 20px;
  background: var(--brand-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 8px;
  transition: opacity 0.15s;
}
.mnd-pipeline-count-in { color: #fff; font-size: 0.72rem; font-weight: 700; }
.mnd-pipeline-count-out { font-size: 0.75rem; font-weight: 700; color: var(--brand-navy); }

/* ── Business Plan lista v2 ── */
.bpl-table { font-size: 0.84rem; }
.bpl-progress-bar {
  width: 70px;
  height: 5px;
  background: var(--brand-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2px;
}
.bpl-progress-bar--wide { width: 100%; flex: 1; }
.bpl-progress-fill { height: 100%; border-radius: var(--radius-sm); transition: width 0.3s; }
.bpl-fill--green { background: var(--brand-success); }
.bpl-fill--blue { background: var(--brand-blue); }
.bpl-fill--amber { background: var(--brand-warning); }
.bpl-fill--gray { background: var(--brand-muted); }

/* Mobile card stack */
.bpl-cards { padding: 4px 0; }
.bpl-card {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--brand-border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.bpl-card:hover { background: var(--brand-bg); color: inherit; }
.bpl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.bpl-card-top strong { font-size: 0.9rem; color: var(--brand-text); }
.bpl-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.bpl-card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Admin macro header */
.adm-page-title { color: var(--brand-navy); }
.adm-page-title--lg { font-size: 1.5rem; }
.adm-page-title--sm { font-size: 1.3rem; }
.adm-page-icon { color: #3b82f6; }
.adm-page-subtitle { font-size: 0.88rem; }

/* ── Inline-style replacements ── */
.kai-nvidia-badge { height: 28px; }
.kai-brand-title { font-size: 1.2rem; }
.kai-desc { font-size: 0.95rem; line-height: 1.7; }
.kai-phase-warning { color: var(--brand-warning); }
.kai-empty-state { border: 1.5px dashed var(--brand-gray-200); background: var(--brand-surface); }
.kai-empty-icon { opacity: 0.4; }
.chat-welcome-brand { font-size: 1.3rem; margin-bottom: 8px; }
.chat-msg-col { flex: 1; }
.chat-msg-full { max-width: 100%; }
.chat-rating-hidden { opacity: 0; }
.chat-rating-visible { opacity: 1; }
.brand-crown-icon { color: var(--brand-warning); }
.tkt-badge-sm { font-size: 0.65rem; }

/* ── Auth pages ── */
.au-badge-current { font-size: 0.6rem; }
.au-2fa-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-success-bg);
  color: var(--brand-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.au-2fa-qr { border-radius: var(--radius); border: 2px solid var(--brand-border); }
.au-2fa-summary { cursor: pointer; }
.au-2fa-secret {
  background: var(--brand-surface-alt);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 2px;
  word-break: break-all;
}
.au-2fa-input { font-size: 1.5rem; letter-spacing: 8px; }
.au-demo-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.au-demo-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}
.au-demo-desc { font-size: 0.9rem; line-height: 1.6; }
.au-demo-features { list-style: none; padding: 0; }
.au-demo-btn { font-size: 1rem; }
.au-input-uppercase { text-transform: uppercase; }
.au-consent-note { font-size: 0.78rem; }
.au-danger-card { border-color: var(--brand-danger); }
.au-danger-title { color: var(--brand-danger); }
.au-reg-card { max-width: 560px; margin: 0 auto; }
.au-progress-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.au-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: .3s;
}
.au-progress-dot--active { background: var(--brand-navy); }
.au-progress-dot--inactive { background: var(--brand-border); }
.au-progress-track {
  width: 40px;
  height: 2px;
  background: var(--brand-border);
  border-radius: var(--radius-sm);
  position: relative;
}
.au-progress-bar {
  position: absolute;
  inset: 0;
  background: var(--brand-navy);
  border-radius: var(--radius-sm);
  transform: scaleX(0);
  transform-origin: left;
  transition: .4s;
}
.au-step-title {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
}

/* ── Responsive ── */

/* ═══════════════════════════════════════════════
   Inline-style replacements — Backoffice (bo-*)
   ═══════════════════════════════════════════════ */
.bo-label-col { width: 140px; }
.bo-badge-xs { font-size: 0.6rem; }
.bo-badge-sm { font-size: 0.65rem; }
.bo-badge-30d { font-size: 0.55rem; vertical-align: middle; }
.bo-textarea-code { font-size: 0.85rem; }
.bo-textarea-mono { font-size: 0.82rem; font-family: monospace; }
.bo-card-accent-blue { border-left: 4px solid var(--brand-blue); }
.bo-card-accent-red { border-left: 4px solid var(--brand-red); }
.bo-card-accent-nvidia { border-left: 4px solid var(--brand-nvidia); }
.bo-icon-red { color: var(--brand-red); }
.bo-icon-nvidia { color: var(--brand-nvidia); }
.bo-nvidia-badge { background: var(--brand-nvidia); color: #fff; font-size: 0.75rem; }
.bo-nvidia-img { height: 24px; width: 24px; background: var(--brand-nvidia); padding: 3px; border-radius: var(--radius-sm); }
.bo-roadmap-title { color: var(--brand-navy); }
.bo-roadmap-text { font-size: 0.78rem; }
.bo-roadmap-sub { font-size: 0.72rem; color: var(--brand-muted); }
.bo-cursor-pointer { cursor: pointer; }
.bo-heading-sm { font-size: 0.84rem; }
.bo-th-id { width: 40px; }
.bo-th-stato { width: 80px; }
.bo-th-azioni { width: 160px; }
.bo-th-timestamp { width: 160px; }
.bo-input-minw { min-width: 200px; }
.bo-input-maxw-sm { max-width: 200px; }
.bo-input-maxw-md { max-width: 300px; }
.bo-select-maxw { max-width: 150px; }
.bo-select-maxw-md { max-width: 160px; }
.bo-select-w200 { width: 200px; }
.bo-td-ellipsis { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-th-40pct { width: 40%; }
.bo-input-upper { text-transform: uppercase; }
.bo-sync-running { color: var(--brand-nvidia); font-weight: bold; }
.bo-sync-log { background: var(--brand-surface-alt); max-height: 400px; overflow-y: auto; font-family: 'SFMono-Regular', monospace; font-size: 0.8rem; line-height: 1.8; }
.bo-sync-total { border-top: 3px solid var(--brand-nvidia); }
.bo-sync-total-val { color: var(--brand-nvidia); }
.bo-changelog-pre { white-space: pre-wrap; font-family: 'Inter', sans-serif; font-size: 0.88rem; line-height: 1.7; margin: 0; color: var(--brand-text); }
.bo-th-ticket-id { width: 50px; }
.bo-th-ticket-cat { width: 120px; }
.bo-th-ticket-pri { width: 90px; }
.bo-th-ticket-stato { width: 120px; }
.bo-th-ticket-msg { width: 80px; }
.bo-th-ticket-date { width: 130px; }
.bo-html-textarea { font-family: monospace; font-size: 0.85rem; }
.bo-funnel-bar--navy { width: 0%; background: var(--brand-navy); }
.bo-funnel-bar--blue { width: 0%; background: var(--brand-blue); }
.bo-funnel-bar--green { width: 0%; background: var(--brand-success, var(--brand-success)); }

/* ═══════════════════════════════════════════════
   Inline-style replacements — Mandati (mdt-*)
   ═══════════════════════════════════════════════ */
.mdt-text-notransform { text-transform: none; }

/* ═══════════════════════════════════════════════
   Inline-style replacements — BP Dashboard (bpd-*)
   ═══════════════════════════════════════════════ */
.bpd-score-val[data-level="high"] { color: var(--brand-success); }
.bpd-score-val[data-level="mid"] { color: var(--brand-warning); }
.bpd-score-val[data-level="low"] { color: var(--brand-danger); }
.bpd-score-badge { color: #fff; }
.bpd-score-badge[data-level="high"] { background: #22c55e; }
.bpd-score-badge[data-level="mid"] { background: var(--brand-warning); }
.bpd-score-badge[data-level="low"] { background: var(--brand-danger); }
.bpd-progress-thin { height: 8px; }
.bpd-progress-bar[data-level="high"] { background: #22c55e; }
.bpd-progress-bar[data-level="mid"] { background: var(--brand-warning); }
.bpd-progress-bar[data-level="low"] { background: var(--brand-danger); }
.bpd-score-table { font-size: 0.82rem; }

.bpd-score-help-btn {
  background: none; border: none; cursor: pointer; padding: 0 0 0 6px;
  color: var(--brand-muted); font-size: 0.85rem; vertical-align: middle;
}
.bpd-score-help-btn:hover { color: var(--brand-text); }
.bpd-score-help {
  background: var(--brand-surface-alt); border: 1px solid var(--brand-border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.bpd-score-help p { color: var(--brand-muted); }
.bpd-score-help-close {
  background: none; border: none; cursor: pointer;
  color: var(--brand-muted); font-size: 0.8rem; padding: 2px 4px;
}
.bpd-score-help-close:hover { color: var(--brand-text); }
.bpd-score-help-table { width: 100%; border-collapse: collapse; }
.bpd-score-help-table td { padding: 4px 8px; color: var(--brand-muted); vertical-align: top; }
.bpd-score-help-table td:first-child { white-space: nowrap; width: 130px; }

/* ── Piattaforma page (plat-*) ── */
.plat-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #2d4a7a 100%);
  color: #fff;
  padding: 52px 26px 42px;
  margin: -1.5rem -12px 0;
  border-radius: 0;
  text-align: center;
}
.plat-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.plat-hero-bar {
  height: 3px;
  background: var(--brand-red);
  border-radius: var(--radius-sm);
  width: 48px;
  margin: 12px auto 18px;
}
.plat-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}
.plat-section { padding: 42px 0 10px; }
.plat-section--sm { padding: 32px 0 10px; }
.plat-row-mt { margin-top: 20px; }
.plat-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  border-top: 3px solid var(--brand-navy);
}
.plat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(26,47,94,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.plat-icon-box i { color: var(--brand-navy); font-size: 1.1rem; }
.plat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}
.plat-check-list { list-style: none; padding: 0; margin: 0; }
.plat-check-item {
  font-size: 0.82rem;
  color: var(--brand-text);
  padding: 4px 0;
}
.plat-check-item i { color: var(--brand-red); font-size: 0.7rem; }
.plat-feat-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 18px;
  height: 100%;
}
.plat-feat-icon {
  color: var(--brand-red);
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}
.plat-feat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}
.plat-feat-desc {
  font-size: 0.78rem;
  color: var(--brand-muted);
  line-height: 1.5;
}
.plat-bando-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-left: 3px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plat-bando-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.plat-bando-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}
.plat-bando-title i { color: var(--brand-red); font-size: 0.75rem; }
.plat-bando-tipo { font-size: 0.72rem; color: var(--brand-muted); }
.plat-info-box {
  background: var(--brand-surface-alt);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}
.plat-info-text {
  font-size: 0.88rem;
  color: var(--brand-text);
  margin: 0;
  line-height: 1.6;
}
.plat-step-wrap {
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.plat-step { display: flex; gap: 12px; align-items: flex-start; }
.plat-step-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.plat-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 3px;
}
.plat-step-desc {
  font-size: 0.78rem;
  color: var(--brand-muted);
  line-height: 1.5;
}
.plat-cta {
  background: var(--brand-navy);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  margin: 32px 0 16px;
}
.plat-cta-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: Montserrat, sans-serif;
}
.plat-cta-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto 20px;
}
.plat-btn-white {
  background: var(--brand-surface);
  color: var(--brand-navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
}
.plat-btn-red {
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
}

/* ── Landing page inline replacements (lp-*) ── */
.lp-hero-stats {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
}
.lp-hero-stats strong { color: #fff; }
.lp-nvidia-hero-link {
  background: rgba(118,185,0,0.15);
  border: 1px solid rgba(118,185,0,0.3);
  padding: 5px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.lp-nvidia-hero-link:hover { background: rgba(118,185,0,0.25); }
.lp-nvidia-hero-link img { height: 16px; }
.lp-nvidia-hero-link span { color: var(--brand-nvidia); font-size: 0.72rem; font-weight: 600; }
.lp-spbar { max-width: 720px; }
.lp-perchi-section { padding: 26px 0 10px; }
.lp-perchi-bar {
  display: flex;
  gap: 1px;
  background: var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(13,31,60,0.06);
}
.lp-perchi-cell {
  flex: 1;
  background: var(--brand-surface);
  padding: 20px 16px;
  text-align: center;
}
.lp-perchi-icon { font-size: 1.3rem; color: var(--brand-navy); margin-bottom: 8px; display: block; }
.lp-perchi-title { font-size: 0.82rem; font-weight: 700; color: var(--brand-navy); margin-bottom: 3px; }
.lp-perchi-desc { font-size: 0.72rem; color: var(--brand-muted); line-height: 1.35; }
.lp-come-section { padding: 32px 0 10px; }
.lp-steps-bar {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.lp-steps-connector {
  position: absolute;
  top: 22px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-red), var(--brand-navy));
  opacity: 0.15;
  z-index: 0;
}
.lp-step-cell { flex: 1; text-align: center; position: relative; z-index: 1; }
.lp-step-num {
  width: 44px;
  height: 44px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(13,31,60,0.2);
}
.lp-step-title { font-size: 0.82rem; font-weight: 700; color: var(--brand-navy); margin-bottom: 4px; }
.lp-step-desc { font-size: 0.74rem; color: var(--brand-muted); line-height: 1.4; padding: 0 8px; }
.lp-come-cta { margin-top: 24px; }
.lp-btn-navy {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.9rem;
}
.lp-ai-row { max-width: 860px; margin: 26px auto 0; }
.lp-chat-mockup {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.lp-chat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.lp-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-chat-avatar i { color: #fff; font-size: 0.8rem; }
.lp-chat-brand { font-size: 0.85rem; }
.lp-chat-bubble-ai {
  background: var(--brand-surface-alt);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--brand-text);
  margin-bottom: 10px;
  line-height: 1.5;
}
.lp-chat-bubble-user {
  background: var(--brand-navy);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #fff;
  margin-left: auto;
  max-width: 80%;
  text-align: right;
  margin-bottom: 10px;
}
.lp-chat-bubble-ai:last-child,
.lp-chat-bubble-user:last-child { margin-bottom: 0; }
.lp-ai-text { padding-left: 16px; }
.lp-ai-text h4 { color: var(--brand-navy); }
.lp-ai-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-ai-feature-icon--green { background: rgba(118,185,0,0.1); }
.lp-ai-feature-icon--green i { color: var(--brand-nvidia); font-size: 0.9rem; }
.lp-ai-feature-icon--blue { background: rgba(59,130,246,0.08); }
.lp-ai-feature-icon--blue i { font-size: 0.9rem; }
.lp-ai-feature-icon--navy { background: rgba(26,47,94,0.06); }
.lp-ai-feature-icon--navy i { font-size: 0.9rem; }
.lp-ai-feature-title { font-size: 0.88rem; font-weight: 600; color: var(--brand-text); }
.lp-feat-row { margin-top: 42px; }
.lp-nvidia-wrap {
  margin: 0 -12px;
  padding: 42px 42px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0d1f3c 100%);
  border-radius: var(--radius);
  color: #fff;
}
.lp-nvidia-inner { max-width: 860px; margin: 0 auto; }
.lp-nvidia-logo { height: 38px; margin-bottom: 20px; }
.lp-nvidia-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3; }
.lp-nvidia-desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.lp-nvidia-desc a { color: rgba(255,255,255,0.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.lp-nvidia-desc strong { color: var(--brand-nvidia); }
.lp-nvidia-small { color: rgba(255,255,255,0.5); font-size: 0.78rem; line-height: 1.5; margin-bottom: 0; }
.lp-nvidia-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.lp-nvidia-panel-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  font-weight: 600;
}
.lp-nvidia-flow-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}
.lp-nvidia-flow-step { flex: 1; text-align: center; }
.lp-nvidia-flow-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.lp-nvidia-flow-label { font-size: 0.7rem; color: rgba(255,255,255,0.7); font-weight: 600; }
.lp-nvidia-flow-arrow { flex: 0; width: 24px; text-align: center; margin-bottom: 18px; }
.lp-nvidia-flow-arrow i { color: rgba(255,255,255,0.15); font-size: 0.7rem; }
.lp-nvidia-metrics-bar {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lp-nvidia-metric {
  flex: 1;
  background: rgba(255,255,255,0.02);
  padding: 12px 8px;
  text-align: center;
}
.lp-nvidia-metric-val { font-size: 1.1rem; font-weight: 800; color: var(--brand-nvidia); }
.lp-nvidia-metric-label { font-size: 0.62rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.lp-dev-link { color: var(--brand-navy); text-decoration: none; }
.lp-btn-white-cta {
  background: var(--brand-surface);
  color: var(--brand-navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--brand-surface);
}
.lp-btn-white-cta:hover {
  background: var(--brand-surface-alt);
  color: var(--brand-navy);
  border-color: var(--brand-surface-alt);
}
.lp-cta-faq-link { margin-top: 26px; }
.lp-cta-faq-link a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.lp-pricing-link { margin-top: 20px; }
.lp-pricing-link-sm { margin-top: 8px; }
.lp-bandi-extra { margin-top: 16px; }
.lp-promo-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(13,31,60,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.lp-promo-card {
  background: var(--brand-surface);
  border-radius: var(--radius);
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: popIn 0.35s ease;
}
.lp-promo-header {
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 100%);
  padding: 32px 28px 24px;
  text-align: center;
  position: relative;
}
.lp-promo-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}
.lp-promo-emoji { font-size: 2.5rem; margin-bottom: 8px; }
.lp-promo-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.lp-promo-subtitle { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }
.lp-promo-body { padding: 28px; text-align: center; }
.lp-promo-text { color: var(--brand-text); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.lp-promo-code-box {
  background: var(--brand-bg);
  border: 2px dashed var(--brand-navy);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.lp-promo-code-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.lp-promo-code-value {
  font-family: 'SFMono-Regular', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: 3px;
}
.lp-promo-copy-hint { font-size: 0.72rem; color: var(--brand-muted); margin-top: 6px; }
.lp-promo-cta {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
}
.lp-promo-footer { color: var(--brand-muted); font-size: 0.72rem; margin-top: 14px; margin-bottom: 0; }
@keyframes popIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ── Hint riferimento costi (Step 2, 5) ── */
.bp-ref-hint { font-size: 0.78rem; color: var(--brand-accent); background: rgba(59,130,246,0.06); border-radius: var(--radius-sm); padding: 4px 8px; margin-top: 4px; line-height: 1.4; }
.bp-ref-hint i { color: var(--brand-accent); }

/* ── Grafico Confronto Scenari (Step 9) ── */
.bp-scenari-chart-wrapper { position: relative; max-width: 700px; height: 320px; margin: 0 auto; }
.bp-scenari-chart-wrapper canvas { width: 100% !important; height: 100% !important; }
.bp-scenari-legend { display: flex; justify-content: center; gap: 24px; margin-top: 12px; flex-wrap: wrap; }
.bp-scenari-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--brand-text); }
.bp-scenari-legend-dot { width: 12px; height: 12px; border-radius: var(--radius-sm); flex-shrink: 0; }

/* ── Shared View (BP condiviso read-only) ── */
.shared-view-container { max-width: 900px; margin: 0 auto; }
.shared-timeline-bar { position: relative; height: 20px; background: var(--brand-surface-alt); border-radius: var(--radius-sm); overflow: hidden; }
.shared-timeline-fill { position: absolute; height: 100%; background: var(--brand-accent); border-radius: var(--radius-sm); min-width: 4px; }

/* === UNIFORM POLISH === */

/* Hover tabelle: blu leggero invece del grigio */
.table tbody tr:hover { background-color: var(--brand-info-bg); }

/* Righe zebra leggere — classe opt-in, non globale */
.table-zebra tbody tr:nth-child(even) { background-color: var(--brand-bg); }

/* Bottoni nelle tabelle senza classe esplicita */
.table .btn:not(.btn-icon-sm) { padding: 3px 8px; font-size: 0.78rem; line-height: 1.3; }

/* Spaziatura sezioni dashboard */
.dashboard-section { margin-bottom: 24px; }

/* Link "Vedi tutti" */
.link-see-all { font-size: 0.80rem; font-weight: 500; text-decoration: none; }

/* === END UNIFORM POLISH === */

/* ═══════════════════════════════════════════════
   31. LANDING — Bottone outline navy + Features
   ═══════════════════════════════════════════════ */
.lp-btn-outline-navy {
  background: transparent;
  color: var(--brand-navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.9rem;
  border: 2px solid var(--brand-navy);
  transition: all 0.2s;
}
.lp-btn-outline-navy:hover {
  background: var(--brand-navy);
  color: #fff;
}

/* Features grid */
.lp-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 32px auto 0;
}
.lp-feature-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 28px;
}
.lp-feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--brand-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.lp-feature-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-navy);
  margin-bottom: 10px;
}
.lp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--brand-text-muted, #64748b);
  margin-bottom: 6px;
  line-height: 1.5;
}
.lp-feature-list li::before {
  content: '\f00c'; /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--brand-success);
  font-size: 0.75rem;
  top: 3px;
}
.lp-feature-more {
  font-size: 0.88rem;
  color: var(--brand-text-muted, #64748b);
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   32. PAGINA CARATTERISTICHE
   ═══════════════════════════════════════════════ */
.feat-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1a3a6e 100%);
  color: #fff;
  padding: 68px 0 42px;
  text-align: center;
}
.feat-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.feat-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 640px; margin: 0 auto; }
.feat-section { max-width: 960px; margin: 0 auto; padding: 42px 20px; }
.feat-section h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--brand-navy);
  margin-bottom: 6px; display: flex; align-items: center; gap: 10px;
}
.feat-section h2 i { font-size: 1.2rem; color: var(--brand-accent, #d90429); }
.feat-divider { border: 0; border-top: 1px solid var(--brand-border); margin: 0; }
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.feat-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--brand-text);
}
.feat-item i {
  color: var(--brand-success); margin-top: 3px; font-size: 0.8rem; flex-shrink: 0;
}
.feat-more {
  margin-top: 32px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.feat-more h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand-navy); margin-bottom: 8px; }
.feat-more p { font-size: 0.9rem; color: var(--brand-text-muted, #64748b); margin: 0; }
.feat-cta {
  text-align: center;
  padding: 42px 20px;
  background: var(--brand-bg);
}

/* ── Press: inline style replacements ── */
.comunicato-titolo { line-height: 1.35; }
.comunicato-sommario { line-height: 1.65; }
.changelog-sidebar-label { letter-spacing: 0.08em; font-size: 0.68rem; }

/* ── Partner: footer link muted ── */
.footer-link-muted { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* ── Comparison table (caratteristiche) ── */
.plat-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.plat-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  overflow: hidden;
  font-size: 0.84rem;
}
.plat-compare-table thead th {
  background: #0d1f3c;
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 3px solid #C8281F;
  font-size: 0.82rem;
  white-space: nowrap;
}
.plat-compare-table thead th:first-child {
  text-align: left;
  background: #0a1830;
}
.plat-compare-table thead th.plat-compare-hl {
  background: #C8281F;
  color: #fff;
}
.plat-compare-table tbody td {
  padding: 11px 16px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
  font-size: 0.82rem;
}
.plat-compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0d1f3c;
}
.plat-compare-table tbody tr:nth-child(even) { background: #f8f9fb; }
.plat-compare-table tbody tr:hover { background: #f1f5f9; }
.plat-compare-yes { color: #C8281F; font-weight: 700; }
.plat-compare-partial { color: var(--brand-muted); font-style: italic; }
.plat-compare-no { color: #cbd5e1; }
@media (max-width: 767px) {
  .plat-compare-table { min-width: 640px; }
  .plat-compare-table thead th,
  .plat-compare-table tbody td { padding: 9px 10px; font-size: 0.76rem; }
}
