/* ==========================================================
   DETTAGLIO CORSO · GO WEST LINE DANCE
   ========================================================== */

.course-detail-page {
  background: var(--cream);
}

.course-detail-page .main-nav > ul > li > button.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.detail-hero {
  position: relative;
  min-height: 770px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.detail-hero__media,
.detail-hero__overlay {
  position: absolute;
  inset: 0;
}

.detail-hero__media {
  background-position: center 40%;
  background-size: cover;
  filter: sepia(.18) saturate(.78) contrast(1.1);
  transform: scale(1.055);
}

.detail-hero__overlay {
  background:
    linear-gradient(90deg, rgba(16, 10, 7, .99) 0%, rgba(25, 15, 10, .93) 46%, rgba(18, 11, 8, .47) 75%, rgba(15, 9, 7, .7) 100%),
    linear-gradient(0deg, rgba(17, 10, 7, .83), transparent 57%),
    repeating-linear-gradient(125deg, transparent 0 38px, rgba(211, 164, 92, .06) 39px 40px);
}

.detail-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 175px;
  padding-bottom: 88px;
}

.detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, .62);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.detail-breadcrumbs a {
  transition: color .2s;
}

.detail-breadcrumbs a:hover,
.detail-breadcrumbs strong {
  color: var(--gold);
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: end;
  gap: 8%;
}

.detail-hero__copy {
  max-width: 900px;
}

.detail-hero__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  color: var(--brown);
  border: 1px solid rgba(211, 164, 92, .52);
  border-radius: 30px;
  background: var(--sand);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.detail-availability,
.booking-card__availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.detail-availability {
  color: rgba(255, 255, 255, .8);
}

.detail-season {
  color: rgba(255, 255, 255, .66);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-availability i,
.booking-card__availability i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #44d37a;
  box-shadow: 0 0 0 4px rgba(68, 211, 122, .15);
}

.detail-hero h1 {
    max-width: 950px;
    margin: 0;
    font: 900 clamp(4.4rem, 7vw, 6.0rem) / .86 var(--heading);
    letter-spacing: -.025em;
    text-transform: uppercase;
    text-wrap: balance;
}

.detail-hero__copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 28px 0 33px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.08rem;
  line-height: 1.75;
}

.detail-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-hero__schedule {
  padding: 30px;
  border: 1px solid rgba(211, 164, 92, .45);
  border-radius: 26px;
  background: rgba(22, 13, 9, .72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}

.detail-hero__schedule-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-hero__schedule > strong,
.detail-hero__schedule > span {
  display: block;
}

.detail-hero__schedule > strong {
  font: 800 2.6rem/.95 var(--heading);
  text-transform: uppercase;
}

.detail-hero__schedule > span {
  margin-top: 5px;
  color: var(--gold);
  font: 700 1.55rem var(--heading);
}

.detail-hero__schedule > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.detail-hero__schedule svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--gold);
}

.detail-hero__schedule p,
.detail-hero__schedule b {
  display: block;
}

.detail-hero__schedule p {
  margin: 0;
  color: rgba(255, 255, 255, .65);
  line-height: 1.5;
}

.detail-hero__schedule b {
  margin-bottom: 3px;
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.detail-facts {
  position: relative;
  z-index: 5;
  margin-top: -38px;
}

.detail-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(96, 58, 38, .14);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(43, 25, 15, .15);
}

.detail-facts__grid > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 25px;
  border-left: 1px solid var(--line);
}

.detail-facts__grid > div:first-child {
  border-left: 0;
}

.detail-facts__grid > div > span {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  color: var(--red);
  border: 3px double var(--gold);
  border-radius: 50%;
  background: var(--cream);
}

.detail-facts__grid svg {
  width: 23px;
  height: 23px;
}

.detail-facts__grid p,
.detail-facts__grid small,
.detail-facts__grid strong {
  display: block;
}

.detail-facts__grid p {
  min-width: 0;
  margin: 0;
}

