/* Sonitech — demo "viva": componenti + 9 stili (Aurora, Industriale, Editoriale, Clinico, Neon, Pastello, Natura, Lusso, Corporate)
   + 3 disposizioni (menu laterale, barra in alto, barra di icone) + versione smartphone. */

/* ================================================================ variabili di stile */
.dm {
  --brand: #3ddc97;
  --d-bg: #0e1020; --d-panel: rgba(22,26,45,.72); --d-panel-2: rgba(32,37,60,.6); --d-ink: #eef0f7; --d-ink-2: #a3a9c3; --d-ink-3: #6f7593;
  --d-line: rgba(255,255,255,.09); --d-shadow: 0 14px 34px -20px rgba(0,0,0,.8); --r: 16px; --r-sm: 11px; --bw: 1px;
  --f-body: "Sora", system-ui, sans-serif; --f-head: "Sora", system-ui, sans-serif; --h-w: 600; --h-tf: none; --h-st: normal; --h-ls: -.025em;
  --side-bg: rgba(18,21,38,.7); --blur: blur(14px); --on-brand: #fff;
}
.dm-st-industriale {   /* grafite e giallo segnaletica, griglia tecnica */
  --d-bg: #15171b; --d-panel: #1e2126; --d-panel-2: #262a30; --d-ink: #eceef1; --d-ink-2: #a7adb7; --d-ink-3: #6f7681;
  --d-line: rgba(255,255,255,.09); --d-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 30px -20px rgba(0,0,0,.9); --r: 6px; --r-sm: 4px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Space Grotesk", system-ui, sans-serif; --h-w: 700; --h-tf: uppercase; --h-ls: .02em;
  --side-bg: #111317; --blur: none;
}
.dm-st-natura {   /* verdi e toni terra, forme morbide */
  --d-bg: #f2eee3; --d-panel: #fbf9f3; --d-panel-2: #ebe5d5; --d-ink: #2e3a2b; --d-ink-2: #5d6a55; --d-ink-3: #8f9985;
  --d-line: rgba(60,80,50,.14); --d-shadow: 0 16px 34px -24px rgba(60,80,40,.35); --r: 22px; --r-sm: 14px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Fraunces", Georgia, serif; --h-w: 600; --h-ls: -.01em;
  --side-bg: rgba(235,229,213,.85); --blur: blur(8px);
}
.dm-st-lusso {   /* nero e oro, caratteri eleganti */
  --d-bg: #0c0b09; --d-panel: #15130f; --d-panel-2: #1d1a14; --d-ink: #f3ebd9; --d-ink-2: #c2b59b; --d-ink-3: #877a66;
  --d-line: rgba(201,169,110,.2); --d-shadow: 0 20px 40px -28px rgba(0,0,0,.9); --r: 2px; --r-sm: 2px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Fraunces", Georgia, serif; --h-w: 500; --h-ls: .01em;
  --side-bg: #0f0e0b; --blur: none;
}
.dm-st-corporate {   /* blu notte e bianco, sobrio */
  --d-bg: #eef2f7; --d-panel: #ffffff; --d-panel-2: #f3f6fa; --d-ink: #0f1f3d; --d-ink-2: #44546f; --d-ink-3: #8190a8;
  --d-line: #dde4ee; --d-shadow: 0 8px 24px -16px rgba(15,31,61,.25); --r: 8px; --r-sm: 6px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Manrope", system-ui, sans-serif; --h-w: 800; --h-ls: -.02em;
  --side-bg: #0f1f3d; --blur: none;
}
.dm-st-editoriale {
  --d-bg: #f4eee3; --d-panel: #fbf8f2; --d-panel-2: #f1ebdf; --d-ink: #2a2420; --d-ink-2: #5e554c; --d-ink-3: #93887b;
  --d-line: rgba(60,45,30,.16); --d-shadow: none; --r: 6px; --r-sm: 4px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Fraunces", Georgia, serif; --h-w: 600; --h-ls: -.015em;
  --side-bg: #efe7d9; --blur: none;
}
.dm-st-clinico {
  --d-bg: #f5f8fc; --d-panel: #ffffff; --d-panel-2: #eff4fa; --d-ink: #13233a; --d-ink-2: #4c5d75; --d-ink-3: #8696ab;
  --d-line: #e1e8f1; --d-shadow: 0 10px 30px -18px rgba(25,50,90,.25); --r: 14px; --r-sm: 10px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Manrope", system-ui, sans-serif; --h-w: 700; --h-ls: -.02em;
  --side-bg: #ffffff; --blur: none;
}
.dm-st-neon {
  --d-bg: #06060c; --d-panel: rgba(16,16,28,.85); --d-panel-2: rgba(26,26,44,.8); --d-ink: #f3f3ff; --d-ink-2: #a9a9c9; --d-ink-3: #6c6c8e;
  --d-line: rgba(255,255,255,.08); --d-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 18px 40px -24px var(--brand); --r: 4px; --r-sm: 3px; --bw: 1px;
  --f-body: "Manrope", system-ui, sans-serif; --f-head: "Barlow Condensed", "Arial Narrow", sans-serif; --h-w: 700; --h-tf: uppercase; --h-st: italic; --h-ls: .01em;
  --side-bg: rgba(10,10,20,.9); --blur: blur(8px);
}
.dm-st-pastello {
  --d-bg: #fbf5f0; --d-panel: #ffffff; --d-panel-2: #f7efe8; --d-ink: #3d3433; --d-ink-2: #75655f; --d-ink-3: #a8988f;
  --d-line: #efe4dc; --d-shadow: 0 16px 36px -22px rgba(140,90,70,.32); --r: 24px; --r-sm: 16px; --bw: 1px;
  --f-body: "Nunito", system-ui, sans-serif; --f-head: "Nunito", system-ui, sans-serif; --h-w: 800; --h-ls: -.015em;
  --side-bg: rgba(255,255,255,.75); --blur: blur(10px);
}

/* ================================================================ struttura */
.dm {
  container-type: inline-size; isolation: isolate;
  position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100%; min-height: 0;
  background: var(--d-bg); color: var(--d-ink); font-family: var(--f-body); font-size: 14px; line-height: 1.45;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--d-line);
}
.dm svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.dm input { font: inherit; color: var(--d-ink); }
.dm-title, .dm-hello h4, .dm-hero-t h4, .dm-block-h b, .dm-col-h b, .dm-panel > b, .dm-big, .dm-pbody b, .dm-kpi b { font-family: var(--f-head); font-weight: var(--h-w); letter-spacing: var(--h-ls); font-style: var(--h-st); }
.dm-title, .dm-hello h4, .dm-hero-t h4 { text-transform: var(--h-tf); }

/* sfondo animato (diverso per stile) */
.dm-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dm-bg i { position: absolute; display: block; }
.dm-side, .dm-main { position: relative; z-index: 1; }

.dm-side { display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; background: var(--side-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-right: var(--bw) solid var(--d-line); min-width: 0; }
.dm-brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 22px; min-width: 0; }
.dm-brand b { font-family: var(--f-head); font-weight: var(--h-w); font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dm-logo { flex: none; width: 44px; height: 44px; border-radius: min(12px, var(--r)); display: grid; place-items: center; background: #fff; overflow: hidden; box-shadow: 0 0 0 var(--bw) var(--d-line); }
.dm-logo.sm { width: 26px; height: 26px; border-radius: 7px; }
.dm-logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
/* logo vero del cliente: il riquadro si allarga in orizzontale, così i loghi larghi non diventano minuscoli */
.dm-logo:has(img) { width: auto !important; min-width: 44px; padding: 5px 9px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }   /* vince sulle larghezze fisse dei vari layout */
/* flex con altezza fissa: l'altezza 100% dell'immagine si calcola davvero, anche per i loghi quadrati o alti */
.dm-logo:has(img) img { height: 100%; max-height: 100%; min-height: 0; width: auto; max-width: 122px; object-fit: contain; }
.dm-logo.sm:has(img) { min-width: 26px; padding: 2px 5px; } .dm-logo.sm:has(img) img { max-width: 66px; }
/* logo molto largo (contiene già il nome): più grande, e il nome scritto accanto non si ripete */
.wide-logo .dm-logo:has(img) img { max-width: 190px; }
.wide-logo > b { display: none; }
.dm-mono { font-weight: 700; font-size: 15px; color: var(--on-brand); background: var(--brand); width: 100%; height: 100%; display: grid; place-items: center; }
.dm-nav { display: flex; flex-direction: column; gap: 4px; }
.dm-tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); color: var(--d-ink-2); text-align: left; transition: background .25s, color .25s; white-space: nowrap; }
.dm-tab span { overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.dm-tab svg { width: 19px; height: 19px; flex: none; }
.dm-tab:hover { color: var(--d-ink); background: var(--d-panel-2); }
.dm-tab.on { color: var(--d-ink); background: color-mix(in srgb, var(--brand) 16%, transparent); box-shadow: inset 3px 0 0 var(--brand); }
.dm-tab.ping::after { content: ""; position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: dm-ping 1.2s ease-out 3; }
@keyframes dm-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.dm-tab-ai { margin-top: 10px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent) !important; }
.dm-made { margin-top: auto; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink-3); padding: 0 8px; }

