.top-menu {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 0 10px;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: 60px;
   background: #040e22;
   border-bottom: 2px solid #1E90FF;
   z-index: 1000;
}

/* LOGO */
.logo-container {
   flex: 0 0 auto;
   margin-left: -20px;
   overflow: hidden; /* Impedisce a qualsiasi elemento interno di sbordare */
   height: 60px;     /* Forza l'altezza pari al menu */
   display: flex;
   align-items: center;
}

.logo-container img {
   max-width: 180px;
   max-height: 40px; /* <--- BLOCCA L'ALTEZZA MASSIMA DEL LOGO */
   width: auto;
   height: auto;
   object-fit: contain;
   cursor: default; 
   transition: none; 
}

.logo-container img:hover {
   transform: none; /* Blocca qualsiasi ingrandimento */
   filter: none; /* Rimuove l'ombra rosa al passaggio del mouse */
}

/* MENU ICONS */
.menu-items {
   display: flex;
   align-items: center;
   gap: 4px;
}

.menu-item {
   position: relative;
   cursor: pointer;
   color: #D3D3D3;
   font-size: 1.2rem;
   padding: 4px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.05);
   transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
   min-width: 30px;
   min-height: 30px;
}

.menu-item:hover {
   color: #FF69B4;
   transform: scale(1.1);
   background: rgba(255, 105, 180, 0.15);
}

/* BADGE */
.badge {
   position: absolute;
   top: -5px;
   right: -5px;
   background: #FF69B4;
   color: #FFFFFF;
   border-radius: 50%;
   padding: 2px 6px;
   font-size: 0.6rem;
   box-shadow: 0 0 5px rgba(255, 105, 180, 0.6);
   animation: pulse 1.5s infinite;
   z-index: 2;
}

/* ANIMAZIONE BADGE */
@keyframes pulse {
   0%   { transform: scale(1);   box-shadow: 0 0 5px rgba(255,105,180,0.6); }
   50%  { transform: scale(1.1); box-shadow: 0 0 10px rgba(255,105,180,0.9); }
   100% { transform: scale(1);   box-shadow: 0 0 5px rgba(255,105,180,0.6); }
}

/* === FIX DEFINITIVO LOGOUT (BLU) === */
.top-menu .logout-item i {
   color: #1E90FF !important;
}

.top-menu .logout-item:hover i {
   color: #4da6ff !important;
}
