/* ═════════════════ Belvisi Outlet · Pannello ═════════════════
   Tema senza build (caricato con un render hook HEAD_END dopo gli stili di Filament).
   Segue il tema del computer: chiaro carta avorio/grafite/noce con accento giallo del marchio, scuro grafite caldo.
   Testo: Manrope · Titoli: Cormorant Garamond · Cifre: Jost
   Le animazioni restano sempre accese (nessun prefers-reduced-motion, per scelta). */

:root {
    --ax-font: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    --ax-display: 'Cormorant Garamond', Georgia, serif;
    --ax-mono: 'Jost', ui-sans-serif, system-ui, sans-serif;

    /* Chiaro: carta, grafite, noce e giallo Belvisi */
    --ax-bg: #f4efe6;
    --ax-bg-2: #ece4d6;
    --ax-surface: #fffdf9;
    --ax-surface-2: #f7f2ea;
    --ax-line: rgb(42 40 36 / .09);
    --ax-line-strong: rgb(42 40 36 / .18);
    --ax-ink: #1d1c1a;
    --ax-ink-2: #3a362f;
    --ax-muted: #6b645a;
    --ax-coral: #8a5a3b;
    --ax-coral-soft: rgb(138 90 59 / .11);
    --ax-glow: rgb(248 200 0 / .16);
    --ax-yellow: #f8c800;
    --ax-a: #8a5a3b;
    --ax-b: #4b3426;
    --ax-up: #2f7a4a;
    --ax-down: #b23a2a;
    --ax-warn: #a86a12;
    --ax-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 18px 40px -24px rgb(29 28 26 / .32), 0 2px 6px -2px rgb(29 28 26 / .08);
    --ax-shadow-hi: 0 30px 60px -28px rgb(29 28 26 / .42), 0 4px 12px -4px rgb(29 28 26 / .12);
    --ax-radius: 14px;
    --ax-on-coral: #ffffff;
}

:root.dark {
    /* Scuro: grafite caldo */
    --ax-bg: #141311;
    --ax-bg-2: #1b1916;
    --ax-surface: #23201c;
    --ax-surface-2: #2b2722;
    --ax-line: rgb(244 239 230 / .08);
    --ax-line-strong: rgb(244 239 230 / .16);
    --ax-ink: #f4efe6;
    --ax-ink-2: #d9cfbf;
    --ax-muted: #a39a8a;
    --ax-coral: #e0b07e;
    --ax-coral-soft: rgb(224 176 126 / .14);
    --ax-glow: rgb(248 200 0 / .08);
    --ax-a: #e0b07e;
    --ax-b: #f8c800;
    --ax-up: #6fcf97;
    --ax-down: #ff8a7a;
    --ax-warn: #f2c26b;
    --ax-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 50px -24px rgb(0 0 0 / .85), 0 0 0 1px rgb(244 239 230 / .06);
    --ax-shadow-hi: 0 34px 70px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(248 200 0 / .2);
    --ax-on-coral: #1d1c1a;
}

/* ───────── Pannello intero ───────── */
.fi-body {
    font-family: var(--ax-font);
    background:
        radial-gradient(1100px 560px at 88% -12%, var(--ax-glow), transparent 60%),
        radial-gradient(900px 520px at -12% 112%, rgb(138 90 59 / .07), transparent 60%),
        var(--ax-bg) !important;
    background-attachment: fixed !important;
    color: var(--ax-ink);
}
.fi-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .45;
    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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fi-layout { position: relative; z-index: 1; }

.fi-header-heading, .fi-modal-heading, .fi-simple-header-heading {
    font-family: var(--ax-display);
    font-weight: 600 !important;
    font-size: 2.1rem;
    letter-spacing: -.01em;
}
.fi-section-header-heading { font-weight: 700 !important; }

.fi-topbar, .fi-topbar > nav {
    background: color-mix(in oklab, var(--ax-bg) 74%, transparent) !important;
    backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--ax-line) !important;
    box-shadow: none !important;
}