.dm-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.dm-top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: var(--bw) solid var(--d-line); }
.dm-top-brand { display: none; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.dm-top-brand b { font-family: var(--f-head); font-weight: var(--h-w); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-top-brand .dm-logo { width: 34px; height: 34px; }
.dm-ask { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--r-sm); background: var(--d-panel); border: var(--bw) solid var(--d-line); transition: border-color .25s, box-shadow .25s; }
.dm-ask:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.dm-ask > svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.dm-ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; }
.dm-ask input::placeholder { color: var(--d-ink-3); }
.dm-icon { position: relative; height: 42px; min-width: 42px; padding: 0 11px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--d-ink-2); border: var(--bw) solid var(--d-line) !important; background: var(--d-panel) !important; flex: none; font-size: 12.5px; font-weight: 600; }
.dm-icon svg { width: 19px; height: 19px; }
.dm-swap { color: var(--d-ink); border-color: color-mix(in srgb, var(--brand) 55%, var(--d-line)) !important; }
.dm-swap svg { color: var(--brand); }
.dm-badge-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #e5534b; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.dm-user { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--brand); color: var(--on-brand); flex: none; }

.dm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.dm-content { min-width: 0; min-height: 0; overflow-y: auto; padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
.dm-title { font-size: 26px; line-height: 1.12; }
.dm-sub { color: var(--d-ink-3); font-size: 13px; margin-top: 4px; }
.dm-view { display: flex; flex-direction: column; gap: 16px; }
.dm-view.dm-in > * { animation: dm-in .5s cubic-bezier(.16,1,.3,1) both; }
.dm-view.dm-in > *:nth-child(2) { animation-delay: .06s; } .dm-view.dm-in > *:nth-child(3) { animation-delay: .12s; }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px); } }
.dm-muted { color: var(--d-ink-3); font-size: 13px; }
.dm-lead { color: var(--d-ink-2); font-size: 14.5px; max-width: 70ch; }
.dm-lead b { color: var(--d-ink); }

/* ================================================================ elementi comuni */
.dm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-sm); border: var(--bw) solid var(--d-line) !important; background: var(--d-panel) !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: transform .2s; }
.dm-btn svg { width: 16px; height: 16px; }
.dm-btn:hover { transform: translateY(-1px); }
.dm-btn.primary { background: var(--brand) !important; color: var(--on-brand); border-color: transparent !important; }
.dm-st-industriale .dm-btn.primary { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 14px -8px var(--brand); }
.dm-btn.small { padding: 7px 12px; font-size: 12.5px; }
.dm-search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); background: var(--d-panel); border: var(--bw) solid var(--d-line); min-width: 220px; flex: 1; max-width: 380px; }
.dm-search svg { width: 16px; height: 16px; color: var(--d-ink-3); }
.dm-search input { flex: 1; background: none; border: 0; outline: none; font-size: 13.5px; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chip { padding: 8px 14px; border-radius: 99px; border: var(--bw) solid var(--d-line) !important; background: var(--d-panel) !important; font-size: 13px; color: var(--d-ink-2); text-align: left; transition: .2s; }
.dm-st-industriale .dm-chip, .dm-st-neon .dm-chip, .dm-st-lusso .dm-chip { border-radius: var(--r-sm); }
.dm-chip:hover { color: var(--d-ink); border-color: color-mix(in srgb, var(--brand) 50%, transparent) !important; }
.dm-chip.on { background: var(--brand) !important; color: var(--on-brand); border-color: transparent !important; }
.dm-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; color: var(--d-ink-2); background: var(--d-panel); border: var(--bw) solid var(--d-line); }
.dm-tag b { color: var(--d-ink); }
.dm-tag svg { width: 14px; height: 14px; color: var(--brand); }
.dm-panel, .dm-block, .dm-kpi, .dm-table-wrap, .dm-chart, .dm-card, .dm-pcard, .dm-person, .dm-eco-btn { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.dm-panel { background: var(--d-panel); border: var(--bw) solid var(--d-line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--d-shadow); min-width: 0; }
.dm-panel > b { font-size: 15px; }
.dm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dm-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.dm-empty { color: var(--d-ink-3); font-size: 13px; padding: 10px 6px; }
.dm-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--brand); color: var(--on-brand); flex: none; }
.dm-av.big { width: 42px; height: 42px; font-size: 14px; }
.dm-badge { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dm-badge.ok { background: rgba(47,191,113,.15); color: #20a35b; } .dm-badge.warn { background: rgba(232,163,61,.18); color: #c27e10; } .dm-badge.bad { background: rgba(229,83,75,.15); color: #d9423a; } .dm-badge.info { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }

/* kpi */
.dm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dm-kpi { padding: 16px 18px; border-radius: var(--r); background: var(--d-panel); border: var(--bw) solid var(--d-line); box-shadow: var(--d-shadow); position: relative; overflow: hidden; }
.dm-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.dm-kpi span { display: block; color: var(--d-ink-2); font-size: 12.5px; }
.dm-kpi b { display: block; font-size: 28px; margin-top: 6px; line-height: 1.1; }
.dm-kpi em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; }
.dm-kpi em.up { color: #20a35b; } .dm-kpi em.down { color: #d9423a; }
.dm-spark { width: 100%; height: 26px; margin-top: 8px; display: block; }
.dm-spark polyline { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* bacheca */
.dm-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.dm-col { background: color-mix(in srgb, var(--d-panel-2) 80%, transparent); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; border: var(--bw) solid color-mix(in srgb, var(--d-line) 60%, transparent); }
.dm-col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; font-size: 14px; }
.dm-col-h span { background: var(--d-panel); border-radius: 99px; padding: 3px 10px; color: var(--d-ink-2); font-size: 12px; font-family: var(--f-body); font-style: normal; }
.dm-card { background: var(--d-panel); border-radius: var(--r-sm); padding: 14px; border: var(--bw) solid var(--d-line); box-shadow: var(--d-shadow); }
.dm-card.fresh, .dm-person.fresh, .dm-review.fresh, .dm-ev-b.fresh { animation: dm-fresh 1.8s ease-out; border-color: var(--brand); }
@keyframes dm-fresh { 0% { transform: scale(.94); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 40% { transform: none; } 100% { box-shadow: 0 0 0 14px transparent; } }
.dm-card p { margin: 8px 0 12px; font-size: 14px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.dm-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--d-ink-3); }
.dm-card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--d-ink-2); min-width: 0; }
.dm-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-val { font-family: var(--f-head); font-size: 14px; color: var(--d-ink); }
.dm-id { font-family: "JetBrains Mono", monospace; }
.dm-adv { margin-top: 12px; width: 100%; padding: 8px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--brand) !important; background: color-mix(in srgb, var(--brand) 11%, transparent) !important; transition: background .2s; }
.dm-adv:hover { background: color-mix(in srgb, var(--brand) 22%, transparent) !important; }

