#sidebar-superiore>.mat-tree mat-tree-node[aria-level="1"] a {
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 24px !important;
    letter-spacing: 0 !important;
    vertical-align: middle !important;
    color: #002e5f;

}

#sidebar-superiore>.mat-tree mat-tree-node[aria-level="1"] a:focus,
#navigazionesecondaria mat-tree-node[aria-level="2"].inail-mat-panel-active a:focus,
#navigazionesecondaria mat-tree-node[aria-level="2"].inail-mat-panel-active a:focus-visible,
#navigazionesecondaria mat-tree-node a:focus,
#navigazionesecondaria mat-tree-node a:focus-visible {
    outline: none !important;
}

#sidebar-superiore>.mat-tree mat-tree-node[aria-level="1"] .inail-mat-menu-container:hover a+.sub-tree-toggle,
#sidebar-superiore>.mat-tree mat-tree-node[aria-level="1"] .inail-mat-menu-container:hover a {
    color: #0059b8 !important;
}


#sidebar-superiore>.mat-tree .mat-tree-node:focus,
#sidebar-superiore>.mat-tree .mat-tree-node:focus-within {
    /* Rimuove il bordo di focus predefinito */
    outline: 3px solid #19191a !important;
    outline-offset: -3px; // ho aggiunto questo
}


#navigazionesecondaria mat-tree-node a {
    background-color: #Eaedf2 !important;
    color: #333;
    text-decoration: none !important;
    font-size: 13.718px !important;
    font-family: "Open Sans", sans-serif !important;
    line-height: 19.6px !important;
}


#navigazionesecondaria mat-tree-node[aria-expanded="true"] .inail-mat-menu-container .sub-tree-toggle::before {
    transform: rotate(180deg) !important;

}

#navigazionesecondaria mat-tree-node[aria-level="2"] {
    padding-left: 19px !important;
}

#navigazionesecondaria mat-tree-node[aria-level="2"] a {
    color: #002e5f !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-underline-offset: 16% !important;
    text-decoration-thickness: 8% !important;
    text-decoration-skip-ink: auto !important;
}

#navigazionesecondaria mat-tree-node[aria-level="2"].inail-mat-panel-active a {
    color: #003366 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    vertical-align: middle !important;
    text-decoration: none !important;
}


#navigazionesecondaria mat-tree {
    background-color: #Eaedf2 !important;
    padding: 0px 25px 25px !important;
}

#navigazionesecondaria mat-tree-node {
    min-height: 0px !important;
    padding-top: 10px !important;
}

#sidebar-superiore .mdc-list.inail-mat-menu-link {
    //margin-top: 25px !important;
    //margin-bottom: 25px !important;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
}

#sidebar-superiore .mdc-list.inail-mat-menu-link>div {
    margin-bottom: 15px !important;
}

.inail-mat-menu-link a {
    margin-left: 0px !important;
}

.inail-mat-menu-link .mdc-list-item {
    padding-left: 10px !important;
}

.inail-mat-menu-link .mdc-list-item.mdc-list-item--with-one-line {
    height: 0% !important;
}

.inail-mat-menu-link .mdc-list-item:hover::before {
    background-color: transparent !important;
}

.inail-mat-menu-link .mdc-list-item:focus::before {
    background-color: transparent !important;
}

.inail-mat-menu-link .mat-ripple-element {
    display: none !important;
}

.inail-mat-menu-link .fa-li {
    color: #002E5F !important;
    left: 5px !important;
}

mat-tree-node.inail-mat-panel-active .inail-mat-menu-container {
    border-right: 3px solid #003366 !important;
}

.inail-sidebar-superiore-title {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    letter-spacing: 0px !important;
    vertical-align: middle !important;
    font-family: "Open Sans", sans-serif !important;
    margin-top: 0px !important;
    margin-bottom: 30px !important;
}

.inail-sidebar-superiore-link {
    color: #002e5f !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    letter-spacing: 0px !important;
    vertical-align: middle !important;
    font-family: "Open Sans", sans-serif !important;
    margin-top: 0px !important;
    margin-bottom: 30px !important;
}

.servizi-online-secondo-livello>#sidebar-superiore>.panel-heading.menu {
    margin-bottom: 1.5rem;
}

