:root {
  color-scheme: light;
  --surface-1:      #fcfcfb;
  --page:           #f9f9f7;
  --text-primary:   #0b0b0b;
  --text-secondary: #52514e;
  --text-muted:     #898781;
  --grid:           #e1e0d9;
  --baseline:       #c3c2b7;
  --border:         rgba(11,11,11,0.10);
  --series-1:       #2a78d6;
  --series-1-wash:  rgba(42,120,214,0.10);
  --series-2:       #eb6834;
  --series-3:       #1baf7a;
  --series-4:       #eda100;
  --good:           #0ca30c;
  --critical:       #d03b3b;

  --font-display:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --accent:         #5b5bd6;
  --accent-wash:    rgba(91,91,214,0.12);
  --accent-fg:      #ffffff;
  --badge-success-bg: #16a34a; --badge-success-fg: #ffffff;
  --badge-danger-bg:  #dc2626; --badge-danger-fg:  #ffffff;
  --badge-warning-bg: #f59e0b; --badge-warning-fg: #3f2d00;
  --badge-neutral-bg: var(--grid); --badge-neutral-fg: var(--text-secondary);
  --shadow-soft:    0 1px 2px rgba(20,20,15,0.04), 0 10px 28px -14px rgba(20,20,15,0.16);
  --shadow-soft-hover: 0 1px 2px rgba(20,20,15,0.05), 0 14px 32px -14px rgba(20,20,15,0.22);
  --radius-lg:      16px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --surface-1:      #1a1a19;
    --page:           #0d0d0d;
    --text-primary:   #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted:     #898781;
    --grid:           #2c2c2a;
    --baseline:       #383835;
    --border:         rgba(255,255,255,0.10);
    --series-1:       #3987e5;
    --series-1-wash:  rgba(57,135,229,0.14);
    --series-2:       #d95926;
    --series-3:       #199e70;
    --series-4:       #c98500;
    --good:           #0ca30c;
    --critical:       #e66767;

    --accent:         #8583f2;
    --accent-wash:    rgba(133,131,242,0.16);
    --badge-success-bg: #22c55e; --badge-success-fg: #06210f;
    --badge-danger-bg:  #ef4444; --badge-danger-fg:  #2a0505;
    --badge-warning-bg: #f5a524; --badge-warning-fg: #2a1c00;
    --shadow-soft:    0 1px 2px rgba(0,0,0,0.3), 0 10px 28px -14px rgba(0,0,0,0.55);
    --shadow-soft-hover: 0 1px 2px rgba(0,0,0,0.35), 0 14px 32px -14px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1:      #1a1a19;
  --page:           #0d0d0d;
  --text-primary:   #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted:     #898781;
  --grid:           #2c2c2a;
  --baseline:       #383835;
  --border:         rgba(255,255,255,0.10);
  --series-1:       #3987e5;
  --series-1-wash:  rgba(57,135,229,0.14);
  --series-2:       #d95926;
  --series-3:       #199e70;
  --series-4:       #c98500;
  --good:           #0ca30c;
  --critical:       #e66767;

  --accent:         #8583f2;
  --accent-wash:    rgba(133,131,242,0.16);
  --badge-success-bg: #22c55e; --badge-success-fg: #06210f;
  --badge-danger-bg:  #ef4444; --badge-danger-fg:  #2a0505;
  --badge-warning-bg: #f5a524; --badge-warning-fg: #2a1c00;
  --shadow-soft:    0 1px 2px rgba(0,0,0,0.3), 0 10px 28px -14px rgba(0,0,0,0.55);
  --shadow-soft-hover: 0 1px 2px rgba(0,0,0,0.35), 0 14px 32px -14px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: underline; }

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px; flex: 0 0 220px;
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  padding: 28px 16px;
}
.sidebar h1 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; margin: 0 0 20px 8px;
  color: var(--text-primary);
}
.sidebar nav .nav-group-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 6px 10px;
}
.sidebar nav .nav-group-label:first-child { margin-top: 0; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 2px;
  border-radius: 6px; color: var(--text-secondary); font-size: 14px;
  transition: background-color .2s ease, color .2s ease;
}
.sidebar nav a:hover { background: var(--accent-wash); text-decoration: none; color: var(--text-primary); }
.sidebar nav a.active {
  background: var(--accent-wash); color: var(--accent); font-weight: 700;
  position: relative;
}
.sidebar nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 2px;
}
.sidebar nav a .nav-emoji { display: none; }
.sidebar nav a .nav-icon {
  display: inline-block; width: 17px; height: 17px; flex: 0 0 17px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.sidebar .user { margin-top: 24px; padding: 0 8px; font-size: 12px; color: var(--text-muted); }
.sidebar .logout { margin-top: 8px; }

.main { flex: 1; padding: 40px 48px; max-width: 1180px; }
.main h2 {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 28px;
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 36px; }
.tile {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: var(--shadow-soft);
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: var(--shadow-soft-hover); transform: translateY(-1px); }
.tile .label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); margin-bottom: 6px;
}
.tile .value {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.tile .sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.trend-up { color: var(--badge-success-bg); }
.trend-down { color: var(--badge-danger-bg); }

.panel {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 28px; box-shadow: var(--shadow-soft);
}
.panel h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  margin: 0 0 18px; color: var(--text-primary);
}

