/**
 * CRITICAL OVERRIDES CSS
 * ========================
 * Questo file viene caricato con priorità 9999 per garantire
 * che le regole sovrascrivano qualsiasi altro CSS.
 *
 * NOTA: Usare !important solo quando strettamente necessario.
 * Questo file sostituisce l'iniezione PHP in functions.php.
 */

/* ========================================= */
/* 0. CONTENT AREA PADDING FIX               */
/* ========================================= */
.content-area.bb-grid-cell,
.bb-grid-cell.content-area,
body .content-area.bb-grid-cell {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ========================================= */
/* 1. TUTOR LMS                              */
/* ========================================= */
body .tutor-btn,
.tutor-course-loop .tutor-btn,
.tutor-wrap .tutor-btn {
    font-size: 12px !important;
}

/* FIX CHIRURGICO: Contrasto Pulsanti Tutor LMS & Aura 2027 */
/* Nota: Uso codici esadecimali diretti per garantire stabilità contro errori di ereditarietà :root */

/* Pulsanti Primari e Outline (Filtri, Ricerca, Iscrizione) */
body .tutor-btn.tutor-btn-outline-primary,
body .tutor-btn.tutor-btn-primary,
body .tutor-course-enroll-btn a,
body .list-item-button,
body .tutor-course-purchase-btn-group a,
body .tutor-btn-primary,
body [class*="tutor-btn"] {
    background-color: #0f5665 !important; /* Petrolio Aura */
    color: #ffffff !important;           /* Bianco Puro per visibilità */
    border: 1px solid #0f5665 !important;
    font-weight: 600 !important;
}

/* Forza colore testo anche per span e link interni */
body [class*="tutor-btn"] span,
body [class*="tutor-btn"] a,
body .list-item-button a,
body .tutor-course-filter-clear-all span {
    color: #ffffff !important;
}

/* Hover States Operativi */
body [class*="tutor-btn"]:hover,
body .list-item-button:hover {
    background-color: #0a3d4a !important; /* Petrolio Dark */
    color: #ffffff !important;
}

/* Pulsante Diventa Istruttore - Correzione trasparenza e contrasto */
#tutor-become-instructor-button,
body #tutor-become-instructor-button,
body .tutor-btn-outline-primary#tutor-become-instructor-button {
    background-color: #D4AF37 !important; /* Oro Aura Solido */
    color: #1E2132 !important;           /* Testo Scuro per massimo contrasto */
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 24px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#tutor-become-instructor-button:hover {
    background-color: #b8962e !important; /* Oro Dark */
    color: #1E2132 !important;
}

body .tutor-icon-bundle:before,
body .tutor-icon-plus-light:before,
.tutor-wrap .tutor-icon-bundle:before,
.tutor-wrap .tutor-icon-plus-light:before {
    color: white !important;
}

/* ========================================= */
/* 2. DASHBOARD HOVER REMOVE                 */
/* ========================================= */
.bb-dash-grid__block:hover {
    box-shadow: none !important;
    background-color: transparent !important;
}

/* ========================================= */
/* 3. CARD HEIGHT REDUCTION (Professionisti) */
/* ========================================= */
body .dmc-pv5-card,
.dmc-providers-v5 .dmc-pv5-card,
div.dmc-pv5-card {
    padding: 16px 14px 14px !important;
    min-height: auto !important;
}

body .dmc-pv5-avatar,
.dmc-providers-v5 .dmc-pv5-avatar,
.dmc-pv5-card .dmc-pv5-avatar {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 8px !important;
}

