.light-theme .navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --navbar-text-color: --secondary;
}
.dark-theme .navbar {
    --navbar-text-color: --primary;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -9px;
}
.dropdown-submenu.show {
    display: block;
}

.dropdown-menu .dropdown-toggle {
    font-size: var(--bs-dropdown-font-size);
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    letter-spacing: inherit;
    color: var(--bs-dropdown-link-color);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    color: rgb(var(--navbar-text-color));
    transition: .2s ease;
    padding: 10px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.dropdown-menu .dropdown-toggle::after {
    rotate: -90deg;
}
.dropdown-menu .dropdown-toggle:hover {
    font-weight: 600;
}
.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
}
.dropdown-item.active, .dropdown-item:active, .dropdown-item:focus, .dropdown-item:hover {
    border-radius: 5px;
}


.navbar {
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgb(var(--secondary));
    --bs-navbar-toggler-focus-width: 0.15rem;
    transition: all 0.3s ease-in-out;
    z-index: 1041;
}

.navbar * {
    background-color: rgb(var(--secondary));
    color: rgb(var(--navbar-text-color));
    font-size: clamp(14px, 1.5rem, 18px); /* Use rem units */
}

.navbar-toggler{
    border-color: gray !important;
}
@media (max-width:1500px){
    .navbar * {
        font-size: 1vw !important;
    }
}

@media (max-width:800px){
    .navbar * {
        font-size: 3vw !important;
    }
    .nav-link {
        font-size: 6vw !important;
    }
}
.navbar li {
    list-style-type: none;
}
.navbar :is(a:link, a:visited) {
    color: rgb(var(--primary))
}

.navbar a:link {
  color: rgb(var(--primary)); /* Colore per i link non visitati */
}

.navbar a:visited {
  color: rgb(var(--primary)); /* Colore per i link visitati */
}

.navbar :is(.nav-link:hover, .dropdown-item:focus, .dropdown-item:hover) {
    color: rgb(var(--primary-hovered));
    background-color: transparent;
}

.navbar .nav-link.active {
    font-weight: 600;
    color: rgba(var(--primary), 1);
}

@media (max-width: 651px) {
    .navbar {
        padding-inline: 0.5rem;
    }
    .navbar .dropdown-menu.show {
        display: inline-block;
    }

}
@media (max-width: 991px) {
    .navbar .dropdown-menu .dropdown-submenu {
        position: static;
    }
}