.chart-tooltip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .1s;
  background: var(--text-primary); color: var(--page);
  font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  transform: translate(-50%, -130%);
}

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.bar-row .name { width: 180px; flex: 0 0 180px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; background: var(--grid); border-radius: 4px; height: 10px; overflow: hidden; }
.bar-row .fill { background: var(--accent); height: 100%; border-radius: 4px; }
.bar-row .count { width: 30px; flex: 0 0 30px; text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.timeline { display: flex; flex-direction: column; gap: 2px; }
.timeline-item { display: flex; gap: 12px; padding: 10px 4px; border-left: 3px solid var(--grid); padding-left: 14px; }
.timeline-item.timeline-acquisti { border-left-color: var(--series-1); }
.timeline-item.timeline-navigazione { border-left-color: var(--series-2); }
.timeline-item.timeline-pagamenti { border-left-color: var(--series-3); }
.timeline-item.timeline-missioni { border-left-color: var(--series-4); }
.timeline-item.timeline-note { border-left-color: var(--good); }
.timeline-icon { font-size: 16px; flex: 0 0 22px; }
.timeline-body { flex: 1; min-width: 0; }
.timeline-label { font-size: 13px; color: var(--text-primary); word-break: break-word; }
.timeline-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .02em; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grid); }
th { color: var(--text-muted); font-weight: 500; font-size: 12px; }
td.num { font-variant-numeric: tabular-nums; }