.detail-facts__grid small {
  color: var(--muted);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.detail-facts__grid strong {
  margin-top: 4px;
  overflow: hidden;
  font: 800 1.25rem/1.1 var(--heading);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-overview {
  background:
    radial-gradient(circle at 4% 22%, rgba(211, 164, 92, .13), transparent 27rem),
    var(--cream);
}

.course-overview__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 7%;
}

.course-overview__intro {
  max-width: 820px;
}

.course-overview__intro .section-title {
  margin-bottom: 26px;
}

.course-overview__intro > p:not(.eyebrow) {
  color: var(--muted);
}

.course-fit {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 45px;
  margin-top: 58px;
  padding: 38px;
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 28px;
  background:
    repeating-linear-gradient(135deg, transparent 0 32px, rgba(255, 255, 255, .025) 33px 34px),
    linear-gradient(145deg, #342117, #130d09);
  box-shadow: 0 24px 55px rgba(51, 29, 18, .16);
}

.course-fit .eyebrow {
  color: var(--gold);
}

.course-fit h3,
.course-program h3,
.first-lesson-card h3 {
  margin: 0;
  font: 800 2rem/.98 var(--heading);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.course-fit ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-fit li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .76);
}

.course-fit li svg {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--gold);
  stroke-width: 3;
}

.course-program {
  margin-top: 75px;
}

.course-program h3 {
  margin-bottom: 28px;
  font-size: 2.5rem;
}

.course-program__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.course-program article {
  position: relative;
  min-height: 220px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid rgba(96, 58, 38, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .83);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.course-program article:hover {
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(53, 31, 18, .1);
  transform: translateY(-4px);
}

.course-program article > span {
  color: var(--red);
  font: 800 1.15rem var(--heading);
}

.course-program h4 {
  margin: 35px 0 8px;
  font: 800 1.65rem/1 var(--heading);
  text-transform: uppercase;
}

.course-program article p {
  margin: 0;
  color: var(--muted);
}

.course-program article::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 82px;
  height: 82px;
  border: 13px double rgba(211, 164, 92, .12);
  border-radius: 50%;
}

.first-lesson-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 29px;
  border: 1px solid rgba(96, 58, 38, .16);
  border-radius: 22px;
  background: var(--white);
}

.first-lesson-card__icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--brown);
  border: 4px double var(--brown);
  border-radius: 50%;
  background: var(--sand);
}

.first-lesson-card__icon svg {
  width: 38px;
  height: 38px;
}

.first-lesson-card .eyebrow {
  margin-bottom: 6px;
}

.first-lesson-card p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
}

.booking-card {
  position: sticky;
  top: 116px;
  max-height: calc(100vh - 136px);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gold);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 25px 60px rgba(51, 28, 17, .16);
  scrollbar-color: var(--gold) transparent;
  scrollbar-width: thin;
}

.booking-card::-webkit-scrollbar {
  width: 5px;
}

.booking-card::-webkit-scrollbar-track {
  background: transparent;
}

.booking-card::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--gold);
}

.booking-card__availability {
  width: 100%;
  margin: 0 0 14px;
  padding-bottom: 12px;
  color: var(--green);
  border-bottom: 1px solid var(--line);
}

.booking-card .eyebrow {
  margin-bottom: 4px;
}

.booking-card h2 {
    margin: 0;
    font: 900 1.6rem / .9 var(--heading);
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.booking-card > p:not(.eyebrow):not(.booking-card__availability):not(.booking-card__alternative) {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-card__contact {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: 17px;
  background: var(--cream);
}

.booking-card__contact small,
.booking-card__contact strong,
.booking-card__contact a {
  display: block;
}

.booking-card__contact small {
  color: var(--muted);
  font-size: 1rem;
  text-transform: uppercase;
}

.booking-card__contact strong {
  margin: 1px 0 4px;
  font: 800 1.25rem var(--heading);
  text-transform: uppercase;
}

.booking-card__contact a {
  color: var(--red);
  font-weight: 800;
}

.booking-card__contact svg {
  margin-right: 4px;
  vertical-align: -3px;
}

.booking-card__button {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
}

.booking-card__button svg {
  width: 20px;
  height: 20px;
}

.booking-card__alternative {
  margin: 9px 0;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.booking-card__alternative a {
  color: var(--red);
  font-weight: 800;
}

.booking-card__alternative span {
  margin: 0 3px;
}

.booking-card dl {
  margin: 13px 0 0;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.booking-card dl > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  padding: 5px 0;
}

.booking-card dt,
.booking-card dd {
  margin: 0;
  font-size: 1rem;
}

.booking-card dt {
  color: var(--muted);
}

.booking-card dd {
  font-weight: 700;
  text-align: right;
}

.booking-card__note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.teacher-section {
  position: relative;
  overflow: hidden;
  padding: 105px 0;
  color: var(--white);
  background:
    repeating-linear-gradient(135deg, transparent 0 42px, rgba(211, 164, 92, .025) 43px 44px),
    #17100c;
}

.teacher-section::after {
  content: "INSEGNANTE";
  position: absolute;
  right: -20px;
  bottom: -60px;
  color: rgba(255, 255, 255, .025);
  font: 900 12rem/1 var(--heading);
  letter-spacing: -.04em;
}

.teacher-section__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 9%;
}

.teacher-section__photo {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  border: 1px solid var(--gold);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 34%, rgba(211, 164, 92, .28), transparent 14rem),
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(255, 255, 255, .025) 31px 32px),
    #2c1c14;
  box-shadow: 0 30px 65px rgba(0, 0, 0, .25);
}

