

/* Stili generali della navbar */
.main-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 15px 30px;
    background-color: #1e293b;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}



.nav-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s, text-shadow 0.3s;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}
.nav-link:hover {
    transform: scale(1.15);
    color: #f1f5f9;
    text-shadow: 0 0 10px #f1f5f9;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover::after {
    width: 80%;
}
.home-link:hover::after { background-color: #00b4fe; }
.servizi-link:hover::after { background-color: #d60281; }
.faq-link:hover::after { background-color: #3bff34; }
.altro-link:hover::after { background-color: #ba25ff; }
.admin-link:hover::after { background-color: #efe444; }

.nav-item.altro-item:hover .dropdown {
    display: block;
}
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 5%;
    transform: translateX(-50%);
    background-color: #2e3a4e;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
    min-width: 150px;
    animation: fadeIn 0.3s ease-out forwards;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #d1d5db;
    text-decoration: none;
    text-align: left;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.dropdown-item:hover {
    transform: translateX(5px);
    color: #ffffff;
    background-image: linear-gradient(90deg, #40c9ff, #e81cff);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.dropdown-item:first-child { border-radius: 10px 10px 0 0; }
.dropdown-item:last-child { border-radius: 0 0 10px 10px; }



#litesto{
    display: flex
;
    align-items: center;
}


/* --- MENU MOBILE: Nascondi dropdown nel menu laterale --- */
#sideMenu .dropdown {
  display: none !important;
}

#sideMenu .main-nav {
  flex-direction: column;
  gap: 10px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#sideMenu .nav-link {
  display: block;
  text-align: center;
  padding: 14px;
  margin: 4px 0;
  border-radius: 8px;
  background-color: #1a1f27;
  color: white;
  transform: none !important;
  text-shadow: none !important;
  transition: background 0.3s ease;
}

#sideMenu .nav-link:hover {
  background-color: #00b4fe;
  color: white;
}

#sideMenu .nav-link::after {
  display: none;
}