/* ==========================================================================
   KUMOSHOP — Pannello di amministrazione
   Stesso linguaggio del sito: Jost, nero su bianco caldo, pillole, lettere animate.
   ========================================================================== */
@font-face { font-family: 'Jost'; font-weight: 300; font-display: swap; src: url('../fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; src: url('../fonts/jost-latin-ext-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; src: url('../fonts/jost-latin-ext-400-normal.woff2') format('woff2'); }

:root {
  --bg: #f5f4f1;
  --panel: #fff;
  --ink: #111110;
  --ink-2: #53524e;
  --ink-3: #8a8984;
  --line: #e6e4df;
  --line-2: #d6d3cc;
  --ok: #1f8a5b;
  --ok-bg: #e5f4ec;
  --info: #2a6fd6;
  --info-bg: #e7effb;
  --warn: #a96b00;
  --warn-bg: #fbf1dc;
  --bad: #c0392b;
  --bad-bg: #fbe8e5;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --radius: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --side: 248px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* icone in linea: dimensione e tratto predefiniti */
svg[viewBox='0 0 24 24'] { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.u-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.u-muted { color: var(--ink-3); }
.u-num { font-variant-numeric: tabular-nums; }
.u-pos { color: var(--ok); }
.u-neg { color: var(--bad); }

/* parole animate (stesse del sito) */
.c-word { display: inline-flex; overflow: hidden; line-height: 1.2; vertical-align: top; --delay: 0s; }
.c-word > span { display: inline-block; white-space: pre; }
.c-word-in > span { transform: translateY(70%); opacity: 0; }
.is-in .c-word-in > span, .c-word-in.is-in > span { transform: none; opacity: 1; transition: transform 0.8s var(--ease-out), opacity 0s; transition-delay: calc(var(--delay) + var(--i) * 0.03s); }

/* ----------------------------------------------------------------- struttura */
.a-shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.a-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.a-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 26px; text-decoration: none; }
.a-brand ._mark { width: 26px; height: 26px; background: var(--ink); -webkit-mask: url('../img/mark.svg') center / contain no-repeat; mask: url('../img/mark.svg') center / contain no-repeat; }
.a-brand ._name { font-size: 13px; letter-spacing: 0.38em; }
.a-brand small { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.a-nav { display: flex; flex-direction: column; gap: 2px; }
.a-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  transition: background-color 0.25s, color 0.25s;
}
.a-nav a:hover { background: var(--bg); color: var(--ink); }
.a-nav a[aria-current='page'] { background: var(--ink); color: #fff; }
.a-nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.a-nav ._badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--series-2); color: #fff; font-size: 11px; display: grid; place-items: center; }
.a-nav ._sep { height: 1px; margin: 12px 10px; background: var(--line); }
.a-side ._foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.a-user { display: flex; align-items: center; gap: 10px; }
.a-user ._avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; letter-spacing: 0.04em; flex: none; }
.a-user ._who { min-width: 0; }
.a-user ._who strong { display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-user ._who span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.a-side ._links { display: flex; gap: 14px; font-size: 12px; }
.a-side ._links a, .a-side ._links button { color: var(--ink-2); text-decoration: none; }
.a-side ._links a:hover, .a-side ._links button:hover { color: var(--ink); text-decoration: underline; }

.a-main { min-width: 0; padding: 34px 44px 80px; }
.a-view { animation: a-in 0.6s var(--ease-out) both; }
@keyframes a-in { from { opacity: 0; transform: translateY(12px); } }
.a-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.a-head ._kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.a-head h1 { font-size: 34px; font-weight: 300; letter-spacing: 0.02em; }
.a-head ._actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.a-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.a-back:hover { color: var(--ink); }
.a-back svg { width: 15px; height: 15px; }
.a-prow ._chev { display: grid; place-items: center; }
.a-prow ._chev svg { width: 16px; height: 16px; }

.a-mobilebar { display: none; }
@media (max-width: 960px) {
  .a-shell { grid-template-columns: minmax(0, 1fr); }
  .a-side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 60; transform: translateX(-102%); transition: transform 0.5s var(--ease-out); box-shadow: 0 0 60px rgba(0, 0, 0, 0.12); }
  .a-shell.is-menu .a-side { transform: none; }
  .a-mobilebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: rgba(245, 244, 241, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .a-main { padding: 22px 18px 80px; }
  .a-head h1 { font-size: 28px; }
}

/* ----------------------------------------------------------------- componenti */
.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.35s var(--ease-back), background-color 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}
.a-btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.a-btn.-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.a-btn.-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.a-btn.-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.a-btn.-ghost { border-color: transparent; background: transparent; }
.a-btn.-ghost:hover { border-color: var(--line-2); }
.a-btn.-small { min-height: 30px; padding: 0 12px; font-size: 11px; }
.a-btn[disabled], .a-btn.is-busy { opacity: 0.45; pointer-events: none; }
.a-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a-iconbtn { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.a-iconbtn:hover { background: var(--bg); color: var(--ink); }
.a-iconbtn.-danger:hover { background: var(--bad-bg); color: var(--bad); }
.a-iconbtn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.a-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.a-card > ._head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.a-card > ._head h2 { font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.a-card > ._head p { font-size: 12px; color: var(--ink-3); }
.a-card > ._body { padding: 18px 22px 22px; }
.a-card + .a-card { margin-top: 18px; }

.a-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; letter-spacing: 0.06em; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.a-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.a-pill.-published, .a-pill.-ok, .a-pill.-answered { background: var(--ok-bg); color: var(--ok); }
.a-pill.-draft { background: #eeede9; color: var(--ink-2); }
.a-pill.-archived { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); }
.a-pill.-info, .a-pill.-in_progress { background: var(--info-bg); color: var(--info); }
.a-pill.-warn, .a-pill.-new { background: var(--warn-bg); color: var(--warn); }
.a-pill.-off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); }
.a-pill.-lock::before { display: none; }

/* campi */
.a-form { display: grid; gap: 18px; }
.a-grid { display: grid; gap: 18px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.a-grid > .-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .a-grid { grid-template-columns: 1fr; } }
.a-field { display: grid; gap: 7px; align-content: start; }
.a-field > label, .a-field > ._label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.a-field > label small, .a-field > ._label small { text-transform: none; letter-spacing: 0.02em; color: var(--ink-3); }
.a-input, .a-select, .a-textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.a-textarea { min-height: 140px; line-height: 1.65; resize: vertical; }
.a-input:focus, .a-select:focus, .a-textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 16, 0.07); }
.a-input[readonly] { background: var(--bg); color: var(--ink-2); }
.a-field.is-error .a-input, .a-field.is-error .a-select, .a-field.is-error .a-textarea { border-color: var(--bad); }
.a-hint { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.a-affix { position: relative; }
.a-affix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.a-affix .a-input { padding-left: 34px; }
.a-color { display: flex; gap: 10px; align-items: center; }
.a-color input[type='color'] { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
.a-color input[type='color']::-webkit-color-swatch-wrapper { padding: 4px; }
.a-color input[type='color']::-webkit-color-swatch { border: 0; border-radius: 6px; }
.a-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.a-switch input { position: absolute; opacity: 0; pointer-events: none; }
.a-switch ._track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color 0.3s; flex: none; }
.a-switch ._track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); transition: transform 0.35s var(--ease-back); }
.a-switch input:checked + ._track { background: var(--ink); }
.a-switch input:checked + ._track::after { transform: translateX(16px); }
.a-switch input:focus-visible + ._track { outline: 2px solid var(--ink); outline-offset: 2px; }
.a-switch input:disabled + ._track { opacity: 0.4; }
.a-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.a-seg label { position: relative; }
.a-seg input { position: absolute; opacity: 0; }
.a-seg span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; cursor: pointer; transition: all 0.25s; }
.a-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.a-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* tab */
.a-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.a-tabs button { position: relative; padding: 12px 14px 14px; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); white-space: nowrap; transition: color 0.25s; }
.a-tabs button:hover { color: var(--ink); }
.a-tabs button[aria-selected='true'] { color: var(--ink); }
.a-tabs button ._dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--series-2); vertical-align: middle; transform: scale(0); transition: transform 0.3s var(--ease-back); }
.a-tabs button.is-dirty ._dot, .a-tabs button.is-error ._dot { transform: none; }
.a-tabs button.is-error ._dot { background: var(--bad); }
.a-tabs button svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -1px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.a-tabs ._ink { position: absolute; bottom: -1px; height: 2px; background: var(--ink); transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out); left: 0; }
.a-tabpanel { animation: a-in 0.45s var(--ease-out) both; }
.a-tabpanel[hidden] { display: none; }