.teacher-section__photo::before,
.teacher-section__photo::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(211, 164, 92, .26);
  border-radius: 50%;
}

.teacher-section__photo::before {
  width: 330px;
  height: 330px;
}

.teacher-section__photo::after {
  width: 390px;
  height: 390px;
}

.teacher-section__photo > span {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font: 800 10rem/.8 var(--western);
}

.teacher-section__photo > small {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin-top: 25px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.teacher-section__copy .section-title {
  margin-bottom: 28px;
}

.teacher-section__copy .section-title em {
  color: var(--gold);
  font-family: var(--western);
  font-size: .58em;
  font-style: normal;
  text-transform: none;
}

.teacher-section__copy > p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, .7);
  font-size: 1.08rem;
}

.teacher-section__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 31px;
}

.teacher-section__highlights span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 30px;
  background: rgba(255, 255, 255, .04);
}

.teacher-section__highlights svg {
  color: var(--gold);
  stroke-width: 3;
}

.course-location {
  background: var(--white);
}

.course-location__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
}

.course-location__map {
  min-height: 550px;
  overflow: hidden;
  border: 1px solid rgba(96, 58, 38, .14);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 20px 50px rgba(49, 28, 17, .1);
}

.course-location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 550px;
  display: block;
  border: 0;
  filter: sepia(.18) saturate(.82) contrast(1.03);
}

.location-card {
  padding: 35px;
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 28px;
  background:
    repeating-linear-gradient(135deg, transparent 0 32px, rgba(255, 255, 255, .025) 33px 34px),
    linear-gradient(145deg, #352117, #130d09);
}

.location-card__icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--brown);
  border: 4px double var(--brown);
  border-radius: 50%;
  background: var(--sand);
}

.location-card__icon svg {
  width: 32px;
  height: 32px;
}

.location-card .eyebrow {
  color: var(--gold);
}

.location-card h3 {
  margin: 0;
  font: 800 2.25rem/.95 var(--heading);
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.location-card address {
  margin: 13px 0 22px;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.location-card > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .68);
}

.location-card .button {
  width: 100%;
  margin-top: 13px;
}

.location-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
}

.course-gallery {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 5%, rgba(211, 164, 92, .15), transparent 27rem),
    var(--cream);
}

.course-gallery .section-heading--center {
  max-width: 820px;
}

.course-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--white);
  border: 0;
  border-radius: 22px;
  background: var(--black);
  text-align: left;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) contrast(1.05);
  transition: transform .5s, filter .4s;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 10, 7, .78), transparent 58%);
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  left: 22px;
  font: 800 1.45rem var(--heading);
  text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.055);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(10, 7, 5, .94);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  border: 1px solid var(--gold);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.gallery-lightbox__close {
  position: absolute;
  top: 22px;
  right: 25px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-size: 2rem;
  line-height: 1;
}

.related-courses {
  background: var(--white);
}

.related-courses__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-course-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border: 1px solid rgba(96, 58, 38, .15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(211, 164, 92, .18), transparent 12rem),
    var(--cream);
  box-shadow: 0 12px 30px rgba(51, 29, 17, .07);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.related-course-card:hover {
  border-color: var(--gold);
  box-shadow: 0 22px 45px rgba(51, 29, 17, .13);
  transform: translateY(-5px);
}

