/* ========================================
   FIXITY – DASHBOARD SIDEBAR LAYOUT
   Airbnb-inspired, clean & premium
   ======================================== */

/* ---------- Root overrides for dashboard ---------- */
body.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #F7F7F7;
    overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-right: 1px solid #EBEBEB;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 300;
    overflow-y: hidden;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

/* Logo */
.sidebar__logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar__logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.sidebar__logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar__logo-link b {
    color: var(--primary);
}

/* User block */
.sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #F0F0F0;
}

.sidebar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.sidebar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar__user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.sidebar__user-info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__rank-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Nav */
.sidebar__nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar__nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.sidebar__nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    transition: stroke 0.2s;
}

.sidebar__nav-item:hover {
    background: #F7F7F7;
    color: var(--text);
}

.sidebar__nav-item.active {
    background: #FFF8E1;
    color: #1A1A1A;
    font-weight: 700;
}

.sidebar__nav-item.active svg {
    stroke: var(--primary);
}

.sidebar__nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

/* Badge (notifiche) in nav */
.sidebar__badge {
    margin-left: auto;
    background: #FF385C;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Footer */
.sidebar__footer {
    padding: 16px 14px 24px;
    border-top: 1px solid #F0F0F0;
}

.sidebar__logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar__logout-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.sidebar__logout-btn:hover {
    background: #FFF0F0;
    color: #e74c3c;
}

/* ============================================================
   MOBILE SIDEBAR TOGGLE & OVERLAY
   ============================================================ */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 400;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 250;
    backdrop-filter: blur(2px);
}

/* ============================================================
   MAIN AREA
   ============================================================ */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 247, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #EBEBEB;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__requests-btn {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: #FFD84D;
    color: var(--text);
    font: inherit;
    font-size: .84rem;
    font-weight: 750;
    position: relative;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.topbar__requests-btn:hover {
    background: #F2C63E;
    transform: translateY(-1px);
}

.topbar__requests-dot {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #FF385C;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.topbar__icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s;
    cursor: pointer;
}

.topbar__icon-btn:hover {
    background: var(--surface-alt);
}

.topbar__icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
}

.topbar__user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.topbar__user-chip img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================================
   SECTIONS WRAPPER
   ============================================================ */
.sections-wrap {
    flex: 1;
    padding: 32px;
}

.dash-section {
    display: none;
    animation: sectionFadeIn 0.3s ease both;
}

.dash-section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   DASH CARD (white card container)
   ============================================================ */
.dash-card {
    background: #fdfdf8;
    opacity: 0.83;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid #EBEBEB;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.dash-card--danger {
    border-color: #fee2e2;
    background: #fef9f9;
}

.dash-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.dash-card__header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.link-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.link-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================================================
   KPI CARDS (Overview)
   ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.kpi-card--primary {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3C4 100%);
    border-color: rgba(245, 184, 0, 0.3);
}

.kpi-card__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.kpi-card__body {
    flex: 1;
}

.kpi-card__label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.kpi-card__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

/* ============================================================
   FILTER TABS (Richieste)
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.filter-tab.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* ============================================================
   PROFILO – Griglia foto (profilo + gallery)
   ============================================================ */
.photos-card {
    padding: 28px;
}

.photos-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Riga superiore: foto profilo + info */
.photos-top-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Riga inferiore: 5 slot in fila */
.photos-gallery-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

/* ── mantieni compatibilità con id photos-grid usato da gallery.js ── */

/* Slot generico */
.photo-slot {
    position: relative;
    cursor: pointer;
}

/* Slot profilo: cerchiato, nella top-row */
.photo-slot--profile {
    flex-shrink: 0;
}

.photo-slot--profile .photo-slot__inner {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    position: relative;
    transition: border-color 0.2s;
}

.photo-slot--profile:hover .photo-slot__inner {
    border-color: var(--primary-hover);
}

/* Slot galleria: 100×100 */
.photo-slot--gallery .photo-slot__inner {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border);
    transition: border-color 0.2s, transform 0.15s;
}

.photo-slot--gallery:hover .photo-slot__inner {
    border-color: var(--primary);
    transform: scale(1.03);
}

/* Slot vuoto */
.photo-slot__inner--empty {
    background: #F7F7F7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px dashed #D0D0D0 !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s !important;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 500;
}

.photo-slot__inner--empty:hover {
    background: #F0F0F0;
    border-color: var(--primary) !important;
    color: var(--primary);
}

/* Immagine dentro lo slot */
.photo-slot__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay sui bottoni (appare su hover) */
.photo-slot__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.photo-slot:hover .photo-slot__overlay {
    opacity: 1;
}

.pslot-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
}

.pslot-btn--change {
    background: var(--primary);
}

.pslot-btn--view {
    background: rgba(255, 255, 255, 0.25);
}

.pslot-btn--delete {
    background: rgba(231, 76, 60, 0.85);
}

.pslot-btn:hover {
    transform: scale(1.15);
}

/* Label sotto foto profilo */
.photo-slot__label {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Info profilo (destra) */
.photos-info {
    flex: 1;
    padding-top: 4px;
}

.photos-info h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

/* Progress bar */
.photo-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.photo-progress {
    width: 140px;
    height: 4px;
    background: #EBEBEB;
    border-radius: 4px;
    overflow: hidden;
}

.photo-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Drag-and-drop visual */
.photo-slot.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.photo-slot.drag-over .photo-slot__inner {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.25);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: lbFadeIn 0.2s ease;
}

.lightbox.open {
    display: flex;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox__img {
    max-width: min(90vw, 900px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: lbImgIn 0.25s ease;
}

@keyframes lbImgIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.4rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 9001;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 9001;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev {
    left: 24px;
}

.lightbox__nav--next {
    right: 24px;
}

.lightbox__caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}


/* ============================================================
   REPORT
   ============================================================ */
.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.report-stat-card {
    padding: 20px;
    background: var(--surface-alt);
    border-radius: 12px;
    text-align: center;
}

.report-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.report-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

/* ============================================================
   FAQ / ASSISTENZA
   ============================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   SKELETON LOADER
   ============================================================ */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-item {
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================================
   CALENDARIO
   ============================================================ */
.calendar-wrap {
    /* container per il calendario dinamico */
    min-height: 320px;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.cal-nav-btn:hover {
    background: var(--surface-alt);
}

.cal-day-name {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 4px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cal-day:hover {
    background: var(--surface-alt);
}

.cal-day--today {
    background: var(--text);
    color: #fff;
    font-weight: 700;
}

.cal-day--has-event {
    position: relative;
}

.cal-day--has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.cal-day--empty {
    pointer-events: none;
}

/* Appuntamenti lista */
.appointment-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface-alt);
    margin-bottom: 10px;
    transition: background 0.2s;
}

.appointment-item:hover {
    background: #EFEFEF;
}

.appointment-date-block {
    flex-shrink: 0;
    text-align: center;
    width: 44px;
    padding: 8px 0;
    background: var(--primary);
    border-radius: 10px;
}

.appointment-date-block .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.appointment-date-block .month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.appointment-info {
    flex: 1;
}

.appointment-info strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.appointment-info span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ============================================================
   RECENSIONI (Compatte nella overview)
   ============================================================ */
.recensioni-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recensione-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--surface-alt);
}