/* tabelle / liste */
.a-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a-table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table .-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-table tbody tr { transition: background-color 0.2s; }
.a-table tbody tr.is-link { cursor: pointer; }
.a-table tbody tr.is-link:hover { background: #faf9f7; }
.a-tablewrap { overflow-x: auto; }

.a-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.a-toolbar .a-input, .a-toolbar .a-select { min-height: 38px; width: auto; }
.a-toolbar ._search { flex: 1 1 220px; max-width: 340px; }
.a-toolbar ._spacer { flex: 1; }
.a-chips { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #eceae5; }
.a-chips button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; color: var(--ink-2); transition: all 0.25s; }
.a-chips button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.a-chips button small { margin-left: 4px; color: var(--ink-3); }

/* elenco articoli */
.a-plist { display: grid; gap: 10px; }
.a-prow {
  display: grid;
  grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) repeat(3, minmax(0, 0.9fr)) 32px;
  gap: 16px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  animation: a-in 0.5s var(--ease-out) both;
}
.a-prow:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.35); }
.a-prow ._thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--prow-color, var(--bg)); }
.a-prow ._thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-prow ._title strong { display: block; font-weight: 400; font-size: 15px; letter-spacing: 0.02em; }
.a-prow ._title span { font-size: 12px; color: var(--ink-3); }
.a-prow ._k { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 3px; }
.a-prow ._v { font-variant-numeric: tabular-nums; }
.a-prow ._chev { color: var(--ink-3); }
.a-plist-head { display: grid; grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1fr) repeat(3, minmax(0, 0.9fr)) 32px; gap: 16px; padding: 0 14px 0 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 1100px) {
  .a-prow, .a-plist-head { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .a-prow > :nth-child(n + 4):not(:last-child), .a-plist-head > :nth-child(n + 4):not(:last-child) { display: none; }
  .a-prow ._status-mobile { display: block; }
}

/* KPI */
.a-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.a-kpi { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); animation: a-in 0.6s var(--ease-out) both; }
.a-kpi ._k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.a-kpi ._v { margin-top: 10px; font-size: 28px; font-weight: 300; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.a-kpi ._s { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.a-kpi.-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-kpi.-dark ._k, .a-kpi.-dark ._s { color: rgba(255, 255, 255, 0.65); }
.a-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.a-two > .a-card + .a-card { margin-top: 0; }
@media (max-width: 1100px) { .a-two { grid-template-columns: minmax(0, 1fr); } }

/* grafico */
.a-chart { position: relative; }
.a-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.a-chart ._grid line { stroke: var(--line); stroke-width: 1; }
.a-chart ._axis text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.a-chart ._bar { transition: opacity 0.2s; }
.a-chart ._hit { fill: transparent; cursor: default; }
.a-chart ._col:hover ._hit { fill: rgba(17, 17, 16, 0.04); }
.a-chart .is-dim ._bar { opacity: 0.35; }
.a-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--ink-2); }
.a-legend span { display: inline-flex; align-items: center; gap: 7px; }
.a-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.a-tooltip { position: absolute; z-index: 5; min-width: 170px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.6; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.2s; }
.a-tooltip.is-on { opacity: 1; transform: none; }
.a-tooltip b { font-weight: 500; }
.a-tooltip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.a-tooltip ._row { display: flex; justify-content: space-between; gap: 16px; }

