/* =======================
   TOPBAR
======================= */
.topbar {
    background: #f5f6f8;
    padding: 8px 20px;
    font-size: 14px;
}

.full-width-border-bottom {
    border-bottom: 1px solid #dcdcdc;
}

.topbar-inner {
    gap: 20px;
}

.topbar-date {
    color: #1d4d97;
    font-weight: 500;
}

.topbar-links a {
    margin-left: 20px;
    color: #1d4d97;
    font-weight: 500;
}

.topbar-links a:hover {
    color: #1d4d97;
}

.topbar-social a {
    margin-left: 12px;
    font-size: 18px;
    color: #1d4d97;
}

.topbar-social a:hover {
    color: #1d4d97;
}

/* =======================
   LOGO + HEADER
======================= */
.main-header {
    background: #ffffff;
}

.logo-row img {
    height: 70px;
}

/* =======================
   MENU DESKTOP
======================= */
.desktop-menu .main-menu li {
    list-style: none;
}

.desktop-menu .main-menu > li > a {
    padding: 20px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.desktop-menu .main-menu > li > a:hover {
    color: #1d4d97;
}

/* =======================
   HAMBURGER MOBILE
======================= */
.hamburger-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-btn span {
    width: 28px;
    height: 3px;
    background: #1d4d97;
    display: block;
}

/* =======================
   OFFCANVAS MENU
======================= */
.offcanvas-title {
    font-weight: 700;
}

.mobile-menu li a {
    padding: 12px 0;
    display: block;
    font-size: 18px;
    color: #1d4d97;
    border-bottom: 1px solid #eee;
}

.mobile-menu li a:hover {
    color: #1d4d97;
}

/* MOBILE SEARCH */
.mobile-search input {
    border-radius: 50px;
}

/* ================================
   HERO SLIDER FULL-WIDTH
================================ */
#heroSlider {
    position: relative;
}

.slider-img {
    height: 80vh; /* Altezza slider FIT-CISL */
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 0, 0.35); /* oscuramento FIT-CISL */
}

/* TESTI SLIDER */
.carousel-caption {
    bottom: 30%;
}

.slider-cat {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.slider-title {
    line-height: 1.2;
    min-height: 3.6em;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-text {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.slider-btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
}

/* FRECCE */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* MOBILE */
@media (max-width: 768px) {
    .slider-img {
        height: 55vh;
    }
    .carousel-caption {
        bottom: 5%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .slider-title {
        font-size: 28px;
        line-height: 1.2;
        min-height: 2.4em;   /* altezza fissa per 2 righe */
		-webkit-line-clamp: 3;      /* massimo 3 righe */
    }
    .slider-text {
        font-size: 16px;
    }
}

/* ========================================
   SEZIONE DIPARTIMENTI
======================================== */
.dipartimenti-section {
    background: #f6f8fa;
    padding-top: 60px;
    padding-bottom: 60px;
}

.dip-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d4d97;
}

.dip-separator {
    width: 250px;
    height: 3px;
    background: #1d4d97;
    margin-top: 8px;
    margin-bottom: 20px;
}

/* ============================================================
   BOX DIPARTIMENTO – VERSIONE CORRETTA
   Hover: sfondo blu + icone bianche + testo bianco
   Selezionato: rimane blu con icone e testo bianchi
============================================================ */

/* BOX NORMALE */
.dip-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

/* HOVER – tutto bianco sopra sfondo blu */
.dip-box:hover {
    background: #1d4d97 !important;
}

.dip-box:hover .dip-icon,
.dip-box:hover .dip-name {
    color: #ffffff !important;
}

/* BOX ATTIVO DI DEFAULT */
.dip-box-active {
    background: #00a86b !important;
}

.dip-box-active .dip-icon,
.dip-box-active .dip-name {
    color: #ffffff !important;
}

/* ICONA */
.dip-icon {
    font-size: 55px;
    color: #1d4d97;
    margin-bottom: 15px;
}

/* TITOLO */
.dip-name {
    font-size: 17px;
    font-weight: 600;
    color: #495057;
}

/* STATO SELEZIONATO DOPO IL CLICK */
.dip-box.dip-box-selected {
    background: #1d4d97 !important;
}

.dip-box.dip-box-selected .dip-icon,
.dip-box.dip-box-selected .dip-name {
    color: #ffffff !important;
}


/* ========================================
   BANNER UNISCITI
======================================== */
.join-section {
    position: relative;
    width: 100%;
    height: 70vh; /* come FIT-CISL */
    overflow: hidden;
	border-radius: 16px; 
}

.join-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 16px; 
}

.join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 0, 0.45);
}