.recensione-item__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.recensione-item__body {
    flex: 1;
}

.recensione-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.recensione-item__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.recensione-item__stars {
    font-size: 0.85rem;
    color: var(--primary);
}

.recensione-item__text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.recensione-item__date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   NOTIFICHE (dropdown)
   ============================================================ */
.notif-wrapper {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #FF385C;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-badge:not(:empty) {
    display: flex;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.notif-dropdown.open {
    display: block;
    animation: sectionFadeIn 0.2s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dashboard visual refresh */
body.dashboard-layout {
    background: #FAFAF8;
}

body.dashboard-layout::before {
    display: none;
}

.sidebar {
    border-right-color: #ECECE8;
}

.sidebar__logo {
    padding: 26px 22px 18px;
    border-bottom: 0;
}

.sidebar__user {
    margin: 0 12px 8px;
    padding: 12px;
    border: 0;
    border-radius: 18px;
    background: #F7F7F5;
}

.sidebar__avatar {
    border: 0;
}

.sidebar__nav {
    padding: 12px;
}

.sidebar__nav-item {
    padding: 11px 12px;
    border-radius: 14px;
}

.sidebar__nav-item:hover {
    background: #F4F4F2;
}

.sidebar__nav-item.active {
    background: #FFF2BF;
}

.sidebar__nav-item.active::before {
    display: none;
}

.sidebar__footer {
    border-top-color: #F1F1EE;
}

.sidebar__logout-btn {
    border-radius: 14px;
}

.topbar {
    padding: 18px 32px;
    background: rgba(255, 255, 255, .9);
    border-bottom-color: #ECECE8;
}

.topbar__icon-btn,
.topbar__user-chip {
    border: 0;
    background: #F5F5F3;
}

.topbar__user-chip {
    border-radius: 999px;
}

.sections-wrap {
    width: 100%;
    max-width: 1560px;
    box-sizing: border-box;
}

.dashboard-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 2px 0 28px;
}

.dashboard-intro__eyebrow {
    margin: 0 0 8px;
    color: #888;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.dashboard-intro h1 {
    margin: 0;
    color: #161616;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.dashboard-intro > div > p:last-child {
    max-width: 560px;
    margin: 10px 0 0;
    color: #777;
    font-size: .96rem;
    line-height: 1.55;
}

.dashboard-intro__action {
    min-height: 44px;
    padding: 0 16px 0 18px;
    border: 0;
    border-radius: 999px;
    background: #FFD84D;
    color: #161616;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.dashboard-intro__action:hover {
    background: #F2C63E;
    transform: translateY(-1px);
}

.dashboard-intro__action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-card {
    background: #fff;
    opacity: 1;
    padding: 26px;
    border-color: #ECECE8;
    border-radius: 24px;
    box-shadow: 0 14px 36px rgba(18, 18, 18, .035);
}

.dash-card__header {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: 0;
}

.dash-card__header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-title-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-btn {
    padding: 9px 13px;
    border-radius: 999px;
    background: #F5F5F3;
    color: var(--text);
    transition: background .2s ease, transform .2s ease;
}

.link-btn:hover {
    background: #EDEDEA;
    color: var(--text);
    text-decoration: none;
    transform: translateY(-1px);
}

.kpi-grid {
    gap: 14px;
    margin-bottom: 26px;
}

.kpi-card {
    min-height: 102px;
    padding: 20px;
    border-color: #ECECE8;
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(18, 18, 18, .025);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(18, 18, 18, .08);
}

.kpi-card--primary {
    background: #FFD84D;
    border-color: #FFD84D;
}

.kpi-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #F5F5F3;
    color: #191919;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kpi-card--primary .kpi-card__icon {
    background: rgba(255, 255, 255, .88);
}

.kpi-card__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kpi-card__label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kpi-card__value {
    font-size: 1.65rem;
}

/* Allineamento finale al linguaggio visivo della home Fixity */
body.dashboard-layout {
    background: #FFFFFF;
}

.sidebar {
    width: 238px;
    background: #FFFFFF;
    border-right: 1px solid #F0F0ED;
    box-shadow: none;
}

.dashboard-main {
    margin-left: 238px;
    background: #FFFFFF;
}

.sidebar__logo {
    padding: 30px 24px 22px;
}

.sidebar__user {
    margin: 0 14px 18px;
    padding: 12px 10px;
    border-radius: 16px;
    background: transparent;
}

.sidebar__user:hover {
    background: #F7F7F5;
}

.sidebar__nav {
    padding: 8px 14px;
}

.sidebar__nav-item {
    margin: 2px 0;
    padding: 11px 10px;
    border-radius: 12px;
}

.sidebar__nav-item.active,
.sidebar__nav-item.active:hover {
    background: #F7F7F5;
    color: #171717;
}

.sidebar__nav-item.active .sidebar__nav-icon {
    color: #171717;
}

.topbar {
    min-height: 74px;
    padding: 18px 46px;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0ED;
    box-shadow: none;
}

.topbar__title {
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -.015em;
}

.topbar__icon-btn,
.topbar__user-chip {
    background: #F6F6F4;
}

.sections-wrap {
    max-width: 1320px;
    padding: 48px 52px 76px;
}

.dashboard-intro {
    align-items: center;
    margin: 0 0 38px;
}

.dashboard-intro__eyebrow {
    margin-bottom: 6px;
    color: #9A9A96;
    font-size: .68rem;
    letter-spacing: .13em;
}

.dashboard-intro h1 {
    font-size: clamp(2.05rem, 3vw, 2.8rem);
    letter-spacing: -.055em;
}

.dashboard-intro > div > p:last-child {
    margin-top: 8px;
    color: #777773;
    font-size: .95rem;
}

.dashboard-intro__action {
    min-height: 42px;
    padding: 0 15px 0 17px;
    background: #F6F6F4;
    border: 1px solid #ECECE8;
    color: #1B1B1A;
    box-shadow: none;
}

.dashboard-intro__action:hover {
    background: #EFEFEC;
    transform: none;
}

.kpi-grid {
    gap: 10px;
    margin-bottom: 42px;
}

