/*
 * NutriViva Studio Digitale — stile dell'applicazione (G1: base grafica).
 * Si appoggia a Bootstrap 5.3.8 (public/vendor/bootstrap, non modificato) tramite le sue variabili CSS.
 * Carattere Inter (licenza OFL) salvato in public/fonts: nessun font esterno.
 * Tema chiaro e scuro: data-bs-theme sul tag <html>, impostato da public/js/theme.js.
 * Animazioni solo in CSS e spente per chi ha scelto "riduci movimento" nel sistema.
 */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/InterVariable.woff2") format("woff2");
}

/* ---------- Colori e misure (tema chiaro) ---------- */

:root,
[data-bs-theme="light"] {
    /*
     * Palette coordinata con il sito nutrivivacreativa.it:
     * blu notte = pulsanti, titoli e simbolo del marchio; blu "Marketing" (#13519b) = link, voce attiva,
     * campi attivi e avanzamento; verde = solo stati positivi (attivo, salvato, inviato);
     * giallo = evidenziazioni; azzurro chiarissimo = sfondi e informazioni.
     */
    --nv-primary: #13519b;
    --nv-primary-rgb: 19, 81, 155;
    --nv-primary-hover: #104686;
    --nv-primary-active: #0d3a70;
    --nv-primary-subtle: #e8f0fa;
    --nv-primary-text: #13519b;
    --nv-primary-text-rgb: 19, 81, 155;
    --nv-on-primary: #ffffff;
    --nv-btn: #0f2a47;
    --nv-btn-rgb: 15, 42, 71;
    --nv-btn-hover: #1b3d64;
    --nv-btn-active: #0a1f36;
    --nv-on-btn: #ffffff;
    --nv-brand-mark-bg: #0f2a47;
    --nv-brand-gradient: linear-gradient(135deg, #2a6fc2 0%, #13519b 100%);
    --nv-ink: #0f2a47;
    --nv-navy-gradient: linear-gradient(135deg, #1f4675 0%, #0f2a47 100%);
    --nv-accent: #f4c430;
    --nv-accent-rgb: 244, 196, 48;
    --nv-accent-subtle: #fdf5d8;
    --nv-accent-text: #7a5a00;

    --nv-page-bg: #f4f7fb;
    --nv-page-bg-rgb: 244, 247, 251;
    --nv-surface: #ffffff;
    --nv-surface-raised: #ffffff;
    --nv-surface-muted: #eef3f8;
    --nv-border: #e2e9f1;
    --nv-border-strong: #cfd9e5;
    --nv-text: #1b2b3f;
    --nv-text-rgb: 27, 43, 63;
    --nv-text-muted: #566a80;
    --nv-shadow-sm: 0 1px 2px rgba(15, 42, 71, 0.05);
    --nv-shadow: 0 1px 2px rgba(15, 42, 71, 0.04), 0 4px 12px rgba(15, 42, 71, 0.06);
    --nv-shadow-lg: 0 2px 4px rgba(15, 42, 71, 0.04), 0 12px 32px rgba(15, 42, 71, 0.11);

    --nv-radius-sm: 0.5rem;
    --nv-radius: 0.75rem;
    --nv-radius-lg: 1rem;
    --nv-sidebar-width: 16.5rem;
    --nv-sidebar-collapsed-width: 4.75rem;
    --nv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --bs-primary: var(--nv-primary);
    --bs-primary-rgb: var(--nv-primary-rgb);
    --bs-primary-bg-subtle: var(--nv-primary-subtle);
    --bs-primary-text-emphasis: var(--nv-primary-text);
    --bs-primary-border-subtle: #c5d7ee;
    --bs-link-color: var(--nv-primary-text);
    --bs-link-color-rgb: var(--nv-primary-text-rgb);
    --bs-link-hover-color: var(--nv-primary-active);
    --bs-link-hover-color-rgb: 13, 58, 112;
    --bs-heading-color: var(--nv-ink);
    --bs-emphasis-color: var(--nv-ink);
    --bs-info-bg-subtle: #e9f1fb;
    --bs-info-border-subtle: #cddff4;
    --bs-info-text-emphasis: #1d4f86;
    --bs-success-bg-subtle: #e7f5eb;
    --bs-success-border-subtle: #bfe3c9;
    --bs-success-text-emphasis: #155c2b;
    --bs-focus-ring-color: rgba(var(--nv-primary-rgb), 0.28);
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-bg: var(--nv-page-bg);
    --bs-body-bg-rgb: var(--nv-page-bg-rgb);
    --bs-body-color: var(--nv-text);
    --bs-body-color-rgb: var(--nv-text-rgb);
    --bs-secondary-color: var(--nv-text-muted);
    --bs-border-color: var(--nv-border);
    --bs-border-radius: var(--nv-radius-sm);
    --bs-border-radius-lg: var(--nv-radius);
    --bs-tertiary-bg: var(--nv-surface-muted);
    --bs-tertiary-bg-rgb: 238, 243, 248;
}

/* ---------- Tema scuro ---------- */

[data-bs-theme="dark"] {
    --nv-primary: #7fb0ec;
    --nv-primary-rgb: 127, 176, 236;
    --nv-primary-hover: #9cc2f1;
    --nv-primary-active: #b5d2f5;
    --nv-primary-subtle: rgba(127, 176, 236, 0.14);
    --nv-primary-text: #9cc2f1;
    --nv-primary-text-rgb: 156, 194, 241;
    --nv-on-primary: #0a1524;
    --nv-btn: #5b9ae0;
    --nv-btn-rgb: 91, 154, 224;
    --nv-btn-hover: #74abe6;
    --nv-btn-active: #8dbbeb;
    --nv-on-btn: #0a1524;
    --nv-brand-mark-bg: #13519b;
    --nv-ink: #f1f5fa;
    --nv-accent: #f4c430;
    --nv-accent-subtle: rgba(244, 196, 48, 0.14);
    --nv-accent-text: #f4d36b;

    --nv-page-bg: #0a1524;
    --nv-page-bg-rgb: 10, 21, 36;
    --nv-surface: #0f1e33;
    --nv-surface-raised: #13263f;
    --nv-surface-muted: #132640;
    --nv-border: #1d3352;
    --nv-border-strong: #29436a;
    --nv-text: #e3eaf3;
    --nv-text-rgb: 227, 234, 243;
    --nv-text-muted: #9db0c7;
    --nv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --nv-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --nv-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);

    --bs-primary-border-subtle: rgba(127, 176, 236, 0.35);
    --bs-link-hover-color-rgb: 181, 210, 245;
    --bs-emphasis-color-rgb: 241, 245, 250;
    --bs-secondary-bg: #18304f;
    --bs-secondary-bg-rgb: 24, 48, 79;
    --bs-tertiary-bg-rgb: 19, 38, 64;
    --bs-info-bg-subtle: rgba(96, 165, 250, 0.12);
    --bs-info-border-subtle: rgba(96, 165, 250, 0.3);
    --bs-info-text-emphasis: #a7cbf7;
    --bs-success-bg-subtle: rgba(74, 222, 128, 0.12);
    --bs-success-border-subtle: rgba(74, 222, 128, 0.3);
    --bs-success-text-emphasis: #86e0a5;
    color-scheme: dark;
}

/* ---------- Base ---------- */

body {
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.006em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 650;
    letter-spacing: -0.02em;
}

.h6, h6 {
    letter-spacing: -0.01em;
}

::selection {
    background: rgba(var(--nv-primary-rgb), 0.22);
}

main:focus {
    outline: none;
}

.min-w-0 {
    min-width: 0;
}

.nv-icon {
    flex-shrink: 0;
    vertical-align: -0.2em;
}

/* ---------- Pulsanti ---------- */

.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: var(--nv-radius-sm);
    --bs-btn-padding-y: 0.45rem;
    --bs-btn-padding-x: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-sm {
    --bs-btn-padding-y: 0.3rem;
    --bs-btn-padding-x: 0.65rem;
    --bs-btn-border-radius: 0.45rem;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* Pulsanti principali: blu notte NutriViva Creativa. */
.btn-primary {
    --bs-btn-color: var(--nv-on-btn);
    --bs-btn-bg: var(--nv-btn);
    --bs-btn-border-color: var(--nv-btn);
    --bs-btn-hover-color: var(--nv-on-btn);
    --bs-btn-hover-bg: var(--nv-btn-hover);
    --bs-btn-hover-border-color: var(--nv-btn-hover);
    --bs-btn-active-color: var(--nv-on-btn);
    --bs-btn-active-bg: var(--nv-btn-active);
    --bs-btn-active-border-color: var(--nv-btn-active);
    --bs-btn-disabled-color: var(--nv-on-btn);
    --bs-btn-disabled-bg: var(--nv-btn);
    --bs-btn-disabled-border-color: var(--nv-btn);
    --bs-btn-focus-shadow-rgb: var(--nv-primary-rgb);
    box-shadow: 0 1px 2px rgba(var(--nv-btn-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
    --bs-btn-color: var(--nv-ink);
    --bs-btn-border-color: rgba(var(--nv-btn-rgb), 0.4);
    --bs-btn-hover-color: var(--nv-on-btn);
    --bs-btn-hover-bg: var(--nv-btn);
    --bs-btn-hover-border-color: var(--nv-btn);
    --bs-btn-active-color: var(--nv-on-btn);
    --bs-btn-active-bg: var(--nv-btn-active);
    --bs-btn-active-border-color: var(--nv-btn-active);
    --bs-btn-disabled-color: var(--nv-ink);
    --bs-btn-disabled-border-color: rgba(var(--nv-btn-rgb), 0.4);
    --bs-btn-focus-shadow-rgb: var(--nv-primary-rgb);
}

/* Pulsanti secondari: superficie chiara con bordo, come nel resto dell'interfaccia. */
.btn-outline-secondary,
.nv-btn-soft {
    --bs-btn-color: var(--nv-text);
    --bs-btn-bg: var(--nv-surface);
    --bs-btn-border-color: var(--nv-border-strong);
    --bs-btn-hover-color: var(--nv-text);
    --bs-btn-hover-bg: var(--nv-surface-muted);
    --bs-btn-hover-border-color: var(--nv-border-strong);
    --bs-btn-active-color: var(--nv-text);
    --bs-btn-active-bg: var(--nv-surface-muted);
    --bs-btn-active-border-color: var(--nv-border-strong);
    --bs-btn-disabled-color: var(--nv-text-muted);
    --bs-btn-disabled-bg: var(--nv-surface);
    --bs-btn-disabled-border-color: var(--nv-border);
    --bs-btn-focus-shadow-rgb: var(--nv-primary-rgb);
    box-shadow: var(--nv-shadow-sm);
}

/* Pulsante con sola icona (es. tema chiaro/scuro) */
.nv-btn-icon {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-color: var(--nv-text-muted);
    --bs-btn-hover-color: var(--nv-text);
    --bs-btn-hover-bg: var(--nv-surface-muted);
    --bs-btn-active-bg: var(--nv-surface-muted);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
}

.nv-js .nv-btn-icon[data-nv-theme-toggle] {
    display: inline-flex !important; /* visibile solo con JavaScript */
}

[data-bs-theme="light"] .nv-theme-icon-light,
[data-bs-theme="dark"] .nv-theme-icon-dark {
    display: none;
}

/* ---------- Campi dei moduli ---------- */

.form-control,
.form-select {
    background-color: var(--nv-surface);
    border-color: var(--nv-border-strong);
    border-radius: var(--nv-radius-sm);
    padding: 0.5rem 0.8rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select {
    padding-right: 2.25rem;
}

.form-control-sm,
.form-select-sm {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.form-control:hover:not(:focus):not(:disabled),
.form-select:hover:not(:focus):not(:disabled) {
    border-color: rgba(var(--nv-text-rgb), 0.3);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--nv-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--nv-primary-rgb), 0.2);
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--nv-surface-muted);
}

.form-label {
    font-weight: 500;
    font-size: 0.925rem;
    margin-bottom: 0.35rem;
}

.form-text {
    color: var(--nv-text-muted);
}

.form-check-input {
    border-color: var(--nv-border-strong);
}

.form-check-input:checked {
    background-color: var(--nv-primary);
    border-color: var(--nv-primary);
}

.input-group-text {
    background-color: var(--nv-surface-muted);
    border-color: var(--nv-border-strong);
}

/* ---------- Riquadri, elenchi e tabelle ---------- */

.card {
    --bs-card-bg: var(--nv-surface);
    --bs-card-border-color: var(--nv-border);
    --bs-card-border-radius: var(--nv-radius-lg);
    --bs-card-inner-border-radius: calc(var(--nv-radius-lg) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-spacer-x: 1.25rem;
    --bs-card-spacer-y: 1.15rem;
    --bs-card-cap-padding-y: 0.9rem;
}

.nv-card {
    box-shadow: var(--nv-shadow-sm);
}

.nv-card > .card-header {
    border-bottom-color: var(--nv-border);
}

.nv-card > .card-header .h6 {
    font-weight: 600;
}

.nv-card > .card-footer {
    border-top-color: var(--nv-border);
    background: var(--nv-surface-muted);
}

/* Riquadri cliccabili: si sollevano al passaggio del mouse. */
.nv-card-hover,
a.card {
    transition: transform 0.2s var(--nv-ease), box-shadow 0.2s var(--nv-ease), border-color 0.2s ease;
}

.nv-card-hover:hover,
a.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nv-shadow-lg);
    border-color: var(--nv-border-strong);
}

.list-group {
    --bs-list-group-bg: var(--nv-surface);
    --bs-list-group-border-color: var(--nv-border);
    --bs-list-group-border-radius: var(--nv-radius);
    --bs-list-group-action-hover-bg: var(--nv-surface-muted);
    --bs-list-group-action-active-bg: var(--nv-surface-muted);
    --bs-list-group-active-bg: var(--nv-btn);
    --bs-list-group-active-border-color: var(--nv-btn);
    --bs-list-group-active-color: var(--nv-on-btn);
}

.list-group-item-action {
    transition: background-color 0.15s ease;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--nv-border);
    --bs-table-hover-bg: rgba(var(--nv-primary-rgb), 0.04);
    --bs-table-striped-bg: var(--nv-surface-muted);
    font-size: 0.925rem;
}

.table > thead th,
.table > thead td {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table > :not(caption) > * > * {
    padding: 0.7rem 0.85rem;
}

.table-hover > tbody > tr {
    transition: background-color 0.12s ease;
}

/* I testi .visually-hidden (position absolute) restano dentro la tabella che scorre e non allargano la pagina sul telefono. */
.table-responsive {
    position: relative;
}

.card > .table-responsive:last-child .table,
.card > .table:last-child {
    margin-bottom: 0;
}

.progress {
    --bs-progress-bg: var(--nv-surface-muted);
    --bs-progress-border-radius: 999px;
}

.progress .progress-bar {
    background-color: var(--nv-primary);
    border-radius: 999px;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--nv-btn);
    --bs-nav-pills-link-active-color: var(--nv-on-btn);
    --bs-nav-pills-border-radius: var(--nv-radius-sm);
}

.nav-tabs {
    --bs-nav-tabs-border-color: var(--nv-border);
    --bs-nav-tabs-link-active-bg: var(--nv-surface);
    --bs-nav-tabs-link-active-border-color: var(--nv-border) var(--nv-border) var(--nv-surface);
}

/* Schede delle sezioni (x-tabs): barra chiara, scheda attiva blu notte; vanno a capo, mai barre di scorrimento. */
.nv-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    max-width: 100%;
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
}