.join-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    color: #ffffff;
}

.join-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
}

.join-text {
    font-size: 20px;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* PULSANTE */
.join-btn {
    padding: 12px 35px;
    border-radius: 50px;
    background: #ffffff;
    color: #1d4d97;
    font-size: 18px;
    font-weight: 700;
    border: 3px solid #ffffff;
    transition: .3s;
}

.join-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* MOBILE */
@media(max-width: 768px) {
    .join-section { height: 55vh; }

    .join-title { font-size: 32px; }

    .join-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .join-btn {
        font-size: 16px;
        padding: 10px 25px;
    }
}

/* ========================================
   COMUNICATI / IN EVIDENZA
======================================== */
.comunicati-section {
    background: #ffffff;
}

.com-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d4d97;
}

.com-separator {
    width: 180px;
    height: 3px;
    background: #1d4d97;
    margin-top: 8px;
}

/* CARD */
.com-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: .3s ease;
}

.com-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ICONA */
.com-icon {
    width: 70px;
    height: 70px;
    background: #dbe9ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.com-icon i {
    font-size: 35px;
    color: #1d4d97;
}

/* META */
.com-meta {
    font-size: 14px;
    font-weight: 600;
    color: #5f6c7b;
    margin-bottom: 10px;
}

/* TITOLO ITEM */
.com-title-item {
    font-size: 20px;
    font-weight: 700;
    color: #1d4d97;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* DESCRIZIONE */
.com-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* PULSANTE LINK */
.com-btn {
    font-size: 15px;
    font-weight: 700;
    color: #1d4d97;
    text-decoration: none;
}

.com-btn:hover {
    color: #3568b6;
    padding-left: 5px;
    transition: all .2s;
}

/* ========================================
   FAISA-CONFAIL COMUNICA + INTERNAZIONALE
========================================= */
.comunica-int-section {
    background: #f7f9fa;
}

/* TITOLI SEZIONE */
.col-title {
    font-size: 24px;
    font-weight: 700;
    color: #1d4d97;
}

.col-separator {
    width: 240px;
    height: 3px;
    background: #1d4d97;
    margin-bottom: 25px;
    margin-top: 5px;
}

/* CARD */
.com-block {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

/* Immagine sfondo */
.com-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Overlay */
.com-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 0, 0.45);
}

/* Contenuto card */
.com-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
}

/* Categoria */
.com-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Titolo card */
.com-block-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 5px;
    line-height: 1.3;
}

/* Link “vedi tutte” */
.com-more {
    font-size: 15px;
    font-weight: 700;
    color: #1d4d97;
    text-decoration: none;
}

.com-more:hover {
    color: #3568b6;
}

/* ========================================
   EVENTI - FAISA-CONFAIL
========================================= */

.eventi-section {
    background: #ffffff;
}

.eventi-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d4d97;
}

.eventi-separator {
    width: 100px;
    height: 3px;
    background: #1d4d97;
    margin-top: 8px;
}

/* FILTRI */
.eventi-filters {
    background: #f3f5f7;
    border-radius: 12px;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
}

.filtra-btn {
    background: #1d4d97;
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
}

.filtra-btn:hover {
    background: #3568b6;
	color: #fff;
}

/* LISTA EVENTI */
.evento-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: .2s;
}

.evento-card:hover {
    transform: translateY(-3px);
}

/* DATA EVENTO */
.evento-date {
    background: #1d4d97;
    color: #fff;
    width: 75px;
    height: 75px;
    border-radius: 12px;
    text-align: center;
    /*padding-top: 10px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.evento-day {
    font-size: 26px;
    font-weight: 700;
}

.evento-month {
    font-size: 14px;
    font-weight: 700;
}

/* DETTAGLI */
.evento-title {
    font-size: 20px;
    font-weight: 700;
}

.evento-type {
    color: #1d4d97;
    font-size: 13px;
    font-weight: 700;
}

.evento-desc {
    color: #555;
    margin-bottom: 8px;
}

.evento-more {
    color: #1d4d97;
    font-weight: 700;
    text-decoration: none;
}

.evento-more:hover {
    color: #3568b6;
}

/* MOBILE */
@media (max-width: 768px) {
    .evento-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .evento-date {
        margin-bottom: 10px;
    }
}

/* ========================================
   FORM ISCRIZIONE / REGISTRAZIONE
========================================= */
.iscrizione-section {
    background: #f6f8fa;
}

.isc-title {
    font-size: 26px;
    font-weight: 700;
    color: #1d4d97;
}

.isc-separator {
    width: 335px;
    height: 3px;
    background: #1d4d97;
}

.isc-intro {
    font-size: 16px;
    color: #555;
}

/* Form */
.isc-form .form-control,
.isc-form .form-select {
    border-radius: 10px;
    border-color: #d0d7df;
}

.isc-form .form-control:focus,
.isc-form .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 61, 0.2);
    border-color: #1d4d97;
}