.kpi-card,
.kpi-card--primary {
    min-height: 108px;
    padding: 18px;
    background: #F7F7F5;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

.kpi-card:hover {
    transform: none;
    box-shadow: none;
    background: #F2F2F0;
}

.kpi-card--primary,
.kpi-card--primary:hover {
    background: #FFD84D;
}

.kpi-card__icon,
.kpi-card--primary .kpi-card__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: #FFFFFF;
}

.kpi-card__label {
    color: #858580;
    font-size: .67rem;
    letter-spacing: .07em;
}

.kpi-card__value {
    margin-top: 4px;
    color: #151515;
    font-size: 1.5rem;
    letter-spacing: -.04em;
}

.dash-card {
    padding: 32px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid #ECECE8;
    border-radius: 0;
    box-shadow: none;
}

.dash-card + .dash-card {
    margin-top: 0;
}

.dash-card__header {
    margin-bottom: 22px;
}

.dash-card__header h2 {
    color: #171717;
    font-size: 1.12rem;
    letter-spacing: -.025em;
}

.dash-title-icon {
    width: 30px;
    height: 30px;
    background: #F6F6F4;
}

.link-btn {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #E7E7E3;
}

.link-btn:hover {
    background: #F6F6F4;
    transform: none;
}

.richiesta-card {
    padding: 20px 22px;
    border: 1px solid #E9E9E5;
    border-left: 1px solid #E9E9E5;
    border-radius: 18px;
    box-shadow: none;
}

.richiesta-card:hover {
    box-shadow: none;
    border-color: #DCDCD7;
}

@media (max-width: 900px) {
    .sections-wrap {
        padding: 32px 24px 56px;
    }

    .dashboard-main {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .topbar {
        min-height: 64px;
        padding: 14px 18px 14px 66px;
    }

    .sections-wrap {
        padding: 24px 18px 48px;
    }

    .dashboard-intro {
        gap: 18px;
    }

    .dashboard-intro h1 {
        font-size: 2rem;
    }

    .dashboard-intro__action {
        width: auto;
    }

    .kpi-grid {
        gap: 8px;
        margin-bottom: 28px;
    }

    .kpi-card,
    .kpi-card--primary {
        min-height: 94px;
        padding: 14px;
        border-radius: 16px;
    }

    .dash-card {
        padding: 26px 0;
    }
}

.dashboard-intro__action:focus-visible,
.link-btn:focus-visible,
.sidebar__nav-item:focus-visible {
    outline: 2px solid #161616;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .topbar {
        padding: 14px 20px 14px 70px;
    }

    .sections-wrap {
        padding: 20px 16px;
    }
}

@media (max-width: 600px) {
    .dashboard-intro {
        margin-bottom: 20px;
    }

    .dashboard-intro__action {
        width: 100%;
        justify-content: center;
    }

    .dash-card {
        padding: 20px;
        border-radius: 20px;
    }

    .kpi-card {
        min-height: 96px;
        padding: 16px;
        gap: 12px;
    }

    .kpi-card__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-photo-layout {
        flex-direction: column;
        text-align: center;
    }

    .topbar__user-chip span {
        display: none;
    }

    .topbar__right {
        gap: 8px;
    }

    .topbar__requests-btn {
        padding: 0 12px;
    }

    .dash-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================================
   CALENDARIO
   ============================================================ */
.calendar-wrap {
    padding: 4px 0;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text);
}

