/* ── CORSI PAGE ── */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.corsi-lista {
  flex: 1;
}

/* hero styles moved to hero.css */

/* ── LISTA CORSI ── */
.corsi-lista {
  padding: 64px 0;
  background: var(--light);
}

.corsi-lista-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.corsi-loading {
  color: #aaa;
  font-size: 0.95rem;
}

/* ── CORSO CARD ── */
.corso-card {
  background: #fff;
  border: 1px solid rgba(0, 122, 135, 0.12);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  width: 100%;
}

.corso-card:hover {
  box-shadow: 0 12px 48px rgba(0, 122, 135, 0.1);
}

.corso-card-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

/* ── CORSO INFO ── */
.corso-info {
  padding: 40px;
  border-right: 1px solid rgba(0, 122, 135, 0.08);
}

.corso-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.corso-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.corso-tag--livello {
  background: rgba(0, 122, 135, 0.1);
  color: var(--primary);
}

.corso-tag--stato.aperto {
  background: rgba(0, 180, 100, 0.1);
  color: #00a855;
}

.corso-tag--stato.chiuso {
  background: rgba(200, 50, 50, 0.1);
  color: #c83232;
}

.corso-titolo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.corso-desc {
  font-size: 0.95rem;
  color: #555;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 580px;
}

.corso-dettagli {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.corso-dettaglio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #555;
  font-weight: 300;
}

.corso-dettaglio strong {
  color: var(--dark);
  font-weight: 500;
}

.corso-dettaglio-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.corso-include {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.corso-include li {
  font-size: 0.82rem;
  color: var(--primary);
  background: rgba(0, 122, 135, 0.07);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 400;
}

/* ── CORSO SIDEBAR ── */
.corso-sidebar {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: #fafcfc;
}

.corso-prezzo-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.corso-prezzo-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

.corso-prezzo-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.corso-prezzo-gbp,
.corso-prezzo-eur {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.corso-prezzo-gbp span,
.corso-prezzo-eur span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
}

.corso-prezzo-sep {
  color: #ccc;
  font-size: 1rem;
}

.corso-prezzo-totale {
  font-size: 0.82rem;
  color: #888;
}

.corso-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(194, 24, 91, 0.2);
  width: 100%;
}

.corso-cta:hover {
  background: #a31550;
  transform: translateY(-2px);
}

.corso-cta--disabled {
  background: #ddd;
  color: #aaa;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── MODAL ── */
.corsi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.corsi-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.corsi-modal {
  background: #fff;
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.corsi-modal-overlay.open .corsi-modal {
  transform: translateY(0);
}

.corsi-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #aaa;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
}

.corsi-modal-close:hover {
  color: var(--dark);
}

.modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.88rem;
  color: #666;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.modal-field input,
.modal-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--dark);
  background: var(--light);
  border: 1px solid rgba(0, 122, 135, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field textarea:focus {
  border-color: var(--primary);
}

.modal-field textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-currency-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-currency-btn {
  background: var(--light);
  border: 1px solid rgba(0, 122, 135, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.modal-currency-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 122, 135, 0.05);
  font-weight: 500;
}

.modal-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(194, 24, 91, 0.2);
  margin-top: 4px;
  align-self: center;
}

.modal-submit:hover {
  background: #a31550;
  transform: translateY(-1px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .corsi-lista-inner {
    padding: 0 40px;
  }
}

@media (max-width: 860px) {
  .corsi-lista-inner {
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .corsi-lista {
    padding: 48px 0;
  }

  .corso-card-inner {
    grid-template-columns: 1fr;
  }

  .corso-info {
    border-right: none;
    border-bottom: 1px solid rgba(0, 122, 135, 0.08);
    padding: 28px 24px;
  }

  .corso-sidebar {
    padding: 24px;
  }

  .corsi-modal {
    padding: 32px 24px;
  }
}

/* ── VALUTA TOGGLE ── */
.corso-valuta-toggle {
  display: flex;
  background: rgba(0, 122, 135, 0.08);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  width: fit-content;
  margin-bottom: 12px;
}

.corso-valuta-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.corso-valuta-btn.active {
  background: var(--primary);
  color: #fff;
}

.corso-prezzo-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.corso-prezzo-unit {
  font-size: 0.9rem;
  color: #999;
  font-weight: 400;
}



/* ── CUSTOM BANNER ── */
.corsi-custom-banner {
  background: var(--dark);
  padding: 56px 0;
}

.corsi-custom-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.corsi-custom-banner-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.corsi-custom-banner-text p {
  font-size: 0.95rem;
  color: rgba(249, 252, 253, 0.65);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
}

.corsi-custom-banner-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(194, 24, 91, 0.25);
  flex-shrink: 0;
}

.corsi-custom-banner-cta:hover {
  background: #a31550;
  transform: translateY(-2px);
}

@media (max-width: 860px) {


  .corsi-custom-banner-inner {
    flex-direction: column;
    padding: 0 clamp(24px, 5vw, 48px);
    text-align: center;
  }
}
