/* Regole per il layout della pagina */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  background-image: url('../background.jpg');
  background-size: cover;
  margin: 0;
  padding: 0;
}

a {
  color: #337ab7; /* colore base */
  text-decoration: none; /* senza sottolineatura */
}

a:hover {
  color: #23527c; /* colore al passaggio del mouse */
}

header {
  background-color: #d6e0ec;
  color: #000;
  padding: 20px 0;
  text-align: center;
}

main {
  margin: 20px auto;
  margin-bottom: 600px;
  max-width: 1200px;
  padding: 20px;
}

form {
  max-width: 600px;
  margin: 20px auto;
}

label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 16px;
  width: 100%;
}

input[type="submit"] {
  background-color: #ffcc00;
  color: #333;
  border: none;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 16px;
  width: 100%;
  background-color: #fff;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5H7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 20px 20px;
  cursor: pointer;
}

/* Stile per quando si passa sopra al select */
select:hover {
  border-color: #999;
}

/* Stile per quando il select ha il focus */
select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stile per i select disabilitati */
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



input[type="date"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 16px;
  width: 100%;
  background-color: #fff;
}

/* Stile per quando si passa sopra all'input */
input[type="date"]:hover {
  border-color: #999;
}

/* Stile per quando l'input ha il focus */
input[type="date"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Stile per gli input di tipo "date" disabilitati */
input[type="date"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



/* Regole per l'immagine */
img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 0px;
}

h1 {
  font-size: 36px;
  margin-top: 0;
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}


footer {
  background-color: #d6e0ec;
  color: #000;
  text-align: justify;
  padding: 10px;
  font-size: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.left-content,
.right-content {
  padding-right: 50px;
  padding-left: 50px;
  width: 40%;
}

/* Stile dei pulsanti */
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  padding: 15px 30px;
  background-color: #ff9900;
  border: none;
  color: #fff;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover {
  background-color: #e68a00;
}

input[type="checkbox"] {
  margin-right: 10px;
  vertical-align: middle;
}

label[for="checkbox1"],
label[for="checkbox2"],
label[for="checkbox3"] {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 5px;
}
