/* Container principale */
.sidebar-nav2,
.sidebar-nav {
    margin-top: 90px;
    width: 300px;
    position: sticky;
    top: 80px;
    margin-bottom: 10px;
    overflow-y: auto;
    flex-direction: column;
    padding: 16px;
    height: 87vh;
    overflow-y: auto;
    font-family: sans-serif;

    background: rgba(0, 0, 0, 0.35);
    border-radius: 0 50px 50px 0;
    backdrop-filter: blur(9.6px);
    -webkit-backdrop-filter: blur(9.6px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Titolo della sezione */
.nav-title {
    padding: 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Elemento della lista */
.nav-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

/* Effetto al passaggio del mouse */
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
}

/* Stato attivo (selezionato) */
.nav-item.active {
    background-color: rgba(152, 186, 226, 0.15);
    color: #c2fbb4;
    font-weight: 600;
    border-left: 4px solid #c2fbb4;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.sidebar-nav {
    overflow-y: auto;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 90px;
    margin-bottom: 50px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;

    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

@media (min-width: 901px) {
    .btn-sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .timeline2 {
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .wrapperSidebarText {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .sidebar-nav2,
    .sidebar-nav {
        position: fixed;
        margin-bottom: 10px;
        margin-top: 10vh;
        max-width: 100%;
        width: 100%;
        height: 90vh;
        overflow-y: auto;
        flex-direction: column;
        padding: 16px;

        padding-top: 20px;
        top: 0px;
        left: 0;
        border-radius: 0 0 0px 0px;
        z-index: 999;

        background: rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;

        transform: translateX(-100%);
        transition: transform 0.4s ease;

        box-shadow: #333;
    }

    .sidebar-nav.active,
    .sidebar-nav2.active {
        transform: translateX(0) !important;
    }

    .sidebar-nav2 img {
        display: none;
    }

    .timeline {
        margin-top: 10px !important;
        margin-left: 0px;
        margin-right: 0px;
        margin-bottom: 10px;
        padding: 1.5rem;
    }

    .cont-nav {
        width: 95%;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        margin-left: 0px;
        margin-top: 80px;
        align-items: center;
        justify-content: center;
    }

    .text-content {
        max-width: 100%;
    }
}

.btn-sidebar-toggle {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 1000;
    width: 20px;
    height: 45px;
    border-radius: 0 25px 25px 0;
    background-color: #ffffff4e;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-sidebar-toggle img {
    width: 30px;
    height: 30px;
    transform: rotate(270deg);

    transition: transform 0.4s ease;
}

.btn-sidebar-toggle.open img {
    transform: rotate(450deg) !important;
}

.btn-sidebar-toggle:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}