.nv-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nv-text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.nv-tab:hover {
    color: var(--nv-text);
    background: var(--nv-surface-muted);
}

.nv-tab:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--nv-primary-rgb), 0.3);
}

.nv-tab.active {
    color: var(--nv-on-btn);
    background: var(--nv-btn);
    box-shadow: 0 1px 3px rgba(var(--nv-btn-rgb), 0.3);
}

@media (max-width: 575.98px) {
    .nv-tabs {
        display: flex;
    }

    .nv-tab {
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
    }
}

.dropdown-menu {
    --bs-dropdown-bg: var(--nv-surface-raised);
    --bs-dropdown-border-color: var(--nv-border);
    --bs-dropdown-border-radius: var(--nv-radius);
    --bs-dropdown-box-shadow: var(--nv-shadow-lg);
    box-shadow: var(--nv-shadow-lg);
}

.modal {
    --bs-modal-bg: var(--nv-surface-raised);
    --bs-modal-border-color: var(--nv-border);
    --bs-modal-border-radius: var(--nv-radius-lg);
}

hr {
    border-color: var(--nv-border);
    opacity: 1;
}

/* ---------- Etichette di stato (x-badge) ---------- */

.badge {
    --bs-badge-font-weight: 550;
    --bs-badge-padding-x: 0.6em;
    --bs-badge-padding-y: 0.38em;
    letter-spacing: 0;
}

.nv-badge {
    border: 1px solid transparent;
}

.nv-badge-neutral {
    color: var(--nv-text-muted);
    background-color: var(--nv-surface-muted);
    border-color: var(--nv-border);
}

.nv-badge-info {
    color: var(--bs-info-text-emphasis);
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info-border-subtle);
}

.nv-badge-primary {
    color: var(--nv-primary-text);
    background-color: var(--nv-primary-subtle);
    border-color: var(--bs-primary-border-subtle);
}

.nv-badge-success {
    color: var(--bs-success-text-emphasis);
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success-border-subtle);
}

.nv-badge-warning {
    color: var(--bs-warning-text-emphasis);
    background-color: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning-border-subtle);
}

.nv-badge-danger {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

/* Etichette chiare scritte direttamente nelle pagine: leggibili anche nel tema scuro. */
[data-bs-theme="dark"] .text-bg-light {
    color: var(--nv-text) !important;
    background-color: var(--nv-surface-muted) !important;
}

/* ---------- Avvisi (x-alert) ---------- */

.alert {
    --bs-alert-border-radius: var(--nv-radius);
    --bs-alert-padding-y: 0.85rem;
    --bs-alert-padding-x: 1rem;
}

.nv-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.nv-alert-icon {
    margin-top: 0.15rem;
}

.nv-alert-body {
    flex: 1 1 auto;
    min-width: 0;
}

.nv-alert.alert-dismissible {
    padding-right: 3rem;
}

/* ---------- Elementi comuni ---------- */

.nv-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bs-emphasis-color);
    white-space: nowrap;
}

.nv-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    color: #ffffff;
    background: var(--nv-brand-mark-bg);
    box-shadow: 0 2px 6px rgba(15, 42, 71, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nv-brand-accent {
    /* Il marchio NutriViva resta blu anche se la pagina di prenotazione ha il colore dello studio (M7.3). */
    color: #13519b;
}

[data-bs-theme="dark"] .nv-brand-accent {
    color: #7fb0ec;
}

/* Evidenziazione gialla "a pennarello", come sul sito NutriViva Creativa (es. una parola di un titolo). */
.nv-highlight {
    padding: 0 0.08em;
    background-image: linear-gradient(transparent 60%, rgba(var(--nv-accent-rgb), 0.6) 60%, rgba(var(--nv-accent-rgb), 0.6) 92%, transparent 92%);
}

[data-bs-theme="dark"] .nv-highlight {
    background-image: linear-gradient(transparent 60%, rgba(var(--nv-accent-rgb), 0.35) 60%, rgba(var(--nv-accent-rgb), 0.35) 92%, transparent 92%);
}

/* Campi: lo sfondo resta quello della superficie anche quando sono attivi. */
.form-control:focus,
.form-select:focus {
    color: var(--nv-text);
    background-color: var(--nv-surface);
}

/* Barra superiore sul telefono: solo il simbolo del marchio, per lasciare spazio ai pulsanti. */
@media (max-width: 575.98px) {
    .nv-brand-compact > span:last-child {
        display: none;
    }
}

.nv-skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1080;
    padding: 0.5rem 1rem;
    background: var(--nv-surface);
    border: 2px solid var(--nv-primary);
    border-radius: var(--nv-radius-sm);
}

/* Riquadro dell'icona (es. intestazioni, riepiloghi, segnaposto) */
.nv-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--nv-radius);
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

.nv-icon-tile-accent {
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

.nv-icon-tile-neutral {
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-placeholder {
    border-style: dashed;
    border-color: var(--nv-border-strong);
    background: transparent;
    box-shadow: none;
}

.nv-page-header {
    margin-top: 0.25rem;
}

.nv-page-title {
    font-size: calc(1.35rem + 0.6vw);
    font-weight: 700;
    letter-spacing: -0.025em;
}

@media (min-width: 1200px) {
    .nv-page-title {
        font-size: 1.75rem;
    }
}

.nv-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    color: #ffffff;
    background: var(--nv-brand-gradient);
}

/* ---------- Layout pubblico e pagine di accesso ---------- */

.nv-public {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nv-container-narrow {
    max-width: 40rem;
}

.nv-container-auth {
    max-width: 27rem;
}

.nv-public-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--nv-border);
    background: rgba(var(--nv-page-bg-rgb), 0.85);
}

.nv-public-footer {
    border-top: 1px solid var(--nv-border);
}

.nv-auth {
    background-color: var(--nv-page-bg);
    background-image:
        radial-gradient(40rem 28rem at 12% -8%, rgba(var(--nv-primary-rgb), 0.13), transparent 70%),
        radial-gradient(34rem 26rem at 105% 108%, rgba(var(--nv-accent-rgb), 0.18), transparent 70%);
    background-attachment: fixed;
}

.nv-auth .nv-public-header,
.nv-auth .nv-public-footer {
    border: 0;
    background: transparent;
}

.nv-auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.nv-auth .card,
.nv-auth-card {
    --bs-card-spacer-x: 1.75rem;
    --bs-card-spacer-y: 1.75rem;
    box-shadow: var(--nv-shadow-lg);
}

.nv-error-code {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

/* ---------- Layout area nutrizionista e backoffice ---------- */

.nv-app {
    min-height: 100vh;
}

.nv-app-main {
    min-width: 0; /* evita lo scorrimento orizzontale con contenuti larghi */
}

.nv-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--nv-border);
    background: rgba(var(--nv-page-bg-rgb), 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
}

@media (min-width: 992px) {
    .nv-topbar {
        padding: 0.5rem 2rem;
    }
}

.nv-brand-compact .nv-brand-mark {
    width: 1.75rem;
    height: 1.75rem;
}

.nv-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.65rem 0.2rem 0.2rem;
    border-radius: 999px;
    color: var(--nv-text);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.nv-user:hover {
    color: var(--nv-text);
    background: var(--nv-surface-muted);
}

.nv-content {
    max-width: 76rem;
    padding: 1.5rem 1rem 3rem;
}

@media (min-width: 992px) {
    .nv-content {
        padding: 2rem 2rem 3.5rem;
    }
}

/* Menu laterale */
.nv-sidebar {
    --bs-offcanvas-bg: var(--nv-surface);
    --bs-offcanvas-width: 18rem;
    background: var(--nv-surface);
}

.nv-sidebar .offcanvas-header {
    border-bottom: 1px solid var(--nv-border);
}

.nv-sidebar .offcanvas-body {
    padding: 1rem 0.85rem;
    gap: 1rem;
}

.nv-sidebar-brand {
    padding: 0.35rem 0.45rem 0;
}

.nv-context {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
}

.nv-context-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--nv-brand-gradient);
}

.nv-context-team .nv-context-avatar {
    color: #0f2a47;
    background: var(--nv-accent);
}

.nv-context-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.nv-context-name {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nv-context-label {
    font-size: 0.775rem;
    color: var(--nv-text-muted);
}

.nv-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nv-nav-group {
    margin: 0 0 0.35rem;
    padding: 0 0.7rem;
    font-size: 0.7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--nv-text-muted);
}

.nv-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    background: transparent;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--nv-text-muted);
    text-align: left;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nv-nav-link .nv-icon {
    transition: color 0.15s ease, transform 0.2s var(--nv-ease);
}

a.nv-nav-link:hover,
button.nv-nav-link:hover {
    color: var(--nv-text);
    background: var(--nv-surface-muted);
}

a.nv-nav-link:hover .nv-icon {
    transform: translateX(1px);
}

.nv-nav-link.active {
    color: var(--nv-text);
    font-weight: 600;
    background: var(--nv-surface);
    border-color: var(--nv-border);
    box-shadow: var(--nv-shadow);
}

.nv-nav-link.active .nv-icon {
    color: var(--nv-primary);
}

.nv-nav-link.active::before {
    content: "";
    position: absolute;
    left: -0.85rem;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--nv-primary);
}

.nv-nav-link.disabled {
    opacity: 0.6;
    cursor: default;
}

.nv-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nv-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    color: #ffffff;
    background: #d6453d;
}

.nv-nav-soon {
    padding: 0.05rem 0.45rem;
    border: 1px solid var(--nv-border);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--nv-text-muted);
}

.nv-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--nv-border);
}

/* "Un servizio di NutriViva Creativa": riquadro blu notte in fondo al menu e pannello informativo. */
.nv-company {
    margin-top: 0.6rem;
}

.nv-company-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.7rem;
    overflow: hidden;
    border-radius: var(--nv-radius);
    color: #ffffff;
    text-decoration: none;
    background: var(--nv-navy-gradient);
    box-shadow: 0 4px 14px rgba(15, 42, 71, 0.25);
    transition: transform 0.2s var(--nv-ease), box-shadow 0.2s var(--nv-ease);
}

/* Bagliore giallo, come le evidenziazioni del sito. */
.nv-company-card::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    top: -1.5rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--nv-accent-rgb), 0.45), transparent 70%);
    pointer-events: none;
}

.nv-company-card:hover,
.nv-company-card[aria-expanded="true"] {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 42, 71, 0.32);
}

.nv-company-card:focus-visible {
    outline: 3px solid rgba(var(--nv-accent-rgb), 0.8);
    outline-offset: 2px;
}

.nv-company-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    color: #0f2a47;
    background: var(--nv-accent);
}

.nv-company-mark-lg {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
}

.nv-company-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.nv-company-kicker {
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.nv-company-name {
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
}

.nv-company-info {
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.15s ease, transform 0.2s var(--nv-ease);
}

.nv-company-card:hover .nv-company-info,
.nv-company-card[aria-expanded="true"] .nv-company-info {
    opacity: 1;
    transform: rotate(-8deg) scale(1.08);
}

.nv-company-panel {
    width: 20rem;
    max-width: calc(100vw - 2rem);
    padding: 0;
    overflow: hidden;
    border-radius: var(--nv-radius-lg);
}

.nv-company-panel-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    overflow: hidden;
    color: #ffffff;
    background: var(--nv-navy-gradient);
}

.nv-company-panel-head::after {
    content: "";
    position: absolute;
    right: -2rem;
    bottom: -2.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--nv-accent-rgb), 0.35), transparent 70%);
}