.fi-sidebar {
    background: color-mix(in oklab, var(--ax-bg-2) 84%, transparent) !important;
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--ax-line);
}
.fi-sidebar-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--ax-line);
}
.fi-sidebar-group-label {
    font-family: var(--ax-mono);
    font-size: .64rem !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ax-muted) !important;
}
.fi-sidebar-item-btn { border-radius: 12px !important; transition: background .2s, transform .2s; }
.fi-sidebar-item-btn:hover { transform: translateX(2px); }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: linear-gradient(90deg, var(--ax-coral-soft), transparent) !important;
    box-shadow: inset 2px 0 0 var(--ax-coral);
}
.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-icon { color: var(--ax-coral) !important; }

.fi-section, .fi-ta-ctn, .fi-modal-window, .fi-fo-field-wrp .fi-input-wrp, .fi-tabs { border-radius: var(--ax-radius) !important; }
.fi-section, .fi-ta-ctn {
    background: var(--ax-surface) !important;
    box-shadow: var(--ax-shadow) !important;
    border: 0 !important;
    --tw-ring-shadow: 0 0 #0000 !important;
}
.fi-fo-field-wrp .fi-input-wrp { border-radius: 12px !important; }
.fi-modal-window { background: var(--ax-surface) !important; box-shadow: var(--ax-shadow-hi) !important; }
.fi-ta-header-cell { font-family: var(--ax-mono); font-size: .66rem !important; letter-spacing: .08em; text-transform: uppercase; }
.fi-btn { border-radius: 999px !important; }
.fi-badge { border-radius: 999px !important; }
.fi-ta-row { transition: background .2s; }
.fi-ta-image img.ax-thumb { border-radius: 10px; object-fit: cover; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .5); }
.fi-ta-image img.ax-thumb--portrait { border-radius: 12px; }

/* Login: scheda in rilievo */
.fi-simple-main {
    background: var(--ax-surface) !important;
    border-radius: 26px !important;
    box-shadow: var(--ax-shadow-hi) !important;
    animation: ax-rise .9s cubic-bezier(.2, .8, .2, 1) both;
}

/* ───────── Struttura comune ───────── */
.ax-page .fi-page-header-main-ctn { gap: 1.25rem; }
.ax-page--dash .fi-header { display: none; }

.ax {
    --i: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    color: var(--ax-ink);
    container-type: inline-size;
    font-variant-numeric: lining-nums;
}
.ax-title, .ax-card h3, .ax-cal__period, .ax-num, .ax-mini__value, .ax-minis b, .ax-event__date b, .ax-week__head b { font-variant-numeric: lining-nums tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ax > *, .ax-grid > * { min-width: 0; }
.ax-rise { animation: ax-rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes ax-rise { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } }

.ax-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: .25rem .25rem .5rem; }
.ax-eyebrow { display: flex; align-items: center; gap: .6rem; font-family: var(--ax-mono); font-size: .72rem; letter-spacing: .05em; color: var(--ax-muted); }
.ax-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ax-coral); animation: ax-pulse 2s infinite; }
@keyframes ax-pulse { 0% { box-shadow: 0 0 0 0 var(--ax-glow); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ax-title { font-family: var(--ax-display); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin-top: .45rem; }
.ax-sub { margin-top: .5rem; color: var(--ax-ink-2); font-size: 1rem; max-width: 60ch; }
.ax-note { font-size: .86rem; color: var(--ax-muted); line-height: 1.5; }
.ax-quick { display: flex; flex-wrap: wrap; gap: .5rem; }

.ax-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--ax-ink); background: var(--ax-surface); box-shadow: var(--ax-shadow); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, color .2s; white-space: nowrap; }
.ax-btn:hover { transform: translateY(-2px); box-shadow: var(--ax-shadow-hi); }
.ax-btn:disabled { opacity: .6; }
.ax-btn--primary { background: var(--ax-coral); color: var(--ax-on-coral); box-shadow: 0 12px 26px -12px var(--ax-coral); }
.ax-btn--sm { padding: .4rem .85rem; font-size: .8rem; }
.ax-btn--center { justify-self: center; }
.ax-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ax-ink-2); background: var(--ax-surface); box-shadow: var(--ax-shadow); transition: transform .2s, color .2s; }
.ax-icon-btn:hover { color: var(--ax-coral); transform: scale(1.06); }
.ax-ico { width: 1.05rem; height: 1.05rem; flex: none; }
.ax-spin { animation: ax-spin .8s linear infinite; }