td.editable { cursor: text; border-radius: 4px; }
td.editable:hover { background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--border); }
.inline-edit-input {
  width: 100%; font-size: 13px; font-family: inherit; padding: 3px 6px;
  border-radius: 4px; border: 1px solid var(--series-1);
  background: var(--surface-1); color: var(--text-primary);
}

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--page); }
.login-box {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 36px 32px 24px; width: 340px;
  box-shadow: 0 10px 32px -18px rgba(11,11,11,0.25);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 20px; font-weight: 700; font-family: var(--font-display);
}
.login-box h1 { font-size: 17px; margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; }
.login-subtitle { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
.login-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  margin: 0 0 4px 2px;
}
.login-box input {
  width: 100%; padding: 9px 10px; margin-bottom: 14px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--page); color: var(--text-primary); font-size: 14px;
}
.login-box input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.login-box button {
  width: 100%; padding: 10px; margin-top: 4px; border-radius: 6px; border: none;
  background: var(--accent); color: var(--accent-fg); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.login-box button:hover { box-shadow: 0 4px 12px -4px var(--accent-wash); transform: translateY(-1px); }
.login-box .error { color: var(--critical); font-size: 13px; margin-bottom: 12px; }
.login-footer { margin: 20px 0 0; text-align: center; font-size: 11px; color: var(--text-muted); }

.btn {
  display: inline-block; padding: 8px 14px; border-radius: 6px; border: none;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.btn:hover { box-shadow: 0 4px 12px -4px var(--accent-wash); transform: translateY(-1px); }
.btn.secondary { background: var(--grid); color: var(--text-primary); }
.btn.danger { background: var(--critical); color: #fff; }

.empty { color: var(--text-muted); font-size: 13px; }
.field-hint { color: var(--text-muted); font-size: 12px; margin: 2px 0 10px; }
.field-hint:empty { display: none; }
.table-sub { display: block; color: var(--text-muted); font-size: 11px; }
.inline-field { display: inline-flex; flex-direction: column; gap: 3px; }
.field-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.badge-success { background: var(--badge-success-bg); color: var(--badge-success-fg); }
.badge-danger  { background: var(--badge-danger-bg);  color: var(--badge-danger-fg); }
.badge-warning { background: var(--badge-warning-bg); color: var(--badge-warning-fg); }
.badge-neutral { background: var(--badge-neutral-bg); color: var(--badge-neutral-fg); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 40px 16px; text-align: center;
}
.empty-state-icon {
  width: 30px; height: 30px; display: inline-block;
  background-color: var(--text-muted);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  opacity: .5;
}
.empty-state-text { font-size: 13px; color: var(--text-muted); }

.tutorial-desc { color: var(--text-primary); font-size: 15px; font-weight: 600; line-height: 1.6; }

.pagination { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pagination a {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 13px;
  transition: background-color .2s ease, color .2s ease;
}
.pagination a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover { text-decoration: none; background: var(--accent-wash); }

.row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.row-header h3, .row-header h4 { margin: 0; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions form { display: inline; margin: 0; }
.link-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: var(--accent); font-size: 13px; font-family: inherit;
  transition: color .2s ease;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger-link { color: var(--critical); }
.subcat { margin: 0 0 18px 12px; padding: 12px 14px; background: var(--page); border-radius: 8px; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form input[type="text"], .inline-form input[type="number"] {
  padding: 7px 9px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-1); color: var(--text-primary); font-size: 13px;
}
.inline-form select {
  padding: 7px 9px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-1); color: var(--text-primary); font-size: 13px;
}
.stack-form label { display: block; font-size: 12px; color: var(--text-secondary); margin: 10px 0 4px; }
.stack-form input, .stack-form select, .stack-form textarea {
  padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--page); color: var(--text-primary); font-size: 14px; width: 100%; max-width: 420px;
}
.file-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--grid); font-size: 13px;
}
.file-row span { word-break: break-all; color: var(--text-secondary); }
.pool-thumb {
  width: 96px; height: 96px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--border); background: var(--page);
  cursor: pointer; transition: transform 0.12s ease;
}
.pool-thumb:hover { transform: scale(1.08); }
.pool-thumb-placeholder {
  width: 96px; height: 96px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--page); border: 1px solid var(--border); font-size: 34px;
}
.pool-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
  align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out;
  padding: 24px;
}
.pool-lightbox.open { display: flex; }
.pool-lightbox-img {
  max-width: 90vw; max-height: 90vh; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease;
}
.pool-lightbox-spinner {
  display: none; position: absolute; width: 40px; height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff;
  border-radius: 50%; animation: pool-spin 0.7s linear infinite;
}
.pool-lightbox.loading .pool-lightbox-img { opacity: 0.15; }
.pool-lightbox.loading .pool-lightbox-spinner { display: block; }
@keyframes pool-spin { to { transform: rotate(360deg); } }
textarea { font-family: inherit; }

/* Tabelle scrollabili in orizzontale quando non ci stanno (mobile o tabelle larghe):
   display:block sul <table> lo rende un contenitore scrollabile, thead/tbody restano
   display:table cosi le colonne interne continuano ad allinearsi correttamente. */
table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table thead, table tbody { display: table; width: 100%; }

.btn-row input.btn-title, .btn-row input.btn-url { flex: 1 1 160px; min-width: 0; }
.btn-row .btn-remove { flex: 0 0 auto; }

.mobile-topbar { display: none; }
.mobile-menu-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  font-size: 18px; line-height: 1; padding: 6px 12px; color: var(--text-primary); cursor: pointer;
}

@media (max-width: 860px) {
  .layout { flex-direction: column; }

  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--surface-1); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 30;
  }
  .mobile-topbar .mobile-title { font-size: 15px; font-weight: 600; }

  .sidebar {
    display: none; width: 100%; flex: none; max-height: 70vh; overflow-y: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .sidebar.open { display: block; }
  .sidebar h1 { display: none; }

  .main { padding: 18px 16px; max-width: 100%; }
  .main h2 { font-size: 18px; }

  .tiles { grid-template-columns: repeat(2, 1fr); }

  .row-header { flex-wrap: wrap; gap: 8px; }
  .row-actions { flex-wrap: wrap; }

  .bar-row .name { width: 110px; flex: 0 0 110px; }

  .stack-form input, .stack-form select, .stack-form textarea { max-width: 100%; }

  .login-box { width: min(320px, 88vw); }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .btn-row input.btn-title, .btn-row input.btn-url { flex-basis: 100%; }
}