.nv-company-panel-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nv-company-panel-sub {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.nv-company-panel-body {
    padding: 1rem 1.1rem 1.1rem;
    font-size: 0.875rem;
    white-space: normal;
}

.nv-company-panel-body p {
    color: var(--nv-text-muted);
}

.nv-company-list {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.nv-company-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
}

.nv-company-list .nv-icon {
    color: var(--nv-primary);
}

/* Menu ridotto a sole icone: resta solo il simbolo giallo (il nome resta per i lettori di schermo). */
@media (min-width: 992px) {
    .nv-sidebar-collapsed .nv-company-card {
        justify-content: center;
        padding: 0.45rem;
    }

    .nv-sidebar-collapsed .nv-company-text {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
    }

    .nv-sidebar-collapsed .nv-company-info {
        display: none;
    }
}


.nv-collapse-icon-open {
    display: none;
}

@media (min-width: 992px) {
    .nv-sidebar-wrap {
        flex: 0 0 var(--nv-sidebar-width);
        width: var(--nv-sidebar-width);
        border-right: 1px solid var(--nv-border);
        background: var(--nv-surface);
        transition: flex-basis 0.25s var(--nv-ease), width 0.25s var(--nv-ease);
        /* Sopra il contenuto: il pannello "NutriViva Creativa" si apre sopra le pagine. */
        position: relative;
        z-index: 1030;
    }

    .nv-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .nv-js .nv-collapse-toggle {
        display: flex !important;
    }

    /* Menu ridotto a sole icone: le etichette restano leggibili dai lettori di schermo. */
    .nv-sidebar-collapsed .nv-sidebar-wrap {
        flex-basis: var(--nv-sidebar-collapsed-width);
        width: var(--nv-sidebar-collapsed-width);
    }

    .nv-sidebar-collapsed .nv-sidebar .offcanvas-body {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .nv-sidebar-collapsed .nv-nav-label,
    .nv-sidebar-collapsed .nv-context-text,
    .nv-sidebar-collapsed .nv-brand > span:last-child,
    .nv-sidebar-collapsed .nv-nav-soon,
    .nv-sidebar-collapsed .nv-nav-group {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .nv-sidebar-collapsed .nv-nav-link,
    .nv-sidebar-collapsed .nv-context,
    .nv-sidebar-collapsed .nv-sidebar-brand {
        justify-content: center;
    }

    .nv-sidebar-collapsed .nv-context {
        padding: 0.45rem;
    }

    .nv-sidebar-collapsed .nv-nav-section + .nv-nav-section {
        padding-top: 0.75rem;
        border-top: 1px solid var(--nv-border);
    }

    .nv-sidebar-collapsed .nv-nav-count {
        position: absolute;
        top: 0.1rem;
        right: 0.1rem;
        min-width: 1.05rem;
        height: 1.05rem;
        font-size: 0.62rem;
    }

    .nv-sidebar-collapsed .nv-nav-dot {
        position: absolute;
        top: 0.3rem;
        right: 0.3rem;
        width: 0.5rem;
        height: 0.5rem;
    }

    .nv-sidebar-collapsed .nv-nav-link.active::before {
        left: -0.75rem;
    }

    .nv-sidebar-collapsed .nv-collapse-icon-open {
        display: inline;
    }

    .nv-sidebar-collapsed .nv-collapse-icon-close {
        display: none;
    }
}

/* ---------- Messaggi dal team (M3.8) ---------- */

/* Colore per tipo: bordo sinistro, etichetta e icona. */
.nv-msg-info { --nv-msg-color: var(--nv-primary); --nv-msg-bg: var(--nv-primary-subtle); --nv-msg-text: var(--nv-primary-text); }
.nv-msg-tip { --nv-msg-color: #22863f; --nv-msg-bg: var(--bs-success-bg-subtle); --nv-msg-text: var(--bs-success-text-emphasis); }
.nv-msg-action { --nv-msg-color: var(--nv-accent); --nv-msg-bg: var(--nv-accent-subtle); --nv-msg-text: var(--nv-accent-text); }
.nv-msg-other { --nv-msg-color: var(--nv-border-strong); --nv-msg-bg: var(--nv-surface-muted); --nv-msg-text: var(--nv-text-muted); }

[data-bs-theme="dark"] .nv-msg-tip { --nv-msg-color: #4cc46e; }

.nv-msg {
    position: relative;
    padding: 1rem 1.15rem;
    border: 1px solid var(--nv-border);
    border-left: 4px solid var(--nv-msg-color, var(--nv-primary));
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
}

.nv-msg-list {
    display: grid;
    gap: 0.75rem;
}

.nv-msg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.nv-msg-kind {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nv-msg-text, var(--nv-primary-text));
    background: var(--nv-msg-bg, var(--nv-primary-subtle));
}

/* Etichetta del tipo usata fuori dal riquadro (es. elenco del backoffice). */
.nv-msg-kind-info { --nv-msg-text: var(--nv-primary-text); --nv-msg-bg: var(--nv-primary-subtle); }
.nv-msg-kind-tip { --nv-msg-text: var(--bs-success-text-emphasis); --nv-msg-bg: var(--bs-success-bg-subtle); }
.nv-msg-kind-action { --nv-msg-text: var(--nv-accent-text); --nv-msg-bg: var(--nv-accent-subtle); }
.nv-msg-kind-other { --nv-msg-text: var(--nv-text-muted); --nv-msg-bg: var(--nv-surface-muted); }

.nv-msg-pin {
    display: inline-flex;
    color: var(--nv-accent-text);
}

.nv-msg-new {
    margin-left: auto;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 650;
    color: #ffffff;
    background: #d6453d;
}

.nv-msg-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 650;
}

.nv-msg-body {
    margin-bottom: 0;
    color: var(--nv-text);
}

.nv-msg-excerpt {
    font-size: 0.9rem;
    color: var(--nv-text-muted);
}

.nv-msg-tips {
    display: grid;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.nv-msg-tips li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.nv-msg-tips .nv-icon {
    margin-top: 0.2rem;
    color: var(--nv-msg-color, var(--nv-primary));
}

.nv-msg-action .nv-msg-tips .nv-icon {
    color: var(--nv-accent-text);
}

.nv-msg-cta {
    margin: 1rem 0 0;
}

.nv-msg-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--nv-border);
    font-size: 0.825rem;
}

.nv-msg-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--nv-navy-gradient);
}

.nv-msg-sender {
    font-weight: 600;
}

.nv-msg-team,
.nv-msg-time {
    color: var(--nv-text-muted);
}

.nv-msg-time {
    margin-left: auto;
}

/* Versione breve nella Home: tutto il riquadro è un link alla pagina Messaggi. */
.nv-msg-compact {
    padding: 0.8rem 0.95rem;
    box-shadow: none;
}

.nv-msg-compact .nv-msg-title {
    font-size: 0.95rem;
}

.nv-msg-compact .nv-msg-foot {
    margin-top: 0.6rem;
    padding-top: 0.55rem;
}

.nv-msg-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: var(--nv-radius);
}

.nv-msg-link .nv-msg {
    transition: transform 0.2s var(--nv-ease), box-shadow 0.2s var(--nv-ease), border-color 0.2s ease;
}

.nv-msg-link:hover {
    color: inherit;
}

.nv-msg-link:hover .nv-msg {
    transform: translateY(-1px);
    box-shadow: var(--nv-shadow);
}

.nv-msg-link:focus-visible {
    outline: 3px solid rgba(var(--nv-primary-rgb), 0.35);
    outline-offset: 2px;
}

.nv-msg-unread {
    background: linear-gradient(90deg, var(--nv-msg-bg, var(--nv-primary-subtle)) 0%, var(--nv-surface) 55%);
}

.nv-msg-cell {
    min-width: 18rem;
}

/* Campanella nella barra superiore */
.nv-bell {
    position: relative;
}

.nv-bell-count {
    position: absolute;
    top: 0.1rem;
    right: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border: 2px solid var(--nv-page-bg);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: #d6453d;
}

@media (prefers-reduced-motion: no-preference) {
    .nv-bell-active .nv-icon {
        transform-origin: 50% 10%;
        animation: nv-ring 1.4s ease 0.6s 2;
    }
}

@keyframes nv-ring {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-12deg); }
    20%, 40% { transform: rotate(12deg); }
}

/* Pallini delle novità e campanella «Cosa c'è di nuovo» (M10.9) */
.nv-nav-fresh {
    background: #1f8a4c;
}

.nv-nav-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    margin-left: auto;
    border-radius: 999px;
    background: #22a05a;
    box-shadow: 0 0 0 3px rgba(34, 160, 90, 0.18);
}

.nv-nav-link .nv-nav-count + .nv-nav-dot {
    margin-left: 0.35rem;
}

.nv-bell-menu {
    width: min(21rem, calc(100vw - 2rem));
    padding-bottom: 0.35rem;
}

.nv-bell-title {
    font-weight: 700;
    color: var(--nv-ink);
}

.nv-bell-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    white-space: normal;
}

.nv-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
}

.nv-bell-icon-alert {
    color: #c0392f;
    background: rgba(214, 69, 61, 0.12);
}

.nv-bell-icon-new {
    color: #1f8a4c;
    background: rgba(34, 160, 90, 0.14);
}

[data-bs-theme="dark"] .nv-nav-fresh { background: #23985a; }
[data-bs-theme="dark"] .nv-bell-icon-alert { color: #f08a84; }
[data-bs-theme="dark"] .nv-bell-icon-new { color: #5fd08f; }

.nv-bell-text {
    min-width: 0;
}

/* Orario sotto la riga (M10.9.2) */
.nv-bell-when {
    display: block;
    font-size: 0.75rem;
    color: var(--nv-text-muted);
}

.nv-bell-empty {
    margin: 0;
    padding: 0.35rem 1rem 0.6rem;
    font-size: 0.875rem;
    color: var(--nv-text-muted);
}

.nv-bell-all {
    color: var(--nv-text-muted);
}

/* Sul telefono l'elenco occupa la larghezza dello schermo, con 16 px di margine ai lati. */
@media (max-width: 575.98px) {
    .nv-bell-menu.show {
        position: fixed !important;
        inset: 3.75rem 1rem auto 1rem !important;
        width: auto;
        transform: none !important;
    }
}

/* Scelte a riquadri (tipo, firma, destinatari, pubblicazione) */
.nv-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.6rem;
}

.nv-choice-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.nv-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--nv-border-strong);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.nv-choice:hover {
    border-color: rgba(var(--nv-btn-rgb), 0.5);
}

.nv-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nv-choice:has(.nv-choice-input:checked) {
    border-color: var(--nv-btn);
    background: var(--nv-primary-subtle);
    box-shadow: 0 0 0 1px var(--nv-btn);
}

.nv-choice:has(.nv-choice-input:focus-visible) {
    box-shadow: 0 0 0 0.2rem rgba(var(--nv-primary-rgb), 0.3);
}

.nv-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.5rem;
    color: var(--nv-msg-text, var(--nv-primary-text));
    background: var(--nv-msg-bg, var(--nv-primary-subtle));
}

.nv-choice-info { --nv-msg-text: var(--nv-primary-text); --nv-msg-bg: var(--nv-primary-subtle); }
.nv-choice-tip { --nv-msg-text: var(--bs-success-text-emphasis); --nv-msg-bg: var(--bs-success-bg-subtle); }
.nv-choice-action { --nv-msg-text: var(--nv-accent-text); --nv-msg-bg: var(--nv-accent-subtle); }
.nv-choice-other { --nv-msg-text: var(--nv-text-muted); --nv-msg-bg: var(--nv-surface-muted); }

.nv-choice-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.nv-choice-title {
    font-weight: 600;
    font-size: 0.925rem;
}

.nv-choice-hint {
    font-size: 0.78rem;
    color: var(--nv-text-muted);
}

/* Scelta dei clienti */
.nv-filter {
    max-width: 16rem;
}

.nv-studio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.15rem 1rem;
    max-height: 16rem;
    margin: 0;
    padding: 0.6rem 0.8rem;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface-muted);
}

.nv-studio-list .form-check {
    margin: 0.2rem 0;
}

.nv-js [data-nv-hidden-js] {
    display: none;
}

.nv-preview-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nv-text-muted);
}

/* ---------- Volti del team (M3.10) ---------- */

.nv-person {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    object-fit: cover;
    background: var(--nv-surface-muted);
    box-shadow: 0 0 0 2px var(--nv-surface), 0 1px 3px rgba(15, 42, 71, 0.2);
}

.nv-person-initials {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--nv-navy-gradient);
}

.nv-person-xs { width: 1.5rem; height: 1.5rem; font-size: 0.6rem; }
.nv-person-sm { width: 2rem; height: 2rem; font-size: 0.7rem; }
.nv-person-md { width: 2.5rem; height: 2.5rem; }
.nv-person-lg { width: 4.5rem; height: 4.5rem; font-size: 1.3rem; }
.nv-person-xl { width: 6rem; height: 6rem; font-size: 1.6rem; }

/* Riquadro del Tutor: foto grande accanto al nome */
.nv-tutor-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.nv-tutor-head .nv-person-lg {
    box-shadow: 0 0 0 3px var(--nv-surface), 0 0 0 5px rgba(var(--nv-accent-rgb), 0.7), 0 4px 12px rgba(15, 42, 71, 0.18);
}

/* "Il team": volti sovrapposti nel pannello NutriViva Creativa */
.nv-team-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: -0.25rem 0 1rem;
    padding: 0.6rem 0.7rem;
    border-radius: var(--nv-radius);
    background: var(--nv-surface-muted);
}

.nv-team-faces {
    display: inline-flex;
    flex: 0 0 auto;
}

.nv-team-faces .nv-person + .nv-person {
    margin-left: -0.65rem;
}

.nv-team-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
}

.nv-team-kicker {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nv-text-muted);
}

.nv-msg-avatar-slot {
    display: inline-flex;
}

/* ---------- Integratori (M3.11) ---------- */

.nv-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 1.1rem;
}

.nv-section-title .nv-icon {
    color: var(--nv-primary);
}

/* Banner dello sconto: blu notte con bagliori giallo e verde, codice grande */
.nv-offer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.4rem 1.6rem;
    overflow: hidden;
    border-radius: var(--nv-radius-lg);
    color: #ffffff;
    background:
        radial-gradient(22rem 14rem at 100% 0%, rgba(var(--nv-accent-rgb), 0.28), transparent 70%),
        radial-gradient(18rem 12rem at 0% 120%, rgba(59, 176, 92, 0.3), transparent 70%),
        var(--nv-navy-gradient);
    box-shadow: var(--nv-shadow-lg);
}

.nv-offer-body {
    flex: 1 1 22rem;
    min-width: 0;
}

.nv-offer-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.nv-offer-kicker .nv-icon {
    color: var(--nv-accent);
}

.nv-offer-code-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.9rem;
    margin-bottom: 0.4rem;
}

.nv-offer-code {
    padding: 0.05rem 0.6rem;
    border: 2px dashed rgba(var(--nv-accent-rgb), 0.85);
    border-radius: var(--nv-radius-sm);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--nv-accent);
}

.nv-offer-discount {
    font-size: 1.05rem;
    font-weight: 650;
}

.nv-offer-text {
    max-width: 36rem;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.nv-offer-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 12rem;
}

.nv-offer .btn-outline-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: rgba(255, 255, 255, 0.55);
    --bs-btn-hover-color: #0f2a47;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-active-color: #0f2a47;
    --bs-btn-active-bg: #ffffff;
}

.nv-offer .btn-primary {
    --bs-btn-color: #0f2a47;
    --bs-btn-bg: var(--nv-accent);
    --bs-btn-border-color: var(--nv-accent);
    --bs-btn-hover-color: #0f2a47;
    --bs-btn-hover-bg: #f7d35e;
    --bs-btn-hover-border-color: #f7d35e;
    --bs-btn-active-color: #0f2a47;
    --bs-btn-active-bg: #e6b51f;
    --bs-btn-active-border-color: #e6b51f;
}

.nv-offer-note {
    font-size: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Schede dei prodotti */
.nv-supp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.85rem;
}

.nv-supp {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
    transition: transform 0.2s var(--nv-ease), box-shadow 0.2s var(--nv-ease), border-color 0.2s ease;
}

