header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2f3640;
  color: white;
  padding: 10px 20px;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
}

nav .button, .button, button {
  background-color: #00a8ff;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

main {
  padding: 20px;
}

.intro, .eventi, .form-box {
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px #dcdde1;
}

input, textarea, select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}


/* (stesso CSS di prima, aggiungiamo alcune classi per table) */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
th, td { border: 1px solid #ccc; padding: 8px; text-align: left; }
th { background: #eee; }
.error { color: red; margin: 10px; }
.card { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 0 5px #ccc; margin-bottom: 20px; }

.rischio-decorato {
  display: inline-block;
  padding: 8px 16px;
  background-color: lightgray;
  color: black;
  font-weight: bold;
  border-radius: 20px;
  margin-top: 10px;
}
/* Stile generale */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  padding: 20px;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* Barra in alto */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #003366;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

/* Titoli */
h3, h4 {
  color: #003366;
}

/* Tabella storico consulenze */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #003366;
  color: white;
}

table tr:hover {
  background-color: #f1f1f1;
}

/* Form richiedi consulenza */
.form-container {
  margin-top: 30px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
}

.input-text, select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

/* Bottone invia */
.btn-invia {
  background-color: #003366;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-invia:hover {
  background-color: #0055cc;
}
.btn-iscriviti {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-iscriviti:hover {
  background-color: #218838;
}
.btn-iscriviti {
  background-color: #00a8ff;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn-iscritto {
  background-color: green;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
}

/* Allinea testo al centro nelle celle delle tabelle */
table.dataTable th,
table.dataTable td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 10px;
}

/* Centra i bottoni nella colonna Azioni */
table.dataTable td .button {
  display: inline-block;
  margin: 0 auto;
}
/* Contenitore centrale */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sezioni generali */
.section-light {
  background-color: #ffffff;
  padding: 40px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px #dcdde1;
}

.section-dark {
  background-color: #2f3640;
  color: white;
  padding: 40px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Lista vantaggi */
.vantaggi-list {
  list-style: none;
  padding-left: 0;
  font-size: 18px;
}

.vantaggi-list li {
  margin-bottom: 10px;
}

/* Testimonianze */
.testimonial {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #00a8ff;
  padding: 20px;
  margin-bottom: 20px;
  font-style: italic;
  border-radius: 8px;
}

/* Bottone grande */
.button.large {
  display: inline-block;
  background-color: #00a8ff;
  color: white;
  padding: 15px 25px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.button.large:hover {
  background-color: #0097e6;
}

/* Footer */
footer {
  background-color: #2f3640;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
main h1 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #003366;
}

main h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #003366;
}
#tabella-performance {
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.csstitle {
  color: white;
}