* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%; /* Assicura che html e body occupino tutta l'altezza della finestra */
  background-color: whitesmoke;
  overflow-y: auto; /* Abilita lo scrolling verticale */
}

body {
  display: flex;
  flex-direction: column; /* Imposta il layout flessibile verticale */
  justify-content: flex-start; /* Allinea il contenuto all'inizio */
}

.container {
  flex-grow: 1; /* Permette alla container di espandersi */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 130px;
  width: 100%;
  padding-bottom: 100px; /* Evita che il contenuto si sovrapponga al footer */
}

.main-content {
  width: 100%;
  margin: 0 auto;
  overflow-y: auto; /* Abilita lo scorrimento se necessario */
}

/* Tabella */
table {
  width: 100%; /* Imposta la tabella per occupare tutto lo spazio disponibile */
  margin: 20px 0; /* Spazio superiore e inferiore alla tabella */
  border-collapse: collapse; /* Rimuove gli spazi tra i bordi delle celle */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Aggiunge una leggera ombra */
}

thead {
  background-color: #016099;
  color: white;
}

th, td {
  padding: 12px 15px; /* Spazio interno delle celle */
  border: 1px solid #ddd; /* Bordi leggeri */
}

th {
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9; /* Righe alternate */
}

tbody tr:hover {
  background-color: #f1f1f1; /* Colore di sfondo al passaggio del mouse */
}

th {
  font-size: 16px;
  font-weight: bold;
}

td {
  font-size: 14px;
  color: #333;
}

.login-box {
  width: 380px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 10px;
  backdrop-filter: blur(8.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

h2 {
  color: #016099; /* Verde scuro ripreso dal logo */
  margin-bottom: 30px;
  text-align: center;
}

h3 {
  color: #016099; /* Verde scuro ripreso dal logo */
  margin-bottom: 10px;
  text-align: center;
}

.input-box {
  position: relative;
  margin-bottom: 30px;
}

.input-box input {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #016099; /* Bordo scuro */
  outline: none;
  color: #016099;
  font-size: 18px;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  color: #016099; /* scuro */
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
  transition: .5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box input:not(:placeholder-shown) ~ label,
.input-box input.filled ~ label {
  top: -5px;
  font-size: 14px;
  color: #5D9CCD; /* chiaro */
}

.btn {
  width: 100%;
  padding: 10px;
  background: #5D9CCD; /* chiaro */
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background .3s ease;
}

.btn:hover {
  background: #016099; /* scuro */
}

.btn-det {
  width: 100%;
  padding: 10px;
  background: #D1921A; /* Arancio chiaro */
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background .3s ease;
}

.btn-det:hover {
  background: #73500F; /* Arancio scuro */
}

.btn-dow {
  width: 100%;
  padding: 10px;
  background: #5F6BEC; /* Blu chiaro */
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background .3s ease;
}

.btn-dow:hover {
  background: #353FAB; /* Blu scuro */
}

.btn-canc {
  width: 100%;
  padding: 10px;
  background: #D14545; /* Verde chiaro */
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background .3s ease;
}

.btn-canc:hover {
  background: #722B2B; /* scuro */
}

.register-link {
  margin-top: 20px;
  color: #016099; /* scuro */
}

.register-link a {
  color: #5D9CCD; /* Verde chiaro */
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

.logo-container img {
  max-width: 100%;
  height: auto;
  width: 300px;
  margin-bottom: 20px;
}
.error-message p {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f1f1f1;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
  color: #333;
}
/* menu */
/* Stile per la navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5D9CCD;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Stile per il logo */
.logo {
  height: 140px;
  /*background-color: white;*/
  border-radius: 12px;
}
.logo img {
  height: 120px;
  margin-right: 20px;
  /*background-color: white;*/
  padding: 5px;
  border-radius: 12px;
}

/* Stile per la lista del menu */
.menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu ul li {
  margin-right: 20px;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.menu ul li a:hover {
  text-decoration: underline;
}

/* Stile per il nome utente */
.user-info p {
  color: white;
  font-size: 16px;
  margin-left: 20px;
}

.link{
  color: white;            /* Testo bianco */
  padding: 10px 15px;      /* Aggiunge un po' di spazio interno */
  text-decoration: none;   /* Rimuove la sottolineatura predefinita */
  border-radius: 5px;      /* Angoli arrotondati */
}

.link:hover{
  background-color: #016099; /* Cambia il colore dello sfondo al passaggio del mouse */  
}

.btn-invia {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-invia:hover {
  background: linear-gradient(135deg, #00c6ff, #007bff);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}
.grazie-iscrizione {
  background-color: #f0f8ff;
  border: 2px solid #00bfff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.grazie-iscrizione h2 {
  color: #007bff;
  margin-bottom: 10px;
}
.grazie-iscrizione p {
  font-size: 1.1em;
  color: #333;
}

form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-group.center {
  text-align: center;
  margin-top: 30px;
}
