/* Stile globale */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
	  background: #EEF5CE;
    color: #333;
}

 /* Stile del contenitore della barra superiore */
.top-bar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 10px 20px;
   border-bottom: 1px solid #1E3D76;
}

.top-bar img {
  max-width: 150px;
}

.top-bar button {
	padding: 0.8rem;
	max-width: 200px;
    font-size: 1rem;
    color: #fff;
    background: #A3C733;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

 .top-bar button:hover {
 background-color: #0a2d6b;
}

/* Contenitore principale */
.container {
    max-width: 700px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Titolo */
h1 {
	font-size: 25px;
    text-align: center;
    color: #1E3D76;
    margin-bottom: 2rem;
}

/* Stile del form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Etichette */
label {
    font-size: 1rem;
    color: #A3C733;
    font-weight: bold;
}

/* Campi di input */
input[type="text"],
input[type="email"],
input[type="password"], select, textarea {
    width: 90%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #A3C733;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus, textarea:focus {
    border-color: #A3C733;
    outline: none;
}

/* Pulsante di invio */
button {
	width: 40%;
    padding: 0.8rem;
    font-size: 1rem;
    color: #fff;
    background: #A3C733;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.table-cell button {
	width: 100%;
}

button:hover {
    background: #0a2d6b;
}

 .zigzag-line {
    background: repeating-linear-gradient(
      -45deg,
      #A3C733,
      #A3C733 10px,
      transparent 10px,
      transparent 20px
    );
    height: 5px;
    width: 100%;
    margin: 60px 0;
  }

.table-container {
    width: 80%; /* Imposta la larghezza della tabella (puoi personalizzarla) */
    margin: 40px auto; /* Spazio sopra e sotto, centrato orizzontalmente */
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-header,
.table-row {
    display: flex; /* Flexbox per le righe */
    justify-content: space-between; /* Spaziatura uniforme tra le celle */
    padding: 10px;
    border-bottom: 1px solid #eee; /* Bordo tra le righe */
}

.table-header {
    font-weight: bold;
    background-color: #1E3D76; /* Colore di sfondo per l'intestazione */
	text-align: center; /* Allineamento del testo al centro */
	color: #FFFFFF;
}

.table-cell {
    flex: 1; /* Ogni cella occupa lo stesso spazio */
    padding: 8px; /* Padding interno per le celle */
    text-align: center; /* Allineamento del testo al centro */
    word-wrap: break-word; /* Gestione della parola lunga che non rientra */
}

.table-row:last-child {
    border-bottom: none; /* Rimuove il bordo inferiore per l'ultima riga */
}

/* ----------------------------- */
/* Animazione fadeIn */
.fadeIn {
	animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animazione fadeIn-reverse */
.fadeIn-reverse {
	animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animazione BackinLeft */
.BackinLeft {
  animation: backInLeft 2s ease-in-out;
}

@keyframes backInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animazione BackinRight */
.BackinRight {
  animation: backInRight 2s ease-in-out;
}

@keyframes backInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animazione Pulse */
.Pulse {
  animation: pulse 2s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* ----------------------------- */

/* Stile responsivo */
@media (max-width: 600px) {
	.top-bar {
		flex-direction:column;
		gap: 1rem;
	}
	
    .container {
        padding: 1.5rem;
    }

    form {
        gap: 1rem;
    }

    button, .top-bar button {
        font-size: 1rem;
        padding: 0.7rem;
    }
}