/* --- SEZIONE: Perché Scegliere Noi --- */
.why-us {
  background-color: #f5f5f5;
  color: #333;
  padding: 60px 20px;
  text-align: center;
}

.why-us h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 25px 20px;
  width: 230px;
  text-align: center;
  transition: transform 0.3s ease;
  transform: translateY(0); /* ✅ nuovo */
  will-change: transform;  /* ✅ nuovo */
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.shadow-1 + .travel-box {
  transform: translateY(-6px);
  border: 3px solid #ff4d4d; /* rosso brillante */
}

.shadow-2 + .travel-box {
  transform: translateY(-6px);
  border: 3px solid #2ecc71; /* verde brillante */
}

.shadow-1 {
  opacity: 1;
  transform: rotateZ(3deg) scale(1.02);
  background: linear-gradient(135deg, #ff00cc, #ff8800);
}

.shadow-2 {
  opacity: 1;
  transform: rotateZ(3deg) scale(1.02);
  background: linear-gradient(135deg, #00c3ff, #ffff1c);
}

.card {
    width: 45%;
  }

.card {
    width: 100%;
  }

.card-wrapper {
  flex: 1 1 calc(25% - 20px);
  max-width: 300px;
  min-width: 250px;
  position: relative;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  /* padding: 10px;  ❌ toglilo */
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;       /* ✅ nuova riga */
  padding-bottom: 10px;       /* ✅ opzionale, aiuta a evitare salti */
}

.card-shadow,
.card-front {
  width: 100%;
  display: block;
  box-sizing: border-box;
  border-radius: 12px;
}

.card-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateZ(3deg) scale(1);
  opacity: 0;
  z-index: 0;
  border-radius: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* 👈 evita che copra la card */
}

.card-wrapper:hover .shadow-1 {
  opacity: 1;
  transform: rotateZ(3deg) scale(1.02);
  background: linear-gradient(135deg, #ff00cc, #ff8800);
}

.card-wrapper:hover .shadow-2 {
  opacity: 1;
  transform: rotateZ(3deg) scale(1.02);
  background: linear-gradient(135deg, #00c3ff, #ffff1c);
}

.card-wrapper:hover .shadow-3 {
  opacity: 1;
  transform: rotateZ(3deg) scale(1.02);
  background: linear-gradient(135deg, #8e44ad, #3498db);
}

.card-wrapper:hover .shadow-4 {
  opacity: 1;
  transform: rotateZ(3deg) scale(1.02);
  background: linear-gradient(135deg, #2ecc71, #f39c12);
}

.card-front {
  position: relative;
  background-color: white;
  z-index: 1;
  transition: transform 0.3s ease;
  border-radius: 12px;
  border: 3px solid transparent; /* ✅ aggiunto */
}

.card-wrapper:hover .card-front {
  transform: translateY(-4px);
}

.card-container {
    align-items: stretch;
  }

.card-front {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

.card-front img {
  display: block;
  margin: 0 auto 16px auto;
}

.card-wrapper:hover .card-1 {
  border: 3px solid #ff6b6b;
}

.card-wrapper:hover .card-2 {
  border: 3px solid #1abc9c;
}

.card-wrapper:hover .card-3 {
  border: 3px solid #f1c40f;
}

.card-wrapper:hover .card-4 {
  border: 3px solid #9b59b6;
}

.card-wrapper.visible-on-scroll .card-front {
    transform: translateY(-4px);
  }

.card-wrapper.visible-on-scroll .shadow-1 {
    opacity: 1;
    transform: rotateZ(3deg) scale(1.02);
    background: linear-gradient(135deg, #ff00cc, #ff8800);
  }

.card-wrapper.visible-on-scroll .shadow-2 {
    opacity: 1;
    transform: rotateZ(3deg) scale(1.02);
    background: linear-gradient(135deg, #00c3ff, #ffff1c);
  }

.card-wrapper.visible-on-scroll .shadow-3 {
    opacity: 1;
    transform: rotateZ(3deg) scale(1.02);
    background: linear-gradient(135deg, #8e44ad, #3498db);
  }

.card-wrapper.visible-on-scroll .shadow-4 {
    opacity: 1;
    transform: rotateZ(3deg) scale(1.02);
    background: linear-gradient(135deg, #2ecc71, #f39c12);
  }

.card-wrapper.visible-on-scroll .card-1 {
    border: 3px solid #ff6b6b;
  }

.card-wrapper.visible-on-scroll .card-2 {
    border: 3px solid #1abc9c;
  }

.card-wrapper.visible-on-scroll .card-3 {
    border: 3px solid #f1c40f;
  }

.card-wrapper.visible-on-scroll .card-4 {
    border: 3px solid #9b59b6;
  }

@media (max-width: 768px) {
  .travel-container {
    grid-template-columns: 1fr;
  }
  }

/* --- SEZIONE: I Nostri Numeri --- */
/* i-nostri-numeri.css */
.our-numbers {
  background-color: #f5f5f5;
  color: #2c3e50;
  padding: 60px 20px;
  text-align: center;
}

.our-numbers h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.numbers-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.number-box {
  flex: 1 1 200px;
  padding: 20px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.number-box .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #e67e22;
  margin-bottom: 10px;
}

.number-box p {
  font-size: 1rem;
  margin: 0;
}

/* --- INIZIO: i-nostri-corsi.css --- */

.our-courses {
  background-color: #91b7be;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.our-courses h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.course-card {
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.course-card h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 15px 20px 5px;
}

.course-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 20px 15px;
  color: #333;
}

.course-button {
  background: var(--box-color, linear-gradient(135deg, #0066cc, #0099ff));
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 20px 20px;
  align-self: center;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.course-button:hover {
  filter: brightness(1.1);
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 992px) {
  .courses-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .courses-container {
    grid-template-columns: 1fr;
  }
}


body {
  font-family: 'Open Sans', sans-serif;
  /* background-color: #f5f5f5;  ❌ tolto per eliminare lo "spazio bianco" */
}

.in-estate {
  background-color: #f5f5f5;
  color: #2c3e50;
  padding: 60px 20px;
  text-align: center;
}

.in-estate h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}


.course-button {
  background: var(--box-color, linear-gradient(135deg, #0066cc, #0099ff));
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 20px 20px;
  align-self: center;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.course-button:hover {
  filter: brightness(1.1);
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


.course-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e1e1e;
  margin: 16px 20px 10px;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.course-card p {
  font-size: 1rem;
  font-weight: 400;
  color: #444;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  margin: 0 20px 16px;
}

.course-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  color: #1e1e1e; /* colore scuro per card con immagine */
}

.course-title.light {
  color: #ffffff; /* per sfondo scuro */
}

@media (min-width: 768px) {
  .wide-card {
    grid-column: span 2;
  }
}

.floating-button {
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: white;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 rgba(255,255,255,0), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  backdrop-filter: blur(4px);
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  display: inline-block;
  margin: 0 auto;
  width: auto;
}

.floating-button:hover {
  background: linear-gradient(135deg, #005bb5, #008ae6);
}

@media (max-width: 992px) {
  .course-card.altro-corso {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .course-card.altro-corso {
    width: 100%;
  }
}

/* === MINI CARD: Sezione "Consulta anche gli altri corsi" (versione leggera) === */
.other-courses {
  padding: 60px 20px;
  background-color: #fafafa;
}

.other-courses .section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #222;
  font-weight: 600;
}

.other-courses-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.course-card.altro-corso {
  flex: 0 0 calc(33.333% - 20px);
  background-color: #ffffff;
  border: 2px solid var(--box-color); /* bordo sempre presente */
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-height: 280px;
}

.course-card.altro-corso:hover {
  transform: translateY(-4px);
}

.course-card.altro-corso .box-top {
  height: 130px; /* ✅ torna all’altezza originale */
  background-color: var(--box-color);
  display: flex;
  flex-direction: column;
  justify-content: center; /* ✅ centra titolo + sottotitolo */
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.course-card.altro-corso h3 {
  font-size: 1rem;
  margin: 0;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.course-card.altro-corso .course-subtitle {
  font-size: 0.8rem;
  color: #ffffff;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
}

.course-card.altro-corso .course-description p {
  font-size: 0.85rem;
  padding: 10px 14px 0;
  text-align: center;
  color: #444;
  line-height: 1.4;
}

.course-card.altro-corso .course-button {
  margin: 16px auto 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--box-color);
  background-color: transparent;
  color: var(--box-color);
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
}

.course-card.altro-corso .course-button:hover {
  background-color: var(--box-color);
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive layout */
@media (max-width: 992px) {
  .course-card.altro-corso {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .course-card.altro-corso {
    flex: 0 0 100%;
  }
}

/* === NUOVO STILE CARTE VISITATE (badge in basso, stile coerente) === */
.course-card.gia-visitato {
  position: relative;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.course-card.gia-visitato::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.03));
  z-index: 0;
}

.course-card.gia-visitato .box-top,
.course-card.gia-visitato p {
  opacity: 1;
  filter: none;
}

.course-card.gia-visitato .course-button {
  background-color: transparent;
  color: var(--box-color);
  border: 1px solid var(--box-color);
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.course-card.gia-visitato .course-button:hover {
  background-color: var(--box-color);
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Contenitore per posizionare correttamente il badge */
.badge-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -10px;
  margin-bottom: 14px;
}

/* Badge visitato - dentro il contenitore badge-wrapper */
.badge-visitato {
  display: inline-block;
  background-color: var(--box-color);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: fadeInBadge 0.4s ease-in;
}

/* ✔ all'interno del markup, non via pseudo-elemento */
.badge-check {
  font-size: 0.9rem;
  margin-right: 6px;
  color: #fff;
  line-height: 1;
  display: inline-block;
}

/* Animazione semplice per ingresso badge */
@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- FINE: i-nostri-corsi.css --- */

/* CSS dedicato per la pagina test-faq */

.faq-section {
  background-color: #91b7be;
  color: #fff;
  padding: 100px 20px;
}

.faq-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.faq-image-left,
.faq-image-right {
  width: 120px;
  flex-shrink: 0;
}

.faq-content {
  flex: 1;
  text-align: center;
}

.faq-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.faq-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.faq-item {
  text-align: left;
  background-color: #fff;
  color: #333;
  border-radius: 10px;
  margin-top: 20px;
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #f0f0f0;
}

.faq-question {
  position: relative;
  padding-right: 40px;
  text-align: left;
  width: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #e67e22;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  display: none;
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.faq-item.active .faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .faq-overlay {
    flex-direction: column;
    padding: 40px 15px;
  }

  .faq-image-left,
  .faq-image-right {
    display: none;
  }

  .faq-content h2 {
    font-size: 1.5rem;
  }

  .faq-content p {
    font-size: 1rem;
  }
}

/* CTA finale nella sezione FAQ */


.faq-contact-button {
  background-color: #f4983c;
  color: white;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.faq-contact-button:hover {
  background-color: #d87e2f;
  transform: scale(1.05);
}

/* CTA finale nella sezione FAQ con stile moderno */
.faq-contact-cta {
  margin-top: 40px;
  text-align: center;
}

.faq-contact-cta p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 15px;
}

.faq-contact-button {
  background: linear-gradient(135deg, #0066cc, #0099ff);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 rgba(255,255,255,0), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  backdrop-filter: blur(4px);
  display: inline-block;
}

.faq-contact-button:hover {
  background: linear-gradient(135deg, #005bb5, #0077e6);
  transform: scale(1.06);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.2), 0 6px 20px rgba(0,0,0,0.2);
}

/* --- STILI STAFF --- */
/* ======================== */
/* SEZIONE: LAYOUT CONTATTI */
/* ======================== */
.contact-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================== */
/* BOX FORM CONTATTO E BOX STAFF */
/* =============================== */
.contact-form-box,
.staff-carousel-box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex: 1 1 450px;
  max-width: 500px;
  padding: 20px;
  box-sizing: border-box;
}

/* ======================== */
/* IMMAGINE IN BOX CONTATTO */
/* ======================== */
.contact-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ======================= */
/* FORM CONTATTO E CAMPI  */
/* ======================= */
.contact-title {
  font-size: 24px;
  font-weight: 700;
  color: #0073e6;
  margin-bottom: 5px;
  text-align: center;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #000;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  color: #333;
}

.contact-form textarea {
  resize: vertical;
  margin-bottom: 15px;
}

/* ======================= */
/* BOTTONE INVIA FORM     */
/* ======================= */
.send-button {
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.send-button:hover {
  background-color: #005bb5;
}

/* ======================= */
/* BOX STAFF              */
/* ======================= */
.staff-carousel-box {
  padding: 20px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.staff-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding-bottom: 20px;
}

.staff-carousel {
  max-width: 100%;
  box-sizing: border-box;
}

.staff-slide {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.staff-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.staff-card img {
  width: 100%;
  height: auto;
  display: block;
}

.staff-text {
  padding: 15px;
  text-align: left;
}

/* Intestazione scheda: nome + data staff */
/* Intestazione scheda: nome + data staff sotto il nome */
.staff-header {
  display: block;
  margin-bottom: 5px;
}

.staff-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}

.staff-since {
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-bottom: 5px;
}

.staff-role {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

.staff-description {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* ======================= */
/* SCROLLBAR STAFF        */
/* ======================= */
.staff-carousel::-webkit-scrollbar {
  height: 8px;
}

.staff-carousel::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* ======================= */
/* SCROLL HINT            */
/* ======================= */
.scroll-hint {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-style: italic;
}

/* ======================= */
/* CTA FINALE BOX STAFF   */
/* ======================= */
.staff-carousel-box .cta-join-btn {
  display: block;
  margin: 30px auto 0;
  background-color: #0073e6;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.staff-carousel-box .cta-join-btn:hover {
  background-color: #005bb5;
}

/* ======================= */
/* PRIVACY NOTE           */
/* ======================= */
.privacy-note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
  text-align: left;
}

/* === STAFF - TITOLO E DESCRIZIONE === */
.staff-title {
  font-size: 22px;
  font-weight: bold;
  color: #0073e6;
  text-align: center;
  margin-bottom: 10px;
}

/* =============================== */
/* RESPONSIVE FIX - BOX STAFF     */
/* =============================== */
@media (max-width: 600px) {
  .staff-carousel-box {
    width: 100%;
    max-width: 100%;
  }

  .staff-carousel {
    overflow-x: hidden;
    display: block;
  }

  .staff-slide {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .staff-card {
    margin-bottom: 20px;
  }
}

/* === SOTTOTITOLI BOX CONTATTI + STAFF === */
.contact-subtitle,
.staff-subtitle {
  font-size: 15px;
  color: #444;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

form select {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  margin-bottom: 20px;

  /* Freccia personalizzata */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

form select:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 4px rgba(41, 128, 185, 0.4);
}


/* === STAFF GRID === */
.staff-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}
.staff-container {
  max-width: 1200px;
  margin: 0 auto;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.staff-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
}
.staff-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}
.staff-card h4 {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 6px;
}
.staff-card .staff-role {
  font-size: 0.95rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 10px;
}
.staff-card p {
  font-size: 0.95rem;
  color: #333;
}
.staff-cta {
  text-align: center;
  margin-top: 40px;
}
.join-button, a.join-button {
  text-decoration: none;
  display: inline-block;
  margin: 0 auto;
  background-color: #0073e6;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.join-button:hover {
  background-color: #005bb5;
}

.staff-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* === STAFF scrollabile in mobile === */

@media (max-width: 768px) {
  .staff-scroll-wrapper {
    overflow-x: hidden;
    position: relative;
  }

  .staff-grid.scrollable {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 12px;

    scrollbar-color: #0073e6 #e0e0e0;
    scrollbar-width: thin;
  }

  .staff-grid.scrollable::-webkit-scrollbar {
    height: 8px;
  }

  .staff-grid.scrollable::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
  }

  .staff-grid.scrollable::-webkit-scrollbar-thumb {
    background-color: #0073e6;
    border-radius: 10px;
  }

  .staff-grid.scrollable .staff-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  .scroll-hint {
    display: block;
  }
}
@media (max-width: 768px) {
  .staff-card {
    padding: 12px;
  }

  .staff-card img {
    height: 140px;
    margin-bottom: 10px;
  }

  .staff-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .staff-card .staff-role {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .staff-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* ===========================================
   STILE MESSAGGIO DI CONFERMA FORM "SUGGERISCI CORSO"
   =========================================== */

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #e0fbe3;
  color: #2e7d32;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #c1e6c9;
  animation: fadeIn 0.6s ease-in-out;
  text-align: center;
}

/* Animazione di comparsa */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FIX spazio bianco sotto il footer (mobile) === */

/* azzera margini e padding di base */
html, body { margin: 0; padding: 0; }

/* banner cookie: nascosto di default e FISSO in basso */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: none;                 /* finché non lo mostri, non occupa spazio */
  z-index: 10000;

  /* stile base (puoi personalizzare) */
  background: #222;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* quando vuoi mostrarlo da JS, aggiungi la classe .is-visible */
.cookie-banner.is-visible { display: block; }

/* se usi l’attributo [hidden], forza display none */
.cookie-banner[hidden] { display: none !important; }

/* bottoni fissi: rispettano la safe area su iPhone */
.whatsapp-fixed,
#backToTop {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
}

/* elimina eventuali “margini di coda” nel footer */
.site-footer,
.site-footer .footer-content,
.site-footer .footer-bottom { margin-bottom: 0; }