.isc-btn {
    background: #1d4d97;
    color: #ffffff;
    font-weight: 700;
    border-radius: 30px;
    padding: 10px 28px;
    border: none;
}

.isc-btn:hover {
    background: #3568b6;
	color: #ffffff;
}

/* Immagine laterale */
.isc-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.isc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.isc-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #ffffff;
}

.isc-image-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

/* Mobile */
@media (max-width: 768px) {
    .isc-image-wrapper {
        margin-top: 25px;
    }
    .isc-image-overlay h3 {
        font-size: 18px;
    }
	
    .isc-btn {
        display: flex;          /* da inline a flex per margin:auto */
        margin: 0 auto;         /* centra orizzontalmente */
        width: fit-content;     /* non si allarga a tutto schermo */
    }	
}

/* ========================================
   FOOTER FAISA-CONFAIL
========================================= */

.main-footer {
    background: #1d4d97; /* blu scuro elegante */
    color: #ffffff;
}

/* LOGO */
.footer-logo {
    width: 80px;
}

/* Testo descrittivo */
.footer-desc {
    color: #d2e4d8;
    font-size: 15px;
    line-height: 1.5;
}

/* Titoli */
.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Link */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d2e4d8;
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Social */
.footer-social a {
    font-size: 22px;
    margin-right: 12px;
    color: #ffffff;
}

.footer-social a:hover {
    color: #dbe9ff;
}

/* Newsletter */
.footer-newsletter .form-control {
    border-radius: 10px;
    border: none;
}

.footer-btn {
    width: 100%;
    background: #dbe9ff;
    color: #003a23;
    font-weight: 700;
    border-radius: 30px;
}

.footer-btn:hover {
    background: #ffffff;
	color: #1d4d97;
}

/* Footer bottom */
.footer-bottom {
    background: #173E7A;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom-link {
    color: #b2ccb8;
    text-decoration: none;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

/* ============================================================
   FORZATURA MENU ORIZZONTALE
=============================================================== */

/* Contenitore menu */
.fc-menu,
.main-menu,
.fc-desktop-menu ul,
.fc-desktop-menu > ul,
.fc-desktop-menu .menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 45px !important;
    width: 100%;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ogni LI del menu deve essere in linea */
.fc-menu li,
.main-menu li,
.fc-desktop-menu li,
.fc-desktop-menu ul li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* Link */
.fc-menu li a,
.main-menu li a,
.fc-desktop-menu li a {
    color: #1d4d97 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 6px 4px !important;
}

.fc-menu li a:hover,
.main-menu li a:hover,
.fc-desktop-menu li a:hover {
    color: #1d4d97 !important;
}

/* Elimina dropdown strane di WP */
.fc-desktop-menu ul.sub-menu {
    display: none !important;
}

/* Versione desktop attiva solo su schermi larghi */
@media (max-width: 991px) {
    .fc-desktop-menu {
        display: none !important;
    }
}

@media (min-width: 992px) {
    /* Forza visualizzazione menu desktop */
    .fc-desktop-menu {
        display: flex !important;
        justify-content: center !important;
    }
}

/* Freccia solo per le voci con submenu */
.fc-desktop-menu li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 11px;
    margin-left: 6px;
    color: #1d4d97;
    transition: .2s ease;
}

/* Quando passa il mouse, diventa blu */
.fc-desktop-menu li.menu-item-has-children:hover > a::after {
    color: #1d4d97;
}

/* Testo normale */
.fc-desktop-menu > ul > li > a {
    color: #1d4d97 !important;
    font-size: 15px;
    font-weight: 600;
    padding: 18px 12px;
    text-decoration: none;
}

/* Hover menu principale */
.fc-desktop-menu > ul > li:hover > a {
    color: #1d4d97 !important;
}

/* Contenitore submenu */
.fc-desktop-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    list-style: none;
    padding: 0;
    width: 280px;
    z-index: 10000;
}

/* Mostra submenu */
.fc-desktop-menu li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Voce submenu */
.fc-desktop-menu .sub-menu li a {
    padding: 14px 20px;
    display: block;
    color: #1d4d97;
    font-size: 15px;
    border-bottom: 1px solid #f1f1f1;
}

