/* ===== BEGIN hero-corsi.css ===== */
/* HERO BASE */
.hero {
  padding: 120px 20px 100px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  font-family: 'Quicksand', sans-serif;
}

.hero .hero-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: url('../images/hero-wave.svg') no-repeat center bottom / cover;
  z-index: 1;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  color: #00bfff;
  text-shadow: 0 0 8px #00bfff, 0 0 14px #00bfff;
}

.hero p {
  font-size: 1.2rem;
  color: #e0eaf6;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  background-color: #00bfff;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero-btn:hover {
  background-color: #009ace;
}

/* HERO CLIL - colore giallo oro */
.hero.hero-clil {
  background-color: #c2932c;
  color: #1e1e1e;
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 20px 80px;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* TESTO HERO SPECIFICO PER hero-clil (sfondo chiaro con testo bianco) */
.hero.hero-clil h1,
.hero.hero-clil p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-clil h1 span {
  color: #ffffff;
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

/* EFFETTI SPECIALI PER HERO CLIL */
.hero.hero-clil h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-clil h1 span {
  color: #ffffff;
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

/* ANIMAZIONI */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
  50% {
    text-shadow: 0 0 16px rgba(255,255,255,0.8);
  }
}

.hero.hero-clil .hero-btn {
  background-color: #ffffff;
  color: #c2932c;
}

.hero.hero-clil .hero-btn:hover {
  background-color: #f3f3f3;
}

/* ========================================
   HERO - Inglese per la scuola
   Pagina: inglese-per-la-scuola.html
   Colore: #2a4d9b
======================================== */

.hero.hero-per-scuola {
  background-color: #2a4d9b;
  color: #ffffff;
}

.hero.hero-per-scuola h1,
.hero.hero-per-scuola p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-per-scuola h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-per-scuola h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-per-scuola .hero-btn {
  background-color: #ffffff;
  color: #2a4d9b;
}

.hero.hero-per-scuola .hero-btn:hover {
  background-color: #e6e6e6;
}

/* ========================================
   HERO - Certificazioni Cambridge
   Pagina: certificazioni-cambridge.html
   Colore: #7b2d3b
======================================== */

.hero.hero-cambridge {
  background-color: #7b2d3b;
  color: #ffffff;
}

.hero.hero-cambridge h1,
.hero.hero-cambridge p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-cambridge h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-cambridge h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-cambridge .hero-btn {
  background-color: #ffffff;
  color: #7b2d3b;
}

.hero.hero-cambridge .hero-btn:hover {
  background-color: #f0f0f0;
}

/* ========================================
   HERO - Inglese e Sport
   Pagina: inglese-sport.html
   Colore: #e8553e
======================================== */

.hero.hero-sport {
  background-color: #e8553e;
  color: #ffffff;
}

.hero.hero-sport h1,
.hero.hero-sport p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-sport h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-sport h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-sport .hero-btn {
  background-color: #ffffff;
  color: #e8553e;
}

.hero.hero-sport .hero-btn:hover {
  background-color: #f3f3f3;
}

/* ========================================
   HERO - English for Business
   Pagina: english-for-business.html
   Colore: #2c2c2c
======================================== */

.hero.hero-business {
  background-color: #2c2c2c;
  color: #ffffff;
}

.hero.hero-business h1,
.hero.hero-business p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-business h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-business h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-business .hero-btn {
  background-color: #ffffff;
  color: #2c2c2c;
}

.hero.hero-business .hero-btn:hover {
  background-color: #e6e6e6;
}

/* ========================================
   HERO - Conversazione Avanzata
   Pagina: conversazione-avanzata.html
   Colore: #2e5d4f
======================================== */

.hero.hero-conversazione {
  background-color: #2e5d4f;
  color: #ffffff;
}

.hero.hero-conversazione h1,
.hero.hero-conversazione p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-conversazione  h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-conversazione h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-conversazione  .hero-btn {
  background-color: #ffffff;
  color: #2c2c2c;
}

.hero.hero-conversazione  .hero-btn:hover {
  background-color: #e6e6e6;
}

/* ========================================
   HERO - IELTS / TOEFL / TOEIC
   Pagina: ielts-toefl-toeic.html
   Colore: #9163cb
======================================== */

.hero.hero-ielts {
  background-color: #9163cb;
  color: #ffffff;
}

.hero.hero-ielts h1,
.hero.hero-ielts p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero.hero-ielts h1 span {
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.9);
}

.hero.hero-ielts h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero.hero-ielts .hero-btn {
  background-color: #ffffff;
  color: #9163cb;
}

.hero.hero-ielts .hero-btn:hover {
  background-color: #f3f3f3;
}
/* ===== END hero-corsi.css ===== */

/* ===== BEGIN tabella-corso.css ===== */
/* TABELLA CORSO */
.tabella-corso {
  max-width: 960px;
  margin: 60px auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0e6ed; /* ✅ bordo leggero perimetrale */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  font-family: 'Quicksand', sans-serif;
}

.tabella-corso table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tabella-corso th,
.tabella-corso td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
}

