:root {
  --accent: #0b6b73;
  --dark: #111;
  --muted: #666;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #061210;
  color: #333;
}

/* ===== HEADER ===== */
header {
  background-color: #000;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

header .logo {
  height: 50px;
}

/* BURGER MENU */
.menu-toggle {
  font-size: 32px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
  display: none;
}

/* NAV MENU */
nav.menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

nav.menu a {
  color: white;
  text-decoration: none;
  padding: 14px 16px;
  font-weight: 500;
}

nav.menu a:hover {
  color: #00bfff;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
}

/* Scritta alla base dell'immagine */
.hero-text1 {
  position: absolute;
  bottom: 20px;             
  left: 50%;
  transform: translateX(-50%); 
  color: white;
  background: rgba(0, 0, 0, 0.4); 
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;           
  font-size: clamp(1rem, 2.5vw, 2rem); 
  line-height: 1.3;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7); /* ombra leggera */
}

/* Responsive Hero Text */
@media (max-width: 1024px) {
  .hero-text1 {
    bottom: 15px;
    padding: 8px 16px;
    font-size: clamp(0.9rem, 3vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .hero-text1 {
    bottom: 10px;
    padding: 6px 12px;
    font-size: clamp(0.8rem, 4vw, 1.5rem);
  }
}


/* ===== CARDS HOME ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* massimo 3 per riga */
  gap: 20px;
  margin: 40px;
  justify-items: center;
  text-align: center;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: 1fr 1fr; /* 2 per riga tablet */
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr; /* 1 per riga mobile */
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 300px;
  height: 400px; /* altezza totale fissa */
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  overflow: hidden;
}

.card-body h5 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.card-body p {
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* COOKIE BANNER CENTRATO */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column; /* testo sopra, bottone sotto */
  justify-content: center;
  align-items: center;
  gap: 10px; /* spazio tra testo e bottone */
  box-sizing: border-box;
  z-index: 2000;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-banner button {
  background: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-banner button:hover {
  background: #0056b3;
}

/* ===== BANNER STAFF ===== */
.banner-staff {
  background: url('img/banner_staff.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}
.banner-staff::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.banner-staff h1, .banner-staff p {
  position: relative;
  z-index: 2;
}
.banner-staff h1 { font-size: 2.2rem; margin-bottom: 10px; }
.banner-staff p { font-size: 1.1rem; }

/* ===== STAFF GRID ===== */
.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.staff-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.staff-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}
.staff-card h2 { margin-top: 15px; color: #003366; }
.staff-card h3 { margin-top: 5px; color: #007BFF; font-weight: normal; }
.staff-card p { color: #555; margin-top: 10px; font-size: 0.95rem; }

/* ===== BANNER CHI SIAMO ===== */
.banner-chi-siamo {
  background: url('img/banner_chisiamo.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}
.banner-chi-siamo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.banner-chi-siamo h1, .banner-chi-siamo p {
  position: relative;
  z-index: 2;
}
.banner-chi-siamo h1 { font-size: 2.2rem; margin-bottom: 10px; }
.banner-chi-siamo p { font-size: 1.1rem; }

/* ===== CHI SIAMO SECTION ===== */
.chi-siamo-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}
.chi-siamo-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  max-width: 900px;
  overflow: hidden;
  text-align: left;
}
.chi-siamo-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.chi-siamo-text {
  padding: 20px 30px;
}
.chi-siamo-text h2 { color: #003366; margin-bottom: 10px; }
.chi-siamo-text p { color: #555; margin-bottom: 10px; line-height: 1.6; font-size: 1rem; }

/* ===== RESPONSIVE MENU ===== */
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  nav.menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    background: rgba(72,72,72,0.95);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }
  nav.menu.show { display: flex; }
  nav.menu a { border-bottom: 1px solid #736b69; }
}
/* ===== CARDS CORSI ===== */
.ccards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* massimo 3 per riga */
  gap: 20px;
  margin: 40px;
  justify-items: center;
  text-align: center;
}

@media (max-width: 1024px) {
  .ccards {
    grid-template-columns: 1fr 1fr; /* 2 per riga tablet */
  }
}

@media (max-width: 768px) {
  .ccards {
    grid-template-columns: 1fr; /* 1 per riga mobile */
  }
}

.ccard {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 300px;
  height: 350px; /* altezza totale fissa */
}

.ccard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.ccard-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  overflow: hidden;
}

.ccard-body h5 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.ccard-body p {
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
}
/* ===== MODALE ===== */
#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modalOverlay.active {
  display: flex;
}

.modalContent {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 70%;
  overflow-y: auto;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modalContent p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}
.link-pdf a {
  color: white;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.link-pdf a:visited {
  color: white;
}

.link-pdf a:hover {
  color: #ddd; /* leggero effetto al passaggio del mouse */
}
/* ===== BANNER viaggi ===== */
.banner-viaggi {
  background: url('img/banner_viaggi.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}
.banner-viaggi::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.banner-viaggi h1, .banner-viaggi p {
  position: relative;
  z-index: 2;
}
.banner-viaggi h1 { font-size: 2.2rem; margin-bottom: 10px; }
.banner-viaggi p { font-size: 1.1rem; }