/* --- Icone sidebar (Lucide, incorporate come CSS mask, zero dipendenze runtime) --- */
.sidebar nav a[href="/"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Crect%20width=%227%22%20height=%229%22%20x=%223%22%20y=%223%22%20rx=%221%22%20/%3E%3Crect%20width=%227%22%20height=%225%22%20x=%2214%22%20y=%223%22%20rx=%221%22%20/%3E%3Crect%20width=%227%22%20height=%229%22%20x=%2214%22%20y=%2212%22%20rx=%221%22%20/%3E%3Crect%20width=%227%22%20height=%225%22%20x=%223%22%20y=%2216%22%20rx=%221%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Crect%20width=%227%22%20height=%229%22%20x=%223%22%20y=%223%22%20rx=%221%22%20/%3E%3Crect%20width=%227%22%20height=%225%22%20x=%2214%22%20y=%223%22%20rx=%221%22%20/%3E%3Crect%20width=%227%22%20height=%229%22%20x=%2214%22%20y=%2212%22%20rx=%221%22%20/%3E%3Crect%20width=%227%22%20height=%225%22%20x=%223%22%20y=%2216%22%20rx=%221%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/prodotti"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11%2021.73a2%202%200%200%200%202%200l7-4A2%202%200%200%200%2021%2016V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73z%22%20/%3E%3Cpath%20d=%22M12%2022V12%22%20/%3E%3Cpolyline%20points=%223.29%207%2012%2012%2020.71%207%22%20/%3E%3Cpath%20d=%22m7.5%204.27%209%205.15%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11%2021.73a2%202%200%200%200%202%200l7-4A2%202%200%200%200%2021%2016V8a2%202%200%200%200-1-1.73l-7-4a2%202%200%200%200-2%200l-7%204A2%202%200%200%200%203%208v8a2%202%200%200%200%201%201.73z%22%20/%3E%3Cpath%20d=%22M12%2022V12%22%20/%3E%3Cpolyline%20points=%223.29%207%2012%2012%2020.71%207%22%20/%3E%3Cpath%20d=%22m7.5%204.27%209%205.15%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/utenti"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22%20/%3E%3Cpath%20d=%22M16%203.128a4%204%200%200%201%200%207.744%22%20/%3E%3Cpath%20d=%22M22%2021v-2a4%204%200%200%200-3-3.87%22%20/%3E%3Ccircle%20cx=%229%22%20cy=%227%22%20r=%224%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22%20/%3E%3Cpath%20d=%22M16%203.128a4%204%200%200%201%200%207.744%22%20/%3E%3Cpath%20d=%22M22%2021v-2a4%204%200%200%200-3-3.87%22%20/%3E%3Ccircle%20cx=%229%22%20cy=%227%22%20r=%224%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/pagamenti"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Crect%20width=%2220%22%20height=%2214%22%20x=%222%22%20y=%225%22%20rx=%222%22%20/%3E%3Cline%20x1=%222%22%20x2=%2222%22%20y1=%2210%22%20y2=%2210%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Crect%20width=%2220%22%20height=%2214%22%20x=%222%22%20y=%225%22%20rx=%222%22%20/%3E%3Cline%20x1=%222%22%20x2=%2222%22%20y1=%2210%22%20y2=%2210%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/promo"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cline%20x1=%2219%22%20x2=%225%22%20y1=%225%22%20y2=%2219%22%20/%3E%3Ccircle%20cx=%226.5%22%20cy=%226.5%22%20r=%222.5%22%20/%3E%3Ccircle%20cx=%2217.5%22%20cy=%2217.5%22%20r=%222.5%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cline%20x1=%2219%22%20x2=%225%22%20y1=%225%22%20y2=%2219%22%20/%3E%3Ccircle%20cx=%226.5%22%20cy=%226.5%22%20r=%222.5%22%20/%3E%3Ccircle%20cx=%2217.5%22%20cy=%2217.5%22%20r=%222.5%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/carrello"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22m2.05%202.05%201.099-.028a1%201%200%200%201%201.008.815l2.69%2014.347A1%201%200%200%200%207.83%2018H18%22%20/%3E%3Cpath%20d=%22M4.563%205h16.435a1%201%200%200%201%20.981%201.204l-1.026%206.226A2%202%200%200%201%2018.962%2014H6.25%22%20/%3E%3Ccircle%20cx=%2218%22%20cy=%2220%22%20r=%222%22%20/%3E%3Ccircle%20cx=%228%22%20cy=%2220%22%20r=%222%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22m2.05%202.05%201.099-.028a1%201%200%200%201%201.008.815l2.69%2014.347A1%201%200%200%200%207.83%2018H18%22%20/%3E%3Cpath%20d=%22M4.563%205h16.435a1%201%200%200%201%20.981%201.204l-1.026%206.226A2%202%200%200%201%2018.962%2014H6.25%22%20/%3E%3Ccircle%20cx=%2218%22%20cy=%2220%22%20r=%222%22%20/%3E%3Ccircle%20cx=%228%22%20cy=%2220%22%20r=%222%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/coupon"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M2%209a3%203%200%200%201%200%206v2a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-2a3%203%200%200%201%200-6V7a2%202%200%200%200-2-2H4a2%202%200%200%200-2%202Z%22%20/%3E%3Cpath%20d=%22M13%205v2%22%20/%3E%3Cpath%20d=%22M13%2017v2%22%20/%3E%3Cpath%20d=%22M13%2011v2%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M2%209a3%203%200%200%201%200%206v2a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-2a3%203%200%200%201%200-6V7a2%202%200%200%200-2-2H4a2%202%200%200%200-2%202Z%22%20/%3E%3Cpath%20d=%22M13%205v2%22%20/%3E%3Cpath%20d=%22M13%2017v2%22%20/%3E%3Cpath%20d=%22M13%2011v2%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/livelli"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M10%2014.66V17a1%201%200%200%201-1%201%202%202%200%200%200-2%202v2%22%20/%3E%3Cpath%20d=%22M14%2014.66V17a1%201%200%200%200%201%201%202%202%200%200%201%202%202v2%22%20/%3E%3Cpath%20d=%22M17.916%2010H19.5A2.5%202.5%200%200%200%2022%207.5V5a1%201%200%200%200-1-1h-3%22%20/%3E%3Cpath%20d=%22M4%2022h16%22%20/%3E%3Cpath%20d=%22M6%209a6%206%200%200%200%2012%200V3a1%201%200%200%200-1-1H7a1%201%200%200%200-1%201z%22%20/%3E%3Cpath%20d=%22M6.084%2010H4.5A2.5%202.5%200%200%201%202%207.5V5a1%201%200%200%201%201-1h3%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M10%2014.66V17a1%201%200%200%201-1%201%202%202%200%200%200-2%202v2%22%20/%3E%3Cpath%20d=%22M14%2014.66V17a1%201%200%200%200%201%201%202%202%200%200%201%202%202v2%22%20/%3E%3Cpath%20d=%22M17.916%2010H19.5A2.5%202.5%200%200%200%2022%207.5V5a1%201%200%200%200-1-1h-3%22%20/%3E%3Cpath%20d=%22M4%2022h16%22%20/%3E%3Cpath%20d=%22M6%209a6%206%200%200%200%2012%200V3a1%201%200%200%200-1-1H7a1%201%200%200%200-1%201z%22%20/%3E%3Cpath%20d=%22M6.084%2010H4.5A2.5%202.5%200%200%201%202%207.5V5a1%201%200%200%201%201-1h3%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/referral"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2218%22%20cy=%225%22%20r=%223%22%20/%3E%3Ccircle%20cx=%226%22%20cy=%2212%22%20r=%223%22%20/%3E%3Ccircle%20cx=%2218%22%20cy=%2219%22%20r=%223%22%20/%3E%3Cline%20x1=%228.59%22%20x2=%2215.42%22%20y1=%2213.51%22%20y2=%2217.49%22%20/%3E%3Cline%20x1=%2215.41%22%20x2=%228.59%22%20y1=%226.51%22%20y2=%2210.49%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2218%22%20cy=%225%22%20r=%223%22%20/%3E%3Ccircle%20cx=%226%22%20cy=%2212%22%20r=%223%22%20/%3E%3Ccircle%20cx=%2218%22%20cy=%2219%22%20r=%223%22%20/%3E%3Cline%20x1=%228.59%22%20x2=%2215.42%22%20y1=%2213.51%22%20y2=%2217.49%22%20/%3E%3Cline%20x1=%2215.41%22%20x2=%228.59%22%20y1=%226.51%22%20y2=%2210.49%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/missioni"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%226%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%226%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/ruota"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22%20/%3E%3Cpath%20d=%22M6%2012c0-1.7.7-3.2%201.8-4.2%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3Cpath%20d=%22M18%2012c0%201.7-.7%203.2-1.8%204.2%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22%20/%3E%3Cpath%20d=%22M6%2012c0-1.7.7-3.2%201.8-4.2%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3Cpath%20d=%22M18%2012c0%201.7-.7%203.2-1.8%204.2%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/recupero"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22%20/%3E%3Cpath%20d=%22m4.93%204.93%204.24%204.24%22%20/%3E%3Cpath%20d=%22m14.83%209.17%204.24-4.24%22%20/%3E%3Cpath%20d=%22m14.83%2014.83%204.24%204.24%22%20/%3E%3Cpath%20d=%22m9.17%2014.83-4.24%204.24%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%224%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22%20/%3E%3Cpath%20d=%22m4.93%204.93%204.24%204.24%22%20/%3E%3Cpath%20d=%22m14.83%209.17%204.24-4.24%22%20/%3E%3Cpath%20d=%22m14.83%2014.83%204.24%204.24%22%20/%3E%3Cpath%20d=%22m9.17%2014.83-4.24%204.24%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%224%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/consigliati"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11.017%202.814a1%201%200%200%201%201.966%200l1.051%205.558a2%202%200%200%200%201.594%201.594l5.558%201.051a1%201%200%200%201%200%201.966l-5.558%201.051a2%202%200%200%200-1.594%201.594l-1.051%205.558a1%201%200%200%201-1.966%200l-1.051-5.558a2%202%200%200%200-1.594-1.594l-5.558-1.051a1%201%200%200%201%200-1.966l5.558-1.051a2%202%200%200%200%201.594-1.594z%22%20/%3E%3Cpath%20d=%22M20%202v4%22%20/%3E%3Cpath%20d=%22M22%204h-4%22%20/%3E%3Ccircle%20cx=%224%22%20cy=%2220%22%20r=%222%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11.017%202.814a1%201%200%200%201%201.966%200l1.051%205.558a2%202%200%200%200%201.594%201.594l5.558%201.051a1%201%200%200%201%200%201.966l-5.558%201.051a2%202%200%200%200-1.594%201.594l-1.051%205.558a1%201%200%200%201-1.966%200l-1.051-5.558a2%202%200%200%200-1.594-1.594l-5.558-1.051a1%201%200%200%201%200-1.966l5.558-1.051a2%202%200%200%200%201.594-1.594z%22%20/%3E%3Cpath%20d=%22M20%202v4%22%20/%3E%3Cpath%20d=%22M22%204h-4%22%20/%3E%3Ccircle%20cx=%224%22%20cy=%2220%22%20r=%222%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/welcome"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M12%207v14%22%20/%3E%3Cpath%20d=%22M20%2011v8a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2v-8%22%20/%3E%3Cpath%20d=%22M7.5%207a1%201%200%200%201%200-5A4.8%208%200%200%201%2012%207a4.8%208%200%200%201%204.5-5%201%201%200%200%201%200%205%22%20/%3E%3Crect%20x=%223%22%20y=%227%22%20width=%2218%22%20height=%224%22%20rx=%221%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M12%207v14%22%20/%3E%3Cpath%20d=%22M20%2011v8a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2v-8%22%20/%3E%3Cpath%20d=%22M7.5%207a1%201%200%200%201%200-5A4.8%208%200%200%201%2012%207a4.8%208%200%200%201%204.5-5%201%201%200%200%201%200%205%22%20/%3E%3Crect%20x=%223%22%20y=%227%22%20width=%2218%22%20height=%224%22%20rx=%221%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/vip"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11.525%202.295a.53.53%200%200%201%20.95%200l2.31%204.679a2.123%202.123%200%200%200%201.595%201.16l5.166.756a.53.53%200%200%201%20.294.904l-3.736%203.638a2.123%202.123%200%200%200-.611%201.878l.882%205.14a.53.53%200%200%201-.771.56l-4.618-2.428a2.122%202.122%200%200%200-1.973%200L6.396%2021.01a.53.53%200%200%201-.77-.56l.881-5.139a2.122%202.122%200%200%200-.611-1.879L2.16%209.795a.53.53%200%200%201%20.294-.906l5.165-.755a2.122%202.122%200%200%200%201.597-1.16z%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11.525%202.295a.53.53%200%200%201%20.95%200l2.31%204.679a2.123%202.123%200%200%200%201.595%201.16l5.166.756a.53.53%200%200%201%20.294.904l-3.736%203.638a2.123%202.123%200%200%200-.611%201.878l.882%205.14a.53.53%200%200%201-.771.56l-4.618-2.428a2.122%202.122%200%200%200-1.973%200L6.396%2021.01a.53.53%200%200%201-.77-.56l.881-5.139a2.122%202.122%200%200%200-.611-1.879L2.16%209.795a.53.53%200%200%201%20.294-.906l5.165-.755a2.122%202.122%200%200%200%201.597-1.16z%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/broadcast"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11%206a13%2013%200%200%200%208.4-2.8A1%201%200%200%201%2021%204v12a1%201%200%200%201-1.6.8A13%2013%200%200%200%2011%2014H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2z%22%20/%3E%3Cpath%20d=%22M6%2014a12%2012%200%200%200%202.4%207.2%202%202%200%200%200%203.2-2.4A8%208%200%200%201%2010%2014%22%20/%3E%3Cpath%20d=%22M8%206v8%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M11%206a13%2013%200%200%200%208.4-2.8A1%201%200%200%201%2021%204v12a1%201%200%200%201-1.6.8A13%2013%200%200%200%2011%2014H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2z%22%20/%3E%3Cpath%20d=%22M6%2014a12%2012%200%200%200%202.4%207.2%202%202%200%200%200%203.2-2.4A8%208%200%200%201%2010%2014%22%20/%3E%3Cpath%20d=%22M8%206v8%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/offerte"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M12%203q1%204%204%206.5t3%205.5a1%201%200%200%201-14%200%205%205%200%200%201%201-3%201%201%200%200%200%205%200c0-2-1.5-3-1.5-5q0-2%202.5-4%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M12%203q1%204%204%206.5t3%205.5a1%201%200%200%201-14%200%205%205%200%200%201%201-3%201%201%200%200%200%205%200c0-2-1.5-3-1.5-5q0-2%202.5-4%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/video-richieste"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22m16%2013%205.223%203.482a.5.5%200%200%200%20.777-.416V7.87a.5.5%200%200%200-.752-.432L16%2010.5%22%20/%3E%3Crect%20x=%222%22%20y=%226%22%20width=%2214%22%20height=%2212%22%20rx=%222%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22m16%2013%205.223%203.482a.5.5%200%200%200%20.777-.416V7.87a.5.5%200%200%200-.752-.432L16%2010.5%22%20/%3E%3Crect%20x=%222%22%20y=%226%22%20width=%2214%22%20height=%2212%22%20rx=%222%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/canali"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M16.247%207.761a6%206%200%200%201%200%208.478%22%20/%3E%3Cpath%20d=%22M19.075%204.933a10%2010%200%200%201%200%2014.134%22%20/%3E%3Cpath%20d=%22M4.925%2019.067a10%2010%200%200%201%200-14.134%22%20/%3E%3Cpath%20d=%22M7.753%2016.239a6%206%200%200%201%200-8.478%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M16.247%207.761a6%206%200%200%201%200%208.478%22%20/%3E%3Cpath%20d=%22M19.075%204.933a10%2010%200%200%201%200%2014.134%22%20/%3E%3Cpath%20d=%22M4.925%2019.067a10%2010%200%200%201%200-14.134%22%20/%3E%3Cpath%20d=%22M7.753%2016.239a6%206%200%200%201%200-8.478%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/post-canale"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M14.536%2021.686a.5.5%200%200%200%20.937-.024l6.5-19a.496.496%200%200%200-.635-.635l-19%206.5a.5.5%200%200%200-.024.937l7.93%203.18a2%202%200%200%201%201.112%201.11z%22%20/%3E%3Cpath%20d=%22m21.854%202.147-10.94%2010.939%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M14.536%2021.686a.5.5%200%200%200%20.937-.024l6.5-19a.496.496%200%200%200-.635-.635l-19%206.5a.5.5%200%200%200-.024.937l7.93%203.18a2%202%200%200%201%201.112%201.11z%22%20/%3E%3Cpath%20d=%22m21.854%202.147-10.94%2010.939%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/funzionalita"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2215%22%20cy=%2212%22%20r=%223%22%20/%3E%3Crect%20width=%2220%22%20height=%2214%22%20x=%222%22%20y=%225%22%20rx=%227%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Ccircle%20cx=%2215%22%20cy=%2212%22%20r=%223%22%20/%3E%3Crect%20width=%2220%22%20height=%2214%22%20x=%222%22%20y=%225%22%20rx=%227%22%20/%3E%3C/svg%3E"); }
.sidebar nav a[href="/impostazioni"] .nav-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M9.671%204.136a2.34%202.34%200%200%201%204.659%200%202.34%202.34%200%200%200%203.319%201.915%202.34%202.34%200%200%201%202.33%204.033%202.34%202.34%200%200%200%200%203.831%202.34%202.34%200%200%201-2.33%204.033%202.34%202.34%200%200%200-3.319%201.915%202.34%202.34%200%200%201-4.659%200%202.34%202.34%200%200%200-3.32-1.915%202.34%202.34%200%200%201-2.33-4.033%202.34%202.34%200%200%200%200-3.831A2.34%202.34%200%200%201%206.35%206.051a2.34%202.34%200%200%200%203.319-1.915%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%223%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M9.671%204.136a2.34%202.34%200%200%201%204.659%200%202.34%202.34%200%200%200%203.319%201.915%202.34%202.34%200%200%201%202.33%204.033%202.34%202.34%200%200%200%200%203.831%202.34%202.34%200%200%201-2.33%204.033%202.34%202.34%200%200%200-3.319%201.915%202.34%202.34%200%200%201-4.659%200%202.34%202.34%200%200%200-3.32-1.915%202.34%202.34%200%200%201-2.33-4.033%202.34%202.34%200%200%200%200-3.831A2.34%202.34%200%200%201%206.35%206.051a2.34%202.34%200%200%200%203.319-1.915%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%223%22%20/%3E%3C/svg%3E"); }

/* --- Icona stato vuoto (inbox) --- */
.empty-state-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpolyline%20points=%2222%2012%2016%2012%2014%2015%2010%2015%208%2012%202%2012%22%20/%3E%3Cpath%20d=%22M5.45%205.11%202%2012v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6l-3.45-6.89A2%202%200%200%200%2016.76%204H7.24a2%202%200%200%200-1.79%201.11z%22%20/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpolyline%20points=%2222%2012%2016%2012%2014%2015%2010%2015%208%2012%202%2012%22%20/%3E%3Cpath%20d=%22M5.45%205.11%202%2012v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6l-3.45-6.89A2%202%200%200%200%2016.76%204H7.24a2%202%200%200%200-1.79%201.11z%22%20/%3E%3C/svg%3E"); }

/* --- Header di pagina: titolo + icona "?" tutorial + azioni (bottone "+ Nuovo") --- */
.page-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: space-between; margin-bottom: 24px;
}
.page-header-title { display: flex; align-items: center; gap: 10px; }
.page-header-title h2 { margin: 0; }
.tutorial-help-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
  border: 1.5px solid var(--border); background: var(--surface-1);
  color: var(--text-muted); font-size: 13px; font-weight: 700;
  font-family: var(--font-display); cursor: pointer; line-height: 1;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.tutorial-help-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