.tabella-corso th {
  background-color: #f4f8fc;
  color: #1e3a5f;
  font-weight: 600;
  width: 35%;
  border-right: 1px solid #e0e6ed;
}

.tabella-corso td {
  background-color: #ffffff;
  color: #333;
}

.tabella-corso tr:not(:last-child) th,
.tabella-corso tr:not(:last-child) td {
  border-bottom: 1px solid #e0e6ed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .tabella-corso {
    margin-left: 16px;
    margin-right: 16px;
  }

  .tabella-corso table {
    width: 100%;
  }
}

/* Riga titolo per tabella corso SPORT */
.tabella-sport .titolo-tabella {
  background-color: #e8553e; /* Pastello sport */
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Riga titolo per tabella corso BUSINESS */
.tabella-business .titolo-tabella {
  background-color: #2c2c2c; /* Nero identico all'hero */
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Riga titolo per tabella corso SCUOLA */
.tabella-scuola .titolo-tabella {
  background-color: #2a4d9b;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Riga titolo per tabella corso CLIL */
.tabella-clil .titolo-tabella {
  background-color: #c2932c;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Riga titolo per tabella corso CERTIFICAZIONI */
.tabella-cambridge .titolo-tabella {
  background-color: #7b2d3b;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Riga titolo per tabella corso CONVERSAZIONE */
.tabella-conversazione .titolo-tabella {
  background-color: #2e5d4f;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Riga titolo per tabella corso CONVERSAZIONE */
.tabella-ielts-toefel-toeic .titolo-tabella {
  background-color: #9163cb;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Pulsante soto tabella CLIL */
.pulsante-iscrizione.clil {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.clil .hero-btn {
  background-color: #ffffff;
  color: #c2932c;
  border: 2px solid #c2932c;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.clil .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.clil .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.clil .hero-btn:hover {
  background-color: #fff9ec;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #a87d26;
  transform: translateY(-2px);
}

/* Pulsante sotto tabella CERTIFICAZIONI CAMBRIDGE */
.pulsante-iscrizione.certificazioni-cambridge {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.certificazioni-cambridge .hero-btn {
  background-color: #ffffff;
  color: #7b2d3b;
  border: 2px solid #7b2d3b;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.certificazioni-cambridge .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.certificazioni-cambridge .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.certificazioni-cambridge .hero-btn:hover {
  background-color: #fdf2f4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #6a2633;
  transform: translateY(-2px);
}

/* Pulsante sotto tabella CONVERSAZIONE AVANZATA */
.pulsante-iscrizione.conversazione-avanzata {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.conversazione-avanzata .hero-btn {
  background-color: #ffffff;
  color: #2e5d4f;
  border: 2px solid #2e5d4f;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.conversazione-avanzata .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.conversazione-avanzata .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.conversazione-avanzata .hero-btn:hover {
  background-color: #edf7f4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #23493f;
  transform: translateY(-2px);
}

/* Pulsante sotto tabella ENGLISH FOR BUSINESS */
.pulsante-iscrizione.business {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.business .hero-btn {
  background-color: #ffffff;
  color: #2c2c2c;
  border: 2px solid #2c2c2c;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.business .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.business .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.business .hero-btn:hover {
  background-color: #f5f5f5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

/* Pulsante sotto tabella IELTS / TOEFL / TOEIC */
.pulsante-iscrizione.ielts-toefl-toeic {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.ielts-toefl-toeic .hero-btn {
  background-color: #ffffff;
  color: #9163cb;
  border: 2px solid #9163cb;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.ielts-toefl-toeic .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.ielts-toefl-toeic .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.ielts-toefl-toeic .hero-btn:hover {
  background-color: #f7f1fc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #7c52af;
  transform: translateY(-2px);
}

/* Pulsante sotto tabella INGLESE PER LA SCUOLA */
.pulsante-iscrizione.per-scuola {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.per-scuola .hero-btn {
  background-color: #ffffff;
  color: #2a4d9b;
  border: 2px solid #2a4d9b;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.per-scuola .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.per-scuola .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.per-scuola .hero-btn:hover {
  background-color: #eef2fb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #1f3e80;
  transform: translateY(-2px);
}

/* Pulsante sotto tabella INGLESE E SPORT */
.pulsante-iscrizione.inglese-sport {
  text-align: center;
  margin: 40px auto;
}

.pulsante-iscrizione.inglese-sport .hero-btn {
  background-color: #ffffff;
  color: #e8553e;
  border: 2px solid #e8553e;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.pulsante-iscrizione.inglese-sport .hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.6s ease-in-out;
}

.pulsante-iscrizione.inglese-sport .hero-btn:hover::before {
  left: 100%;
}

.pulsante-iscrizione.inglese-sport .hero-btn:hover {
  background-color: #fef1ee;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #d74834;
  transform: translateY(-2px);
}
/* ===== END tabella-corso.css ===== */

/* ===== BEGIN 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;
}

.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);
  }
}
/* ===== END i-nostri-corsi.css ===== */