/* elenco compatto */
.a-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.a-list li:last-child { border-bottom: 0; }
.a-list ._t { min-width: 0; }
.a-list ._t strong { font-weight: 400; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-list ._t span { font-size: 12px; color: var(--ink-3); }
.a-empty { padding: 30px 10px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.a-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.a-note.-warn { background: var(--warn-bg); color: #6b4700; }
.a-note.-lock { background: #1a1a19; color: #e9e7e2; }
.a-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* editor */
.a-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.a-editor ._aside { position: sticky; top: 24px; display: grid; gap: 18px; }
@media (max-width: 1180px) { .a-editor { grid-template-columns: minmax(0, 1fr); } .a-editor ._aside { position: static; } }
.a-savebar {
  position: sticky;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.6s var(--ease-back), opacity 0.3s;
}
.a-savebar.is-on { transform: none; opacity: 1; }
.a-savebar ._msg { flex: 1; font-size: 13px; letter-spacing: 0.02em; }
.a-savebar .a-btn { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: #fff; }
.a-savebar .a-btn.-primary { background: #fff; color: var(--ink); border-color: #fff; }

/* anteprima della card come appare nel catalogo */
.a-preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--pv-color); color: var(--pv-ink); padding: 26px 26px 22px; display: grid; justify-items: center; gap: 4px; text-align: center; transition: background-color 0.6s; }
.a-preview ._img { width: 62%; aspect-ratio: 40.56 / 56.67; overflow: hidden; margin-bottom: 14px; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.5); background: rgba(255, 255, 255, 0.12); }
.a-preview ._img img { width: 100%; height: 100%; object-fit: cover; }
.a-preview ._series { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.a-preview ._name { font-size: 20px; letter-spacing: 0.04em; margin-top: 4px; }
.a-preview ._cap { font-size: 12px; font-weight: 300; }
.a-preview ._meta { margin-top: 6px; font-size: 11px; letter-spacing: 0.06em; opacity: 0.8; }

/* foto */
.a-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background: #fbfaf8;
  text-align: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-back);
}
.a-drop:hover, .a-drop.is-over { border-color: var(--ink); background: #fff; }
.a-drop.is-over { transform: scale(1.01); }
.a-drop svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.a-drop strong { font-weight: 400; color: var(--ink); }
.a-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.a-photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform 0.35s var(--ease-out), box-shadow 0.35s, opacity 0.25s; animation: a-in 0.45s var(--ease-out) both; }
.a-photo[draggable='true'] { cursor: grab; }
.a-photo.is-dragging { opacity: 0.35; }
.a-photo.is-target { box-shadow: 0 0 0 2px var(--ink); }
.a-photo ._img { aspect-ratio: 4 / 5; background: var(--bg); }
.a-photo ._img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.a-photo ._bar { display: flex; align-items: center; gap: 2px; padding: 6px; }
.a-photo ._bar input { flex: 1; min-width: 0; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; background: transparent; }
.a-photo ._bar input:hover, .a-photo ._bar input:focus { border-color: var(--line-2); background: #fff; outline: none; }
.a-photo ._cover { position: absolute; top: 8px; left: 8px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; }
.a-photo ._n { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); font-size: 11px; display: grid; place-items: center; }
.a-photo.is-uploading ._img { position: relative; }
.a-photo.is-uploading ._img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%); background-size: 200% 100%; animation: a-shimmer 1.2s linear infinite; }
@keyframes a-shimmer { to { background-position: -200% 0; } }