/* Hover stile FIT-CISL */
.fc-desktop-menu .sub-menu li:hover > a {
    background: #dbe9ff;       /* blu chiarissimo */
    color: #1d4d97 !important; /* blu FIT */
    font-weight: 600;
}


/* ============================================================
   MENU DESKTOP ORIZZONTALE – VERSIONE FINALE FIT-CISL
=============================================================== */

/* Contenitore menu */
.fc-desktop-menu > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 45px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Voci del menu allineate */
.fc-desktop-menu > ul > li {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

/* Link principali – carattere grande tipo FIT-CISL */
.fc-desktop-menu > ul > li > a {
    font-size: 18px !important;       /* PIÙ GRANDE */
    font-weight: 700 !important;      /* SPESSO COME FIT */
    color: #1d4d97 !important;        /* blu FIT */
    padding: 18px 12px !important;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

/* Hover menù principale */
.fc-desktop-menu > ul > li:hover > a {
    color: #1d4d97 !important;
}

/* Freccia ▼ identica FIT-CISL */
.fc-desktop-menu li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 22px;                   /* identica all’immagine */
    margin-left: 8px;
    color: #1d4d97;
    position: relative;
    top: -2px;
}

/* Freccia hover */
.fc-desktop-menu li.menu-item-has-children:hover > a::after {
    color: #1d4d97;
}

/* SUBMENU – NASCOSTO DI BASE */
.fc-desktop-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 280px;
    z-index: 9999;
}

/* MOSTRA SUBMENU SU HOVER */
.fc-desktop-menu li.menu-item-has-children:hover > .sub-menu {
    display: block !important;    /* RISOLTO */
}

/* Voci submenu */
.fc-desktop-menu .sub-menu li a {
    display: block;
    padding: 14px 20px;
    font-size: 17px;
    color: #1d4d97;
    border-bottom: 1px solid #f1f1f1;
}

/* Hover submenu – effetto FIT-CISL */
.fc-desktop-menu .sub-menu li:hover > a {
    background: #dbe9ff;            /* blu chiarissimo FIT */
    color: #1d4d97 !important;
    font-weight: 700;
}

/* Nascondi menu desktop su mobile */
@media (max-width: 991px) {
    .fc-desktop-menu {
        display: none !important;
    }
}

/* ===========================================
   CORREZIONE SOTTOMENU – VERSIONE FIT-CISL
   (Mostra le voci in colonna ordinate)
=========================================== */

/* Impedisce ai li del submenu di usare inline-block */
.fc-desktop-menu .sub-menu li {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
}

/* Impedisce che il submenu prenda il layout orizzontale del menu principale */
.fc-desktop-menu .sub-menu {
    flex-direction: column !important;
    gap: 0 !important;
}

/* Sistema la posizione del dropdown sotto la voce madre */
.fc-desktop-menu li.menu-item-has-children {
    position: relative !important;
}

/* Larghezza uniforme tipo FIT-CISL */
.fc-desktop-menu .sub-menu {
    width: 240px !important;
}

/* Testo submenu */
.fc-desktop-menu .sub-menu li a {
    display: block !important;
    padding: 12px 18px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1d4d97 !important;
    border-bottom: 1px solid #f1f1f1 !important;
}

/* ===========================================
   HOVER SOTTOMENU – STILE FIT-CISL
=========================================== */

/* Hover blu scuro e testo bianco */
.fc-desktop-menu .sub-menu li:hover > a {
    background: #1d4d97 !important;   /* blu scuro FIT-CISL */
    color: #ffffff !important;
    font-weight: 700;
}

/* Bordo inferiore arrotondato del dropdown */
.fc-desktop-menu .sub-menu {
    border-radius: 0 0 12px 12px !important; /* solo angoli inferiori */
    overflow: hidden !important;            /* fa apparire l’arrotondamento */
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
}

/* Forza dimensioni e layout del dropdown */
.fc-desktop-menu .sub-menu {
    width: 260px !important;
    padding: 0 !important;
    background: #ffffff !important;
}

/* Voci del submenu */
.fc-desktop-menu .sub-menu li a {
    padding: 14px 20px !important;
    font-size: 15px !important;
    color: #1d4d97 !important;
    border-bottom: 1px solid #f1f1f1 !important;
}

/* Rimuove l’ultimo bordo */
.fc-desktop-menu .sub-menu li:last-child a {
    border-bottom: none !important;
}

/* ================================
   MENU HAMBURGER – STILE FIT-CISL
================================ */

/* Contenitore delle voci */
.offcanvas .mobile-menu li {
    list-style: none;
    width: 100%;
}