.cal-nav-btn:hover {
    background: var(--surface-alt);
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day-name {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-day {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    user-select: none;
}

.cal-day__num {
    line-height: 1;
}

.cal-day:hover:not(.cal-day--empty) {
    background: var(--surface-alt);
    transform: scale(1.05);
}

.cal-day--empty {
    cursor: default;
    background: transparent;
}

.cal-day--today {
    background: #1A1A1A;
    color: #fff;
    font-weight: 700;
}

.cal-day--today:hover {
    background: #333;
}

.cal-day--has-event {
    background: #fffbeb;
    border: 1.5px solid #fbbf24;
}

.cal-day--has-event:hover {
    background: #fef3c7;
}

.cal-day.selected {
    background: var(--primary) !important;
    color: #1A1A1A !important;
    font-weight: 700;
    transform: scale(1.08);
}

/* Badge giallo con count appuntamenti */
.cal-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: #f59e0b;
    color: #fff;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.4);
    line-height: 1;
}

/* Pannello dettaglio giorno */
.cal-detail-panel {
    margin-top: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cal-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}

.cal-detail-date {
    font-weight: 700;
    font-size: 0.9rem;
    flex: 1;
}

.cal-detail-count {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cal-detail-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cal-detail-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.cal-detail-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cal-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
}

.cal-detail-item__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cal-detail-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-detail-item__left>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-detail-item__left strong {
    font-size: 0.85rem;
    font-weight: 700;
}

.cal-detail-item__lavoro {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cal-detail-item__ora {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

.cal-detail-item__stato {
    font-size: 0.7rem;
    font-weight: 700;
    border: 1.5px solid;
    border-radius: 50px;
    padding: 3px 8px;
    white-space: nowrap;
}

.cal-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Rifinitura dashboard professionista — stesso linguaggio della home Fixity */
.dashboard-layout {
    --fixity-yellow: #FFD84D;
    --fixity-soft: #F7F7F5;
    --fixity-line: #EAEAE6;
}

.sidebar,
.dashboard-main,
.topbar,
.sections-wrap {
    background: #fff;
}

.sidebar {
    width: 238px;
    border-right: 1px solid var(--fixity-line);
    box-shadow: none;
}

.dashboard-main {
    margin-left: 238px;
}

.sidebar__logo {
    padding: 30px 24px 22px;
}

.sidebar__user {
    margin: 0 14px 16px;
    padding: 12px 10px;
    border-radius: 18px;
    background: transparent;
}

.sidebar__avatar {
    width: 40px;
    height: 40px;
}

.sidebar__rank-badge {
    border: 0;
    background: transparent;
    padding: 0;
    color: #92928d;
    font-size: 0.74rem;
}

.sidebar__nav {
    padding: 0 12px;
    gap: 3px;
}

.sidebar__nav-item {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    color: #60605c;
}

.sidebar__nav-item:hover {
    background: var(--fixity-soft);
    color: #161616;
}

.sidebar__nav-item.active {
    background: var(--fixity-soft);
    color: #161616;
    box-shadow: none;
}

.sidebar__nav-item.active::before {
    width: 4px;
    height: 18px;
    left: 3px;
    background: var(--fixity-yellow);
    border-radius: 999px;
}

.sidebar__footer {
    padding: 16px 14px 20px;
}

.sidebar__logout-btn {
    border: 0;
    background: transparent;
    color: #777772;
}

.sidebar__logout-btn:hover {
    background: var(--fixity-soft);
    color: #161616;
}

.topbar {
    min-height: 74px;
    padding: 18px 46px;
    border-bottom: 1px solid var(--fixity-line);
    box-shadow: none;
}

.topbar__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sections-wrap {
    max-width: 1320px;
    padding: 48px 52px 76px;
}

.dashboard-intro {
    align-items: flex-end;
    margin-bottom: 34px;
}

.dashboard-intro__eyebrow {
    margin: 0 0 9px;
    color: #96968f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.dashboard-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    letter-spacing: -0.055em;
}

.dashboard-intro p:not(.dashboard-intro__eyebrow) {
    max-width: 520px;
    margin: 10px 0 0;
    color: #777772;
    line-height: 1.5;
}

.dashboard-intro__action {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--fixity-soft);
    color: #171717;
    box-shadow: none;
}

.dashboard-intro__action:hover {
    background: #efefeb;
    transform: translateY(-1px);
}

.kpi-grid {
    gap: 12px;
    margin-bottom: 42px;
}

.kpi-card,
.kpi-card--primary {
    min-height: 116px;
    border: 1px solid var(--fixity-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.kpi-card:hover,
.kpi-card--primary:hover {
    background: var(--fixity-soft);
    box-shadow: none;
    transform: translateY(-2px);
}

.kpi-card--primary .kpi-card__icon {
    background: var(--fixity-yellow);
}

.kpi-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--fixity-soft);
}

.kpi-card__value {
    font-size: 1.65rem;
    letter-spacing: -0.05em;
}

.dash-card {
    padding: 30px 0 0;
    border: 0;
    border-top: 1px solid var(--fixity-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dash-card__header {
    padding: 0 0 20px;
}

.dash-card__title {
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.dash-card__link-btn {
    border: 0;
    border-radius: 999px;
    background: var(--fixity-soft);
    color: #181818;
}

.dash-card__link-btn:hover {
    background: #efefeb;
}

.richiesta-card {
    padding: 20px 22px;
    border: 1px solid var(--fixity-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.richiesta-card:hover {
    border-color: #d8d8d2;
    background: var(--fixity-soft);
    box-shadow: none;
}

@media (max-width: 900px) {
    .sidebar { width: 238px; }
    .dashboard-main { margin-left: 0; }
    .topbar { padding: 14px 20px 14px 70px; }
    .sections-wrap { padding: 32px 20px 48px; }
    .dashboard-intro { align-items: flex-start; }
}

@media (max-width: 600px) {
    .topbar__title { font-size: 0.95rem; }
    .sections-wrap { padding: 26px 16px 40px; }
    .dashboard-intro { margin-bottom: 26px; }
    .dashboard-intro__action { margin-top: 4px; }
    .kpi-grid { gap: 10px; }
    .kpi-card,
    .kpi-card--primary { min-height: 104px; }
}

/* Dashboard artigiano — nuova gerarchia, più vicina alla home Fixity */
#section-overview {
    max-width: 1160px;
}

.dashboard-welcome {
    margin: 4px 0 28px;
}

.dashboard-welcome__eyebrow,
.dashboard-panel__eyebrow {
    margin: 0 0 8px;
    color: #90908a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.dashboard-welcome h1 {
    max-width: 660px;
    margin: 0;
    color: #141414;
    font-size: clamp(2.05rem, 3.2vw, 3.15rem);
    font-weight: 750;
    letter-spacing: -.065em;
    line-height: .98;
}

.dashboard-welcome > p:last-child {
    max-width: 510px;
    margin: 14px 0 0;
    color: #74746f;
    font-size: 1rem;
    line-height: 1.55;
}

.dashboard-attention {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 24px 26px;
    margin-bottom: 14px;
    border: 1px solid #edebdf;
    border-radius: 24px;
    background: #fffdf4;
}

.dashboard-attention__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: #ffda4d;
    color: #171717;
}

.dashboard-attention__icon svg,
.dashboard-attention__action svg,
.dashboard-profile-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-attention__content p {
    margin: 0 0 5px;
    color: #8a7220;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.dashboard-attention__content h2 {
    margin: 0;
    color: #171717;
    font-size: 1.12rem;
    letter-spacing: -.035em;
}

.dashboard-attention__content span {
    display: block;
    margin-top: 5px;
    color: #777267;
    font-size: .89rem;
}

.dashboard-attention__action,
.dashboard-profile-link,
.dashboard-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 750;
}

.dashboard-attention__action {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffda4d;
    color: #151515;
    transition: transform .2s ease, background .2s ease;
}

.dashboard-attention__action:hover {
    background: #ffd22f;
    transform: translateY(-1px);
}

.dashboard-attention__action svg { width: 17px; height: 17px; }

.dashboard-activity {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 38px;
    border-top: 1px solid #e9e9e5;
    border-bottom: 1px solid #e9e9e5;
}

.dashboard-activity__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 82px;
    padding: 0 22px;
}

.dashboard-activity__item + .dashboard-activity__item {
    border-left: 1px solid #e9e9e5;
}

.dashboard-activity__item span {
    color: #777772;
    font-size: .82rem;
    font-weight: 650;
}

.dashboard-activity__item strong {
    color: #181818;
    font-size: 1.6rem;
    font-weight: 750;
    letter-spacing: -.06em;
}

/* La dashboard mantiene un solo accento: i numeri restano neutri e leggibili. */
.dashboard-activity__item strong#kpi-rank { color: #181818 !important; }

.dashboard-activity__item--accent strong { color: #b88a00; }

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(245px, .75fr);
    gap: 16px;
    align-items: stretch;
}

.dashboard-panel {
    min-width: 0;
    padding: 26px;
    border: 1px solid #e7e7e2;
    border-radius: 22px;
    background: #fff;
    box-shadow: none;
}

.dashboard-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-panel__header h2,
.dashboard-panel--profile h2 {
    margin: 0;
    color: #171717;
    font-size: 1.25rem;
    letter-spacing: -.04em;
}

.dashboard-panel__link {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f5f2;
    color: #202020;
    font-size: .82rem;
}

.dashboard-panel__link:hover { background: #ebebe6; }

.dashboard-panel--requests #overview-richieste-preview {
    display: grid;
    gap: 10px;
}

.dashboard-panel--requests .richiesta-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fafaf8;
}

.dashboard-panel--requests .richiesta-card:last-child { margin-bottom: 0; }

.dashboard-panel--profile {
    display: flex;
    flex-direction: column;
    background: #f7f7f4;
}

.dashboard-panel--profile > p:not(.dashboard-panel__eyebrow) {
    margin: 12px 0 24px;
    color: #6f6f69;
    font-size: .94rem;
    line-height: 1.5;
}

.dashboard-profile-link {
    width: fit-content;
    min-height: 42px;
    margin-top: auto;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: #191919;
    font-size: .86rem;
}

.dashboard-profile-link:hover { background: #ffda4d; }
.dashboard-profile-link svg { width: 17px; height: 17px; }

.dashboard-panel--reviews {
    margin-top: 16px;
}

.dashboard-panel--reviews .dashboard-panel__header { margin-bottom: 12px; }
.dashboard-panel--reviews .recensioni-list { margin: 0; }

#section-overview .dashboard__empty-state {
    padding: 30px 16px;
    border-radius: 16px;
    background: #fafaf8;
}

@media (max-width: 900px) {
    .dashboard-overview-grid { grid-template-columns: 1fr; }
    .dashboard-panel--profile { min-height: 230px; }
}

@media (max-width: 640px) {
    .dashboard-welcome { margin-top: 0; }
    .dashboard-welcome h1 { font-size: 2.25rem; }
    .dashboard-attention {
        grid-template-columns: 42px 1fr;
        gap: 14px;
        padding: 19px;
        border-radius: 20px;
    }
    .dashboard-attention__icon { width: 42px; height: 42px; border-radius: 14px; }
    .dashboard-attention__content h2 { font-size: 1rem; }
    .dashboard-attention__content span { font-size: .84rem; }
    .dashboard-attention__action { grid-column: 1 / -1; width: 100%; margin-top: 2px; }
    .dashboard-activity { grid-template-columns: repeat(2, 1fr); margin-bottom: 26px; }
    .dashboard-activity__item { min-height: 70px; padding: 0 14px; }
    .dashboard-activity__item:nth-child(3) { border-left: 0; border-top: 1px solid #e9e9e5; }
    .dashboard-activity__item:nth-child(4) { border-top: 1px solid #e9e9e5; }
    .dashboard-activity__item strong { font-size: 1.35rem; }
    .dashboard-panel { padding: 20px; border-radius: 20px; }
}

/* Gerarchia della navigazione nell'area professionista. */
.dashboard-layout .sidebar__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 18px 12px;
}

.dashboard-layout .sidebar__nav-group {
    display: grid;
    gap: 6px;
}

/* Evita che la prima sezione sembri incollata al bordo superiore. */
.dashboard-layout .sidebar__nav-group:first-child {
    padding-top: 16px;
}

.dashboard-layout .sidebar__nav-label {
    margin: 0 0 5px;
    padding: 0 12px;
    color: #9a9993;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dashboard-layout .sidebar__nav-group--support {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0ed;
}

/* Header condiviso con la chat */
.dashboard-layout {
    display: block;
    --dashboard-header-height: 74px;
}

.dashboard-layout .dashboard-app-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--dashboard-header-height);
    padding: 0 34px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--artisan-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dashboard-layout .dashboard-app-header .topbar__left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.dashboard-layout .dashboard-app-header__brand {
    display: inline-flex;
    align-items: center;
}

.dashboard-layout .dashboard-app-header__brand img {
    display: block;
    width: auto;
    height: 38px;
}

.dashboard-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dashboard-layout .sidebar {
    top: var(--dashboard-header-height);
    height: calc(100vh - var(--dashboard-header-height));
}

.dashboard-layout .sidebar__logo {
    display: none;
}

.dashboard-layout .sidebar__user {
    margin-top: 16px;
}

.dashboard-layout .dashboard-main {
    margin-left: 260px;
    min-height: 100vh;
    padding-top: var(--dashboard-header-height);
}

.dashboard-layout .dashboard-app-header .topbar__requests-btn {
    min-height: 40px;
    padding: 0 16px;
    background: var(--artisan-soft);
    color: var(--artisan-ink);
    border: 0;
    border-radius: 999px;
    box-shadow: none;
}

.dashboard-layout .dashboard-app-header .topbar__requests-btn:hover {
    background: #ededeb;
    transform: none;
}

.dashboard-layout .dashboard-app-header .topbar__user-chip {
    width: 40px;
    min-height: 40px;
    padding: 3px;
    justify-content: center;
    border-radius: 50%;
}

.dashboard-layout .dashboard-app-header .topbar__user-chip span {
    display: none;
}

.dashboard-layout .dashboard-app-header .topbar__user-chip img {
    width: 34px;
    height: 34px;
}

@media (max-width: 980px) {
    .dashboard-layout {
        --dashboard-header-height: 72px;
    }

    .dashboard-layout .dashboard-app-header {
        min-height: var(--dashboard-header-height);
        padding: 0 20px;
    }

    .dashboard-layout .dashboard-main {
        margin-left: 0;
    }

    .dashboard-layout .sidebar {
        top: var(--dashboard-header-height);
        height: calc(100vh - var(--dashboard-header-height));
    }

    .dashboard-layout .dashboard-app-header .sidebar-toggle {
        position: static;
        display: inline-flex;
        margin-right: 10px;
    }
}

@media (max-width: 640px) {
    .dashboard-layout {
        --dashboard-header-height: 64px;
    }

    .dashboard-layout .dashboard-app-header {
        min-height: var(--dashboard-header-height);
        padding: 0 16px;
    }

    .dashboard-layout .dashboard-app-header__brand img {
        height: 32px;
    }

    .dashboard-layout .dashboard-app-header .topbar__requests-btn {
        display: none;
    }

    .dashboard-layout .sidebar {
        top: var(--dashboard-header-height);
        height: calc(100vh - var(--dashboard-header-height));
    }
}

/* Dashboard artigiano — composizione finale: priorità, richieste e profilo senza estetica da gestionale. */
#section-overview {
    max-width: 1240px;
    padding-top: 14px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 18px 0 34px;
    border-bottom: 1px solid #e9e9e5;
}

.dashboard-hero__eyebrow,
.dashboard-panel__eyebrow,
.dashboard-profile-callout > p {
    margin: 0 0 9px;
    color: #8d8d87;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.dashboard-hero h1 {
    margin: 0;
    color: #151515;
    font-size: clamp(2.35rem, 4vw, 4.2rem);
    font-weight: 780;
    letter-spacing: -.078em;
    line-height: .9;
}

.dashboard-hero > div > p:last-child {
    max-width: 555px;
    margin: 17px 0 0;
    color: #74746e;
    font-size: 1rem;
    line-height: 1.55;
}

.dashboard-hero__action,
.dashboard-focus__action,
.dashboard-profile-callout button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 760;
    transition: transform .2s ease, background .2s ease;
}