/* righe ripetibili (scheda tecnica) */
.a-rows { display: grid; gap: 8px; }
.a-rowitem { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 8px; align-items: start; animation: a-in 0.35s var(--ease-out) both; }
.a-rowitem .a-textarea { min-height: 42px; height: 42px; }
.a-rowitem ._tools { display: flex; }
@media (max-width: 720px) { .a-rowitem { grid-template-columns: 1fr; } }
.a-presets { display: flex; flex-wrap: wrap; gap: 6px; }

/* economia */
.a-econ { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.a-econ div { padding: 14px; border-radius: 12px; background: var(--bg); }
.a-econ span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.a-econ strong { display: block; margin-top: 6px; font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }

/* richieste */
.a-inbox { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .a-inbox { grid-template-columns: minmax(0, 1fr); } }
.a-inbox ._list { display: grid; gap: 8px; }
.a-msg { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-align: left; transition: border-color 0.2s, transform 0.3s var(--ease-out); animation: a-in 0.4s var(--ease-out) both; width: 100%; }
.a-msg:hover { border-color: var(--line-2); }
.a-msg[aria-current='true'] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.a-msg ._top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.a-msg strong { font-weight: 400; }
.a-msg ._prod { font-size: 12px; color: var(--ink-2); }
.a-msg ._ex { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-msg.-new strong::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--series-2); vertical-align: middle; }
.a-msgbody { white-space: pre-wrap; line-height: 1.75; font-size: 14px; padding: 18px; border-radius: 12px; background: var(--bg); }
.a-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13px; }
.a-dl dt { color: var(--ink-3); }

/* serie */
.a-works { display: grid; gap: 10px; }
.a-work { display: grid; grid-template-columns: 28px 14px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; animation: a-in 0.45s var(--ease-out) both; transition: box-shadow 0.25s, opacity 0.25s; }
.a-work.is-dragging { opacity: 0.4; }
.a-work.is-target { box-shadow: 0 0 0 2px var(--ink); }
.a-work ._grip { cursor: grab; color: var(--ink-3); display: grid; place-items: center; }
.a-work ._grip svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.a-work ._sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--line-2)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.a-work ._t strong { display: block; font-weight: 400; font-size: 15px; }
.a-work ._t span { font-size: 12px; color: var(--ink-3); }