/* agenda */
.dm-cal { display: grid; grid-template-columns: 54px 1fr; background: var(--d-panel); border: var(--bw) solid var(--d-line); border-radius: var(--r); box-shadow: var(--d-shadow); overflow: auto; max-height: 560px; }
.dm-cal-hours { padding-top: 38px; }
.dm-cal-hours span { display: block; height: var(--rh); font-size: 11px; color: var(--d-ink-3); text-align: right; padding-right: 8px; transform: translateY(-7px); font-family: "JetBrains Mono", monospace; }
.dm-cal-grid { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(130px, 1fr)); }
.dm-cal-col { border-left: 1px solid var(--d-line); min-width: 0; }
.dm-cal-h { position: sticky; top: 0; z-index: 2; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--d-panel); border-bottom: 1px solid var(--d-line); padding: 0 6px; text-align: center; }
.dm-cal-body { position: relative; height: calc(var(--rows) * var(--rh)); background-image: linear-gradient(var(--d-line) 1px, transparent 1px); background-size: 100% var(--rh); }
.dm-ev-b { position: absolute; left: 4px; right: 4px; border-radius: var(--r-sm); padding: 6px 8px; overflow: hidden; background: color-mix(in srgb, var(--brand) 18%, var(--d-panel)); border-left: 3px solid var(--brand); border: var(--bw) solid color-mix(in srgb, var(--brand) 35%, transparent); border-left-width: 3px; }
.dm-ev-b b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ev-b small { display: block; font-size: 11px; color: var(--d-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-now { position: absolute; left: 0; right: 0; height: 2px; background: #e5534b; z-index: 3; }
.dm-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e5534b; }

/* catalogo */
.dm-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.dm-pcard { background: var(--d-panel); border: var(--bw) solid var(--d-line); border-radius: var(--r); overflow: hidden; box-shadow: var(--d-shadow); transition: opacity .3s, transform .3s; }
.dm-pcard:hover { transform: translateY(-3px); }
.dm-pcard.off { opacity: .55; }
.dm-pimg { position: relative; height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, var(--d-panel-2)), color-mix(in srgb, var(--brand) 8%, var(--d-panel-2))); }
.dm-pimg span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: color-mix(in srgb, var(--d-panel) 70%, transparent); color: var(--brand); box-shadow: 0 10px 22px -12px rgba(0,0,0,.35); }
.dm-pimg span svg { width: 38px; height: 38px; stroke-width: 1.5; }
.dm-pimg.ph { background: #fff; }
.dm-price.q { font-size: 12.5px; white-space: nowrap; }   /* «Su preventivo» */   /* foto del prodotto presa dal sito del cliente */
.dm-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-pimg em { z-index: 1; }
.dm-pimg em { position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--brand); color: var(--on-brand); }
.dm-pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.dm-pbody b { font-size: 15px; line-height: 1.25; }
.dm-pbody small { color: var(--d-ink-3); font-size: 12px; }
.dm-prow2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dm-price { font-family: var(--f-head); font-weight: var(--h-w); font-size: 17px; color: var(--brand); }
.dm-pill { padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; text-transform: capitalize; }
.dm-pill.disponibile { background: rgba(47,191,113,.15); color: #20a35b; } .dm-pill.esaurito, .dm-pill.venduto { background: rgba(229,83,75,.15); color: #d9423a; } .dm-pill.in.trattativa, .dm-pill[class*="trattativa"] { background: rgba(232,163,61,.18); color: #c27e10; }

/* tabelle (magazzino, scadenze, turni) */
.dm-table-wrap { background: var(--d-panel); border-radius: var(--r); border: var(--bw) solid var(--d-line); overflow: auto; box-shadow: var(--d-shadow); }
.dm-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.dm-table th, .dm-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--d-line); font-size: 13.5px; vertical-align: middle; }
.dm-table th { color: var(--d-ink-3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.dm-table tr:last-child td { border-bottom: 0; }
.dm-table tr.hl td { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.dm-table small { display: block; color: var(--d-ink-3); font-size: 12px; margin-top: 2px; }
.dm-level { width: 120px; height: 8px; border-radius: 8px; background: var(--d-panel-2); overflow: hidden; }
.dm-level i { display: block; height: 100%; background: #20a35b; border-radius: 8px; }
.dm-level.low i { background: #e8a33d; }
.dm-shifts td, .dm-shifts th { padding: 9px 8px; text-align: center; }
.dm-shifts td:first-child, .dm-shifts th:first-child { text-align: left; padding-left: 16px; }
.dm-shift { width: 100%; min-width: 74px; padding: 6px 4px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 700; }
.s-mattina { background: rgba(232,163,61,.18) !important; color: #b9770c; } .s-pomeriggio { background: color-mix(in srgb, var(--brand) 18%, transparent) !important; color: var(--brand); }
.s-sera { background: rgba(47,124,246,.16) !important; color: #2f6fd6; } .s-riposo { background: var(--d-panel-2) !important; color: var(--d-ink-3); }

/* clienti */
.dm-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
/* scheda cliente su due righe: in alto chi è (a tutta larghezza, il testo non va a capo parola per parola), sotto numero e azione */
.dm-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 12px; padding: 14px; border-radius: var(--r); background: var(--d-panel); border: var(--bw) solid var(--d-line); box-shadow: var(--d-shadow); }
.dm-person > .dm-av { grid-column: 1; grid-row: 1; }
.dm-person > div { grid-column: 2 / 4; grid-row: 1; min-width: 0; }
.dm-person b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-person small { color: var(--d-ink-3); font-size: 12px; line-height: 1.45; }
.dm-person::before { content: ""; grid-column: 1 / 4; grid-row: 2; align-self: start; margin-top: -6px; border-top: var(--bw) solid var(--d-line); }   /* linea tra le due righe */
.dm-person > .dm-metric { grid-column: 1 / 3; grid-row: 2; display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-top: 6px; text-align: left; }
.dm-person > .dm-btn, .dm-person > .dm-badge { grid-column: 3; grid-row: 2; justify-self: end; margin-top: 6px; white-space: nowrap; }
.dm-person > .dm-metric:last-child { grid-column: 1 / 4; }   /* senza azione: la riga del numero va a tutta larghezza */
.dm-metric { text-align: right; } .dm-metric b { font-family: var(--f-head); font-size: 17px; } .dm-metric small { display: block; }
.dm-person > .dm-metric small { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* recensioni */
.dm-rating { align-items: flex-start; }
.dm-big { font-size: 54px; line-height: 1; }
.dm-stars { color: #f0b429; letter-spacing: 2px; font-size: 14px; }
.dm-rbar { display: grid; grid-template-columns: 30px 1fr 38px; gap: 8px; align-items: center; width: 100%; font-size: 12px; color: var(--d-ink-2); }
.dm-rbar div { height: 7px; border-radius: 7px; background: var(--d-panel-2); overflow: hidden; } .dm-rbar i { display: block; height: 100%; background: #f0b429; }
.dm-review { padding: 12px 0; border-top: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 6px; }
.dm-review > div { display: flex; justify-content: space-between; gap: 8px; }
.dm-review p { font-size: 13.5px; color: var(--d-ink-2); }
.dm-review .dm-btn { align-self: flex-start; }
.dm-reply svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--brand); }
.dm-reply { font-size: 13px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--brand) 10%, transparent); border-left: 3px solid var(--brand); }

/* dashboard */
.dm-chart { background: var(--d-panel); border-radius: var(--r); border: var(--bw) solid var(--d-line); padding: 18px 20px 12px; box-shadow: var(--d-shadow); }
.dm-chart-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.dm-chart-h span { color: var(--d-ink-3); font-size: 12.5px; }
.dm-chart svg { width: 100%; height: 230px; display: block; }
.dm-chart text { fill: var(--d-ink-3); stroke: none; font-size: 11px; font-family: var(--f-body); }
.dm-gridl { stroke: var(--d-line); stroke-width: 1; }
.dm-bar { fill: var(--brand); stroke: none; transform-box: fill-box; transform-origin: bottom; animation: dm-grow .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes dm-grow { from { transform: scaleY(0); } }

/* app */
.dm-appwrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: center; }
.dm-phone-mock { width: 260px; height: 520px; margin: 0 auto; border-radius: 40px; padding: 14px; background: #0b0b12; box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 30px 60px -20px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 12px; color: #f2f3f8; }
.dm-pm-top { display: flex; align-items: center; gap: 8px; padding: 8px 8px 4px; font-size: 13px; }
.dm-pm-screen { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.dm-pm-card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 13px; transition: .3s; }
.dm-pm-card.on { background: var(--brand); color: #fff; transform: scale(1.03); }
.dm-pm-card span { display: grid; color: var(--brand); } .dm-pm-card span svg { width: 22px; height: 22px; }
.dm-pm-nav { display: flex; justify-content: space-around; padding: 8px; } .dm-pm-nav i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.dm-feat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); text-align: left; font-size: 14px; color: var(--d-ink-2); }
.dm-feat.on { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--d-ink); }

/* home */
.dm-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dm-hello h4 { font-size: 21px; }
/* aggiornamento mirato: il valore che cambia si illumina un momento nel colore del marchio */
.dm-upd { animation: dm-upd 1.3s cubic-bezier(.2,.8,.2,1); }
@keyframes dm-upd { 0%, 25% { color: var(--brand); text-shadow: 0 0 14px color-mix(in srgb, var(--brand) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { .dm-upd { animation: none; } }
.dm-slogan { margin: 4px 0 0; font-size: 14px; font-style: italic; color: color-mix(in srgb, var(--brand) 70%, var(--d-ink)); }
.dm-desc { margin: 4px 0 8px; max-width: 62ch; font-size: 13px; line-height: 1.5; color: var(--d-ink-2); }   /* cosa fa l'azienda, dal suo sito */
.dm-block { background: var(--d-panel); border: var(--bw) solid var(--d-line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--d-shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dm-block > .dm-kpis .dm-kpi { box-shadow: none; background: var(--d-panel-2); }
.dm-block-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.dm-block-h b { font-size: 16px; }
.dm-block-h span { color: var(--d-ink-3); font-size: 12.5px; }
.dm-todos, .dm-reqs { display: flex; flex-direction: column; gap: 6px; }
.dm-todo, .dm-req { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); background: var(--d-panel-2); font-size: 14px; }
.dm-todo { cursor: pointer; transition: opacity .3s; }
.dm-todo input { position: absolute; opacity: 0; pointer-events: none; }
.dm-check { flex: none; width: 20px; height: 20px; border-radius: min(7px, var(--r-sm)); border: 2px solid color-mix(in srgb, var(--brand) 60%, var(--d-line)); position: relative; }
.dm-todo.done { opacity: .55; } .dm-todo.done > span:last-child { text-decoration: line-through; }
.dm-todo.done .dm-check { background: var(--brand); border-color: var(--brand); }
.dm-todo.done .dm-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg); }
.dm-req > div { flex: 1; min-width: 0; } .dm-req b { display: block; font-size: 14px; font-weight: 600; } .dm-req small { color: var(--d-ink-3); font-size: 12px; }
.dm-progress { display: flex; flex-direction: column; gap: 10px; }
.dm-prow { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 44px; gap: 12px; align-items: center; font-size: 13.5px; }
.dm-prow b { text-align: right; }
.dm-pbar { height: 9px; border-radius: 9px; background: var(--d-panel-2); overflow: hidden; }
.dm-pbar i { display: block; height: 100%; border-radius: 9px; background: var(--brand); animation: dm-grow-x .9s cubic-bezier(.16,1,.3,1) both; transform-origin: left; }
@keyframes dm-grow-x { from { transform: scaleX(0); } }
.dm-portal { border-style: dashed; border-color: color-mix(in srgb, var(--brand) 45%, var(--d-line)); }

/* ecosistema */
.dm-eco { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 18px; align-items: center; }
.dm-eco-map { width: 100%; height: auto; max-height: 420px; overflow: visible; }
.dm-eco-line { fill: none; stroke: var(--d-ink-3); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 4 7; animation: dm-dash 1.6s linear infinite; }
@keyframes dm-dash { to { stroke-dashoffset: -22; } }
.dm-eco-node circle { fill: var(--d-panel); stroke: var(--d-line); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.dm-eco-node.fire circle { stroke: var(--brand); fill: color-mix(in srgb, var(--brand) 20%, var(--d-panel)); }
.dm-eco-ico path { fill: none; stroke: var(--d-ink); stroke-width: 1.7; }
.dm-eco-lbl { font-size: 13px; stroke: none; fill: var(--d-ink-2); font-family: var(--f-body); }
.dm-eco-hub circle { fill: color-mix(in srgb, var(--brand) 18%, var(--d-panel)); stroke: var(--brand); stroke-width: 2; }
.dm-eco-hub.fire circle { animation: dm-hub .9s ease-out; }
@keyframes dm-hub { 30% { stroke-width: 10; stroke-opacity: .5; } }
.dm-eco-ring { fill: none; stroke: var(--d-ink); stroke-width: 7; } .dm-eco-bar { fill: #00a8dd; stroke: none; }
.dm-eco-pulse { fill: var(--brand); stroke: none; filter: drop-shadow(0 0 6px var(--brand)); }
.dm-eco-side { display: flex; flex-direction: column; gap: 10px; } .dm-eco-side > b { font-size: 14px; }
.dm-eco-btn { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: var(--r); background: var(--d-panel) !important; border: var(--bw) solid var(--d-line) !important; box-shadow: var(--d-shadow); transition: border-color .2s, transform .2s; }
.dm-eco-btn:hover { border-color: var(--brand) !important; transform: translateX(3px); }
.dm-eco-btn > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); } .dm-eco-btn > span svg { width: 19px; height: 19px; } .dm-eco-btn b { display: block; font-size: 13.5px; } .dm-eco-btn small { display: block; color: var(--d-ink-3); font-size: 12px; margin-top: 2px; line-height: 1.35; }

/* registro attività */
.dm-feed { display: none; min-height: 0; flex-direction: column; background: var(--side-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-left: var(--bw) solid var(--d-line); }
.dm-feed-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--d-line); font-size: 13.5px; }
.dm-feed-h b { display: flex; align-items: center; gap: 8px; } .dm-feed-h b svg { width: 17px; height: 17px; color: var(--brand); }
.dm-x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--d-ink-3); } .dm-x svg { width: 16px; height: 16px; }
.dm-feed-list { flex: 1; overflow-y: auto; padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.dm-ev { position: relative; display: flex; gap: 10px; padding: 10px 8px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.4; }
/* notifica non ancora letta: pallino rosso, come il numerino sulla campanella */
.dm-ev.unread { cursor: pointer; padding-right: 22px; }
.dm-ev.unread::after { content: ""; position: absolute; right: 8px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #e5534b; }
.dm-feed-ctl { display: flex; align-items: center; gap: 8px; }
.dm-feed-read { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; white-space: nowrap; }
.dm-feed-read:hover { text-decoration: underline; text-underline-offset: 3px; }
.dm-feed-read[hidden] { display: none; }
.dm-ev.fresh { animation: dm-evin .7s cubic-bezier(.16,1,.3,1); background: color-mix(in srgb, var(--brand) 8%, transparent); }
@keyframes dm-evin { from { opacity: 0; transform: translateX(16px); } }
.dm-ev-i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); } .dm-ev-i svg { width: 16px; height: 16px; }
.dm-toast > span { flex: none; display: grid; color: var(--brand); padding-top: 1px; } .dm-toast > span svg { width: 18px; height: 18px; } .dm-ev small { color: var(--d-ink-3); font-size: 11.5px; }
.dm-ev-act { display: flex; gap: 6px; margin-top: 8px; } .dm-ev-done { display: block; margin-top: 6px; color: #20a35b !important; font-weight: 600; }
/* a scomparsa (dalla campanella): vale per tutte le varianti quando il pannello non è fisso */
.dm-body.feed-on .dm-feed { display: flex; position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 90%); z-index: 4; background: var(--d-bg); box-shadow: -20px 0 40px -20px rgba(0,0,0,.6); animation: dm-evin .4s ease; }
/* fisso a destra */
@container (min-width: 1180px) {
  .dm-f-right .dm-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .dm-f-right .dm-body .dm-feed { display: flex; position: static; width: auto; box-shadow: none; animation: none; background: var(--side-bg); }
  .dm-f-right .dm-feed .dm-x { display: none; }
  /* fisso a sinistra (con il menu in alto) */
  .dm-f-left .dm-body { grid-template-columns: 290px minmax(0, 1fr); }
  .dm-f-left .dm-body .dm-feed { display: flex; position: static; width: auto; box-shadow: none; animation: none; background: var(--side-bg); order: -1; border-left: 0; border-right: var(--bw) solid var(--d-line); }
  .dm-f-left .dm-feed .dm-x { display: none; }
  .dm-f-left .dm-toasts { left: auto; right: 22px; }
}
/* banner in basso, scorre in orizzontale */
@container (min-width: 700px) {
  .dm-f-bottom .dm-body { grid-template-rows: minmax(0, 1fr) auto; }
  .dm-f-bottom .dm-body .dm-feed { display: flex; flex-direction: row; position: static; width: auto; height: 124px; box-shadow: none; animation: none; background: var(--side-bg); border-left: 0; border-top: var(--bw) solid var(--d-line); }
  .dm-f-bottom .dm-feed-h { flex: none; width: 150px; flex-direction: column; align-items: flex-start; justify-content: center; border-bottom: 0; border-right: 1px solid var(--d-line); padding: 12px 16px; line-height: 1.3; }
  .dm-f-bottom .dm-feed-h b { align-items: flex-start; }
  .dm-f-bottom .dm-feed .dm-x { display: none; }
  .dm-f-bottom .dm-feed-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; gap: 10px; align-items: stretch; }
  .dm-f-bottom .dm-ev { flex: none; width: 290px; padding: 9px 10px; background: var(--d-panel); border: var(--bw) solid var(--d-line); overflow: hidden; }
  .dm-f-bottom .dm-ev p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dm-f-bottom .dm-ev-act { margin-top: 4px; }
  .dm-f-bottom .dm-ev-act .dm-btn { padding-top: 3px; padding-bottom: 3px; }
  .dm-f-bottom .dm-ev.fresh { animation: dm-evup .7s cubic-bezier(.16,1,.3,1); background: color-mix(in srgb, var(--brand) 8%, var(--d-panel)); }
}
@keyframes dm-evup { from { opacity: 0; transform: translateY(14px); } }

/* disposizioni della Home */
.dm-focus { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dm-focus-a, .dm-focus-b { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dm-masonry { columns: 2 320px; column-gap: 16px; }
.dm-masonry > * { break-inside: avoid; margin-bottom: 16px; }
.dm-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.dm-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 24px 26px; border-radius: var(--r); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 26%, var(--d-panel)), color-mix(in srgb, var(--brand) 6%, var(--d-panel))); border: var(--bw) solid color-mix(in srgb, var(--brand) 35%, var(--d-line)); box-shadow: var(--d-shadow); }
.dm-hero-t h4 { font-size: 26px; margin: 0; }
.dm-hero-t p { margin: 4px 0 12px; color: var(--d-ink-2); }
.dm-hero-k { display: grid; grid-template-columns: repeat(2, minmax(120px, auto)); gap: 10px 26px; }
.dm-hero-k span { display: block; font-size: 12px; color: var(--d-ink-2); }
.dm-hero-k b { display: block; font-size: 26px; line-height: 1.15; font-family: var(--f-head); font-weight: var(--h-w); }
.dm-hero-k em { font-style: normal; font-size: 12px; font-weight: 600; } .dm-hero-k em.up { color: #20a35b; } .dm-hero-k em.down { color: #e5534b; }
@container (max-width: 900px) { .dm-focus, .dm-hero { grid-template-columns: minmax(0, 1fr); } }

/* assistente */
.dm-ai { position: absolute; top: 70px; right: 14px; bottom: 14px; width: min(430px, calc(100% - 28px)); z-index: 6; display: flex; flex-direction: column; border-radius: var(--r); background: var(--d-bg); border: var(--bw) solid color-mix(in srgb, var(--brand) 35%, var(--d-line)); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); animation: dm-in .35s cubic-bezier(.16,1,.3,1); }
.dm-ai[hidden] { display: none; }
.dm-ai-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--d-line); }
.dm-ai-h b { display: flex; align-items: center; gap: 8px; font-size: 14px; } .dm-ai-h b svg { width: 18px; height: 18px; color: var(--brand); }
.dm-ai-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.dm-msg { max-width: 92%; font-size: 13.5px; line-height: 1.5; }
.dm-msg.me { align-self: flex-end; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: var(--on-brand); }
.dm-msg.bot { align-self: flex-start; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--d-panel-2); }
.dm-steps { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--d-ink-2); }
.dm-steps li { display: flex; gap: 8px; align-items: center; animation: dm-in .3s ease both; }
.dm-steps li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); border-right-color: transparent; animation: dm-spin .7s linear infinite; flex: none; }
.dm-steps li.done i { animation: none; border: 0; background: var(--brand); position: relative; }
.dm-steps li.done i::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 4px; height: 7px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg); }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-ans { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; } .dm-ans[hidden] { display: none; } .dm-msg.bot .dm-ans:first-child { margin-top: 0; }
.dm-ans table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .dm-ans td { padding: 7px 6px; border-top: 1px solid var(--d-line); } .dm-ans td:first-child { font-weight: 600; }
.dm-ans .dm-btn { align-self: flex-start; }
.dm-ai-sugg { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--d-line); }
.dm-ai-sugg .dm-chip { border-radius: var(--r-sm); font-size: 12.5px; }

