header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 24, 43, 0.8);
  padding: 1rem;
  z-index: 1000;
}

nav.desktop ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
}

nav.desktop ul li {
  margin: 0 1rem;
}

nav.desktop ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* Stile per i link nei menu di nav.igazione */
nav.desktop a {
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav.desktop a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

nav.desktop a::after {
  display: none; /* Rimuove l'effetto underline per i link nel menu */
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.burger-menu span {
  width: 2rem;
  height: 0.25rem;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 4rem 2rem 2rem;
  transition: transform 0.3s ease-in-out;
  transform: translateX(100%);
}

.mobile-menu.open {
  transform: translateX(0);
  display: block; /* Aggiungiamo questa riga */
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block; /* Aggiungiamo questa riga */
}

.mobile-menu li {
  margin: 1rem 0;
  display: block; /* Aggiungiamo questa riga */
}

.mobile-menu a {
  font-size: 1.5rem;
  text-decoration: none;
  color: #fff;
  display: block; /* Aggiungiamo questa riga */
  padding: 0.5rem 0; /* Aggiungiamo questa riga */
}

.burger-menu.open span:first-child {
  transform: rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
  opacity: 0;
}

.burger-menu.open span:nth-child(3) {
  transform: rotate(-45deg);
}

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

  .mobile-menu {
    display: block;
  }

  nav.desktop ul {
    display: none;
  }
}