/* Singola voce */
.offcanvas .mobile-menu li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1e2a37;
    padding: 18px 20px;
    border-bottom: 1px solid #e3e7ea;
}

/* Hover */
.offcanvas .mobile-menu li > a:hover {
    background: #f1f5f8;
}

/* Freccia per submenu */
.offcanvas .mobile-menu li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 14px;
    color: #1e2a37;
    transition: transform .2s ease;
}

/* Freccia attiva quando è aperto */
.offcanvas .mobile-menu li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* SUBMENU */
.offcanvas .mobile-menu .sub-menu {
    display: none;
    padding-left: 25px;
    background: #ffffff;
}

/* Mostra submenu */
.offcanvas .mobile-menu li.menu-item-has-children.open > .sub-menu {
    display: block;
}

/* Voci submenu */
.offcanvas .mobile-menu .sub-menu li a {
    font-size: 16px;
    padding: 14px 0;
    color: #1d4d97;
    border-bottom: 1px solid #f1f1f1;
}

/* Hover submenu */
.offcanvas .mobile-menu .sub-menu li a:hover {
    color: #1d4d97;
    font-weight: 700;
}

/* =====================================
   FIX MENU HAMBURGER OFFCANVAS
   - niente pallini
   - menu che scorre
===================================== */

/* il pannello offcanvas occupa tutto lo schermo in altezza */
.offcanvas {
    max-height: 100vh;
}

/* parte interna scrollabile */
.offcanvas-body {
    overflow-y: auto;
    padding: 0;              /* come nella tua immagine: voci a filo */
}

/* UL principale del menu mobile: NO pallini, NO margini */
.offcanvas .mobile-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* LI di primo livello: niente bullet, tutta la larghezza */
.offcanvas .mobile-menu > li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Anche i sottomenù senza pallini */
.offcanvas .mobile-menu .sub-menu {
    list-style: none !important;
    margin: 0;
    padding-left: 20px;   /* leggero rientro rispetto al padre */
}

/* =======================================================
   FIX MENU MOBILE (HAMBURGER)
   - Rimuove i pallini da tutte le voci
   - Rende il menu perfettamente scrollabile
   - Mantiene layout identico al modello FIT-CISL
======================================================= */

/* Il contenitore offcanvas deve poter scorrere */
.offcanvas {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

/* Parte interna scrollabile */
.offcanvas-body {
    overflow-y: auto !important;
    padding: 0 !important;
}

/* Lista principale mobile: niente pallini */
.offcanvas .mobile-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ogni voce di menu */
.offcanvas .mobile-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Link interni */
.offcanvas .mobile-menu li > a {
    display: block;
    width: 100%;
    padding: 18px 22px;
    text-decoration: none;
    color: #0f2030;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

/* SOTTOMENU — niente pallini e scroll coerente */
.offcanvas .mobile-menu .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0 28px !important; /* rientro identico FIT-CISL */
}

/* Link del sottomenù */
.offcanvas .mobile-menu .sub-menu li a {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 22px;
    border-bottom: 1px solid #f0f0f0;
}

/* Permette lo scroll anche se ci sono molti elementi */
.offcanvas-body::-webkit-scrollbar {
    width: 6px;
}
.offcanvas-body::-webkit-scrollbar-thumb {
    background: #1d4d97;
    border-radius: 10px;
}

/* ==========================================================
   MOBILE MENU — FIX COMPLETO
   - Niente pallini
   - Frecce in stile FIT-CISL
   - Sottomenù toggle
   - Scroll verticale
========================================================== */

/* Offcanvas scrollabile */
.offcanvas {
    height: 100vh !important;
    overflow: hidden !important;
}

.offcanvas-body {
    max-height: 100vh !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

/* RESET LISTE — rimuove pallini ovunque */
.offcanvas-body ul,
.offcanvas-body li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Voci principali */
.mobile-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #0f2030;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
}

/* Freccia per le voci con submenu */
.mobile-menu li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 16px;
    color: #0f2030;
    transition: transform .25s ease;
}

/* Freccia ruota quando aperto */
.mobile-menu li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
    color: #1d4d97;
}

/* Sottomenù nascosto di default */
.mobile-menu .sub-menu {
    display: none;
    background: #ffffff;
    padding-left: 28px !important;
}

/* Voci sottomenù */
.mobile-menu .sub-menu li a {
    font-size: 16px;
    font-weight: 600;
    padding: 15px 20px;
    color: #133046;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
}

/* Hover sottomenù */
.mobile-menu .sub-menu li a:hover {
    background: #dbe9ff;
    color: #1d4d97;
}
