.courses-nav .is-active {
  color: var(--blue);
}

.courses-nav .is-active::after {
  transform: scaleX(1);
}

.courses-hero {
  position: relative;
  overflow: hidden;
  padding: 12px 0 0;
  background:
    radial-gradient(circle at 85% 25%, rgba(19, 45, 92, 0.04), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f6f4 100%);
}

.courses-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 45, 92, 0.08), transparent);
}

.courses-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 40px;
  align-items: center;
  min-height: 360px;
  margin-top: 0;
}

.courses-hero-copy {
  position: relative;
  z-index: 1;
  padding: 12px 0 12px;
}

.courses-hero-copy h1,
.feature-title,
.courses-cta-copy h2,
.level-head h2 {
  font-family: "CMU Serif", "Times New Roman", serif;
}

.courses-hero-copy h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(42px, 4.7vw, 68px);
  max-width: 620px;
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.courses-hero-text {
  max-width: 500px;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #3b4b6a;
}

.courses-hero-text .no-wrap {
  white-space: nowrap;
}

.platform-login-box {
  position: relative;
  z-index: 2;
  align-self: stretch;
  justify-self: end;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 38px 46px 30px;
  color: var(--white);
  background: var(--blue);
  border-left: 10px solid #c89a47;
  border-radius: 4px;
  box-shadow: none;
}

.platform-login-kicker,
.platform-login-label {
  margin: 0;
  color: #c89a47;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.platform-login-box h2 {
  margin: 30px 0 26px;
  color: var(--white);
  font-family: "CMU Serif", "Times New Roman", serif;
  font-size: clamp(44px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.98;
}

.platform-login-intro {
  max-width: none;
  margin: 0;
  color: #d8e0ed;
  font-size: 17px;
  line-height: 1.55;
  white-space: nowrap;
}

.platform-login-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin: 42px 0 24px;
  background: #c89a47;
}