.dashboard-hero__action {
    min-height: 46px;
    padding: 0 18px;
    background: #ffd84d;
    color: #181818;
    white-space: nowrap;
}

.dashboard-hero__action:hover,
.dashboard-focus__action:hover { background: #ffcf2c; transform: translateY(-1px); }
.dashboard-hero__action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dashboard-focus {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    padding: 30px 0 28px;
}

.dashboard-focus__copy > p {
    margin: 0 0 8px;
    color: #9b7a08;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.dashboard-focus__copy > div { display: flex; align-items: baseline; gap: 13px; }
.dashboard-focus__copy strong { color: #171717; font-size: clamp(3.2rem, 5vw, 5.35rem); font-weight: 780; letter-spacing: -.09em; line-height: .78; }
.dashboard-focus__copy span { color: #171717; font-size: 1.1rem; font-weight: 720; letter-spacing: -.035em; }
.dashboard-focus__copy small { display: block; margin-top: 17px; color: #777771; font-size: .9rem; }

.dashboard-focus__action {
    min-height: 44px;
    padding: 0 17px;
    background: #ffd84d;
    color: #171717;
    white-space: nowrap;
}

.dashboard-activity {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 46px;
    border-top: 1px solid #e9e9e5;
    border-bottom: 1px solid #e9e9e5;
}

.dashboard-activity__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    min-height: 118px;
    padding: 18px 25px;
}

.dashboard-activity__item:first-child { padding-left: 0; }
.dashboard-activity__item + .dashboard-activity__item { border-left: 1px solid #e9e9e5; }
.dashboard-activity__item span { color: #7e7e78; font-size: .82rem; font-weight: 650; }
.dashboard-activity__item strong { color: #181818; font-size: 2rem; font-weight: 760; letter-spacing: -.07em; line-height: 1; }
.dashboard-activity__item strong#kpi-rank { color: #181818 !important; }

.dashboard-overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(275px, .72fr);
    gap: 42px;
    align-items: stretch;
}

.dashboard-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dashboard-panel__header { margin-bottom: 18px; }
.dashboard-panel__header h2,
.dashboard-profile-callout h2 { font-size: 1.45rem; letter-spacing: -.05em; }
.dashboard-panel__link { min-height: auto; padding: 0; border-radius: 0; background: transparent; color: #181818; font-size: .84rem; font-weight: 760; }
.dashboard-panel__link span { margin-left: 4px; font-size: 1rem; }
.dashboard-panel__link:hover { background: transparent; color: #777; }

.dashboard-panel--requests #overview-richieste-preview { gap: 0; border-top: 1px solid #e9e9e5; }
.dashboard-panel--requests .richiesta-card {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid #e9e9e5;
    border-radius: 0;
    background: transparent;
}
.dashboard-panel--requests .richiesta-card:hover { background: transparent; border-color: #d9d9d3; box-shadow: none; }

.dashboard-profile-callout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 25px;
    border-radius: 24px;
    background: #f7f7f4;
}

.dashboard-profile-callout__icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 50%;
    background: #ffd84d;
    color: #181818;
}
.dashboard-profile-callout__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-profile-callout > p { margin-bottom: 7px; color: #85857f; }
.dashboard-profile-callout h2 { margin: 0; color: #181818; }
.dashboard-profile-callout > span { margin: 13px 0 28px; color: #74746e; font-size: .92rem; line-height: 1.52; }
.dashboard-profile-callout button { width: fit-content; min-height: 40px; margin-top: auto; padding: 0; background: transparent; color: #171717; }
.dashboard-profile-callout button:hover { background: transparent; color: #847000; transform: none; }
.dashboard-profile-callout button b { font-size: 1.05rem; font-weight: 600; }

.dashboard-panel--reviews { margin-top: 52px; padding-top: 26px; border-top: 1px solid #e9e9e5; }
.dashboard-panel--reviews .dashboard-panel__header { margin-bottom: 14px; }
#section-overview .dashboard__empty-state { border-radius: 18px; background: #f7f7f4; }

@media (max-width: 900px) {
    .dashboard-overview-grid { grid-template-columns: 1fr; gap: 22px; }
    .dashboard-profile-callout { min-height: 230px; }
}

@media (max-width: 640px) {
    #section-overview { padding-top: 0; }
    .dashboard-hero { display: block; padding: 8px 0 27px; }
    .dashboard-hero h1 { font-size: 3rem; }
    .dashboard-hero > div > p:last-child { font-size: .94rem; }
    .dashboard-hero__action { width: 100%; margin-top: 22px; }
    .dashboard-focus { display: block; padding: 28px 0 24px; }
    .dashboard-focus__copy strong { font-size: 4.3rem; }
    .dashboard-focus__copy span { font-size: 1rem; }
    .dashboard-focus__action { width: 100%; margin-top: 23px; }
    .dashboard-activity { grid-template-columns: 1fr; margin-bottom: 34px; }
    .dashboard-activity__item,
    .dashboard-activity__item:first-child { min-height: 84px; padding: 16px 0; }
    .dashboard-activity__item + .dashboard-activity__item { border-left: 0; border-top: 1px solid #e9e9e5; }
    .dashboard-activity__item strong { font-size: 1.75rem; }
    .dashboard-panel--reviews { margin-top: 36px; }
}

/* ===== Area professionista: sistema visivo Fixity unificato ===== */
.dashboard-layout {
    --artisan-ink: #181818;
    --artisan-muted: #777771;
    --artisan-line: #e9e9e5;
    --artisan-soft: #f7f7f4;
    --artisan-yellow: #ffd84d;
    color: var(--artisan-ink);
    background: #fff;
}

.dashboard-layout .sections-wrap {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 52px;
}

.dashboard-layout .dash-section:not(#section-overview) {
    max-width: 1160px;
    animation: artisan-section-in .36s ease both;
}

@keyframes artisan-section-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dash-view-heading {
    max-width: 680px;
    padding: 6px 0 34px;
}

.dash-view-heading__eyebrow,
.support-contact-card__eyebrow {
    margin: 0 0 9px;
    color: #9a7d1f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.dash-view-heading h1 {
    margin: 0;
    color: var(--artisan-ink);
    font-size: clamp(2.35rem, 4.2vw, 4.2rem);
    font-weight: 780;
    letter-spacing: -.07em;
    line-height: .95;
}

.dash-view-heading p:not(.dash-view-heading__eyebrow) {
    max-width: 590px;
    margin: 16px 0 0;
    color: var(--artisan-muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.dashboard-layout .dash-card {
    padding: 28px;
    border: 1px solid var(--artisan-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: none;
}

.dashboard-layout .dash-card + .dash-card { margin-top: 20px; }

.dashboard-layout .dash-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-layout .dash-card__header h2 {
    margin: 0;
    color: var(--artisan-ink);
    font-size: 1.42rem;
    font-weight: 760;
    letter-spacing: -.045em;
}

.dashboard-layout .btn {
    min-height: 44px;
    border-radius: 999px;
    font-weight: 740;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.dashboard-layout .btn:hover { transform: translateY(-1px); }
.dashboard-layout .btn--primary { background: var(--artisan-yellow); color: var(--artisan-ink); }

/* Codice, agenda e richieste */
#section-codice .dash-card { max-width: 640px; }
#section-codice .code-verification { padding: 4px 0 0; }

#section-calendario .calendar-wrap {
    overflow-x: auto;
    border: 1px solid var(--artisan-line);
    border-radius: 20px;
    background: #fff;
}

#section-calendario .calendar-container { min-width: 650px; }
#section-calendario #prossimi-appuntamenti { display: grid; gap: 12px; }

#section-richieste .dash-card__header { align-items: flex-start; }
#section-richieste .richieste-filters {
    display: flex;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    padding: 5px;
    overflow-x: auto;
    border: 0;
    border-radius: 999px;
    background: var(--artisan-soft);
}

#section-richieste .filter-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--artisan-muted);
    font-size: .84rem;
    font-weight: 720;
}

#section-richieste .filter-tab.active {
    background: #fff;
    color: var(--artisan-ink);
    box-shadow: 0 1px 5px rgba(20,20,20,.08);
}

#section-richieste .richieste-container { display: grid; gap: 10px; }
#section-richieste .richiesta-card {
    border: 1px solid var(--artisan-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

/* Profilo pubblico */
#section-profilo .photos-card { overflow: hidden; }
#section-profilo .photos-top-row {
    align-items: center;
    gap: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--artisan-line);
}

#section-profilo .photos-gallery-row { padding-top: 24px; }
#section-profilo .photo-hint { color: var(--artisan-muted) !important; }
#section-profilo .gallery-thumb,
#section-profilo .main-photo-preview { border-radius: 16px; }

#section-profilo .form-row { gap: 16px; }
#section-profilo .form-group { gap: 8px; }
#section-profilo .form-group label {
    color: var(--artisan-ink);
    font-size: .82rem;
    font-weight: 760;
}

#section-profilo input:not([type="range"]),
#section-profilo select,
#section-profilo textarea {
    border: 1px solid #deded8;
    border-radius: 14px;
    background: #fff;
    color: var(--artisan-ink);
    box-shadow: none;
}

#section-profilo input:not([type="range"]):focus,
#section-profilo select:focus,
#section-profilo textarea:focus {
    border-color: var(--artisan-ink);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(24,24,24,.05);
}

#section-profilo .dash-card--danger {
    border-color: #ece8e4;
    background: #fcfbfa;
}

#section-profilo .dashboard__danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Report */
#section-report .report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

#section-report .report-stat-card {
    min-height: 142px;
    padding: 20px;
    border: 1px solid var(--artisan-line);
    border-radius: 18px;
    background: var(--artisan-soft);
}

#section-report .report-stat-label { color: var(--artisan-muted); font-weight: 650; }
#section-report .report-stat-value {
    margin-top: 15px;
    color: var(--artisan-ink);
    font-size: 2rem;
    font-weight: 780;
    letter-spacing: -.065em;
}

#section-report .charts-grid { gap: 14px; }
#section-report .chart-card {
    padding: 22px;
    border: 1px solid var(--artisan-line);
    border-radius: 20px;
    background: #fff;
}

#section-report .chart-title {
    margin: 0 0 18px;
    color: var(--artisan-ink);
    font-size: 1rem;
    font-weight: 750;
}

/* Assistenza */
#section-assistenza .faq-list { display: grid; gap: 10px; }
#section-assistenza .faq-item {
    border: 1px solid var(--artisan-line);
    border-radius: 16px;
    background: #fff;
}

#section-assistenza .faq-item summary {
    padding: 17px 19px;
    color: var(--artisan-ink);
    font-weight: 730;
}

#section-assistenza .faq-item p {
    margin: 0;
    padding: 0 19px 18px;
    color: var(--artisan-muted);
    line-height: 1.55;
}

.support-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 23px 24px;
    border: 1px solid #f2d35d;
    border-radius: 20px;
    background: #fff8d8;
}

.support-contact-card h3 { margin: 0; color: var(--artisan-ink); font-size: 1.1rem; }
.support-contact-card p:not(.support-contact-card__eyebrow) { margin: 6px 0 0; color: #6f6a55; }
.support-contact-card .btn { flex: 0 0 auto; }

@media (max-width: 980px) {
    .dashboard-layout .sections-wrap { padding: 38px 28px 104px; }
    #section-report .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #section-report .charts-grid { grid-template-columns: 1fr; }
    #section-report .chart-card--wide { grid-column: auto; }
}

@media (max-width: 640px) {
    .dashboard-layout .sections-wrap { padding: 26px 16px 104px; }
    .dash-view-heading { padding: 2px 4px 25px; }
    .dash-view-heading h1 { font-size: 2.28rem; }
    .dash-view-heading p:not(.dash-view-heading__eyebrow) { margin-top: 12px; font-size: .94rem; }
    .dashboard-layout .dash-card { padding: 19px; border-radius: 20px; }
    .dashboard-layout .dash-card__header { align-items: flex-start; margin-bottom: 20px; }
    .dashboard-layout .dash-card__header h2 { font-size: 1.2rem; }

    #section-calendario .calendar-wrap { margin-inline: -2px; }
    #section-calendario .calendar-container { min-width: 600px; }
    #section-richieste .richieste-filters { width: calc(100% + 2px); }
    #section-profilo .photos-top-row,
    #section-profilo .dashboard__danger-zone,
    .support-contact-card { align-items: stretch; flex-direction: column; }
    #section-profilo .photos-top-row { gap: 16px; }
    #section-profilo .photo-hint { margin: 0; }
    #section-profilo .form-row { grid-template-columns: 1fr; gap: 0; }
    #section-profilo .dashboard__danger-zone .btn,
    .support-contact-card .btn { width: 100%; }

    #section-report .report-grid { gap: 10px; }
    #section-report .report-stat-card { min-height: 118px; padding: 16px; }
    #section-report .report-stat-label { font-size: .78rem; }
    #section-report .report-stat-value { margin-top: 12px; font-size: 1.65rem; }
    #section-report .chart-card { padding: 17px; border-radius: 18px; }
    #section-report .chart-wrap { min-height: 220px; }
}

/* ============================================================
   GUSCIO UNIFICATO — AREA PROFESSIONISTA
   ============================================================ */
.dashboard-layout {
    background: #fff;
    color: var(--artisan-ink);
}

.dashboard-layout .sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--artisan-line);
    box-shadow: none;
}

