/* ===========================
   VARIABILI E RESET
=========================== */
:root {
  --colore1: #E42217;
  --colore2: #111111;
  --bianco: #ffffff;
  --testo-scuro: #111111;
  --testo-chiaro: #ffffff;
  --grigio-tenue: #f2f2f2;
  --font-titolo: Georgia, 'Times New Roman', serif;
  --font-testo: Verdana, Geneva, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-testo);
  color: var(--testo-scuro);
  background-color: var(--bianco);
  font-size: 16px;
  line-height: 1.7;
}

/* ===========================
   NAVIGAZIONE
=========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--colore2);
  z-index: 100;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .nav-logo-placeholder {
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

nav .nav-logo {
  height: 88px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-testo);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: var(--colore1);
}

/* ===========================
   HEADER – NOME E LOGO
=========================== */
header {
  background-color: var(--colore2);
  padding: 90px 60px 50px;
  text-align: center;
  color: var(--testo-chiaro);
}

header .logo-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  <img src="logo.png" alt="Logo ASD" style="width:120px; height:auto;"> 
}

header h1 {
  font-family: var(--font-titolo);
  font-size: 46px;
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

header p.sottotitolo {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--colore1);
}

/* ===========================
   HERO – SLIDESHOW
=========================== */
#hero {
  position: relative;
  height: 370px;
  overflow: hidden;
}

/* Contenitore scorrevole: largo 3x per contenere 3 slide affiancate */
.slideshow {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

/* Ogni slide = 1/3 del contenitore = 100% dello schermo */
.slide {
  width: 33.333%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Colori placeholder finché non si inseriscono le foto reali */
/* Sostituire i nomi dei file con le proprie foto nella stessa cartella */
.slide:nth-child(1) { background-color: #1a1a1a; background-image: url('hero1.png'); }
.slide:nth-child(2) { background-color: #2a0a08; background-image: url('hero2.png'); }
.slide:nth-child(3) { background-color: #3d0f0c; background-image: url('hero3.png'); }

/* Testo sovrapposto */
#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  pointer-events: none;
}

#hero .overlay h2 {
  font-family: var(--font-titolo);
  font-size: 42px;
  color: var(--bianco);
  font-weight: normal;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

#hero .overlay p {
  font-size: 17px;
  color: #dddddd;
  max-width: 620px;
  line-height: 1.8;
}

/* Frecce di navigazione */
.freccia {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(228, 34, 23, 0.75);
  color: #ffffff;
  border: none;
  font-size: 24px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10;
}

.freccia:hover {
  background-color: var(--colore1);
}

.freccia-sx { left: 20px; }
.freccia-dx { right: 20px; }

/* Pallini indicatori */
.indicatori {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.pallino {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border: none;
}

.pallino.attivo {
  background-color: var(--colore1);
}

/* ===========================
   SEZIONI COMUNI
=========================== */
section {
  padding: 50px 50px;
}

section h2.titolo-sezione {
  font-family: var(--font-titolo);
  font-size: 34px;
  font-weight: normal;
  color: var(--colore1);
  margin-bottom: 12px;
  text-align: center;
}

.linea-decorativa {
  width: 60px;
  height: 3px;
  background-color: var(--colore2);
  margin: 0 auto 40px;
}

/* ===========================
   CHI SIAMO
=========================== */
#chi-siamo {
  background-color: var(--bianco);
}

#chi-siamo .contenuto {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  color: var(--testo-scuro);
}

#chi-siamo .valori {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.valore-card {
  background-color: var(--grigio-tenue);
  border-top: 4px solid var(--colore1);
  padding: 28px 24px;
  width: 200px;
  text-align: center;
}

.valore-card .icona {
  font-size: 32px;
  margin-bottom: 12px;
}

.valore-card h3 {
  font-family: var(--font-titolo);
  font-size: 18px;
  color: var(--colore1);
  margin-bottom: 8px;
  font-weight: normal;
}

.valore-card p {
  font-size: 14px;
  color: #555;
}

.foto-blob {
  width: 350px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto 30px;
  border-radius: 65% 35% 55% 45% / 35% 45% 55% 65%;
}

/* ===========================
   I NOSTRI CORSI
=========================== */
#corsi {
  background-color: var(--colore2);
}