.related-course-card h3 {
  min-height: 2em;
  margin: 27px 0 20px;
  font: 800 2rem/1 var(--heading);
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.related-course-card > div {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-course-card > div span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.related-course-card > div svg {
  color: var(--red);
}

.related-course-card > strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: var(--red);
  font-family: var(--heading);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.detail-final-cta {
  padding: 70px 0;
  color: var(--white);
  background:
    repeating-linear-gradient(135deg, transparent 0 32px, rgba(255, 255, 255, .045) 33px 35px),
    var(--red);
}

.detail-final-cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 35px;
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  background: rgba(83, 5, 9, .14);
}

.detail-final-cta__badge {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--red);
  border: 6px double var(--brown);
  border-radius: 50%;
  background: var(--white);
  transform: rotate(-7deg);
}

.detail-final-cta__badge svg {
  width: 47px;
  height: 47px;
}

.detail-final-cta h2 {
  margin: 0;
  font: 900 3.2rem/.9 var(--heading);
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.detail-final-cta h2 em {
  color: var(--gold);
  font-family: var(--western);
  font-size: .75em;
  font-style: normal;
  text-transform: none;
}

.detail-final-cta p:not(.eyebrow) {
  max-width: 700px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 1180px) {
  .detail-hero__grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 5%;
  }

  .detail-facts__grid > div {
    padding-inline: 18px;
  }

  .course-overview__layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 4%;
  }

  .course-fit {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .course-location__grid {
    grid-template-columns: 1.15fr .85fr;
  }

  .detail-final-cta__inner {
    grid-template-columns: auto 1fr;
  }

  .detail-final-cta__inner > .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 990px) {
  .detail-hero {
    min-height: 0;
  }

  .detail-hero__inner {
    padding-top: 155px;
  }

  .detail-hero__grid,
  .course-overview__layout,
  .teacher-section__grid,
  .course-location__grid {
    /* grid-template-columns: 1fr; */
    display: flex;
    flex-direction: column;
  }

  .detail-hero__schedule {
    max-width: 620px;
    margin-top: 15px;
  }

  .detail-facts {
    margin-top: 0;
    padding: 18px 0;
    background: var(--white);
  }

  .detail-facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: none;
  }

  .detail-facts__grid > div:nth-child(3) {
    border-left: 0;
  }

  .detail-facts__grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .booking-card {
    position: relative;
    top: auto;
    max-height: none;
    max-width: 680px;
    margin-top: 25px;
    overflow: visible;
  }

  .teacher-section__photo {
    min-height: 440px;
  }

  .course-location__map,
  .course-location__map iframe {
    min-height: 460px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .course-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-courses__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .detail-hero__inner {
    padding-top: 138px;
    padding-bottom: 58px;
  }

  .detail-breadcrumbs {
    margin-bottom: 30px;
  }

  .detail-hero h1 {
    font-size: clamp(3.5rem, 15vw, 5.2rem);
  }

  .detail-hero__copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .detail-hero__actions,
  .detail-hero__actions .button {
    width: 100%;
  }

  .detail-hero__schedule {
    padding: 25px 21px;
  }

  .detail-facts__grid {
    grid-template-columns: 1fr;
  }

  .detail-facts__grid > div,
  .detail-facts__grid > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-facts__grid > div:first-child {
    border-top: 0;
  }

  .course-fit,
  .booking-card,
  .location-card {
    padding: 26px 21px;
  }

  .course-program__grid,
  .course-gallery__grid {
    grid-template-columns: 1fr;
  }

  .course-program article {
    min-height: 200px;
  }

  .first-lesson-card {
    grid-template-columns: 1fr;
  }

  .teacher-section {
    padding: 80px 0;
  }

  .teacher-section::after {
    font-size: 6rem;
  }

  .teacher-section__photo {
    min-height: 380px;
  }

  .teacher-section__photo::before {
    width: 245px;
    height: 245px;
  }

  .teacher-section__photo::after {
    width: 300px;
    height: 300px;
  }

  .teacher-section__photo > span {
    font-size: 8rem;
  }

  .course-location__map,
  .course-location__map iframe {
    min-height: 390px;
  }

  .gallery-lightbox {
    padding: 18px;
  }

  .related-courses {
    overflow: hidden;
  }

  .related-courses__track {
    width: calc(100% + 24px);
    display: flex;
    gap: 14px;
    margin-right: -24px;
    padding-right: 44px;
    padding-bottom: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .related-courses__track::-webkit-scrollbar {
    display: none;
  }

  .related-course-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .detail-final-cta__inner {
    grid-template-columns: 1fr;
    padding: 29px 21px;
  }

  .detail-final-cta__badge {
    width: 80px;
    height: 80px;
  }

  .detail-final-cta__inner > .button {
    width: 100%;
    grid-column: auto;
  }

  .detail-final-cta h2 {
    font-size: 2.65rem;
  }
}

/* =====================================================
   ALTRI CORSI NELLA STESSA SCUOLA
===================================================== */

.school-courses {
    --school-dark: #211812;
    --school-brown: #5a301d;
    --school-rust: #a74726;
    --school-gold: #dcae52;
    --school-cream: #f7f0e4;
    --school-green: #4d9c5d;

    position: relative;
    padding: clamp(75px, 8vw, 120px) 0;
    overflow: hidden;
    color: var(--school-dark);
    background:
        radial-gradient(circle at 10% 10%, rgba(220, 174, 82, .17), transparent 28%),
        linear-gradient(135deg, #fbf7f0 0%, #f1e5d2 100%);
}

.school-courses::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 18px,
            rgba(90, 48, 29, .08) 19px,
            transparent 20px
        );
}

