body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: normal;
}

nav {
  background-color: #2e8b57; /* Cambiato il colore di sfondo */
  background: linear-gradient(to bottom, #4caf50, #2e8b57);
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  display: inline-block;
  position: relative;
}

a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  background-color: #eee; /* Cambiato il colore di sfondo */
  background: linear-gradient(to bottom, #fff, #eee);
  color: red;
  font-weight: bold;
}

button {
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
}

button:hover {
  background-color: #e0e0e0;
  border-color: #888;
}

.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

img {
  transition: transform 0.3s ease-in-out;
  transform: scale(1);
}

img:hover {
  transform: scale(1.05);
}

.header {
  background-image: linear-gradient(to right, #ff7e5f, #feb47b);
}

.submenu {
  display: none;
  position: absolute;
  background-color: #2e8b57; /* Cambiato il colore di sfondo */
  background: linear-gradient(to bottom, #4caf50, #2e8b57);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(
    -10px
  ); /* Aggiunto per posizionare il sottomenu leggermente sopra */
  opacity: 0; /* Impostato l'opacità a 0 per iniziare */
  z-index: 1; /* Aggiunto per far comparire il sottomenu sopra gli altri elementi */
}

li:hover .submenu {
  display: block;
  animation: fadeInDown 0.5s ease, bounceIn 0.5s ease, stayVisible 0.5s forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.notification {
  animation: pulse 2s infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid orange;
  width: 100%;
  animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes stayVisible {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}