.nv-supp:hover {
    transform: translateY(-2px);
    border-color: var(--nv-border-strong);
    box-shadow: var(--nv-shadow);
}

.nv-supp-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.nv-supp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

.nv-supp-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
}

.nv-supp-brand {
    margin: 0;
    font-size: 0.78rem;
    color: var(--nv-text-muted);
}

.nv-supp-star {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

.nv-supp-text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.875rem;
    color: var(--nv-text-muted);
}

.nv-supp-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.nv-supp-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.nv-supp-goal {
    padding: 0.12rem 0.55rem;
    border: 1px solid var(--bs-info-border-subtle);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bs-info-text-emphasis);
    background: var(--bs-info-bg-subtle);
}

.nv-supp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

/* Ricerca e filtri */
.nv-supp-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.nv-supp-search .input-group {
    flex: 1 1 18rem;
}

.nv-supp-brand-select {
    flex: 0 1 14rem;
}

.nv-goal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.nv-goal-filter {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--nv-border-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--nv-text);
    text-decoration: none;
    background: var(--nv-surface);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nv-goal-filter:hover {
    color: var(--nv-text);
    border-color: var(--nv-btn);
}

.nv-goal-filter.active {
    color: var(--nv-on-btn);
    border-color: var(--nv-btn);
    background: var(--nv-btn);
}

/* Backoffice: obiettivi */
.nv-goal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--nv-border);
}

.nv-goal-form {
    display: flex;
    flex: 1 1 18rem;
    gap: 0.4rem;
}

.nv-goal-position {
    width: 5rem;
    flex: 0 0 5rem;
}

.nv-goal-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nv-goal-chip {
    position: relative;
    cursor: pointer;
}

.nv-goal-chip span {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--nv-border-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nv-goal-chip .nv-choice-input:checked + span {
    color: var(--nv-on-btn);
    border-color: var(--nv-btn);
    background: var(--nv-btn);
}

.nv-goal-chip .nv-choice-input:focus-visible + span {
    box-shadow: 0 0 0 0.2rem rgba(var(--nv-primary-rgb), 0.3);
}

/* ---------- Home del nutrizionista (G2) ---------- */

.nv-hello {
    margin-bottom: 1.5rem;
}

.nv-hello-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

/* Card di riepilogo */
.nv-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.9rem;
}

.nv-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-lg);
    color: inherit;
    text-decoration: none;
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
    transition: transform 0.2s var(--nv-ease), box-shadow 0.2s var(--nv-ease), border-color 0.2s ease;
}

.nv-stat::after {
    content: "";
    position: absolute;
    right: -2.5rem;
    top: -2.5rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--nv-stat-bg);
    opacity: 0.7;
    pointer-events: none;
}

.nv-stat:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: var(--nv-border-strong);
    box-shadow: var(--nv-shadow);
}

.nv-stat:focus-visible {
    outline: 3px solid rgba(var(--nv-primary-rgb), 0.35);
    outline-offset: 2px;
}

.nv-stat-primary { --nv-stat-color: var(--nv-primary-text); --nv-stat-bg: var(--nv-primary-subtle); }
.nv-stat-success { --nv-stat-color: var(--bs-success-text-emphasis); --nv-stat-bg: var(--bs-success-bg-subtle); }
.nv-stat-accent { --nv-stat-color: var(--nv-accent-text); --nv-stat-bg: var(--nv-accent-subtle); }
.nv-stat-info { --nv-stat-color: var(--bs-info-text-emphasis); --nv-stat-bg: var(--bs-info-bg-subtle); }

.nv-stat-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nv-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    color: var(--nv-stat-color);
    background: var(--nv-stat-bg);
}

.nv-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nv-text-muted);
}

.nv-stat-go {
    margin-left: auto;
    color: var(--nv-text-muted);
    transition: transform 0.2s var(--nv-ease);
}

.nv-stat:hover .nv-stat-go {
    transform: translateX(3px);
}

.nv-stat-value {
    font-size: 2rem;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--nv-ink);
    font-variant-numeric: tabular-nums;
}

.nv-stat-suffix {
    margin-left: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--nv-text-muted);
}

.nv-stat-sub {
    font-size: 0.8rem;
    color: var(--nv-text-muted);
}

.nv-stat-alert {
    align-self: flex-start;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

/* Cosa fare adesso */
.nv-todo {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(var(--nv-accent-rgb), 0.55);
    border-left: 4px solid var(--nv-accent);
    border-radius: var(--nv-radius);
    background: linear-gradient(90deg, var(--nv-accent-subtle) 0%, var(--nv-surface) 70%);
}

.nv-todo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.nv-todo-title .nv-icon {
    color: var(--nv-accent-text);
}

.nv-todo-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-todo-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface);
}

.nv-todo-text {
    flex: 1 1 18rem;
    min-width: 0;
    font-size: 0.9rem;
}

/* Agenda di oggi */
.nv-day {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-day-item {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.nv-day-time {
    display: flex;
    flex: 0 0 4.2rem;
    flex-direction: column;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    border-radius: var(--nv-radius-sm);
    font-weight: 700;
    text-align: center;
    color: var(--nv-on-btn);
    background: var(--nv-btn);
    font-variant-numeric: tabular-nums;
}

.nv-day-time span {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.8;
}

.nv-day-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nv-day-body:hover {
    color: inherit;
    border-color: var(--nv-border-strong);
    background: var(--nv-surface-muted);
}

.nv-day-name {
    font-weight: 600;
}

.nv-day-meta {
    font-size: 0.8rem;
    color: var(--nv-text-muted);
}

.nv-day-past .nv-day-time {
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-day-past .nv-day-body {
    opacity: 0.7;
}

/* Elenco dei servizi nella Home */
.nv-service-list {
    display: grid;
    gap: 0.15rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.nv-service-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--nv-border);
}

.nv-service-list li:last-child {
    border-bottom: 0;
}

/* "Per te dal team": ultima risorsa dell'Academy e sconto integratori */
.nv-tip-link {
    display: flex;
    /* In una griglia: senza min-width 0 il titolo su una riga allargava la pagina sul telefono. */
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nv-tip-link:hover {
    color: inherit;
    border-color: var(--nv-border-strong);
    background: var(--nv-surface-muted);
}

.nv-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.65rem;
    color: var(--nv-res-color, var(--nv-primary-text));
    background: var(--nv-res-bg, var(--nv-primary-subtle));
}

.nv-tip-offer .nv-tip-icon {
    color: #0f2a47;
    background: var(--nv-accent);
}

.nv-tip-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nv-text-muted);
}

.nv-tip-title {
    display: block;
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Agenda settimanale (G2): un riquadro per giorno, "oggi" evidenziato */
.nv-week {
    display: grid;
    gap: 0.6rem;
}

.nv-week-day {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
}

.nv-week-empty {
    background: var(--nv-surface-muted);
}

.nv-week-today {
    border-color: var(--nv-primary);
    box-shadow: 0 0 0 1px var(--nv-primary);
}

.nv-week-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.nv-week-empty .nv-week-date {
    margin-bottom: 0.15rem;
}

.nv-week-badge {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--nv-on-primary);
    background: var(--nv-primary);
}

.nv-week .nv-day-time {
    flex-basis: 7.5rem;
    font-size: 0.9rem;
}

/* Passi del brief (G2): cerchi numerati */
.nv-stepper ol {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.nv-stepper li {
    position: relative;
    flex: 1 0 5.5rem;
}

.nv-stepper li::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--nv-border-strong);
}

.nv-stepper li:first-child::before {
    display: none;
}

.nv-stepper li.done::before,
.nv-stepper li.current::before {
    background: var(--nv-primary);
}

.nv-stepper a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--nv-text-muted);
    text-align: center;
    text-decoration: none;
}

.nv-step-dot {
    position: relative;
    z-index: 1; /* sopra la linea che unisce i passi */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--nv-border-strong);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--nv-surface);
    transition: transform 0.2s var(--nv-ease);
}

.nv-stepper a:hover .nv-step-dot {
    transform: scale(1.08);
}

.nv-stepper .done .nv-step-dot {
    color: #ffffff;
    border-color: var(--nv-primary);
    background: var(--nv-primary);
}

.nv-stepper .current .nv-step-dot {
    color: var(--nv-on-btn);
    border-color: var(--nv-btn);
    background: var(--nv-btn);
    box-shadow: 0 0 0 4px rgba(var(--nv-primary-rgb), 0.18);
}

.nv-step-label {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
}

.nv-stepper .current .nv-step-label {
    font-weight: 700;
    color: var(--nv-ink);
}

/* Servizi (G2): icona e avanzamento in tre tappe */
.nv-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

.nv-service-on .nv-service-icon {
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
}

.nv-track {
    display: flex;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-track li {
    flex: 1 1 0;
    min-width: 0;
}

.nv-track li::before {
    content: "";
    display: block;
    height: 0.35rem;
    margin-bottom: 0.25rem;
    border-radius: 999px;
    background: var(--nv-surface-muted);
}

.nv-track li.done::before {
    background: var(--nv-primary);
}

.nv-track li.current::before {
    background: var(--nv-primary);
    opacity: 0.6;
}

.nv-track li:last-child.current::before {
    background: #22863f;
    opacity: 1;
}

.nv-track-waiting li.current::before {
    background: var(--nv-accent);
    opacity: 1;
}

.nv-track span {
    display: block;
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--nv-text-muted);
}

.nv-track li.current span {
    color: var(--nv-ink);
}

/* ---------- Academy (M3.12) ---------- */

/* Colore per tipo di risorsa */
.nv-res-video { --nv-res-color: #d6453d; --nv-res-bg: rgba(214, 69, 61, 0.1); }
.nv-res-lesson { --nv-res-color: #7a4cc2; --nv-res-bg: rgba(122, 76, 194, 0.1); }
.nv-res-pdf { --nv-res-color: var(--nv-primary); --nv-res-bg: var(--nv-primary-subtle); }
.nv-res-audio { --nv-res-color: #22863f; --nv-res-bg: var(--bs-success-bg-subtle); }
.nv-res-link { --nv-res-color: var(--nv-accent-text); --nv-res-bg: var(--nv-accent-subtle); }

[data-bs-theme="dark"] .nv-res-video { --nv-res-color: #f08a84; }
[data-bs-theme="dark"] .nv-res-audio { --nv-res-color: #4cc46e; }
[data-bs-theme="dark"] .nv-res-lesson { --nv-res-color: #b998ee; }

.nv-res-choice-video { --nv-msg-text: #d6453d; --nv-msg-bg: rgba(214, 69, 61, 0.1); }
.nv-res-choice-lesson { --nv-msg-text: #7a4cc2; --nv-msg-bg: rgba(122, 76, 194, 0.1); }
[data-bs-theme="dark"] .nv-res-choice-lesson { --nv-msg-text: #b998ee; }
.nv-res-choice-pdf { --nv-msg-text: var(--nv-primary-text); --nv-msg-bg: var(--nv-primary-subtle); }
.nv-res-choice-audio { --nv-msg-text: var(--bs-success-text-emphasis); --nv-msg-bg: var(--bs-success-bg-subtle); }
.nv-res-choice-link { --nv-msg-text: var(--nv-accent-text); --nv-msg-bg: var(--nv-accent-subtle); }

.nv-res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0.9rem;
}

/* Scheda della risorsa: copertina colorata con l'icona del tipo, poi testi */
.nv-res {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    color: inherit;
    text-decoration: none;
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
    transition: transform 0.2s var(--nv-ease), box-shadow 0.2s var(--nv-ease), border-color 0.2s ease;
}

.nv-res:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: var(--nv-border-strong);
    box-shadow: var(--nv-shadow);
}

.nv-res:focus-visible {
    outline: 3px solid rgba(var(--nv-primary-rgb), 0.35);
    outline-offset: 2px;
}

.nv-res-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5.5rem;
    color: var(--nv-res-color);
    background:
        radial-gradient(12rem 6rem at 85% 0%, rgba(var(--nv-accent-rgb), 0.18), transparent 70%),
        var(--nv-res-bg);
}

.nv-res-cover .nv-icon {
    padding: 0.6rem;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
}

.nv-res-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem 1rem;
}

.nv-res-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.nv-res-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nv-res-color, var(--nv-primary-text));
    background: var(--nv-res-bg, var(--nv-primary-subtle));
}

.nv-res-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--nv-text-muted);
}

.nv-res-new {
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f2a47;
    background: var(--nv-accent);
}

/* «Nuova per te» (M10.9.1): arrivata dopo l'ultima visita alla sezione */
.nv-res-fresh {
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff;
    background: #1f8a4c;
}

[data-bs-theme="dark"] .nv-res-fresh { background: #23985a; }

.nv-res-fresh-count {
    font-weight: 600;
    color: #1f8a4c;
}

[data-bs-theme="dark"] .nv-res-fresh-count { color: #5fd08f; }

.nv-res-title {
    font-weight: 650;
    line-height: 1.3;
}

.nv-res-summary {
    flex: 1 1 auto;
    font-size: 0.85rem;
    color: var(--nv-text-muted);
}

.nv-res-topic {
    align-self: flex-start;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--nv-border-strong);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--nv-text-muted);
}

/* Pagina della risorsa */
.nv-res-page {
    overflow: hidden;
}

.nv-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a1524;
}

.nv-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.nv-audio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: var(--nv-radius);
    background: var(--nv-surface-muted);
}

.nv-audio audio {
    flex: 1 1 16rem;
    min-width: 0;
}

.nv-res-text {
    margin-top: 1rem;
}

/* Lezione scritta (M10.8): testo da leggere comodo anche dal telefono, con i modelli da copiare */
.nv-lesson {
    margin-top: 1.25rem;
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.65;
}

.nv-lesson h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.6rem;
}

.nv-lesson h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.nv-lesson > :first-child {
    margin-top: 0;
}

.nv-lesson p,
.nv-lesson ul,
.nv-lesson ol {
    margin-bottom: 0.9rem;
}

.nv-lesson li + li {
    margin-top: 0.3rem;
}

.nv-lesson a {
    overflow-wrap: anywhere;
}

.nv-lesson hr {
    margin: 1.75rem 0;
}

.nv-lesson code {
    font-size: 0.9em;
}

.nv-lesson-model {
    margin: 0 0 1rem;
    border: 1px solid var(--nv-res-color, var(--bs-border-color));
    border-left-width: 4px;
    border-radius: 0.6rem;
    background: var(--nv-res-bg, var(--bs-tertiary-bg));
    overflow: hidden;
}