.dashboard-layout .sidebar__logo {
    padding: 28px 22px 20px;
    border: 0;
}

.dashboard-layout .sidebar__logo-img {
    width: auto;
    height: 31px !important;
}

.dashboard-layout .sidebar__user {
    margin: 0 14px 16px;
    padding: 12px;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 19px;
    background: var(--artisan-soft);
}

.dashboard-layout .sidebar__avatar {
    width: 42px;
    height: 42px;
    border: 0;
    background: #e9e9e6;
}

.dashboard-layout .sidebar__user-info strong {
    color: var(--artisan-ink);
    font-size: .9rem;
}

.dashboard-layout .sidebar__rank-badge {
    color: #898983;
    font-size: .74rem;
}

.dashboard-layout .sidebar__nav {
    padding: 18px 12px;
    gap: 14px;
}

.dashboard-layout .sidebar__nav-item {
    min-height: 44px;
    padding: 0 12px;
    gap: 11px;
    border-radius: 14px;
    color: #706f69;
    font-size: .9rem;
    font-weight: 650;
}

.dashboard-layout .sidebar__nav-item:hover,
.dashboard-layout .sidebar__nav-item.active {
    background: var(--artisan-soft);
    color: var(--artisan-ink);
}

.dashboard-layout .sidebar__nav-item.active { font-weight: 750; }
.dashboard-layout .sidebar__nav-item.active::before { display: none; }
.dashboard-layout .sidebar__nav-item.active svg { stroke: currentColor; }