/* notifiche */
.dm-toasts { position: absolute; left: 22px; bottom: 18px; z-index: 7; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: min(420px, calc(100% - 44px)); }
.dm-toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--d-bg); color: var(--d-ink); border: var(--bw) solid color-mix(in srgb, var(--brand) 45%, var(--d-line)); box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); font-size: 13px; line-height: 1.4; animation: dm-toast .5s cubic-bezier(.16,1,.3,1); transition: opacity .4s, transform .4s; }
.dm-toast.out { opacity: 0; transform: translateY(10px); }
@keyframes dm-toast { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ================================================================ sfondi animati per stile */
.dm-st-aurora .dm-bg i { width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .55; animation: dm-float 22s ease-in-out infinite alternate; }
.dm-st-aurora .dm-bg i:nth-child(1) { background: var(--brand); left: -10%; top: -20%; }
.dm-st-aurora .dm-bg i:nth-child(2) { background: #1fb5c9; right: -15%; top: 20%; animation-duration: 28s; animation-delay: -6s; }
.dm-st-aurora .dm-bg i:nth-child(3) { background: #00a8dd; left: 30%; bottom: -35%; animation-duration: 34s; animation-delay: -12s; }
@keyframes dm-float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.15); } 100% { transform: translate(-6%, 10%) scale(.92); } }