/* modale e conferme */
.a-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(17, 17, 16, 0.38); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.a-modal.is-on { opacity: 1; }
.a-modal ._box { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border-radius: 18px; background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); transform: translateY(16px) scale(0.98); transition: transform 0.5s var(--ease-back); }
.a-modal.is-on ._box { transform: none; }
.a-modal h2 { font-size: 22px; font-weight: 300; letter-spacing: 0.02em; margin-bottom: 10px; }
.a-modal ._text { color: var(--ink-2); line-height: 1.65; margin-bottom: 18px; }
.a-modal ._actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* notifiche */
.a-toasts { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.a-toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.6); animation: a-toast 0.5s var(--ease-back) both; pointer-events: auto; }
.a-toast.-error { background: var(--bad); }
.a-toast.is-out { animation: a-toast-out 0.35s ease both; }
@keyframes a-toast { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes a-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* accesso */
.a-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.a-login ._art { position: relative; overflow: hidden; background: #1a1818; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.a-login ._art::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(circle at 30% 30%, #5f5074, transparent 55%), radial-gradient(circle at 75% 70%, #19a4d0, transparent 50%), radial-gradient(circle at 60% 20%, #a62648, transparent 45%); filter: blur(40px); opacity: 0.85; animation: a-drift 18s ease-in-out infinite alternate; }
@keyframes a-drift { to { transform: translate(-6%, 4%) rotate(8deg) scale(1.08); } }
.a-login ._art > * { position: relative; }
.a-login ._art ._mark { width: 44px; height: 44px; background: #fff; -webkit-mask: url('../img/mark.svg') center / contain no-repeat; mask: url('../img/mark.svg') center / contain no-repeat; }
.a-login ._art h1 { font-size: clamp(34px, 4vw, 58px); font-weight: 300; letter-spacing: 0.03em; line-height: 1.1; }
.a-login ._art p { margin-top: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.a-login ._form { display: grid; place-items: center; padding: 40px 24px; background: var(--panel); }
.a-login form { width: min(360px, 100%); display: grid; gap: 18px; }
.a-login form h2 { font-size: 26px; font-weight: 300; letter-spacing: 0.02em; }
.a-login ._err { min-height: 20px; color: var(--bad); font-size: 13px; }
.a-login ._back { font-size: 12px; color: var(--ink-3); text-align: center; }
@media (max-width: 860px) { .a-login { grid-template-columns: 1fr; } .a-login ._art { min-height: 220px; } }

.a-demo { position: fixed; z-index: 300; left: 50%; top: 0; transform: translateX(-50%); padding: 6px 16px; border-radius: 0 0 12px 12px; background: var(--series-2); color: #fff; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
.a-loading { display: grid; place-items: center; min-height: 40vh; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }

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

/* editor dello sfondo (tinta o sfumatura) */
.a-bgedit { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; }
.a-bgedit ._swatch { position: relative; aspect-ratio: 40.56 / 56.67; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); display: grid; place-items: center; transition: background 0.3s; }
.a-bgedit ._swatch span { font-size: 34px; font-weight: 300; letter-spacing: 0.04em; transition: color 0.3s; }
@media (max-width: 720px) { .a-bgedit { grid-template-columns: minmax(0, 1fr); } .a-bgedit ._swatch { aspect-ratio: 3 / 1; } }
.a-stops { display: grid; gap: 8px; }
.a-stop { display: grid; grid-template-columns: 42px 110px minmax(80px, 1fr) 44px 32px; gap: 10px; align-items: center; animation: a-in 0.35s var(--ease-out) both; }
.a-stop input[type='color'] { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
.a-stop input[type='color']::-webkit-color-swatch-wrapper { padding: 4px; }
.a-stop input[type='color']::-webkit-color-swatch { border: 0; border-radius: 6px; }
.a-stop ._pos { font-size: 12px; color: var(--ink-2); text-align: right; }
.a-stop .a-iconbtn[disabled] { opacity: 0.25; pointer-events: none; }
.a-stopactions { display: flex; gap: 8px; flex-wrap: wrap; }
.a-range { width: 100%; accent-color: var(--ink); }
@media (max-width: 520px) { .a-stop { grid-template-columns: 42px minmax(0, 1fr) 32px; } .a-stop .a-range { grid-column: 1 / -1; grid-row: 2; } .a-stop ._pos { display: none; } }

/* scelta immagine per la Top */
.a-heropick { display: flex; flex-wrap: wrap; gap: 10px; }
.a-heropick label { position: relative; display: grid; place-items: center; width: 92px; height: 70px; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, transform 0.3s var(--ease-back); }
.a-heropick label:hover { transform: translateY(-1px); }
.a-heropick input { position: absolute; opacity: 0; }
.a-heropick img { width: 100%; height: 100%; object-fit: cover; }
.a-heropick small { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); font-size: 10px; }
.a-heropick ._auto span { font-size: 12px; color: var(--ink-2); }
.a-heropick label:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }
.a-heropick label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
