.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    position: relative;
  }
  .logo img {
    height: 50px;
  }
  /* Menu orizzontale */
  nav#menu-orizzontale {
    display: flex;
    gap: 1rem;
  }
  nav#menu-orizzontale a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
  }
  nav#menu-orizzontale a:hover,
  nav#menu-orizzontale a.active {
    background: white;
  }

  /* ICONA HAMBURGER per mobile */
  .menu-icona {
    display: none;
    cursor: pointer;
    font-size: 28px;
    user-select: none;
  }

  /* DROPDOWN MOBILE (full-screen column) */
  .menu-dropdown {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  /* ← qui la regola che mancava: */
  .menu-dropdown.open {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .menu-dropdown .menu {
    background: white;
    width: 100%;
    height: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .menu-dropdown .menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    margin: 0.7rem 0;
    transition: color 0.3s ease;
  }
  .menu-dropdown .menu a.active {
    font-weight: bold;
    background: linear-gradient(#0019ff, #323232);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .menu-dropdown .call-button {
    background-color: #222;
    color: white;
    border-radius: 25px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    transition: background-color 0.3s ease;
  }
  .menu-dropdown .call-button .appointment-button {
      color: white;
  }
  .menu-dropdown .call-button:hover {
    background-color: #333;
  }
  .menu-dropdown .call-button svg {
    width: 20px; height: 20px; fill: #00c851;
  }
  .menu-dropdown .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  .menu-dropdown .social-icons a {
    width: 36px; height: 36px;
    background: linear-gradient(#0019ff, #323232);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }
  .menu-dropdown .social-icons svg {
    width: 20px; height: 20px;
  }

  /* RESPONSIVE BREAKPOINTS */
  @media (min-width: 1200px) {
    .menu-icona,
    .menu-dropdown {
      display: none !important;
    }
    nav#menu-orizzontale {
      display: flex;
    }
  }
  @media (max-width: 1199px) {
    nav#menu-orizzontale {
      display: none;
    }
    .menu-icona {
      display: block;
    }
  }
  
  /* 1) Definiamo l’animazione generica */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2) Quando il menu si apre, resettiamo lo stato iniziale degli elementi */
.menu-dropdown .menu a,
.menu-dropdown .call-button,
.menu-dropdown .social-icons a {
  opacity: 0;
  transform: translateY(-10px);
}

/* 3) Applichiamo animazioni con delay crescente */
.menu-dropdown.open .menu a:nth-child(1) {
  animation: fadeInDown 0.4s ease forwards 0.1s;
}
.menu-dropdown.open .menu a:nth-child(2) {
  animation: fadeInDown 0.4s ease forwards 0.2s;
}
.menu-dropdown.open .menu a:nth-child(3) {
  animation: fadeInDown 0.4s ease forwards 0.3s;
}
.menu-dropdown.open .menu a:nth-child(4) {
  animation: fadeInDown 0.4s ease forwards 0.4s;
}
.menu-dropdown.open .menu a:nth-child(5) {
  animation: fadeInDown 0.4s ease forwards 0.5s;
}
.menu-dropdown.open .menu a:nth-child(6) {
  animation: fadeInDown 0.4s ease forwards 0.6s;
}


/* 4) Chiamiamo dopo gli altri elementi interattivi */
.menu-dropdown.open .call-button {
  animation: fadeInDown 0.4s ease forwards 0.6s;
}
.menu-dropdown.open .social-icons a:nth-child(1) {
  animation: fadeInDown 0.4s ease forwards 0.7s;
}
.menu-dropdown.open .social-icons a:nth-child(2) {
  animation: fadeInDown 0.4s ease forwards 0.8s;
}