.school-courses .container {
    position: relative;
    z-index: 1;
}

.school-courses__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.school-courses__intro {
    max-width: 850px;
}

.school-courses__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: var(--school-rust);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.school-courses__eyebrow::before {
    content: "";
    width: 35px;
    height: 3px;
    border-radius: 20px;
    background: var(--school-gold);
}

.school-courses__heading h2 {
    max-width: 780px;
    margin: 0;
    color: var(--school-dark);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: .94;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.school-courses__heading h2 span {
    display: block;
    color: var(--school-rust);
    font-family: var(--accent-font, "Roboto Slab", serif);
    font-size: .68em;
    line-height: 1.15;
    text-transform: none;
}

.school-courses__intro > p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #655b54;
    font-size: 1.05rem;
    line-height: 1.75;
}

.school-courses__controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.school-courses__arrow {
    display: grid;
    width: 52px;
    height: 52px;
    padding: 0;
    place-items: center;
    color: #fff;
    cursor: pointer;
    border: 2px solid var(--school-dark);
    border-radius: 50%;
    background: var(--school-dark);
    transition:
        color .25s ease,
        border-color .25s ease,
        background-color .25s ease,
        transform .25s ease,
        opacity .25s ease;
}

.school-courses__arrow:hover {
    color: var(--school-dark);
    border-color: var(--school-gold);
    background: var(--school-gold);
    transform: translateY(-2px);
}

.school-courses__arrow:disabled {
    cursor: default;
    opacity: .3;
    transform: none;
}

.school-courses__arrow svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.school-courses__viewport {
    min-width: 0;
}

.school-courses__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.school-course-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 500px;
    overflow: hidden;
    flex-direction: column;
    color: var(--school-dark);
    text-decoration: none;
    border: 1px solid rgba(90, 48, 29, .13);
    border-radius: 25px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 55px rgba(62, 39, 25, .10);
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

a.school-course-card:hover {
    color: var(--school-dark);
    border-color: rgba(167, 71, 38, .55);
    box-shadow: 0 26px 65px rgba(62, 39, 25, .18);
    transform: translateY(-7px);
}

.school-course-card--current {
    color: #fff;
    border-color: var(--school-rust);
    background:
        radial-gradient(circle at 90% 5%, rgba(220, 174, 82, .25), transparent 28%),
        linear-gradient(150deg, #321f16 0%, #1d1511 100%);
}

.school-course-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -55px;
    width: 155px;
    height: 155px;
    pointer-events: none;
    border: 2px solid rgba(220, 174, 82, .15);
    border-radius: 50%;
    box-shadow:
        0 0 0 15px rgba(220, 174, 82, .05),
        0 0 0 30px rgba(220, 174, 82, .03);
}

.school-course-card__top {
    display: flex;
    min-height: 65px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(90, 48, 29, .11);
}

.school-course-card--current .school-course-card__top {
    border-color: rgba(255, 255, 255, .13);
}

.school-course-card__level,
.school-course-card__place,
.school-course-card__current-label {
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.school-course-card__level {
    padding: 8px 11px;
    color: #fff;
    border-radius: 30px;
    background: var(--school-rust);
}

.school-course-card__place {
    color: #8a7768;
}

.school-course-card__current-label {
    color: var(--school-gold);
    text-align: right;
}

.school-course-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    padding: 28px 22px 22px;
    flex: 1;
    flex-direction: column;
}