.nv-lesson-model-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0;
    margin: 0;
}

.nv-lesson-model-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--nv-res-color, var(--bs-secondary-color));
}

.nv-lesson-model-head .btn {
    background: var(--bs-body-bg);
}

.nv-lesson-model-text {
    padding: 0.5rem 0.9rem 0.8rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Backoffice: le regole di scrittura accanto al testo */
.nv-lesson-help {
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    background: var(--bs-tertiary-bg);
}

.nv-lesson-help-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 0.85rem;
}

.nv-lesson-help-list dt {
    font-weight: 400;
}

.nv-lesson-help-list dd {
    margin: 0;
}

@media (max-width: 575.98px) {
    .nv-lesson-help-list {
        grid-template-columns: 1fr;
    }

    .nv-lesson-help-list dd {
        margin-bottom: 0.4rem;
    }
}

.nv-flip {
    transform: scaleX(-1);
}

/* "Aiutami a scrivere" (M3.9): riquadro con sfumatura blu e giallo */
.nv-ai-card {
    border-color: rgba(var(--nv-primary-rgb), 0.3);
    background:
        radial-gradient(20rem 10rem at 100% 0%, rgba(var(--nv-accent-rgb), 0.16), transparent 70%),
        linear-gradient(135deg, var(--nv-primary-subtle) 0%, var(--nv-surface) 60%);
}

.nv-ai-tile {
    color: #ffffff;
    background: var(--nv-brand-gradient);
}

.nv-ai-privacy {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: var(--nv-text-muted);
}

.nv-ai-status {
    color: var(--nv-text-muted);
}

.nv-ai-busy .nv-ai-tile .nv-icon {
    animation: nv-ai-spin 1.2s linear infinite;
}

@keyframes nv-ai-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .nv-ai-busy .nv-ai-tile .nv-icon {
        animation: none;
    }
}

/* Stato vuoto: icona, titolo e una riga di spiegazione */
.nv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-align: center;
}

.nv-empty .nv-icon-tile {
    margin-bottom: 0.75rem;
}

/* ---------- Animazioni (solo se il sistema non chiede di ridurre il movimento) ---------- */

@keyframes nv-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes nv-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* Il contenuto entra dal basso, un blocco dopo l'altro (effetto "a cascata"). */
    .nv-content > *,
    .nv-stagger > *,
    .nv-auth-main > * {
        animation: nv-rise 0.5s var(--nv-ease) both;
    }

    .nv-content > :nth-child(2), .nv-stagger > :nth-child(2), .nv-auth-main > :nth-child(2) { animation-delay: 0.05s; }
    .nv-content > :nth-child(3), .nv-stagger > :nth-child(3), .nv-auth-main > :nth-child(3) { animation-delay: 0.1s; }
    .nv-content > :nth-child(4), .nv-stagger > :nth-child(4) { animation-delay: 0.15s; }
    .nv-content > :nth-child(5), .nv-stagger > :nth-child(5) { animation-delay: 0.2s; }
    .nv-content > :nth-child(6), .nv-stagger > :nth-child(6) { animation-delay: 0.25s; }
    .nv-content > :nth-child(n+7), .nv-stagger > :nth-child(n+7) { animation-delay: 0.3s; }

    .nv-alert.fade.show {
        animation: nv-rise 0.35s var(--nv-ease) both;
    }

    .dropdown-menu.show {
        animation: nv-fade 0.15s ease both;
    }

    /* Passaggio morbido tra le pagine (browser recenti; gli altri cambiano pagina normalmente). */
    @view-transition {
        navigation: auto;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.18s;
    }

    /*
     * Solo sugli schermi grandi: sotto i 992 px il menu è un pannello a scomparsa e un nome di transizione
     * sul contenitore lo chiuderebbe sotto lo sfondo scuro del pannello.
     */
    @media (min-width: 992px) {
        .nv-sidebar-wrap {
            view-transition-name: nv-sidebar;
        }
    }

    .nv-topbar {
        view-transition-name: nv-topbar;
    }
}

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

/* ---------- Pagine specifiche (invariato nella sostanza, colori dai token) ---------- */

/* QR della 2FA e codici di emergenza (Account → Sicurezza) */
.nv-qr {
    display: inline-block;
    line-height: 0;
}

.nv-recovery-codes {
    columns: 2;
    max-width: 24rem;
}

/* Registro attività */
.nv-audit-table td {
    vertical-align: top;
}

/* Brief: barra di avanzamento (larghezze come classi, niente stili inline per la CSP) */
/* a passi del 5% */
.nv-progress-0 { width: 0; }
.nv-progress-5 { width: 5%; }
.nv-progress-10 { width: 10%; }
.nv-progress-15 { width: 15%; }
.nv-progress-20 { width: 20%; }
.nv-progress-25 { width: 25%; }
.nv-progress-30 { width: 30%; }
.nv-progress-35 { width: 35%; }
.nv-progress-40 { width: 40%; }
.nv-progress-45 { width: 45%; }
.nv-progress-50 { width: 50%; }
.nv-progress-55 { width: 55%; }
.nv-progress-60 { width: 60%; }
.nv-progress-65 { width: 65%; }
.nv-progress-70 { width: 70%; }
.nv-progress-75 { width: 75%; }
.nv-progress-80 { width: 80%; }
.nv-progress-85 { width: 85%; }
.nv-progress-90 { width: 90%; }
.nv-progress-95 { width: 95%; }
.nv-progress-100 { width: 100%; }

.nv-progress-thin {
    height: 0.4rem;
}

/* Brief: righe ripetibili (sedi, prestazioni) */
.nv-repeatable-row .mb-3 {
    margin-bottom: 0.25rem !important;
}

/* Testi su più righe (es. brief nel backoffice) */
.nv-pre-line {
    white-space: pre-line;
}

/* File del brief: anteprime ed elenco */
.nv-file-thumb {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    flex: 0 0 3.5rem;
    background: var(--nv-surface-muted);
}

.nv-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.nv-file-list .min-w-0 {
    min-width: 0;
}

/* Richieste al Tutor (M3.1): messaggi del cliente, del team e note interne */
.nv-thread .nv-message-client {
    margin-right: 2rem;
}

.nv-thread .nv-message-team {
    margin-left: 2rem;
    background-color: var(--bs-success-bg-subtle);
}

.nv-thread .nv-message-internal {
    margin-left: 2rem;
    background-color: var(--bs-warning-bg-subtle);
    border-style: dashed;
}

/* Riferimento tecnico (M3.2): testo a capo, mai eseguito */
.nv-pre-wrap {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Prenotazione online (M4.4): campo trappola per i bot, fuori dallo schermo (non display:none). */
.nv-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Prenotazione online: pulsanti degli orari, comodi da toccare sul telefono. */
.nv-slot {
    min-width: 4.5rem;
}

/* BioLink (M3.6): anteprima indicativa a forma di telefono, senza immagini esterne. */
.nv-phone {
    max-width: 280px;
    border: 10px solid #0f2a47;
    border-radius: 2rem;
    background: var(--nv-surface);
    box-shadow: var(--nv-shadow-lg);
}

.nv-phone-screen {
    min-height: 420px;
    padding: 1.5rem 1rem;
    border-radius: 1.4rem;
    background: var(--bs-tertiary-bg);
}

.nv-phone-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.nv-phone-avatar-empty {
    background: var(--bs-secondary-bg);
    border: 2px dashed var(--bs-border-color);
}

.nv-phone-button {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: var(--nv-surface);
    border: 1px solid var(--bs-border-color);
    font-size: 0.875rem;
}

@media (min-width: 1200px) {
    .nv-sticky-top {
        position: sticky;
        top: 5rem; /* sotto la barra superiore fissa */
    }
}

/* ---------- Tutor sempre a portata di mano (G2.1) ---------- */

/* Riquadro "Il tuo Tutor" in cima al menu: giallo NutriViva, diverso dalle altre voci. */
.nv-tutor-box {
    display: grid;
    gap: 0.6rem;
    padding: 0.7rem;
    border: 1px solid rgba(244, 196, 48, 0.55);
    border-radius: var(--nv-radius);
    background: linear-gradient(135deg, var(--nv-accent-subtle), var(--nv-surface) 90%);
    box-shadow: var(--nv-shadow-sm);
}

.nv-tutor-box.is-active {
    border-color: var(--nv-accent);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.25);
}

.nv-tutor-box-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    border-radius: var(--nv-radius-sm);
    color: inherit;
    text-decoration: none;
}

.nv-tutor-box-main:hover {
    color: inherit;
}

.nv-tutor-box-main:hover .nv-tutor-box-name {
    color: var(--nv-primary-text);
}

.nv-tutor-box-main:focus-visible {
    outline: 3px solid rgba(var(--nv-primary-rgb), 0.35);
    outline-offset: 2px;
}

.nv-tutor-box-face {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.nv-tutor-box-face .nv-person {
    width: 2.4rem;
    height: 2.4rem;
    box-shadow: 0 0 0 2px var(--nv-surface), 0 0 0 3.5px var(--nv-accent);
}

.nv-tutor-box-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f2a47;
    background: var(--nv-accent);
}

.nv-tutor-box-count {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    color: #ffffff;
    background: var(--bs-danger);
    box-shadow: 0 0 0 2px var(--nv-surface);
}

.nv-tutor-box-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.nv-tutor-box-kicker {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--nv-accent-text);
}

.nv-tutor-box-name {
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.15s var(--nv-ease);
}

.nv-tutor-box-sub {
    font-size: 0.75rem;
    color: var(--nv-text-muted);
}

.nv-tutor-box-sub.is-unread {
    font-weight: 600;
    color: var(--bs-danger-text-emphasis);
}

.nv-tutor-box-write {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Menu ridotto: resta solo il volto con il numero (il resto resta per i lettori di schermo). */
@media (min-width: 992px) {
    .nv-sidebar-collapsed .nv-tutor-box {
        justify-items: center;
        padding: 0.45rem;
    }

    .nv-sidebar-collapsed .nv-tutor-box-text {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
    }

    .nv-sidebar-collapsed .nv-tutor-box-write {
        display: none;
    }
}

/* Barra in alto: "Scrivi al Tutor" con il volto, e il menu "+" delle azioni rapide. */
.nv-quick-tutor {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding-left: 0.7rem;
    padding-right: 0.85rem;
}

.nv-quick-tutor-face {
    padding-left: 0.3rem;
}

.nv-quick-face {
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
    .nv-quick-tutor {
        padding-right: 0.45rem;
        padding-left: 0.45rem;
    }

    .nv-quick-tutor-face {
        padding: 0.2rem;
    }
}

.nv-quick-menu {
    min-width: 15rem;
}

.nv-quick-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.nv-quick-menu .dropdown-item .nv-icon {
    color: var(--nv-text-muted);
}

/* "Chiedi al tuo Tutor" nelle pagine dei servizi e nel modulo della richiesta. */
.nv-ask {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.nv-ask .nv-person {
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px var(--nv-surface), 0 0 0 3.5px var(--nv-accent);
}

/* ---------- Backoffice e prenotazione online (G3) ---------- */

/* Iniziali dello studio: quattro toni, scelti dal nome. */
.nv-studio-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nv-studio-avatar-1 { color: var(--nv-primary-text); background: var(--nv-primary-subtle); }
.nv-studio-avatar-2 { color: var(--nv-accent-text); background: var(--nv-accent-subtle); }
.nv-studio-avatar-3 { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.nv-studio-avatar-4 { color: var(--bs-info-text-emphasis); background: var(--bs-info-bg-subtle); }

.nv-studio-avatar-lg {
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    font-size: 1rem;
}

/* Volto o iniziali accanto a un nome, nelle tabelle. */
.nv-row-who {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.nv-row-unread > td:first-child {
    box-shadow: inset 3px 0 0 var(--bs-danger);
}

.nv-count-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
    text-decoration: none;
}

.nv-count-link:hover {
    color: var(--nv-on-btn);
    background: var(--nv-btn);
}

/* Barra dei filtri degli elenchi: etichette piccole, sfondo tenue. */
.nv-filters {
    background: var(--nv-surface-muted);
    box-shadow: none;
}

.nv-filters .form-label {
    font-size: 0.7rem !important;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nv-text-muted);
}

/* Code di lavoro della Home del backoffice. */
.nv-queue-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nv-queue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-queue-icon-primary { color: var(--nv-primary-text); background: var(--nv-primary-subtle); }
.nv-queue-icon-info { color: var(--bs-info-text-emphasis); background: var(--bs-info-bg-subtle); }
.nv-queue-icon-warning { color: var(--nv-accent-text); background: var(--nv-accent-subtle); }
.nv-queue-icon-danger { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }
.nv-queue-icon-success { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }

.nv-queue-card.is-empty .nv-queue-icon {
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-queue {
    margin: 0 0 0.6rem;
    padding: 0;
    list-style: none;
}

.nv-queue-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--nv-border);
}

.nv-queue-row:last-child {
    border-bottom: 0;
}

.nv-queue-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.nv-queue-title {
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

a.nv-queue-title {
    color: var(--nv-ink);
    text-decoration: none;
}

a.nv-queue-title:hover {
    color: var(--nv-primary-text);
    text-decoration: underline;
}

.nv-queue-meta,
.nv-queue-when {
    font-size: 0.78rem;
    color: var(--nv-text-muted);
}

.nv-queue-when {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nv-queue-progress {
    display: block;
    max-width: 12rem;
    height: 0.3rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--nv-surface-muted);
}

.nv-queue-progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--nv-primary);
}

.nv-queue-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--nv-text-muted);
}

.nv-queue-empty .nv-icon {
    flex: 0 0 auto;
    color: var(--bs-success-text-emphasis);
}

.nv-queue-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.nv-queue-more .nv-icon {
    transition: transform 0.2s var(--nv-ease);
}

.nv-queue-more:hover .nv-icon {
    transform: translateX(2px);
}

/* Prenotazione online: riquadro dello studio. */
.nv-book-hero {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background:
        radial-gradient(circle at 100% 0, rgba(244, 196, 48, 0.18), transparent 45%),
        var(--nv-surface);
    box-shadow: var(--nv-shadow-sm);
}

.nv-book-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--nv-text-muted);
}

/* Passi della prenotazione: stessi cerchi del brief, ma non cliccabili. */
.nv-stepper .nv-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--nv-text-muted);
    text-align: center;
}

