/* ============================================================
   Calendario Corsi UX - CSS (v2.2.2)
   Fix: centratura completa + pulsante compatto
   Colore istituzionale: #176094
============================================================ */

.no-corsi {
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}

/* === FILTRO DISCIPLINE === */
.discipline-filter {
  text-align: center;
  margin-bottom: 40px;
}
.filter-btn {
  margin: 4px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid #176094;
  background: #fff;
  color: #176094;
  font-weight: 600;
  transition: all 0.2s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: #176094;
  color: #fff;
}

/* === TITOLI MESE === */
.mese-titolo {
  text-align: center;
  margin: 60px 0 30px;
  color: #176094;
  font-size: 1.8rem;
  font-weight: 700;
}

/* === CARD CORSO === */
.corso-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.corso-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* === IMMAGINE CARD – Compatibilità FlatSome (v2.2.3) === */
.calendario-corsi-ux .box-image,
.box-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0;
}

.calendario-corsi-ux .box-image a,
.box-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.calendario-corsi-ux .box-image img,
.box-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: top !important;
  display: block !important;
}




/* === TESTO === */
.box-text {
  padding: 20px 15px 10px;
  text-align: center;
}
.corso-titolo {
  margin-bottom: 10px;
  color: #176094;
  font-weight: 600;
  font-size: 20px;
}
.corso-titolo a {
  color: inherit;
  text-decoration: none;
}
.corso-titolo a:hover {
  text-decoration: underline;
}

.corso-data,
.corso-stato,
.corso-crediti {
  margin: 5px 0;
  font-size: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; /* centratura orizzontale */
  flex-wrap: wrap;
}

.corso-data i {
  margin-right: 6px;
  position: relative;
  top: 1px;
}

/* === STATO ISCRIZIONI === */
.corso-stato span {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 14px;
  font-weight: 600;
  font-size: 14px;
}
.corso-stato.aperto span {
  background: #d6f5d6;
  color: #1b7e1b;
}
.corso-stato.chiuso span {
  background: #fbd5d5;
  color: #c0392b;
}
.corso-stato.attesa span {
  background: #fff3cd;
  color: #8a6d3b;
}

/* === PULSANTE === */
.corso-btn-wrap {
  text-align: center;
  padding: 12px 0 20px;
}
.corso-btn-wrap .button {
  background: #176094;
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px; /* ridotto */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  border: none;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}
.corso-btn-wrap .button:hover {
  background: #124d77;
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .mese-titolo {
    font-size: 1.5rem;
  }
  .corso-titolo {
    font-size: 18px;
  }
  .corso-btn-wrap .button {
    font-size: 12.5px;
    padding: 7px 14px;
  }
}
