body.login-active > *:not(#loginForm),
body.login-active > *:not(#loginForm) * {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#loginForm,
#loginForm * {
    opacity: 1 !important;
}

.menu-desktop {
  position: relative;
  width: 100%;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center; /* centra il contenuto centrale */
  padding: 0 20px;
  background: #2C5F2D;
  color: #F2F2F2;
  border-bottom: 4px solid #0d8600;
  box-sizing: border-box;
}

.menu-desktop a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-desktop a:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.menu-mobile {
    display: none;
}

.menu-left,
.menu-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-left {
  left: 20px;
}

.menu-right {
  right: 20px;
}

.menu-center {
  text-align: center;
  font-size: 1.4rem;
}

.menu-desktop img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.login-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 35%;
    transform: translate(-50%, -50%);
    background: rgb(165, 165, 165);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.form-field {
    margin: 10px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
}

.form-field button {
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.form-field button:hover {
    background: #45a049;
}

@media (max-width: 1024px) {
    .menu {
        height: 70px;
        border-bottom: 3.8px solid #0d8600;

    }

    .menu-left {
        font-size: 1.1rem;
    }

    .menu-left strong {
        font-size: 1.2rem; 
    }

    .menu-right img {
        width: 20px; 
        height: 20px;
    }

    .login-form {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .menu-desktop {
        display: none;
    }

    .menu-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        background: #2C5F2D;
        color: #F2F2F2;
        border-bottom: 4px solid #0d8600;
        box-sizing: border-box;
    }

    .menu-mobile-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 12px;
    }

    .menu-mobile-icons {
        display: flex;
        justify-content: space-around;
        width: 100%;
        gap: 5px;
    }

    .menu-mobile-icons a {
        display: inline-block;
    }

  
    .menu-icon {
        width: 26px;
        height: 26px;
        cursor: pointer;
        filter: brightness(0) invert(1);
    }
    

    .login-form {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .menu {
        height: 60px;
        border-bottom: 3px solid #0d8600;
    }

    .menu-left {
        font-size: 1rem;
    }

    .menu-left strong {
        font-size: 1.1rem; 
    }

    .menu-right img {
        width: 20px; 
        height: 20px;
    }

    .login-form {
        width: 80%;
    }
}