.school-course-card__number {
    position: absolute;
    top: 12px;
    right: 19px;
    color: rgba(90, 48, 29, .07);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.school-course-card--current .school-course-card__number {
    color: rgba(255, 255, 255, .07);
}

.school-course-card h3 {
    position: relative;
    z-index: 1;
    max-width: 210px;
    margin: 0 0 15px;
    color: inherit;
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: clamp(2rem, 2.6vw, 2.7rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.school-course-card__body > p {
    position: relative;
    z-index: 1;
    margin: 0 0 25px;
    color: #766b63;
    font-size: 1rem;
    line-height: 1.65;
}

.school-course-card--current .school-course-card__body > p {
    color: rgba(255, 255, 255, .72);
}

.school-course-card__details {
    display: grid;
    gap: 13px;
    padding: 20px 0 0;
    margin: auto 0 0;
    list-style: none;
    border-top: 1px solid rgba(90, 48, 29, .11);
}

.school-course-card--current .school-course-card__details {
    border-color: rgba(255, 255, 255, .13);
}

.school-course-card__details li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.school-course-card__details svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: var(--school-rust);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.school-course-card--current .school-course-card__details svg {
    stroke: var(--school-gold);
}

.school-course-card__footer {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 15px;
    padding: 0 22px 23px;
}

.school-course-card__availability {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #655b54;
    font-size: 1rem;
    font-weight: 700;
}

.school-course-card--current .school-course-card__availability {
    color: rgba(255, 255, 255, .76);
}

.school-course-card__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--school-green);
    box-shadow: 0 0 0 4px rgba(77, 156, 93, .13);
}

.school-course-card__button {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: #fff;
    border: 2px solid var(--school-rust);
    border-radius: 9px;
    background: var(--school-rust);
    box-shadow: 0 10px 22px rgba(167, 71, 38, .18);
    font-family: var(--heading, "Barlow Condensed", sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition:
        color .25s ease,
        border-color .25s ease,
        background-color .25s ease;
}

a.school-course-card:hover .school-course-card__button {
    color: var(--school-dark);
    border-color: var(--school-gold);
    background: var(--school-gold);
}

.school-course-card__button--disabled {
    color: rgba(255, 255, 255, .62);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.school-courses__note {
    display: flex;
    max-width: 820px;
    align-items: center;
    gap: 16px;
    padding: 20px 25px;
    margin: 35px auto 0;
    border: 1px solid rgba(90, 48, 29, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .68);
}

.school-courses__note-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--school-rust);
    font-size: 1.15rem;
    font-weight: 900;
}

.school-courses__note p {
    margin: 0;
    color: #655b54;
    font-size: 1rem;
    line-height: 1.6;
}

.school-courses__note a {
    color: var(--school-rust);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Tablet */

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

    .school-course-card {
        min-height: 470px;
    }
}

/* Smartphone: swipe orizzontale */

@media (max-width: 767px) {
    .school-courses {
        padding: 70px 0;
    }

    .school-courses__heading {
        align-items: flex-end;
        gap: 15px;
        margin-bottom: 28px;
    }

    .school-courses__intro {
        min-width: 0;
    }

    .school-courses__heading h2 {
        font-size: clamp(2.45rem, 12vw, 3.5rem);
    }

    .school-courses__heading h2 span {
        margin-top: 5px;
        font-size: .58em;
    }

    .school-courses__intro > p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .school-courses__controls {
        display: none;
    }

    .school-courses__viewport {
        width: calc(100% + 20px);
        overflow: hidden;
    }

    .school-courses__track {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(82%, 82%);
        gap: 15px;
        padding: 4px 20px 25px 0;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .school-courses__track::-webkit-scrollbar {
        display: none;
    }

    .school-course-card {
        min-height: 490px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .school-course-card h3 {
        font-size: 2.25rem;
    }

    .school-courses__note {
        align-items: flex-start;
        padding: 18px;
        margin-top: 20px;
    }
}

@media (max-width: 425px) {
    .school-courses__track {
        grid-auto-columns: minmax(88%, 88%);
    }

    .school-course-card__current-label {
        max-width: 110px;
    }
}