/* --- Modal generico: usato sia dal tutorial sia (in stile) dal pannello "+ Nuovo" --- */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(11, 11, 11, 0.45);
  z-index: 900; animation: modal-fade-in .15s ease;
}
.modal-backdrop.open { display: block; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

.tutorial-modal-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(680px, 92vw); max-height: 86vh; overflow-y: auto;
  background: var(--surface-1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-hover); padding: 28px; z-index: 901;
  display: none;
}
.tutorial-modal-box.open { display: block; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--page); color: var(--text-secondary); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent-wash); color: var(--accent); }
.tutorial-modal-box h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin: 0 22px 16px 0; color: var(--text-primary);
}
.tutorial-modal-box video { width: 100%; border-radius: 10px; display: block; }
.tutorial-modal-box .tutorial-desc { margin-top: 16px; }

/* --- Pannello "+ Nuovo": slide-over da destra, distinto dal modal centrato
   del tutorial cosi' i due sono visivamente non ambigui --- */
.create-panel-box {
  position: fixed; top: 0; right: -480px; bottom: 0; width: min(480px, 92vw);
  background: var(--surface-1); box-shadow: -8px 0 32px -12px rgba(20,20,15,0.25);
  z-index: 901; padding: 28px; overflow-y: auto;
  transition: right .2s ease;
}
.create-panel-box.open { right: 0; }
.create-panel-box h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin: 0 22px 20px 0; color: var(--text-primary);
}