.nv-stepper-book .nv-step-label {
    font-size: 0.78rem;
}

/* Passo 1: prestazioni e sedi. */
.nv-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.875rem;
}

.nv-book-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nv-book-meta .nv-icon {
    color: var(--nv-primary);
}

.nv-book-places {
    display: grid;
    gap: 0.5rem;
}

.nv-book-place {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    font-weight: 600;
    color: var(--nv-ink);
    background: var(--nv-surface);
    text-decoration: none;
    transition: border-color 0.15s var(--nv-ease), background-color 0.15s var(--nv-ease), transform 0.15s var(--nv-ease);
}

.nv-book-place > .nv-icon:first-child {
    color: var(--nv-primary);
}

.nv-book-place:hover,
.nv-book-place:focus-visible {
    color: var(--nv-ink);
    border-color: var(--nv-primary);
    background: var(--nv-primary-subtle);
    transform: translateY(-1px);
}

.nv-book-place-any {
    border-style: dashed;
}

.nv-book-place-go {
    margin-left: auto;
    color: var(--nv-text-muted);
}

/* Passo 2: scelta riepilogata e orari a "pillola". */
.nv-book-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    background: var(--nv-surface);
}

.nv-book-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.65rem;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

.nv-book-day {
    padding: 0.85rem 0;
    border-top: 1px solid var(--nv-border);
}

.nv-book-date {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.nv-book-date-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.85rem;
    font-weight: 750;
    color: var(--nv-on-btn);
    background: var(--nv-btn);
}

.nv-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--nv-border-strong);
    border-radius: 999px;
    font-weight: 650;
    color: var(--nv-ink);
    background: var(--nv-surface);
    text-decoration: none;
    transition: background-color 0.15s var(--nv-ease), color 0.15s var(--nv-ease), border-color 0.15s var(--nv-ease);
}

.nv-slot:hover,
.nv-slot:focus-visible {
    color: var(--nv-on-btn);
    border-color: var(--nv-btn);
    background: var(--nv-btn);
}

.nv-slot-place {
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.1;
    opacity: 0.85;
}

.nv-slot:has(.nv-slot-place) {
    border-radius: var(--nv-radius-sm);
}

/* Passi 3 e 4: riepilogo con icone e conferma. */
.nv-book-summary {
    display: grid;
    gap: 0.75rem;
}

.nv-book-summary > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.5rem;
}

.nv-book-summary dt {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nv-text-muted);
}

.nv-book-summary dt .nv-icon {
    color: var(--nv-primary);
}

.nv-book-summary dd {
    margin: 0;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .nv-book-summary > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.nv-book-done {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--bs-success-border-subtle);
    border-radius: var(--nv-radius);
    background: var(--bs-success-bg-subtle);
}

.nv-book-done-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--bs-success-text-emphasis);
    animation: nv-pop 0.45s var(--nv-ease) both;
}

@keyframes nv-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nv-book-done-icon {
        animation: none;
    }
}

/* ---------- Consigli del team (M3.13) ---------- */

/* Firma del team: simbolo giallo di NutriViva Creativa al posto della foto di una persona. */
.nv-team-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: #0f2a47;
    background: var(--nv-accent);
}

.nv-person-md.nv-team-mark {
    width: 2.5rem;
    height: 2.5rem;
}

/* Home del nutrizionista: "Il consiglio della settimana". */
.nv-weekly-tip {
    border-color: rgba(244, 196, 48, 0.55);
    background:
        radial-gradient(circle at 100% 0, rgba(244, 196, 48, 0.14), transparent 40%),
        var(--nv-surface);
}

.nv-weekly-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    color: #0f2a47;
    background: var(--nv-accent);
}

/* Il messaggio dentro il riquadro: senza un secondo bordo né sfondo. */
.nv-msg.nv-msg-plain {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Backoffice: proposte da rivedere. */
.nv-tip-card {
    border-left: 4px solid var(--nv-accent);
}

.nv-tip-topic {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

.nv-tip-date {
    width: auto;
}

/* ---------- Regole dei consigli (M3.14) ---------- */

/* Argomenti a scelta: caselle in due colonne, piccole e tutte cliccabili. */
.nv-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.nv-topic-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    font-size: 0.8rem;
    line-height: 1.2;
    background: var(--nv-surface);
    cursor: pointer;
}

.nv-topic-check:has(input:checked) {
    border-color: var(--nv-primary);
    background: var(--nv-primary-subtle);
}

/* Regole sempre attive: elenco a scomparsa, in sola lettura. */
.nv-rules {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface-muted);
}

.nv-rules summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.nv-rules-list {
    margin: 0.6rem 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
}

.nv-rules-list li + li {
    margin-top: 0.3rem;
}

/* ---------- Abbonamento (M5.1) ---------- */

.nv-bill-list {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.nv-bill-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.nv-bill-list .nv-icon {
    flex: 0 0 auto;
    margin-top: 0.2rem;
    color: var(--nv-primary);
}

.nv-bill-notes {
    padding-left: 1.1rem;
}

.nv-bill-notes li + li {
    margin-top: 0.4rem;
}

/* ---------- Piano di attivazione del cliente (M7.1) ---------- */

.nv-plan-next {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

.nv-plan-next-done {
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
}

.nv-plan-next-wait {
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-plan-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-plan-step {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.35rem 0.7rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--nv-border);
    border-right: 1px solid var(--nv-border);
}

/* 6 passi: 2 colonne su tablet, 3 su schermo grande. */
@media (min-width: 768px) {
    .nv-plan-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .nv-plan-steps { grid-template-columns: repeat(3, 1fr); }
}

.nv-plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-plan-step.is-fatto .nv-plan-icon { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.nv-plan-step.is-team .nv-plan-icon { color: var(--nv-on-btn); background: var(--nv-btn); }
.nv-plan-step.is-cliente .nv-plan-icon { color: var(--nv-accent-text); background: var(--nv-accent-subtle); }
.nv-plan-step.is-problema .nv-plan-icon { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }

.nv-plan-step.is-team {
    background: rgba(var(--nv-primary-rgb), 0.05);
}

.nv-plan-step.is-problema {
    background: rgba(220, 53, 69, 0.05);
}

.nv-plan-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.nv-plan-label {
    font-weight: 650;
}

.nv-plan-state {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nv-text-muted);
}

.nv-plan-step.is-team .nv-plan-state { color: var(--nv-primary-text); }
.nv-plan-step.is-cliente .nv-plan-state { color: var(--nv-accent-text); }
.nv-plan-step.is-problema .nv-plan-state { color: var(--bs-danger-text-emphasis); }
.nv-plan-step.is-fatto .nv-plan-state { color: var(--bs-success-text-emphasis); }

.nv-plan-detail {
    font-size: 0.82rem;
    color: var(--nv-text-muted);
}

.nv-plan-action {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.25rem;
}

/* Scheda Servizi: una riga per servizio, apribile. */
.nv-svc > summary {
    list-style: none;
}

.nv-svc > summary::-webkit-details-marker {
    display: none;
}

.nv-svc-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border-radius: var(--nv-radius);
}

.nv-svc-summary:hover {
    background: var(--nv-surface-muted);
}

.nv-svc-summary:focus-visible {
    outline: 3px solid rgba(var(--nv-primary-rgb), 0.35);
    outline-offset: -3px;
}

.nv-svc-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.nv-svc-name {
    font-weight: 650;
}

.nv-svc-turn {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--nv-text-muted);
    background: var(--nv-surface-muted);
}

.nv-svc-turn.is-team { color: var(--nv-on-btn); background: var(--nv-btn); }
.nv-svc-turn.is-cliente { color: var(--nv-accent-text); background: var(--nv-accent-subtle); }
.nv-svc-turn.is-fatto { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }

.nv-svc-chevron {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--nv-text-muted);
    transition: transform 0.2s var(--nv-ease);
}

.nv-svc[open] .nv-svc-chevron {
    transform: rotate(90deg);
}

.nv-svc-meta,
.nv-svc-warnings {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.2rem;
    font-size: 0.82rem;
    color: var(--nv-text-muted);
}

.nv-svc-warnings {
    gap: 0.35rem;
}

.nv-svc-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nv-svc-bar {
    width: 7rem;
}

.nv-svc-next {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--nv-text);
}

.nv-svc[open] > .card-body {
    border-top: 1px solid var(--nv-border);
}

/* Primi passi nella Home (M7.4) */
.nv-first-steps {
    border-color: rgba(var(--nv-primary-rgb), 0.35);
}

.nv-first-steps-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1rem;
}

.nv-first-steps-head h2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nv-first-steps-head h2 .nv-icon {
    color: var(--nv-primary-text);
}

.nv-first-steps-bar {
    flex: 1 0 100%;
    max-width: none;
}

.nv-first-steps-list {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    list-style: none;
}

.nv-first-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.55rem 0.5rem;
    border-radius: var(--nv-radius-sm);
}

.nv-first-step + .nv-first-step {
    border-top: 1px solid var(--nv-border);
}

.nv-first-step-mark {
    display: inline-flex;
    flex: 0 0 1.75rem;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid rgba(var(--nv-primary-rgb), 0.45);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nv-primary-text);
}

.nv-first-step.is-done .nv-first-step-mark {
    border-color: var(--bs-success);
    background: var(--bs-success);
    color: #fff;
}

.nv-first-step-body {
    display: flex;
    flex: 1 1 14rem;
    flex-direction: column;
    min-width: 0;
}

.nv-first-step-label {
    font-weight: 600;
}

.nv-first-step.is-done .nv-first-step-label {
    font-weight: 500;
    color: var(--nv-text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(var(--nv-text-rgb), 0.35);
}

.nv-first-step-text {
    font-size: 0.85rem;
    color: var(--nv-text-muted);
}

.nv-first-step-btn {
    margin-left: auto;
}

/* Tour al primo accesso (M7.4): posizioni impostate da app.js via CSSOM */
.nv-tour {
    position: fixed;
    inset: 0;
    z-index: 1090;
}

.nv-tour-shade {
    position: absolute;
    inset: 0;
    background: transparent;
}

.nv-tour.is-centered .nv-tour-shade {
    background: rgba(15, 23, 42, 0.55);
}

.nv-tour-spot {
    position: fixed;
    border-radius: var(--nv-radius);
    box-shadow: 0 0 0 200vmax rgba(15, 23, 42, 0.55);
    outline: 2px solid var(--nv-primary);
    outline-offset: 2px;
    pointer-events: none;
}

.nv-tour-pop {
    position: fixed;
    width: min(23rem, calc(100vw - 24px));
    padding: 1rem 1.1rem 0.9rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-lg);
    background: var(--nv-surface-raised, var(--nv-surface));
    box-shadow: var(--nv-shadow-lg);
    color: var(--nv-text);
}

.nv-tour.is-centered .nv-tour-pop {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nv-tour-pop:focus {
    outline: none;
}

.nv-tour-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.nv-tour-count {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--nv-primary-text);
}

.nv-tour-close {
    font-size: 0.75rem;
}

.nv-tour-title {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.nv-tour-text {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    color: var(--nv-text-muted);
}

.nv-tour-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nv-tour-dots {
    display: inline-flex;
    gap: 0.3rem;
    margin-right: auto;
}

.nv-tour-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--nv-border-strong);
}

.nv-tour-dot.is-active {
    width: 1.1rem;
    border-radius: 999px;
    background: var(--nv-primary);
}

@media (prefers-reduced-motion: no-preference) {
    .nv-tour-spot,
    .nv-tour-pop {
        transition: left 0.2s var(--nv-ease), top 0.2s var(--nv-ease), width 0.2s var(--nv-ease), height 0.2s var(--nv-ease);
    }

    .nv-tour-dot {
        transition: width 0.2s var(--nv-ease), background-color 0.2s var(--nv-ease);
    }
}

