/* Pagina dettaglio scuola - stili isolati per non modificare header e footer. */
.school-detail-page {
  background: #f7f2e9;
}

.school-detail-page .site-header:not(.is-sticky) {
  color: #fff;
}

.school-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 120px) 0 clamp(72px, 8vw, 112px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(196, 127, 43, .25), transparent 24rem),
    linear-gradient(125deg, #17100c 0%, #2a1a11 60%, #4a2b17 100%);
}

.school-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.06) 18px 19px);
}

.school-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.school-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
}

.school-breadcrumbs a { color: inherit; }
.school-breadcrumbs a:hover { color: #f2a83b; }
.school-breadcrumbs strong { color: #fff; }

.school-hero h1 {
  max-width: 950px;
  margin: 10px 0 18px;
  font-family: var(--heading);
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.school-hero__lead {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.75;
}

.school-hero__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.school-hero__summary span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-weight: 700;
}

.school-hero__summary svg,
.school-location__actions svg,
.school-map__directions svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.school-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: start;
}

.school-map {
  position: sticky;
  top: 118px;
  overflow: hidden;
  min-height: 590px;
  border: 8px solid #fff;
  border-radius: 28px;
  background: #ded4c4;
  box-shadow: 0 26px 70px rgba(50, 30, 18, .14);
}

.school-map iframe {
  display: block;
  width: 100%;
  height: 590px;
}

.school-map__directions {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border-radius: 999px;
  color: #fff;
  background: #17100c;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.school-location__content .section-title { margin-bottom: 28px; }

.school-address {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  padding: 22px;
  border: 1px solid rgba(66, 43, 27, .12);
  border-radius: 21px;
  background: #fff;
}

.school-address__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #a84a2a;
}

.school-address__icon svg,
.school-callout svg,
.school-course-card svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.school-address small,
.school-contact p,
.school-course-card__teacher small {
  display: block;
  margin-bottom: 3px;
  color: #856f60;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.school-address strong {
  display: block;
  color: #23170f;
  font-family: var(--heading);
  font-size: 1.45rem;
  line-height: 1.1;
}

.school-address p {
  margin: 5px 0 8px;
  color: #665548;
  font-size: 1rem;
  line-height: 1.55;
}

.school-copy {
  padding: 0;
  border: 0;
  color: #a84a2a;
  background: transparent;
  font: 800 1rem var(--heading);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.school-copy__status {
  margin-left: 8px;
  color: #37724a;
  font-size: .9rem;
  font-weight: 700;
}

.school-callout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(174, 93, 33, .25);
  border-radius: 20px;
  background: #fff2d9;
}

.school-callout > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #6f331f;
  background: #f2c16f;
}

.school-callout small {
  color: #a84a2a;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.school-callout h3 {
  margin: 2px 0 4px;
  color: #2e1b11;
  font-family: var(--heading);
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.school-callout p {
  margin: 0;
  color: #71523d;
  font-size: 1rem;
  line-height: 1.55;
}

.school-contact {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 25px;
  padding: 0 2px 20px;
  border-bottom: 1px solid rgba(66, 43, 27, .15);
}

.school-contact p { grid-column: 1 / -1; margin: 0; }
.school-contact strong { color: #2e1b11; font-size: 1.08rem; }
.school-contact a { color: #a84a2a; font-size: 1.08rem; font-weight: 800; }

.school-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

.school-location__actions .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.school-courses {
  background: #fff;
}

.school-courses__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 530px);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.school-courses__header .section-title { margin-bottom: 0; }
.school-courses__header > p { margin: 0 0 8px; color: #705e51; font-size: 1.05rem; line-height: 1.7; }

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

.school-course-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(57, 37, 23, .12);
  border-radius: 24px;
  background: #fbf7f0;
  box-shadow: 0 16px 42px rgba(50, 30, 18, .07);
}

.school-course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #b95832;
}

.school-course-card--principianti::before { background: #d4942f; }
.school-course-card--intermedi::before { background: #32786c; }
.school-course-card--avanzati::before { background: #34295f; }

.school-course-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.school-course-card__level {
  color: #9b4026;
  font: 800 1rem var(--heading);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.school-course-card__trial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34724a;
  font-size: .88rem;
  font-weight: 800;
}

.school-course-card__trial i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #42a35d;
  box-shadow: 0 0 0 4px rgba(66,163,93,.13);
}

.school-course-card h3 {
  margin: 16px 0 21px;
  color: #24170f;
  font-family: var(--heading);
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.school-course-card dl { margin: 0; }
.school-course-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid rgba(57,37,23,.11); }
.school-course-card dt { display: flex; align-items: center; gap: 7px; color: #826f61; font-size: .95rem; }
.school-course-card dt svg { width: 17px; height: 17px; }
.school-course-card dd { margin: 0; color: #302219; font-size: .96rem; font-weight: 800; text-align: right; }

.school-course-card__teacher {
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  gap: 12px;
  align-items: center;
  margin: 21px 0;
  padding: 14px;
  border-radius: 17px;
  background: #efe5d5;
}

.school-course-card__teacher > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #352218;
  font: 800 1rem var(--heading);
}

.school-course-card__teacher small { margin: 0; font-size: .78rem; }
.school-course-card__teacher strong { display: block; color: #24170f; font-size: 1rem; }
.school-course-card__teacher > a { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: #a84a2a; }
.school-course-card__teacher > a svg { width: 17px; height: 17px; }

.school-course-card__button {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: auto;
}

.school-course-card__button svg { width: 18px; height: 18px; }

.school-final-cta {
  padding: clamp(60px, 7vw, 94px) 0;
  color: #fff;
  background: #1b120d;
}

.school-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
}

.school-final-cta h2 {
  margin: 5px 0 8px;
  font-family: var(--heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.school-final-cta p { max-width: 740px; margin: 0; color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.65; }
.school-final-cta .eyebrow { color: #f2a83b; }

@media (max-width: 1100px) {
  .school-location__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .school-courses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .school-detail-page .site-header:not(.is-sticky) { color: inherit; }
  .school-location__grid { grid-template-columns: 1fr; }
  .school-map { position: relative; top: auto; min-height: 420px; }
  .school-map iframe { height: 420px; }
  .school-courses__header { grid-template-columns: 1fr; gap: 18px; }
  .school-final-cta__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .school-hero { padding: 52px 0 65px; }
  .school-breadcrumbs { margin-bottom: 24px; }
  .school-hero h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .school-hero__summary { align-items: stretch; flex-direction: column; }
  .school-hero__summary span { width: 100%; }
  .school-map { min-height: 350px; border-width: 5px; border-radius: 20px; }
  .school-map iframe { height: 350px; }
  .school-map__directions { right: 12px; bottom: 12px; left: 12px; justify-content: center; }
  .school-address, .school-callout { grid-template-columns: 44px 1fr; padding: 17px; }
  .school-address__icon, .school-callout > span { width: 44px; height: 44px; }
  .school-contact { grid-template-columns: 1fr; gap: 5px; }
  .school-contact p { grid-column: 1; }
  .school-location__actions { display: grid; grid-template-columns: 1fr; }
  .school-location__actions .button { justify-content: center; width: 100%; }
  .school-courses__grid {
            grid-template-columns: 85% !important;
        grid-auto-flow: column;
        grid-auto-columns: 85%;
   }
  .school-course-card { padding: 21px; }
  .school-course-card__top { align-items: flex-start; }
  .school-course-card__trial { text-align: right; }
  .school-final-cta .button { width: 100%; text-align: center; }
}