body .dmc-pv5-name,
.dmc-providers-v5 .dmc-pv5-name,
.dmc-pv5-card .dmc-pv5-name {
    font-size: 18px !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

body .dmc-pv5-grid,
.dmc-providers-v5 .dmc-pv5-grid,
div.dmc-pv5-grid {
    gap: 16px !important;
}

/* Riduci margini interni delle stats */
body .dmc-pv5-stats,
.dmc-pv5-card .dmc-pv5-stats {
    margin: 8px 0 !important;
    gap: 4px !important;
}

body .dmc-pv5-tags,
.dmc-pv5-card .dmc-pv5-tags {
    margin: 6px 0 !important;
    gap: 4px !important;
}

body .dmc-pv5-spec,
.dmc-pv5-card .dmc-pv5-spec {
    margin: 2px 0 6px !important;
    font-size: 13px !important;
}

/* ========================================= */
/* 4. DASHBOARD CARDS METRICS                */
/* ========================================= */
body .dmc-dashboard-card,
body .dmc-gd-metric-card,
.dmc-gamification-dashboard .dmc-dashboard-card,
.dmc-gamification-dashboard .dmc-gd-metric-card,
div.dmc-dashboard-card,
div.dmc-gd-metric-card {
    padding: 10px !important;
}

body .dmc-card-value,
.dmc-dashboard-card .dmc-card-value,
.dmc-gd-metric-card .dmc-card-value {
    font-size: 28px !important;
    margin: 8px 0 !important;
}

body .dmc-gamification-dashboard,
div.dmc-gamification-dashboard,
section.dmc-gamification-dashboard {
    padding: 20px !important;
}

/* ========================================= */
/* 5. TOOLTIP "Professionisti del Mese"      */
/* ========================================= */
.professionisti-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    cursor: help;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    z-index: 100;
}

.professionisti-badge .bb-icon-trophy {
    font-size: 14px;
    color: #fff;
}

/* Tooltip Base */
.professionisti-badge::after {
    content: 'Selezionati dalla community per qualit\00e0  delle interazioni e feedback positivi';
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #53616A;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    width: max-content;
    max-width: 260px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100000;
    pointer-events: none;
}

.professionisti-badge::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #53616A;
    opacity: 0;
    visibility: hidden;
    z-index: 100000;
}