#corsi h2.titolo-sezione {
  color: #ffffff;
}

#corsi .linea-decorativa {
  background-color: var(--colore1);
}

/* Sottotitolo che divide le due categorie di corsi */
.sottotitolo-categoria {
  font-family: var(--font-titolo);
  font-size: 22px;
  font-weight: normal;
  color: #ffffff;
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(228, 34, 23, 0.4);
}

.blocco-corsi {
  margin-bottom: 60px;
}

.griglia-corsi {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===========================
   CAROSELLO CORSI
=========================== */
.carosello-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carosello-finestra {
  overflow: hidden;
  flex: 1;
}

.carosello-traccia {
  display: flex;
  gap: 28px;
  transition: transform 0.5s ease-in-out;
}

.freccia-carosello {
  background-color: var(--colore1);
  color: #ffffff;
  border: none;
  font-size: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.freccia-carosello:hover {
  background-color: #b81c13;
}

.corso-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--colore1);
  border-radius: 16px;
  padding: 36px 28px;
  width: 250px;
  color: var(--testo-chiaro);
  flex-shrink: 0;
}

.corso-card h3 {
  font-family: var(--font-titolo);
  font-size: 20px;
  font-weight: normal;
  color: var(--colore1);
  margin-bottom: 10px;
}

.corso-card .fascia-eta {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--colore1);
  border: 1px solid var(--colore1);
  padding: 3px 10px;
  margin-bottom: 14px;
}

.corso-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #cccccc;
}

/* ===========================
   CORSI IN PROGRAMMA – TABELLA
=========================== */
#corsi-prossimi {
  background-color: var(--grigio-tenue);
}

#corsi-prossimi h2.titolo-sezione {
  color: var(--colore2);
}

#corsi-prossimi .linea-decorativa {
  background-color: var(--colore1);
}

.tabella-corsi {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 15px;
}

.tabella-corsi thead tr {
  background-color: var(--colore1);
  color: #ffffff;
}

.tabella-corsi thead th {
  padding: 14px 18px;
  text-align: left;
  letter-spacing: 1px;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 13px;
}

.tabella-corsi tbody tr {
  border-bottom: 1px solid #dddddd;
  background-color: #ffffff;
}

.tabella-corsi tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tabella-corsi tbody td {
  padding: 14px 18px;
  color: var(--testo-scuro);
}

.tabella-corsi tbody tr:hover {
  background-color: #fde8e7;
}

/* ===========================
   IL NOSTRO STAFF
=========================== */
#staff {
  background-color: var(--bianco);
}

.griglia-staff {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.staff-card {
  text-align: center;
  width: 200px;
}

.staff-foto {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: #e0e0e0;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border: 4px solid var(--colore1);
  overflow: hidden;
}

.staff-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-card h3 {
  font-family: var(--font-titolo);
  font-size: 19px;
  font-weight: normal;
  color: var(--colore1);
  margin-bottom: 4px;
}

.staff-card p.ruolo {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

/* ===========================
   DOVE TROVARCI E CONTATTI
=========================== */
#contatti {
  background-color: var(--grigio-tenue);
}

.contatti-layout {
  display: flex;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.contatti-info {
  flex: 1;
  min-width: 260px;
}

.contatti-info h3 {
  font-family: var(--font-titolo);
  font-size: 22px;
  font-weight: normal;
  color: var(--colore1);
  margin-bottom: 20px;
}

.riga-contatto {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.riga-contatto .icona-contatto {
  font-size: 22px;
  min-width: 30px;
}

.riga-contatto div p {
  font-size: 15px;
  color: var(--testo-scuro);
}

.riga-contatto div p.etichetta {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2px;
}

.mappa-placeholder {
  flex: 1;
  min-width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colore2);
  font-size: 15px;
  text-align: center;
  padding: 20px;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background-color: var(--colore2);
  color: #aaaaaa;
  text-align: center;
  padding: 28px 40px;
  font-size: 13px;
  letter-spacing: 1px;
}

footer a {
  color: var(--colore1);
  text-decoration: none;
}