.ax-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ax-surface); box-shadow: var(--ax-shadow); }
.ax-seg button { position: relative; z-index: 1; padding: .45rem .95rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ax-ink-2); transition: color .25s, background .25s; }
.ax-seg button:hover { color: var(--ax-ink); }
.ax-seg button.is-on { background: var(--ax-ink); color: var(--ax-bg); }
.ax-seg__busy { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ax-line-strong); border-top-color: var(--ax-coral); animation: ax-spin .8s linear infinite; }
@keyframes ax-spin { to { transform: rotate(360deg); } }

.ax-select select, .ax-search input {
    appearance: none; border: 0; outline: 0; box-shadow: var(--ax-shadow); background-color: var(--ax-surface); color: var(--ax-ink);
    border-radius: 999px; padding: .55rem 2.2rem .55rem 1rem; font-size: .86rem; font-weight: 600;
}
.ax-select select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fe8c71'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 1rem; }
.ax-search { position: relative; display: inline-flex; align-items: center; }
.ax-search .ax-ico { position: absolute; left: .85rem; color: var(--ax-muted); pointer-events: none; }
.ax-search input { padding-left: 2.3rem; padding-right: 1rem; min-width: 240px; font-weight: 400; }
.ax-search input:focus, .ax-select select:focus { box-shadow: 0 0 0 3px var(--ax-coral-soft), var(--ax-shadow); }