.dm-st-industriale .dm-bg { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; animation: dm-grid 18s linear infinite; }
@keyframes dm-grid { to { background-position: 32px 32px; } }
.dm-st-industriale .dm-bg i:nth-child(1) { left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--brand) 0 14px, #15171b 14px 28px); opacity: .85; }
.dm-st-industriale .dm-bg i:nth-child(2) { width: 46%; aspect-ratio: 1; right: -12%; bottom: -20%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%); }
.dm-st-natura .dm-bg i { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; filter: blur(30px); opacity: .5; animation: dm-float 30s ease-in-out infinite alternate; }
.dm-st-natura .dm-bg i:nth-child(1) { width: 46%; aspect-ratio: 1; left: -10%; top: -14%; background: color-mix(in srgb, var(--brand) 40%, #cfe0c3); }
.dm-st-natura .dm-bg i:nth-child(2) { width: 38%; aspect-ratio: 1; right: -8%; top: 34%; background: #e6cfae; animation-delay: -10s; }
.dm-st-natura .dm-bg i:nth-child(3) { width: 30%; aspect-ratio: 1; left: 30%; bottom: -16%; background: #c9dcc0; animation-delay: -18s; }
.dm-st-lusso .dm-bg { background: radial-gradient(60% 50% at 80% 0%, rgba(201,169,110,.14), transparent 70%); }
.dm-st-lusso .dm-bg i:nth-child(1) { inset: 14px; border: 1px solid rgba(201,169,110,.18); }
.dm-st-lusso .dm-bg i:nth-child(2) { width: 160%; height: 1px; left: -30%; top: 38%; background: linear-gradient(90deg, transparent, rgba(201,169,110,.5), transparent); transform: rotate(-8deg); animation: dm-sweep 9s ease-in-out infinite; }
.dm-st-corporate .dm-bg i:nth-child(1) { width: 60%; height: 100%; right: -20%; top: 0; background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--brand) 7%, transparent) 40% 70%, transparent 70%); }
.dm-st-corporate .dm-bg i:nth-child(2) { width: 40%; height: 100%; right: -6%; top: 0; background: linear-gradient(115deg, transparent 50%, color-mix(in srgb, var(--brand) 5%, transparent) 50%); }

.dm-st-editoriale .dm-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dm-st-editoriale .dm-bg i:nth-child(1) { width: 70%; aspect-ratio: 1; border-radius: 50%; right: -25%; top: -30%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%); animation: dm-float 40s ease-in-out infinite alternate; }

.dm-st-clinico .dm-bg i { left: -10%; width: 220%; height: 160px; bottom: -40px; border-radius: 45%; opacity: .5; animation: dm-wave 18s linear infinite; }
.dm-st-clinico .dm-bg i:nth-child(1) { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.dm-st-clinico .dm-bg i:nth-child(2) { background: rgba(0,168,221,.08); bottom: -70px; animation-duration: 26s; animation-direction: reverse; }
.dm-st-clinico .dm-bg i:nth-child(3) { display: none; }
@keyframes dm-wave { to { transform: translateX(-45%) rotate(2deg); } }

.dm-st-neon .dm-bg { background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.025) 46px 48px); animation: dm-stripes 6s linear infinite; background-size: 200% 200%; }
@keyframes dm-stripes { to { background-position: 106px 0; } }
.dm-st-neon .dm-bg i:nth-child(1) { width: 140%; height: 2px; left: -20%; top: 30%; background: linear-gradient(90deg, transparent, var(--brand), transparent); box-shadow: 0 0 18px var(--brand); transform: rotate(-12deg); animation: dm-sweep 7s ease-in-out infinite; }
.dm-st-neon .dm-bg i:nth-child(2) { width: 50%; aspect-ratio: 1; right: -15%; bottom: -25%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%); }
@keyframes dm-sweep { 0%, 100% { transform: translateY(-120px) rotate(-12deg); opacity: 0; } 50% { transform: translateY(260px) rotate(-12deg); opacity: .9; } }