.dashboard-layout .sidebar__badge {
    min-width: 19px;
    height: 19px;
    background: #ff3d63;
    font-size: .65rem;
}

.dashboard-layout .sidebar__footer {
    padding: 14px;
    border: 0;
}

.dashboard-layout .sidebar__logout-btn {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    color: #77766f;
}

.dashboard-layout .sidebar__logout-btn:hover {
    background: #fff1ef;
    color: #d85c4f;
}

.dashboard-layout .dashboard-main {
    margin-left: 260px;
    background: #fff;
}

.dashboard-layout .topbar {
    min-height: 72px;
    padding: 16px 44px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--artisan-line);
    box-shadow: none;
}

.dashboard-layout .topbar__title {
    color: var(--artisan-ink);
    font-size: 1.06rem;
    font-weight: 750;
}

.dashboard-layout .topbar__right { gap: 10px; }

.dashboard-layout .topbar__requests-btn {
    min-height: 40px;
    padding: 0 16px;
    background: var(--artisan-yellow);
    color: var(--artisan-ink);
    font-size: .82rem;
}

.dashboard-layout .topbar__requests-btn:hover {
    background: #f6cc3d;
    transform: translateY(-1px);
}

.dashboard-layout .topbar__icon-btn,
.dashboard-layout .topbar__user-chip {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--artisan-soft);
    box-shadow: none;
}