#navigazionesecondaria {
    padding: 0 !important;
}

#sidebar-superiore {
    padding: 24px 32px 0px 32px !important;
}

#sidebar-inferiore {
    margin-left: 0px !important;
    padding: 24px 28px;
}

#sidebar-inferiore h2,
#sidebar-inferiore a {
    padding: 0 4px;
}

#sidebar-inferiore a:focus,
#sidebar-inferiore a:focus-visible {
    outline: none !important;
    background-color: transparent !important;
    box-shadow: 0 0 0 1px white, 0 0 0 4px #19191A !important;
    border-radius: 4px !important;
    /* Keep smooth corners */

}


@media (min-width: 1024px) {
    .inail-mat-menu-link .fa-li {
        left: 38px !important;
    }
}

.inail-mat-menu-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent !important;
    border: transparent !important;
    width: 100% !important;
    align-items: center !important;
    height: 56px !important;
    padding: 0px 20px !important;
    cursor: pointer !important;
}

.inail-mat-menu-container .sub-tree-toggle {
    color: #002e5f !important;
}

.inail-mat-menu-container .btn.sub-tree-toggle::before {
    color: inherit !important;
}

.inail-mat-menu-verticale {
    border-bottom: 1px ridge #7e858b !important;

}

.inail-mat-menu-link>div {
    display: flex !important;
    align-items: center !important;
}

.inail-mat-menu-link .fa {
    margin-right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    color: #0059b8 !important;
    font-size: 18px !important;
}

#sidebar-inferiore span {
    padding: 10px 0px !important;
}

#sidebar-inferiore {
    margin-left: 0px !important;
    padding: 24px 32px !important;
}

#sidebar-inferiore h2 {
    color: white !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    vertical-align: middle !important;
    font-family: "Open Sans", sans-serif !important;
}

.sidebarLinks {
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-underline-offset: 16% !important;
    text-decoration-thickness: 8% !important;
    text-decoration-skip-ink: auto !important;
}

button#close-slider-menu {
    margin-top: 0px !important;
}

.panel-heading a {
    color: inherit !important;
}

.panel-heading a:hover {
    color: #0059b8 !important;
}

.panel-heading .d-flex a {
    order: 2;
    /* Mostra dopo */
    margin-left: 8px;
    /* Spazio tra chevron e testo */
}

.panel-heading .d-flex .chevron-icon {
    order: 1;
    /* Mostra prima */
    transition: color 0.2s;
}

/* Hover: cambia colore anche alla freccia */
.panel-heading a:hover+.fa-chevron-left {
    color: #0059b8;
}

.panel-heading h2 a {
    font-size: 24px !important;
    font-family: "Open Sans", sans-serif !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    text-decoration-style: solid !important;
    text-underline-offset: 16% !important;
    text-decoration-thickness: 8% !important;
    text-decoration-skip-ink: auto !important;
    outline: none;
}

.panel-heading h2 a:focus {
    outline: 3px solid #19191a !important;
    border-radius: 1px !important;
    outline-offset: 2px !important;
}

.panel-heading .fa-chevron-left {
    width: 24px !important;
    height: 24px !important;
}

#navigazionesecondaria mat-tree-node[aria-level="2"] a:hover {
    color: #0059B8 !important;
}

.inail-mat-sezione-inferiore-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    vertical-align: middle !important;
    font-family: "Open Sans", sans-serif !important;
}

#sidebar-inferiore .inail-mat-sezione-inferiore-title,
#sidebar-inferiore a {
    padding: 0 4px;
}

@media (max-width: 991.98px) {
    #navigazionesecondaria {
        position: relative !important;
    }
}

button#trigger-slider-menu .inail-responsive-menu-icon {
    transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
    opacity: 0;
    transition: all 0.3s ease;
}

button#trigger-slider-menu .inail-responsive-menu-icon.active {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

button#trigger-slider-menu {
    position: relative !important;
}

button#trigger-slider-menu .inail-responsive-menu-icon {
    position: absolute !important;
    top: 50% !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

button#trigger-slider-menu:focus {
    outline: 3px solid #19191a !important;
}