/* Agenda a calendario (M7.2): giorno, settimana, mese. Posizioni per orario impostate da app.js (CSSOM). */
.nv-cal-c1 { --nv-cal-bg: #e3edfa; --nv-cal-bar: #2a6fc2; --nv-cal-ink: #0f3a6e; }
.nv-cal-c2 { --nv-cal-bg: #e3f4e8; --nv-cal-bar: #2e9e57; --nv-cal-ink: #14532d; }
.nv-cal-c3 { --nv-cal-bg: #efe7fa; --nv-cal-bar: #7c4dcc; --nv-cal-ink: #3f1d7a; }
.nv-cal-c4 { --nv-cal-bg: #fdeedd; --nv-cal-bar: #e07b1a; --nv-cal-ink: #7a3a05; }
.nv-cal-c5 { --nv-cal-bg: #def3f3; --nv-cal-bar: #1a9a9a; --nv-cal-ink: #0b4f4f; }

[data-bs-theme="dark"] .nv-cal-c1 { --nv-cal-bg: rgba(96, 157, 230, 0.2); --nv-cal-bar: #6ea8ec; --nv-cal-ink: #d9e8fb; }
[data-bs-theme="dark"] .nv-cal-c2 { --nv-cal-bg: rgba(74, 200, 120, 0.18); --nv-cal-bar: #5bc985; --nv-cal-ink: #d4f3df; }
[data-bs-theme="dark"] .nv-cal-c3 { --nv-cal-bg: rgba(160, 120, 235, 0.2); --nv-cal-bar: #ab8bef; --nv-cal-ink: #e8defb; }
[data-bs-theme="dark"] .nv-cal-c4 { --nv-cal-bg: rgba(240, 150, 60, 0.18); --nv-cal-bar: #f0a256; --nv-cal-ink: #fbe3cb; }
[data-bs-theme="dark"] .nv-cal-c5 { --nv-cal-bg: rgba(60, 190, 190, 0.18); --nv-cal-bar: #4fc4c4; --nv-cal-ink: #d0f2f2; }

.nv-cal {
    --nv-cal-hour: 3.75rem;
    padding: 1rem;
}

.nv-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nv-cal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.nv-cal-title {
    margin: 0 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.nv-flip {
    transform: scaleX(-1);
}

.nv-cal-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin: 0.6rem 0 0.9rem;
    font-size: 0.85rem;
    color: var(--nv-text-muted);
}

.nv-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-cal-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nv-cal-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    background: var(--nv-cal-bar);
}

.nv-cal-dot-open {
    border: 1px solid var(--nv-border-strong);
    background: var(--nv-surface-muted);
}

/* Griglia oraria (giorno e settimana); senza app.js resta un elenco per giorno */
.nv-cal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
}

.nv-cal-hours {
    display: none;
}

.nv-cal-col {
    min-width: 0;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface);
}

.nv-cal-col.is-today {
    border-color: var(--nv-primary);
}

.nv-cal-col.is-closed {
    background: repeating-linear-gradient(135deg, var(--nv-surface-muted) 0 6px, transparent 6px 12px);
}

.nv-cal-dayhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    margin: 0;
    padding: 0.45rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.nv-cal-dayname {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.nv-cal-dayname:hover {
    color: var(--nv-primary-text);
    text-decoration: underline;
}

.nv-cal-col.is-past .nv-cal-dayname {
    color: var(--nv-text-muted);
}

.nv-cal-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    border-radius: 999px;
    color: var(--nv-primary-text);
}

.nv-cal-add:hover {
    background: var(--nv-primary-subtle);
}

.nv-cal-closed {
    flex-basis: 100%;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nv-text-muted);
}

.nv-cal-slots {
    position: relative;
    padding: 0 0.45rem 0.45rem;
}

.nv-cal-open,
.nv-cal-ghost {
    display: none;
}

.nv-cal-none {
    margin: 0;
    font-size: 0.8rem;
    color: var(--nv-text-muted);
}

.nv-cal-events {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-cal-event {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.3rem 0.5rem;
    overflow: hidden;
    border-left: 3px solid var(--nv-cal-bar);
    border-radius: 6px;
    background: var(--nv-cal-bg);
    color: var(--nv-cal-ink);
    font-size: 0.8rem;
    line-height: 1.25;
    text-decoration: none;
}

.nv-cal-event:hover,
.nv-cal-event:focus-visible {
    color: var(--nv-cal-ink);
    box-shadow: var(--nv-shadow);
}

.nv-cal-event.is-past {
    opacity: 0.6;
}

.nv-cal-event-time {
    font-weight: 600;
}

.nv-cal-event-name {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nv-cal-event-meta {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0.85;
}

/* Con app.js: appuntamenti disposti per orario (giorno sempre, settimana da tablet in su). */
.nv-cal-grid.is-timed {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
}

.nv-cal-grid.is-timed .nv-cal-hours {
    display: block;
}

.nv-cal-grid.is-timed .nv-cal-col {
    border: 0;
    border-left: 1px solid var(--nv-border);
    border-radius: 0;
}

.nv-cal-grid.is-timed .nv-cal-col.is-today .nv-cal-dayhead {
    color: var(--nv-primary-text);
    box-shadow: inset 0 -2px 0 var(--nv-primary);
}

.nv-cal-grid.is-timed .nv-cal-dayhead {
    align-content: flex-start;
    height: 3.6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--nv-border);
}

.nv-cal-grid.is-timed .nv-cal-slots {
    padding: 0;
    background-image: repeating-linear-gradient(to bottom, var(--nv-border) 0 1px, transparent 1px var(--nv-cal-hour));
}

.nv-cal-grid.is-timed.can-create .nv-cal-col:not(.is-past):not(.is-closed) .nv-cal-slots {
    cursor: pointer;
}

.nv-cal-grid.is-timed .nv-cal-hours .nv-cal-slots {
    background: none;
}

.nv-cal-hour {
    display: block;
    height: var(--nv-cal-hour);
    padding: 0 0.4rem 0 0;
    font-size: 0.7rem;
    line-height: 1;
    text-align: right;
    color: var(--nv-text-muted);
    transform: translateY(-0.35rem);
}

.nv-cal-hour:first-child {
    transform: none;
}

.nv-cal-grid.is-timed .nv-cal-none {
    display: none;
}

.nv-cal-grid.is-timed .nv-cal-open {
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    background: var(--nv-cal-bg);
    box-shadow: inset 3px 0 0 var(--nv-cal-bar);
    opacity: 0.45;
    pointer-events: none;
}

.nv-cal-grid.is-timed .nv-cal-event {
    position: absolute;
    right: 3px;
    left: 3px;
    z-index: 1;
    min-height: 1.3rem;
}

.nv-cal-grid.is-timed .nv-cal-ghost {
    position: absolute;
    right: 3px;
    left: 3px;
    z-index: 2;
    padding: 0.15rem 0.4rem;
    border: 1px dashed var(--nv-primary);
    border-radius: 6px;
    background: var(--nv-primary-subtle);
    color: var(--nv-primary-text);
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
}

.nv-cal-grid.is-timed .nv-cal-ghost.is-visible {
    display: block;
}

.nv-cal-grid.is-timed.is-day {
    grid-template-columns: 3.6rem minmax(0, 1fr);
}

.nv-cal-grid.is-timed.is-day .nv-cal-event {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 0.6rem;
}

.nv-cal-grid.is-timed.is-day .nv-cal-dayhead {
    height: 2.6rem;
}

@media (min-width: 768px) {
    .nv-cal-grid.is-timed:not(.is-day) {
        grid-template-columns: 3.6rem repeat(7, minmax(0, 1fr));
    }
}

/* Vista mese */
.nv-cal-weekdays,
.nv-cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.nv-cal-weekdays span {
    padding: 0 0 0.35rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nv-text-muted);
}

.nv-cal-month-grid {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    list-style: none;
}

.nv-cal-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    min-height: 6.2rem;
    padding: 0.3rem;
    border-right: 1px solid var(--nv-border);
    border-bottom: 1px solid var(--nv-border);
    background: var(--nv-surface);
}

.nv-cal-cell:nth-child(7n) {
    border-right: 0;
}

.nv-cal-cell.is-out {
    background: var(--nv-surface-muted);
}

.nv-cal-cell.is-out .nv-cal-cell-date {
    color: var(--nv-text-muted);
}

.nv-cal-cell.is-closed {
    background: repeating-linear-gradient(135deg, var(--nv-surface-muted) 0 6px, transparent 6px 12px);
}

.nv-cal-cell-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nv-text);
    text-decoration: none;
}

.nv-cal-cell-date:hover {
    background: var(--nv-surface-muted);
}

.nv-cal-cell.is-today .nv-cal-cell-date {
    background: var(--nv-primary);
    color: var(--nv-on-primary);
}

.nv-cal-cell-closed {
    font-size: 0.68rem;
    color: var(--nv-text-muted);
}

.nv-cal-chips {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-cal-chip {
    display: flex;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.05rem 0.3rem;
    border-left: 3px solid var(--nv-cal-bar);
    border-radius: 4px;
    background: var(--nv-cal-bg);
    color: var(--nv-cal-ink);
    font-size: 0.72rem;
    line-height: 1.35;
    text-decoration: none;
}

.nv-cal-chip:hover {
    color: var(--nv-cal-ink);
}

.nv-cal-chip.is-past {
    opacity: 0.6;
}

.nv-cal-chip-time {
    font-weight: 600;
}

.nv-cal-chip-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nv-cal-more {
    font-size: 0.72rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .nv-cal {
        padding: 0.75rem;
    }

    .nv-cal-title {
        flex-basis: 100%;
        margin: 0.2rem 0 0;
    }

    .nv-cal-cell {
        min-height: 3.6rem;
        padding: 0.2rem;
    }

    /* Sul telefono, nel mese, ogni appuntamento è un pallino colorato. */
    .nv-cal-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
    }

    .nv-cal-chip {
        width: 0.5rem;
        height: 0.5rem;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--nv-cal-bar);
    }

    .nv-cal-chip-time,
    .nv-cal-chip-text,
    .nv-cal-cell-closed {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .nv-cal-more {
        font-size: 0.65rem;
    }
}

.nv-cal-now {
    display: none;
}

.nv-cal-grid.is-timed .nv-cal-now {
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    z-index: 3;
    height: 2px;
    background: #d93838;
    pointer-events: none;
}

.nv-cal-grid.is-timed .nv-cal-now[hidden] {
    display: none;
}

.nv-cal-grid.is-timed .nv-cal-now::before {
    position: absolute;
    top: -4px;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d93838;
    content: "";
}

/* Configurazione guidata delle prenotazioni (M7.2) */
.nv-setup-ready {
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--bs-success-border-subtle);
    border-radius: var(--nv-radius-sm);
    background: var(--bs-success-bg-subtle);
}

.nv-setup-ready-icon {
    color: var(--bs-success);
}

.nv-setup-steps {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-setup-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface);
}

.nv-setup-step.is-current {
    border-color: var(--nv-primary);
    box-shadow: 0 0 0 1px var(--nv-primary);
}

.nv-setup-step.is-locked {
    background: var(--nv-surface-muted);
}

.nv-setup-mark {
    display: inline-flex;
    flex: 0 0 1.9rem;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 2px solid rgba(var(--nv-primary-rgb), 0.45);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--nv-primary-text);
}

.nv-setup-step.is-done .nv-setup-mark {
    border-color: var(--bs-success);
    background: var(--bs-success);
    color: #fff;
}

.nv-setup-step.is-locked .nv-setup-mark {
    border-color: var(--nv-border-strong);
    color: var(--nv-text-muted);
}

.nv-setup-body {
    display: flex;
    flex: 1 1 16rem;
    flex-direction: column;
    min-width: 0;
}

.nv-setup-label {
    font-weight: 600;
}

.nv-setup-text {
    font-size: 0.88rem;
}

.nv-setup-need {
    font-size: 0.78rem;
    color: var(--nv-text-muted);
}

.nv-setup-state {
    margin-left: auto;
}

.nv-step-next {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--nv-border);
}

/* Settimana per orario: oggi è già evidenziato in colore, il badge resta solo per i lettori di schermo. */
.nv-cal-grid.is-timed:not(.is-day) .nv-week-badge {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Personalizza le prenotazioni (M7.3) */
.nv-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.nv-swatch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    border: 1px solid var(--nv-border);
    border-radius: 999px;
    background: var(--nv-surface);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-check:checked + .nv-swatch-label {
    border-color: var(--nv-primary);
    box-shadow: 0 0 0 2px rgba(var(--nv-primary-rgb), 0.35);
    font-weight: 600;
}

.btn-check:focus-visible + .nv-swatch-label {
    outline: 2px solid var(--nv-primary);
    outline-offset: 2px;
}

.nv-swatch-dot {
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
}

.nv-sw-1 { background: #13519b; }
.nv-sw-2 { background: #4f7a5a; }
.nv-sw-3 { background: #2e6b3f; }
.nv-sw-4 { background: #0f7c80; }
.nv-sw-5 { background: #6a4c9c; }
.nv-sw-6 { background: #8a3e6b; }
.nv-sw-7 { background: #b4532a; }
.nv-sw-8 { background: #44546a; }
.nv-sw-custom { background: conic-gradient(#e5484d, #f5a524, #30a46c, #0091ff, #8e4ec6, #e5484d); }

.nv-color-code {
    max-width: 8rem;
    font-family: var(--bs-font-monospace);
}

.nv-logo-current {
    max-width: 10rem;
    max-height: 4rem;
    padding: 0.35rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    background: #fff;
    object-fit: contain;
}

.nv-book-logo {
    flex: 0 0 auto;
    max-width: 7rem;
    max-height: 3.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

.nv-book-welcome {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    color: var(--nv-text-muted);
}

.nv-brand-preview {
    padding: 1rem;
    border: 1px dashed var(--nv-border-strong);
    border-radius: var(--nv-radius);
    background: var(--nv-page-bg);
}

.nv-brand-preview .nv-book-place {
    pointer-events: none;
}

@media (min-width: 992px) {
    .nv-sticky-preview {
        position: sticky;
        top: 5rem;
    }
}

/* Pagina di attesa del pagamento (M5.3) */
.nv-wait {
    max-width: 40rem;
    margin: 0 auto;
}

.nv-wait-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.nv-wait-links .btn {
    text-align: left;
}

.nv-wait-amount {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

.nv-pay-ready {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--bs-success-border-subtle);
    border-radius: var(--nv-radius-sm);
    background: var(--bs-success-bg-subtle);
}

/* Altri servizi Creativa (M8.1) */
.nv-extra-hero {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(244, 196, 48, 0.2), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(var(--nv-primary-rgb), 0.08), transparent 50%),
        var(--nv-surface);
}

.nv-extra-hero p:last-child {
    max-width: 46rem;
    color: var(--nv-text-muted);
}

.nv-extra-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nv-accent-text);
}

.nv-extra-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .nv-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .nv-extra-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nv-extra-card {
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nv-extra-card:hover {
    border-color: rgba(var(--nv-primary-rgb), 0.35);
    box-shadow: var(--nv-shadow-lg);
}

@media (prefers-reduced-motion: no-preference) {
    .nv-extra-grid .nv-extra-card:hover {
        transform: translateY(-2px);
    }
}

.nv-extra-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.nv-extra-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    background: var(--nv-primary-subtle);
    color: var(--nv-primary-text);
}

.nv-extra-badge {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

.nv-extra-badge.is-novita {
    color: var(--nv-on-primary);
    background: var(--nv-primary);
}

.nv-extra-name {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.nv-extra-summary {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    color: var(--nv-text-muted);
}

.nv-extra-details {
    display: grid;
    gap: 0.3rem;
    margin: 0 0 0.9rem;
    padding: 0;
    font-size: 0.88rem;
    list-style: none;
}

.nv-extra-details li {
    display: flex;
    gap: 0.4rem;
}

.nv-extra-details .nv-icon {
    flex: 0 0 auto;
    margin-top: 0.2rem;
    color: var(--bs-success);
}

/* Pulsanti della card (M10.10): «Scopri di più sul sito» e «Chiedi info», in fondo alla card */
.nv-extra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

/* Video di esempio (M10.11): finestra stretta, adatta ai video verticali dei Reel */
.nv-extra-video-modal .modal-dialog {
    max-width: 460px;
}

.nv-extra-video {
    display: block;
    width: 100%;
    max-height: 75vh;
    background: #000;
    border-radius: 0.5rem;
}

.nv-extra-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(var(--nv-accent-rgb), 0.55);
    border-left: 4px solid var(--nv-accent);
    border-radius: var(--nv-radius);
    background: linear-gradient(90deg, var(--nv-accent-subtle) 0%, var(--nv-surface) 75%);
}

.nv-extra-ask > .min-w-0 {
    flex: 1 1 16rem;
}

.nv-extra-ask-icon {
    color: var(--nv-accent-text);
}

/* Elenco nel backoffice */
.nv-extra-admin-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-extra-admin-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0.8rem 1rem;
}

.nv-extra-admin-main {
    flex: 1 1 18rem;
    min-width: 0;
}

.nv-extra-admin-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.nv-extra-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nv-rot-up .nv-icon {
    transform: rotate(-90deg);
}

.nv-rot-down .nv-icon {
    transform: rotate(90deg);
}

.nv-extra-move-gap {
    display: inline-block;
    width: 2.25rem;
}

/* Guida e Novità (M8.2) */
.nv-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.nv-guide-hero {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(244, 196, 48, 0.2), transparent 45%),
        radial-gradient(circle at 0 100%, rgba(var(--nv-primary-rgb), 0.08), transparent 50%),
        var(--nv-surface);
}

.nv-guide-hero > p:not(.nv-extra-kicker) {
    color: var(--nv-text-muted);
}

.nv-guide-search {
    max-width: 38rem;
}

.nv-guide-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 992px) {
    .nv-guide-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nv-guide-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.nv-guide-articles {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv-guide-articles a {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.6rem;
    border-radius: var(--nv-radius-sm);
    color: inherit;
    text-decoration: none;
}

.nv-guide-articles a:hover,
.nv-guide-articles a:focus-visible {
    background: var(--nv-surface-muted);
}

.nv-guide-article-title {
    font-weight: 600;
    color: var(--nv-primary-text);
}

.nv-guide-article-summary {
    font-size: 0.85rem;
    color: var(--nv-text-muted);
}

.nv-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .nv-guide-layout {
        grid-template-columns: minmax(0, 1fr) 17rem;
    }
}

.nv-guide-article {
    max-width: 52rem;
    min-width: 0;
}

.nv-guide-lead {
    font-size: 1.05rem;
    color: var(--nv-text-muted);
}

.nv-guide-body {
    line-height: 1.65;
}

.nv-guide-body h2 {
    margin: 1.75rem 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.nv-guide-body ul,
.nv-guide-body ol {
    padding-left: 1.25rem;
}

.nv-guide-body li + li {
    margin-top: 0.3rem;
}

.nv-guide-steps {
    counter-reset: nv-step;
    padding-left: 0 !important;
    list-style: none;
}

.nv-guide-steps > li {
    position: relative;
    padding-left: 2.4rem;
    counter-increment: nv-step;
}

.nv-guide-steps > li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--nv-primary-subtle);
    color: var(--nv-primary-text);
    font-size: 0.85rem;
    font-weight: 700;
    content: counter(nv-step);
}

.nv-guide-shot {
    margin: 1.25rem 0;
}

.nv-guide-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius);
    box-shadow: var(--nv-shadow);
}

.nv-guide-shot.is-phone img {
    max-width: 18rem;
}

.nv-guide-shot figcaption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: var(--nv-text-muted);
}

.nv-guide-tip {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--bs-info-border-subtle);
    border-radius: var(--nv-radius-sm);
    background: var(--bs-info-bg-subtle);
    font-size: 0.92rem;
}

.nv-guide-tip > .nv-icon {
    flex: 0 0 auto;
    margin-top: 0.2rem;
    color: var(--nv-primary-text);
}

.nv-guide-tip.is-warning {
    border-color: rgba(var(--nv-accent-rgb), 0.55);
    background: var(--nv-accent-subtle);
}

.nv-guide-tip.is-warning > .nv-icon {
    color: var(--nv-accent-text);
}

.nv-guide-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nv-border);
}

.nv-guide-pager-link {
    display: flex;
    flex-direction: column;
    max-width: 48%;
    font-weight: 600;
    text-decoration: none;
}

.nv-guide-pager-link.is-next {
    margin-left: auto;
    text-align: right;
}

.nv-guide-toc {
    display: none;
}

@media (min-width: 1200px) {
    .nv-guide-toc {
        position: sticky;
        top: 5rem;
        display: block;
        align-self: start;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        font-size: 0.85rem;
    }
}

.nv-guide-toc ul {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.nv-guide-toc li a,
.nv-guide-toc .is-current {
    display: block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.nv-guide-toc .is-current {
    background: var(--nv-primary-subtle);
    color: var(--nv-primary-text);
    font-weight: 600;
}

.nv-guide-toc-section {
    margin: 0.5rem 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--nv-text-muted);
}

/* Novità */
.nv-changelog {
    max-width: 46rem;
}

.nv-changelog-month + .nv-changelog-month {
    margin-top: 1.5rem;
}

.nv-changelog-month-title {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nv-text-muted);
}

.nv-changelog-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.4rem;
    list-style: none;
}