.platform-login-name {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.platform-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  margin-top: 40px;
  padding: 18px 20px;
  color: #10284c;
  background: #c89a47;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.platform-login-button:hover,
.platform-login-button:focus-visible {
  background: #e1b35d;
  transform: translateY(-2px);
}

.platform-login-button span {
  font-size: 19px;
  line-height: 1;
}

.platform-login-note {
  margin: 18px 0 0;
  color: #bdc9dc;
  font-size: 12px;
}

.courses-hero-art {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100%;
  padding-right: 4%;
  margin-top: 0;
  pointer-events: none;
}

.courses-hero-art img {
  width: min(100%, 640px);
  object-fit: contain;
  opacity: 0.18;
  filter: grayscale(0.2) brightness(0.95);
  transform: translateX(6px);
}

.platform-hero-art {
  justify-content: flex-end;
  padding-right: 4%;
}

.platform-hero-art img {
  width: min(100%, 640px);
  object-fit: contain;
  opacity: 0.18;
  filter: grayscale(0.2) brightness(0.95);
  transform: translateX(6px);
}

/* Sezione testuale sotto la hero */
.platform-secondary-hero {
  padding: 82px 0 78px;
  background: #ffffff;
}

.platform-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.platform-secondary-left {
  padding: 0;
}

.platform-secondary-left h2 {
  margin: 0;
  color: var(--blue);
  font-family: "CMU Serif", "Times New Roman", serif;
  font-size: clamp(44px, 4.2vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 520px;
}

.platform-secondary-left .hero-title-line {
  margin-top: 18px;
}

.platform-secondary-right {
  padding-top: 6px;
}

.platform-secondary-right .courses-hero-text {
  max-width: none;
  margin: 0 0 22px;
  color: #10284c;
}

.platform-secondary-right .courses-hero-text:first-child {
  font-weight: 600;
}

.platform-secondary-right .courses-hero-text:last-child {
  margin-bottom: 0;
}

.levels-section {
  position: relative;
  padding: 20px 0 16px;
}

.levels-kicker {
  margin: 0;
  text-align: center;
  color: var(--blue);
  font-size: 30px;
  font-family: "CMU Serif", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}

.levels-section .title-line.centered {
  margin: 6px auto 0;
}

.levels-intro {
  display: block;
  max-width: 760px;
  margin: 14px auto 6px;
  text-align: center;
  color: #5f6d87;
  font-size: 16px;
  line-height: 1.55;
  width: 100%;
}

.levels-grid {
  margin-top: 2px;
}

.levels-figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

.levels-figure img,
.levels-figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Video livelli: non deve invadere la parte testuale */
.levels-video {
  width: min(100%, 860px);
}

.course-features {
  padding: 0 0 46px;
  margin-top: 28px;
}

.feature-block + .feature-block {
  margin-top: 26px;
}

.feature-title {
  margin: 0;
  text-align: center;
  color: var(--blue);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  font-weight: 500;
}

.feature-grid {
  margin-top: 16px;
}

.feature-grid-five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-item {
  position: relative;
  min-height: 100%;
  padding: 24px 18px 20px;
  text-align: center;
  border: 1px solid rgba(200, 154, 71, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 14px 30px rgba(19, 45, 92, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(19, 45, 92, 0.1);
  border-color: rgba(200, 154, 71, 0.4);
}

.feature-number {
  margin-bottom: 10px;
  color: rgba(19, 45, 92, 0.24);
  font-size: clamp(21px, 2.2vw, 31px);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  color: var(--gold);
}

.feature-item h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 17px;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.feature-item p {
  margin: 0;
  color: #314567;
  font-size: 14px;
  line-height: 1.6;
}

.feature-item.compact {
  padding-top: 24px;
}

.courses-cta {
  padding: 14px 0 18px;
}

.courses-cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 96px;
  padding: 18px 24px 14px 170px;
  border-radius: 0;
  background:
    linear-gradient(180deg, #173768 0%, #0f2b5a 100%);
  box-shadow: none;
}

.courses-cta-box::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 50%;
  width: 150px;
  height: 88px;
  transform: translateY(-50%);
  background: url("solo_logo_banner_finale.png") left center / contain no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.courses-cta-copy {
  position: relative;
  z-index: 1;
  padding-left: 0;
}

.courses-cta-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.1;
  font-weight: 500;
  font-family: "CMU Serif", "Times New Roman", serif;
}

.courses-cta-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.courses-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-paths {
  padding: 54px 0 64px;
  background-color: #0f2b5a;
}

/* Variante CTA (piattaforma): testo centrato + sfondo grigio leggero */
.platform-cta {
  padding: 44px 0;
  background: #f2f3f5;
}

.platform-cta .courses-cta-box {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.platform-cta .courses-cta-box::before {
  display: none;
}

.platform-cta .courses-cta-copy {
  text-align: center;
}

.platform-cta .courses-cta-copy h2 {
  color: var(--blue);
}

.platform-cta .platform-cta-brand {
  margin: 10px 0 0;
  color: #3b4b6a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.platform-cta .courses-cta-actions {
  justify-content: center;
}

.language-paths-actions {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
}

/* Allinea dimensioni pulsanti (CTA finale) */
.language-paths-actions .info-button {
  min-height: 44px;
  padding: 0 22px;
}

.btn-gold {
  color: var(--white);
  background: #d8a116;
  box-shadow: none;
}

.btn-outline-light {
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

@media (max-width: 1220px) {
  .levels-figure {
    margin-top: 0;
  }
}

@media (max-width: 1080px) {
  .courses-hero-grid,
  .platform-secondary-grid,
  .courses-cta-box,
  .feature-grid-five,
  .feature-grid-four {
    grid-template-columns: 1fr;
  }

  .courses-hero {
    padding-top: 12px;
  }

  .courses-hero-art {
    min-height: 220px;
    order: -1;
  }

  .courses-hero-art img {
    width: min(100%, 320px);
  }

  .platform-login-box {
    align-self: auto;
    justify-self: stretch;
    max-width: none;
    min-height: 0;
    margin-top: 12px;
  }

  .platform-login-intro {
    white-space: normal;
  }

  .courses-cta-copy {
    padding-left: 0;
  }

  .courses-cta-box {
    padding-left: 120px;
  }

  .courses-cta-box::before {
    left: 24px;
    width: 120px;
    height: 72px;
  }

  .courses-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .platform-secondary-hero {
    padding: 56px 0 54px;
  }

  .platform-secondary-right {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .levels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .levels-kicker {
    font-size: 28px;
    letter-spacing: 0.03em;
  }

  .levels-intro {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .courses-hero-copy h1 {
    font-size: clamp(40px, 10vw, 62px);
  }

  .courses-hero-text {
    font-size: 16px;
  }

  .feature-title {
    font-size: 34px;
  }

  .feature-number {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }

  .level-head span {
    font-size: 18px;
    padding-bottom: 4px;
  }

  .courses-cta-box {
    padding-left: 24px;
  }

  .courses-cta-box::before {
    display: none;
  }

  .courses-cta-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .language-paths-actions {
    flex-wrap: wrap;
  }

  .language-paths-actions .btn,
  .language-paths-actions .info-button {
    width: 100%;
  }

  .platform-login-box {
    padding: 42px 28px 32px;
    border-left-width: 8px;
  }

  .platform-login-box h2 {
    margin: 34px 0 28px;
    font-size: 46px;
  }

  .platform-login-rule {
    margin: 48px 0 30px;
  }

  .platform-login-button {
    margin-top: 48px;
  }
}