.ax-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.ax-grid--6-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Schede con profondità 3D leggera */
.ax-card {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    position: relative;
    display: block;
    background: var(--ax-surface);
    border-radius: var(--ax-radius);
    box-shadow: var(--ax-shadow);
    padding: 22px 24px;
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
    isolation: isolate;
    overflow: hidden;
}
.ax-card[data-tilt]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / .09), transparent 45%);
    opacity: 0;
    transition: opacity .3s;
}
.ax-card.is-tilting { transition: transform .08s linear, box-shadow .4s; box-shadow: var(--ax-shadow-hi); }
.ax-card.is-tilting::after { opacity: 1; }
.ax-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.ax-card h3 { font-family: var(--ax-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.ax-card h3 small { font-family: var(--ax-mono); font-size: .7rem; color: var(--ax-muted); margin-left: .4rem; letter-spacing: 0; }
.ax-kicker { font-family: var(--ax-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ax-coral); margin-bottom: .35rem; }
.ax-link { font-size: .84rem; font-weight: 600; color: var(--ax-ink-2); white-space: nowrap; border-bottom: 1px solid var(--ax-line-strong); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.ax-link:hover { color: var(--ax-coral); border-color: var(--ax-coral); }
.ax-link--sm { display: inline-block; margin-top: .45rem; font-size: .78rem; }
.ax-empty { font-size: .9rem; color: var(--ax-muted); }
.ax-mono { font-family: var(--ax-mono); font-size: .8rem; }
.ax-right { text-align: right; }

.ax-pill { display: inline-flex; align-items: center; font-family: var(--ax-mono); font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: .16rem .5rem; border-radius: 999px; background: var(--ax-surface-2); border: 1px solid var(--ax-line-strong); color: var(--ax-ink-2); white-space: nowrap; }
.ax-pill--ssp { background: linear-gradient(90deg, #ff6464, #ff9d9d); color: var(--ax-on-coral); border: 0; }
.ax-pill--hot { background: var(--ax-coral-soft); color: var(--ax-coral); border-color: transparent; }
.ax-pill--ok { background: rgb(95 212 151 / .15); color: var(--ax-up); border-color: transparent; }

.ax-orb { position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; z-index: -1; pointer-events: none;
    background: conic-gradient(from 0deg, var(--ax-coral), #e7b98a, var(--ax-b), var(--ax-coral)); filter: blur(60px); opacity: .28; animation: ax-orbit 14s linear infinite; }
@keyframes ax-orbit { to { transform: rotate(360deg); } }

/* Fascia statistiche sopra le liste */
.ax-strip { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: .5rem; }
.ax-strip:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-mini { padding: 16px 18px; }
.ax-mini.is-hot { box-shadow: var(--ax-shadow), inset 0 0 0 1px var(--ax-coral-soft); }
.ax-mini.is-hot .ax-mini__value { color: var(--ax-coral); }
.ax-mini__label { font-size: .8rem; font-weight: 600; color: var(--ax-ink-2); }
.ax-mini__value { font-family: var(--ax-display); font-size: 1.8rem; font-weight: 600; line-height: 1.1; margin-top: .3rem; transform: translateZ(22px); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-mini__value--sm { font-family: var(--ax-font); font-size: 1.05rem; font-weight: 700; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: .5rem; }
.ax-mini__hint { font-size: .76rem; color: var(--ax-muted); margin-top: .3rem; }
.ax-delta { display: inline-flex; align-items: baseline; gap: .3rem; margin-top: .4rem; font-family: var(--ax-mono); font-size: .72rem; font-weight: 600; color: var(--ax-muted); }
.ax-delta.is-up { color: var(--ax-up); }
.ax-delta.is-down { color: var(--ax-down); }
.ax-delta em { font-style: normal; font-weight: 400; color: var(--ax-muted); }

/* ───────── Moduli ───────── */
.ax-ssp { display: grid; gap: 1rem; }
.ax-ssp h4 { font-family: var(--ax-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-coral); margin-top: .6rem; }
.ax-ssp__intro { display: grid; gap: .6rem; font-size: .95rem; line-height: 1.55; color: var(--ax-ink-2); }
.ax-ssp__intro ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .35rem; }
.ax-apppw__steps dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; padding: .8rem 1rem; border-radius: 14px; background: var(--ax-surface-2); }
.ax-apppw__steps dt { font-weight: 700; color: var(--ax-ink); }

/* ───────── Mappa di calore ───────── */
@keyframes ax-pop { from { transform: scale(0); } }
/* Mappa di calore */
.ax-seg--wide { display: flex; width: 100%; }
.ax-seg--wide button { flex: 1; }
.ax-cm-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem 2.4rem; align-items: start; }
.ax-cm-intro__text p:not(.ax-kicker) { font-size: .92rem; line-height: 1.6; color: var(--ax-ink-2); margin-top: .5rem; }
.ax-cm-intro__text b { color: var(--ax-ink); }
.ax-cm-steps { display: grid; gap: .6rem; font-size: .86rem; color: var(--ax-ink-2); }
.ax-cm-steps li { display: flex; gap: .7rem; align-items: baseline; transform: translateZ(16px); }
.ax-cm-steps span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ax-coral); color: var(--ax-on-coral); font-family: var(--ax-mono); font-size: .72rem; font-weight: 700; }
.ax-cm-steps b { color: var(--ax-ink); }
.ax-cm-legend { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; font-family: var(--ax-mono); font-size: .66rem; color: var(--ax-muted); }
.ax-cm-legend i { width: 180px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #3f7fb8, #4ade80, #facc15, #ff6464, #e62832); }
.ax-cm { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.ax-cm-side { display: grid; gap: 14px; position: sticky; top: calc(4rem + 16px); }
.ax-cm-box { padding: 16px; }
.ax-cm-label { font-family: var(--ax-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-muted); margin: .2rem 0 .55rem; }
.ax-cm-box .ax-seg + .ax-cm-label { margin-top: 1rem; }
.ax-cm-box .ax-seg button { font-size: .78rem; padding: .45rem .5rem; }
.ax-cm-page { position: relative; display: flex; justify-content: space-between; gap: .6rem; width: 100%; padding: .55rem .7rem; border-radius: 11px; font-size: .84rem; text-align: left; color: var(--ax-ink-2); overflow: hidden; transition: color .2s, transform .2s; }
.ax-cm-page + .ax-cm-page { margin-top: 3px; }
.ax-cm-page span, .ax-cm-page b { position: relative; z-index: 1; }
.ax-cm-page span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-cm-page b { font-family: var(--ax-mono); font-size: .75rem; }
.ax-cm-page i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ax-surface-2); z-index: 0; border-radius: 11px; transition: width .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.ax-cm-page:hover { color: var(--ax-ink); transform: translateX(2px); }
.ax-cm-page.is-on { color: var(--ax-on-coral); font-weight: 700; }
.ax-cm-page.is-on i { width: 100%; background: var(--ax-coral); }
.ax-cm-el { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; font-size: .82rem; color: var(--ax-ink-2); cursor: default; transition: background .2s; }
.ax-cm-el span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-cm-el b { font-family: var(--ax-mono); font-size: .74rem; color: var(--ax-ink); }
.ax-cm-el:hover, .ax-cm-el.is-on { background: var(--ax-coral-soft); color: var(--ax-ink); }
.ax-cm-stage { padding: 0; }
.ax-cm-stage__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 16px 18px; border-bottom: 1px solid var(--ax-line); }
.ax-cm-stage__meta { font-size: .82rem; color: var(--ax-muted); }
.ax-cm-stage__meta b { color: var(--ax-ink); font-family: var(--ax-mono); }
.ax-cm-stage__meta .ax-link--sm { margin: 0 0 0 .2rem; }
.ax-cm-viewport { position: relative; height: 78vh; overflow: auto; background: repeating-linear-gradient(45deg, var(--ax-bg-2) 0 10px, var(--ax-bg) 10px 20px); border-radius: 0 0 var(--ax-radius) var(--ax-radius); }
.ax-cm-viewport.is-phone { padding: 24px 20px; }
.ax-cm-frame { position: relative; margin: 0 auto; overflow: hidden; background: #fff; }
.is-phone .ax-cm-frame { border-radius: 34px; box-shadow: 0 0 0 8px #111, 0 0 0 9px #333, 0 40px 80px -30px rgb(0 0 0 / .7); }
.ax-cm-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.ax-cm-canvas iframe { display: block; border: 0; pointer-events: none; background: #fff; }
.ax-cm-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; }
.ax-cm-dots { position: absolute; inset: 0; }
.ax-cm-dots i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgb(240 105 74 / .8); box-shadow: 0 0 0 2px #fff; animation: ax-pop .3s both; }
.ax-cm-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ax-mono); font-size: .75rem; color: var(--ax-muted); }

    .ax-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ax-grid--3 > :last-child { grid-column: 1 / -1; }
    .ax-hours { max-width: 760px; }
}
@container (max-width: 860px) {
    .ax-grid--7-5, .ax-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .ax-cm, .ax-cm-intro { grid-template-columns: minmax(0, 1fr); }
    .ax-cm-side { position: static; }
}

/* ───────── Chiaro rifinito: pulsanti primari pieni (Filament in chiaro li schiarisce) ───────── */
:root:not(.dark) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link) {
    background: var(--ax-ink) !important; color: #faf7f1 !important;
    box-shadow: 0 10px 22px -12px rgb(29 28 26 / .6), inset 0 -2px 0 var(--ax-yellow) !important;
}
:root:not(.dark) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link):hover { background: var(--ax-b) !important; }
:root:not(.dark) .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link) .fi-icon { color: #faf7f1 !important; }
.dark .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link) { background: var(--ax-yellow) !important; color: #1d1c1a !important; }
.dark .fi-btn.fi-color-primary:not(.fi-outlined):not(.fi-link) .fi-icon { color: #1d1c1a !important; }
.fi-tabs-item.fi-active { box-shadow: inset 0 -2px 0 var(--ax-yellow); }
.fi-badge.fi-sidebar-item-badge, .fi-sidebar .fi-badge { font-family: var(--ax-mono); }
.fi-ta-text-item-label, .fi-in-text-item-label { font-variant-numeric: tabular-nums; }
.bo-big { font-family: var(--ax-mono); font-size: 1.4rem; color: var(--ax-up); }

/* Logo */
.bo-logo { position: relative; display: inline-block; width: 132px; line-height: 0; }
.bo-logo img { width: 100%; height: auto; }
.bo-logo b { position: absolute; right: 0; bottom: 0; font: 700 9.5px/1 var(--ax-mono); letter-spacing: .14em; color: var(--ax-ink); transform: translateY(6%); }
.dark .bo-logo .bo-logo__light { display: none; }
.bo-logo .bo-logo__dark { display: none; }
.dark .bo-logo .bo-logo__dark { display: block; }

/* ───────── Bacheca ───────── */
.bo-dash .fi-header { display: none; }
.bo-muted { color: var(--ax-muted); font-size: .9rem; }
.bo-pad { padding: .6rem 0 0; }
.bo-kicker { font: 500 .72rem var(--ax-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ax-coral); }
.bo-hello { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem 2rem; }
.bo-hello h2 { font: 600 clamp(2rem, 4vw, 2.8rem)/1.05 var(--ax-display); margin: .3rem 0 .4rem; color: var(--ax-ink); }
.bo-hello__act { display: flex; gap: .5rem; flex-wrap: wrap; }
.bo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bo-kpi { display: grid; gap: .2rem; padding: 18px 20px; border-radius: var(--ax-radius); background: var(--ax-surface); box-shadow: var(--ax-shadow); color: var(--ax-ink); transition: transform .3s, box-shadow .3s; animation: ax-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.bo-kpi span { font-size: .82rem; font-weight: 600; color: var(--ax-ink-2); }
.bo-kpi b { font: 500 2.2rem/1.1 var(--ax-mono); font-variant-numeric: tabular-nums; }
.bo-kpi small { font-size: .78rem; color: var(--ax-muted); }
.bo-kpi--hot { box-shadow: var(--ax-shadow), inset 4px 0 0 var(--ax-yellow); }
a.bo-kpi:hover { transform: translateY(-3px); box-shadow: var(--ax-shadow-hi), inset 4px 0 0 var(--ax-yellow); }
.bo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bo-card { padding: 18px 20px; border-radius: var(--ax-radius); background: var(--ax-surface); box-shadow: var(--ax-shadow); color: var(--ax-ink); animation: ax-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.bo-card--wide { grid-row: span 2; }
.bo-card header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.bo-card h3 { font: 600 1.45rem var(--ax-display); }
.bo-card header a { font-size: .84rem; font-weight: 600; color: var(--ax-coral); }
.bo-row { display: flex; align-items: center; gap: .8rem; padding: .65rem .5rem; margin: 0 -.5rem; border-radius: 10px; border-bottom: 1px solid var(--ax-line); color: inherit; transition: background .2s; }
.bo-row:hover { background: var(--ax-surface-2); }
.bo-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.bo-row__main { display: grid; flex: 1; min-width: 0; }
.bo-row__main b { font-weight: 700; }
.bo-row__main small { color: var(--ax-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-row__val { font: 500 .95rem var(--ax-mono); white-space: nowrap; }
.bo-list { display: grid; }
.bo-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--ax-line-strong); font-size: .92rem; }
.bo-list dd { font: 600 1rem var(--ax-mono); }
.bo-list .is-warn dd, .bo-list .is-warn a { color: var(--ax-warn); }
.bo-list a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Pezzi di una richiesta ───────── */
.bo-items { display: grid; gap: 10px; }
.bo-items li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 10px; border-radius: 12px; background: var(--ax-surface-2); }
.bo-items img, .bo-items__ph { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--ax-bg-2); }
.bo-items b { display: block; font-weight: 700; }
.bo-items small { display: block; color: var(--ax-muted); font-size: .8rem; }
.bo-items__links { display: block; margin-top: .25rem; font-size: .8rem; }
.bo-items__links a { color: var(--ax-coral); font-weight: 600; }
.bo-items__right { display: grid; justify-items: end; gap: .25rem; font-family: var(--ax-mono); }
.bo-items__right s { color: var(--ax-muted); font-size: .8rem; }
.bo-items__total { margin-top: .8rem; text-align: right; font-size: .95rem; }
.bo-items__total b { font: 600 1.15rem var(--ax-mono); }

@media (max-width: 1100px) {
    .bo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bo-grid { grid-template-columns: minmax(0, 1fr); }
    .bo-card--wide { grid-row: auto; }
}
@media (max-width: 560px) {
    .bo-items li { grid-template-columns: 56px minmax(0, 1fr); }
    .bo-items img, .bo-items__ph { width: 56px; height: 56px; }
    .bo-items__right { grid-column: 2; justify-items: start; }
}