.nv-changelog-list::before {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.85rem;
    width: 2px;
    background: var(--nv-border);
    content: "";
}

.nv-changelog-item {
    position: relative;
}

.nv-changelog-item + .nv-changelog-item {
    margin-top: 0.75rem;
}

.nv-changelog-dot {
    position: absolute;
    top: 1rem;
    left: -2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid var(--nv-surface);
    border-radius: 50%;
    background: var(--nv-primary);
    color: var(--nv-on-primary);
}

.nv-changelog-dot.is-miglioramento {
    background: var(--bs-success);
    color: #fff;
}

.nv-changelog-dot.is-correzione {
    background: var(--nv-border-strong);
    color: var(--nv-text);
}

.nv-changelog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    font-size: 0.8rem;
    color: var(--nv-text-muted);
}

.nv-changelog-new {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--nv-accent-text);
    background: var(--nv-accent-subtle);
}

/* ==========================================================================
   Documenti legali (M9.1): testo, link nel piè di pagina, documenti aggiornati
   ========================================================================== */
.nv-legal-body {
    line-height: 1.65;
    max-width: 46rem;
}

.nv-legal-body h2 {
    margin: 1.75rem 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.nv-legal-body h2:first-child {
    margin-top: 0;
}

.nv-legal-body ul {
    padding-left: 1.25rem;
}

.nv-legal-body li + li {
    margin-top: 0.3rem;
}

.nv-legal-body table {
    font-size: 0.9rem;
}

.nv-public-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
}

.nv-public-footer-inner.is-centered {
    justify-content: center;
    text-align: center;
}

.nv-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
}

.nv-public-footer-inner .nv-legal-links {
    margin-left: auto;
}

.nv-public-footer-inner.is-centered .nv-legal-links {
    margin-left: 0;
    justify-content: center;
}

.nv-legal-links a {
    color: var(--nv-text-muted);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.nv-legal-links a:hover,
.nv-legal-links a:focus-visible {
    color: var(--nv-primary-text);
}

.nv-company-legal {
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.nv-legal-chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--nv-border);
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--nv-text);
    background: var(--nv-surface);
}

a.nv-legal-chip:hover,
a.nv-legal-chip:focus-visible {
    border-color: var(--nv-primary);
    color: var(--nv-primary-text);
}

.nv-legal-chip.is-current {
    font-weight: 600;
    border-color: transparent;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

.nv-legal-update {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.nv-legal-update li {
    padding: 0.9rem 1rem;
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius, 0.75rem);
}

/* Etichetta «Essenziale» accanto al titolo di una domanda (M10.2) */
.nv-essential {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    vertical-align: 0.1em;
    /* Giallo pieno con testo scuro: si vede subito, anche nel tema scuro. */
    color: #3d2c00;
    background: var(--nv-accent);
}

/* Settimana tipo delle prenotazioni (M10.3): un giorno per riga, fasce e pause, copia su altri giorni */
.nv-week-howto {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    color: var(--bs-secondary-color);
}

.nv-week-howto li + li {
    margin-top: 0.15rem;
}

.nv-week {
    border: 1px solid var(--nv-border);
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface);
}

.nv-day {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0.5rem 1rem;
    align-items: start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--nv-border);
}

.nv-day.has-error {
    background: var(--bs-danger-bg-subtle);
}

.nv-day-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 31px;
}

.nv-day-state {
    color: var(--bs-secondary-color);
}

.nv-day:not(.is-closed) .nv-day-state {
    color: var(--bs-success-text-emphasis);
    font-weight: 600;
}

.nv-day-bands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.nv-band {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nv-band input[type="time"] {
    width: 7.25rem;
}

.nv-band-gap {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--nv-accent-subtle);
    color: var(--nv-accent-text);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.nv-day-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.nv-day-copy {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border: 1px dashed var(--nv-border-strong);
    border-radius: var(--nv-radius-sm);
    background: var(--nv-surface-muted);
}

.nv-day-closed {
    display: none;
    min-height: 31px;
    line-height: 31px;
}

/* Il giorno chiuso nasconde le fasce solo con JavaScript attivo: senza, restano compilabili. */
[data-nv-week-ready] .nv-day.is-closed .nv-day-bands,
[data-nv-week-ready] .nv-day.is-closed .nv-day-tools,
[data-nv-week-ready] .nv-day.is-closed .nv-day-copy {
    display: none !important;
}

[data-nv-week-ready] .nv-day.is-closed .nv-day-closed {
    display: block;
}

.nv-week-save {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--nv-surface-muted);
    border-radius: 0 0 var(--nv-radius-sm) var(--nv-radius-sm);
}

.nv-weekday {
    display: inline-block;
    min-width: 6.5rem;
    font-weight: 600;
}

/* Stato finale della configurazione: attive oppure cosa manca */
.nv-booking-state {
    display: flex;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--bs-warning-border-subtle);
    border-radius: var(--nv-radius-sm);
    background: var(--bs-warning-bg-subtle);
}

.nv-booking-state-icon {
    color: var(--bs-warning-text-emphasis);
}

.nv-booking-state.is-active {
    border-color: var(--bs-success-border-subtle);
    background: var(--bs-success-bg-subtle);
}

.nv-booking-state.is-active .nv-booking-state-icon {
    color: var(--bs-success);
}

@media (max-width: 575.98px) {
    .nv-day {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.75rem;
    }

    .nv-band input[type="time"] {
        width: 6.75rem;
    }
}

/* Prenotazione online, passo 2 (M10.6): calendario del mese e orari del giorno, con i colori dello studio */
.nv-pick-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 620px) {
    .nv-pick-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: start;
    }

    .nv-pick-times {
        padding-left: 1.5rem;
        border-left: 1px solid var(--nv-border);
    }
}

.nv-pick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.nv-pick-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.nv-pick-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--nv-border-strong);
    border-radius: 999px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--nv-ink);
    text-decoration: none;
    background: var(--nv-surface);
}

.nv-pick-nav:hover,
.nv-pick-nav:focus-visible {
    border-color: var(--nv-btn);
    color: var(--nv-on-btn);
    background: var(--nv-btn);
}

.nv-pick-nav.is-disabled {
    opacity: 0.35;
}

.nv-pick-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.2rem;
    table-layout: fixed;
}

.nv-pick-grid th {
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--bs-secondary-color);
}

.nv-pick-grid abbr {
    text-decoration: none;
    cursor: default;
}

.nv-pick-grid td {
    padding: 0;
    text-align: center;
}

.nv-pick-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 2.75rem;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
}

.nv-pick-day.is-outside {
    color: var(--bs-secondary-color);
    opacity: 0.35;
}

.nv-pick-day.is-off {
    color: var(--bs-secondary-color);
    opacity: 0.6;
}

.nv-pick-day.is-free {
    font-weight: 700;
    color: var(--nv-primary-text);
    background: var(--nv-primary-subtle);
}

.nv-pick-day.is-free:hover,
.nv-pick-day.is-free:focus-visible {
    color: var(--nv-on-btn);
    background: var(--nv-btn-hover);
}

.nv-pick-day.is-selected,
.nv-pick-day.is-selected:hover {
    color: var(--nv-on-btn);
    background: var(--nv-btn);
    box-shadow: 0 0 0 3px rgba(var(--nv-btn-rgb), 0.2);
}

.nv-pick-day.is-off.is-selected {
    color: var(--nv-ink);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--nv-border-strong);
}

.nv-pick-day.is-today::after {
    content: "";
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: currentColor;
}

.nv-pick-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
}

.nv-pick-legend-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--nv-primary-subtle);
    box-shadow: inset 0 0 0 1px rgba(var(--nv-primary-rgb), 0.35);
}

.nv-pick-times-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.nv-pick-group {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.nv-pick-times .nv-slots {
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
}

/* Foto profilo (M10.7) al posto delle iniziali */
.nv-avatar-photo {
    object-fit: cover;
    background: var(--nv-surface-muted);
}

.nv-profile-photo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.nv-profile-photo-initials {
    display: inline-flex;
    flex: 0 0 96px;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--nv-brand-gradient);
}

/* ---------- Tirocinanti (M11.1) ---------- */
.nv-trainee-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nv-primary-text);
}

.nv-trainee-howto {
    display: grid;
    gap: 0.4rem;
    padding-left: 1.2rem;
}

.nv-trainee-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0;
    list-style: none;
}

.nv-trainee-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: var(--nv-text-muted);
}

.nv-trainee-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid var(--nv-border-strong);
    border-radius: 50%;
}

.nv-trainee-steps li.is-done,
.nv-trainee-steps li.is-current {
    color: var(--nv-text);
    font-weight: 600;
}

.nv-trainee-steps li.is-done .nv-trainee-step-dot,
.nv-trainee-steps li.is-current .nv-trainee-step-dot {
    color: var(--nv-on-btn);
    background: var(--nv-btn);
    border-color: var(--nv-btn);
}

.nv-trainee-summary {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 0.35rem 1rem;
}

.nv-trainee-summary dt {
    font-weight: 600;
    color: var(--nv-text-muted);
}

.nv-trainee-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.nv-trainee-message {
    white-space: pre-line;
}

@media (max-width: 575.98px) {
    .nv-trainee-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .nv-trainee-summary dd {
        margin-bottom: 0.4rem;
    }
}

.nv-trainee-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--nv-text-muted);
}

.nv-trainee-counts strong {
    color: var(--nv-text);
}

.nv-trainee-star {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #b7791f;
}

.nv-locked-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .nv-locked-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .nv-locked-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.nv-locked-card {
    height: 100%;
    background: var(--nv-surface-muted);
}

.nv-locked-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    color: var(--nv-text-muted);
    background: var(--nv-surface);
    border: 1px solid var(--nv-border);
}

.nv-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--nv-text-muted);
}

.nv-locked-name {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 700;
}

.nv-locked-text {
    font-size: 0.88rem;
    color: var(--nv-text-muted);
}

/* Campo trappola dell'iscrizione: fuori dallo schermo, non nascosto con display (alcuni programmi lo saltano). */
.nv-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
