/* HEADER trasparente con effetto vetro --> modificato a sfondo nero solido */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000; /* nero pieno */
  /* rimuovo backdrop-filter perché non serve su colore solido */
  z-index: 1000;
}

/* NAV contenitore */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  color: #fff;
  background: #000; /* aggiunto per sicurezza che nav abbia sfondo nero */
}

/* LISTA DEL MENU */
#menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* LINK DI NAVIGAZIONE */
#menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
}

#menu a:hover,
#menu a:focus {
  text-decoration: underline;
}

/* PULSANTE MENU TESTUALE */
#menu-toggle {
  display: none;
  background: #000;  /* nero pieno invece di trasparente */
  border: 2px solid #fff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1100;
}

/* DESKTOP */
@media (min-width: 601px) {
  #menu {
    display: flex;
    gap: 1rem;
    background: #000; /* aggiunto per sicurezza */
  }
}

/* MOBILE */
@media (max-width: 600px) {
  #menu-toggle {
    display: block;
  }

  #menu[hidden] {
    display: none;
  }

  #menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000; /* nero pieno */
    border-top: 1px solid #333;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
  }
}