.dashboard-layout .topbar__icon-btn:hover,
.dashboard-layout .topbar__user-chip:hover {
    background: #ededeb;
    transform: none;
}

.dashboard-layout .topbar__user-chip {
    width: auto;
    padding: 0 12px 0 3px;
    gap: 8px;
    border-radius: 999px;
}

.dashboard-layout .topbar__user-chip img {
    width: 34px;
    height: 34px;
}

.dashboard-layout .topbar__user-chip span {
    color: var(--artisan-ink);
    font-size: .82rem;
    font-weight: 750;
}

.dashboard-layout .sidebar-toggle {
    border: 0;
    border-radius: 50%;
    background: var(--artisan-soft);
    box-shadow: none;
}

@media (max-width: 980px) {
    .dashboard-layout .dashboard-main { margin-left: 0; }

    .dashboard-layout .sidebar {
        width: min(320px, calc(100vw - 48px));
        box-shadow: 18px 0 42px rgba(18, 18, 18, .12);
    }

    .dashboard-layout .topbar { padding: 14px 24px 14px 72px; }
}

@media (max-width: 640px) {
    .dashboard-layout .sidebar { width: min(318px, calc(100vw - 46px)); }
    .dashboard-layout .sidebar__logo { padding: 24px 20px 16px; }
    .dashboard-layout .sidebar__footer { padding-bottom: 25px; }
    .dashboard-layout .topbar { min-height: 64px; padding: 12px 16px 12px 66px; }
    .dashboard-layout .topbar__title { font-size: .98rem; }
    .dashboard-layout .topbar__requests-btn { display: none; }
    .dashboard-layout .topbar__user-chip { width: 40px; padding: 0; justify-content: center; }
    .dashboard-layout .topbar__user-chip span { display: none; }
}

/* Header della dashboard: identico alla chat. */
.dashboard-layout .dashboard-app-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 500;
    display: block;
    min-height: var(--dashboard-header-height);
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    background: var(--surface, #fff);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dashboard-layout .dashboard-app-header .header__inner {
    width: 100%;
    max-width: none;
    min-height: 50px;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(260px, 600px) minmax(140px, 1fr);
    align-items: center;
    gap: 16px;
    padding-left: clamp(20px, 7vw, 100px);
    padding-right: clamp(20px, 7vw, 100px);
}

.dashboard-layout .dashboard-app-header__left {
    grid-column: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.dashboard-layout .dashboard-app-header .header__logo {
    margin: 0;
}

.dashboard-layout .dashboard-app-header .header__logo img,
.dashboard-layout .dashboard-app-header .header__logo img[src$="fixity-logo.svg"] {
    width: auto !important;
    height: 23px !important;
    max-height: none;
    object-fit: contain;
}

.dashboard-layout .dashboard-app-header .header__actions {
    grid-column: 3;
    justify-self: end;
}

.dashboard-layout .dashboard-app-header .header__user-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-layout .dashboard-app-header .sidebar-toggle {
    display: none;
}

.dashboard-layout .sidebar {
    top: var(--dashboard-header-height);
    height: calc(100vh - var(--dashboard-header-height));
}

.dashboard-layout .sidebar__logo {
    display: none;
}

.dashboard-layout .dashboard-main {
    margin-left: 260px;
    padding-top: var(--dashboard-header-height);
}

@media (max-width: 980px) {
    .dashboard-layout .dashboard-app-header .header__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dashboard-layout .dashboard-main {
        margin-left: 0;
    }

    .dashboard-layout .dashboard-app-header .sidebar-toggle {
        position: static;
        display: inline-flex;
        margin-right: 10px;
    }

    .dashboard-layout .sidebar {
        top: var(--dashboard-header-height);
        height: calc(100vh - var(--dashboard-header-height));
    }
}

@media (max-width: 640px) {
    .dashboard-layout .dashboard-app-header {
        --dashboard-header-height: 64px;
        min-height: var(--dashboard-header-height);
        padding: 8px 0;
    }

    .dashboard-layout .dashboard-app-header .header__inner {
        min-height: 48px;
        padding-left: 16px;
        padding-right: 16px;
    }
}
