/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  width: 80%;
  margin: 0 auto;
  max-width: 1200px;
  min-width: 320px;
}

/* Header */
header {
  background-color: #444; /* Contrasto migliorato */
  color: white;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* Ensure the homepage link inherits the header color */
header h1 a {
  color: white;
  text-decoration: none;
}

header h1 a:hover {
  color: white;
  text-decoration: none;
}

header h1 a:visited {
  color: white;
  text-decoration: none;
}

ol {
  padding-left: 1.5em; /* o 0, se vuoi rimuovere il rientro completamente */
  margin-left: 0;
  text-align: left;
  list-style-position: outside;
}

ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.5em;
  margin-left: 0;
  text-align: left;
}

}
header nav {
  position: relative;
}

header nav .menu-icon {
  display: none;
  cursor: pointer;
}

header nav .menu-icon i {
  font-size: 24px;
  color: white;
}

header nav ul {
  list-style-type: none;
  text-align: center;
  padding: 0;
}

header nav ul li {
  display: inline-block;
  margin: 0 15px;
}

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

header nav ul li .dropbtn {
  color: white;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

header nav ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

header nav ul li .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

header nav ul li .dropdown-content a:hover {
  background-color: #f1f1f1;
}

header nav ul li:hover .dropdown-content {
  display: block;
}

/* Section */
section {
  padding: 40px 0;
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #333;
}

#patologie ul {
  list-style-type: disc;
  margin-left: 20px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  background-color: #555;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #666;
}

.button {
  background-color: #555;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

.button:hover {
  background-color: #666;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: relative; /* Cambiato da fixed a relative */
  width: 100%;
  bottom: 0;
}

/* Accessibility: focus outline */
a:focus,
button:focus {
  outline: 3px solid #555;
  outline-offset: 2px;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  header h1 {
    font-size: 28px;
  }

  header nav .menu-icon {
    display: block;
  }

  header nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
  }

  header nav ul.active {
    display: flex;
  }

  header nav ul li {
    display: block;
    margin: 10px 0;
  }

  header nav ul li select {
    width: 100%;
    margin-top: 10px;
  }

  h2 {
    font-size: 24px;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }
}

/* Responsive images */
img {
  max-width: 40%;
  max-height: 40%;
  height: auto;
  display: block;
}