.professionisti-badge:hover::after,
.professionisti-badge:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================= */
/* 6. MOBILE OVERRIDES                       */
/* ========================================= */
@media (max-width: 768px) {

    /* Content Area Padding Fix Mobile */
    body .content-area.bb-grid-cell,
    .bb-grid-cell.content-area,
    .site-content .content-area.bb-grid-cell {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Tooltip Mobile Fix - Ancorato a destra */
    .professionisti-badge::after {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
        width: max-content !important;
        max-width: 85vw !important;
        text-align: right !important;
        top: calc(100% + 8px) !important;
    }

    .professionisti-badge::before {
        left: auto !important;
        right: 8px !important;
        transform: none !important;
    }

    /* Grid Mobile Padding Zero */
    body .bb-grid-cell:not(.no-gutter),
    body .bb-grid>:not(.no-gutter),
    .site-content .bb-grid-cell:not(.no-gutter),
    .site-content .bb-grid>:not(.no-gutter) {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* Card compattezza mobile */
    body .dmc-pv5-card,
    .dmc-providers-v5 .dmc-pv5-card {
        padding: 12px 10px !important;
    }

    body .dmc-pv5-avatar,
    .dmc-pv5-card .dmc-pv5-avatar {
        width: 50px !important;
        height: 50px !important;
    }

    body .dmc-pv5-name,
    .dmc-pv5-card .dmc-pv5-name {
        font-size: 16px !important;
    }

    body .dmc-pv5-grid,
    .dmc-providers-v5 .dmc-pv5-grid {
        gap: 12px !important;
    }
}

/* ========================================= */
/* 7. FIX NOTIFICHE PWA / MODALI BLOCCATE    */
/* ========================================= */
/* Forza lo z-index e l'interattività per modali notifiche */
.pwa-for-wp-modal-overlay,
.pwa-for-wp-modal,
#onesignal-slidedown-container,
.onesignal-slidedown-dialog,
.dottori-notification-modal,
[class*="notification-popup"],
[class*="install-prompt"],
div[style*="z-index: 9999"] {
    z-index: 2147483647 !important;
    /* Max int z-index */
    pointer-events: auto !important;
}

/* Assicura che i bottoni siano cliccabili */
[class*="notification-popup"] button,
[class*="install-prompt"] button,
#onesignal-slidedown-allow-button,
#onesignal-slidedown-cancel-button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2147483647 !important;
}

/* Fix: BuddyBoss nasconde .notification-dropdown (usa stessa classe del componente React Aura) */
.notification-wrapper > .notification-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ========================================= */
/* 7.5 FULLSCREEN TEMPLATE - SCROLL FIX     */
/* ========================================= */

/* Se usi template Fullscreen invece di Quiz Clean, questo sblocca lo scroll */
.page-template-page-fullscreen body[class*="quiz"],
body.page-template-page-fullscreen[class*="quiz"],
html:has(body.page-template-page-fullscreen[class*="quiz"]) {
    overflow: auto !important;
    height: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Nascondi footer su pagine quiz con template fullscreen */
.page-template-page-fullscreen[class*="quiz"] #colophon,
.page-template-page-fullscreen[class*="quiz"] .site-footer {
    display: none !important;
}

/* ========================================= */
/* 7.6 SEO HIDDEN CONTENT                    */
/* ========================================= */

/* Nasconde contenuto SEO dagli utenti ma lo mantiene visibile ai crawler */
.seo-hidden-content {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* ========================================= */
/* 8. QUIZ PAGES - SCROLL FIX ULTRA          */
/* ========================================= */

/*
 * Il bottom menu è nascosto dal plugin mobile-menu-plugin-suite.
 * 
 * Qui forziamo lo scroll in modo aggressivo perché:
 * 1. Fluent Forms imposta overflow:hidden su .ff_conv_app
 * 2. BuddyBoss imposta altezze fisse in px su body
 * 3. La classe antigravity-scroll-lock blocca tutto
 */

/* Override altissima priorità per template quiz */
.page-template-page-quiz-clean,
.page-template-page-quiz-clean html,
.page-template-page-quiz-clean body,
html.page-template-page-quiz-clean,
body.page-template-page-quiz-clean,
body.quiz-clean-template {
    overflow: auto !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    position: relative !important;
}

/* Forza scroll anche se antigravity-scroll-lock viene aggiunta via JS */
body.antigravity-scroll-lock.quiz-clean-template,
html:has(body.quiz-clean-template) {
    overflow: auto !important;
    height: auto !important;
}

/* Override per Fluent Forms conversational container */
.page-template-page-quiz-clean .ff_conv_app,
.quiz-clean-template .ff_conv_app,
body.quiz-clean-template .ff_conv_app {
    overflow: visible !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Fallback per pagine quiz con body class generata da WordPress */
body[class*="quiz-blocco-medico-paziente"],
body[class*="quiz-professionista-sanitario"],
body[class*="blocco-medico-paziente"] {
    overflow: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

html:has(body[class*="quiz-blocco-medico-paziente"]),
html:has(body[class*="quiz-professionista-sanitario"]),
html:has(body[class*="blocco-medico-paziente"]) {
    overflow: auto !important;
    height: auto !important;
}

/* Override antigravity-scroll-lock su tutte le pagine quiz */
body.antigravity-scroll-lock[class*="quiz"],
html:root body.antigravity-scroll-lock[class*="quiz"] {
    overflow: auto !important;
    height: auto !important;
}

@media (max-width: 768px) {

    /* Mobile: extra aggressivo per iOS */
    .page-template-page-quiz-clean,
    .page-template-page-quiz-clean body,
    body.quiz-clean-template {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .page-template-page-quiz-clean .site-content,
    .quiz-clean-template .site-content,
    body[class*="quiz"] .site-content {
        overflow: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Fluent Forms su mobile */
    .quiz-clean-template .ff_conv_app,
    body[class*="quiz"] .ff_conv_app {
        overflow: visible !important;
        height: auto !important;
    }
}

/* ============================================================ */
/* AURA v5.0 FIX COLORI - BUDDYBOSS TABS E IMPOSTAZIONI       */
/* ============================================================ */

/* Forza testo bianco o chiaro sui tab Buddyboss attivi che hanno sfondo scuro nativo */
body #buddypress div.item-list-tabs ul li.selected a,
body #buddypress div.item-list-tabs ul li.current a,
body #buddypress ul.subnav li.current a,
body #buddypress ul.subnav li.selected a,
body #buddypress #item-nav ul li.current a,
body #buddypress #item-nav ul li.selected a {
    color: #ffffff !important;
}

/* Hover effect *solo testo* per non rompere il layout nativo Buddyboss */
body #buddypress div.item-list-tabs ul li a:hover,
body #buddypress ul.subnav li a:hover,
body #buddypress #item-nav ul li a:hover {
    color: #0f5665 !important;
}

/* ============================================================ */
/* AURA v5.0 HOMEPAGE TICKER & PULSE STRIP                    */
/* ============================================================ */

/* Forza visibilità Above the Fold */
.do-ticker-strip {
    background: #0f5665;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 10001 !important; /* Sopra l'header e i menu */
    width: 100%;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.do-ticker-strip::before,
.do-ticker-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.do-ticker-strip::before {
    left: 0;
    background: linear-gradient(to right, #0f5665 0%, transparent 100%);
}

.do-ticker-strip::after {
    right: 0;
    background: linear-gradient(to left, #0f5665 0%, transparent 100%);
}

.do-ticker-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: ticker-scroll 38s linear infinite;
}

.do-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.do-ticker-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 48px;
    border-right: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    flex-shrink: 0;
}

.do-ticker-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.do-ticker-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.do-ticker-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a0fbff;
    margin-top: 4px;
}

.do-pulse-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #D4AF37;
    padding: 9px 20px;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.do-pulse-dot {
    width: 7px;
    height: 7px;
    background: #D4AF37;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.do-pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #D4AF37;
    border-radius: 50%;
    animation: pulse-ring 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 480px) {
    .do-ticker-item {
        padding: 18px 28px;
        gap: 16px;
    }

    .do-ticker-value {
        font-size: 1.4rem;
    }
}

/* ============================================================ */
/* FIX: HEADER & SUB-MENU Z-INDEX                               */
/* Risolve il problema dei sottomenu nascosti sotto il corpo    */
/* ============================================================ */

.site-header,
.bb-header-wrap,
header.header-main,
.elementor-location-header {
    z-index: 9999 !important;
    position: relative;
    overflow: visible !important;
}

.site-navigation,
.primary-menu-container,
.bb-primary-menu,
.elementor-nav-menu__container {
    overflow: visible !important;
}

#content,
.site-content,
.bb-main-content,
.elementor-location-archive,
.elementor-location-single {
    z-index: 1 !important;
    position: relative;
}

.sub-menu,
.children,
.sub-menu-wrap,
.elementor-nav-menu--dropdown {
    z-index: 10000 !important;
}

/* ============================================================ */
/* FIX: BUDDYPANEL GAP (SIDEBAR ALIGNMENT)                      */
/* Elimina lo spazio vuoto tra header e sidebar                 */
/* ============================================================ */

#buddypanel,
.buddypanel,
.bb-toggle-panel {
    top: 0 !important;
    margin-top: 0 !important;
}

/* Se l'header ha un'altezza fissa, la sidebar deve partire da lì */
.site-header--bb + #buddypanel,
.site-header--bb + .buddypanel {
    top: 110px !important; /* Altezza tipica header BuddyBoss + Ticker */
}

/* Admin bar fix */
body.admin-bar #buddypanel,
body.admin-bar .buddypanel {
    top: 32px !important;
}

/* Reset margini interni che causano il "vuoto" visuale */

/* ============================================================ */
/* RESTORE BUDDYBOSS VISIBILITY (MAJESTIC AURA 2027)            */
/* ============================================================ */

/* Forza visibilità nomi membri nelle Card Directory */
.members.directory #members-list .item-title,
.members.directory .member-name,
.members.directory .item-title,
.bp-list .item-title,
.bp-member-item .item-title,
h2.list-title.member-name,
h2.member-name {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
}

/* Forza visibilità titoli pagine BuddyBoss (Profilo, Impostazioni, etc.) */
.entry-header,
.entry-header .entry-title,
.entry-header h1,
.entry-header h2,
.profile-header h1,
.profile-header h2,
.profile-loop-header h1,
.profile-loop-header h2,
.page-header,
.page-header .page-title,
.buddypress-wrap h2,
#buddypress h1,
#buddypress h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--authority-500, #1a5367) !important;
}


/* Ripristino Header BuddyBoss su tutte le pagine */
.site-header.site-header--bb {
    display: flex !important;
    visibility: visible !important;
}

/* ============================================================ */
/* RESTORE BUDDYBOSS VISIBILITY (MAJESTIC AURA 2027)            */
/* ============================================================ */

/* Forza visibilità nomi membri nelle Card Directory */
.members.directory #members-list .item-title,
.members.directory .member-name,
.members.directory .item-title,
.bp-list .item-title,
.bp-member-item .item-title,
h2.list-title.member-name,
h2.member-name {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
}

/* Forza visibilità titoli pagine BuddyBoss (Profilo, Impostazioni, etc.) */
.entry-header,
.entry-header .entry-title,
.entry-header h1,
.entry-header h2,
.profile-header h1,
.profile-header h2,
.profile-loop-header h1,
.profile-loop-header h2,
.page-header,
.page-header .page-title,
.buddypress-wrap h2,
#buddypress h1,
#buddypress h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--authority-500, #1a5367) !important;
}


/* ============================================================ */
/* AURA 2027: DEFINITIVE UI RESTORATION (v5.8)                */
/* ============================================================ */

/* 1. DARK FIELDS ELIMINATION (Supreme Override) */
#buddypress .standard-form input[type=text], 
#buddypress .standard-form input[type=password], 
#buddypress .standard-form select, 
#buddypress .standard-form textarea,
#buddypress .notification-preferences select,
.notification-preferences select,
.settings-page select,
.settings-page input,
input.cmplz-stats {
    background-color: #ffffff !important;
    color: #1E2132 !important;
    border: 1px solid rgba(15, 86, 101, 0.12) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 2. PROFILE HEADER & BUTTON ALIGNMENT (Surgical Flexbox Fix) */
/* TARGET ONLY THE HEADER, NOT THE FIELDS GROUP WRAPPER */
header.profile-loop-header, 
header.entry-header.profile-loop-header,
.buddypress-wrap .bb-profile-header-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(15, 86, 101, 0.08) !important;
}

/* Revert .group-separator-block to block so it doesn't break the profile fields */
.group-separator-block {
    display: block !important;
}

.bb-profile-title, 
header.profile-loop-header h2.bb-profile-title,
.entry-title.bb-profile-title {
    margin-bottom: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    color: #0f5665 !important;
}

.push-right, 
.button.small.push-right,
header.profile-loop-header a.button,
.bb-profile-header-content a.button {
    float: none !important;
    position: static !important;
    margin-left: auto !important;
}

/* 3. GLOBAL TYPOGRAPHY ENFORCEMENT */
body, #buddypress, .site-footer, .widget-title {
    font-family: 'Outfit', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif; /* Native headings use Outfit */
}

.hero-title h1, h1.reveal, .dmc-hero-serif {
    font-family: 'Newsreader', serif !important;
}

/* 4. MISSING LAYOUT FIXES (Restored from style.css) */
/* Prevent horizontal overflow on mobile / header */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

#page, .site, .site-content, #content {
    overflow: visible !important;
}

/* Full-width header fix - SAFE FOR BUDDYPANEL */
@media (min-width: 1025px) {
    html body #masthead .container,
    html body .site-header .container {
        max-width: 100% !important;
        /* Non forziamo width:100% e padding !important per permettere a BuddyBoss di spostare l'header quando il BuddyPanel è aperto */
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* 5. TUTOR LMS MENU ACTIVE FIX (Ultra-Specificity Override) */
.tutor-dashboard .tutor-frontend-dashboard-maincontent .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a,
.tutor-dashboard .tutor-frontend-dashboard-maincontent .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a:hover {
    background-color: #0F5665 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.tutor-dashboard .tutor-frontend-dashboard-maincontent .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a span,
.tutor-dashboard .tutor-frontend-dashboard-maincontent .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a i,
.tutor-dashboard .tutor-frontend-dashboard-maincontent .tutor-dashboard-left-menu .tutor-dashboard-permalinks li.active a::before {
    color: #FFFFFF !important;
}

/* 6. TUTOR LMS BUTTON FIXES */
#tutor-become-instructor-button, 
body #tutor-become-instructor-button, 
body .tutor-btn-outline-primary#tutor-become-instructor-button {
    background-color: #ffffff !important;
}

.tutor-btn.tutor-btn-outline-primary.tutor-btn-md.tutor-btn-block {
    border-radius: 14px !important;
}

/* Ticker integrity: rectangular 0px radius */
.do-pulse-strip, .do-pulse-strip::before, .do-pulse-strip::after,
.pulse-ticker, .ticker-wrap, .ac-ticker, .elementor-widget-ticker, .do-ticker-track,
[class*="ticker"] {
    border-radius: 0px !important;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}