.dm-st-pastello .dm-bg i { width: 45%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: .55; animation: dm-float 26s ease-in-out infinite alternate; }
.dm-st-pastello .dm-bg i:nth-child(1) { background: #ffc8dd; left: -8%; top: -12%; }
.dm-st-pastello .dm-bg i:nth-child(2) { background: #b8e6d4; right: -10%; top: 30%; animation-delay: -8s; }
.dm-st-pastello .dm-bg i:nth-child(3) { background: color-mix(in srgb, var(--brand) 45%, #bde0fe); left: 25%; bottom: -25%; animation-delay: -14s; }

/* dettagli di stile */
.dm-st-industriale .dm-tab.on { box-shadow: inset 4px 0 0 var(--brand); background: rgba(255,255,255,.05); }
.dm-st-industriale .dm-kpi::before { width: 100%; height: 4px; bottom: auto; background: repeating-linear-gradient(-45deg, var(--brand) 0 8px, transparent 8px 16px) !important; }
.dm-st-industriale .dm-title { font-size: 28px; }
.dm-st-natura .dm-title { font-size: 31px; font-weight: 600; } .dm-st-natura .dm-tab.on { box-shadow: none; background: color-mix(in srgb, var(--brand) 18%, transparent); border-radius: 99px; }
.dm-st-natura .dm-kpi::before { display: none; }
.dm-st-lusso .dm-title { font-size: 32px; font-weight: 500; letter-spacing: .02em; }
.dm-st-lusso .dm-tab.on { box-shadow: inset 0 -1px 0 #c9a96e; background: transparent; color: #f3ebd9; }
.dm-st-lusso .dm-kpi::before { background: linear-gradient(180deg, #e6cf9b, #a8884f) !important; }
.dm-st-lusso .dm-kpi b { font-family: var(--f-head); font-weight: 500; }
.dm-st-lusso .dm-btn.primary { background: linear-gradient(120deg, #e6cf9b, #b8955a) !important; color: #1a1408 !important; border-color: transparent !important; }
.dm-st-corporate .dm-side { color: #c8d2e4; border-right-color: transparent; }
.dm-st-corporate .dm-side .dm-brand b, .dm-st-corporate .dm-tab:hover, .dm-st-corporate .dm-tab.on { color: #fff; }
.dm-st-corporate .dm-tab { color: #a9b6cc; } .dm-st-corporate .dm-tab:hover { background: rgba(255,255,255,.07); }
.dm-st-corporate .dm-tab.on { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--brand); }
.dm-st-corporate .dm-made { color: #6f7f9c; }
.dm-st-corporate .dm-feed, .dm-st-corporate .dm-body .dm-feed { background: var(--d-panel) !important; }
.dm-st-corporate.dm-l-top .dm-side, .dm-st-corporate.dm-phone .dm-side, .dm-st-corporate.dm-l-mega .dm-side, .dm-st-corporate.dm-l-dock .dm-side { background: #0f1f3d; }
/* nuovi menu nella barra scura dello stile corporate */
.dm-st-corporate .dm-sv, .dm-st-corporate .dm-grp-h, .dm-st-corporate .dm-d2-g, .dm-st-corporate .dm-mg-btn { color: #8fa0bd; }
.dm-st-corporate .dm-sv:hover, .dm-st-corporate .dm-sv.on, .dm-st-corporate .dm-grp-h:hover, .dm-st-corporate .dm-d2-g:hover, .dm-st-corporate .dm-mg-btn:hover, .dm-st-corporate .dm-mg-btn.open, .dm-st-corporate .dm-mg-btn.on { color: #fff; background: rgba(255,255,255,.1); }
.dm-st-corporate .dm-sv em { color: #8fa0bd; } .dm-st-corporate .dm-subs, .dm-st-corporate .dm-d2-rail, .dm-st-corporate.dm-l-doppio .dm-nav { border-color: rgba(255,255,255,.1); }
.dm-st-corporate .dm-side .dm-cnt { color: #fff; background: rgba(255,255,255,.14); }
.dm-st-corporate .dm-d2-g.on { color: #fff; background: color-mix(in srgb, var(--brand) 35%, transparent); }
.dm-st-corporate .dm-d2-t { color: #fff; }
.dm-st-corporate.dm-l-dock .dm-tab { background: rgba(255,255,255,.08); }
/* il pannello del mega menu è chiaro: colori normali, non quelli della barra scura */
.dm-mega { color: var(--d-ink); }
.dm-st-corporate .dm-mega .dm-sv { color: var(--d-ink-3); background: none; }
.dm-st-corporate .dm-mega .dm-sv:hover, .dm-st-corporate .dm-mega .dm-sv.on { color: var(--d-ink); background: var(--d-panel-2); }
.dm-st-corporate .dm-mega .dm-sv em { color: var(--d-ink-3); }
.dm-st-corporate .dm-mega .dm-cnt { color: var(--d-ink); background: color-mix(in srgb, var(--brand) 18%, transparent); }
.dm-st-editoriale .dm-title { font-size: 32px; font-weight: 500; }
.dm-st-editoriale .dm-kpi::before { display: none; } .dm-st-editoriale .dm-kpi b { font-size: 32px; font-weight: 500; }
.dm-st-editoriale .dm-tab.on { box-shadow: none; background: transparent; color: var(--d-ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.dm-st-neon .dm-title { font-size: 34px; text-shadow: 0 0 22px color-mix(in srgb, var(--brand) 55%, transparent); }
.dm-st-neon .dm-kpi b { color: var(--brand); text-shadow: 0 0 16px color-mix(in srgb, var(--brand) 50%, transparent); font-size: 32px; }
.dm-st-neon .dm-tab.on { box-shadow: inset 0 0 0 1px var(--brand), 0 0 18px -4px var(--brand); background: transparent; }
.dm-st-pastello .dm-kpi::before { display: none; } .dm-st-pastello .dm-tab.on { box-shadow: none; background: color-mix(in srgb, var(--brand) 20%, #fff); }
.dm-st-clinico .dm-tab.on { box-shadow: inset 0 -2px 0 var(--brand); background: transparent; }

/* ================================================================ disposizioni */
/* barra in alto */
.dm-l-top { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.dm-l-top .dm-side { flex-direction: row; align-items: center; gap: 14px; padding: 10px 18px; border-right: 0; border-bottom: var(--bw) solid var(--d-line); overflow-x: auto; scrollbar-width: none; }
.dm-l-top .dm-brand { padding: 0; flex: none; } .dm-l-top .dm-brand b { -webkit-line-clamp: 1; max-width: 180px; }
.dm-l-top .dm-logo { width: 36px; height: 36px; }
.dm-l-top .dm-nav { flex-direction: row; gap: 4px; } .dm-l-top .dm-tab { padding: 9px 12px; } .dm-l-top .dm-tab-ai { margin-top: 0; }
.dm-l-top .dm-made { display: none; }
/* barra di icone */
.dm-l-rail { grid-template-columns: 78px minmax(0, 1fr); }
.dm-l-rail .dm-side { align-items: center; padding: 16px 10px; }
.dm-l-rail .dm-logo:has(img) { padding: 3px 4px; } .dm-l-rail .dm-logo:has(img) img, .dm-l-rail .wide-logo .dm-logo:has(img) img { max-width: 46px; }
.dm-l-rail .dm-brand { padding: 0 0 16px; } .dm-l-rail .dm-brand b, .dm-l-rail .dm-made { display: none; }
.dm-l-rail .dm-tab { flex-direction: column; gap: 4px; padding: 10px 6px; width: 60px; font-size: 9.5px; text-align: center; justify-content: center; }
.dm-l-rail .dm-tab span { max-width: 56px; padding-right: 0; }
.dm-l-rail .dm-tab.ping::after { right: 8px; top: 7px; }
.dm-l-rail .dm-tab svg { width: 21px; height: 21px; }

/* ================================================================ versione smartphone (dal QR) */
.dm.dm-phone { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; border-radius: 0; border: 0; font-size: 14px; }
.dm-phone .dm-side { grid-row: 2; flex-direction: row; align-items: center; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-top: var(--bw) solid var(--d-line); width: auto; }
.dm-phone .dm-brand, .dm-phone .dm-made { display: none; }
.dm-phone .dm-nav { flex-direction: row; width: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 2px; scroll-snap-type: x proximity; }
.dm-phone .dm-tab { flex: 1 0 66px; flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 10px; min-width: 66px; width: 66px; box-shadow: none !important; text-align: center; text-decoration: none !important; scroll-snap-align: start; }
.dm-phone .dm-tab span { max-width: 62px; padding-right: 0; }
.dm-phone .dm-tab.ping::after { right: calc(50% - 18px); top: 3px; }
.dm-phone .dm-tab svg { width: 22px; height: 22px; }
.dm-phone .dm-tab.on { background: none; color: var(--brand); }
.dm-phone .dm-tab-ai { margin-top: 0; border: 0 !important; }
.dm-phone .dm-main { grid-row: 1; }
.dm-phone .dm-top { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
.dm-phone .dm-top-brand { display: flex; }
.dm-phone .dm-ask, .dm-phone .dm-user { display: none; }
.dm-phone .dm-swap span { display: none; }
.dm-phone .dm-content { padding: 16px 14px 24px; }
.dm-phone .dm-title { font-size: 22px; }
.dm-phone .dm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-phone .dm-kpi { padding: 12px 14px; } .dm-phone .dm-kpi b { font-size: 22px; }
.dm-phone .dm-kanban { grid-auto-columns: 86%; scroll-snap-type: x mandatory; } .dm-phone .dm-col { scroll-snap-align: start; }
.dm-phone .dm-eco, .dm-phone .dm-appwrap { grid-template-columns: 1fr; }
.dm-phone .dm-people { grid-template-columns: 1fr; }
.dm-phone .dm-ai { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 78%; border-radius: 20px 20px 0 0; }
.dm-phone .dm-toasts { left: 10px; right: 10px; bottom: 10px; max-width: none; }
.dm-phone .dm-prow { grid-template-columns: 1fr 1fr 34px; }
.dm-phone .dm-cal-grid { grid-template-columns: repeat(var(--cols), 140px); }

/* ================================================================ squadra sul campo */
.dm-field { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dm-fmap { position: relative; aspect-ratio: 5 / 3; border-radius: var(--r-sm); overflow: hidden; background: color-mix(in srgb, var(--brand) 5%, var(--d-panel-2)); border: var(--bw) solid var(--d-line); }
.dm-fmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-fst { fill: none; stroke: var(--d-line); stroke-width: 7; stroke-linecap: round; }
.dm-friver { fill: none; stroke: color-mix(in srgb, #2f8fe5 30%, transparent); stroke-width: 12; }
.dm-fpark { fill: color-mix(in srgb, #2fbf71 16%, transparent); stroke: none; }
.dm-fmark { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: #2fbf71; box-shadow: 0 0 0 3px var(--d-panel), 0 6px 14px -4px rgba(0,0,0,.45); transition: left 1.2s cubic-bezier(.16,1,.3,1), top 1.2s cubic-bezier(.16,1,.3,1), transform .2s; z-index: 2; }
.dm-fmark::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }
.dm-fmark.s-visita { background: #2fbf71; } .dm-fmark.s-viaggio { background: #2f8fe5; } .dm-fmark.s-libero { background: #e8a33d; } .dm-fmark.s-pausa { background: #8a8f9c; }
.dm-fmark.s-viaggio::after { color: #2f8fe5; animation: dm-fpulse 1.8s ease-out infinite; }
.dm-fmark.sel { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 3px var(--brand), 0 8px 18px -4px rgba(0,0,0,.5); z-index: 3; }
@keyframes dm-fpulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.dm-fpin { position: absolute; transform: translate(-50%, -100%); color: #e8a33d; z-index: 1; } .dm-fpin svg { width: 24px; height: 24px; fill: color-mix(in srgb, currentColor 25%, transparent); }
.dm-fpin.urg { color: #e5534b; }
.dm-flegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--d-ink-2); }
.dm-flegend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dm-flegend .s-visita { background: #2fbf71; } .dm-flegend .s-viaggio { background: #2f8fe5; } .dm-flegend .s-libero { background: #e8a33d; } .dm-flegend .dm-fq { background: none; border: 2px solid #e8a33d; border-radius: 3px; transform: rotate(45deg) scale(.8); }
.dm-flist { gap: 8px; }
.dm-fagent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px; border-radius: var(--r-sm); cursor: pointer; border: var(--bw) solid transparent; transition: background .2s, border-color .2s; }
.dm-fagent:hover { background: var(--d-panel-2); } .dm-fagent.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.dm-fagent.fresh { animation: dm-fresh 1.8s ease-out; }
.dm-fagent .dm-av { width: 34px; height: 34px; font-size: 11px; }
.dm-fagent b { display: block; font-size: 13.5px; } .dm-fagent small { display: block; color: var(--d-ink-3); font-size: 12px; line-height: 1.4; }
.dm-fprog { height: 4px; border-radius: 4px; background: var(--d-panel-2); margin: 7px 0 3px; overflow: hidden; } .dm-fprog i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .6s; }
.dm-fside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dm-fq-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--d-line); }
.dm-fq-row:first-of-type { border-top: 0; } .dm-fq-row.fresh { animation: dm-fresh 1.8s ease-out; }
.dm-fq-row b { display: block; font-size: 13.5px; } .dm-fq-row small { color: var(--d-ink-3); font-size: 12px; }
.dm-fqi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #e8a33d; background: rgba(232,163,61,.14); } .dm-fqi.urg { color: #e5534b; background: rgba(229,83,75,.14); } .dm-fqi svg { width: 17px; height: 17px; }

/* ================================================================ area clienti */
.dm-portal-frame { border-radius: var(--r); overflow: hidden; border: var(--bw) solid var(--d-line); background: var(--d-bg); box-shadow: var(--d-shadow); }
.dm-pf-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: var(--d-panel-2); border-bottom: 1px solid var(--d-line); }
.dm-pf-bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--d-line); }
.dm-pf-bar span { margin-left: 10px; flex: 1; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--d-panel); font-size: 12px; color: var(--d-ink-2); max-width: 360px; }
.dm-pf-bar span svg { width: 12px; height: 12px; color: #20a35b; }
.dm-pf-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--d-line); background: color-mix(in srgb, var(--brand) 9%, var(--d-panel)); }
.dm-pf-head b { font-size: 14px; } .dm-pf-user { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--d-ink-2); }
.dm-pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 18px; }
.dm-pc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--d-panel); border: var(--bw) solid var(--d-line); min-width: 0; }
.dm-pc > b { font-size: 14px; } .dm-pc small { color: var(--d-ink-3); font-size: 12px; } .dm-pc .dm-btn { align-self: flex-start; }
.dm-pc .dm-btn svg { width: 14px; height: 14px; }
.dm-psteps { display: flex; gap: 4px; } .dm-psteps span { flex: 1; font-size: 10.5px; color: var(--d-ink-3); padding-top: 8px; border-top: 4px solid var(--d-panel-2); line-height: 1.25; }
.dm-psteps span.on { border-top-color: var(--brand); color: var(--d-ink); font-weight: 600; }
.dm-pslots { display: flex; flex-wrap: wrap; gap: 6px; } .dm-pslots button { padding: 7px 11px !important; border-radius: 9px; border: var(--bw) solid var(--d-line) !important; font-size: 12.5px; }
.dm-pslots button:hover, .dm-pslots button.on { border-color: var(--brand) !important; background: color-mix(in srgb, var(--brand) 14%, transparent) !important; }
.dm-pok { display: flex; align-items: center; gap: 6px; color: #20a35b !important; font-weight: 600; } .dm-pok svg { width: 14px; height: 14px; }
.dm-pdoc { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--d-line); }
.dm-pdoc svg { width: 16px; height: 16px; color: var(--d-ink-3); } .dm-pdoc svg:last-child { color: var(--brand); } .dm-pdoc small { display: block; }
.dm-pdue { font-size: 24px; font-weight: 700; font-family: var(--f-head); }
.dm-pchat { grid-column: span 2; }
.dm-pmsg { align-self: flex-start; max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--d-panel-2); font-size: 13px; line-height: 1.4; }
.dm-pmsg.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--brand); color: var(--on-brand); }
.dm-pform { display: flex; gap: 8px; margin-top: 4px; } .dm-pform input { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px; border: var(--bw) solid var(--d-line); background: var(--d-panel-2); }
.dm-pform .dm-btn svg { width: 15px; height: 15px; }
.dm-perm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--d-line); font-size: 13.5px; cursor: pointer; }
.dm-perm input { position: absolute; opacity: 0; pointer-events: none; }
.dm-perm i { flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--d-panel-2); border: var(--bw) solid var(--d-line); position: relative; transition: background .2s; }
.dm-perm i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.dm-perm input:checked + i { background: var(--brand); } .dm-perm input:checked + i::after { transform: translateX(16px); }
.dm-portal .dm-btn { align-self: flex-start; } .dm-portal .dm-btn svg { width: 14px; height: 14px; }
@container (max-width: 900px) { .dm-field { grid-template-columns: minmax(0, 1fr); } .dm-pchat { grid-column: auto; } }

/* ================================================================ personalizzazioni dello Studio */
.dm-cf { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.dm-cf span { display: inline-flex; gap: 5px; align-items: baseline; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 10%, transparent); font-size: 11px; color: var(--d-ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-cf em { font-style: normal; color: var(--d-ink-3); }
.dm-role { padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--d-ink); white-space: nowrap; }
.dm-title-edit { cursor: text; border-radius: 6px; outline: 1px dashed transparent; outline-offset: 4px; transition: outline-color .2s; }
.dm-title-edit:hover { outline-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.dm-title-edit:focus { outline: 2px solid var(--brand); }

/* ================================================================ menu: contatori, sottovoci, aree */
.dm-cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 700; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--d-ink); flex: none; }
.dm-l-top .dm-cnt, .dm-l-rail .dm-cnt, .dm-l-dock .dm-cnt, .dm-l-mega .dm-nav .dm-cnt, .dm-phone .dm-cnt { display: none; }
.dm-subs { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--d-line); animation: dm-subin .35s cubic-bezier(.16,1,.3,1); }
@keyframes dm-subin { from { opacity: 0; transform: translateY(-4px); } }
.dm-sv { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); font-size: 12.5px; color: var(--d-ink-3); text-align: left; transition: background .2s, color .2s; }
.dm-sv:hover { color: var(--d-ink); background: var(--d-panel-2); }
.dm-sv.on { color: var(--d-ink); background: color-mix(in srgb, var(--brand) 13%, transparent); }
.dm-sv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-sv em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--d-ink-3); }
.dm-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--d-ink-3); margin-bottom: 6px; }
.dm-crumb:empty { display: none; }
.dm-crumb i { font-style: normal; opacity: .6; }
.dm-crumb button { color: var(--d-ink-2) !important; padding: 0; } .dm-crumb button:hover { color: var(--brand) !important; text-decoration: underline; text-underline-offset: 3px; }
.dm-crumb span:last-child:not(:first-child) { color: var(--d-ink); font-weight: 600; }
.dm-subbar[hidden] { display: none; }
.dm-subbar .dm-chip em { font-style: normal; opacity: .6; }
.dm-kanban.solo { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
.dm-kanban.solo .dm-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; }
.dm-kanban.solo .dm-col-h, .dm-kanban.solo .dm-empty { grid-column: 1 / -1; }

/* a gruppi: aree che si aprono e chiudono */
.dm-l-gruppi { grid-template-columns: 254px minmax(0, 1fr); }
.dm-l-gruppi .dm-side { overflow: hidden; }
.dm-nav-gruppi { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; gap: 2px; }
.dm-grp { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.dm-grp-h { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-3); }
.dm-grp-h:hover { color: var(--d-ink); }
.dm-grp-h svg { width: 14px; height: 14px; margin-left: auto; transition: transform .3s; }
.dm-grp:not(.open) .dm-grp-h svg { transform: rotate(-90deg); }
.dm-grp-b { display: flex; flex-direction: column; gap: 2px; }
.dm-grp:not(.open) .dm-grp-b { display: none; }
.dm-nav-gruppi .dm-tab { padding: 9px 12px; }

/* doppio livello: icone delle aree e pannello con le voci */
.dm-l-doppio { grid-template-columns: 318px minmax(0, 1fr); }
.dm-l-doppio .dm-side { padding: 18px 0 14px; gap: 0; overflow: hidden; }
.dm-l-doppio .dm-brand { padding: 0 16px 16px; }
.dm-l-doppio .dm-nav { flex: 1; min-height: 0; flex-direction: row; gap: 0; border-top: var(--bw) solid var(--d-line); }
.dm-d2-rail { width: 86px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-right: var(--bw) solid var(--d-line); }
.dm-d2-g { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 3px; border-radius: var(--r-sm); color: var(--d-ink-3); font-size: 9.5px; line-height: 1.15; text-align: center; transition: background .2s, color .2s; }
.dm-d2-g svg { width: 21px; height: 21px; flex: none; }
.dm-d2-g span { max-width: 72px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-d2-g:hover { color: var(--d-ink); background: var(--d-panel-2); }
.dm-d2-g.on { color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.dm-d2-ai { margin-top: auto; }
.dm-d2-panel { flex: 1; min-width: 0; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; }
.dm-d2-t { font-family: var(--f-head); font-weight: var(--h-w); font-size: 15px; padding: 4px 10px 10px; margin: 0; }
.dm-d2-panel .dm-tab { padding: 9px 10px; }
.dm-l-doppio .dm-made { padding: 10px 16px 0; }

/* mega menu: barra in alto, ogni area apre un pannello ampio */
.dm-l-mega { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.dm-l-mega .dm-side { flex-direction: row; align-items: center; gap: 14px; padding: 10px 18px; border-right: 0; border-bottom: var(--bw) solid var(--d-line); z-index: 6; overflow: visible; }
.dm-l-mega .dm-brand { padding: 0; flex: none; } .dm-l-mega .dm-brand b { -webkit-line-clamp: 1; max-width: 180px; }
.dm-l-mega .dm-logo { width: 36px; height: 36px; }
.dm-l-mega .dm-nav { flex-direction: row; align-items: center; gap: 4px; }
.dm-l-mega .dm-tab { padding: 9px 12px; } .dm-l-mega .dm-tab-ai { margin-top: 0; } .dm-l-mega .dm-made { display: none; }
.dm-mg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--d-ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.dm-mg-btn svg { width: 15px; height: 15px; transition: transform .3s; }
.dm-mg-btn:hover, .dm-mg-btn.open { color: var(--d-ink); background: var(--d-panel-2); }
.dm-mg-btn.open svg { transform: rotate(180deg); }
.dm-mg-btn.on { color: var(--d-ink); box-shadow: inset 0 -2px 0 var(--brand); }
.dm-mega { position: absolute; top: calc(100% + 8px); left: 18px; right: 18px; z-index: 7; padding: 18px; border-radius: var(--r); background: var(--d-panel); border: var(--bw) solid var(--d-line); box-shadow: 0 30px 70px -24px rgba(0,0,0,.55); animation: dm-megain .3s cubic-bezier(.16,1,.3,1); }
.dm-mega[hidden] { display: none; }
@keyframes dm-megain { from { opacity: 0; transform: translateY(-8px); } }
.dm-mega-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; }
.dm-mg-it { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r-sm); text-align: left; transition: background .2s; }
.dm-mg-it:hover, .dm-mg-it.on { background: var(--d-panel-2); }
.dm-mg-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.dm-mg-ic svg { width: 20px; height: 20px; }
.dm-mg-it > span:nth-child(2) { min-width: 0; flex: 1; }
.dm-mg-it b { display: block; font-size: 14px; } .dm-mg-it small { display: block; font-size: 12px; color: var(--d-ink-3); line-height: 1.35; margin-top: 2px; }
.dm-mg-col .dm-subs { margin-left: 60px; border-left: 0; padding-left: 0; }

/* dock: barra di icone fluttuante in basso, che si ingrandisce al passaggio */
.dm-l-dock { grid-template-columns: minmax(0, 1fr); }
.dm-l-dock .dm-main { grid-column: 1; grid-row: 1; }
.dm-l-dock .dm-side { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 8; flex-direction: row; align-items: flex-end; gap: 4px; padding: 8px 10px; border: var(--bw) solid var(--d-line); border-radius: 22px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.6); max-width: calc(100% - 32px); }
.dm-l-dock .dm-brand, .dm-l-dock .dm-made { display: none; }
.dm-l-dock .dm-nav { flex-direction: row; align-items: flex-end; gap: 4px; }
.dm-l-dock .dm-tab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; background: var(--d-panel-2); box-shadow: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s; transform-origin: 50% 100%; }
.dm-l-dock .dm-tab svg { width: 22px; height: 22px; }
.dm-l-dock .dm-tab span { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; background: var(--d-ink); color: var(--d-bg); font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; overflow: visible; }
.dm-l-dock .dm-tab:hover span { opacity: 1; }
.dm-l-dock .dm-tab:hover { transform: scale(1.28) translateY(-4px); z-index: 1; }
.dm-l-dock .dm-tab:has(+ .dm-tab:hover), .dm-l-dock .dm-tab:hover + .dm-tab { transform: scale(1.12) translateY(-2px); }
.dm-l-dock .dm-tab.on { background: color-mix(in srgb, var(--brand) 24%, var(--d-panel-2)); color: var(--d-ink); box-shadow: none; text-decoration: none; }
.dm-l-dock .dm-tab.on::before { content: ""; position: absolute; bottom: -6px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.dm-l-dock .dm-tab-ai { margin-top: 0; }
.dm-dock-sep { width: 1px; height: 32px; margin: 0 4px 8px; background: var(--d-line); flex: none; }
.dm-l-dock .dm-content { padding-bottom: 104px; }
.dm-l-dock .dm-top-brand { display: flex; flex: none; }

/* ================================================================ ricerca rapida (Ctrl+K) */
.dm-kbtn kbd, .dm-pal-in kbd { font-family: "JetBrains Mono", monospace; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--d-line); color: var(--d-ink-3); }
@container (max-width: 900px) { .dm-kbtn kbd { display: none; } }
.dm-pal { position: absolute; inset: 0; z-index: 30; display: grid; justify-items: center; align-items: start; padding-top: 8%; background: rgba(8,9,16,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: dm-fade .2s ease; }
.dm-pal[hidden] { display: none; }
@keyframes dm-fade { from { opacity: 0; } }
.dm-pal-box { width: min(620px, 92%); max-height: 72%; display: flex; flex-direction: column; border-radius: var(--r); background: var(--d-panel); border: var(--bw) solid var(--d-line); box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); overflow: hidden; animation: dm-palin .3s cubic-bezier(.16,1,.3,1); }
@keyframes dm-palin { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.dm-pal-in { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: var(--bw) solid var(--d-line); }
.dm-pal-in svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.dm-pal-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; }
.dm-pal-list { overflow-y: auto; padding: 6px 8px 10px; scrollbar-width: thin; }
.dm-pal-g { margin: 0; padding: 10px 10px 4px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-3); }
.dm-pal-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); text-align: left; }
.dm-pal-it svg { width: 18px; height: 18px; color: var(--d-ink-3); flex: none; }
.dm-pal-it > span { min-width: 0; }
.dm-pal-it b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dm-pal-it small { display: block; font-size: 12px; color: var(--d-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pal-it:hover { background: var(--d-panel-2); }
.dm-pal-it.sel { background: color-mix(in srgb, var(--brand) 14%, transparent); } .dm-pal-it.sel svg { color: var(--brand); }
.dm-pal-vuoto { padding: 22px; margin: 0; text-align: center; color: var(--d-ink-3); font-size: 13px; }

/* ================================================================ scheda di dettaglio */
[data-det] { cursor: pointer; }
.det-on { outline: 2px solid var(--brand); outline-offset: 2px; }
.dm-det { position: absolute; top: 0; right: 0; bottom: 0; z-index: 12; width: min(400px, 94%); display: flex; flex-direction: column; background: var(--d-panel); border-left: var(--bw) solid var(--d-line); box-shadow: -30px 0 60px -30px rgba(0,0,0,.6); transform: translateX(105%); visibility: hidden; transition: transform .45s cubic-bezier(.16,1,.3,1), visibility 0s .45s; }
.dm-det.on { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.16,1,.3,1), visibility 0s; }
.dm-det-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: var(--bw) solid var(--d-line); }
.dm-det-h small { display: block; font-size: 11.5px; color: var(--d-ink-3); margin-bottom: 4px; }
.dm-det-h b { display: block; font-family: var(--f-head); font-weight: var(--h-w); font-size: 18px; line-height: 1.25; }
.dm-det-b { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; scrollbar-width: thin; }
.dm-det-foto { width: 100%; max-height: 210px; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.dm-det-txt { font-size: 13.5px; color: var(--d-ink-2); line-height: 1.5; margin: 0; }
.dm-det-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; width: 100%; margin: 0; font-size: 13px; }
.dm-det-kv dt { color: var(--d-ink-3); } .dm-det-kv dd { margin: 0; color: var(--d-ink); text-align: right; overflow-wrap: anywhere; }
.dm-det-s { width: 100%; }
.dm-det-s > b { display: block; font-size: 11px; font-family: "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-3); font-weight: 500; margin-bottom: 10px; }
.dm-det-tl { list-style: none; margin: 0 0 0 5px; padding: 0 0 0 16px; border-left: 2px solid var(--d-line); display: grid; gap: 12px; }
.dm-det-tl li { position: relative; font-size: 13px; line-height: 1.4; }
.dm-det-tl li::before { content: ""; position: absolute; left: -23px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--d-panel); border: 2px solid var(--brand); }
.dm-det-tl li:first-child::before { background: var(--brand); }
.dm-det-tl small { display: block; color: var(--d-ink-3); font-size: 11.5px; }
.dm-det-act { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: var(--bw) solid var(--d-line); }
.dm-det-act .dm-btn svg { width: 14px; height: 14px; }
.dm-phone .dm-det { width: 100%; top: auto; height: 86%; border-left: 0; border-radius: 20px 20px 0 0; transform: translateY(105%); }
.dm-phone .dm-det.on { transform: none; }
@media (prefers-reduced-motion: reduce) { .dm-det, .dm-subs, .dm-mega, .dm-pal, .dm-pal-box { transition: none; animation: none; } }

/* contenitori stretti */
@container (max-width: 760px) {
  .dm-title { font-size: 21px !important; }
  .dm-content { padding: 16px; }
  .dm-top { padding: 10px 12px; gap: 8px; }
  .dm-user, .dm-swap span { display: none; }
  .dm-eco, .dm-appwrap { grid-template-columns: 1fr; }
  .dm-kpi b { font-size: 22px !important; }
  .dm-people { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dm:not(.dm-phone) { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); font-size: 13px; border-radius: 14px; }
  .dm:not(.dm-phone) .dm-side { flex-direction: row; align-items: center; gap: 6px; padding: 8px 10px; border-right: 0; border-bottom: var(--bw) solid var(--d-line); overflow-x: auto; scrollbar-width: none; }
  .dm:not(.dm-phone) .dm-brand { padding: 0 4px 0 0; flex: none; } .dm:not(.dm-phone) .dm-brand b { display: none; }
  .dm:not(.dm-phone) .dm-logo { width: 34px; height: 34px; }
  .dm:not(.dm-phone) .dm-nav { flex-direction: row; gap: 4px; }
  .dm:not(.dm-phone) .dm-tab { flex-direction: row; width: auto; padding: 8px 11px; font-size: 13px; }
  .dm:not(.dm-phone) .dm-tab-ai { margin-top: 0; }
  .dm:not(.dm-phone) .dm-made { display: none; }
  .dm-ask .dm-btn { display: none; }
  .dm-kanban { grid-auto-columns: minmax(240px, 82%); }
  .dm-ai { top: 60px; right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .dm-toasts { left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dm-bg, .dm-bg i, .dm-view.dm-in > *, .dm-bar, .dm-pbar i { animation: none !important; } }

/* ================================================================ grafica dell'attività: motivo di sfondo e disegno nella Home */
.dm-motif { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--brand); opacity: .07;
  -webkit-mask: var(--motif) 0 0 / 72px 72px repeat; mask: var(--motif) 0 0 / 72px 72px repeat; }
.dm-st-lusso .dm-motif, .dm-st-neon .dm-motif { opacity: .06; } .dm-st-corporate .dm-motif, .dm-st-clinico .dm-motif { opacity: .05; }
.dm-hello { position: relative; }
.dm-hello-t { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
.dm-art { position: relative; flex: none; width: 112px; height: 112px; display: grid; place-items: center; color: var(--brand); }
.dm-art i { position: absolute; inset: 6px; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: color-mix(in srgb, var(--brand) 15%, transparent); animation: dm-blob 14s ease-in-out infinite; }
.dm-art svg { position: relative; width: 62px; height: 62px; stroke-width: 1.3; animation: dm-art 7s ease-in-out infinite; }
@keyframes dm-blob { 50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(8deg) scale(1.04); } }
@keyframes dm-art { 50% { transform: translateY(-5px) rotate(-3deg); } }
.dm-hero { position: relative; overflow: hidden; }
.dm-hero > .dm-art { position: absolute; right: -16px; bottom: -26px; width: 190px; height: 190px; opacity: .35; pointer-events: none; }
.dm-hero > .dm-art svg { width: 110px; height: 110px; }
.dm-hero > :not(.dm-art) { position: relative; }
/* foto principale del sito del cliente al posto del disegno */
.dm-art.dm-photo { width: 170px; height: 112px; border-radius: calc(var(--r) * .8); overflow: hidden; box-shadow: var(--d-shadow); background: #fff; }
.dm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-hero > .dm-art.dm-photo { top: 0; right: 0; bottom: 0; width: 48%; height: auto; border-radius: 0; box-shadow: none; opacity: .3; -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%); mask-image: linear-gradient(90deg, transparent, #000 65%); }
.dm-phone .dm-art.dm-photo { width: 110px; height: 74px; }
.dm-phone .dm-art { width: 74px; height: 74px; } .dm-phone .dm-art svg { width: 40px; height: 40px; }
@container (max-width: 760px) { .dm-art { width: 80px; height: 80px; } .dm-art svg { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .dm-art i, .dm-art svg { animation: none; } }
