/*
 * La Scuola — stylesheet principale
 * Stili base e componenti condivisi.
 * Le regole responsive di navigazione vivono in responsive.css.
 */

/* =========================
   1. IMPORTS
========================= */

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope/Manrope-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
}

/* =========================
   2. THEME VARIABLES
========================= */

:root {
    --cream: #f3e9e2;
    --paper: #fffaf6;

    --blush: #e7cfc5;
    --rose: #c79b99;
    --rose-deep: #95676c;

    --coral: #ad5d56;
    --clay: #a77a6c;

    --slate: #244964;

    --ink: #25282a;
    --muted: #706a66;
    --line: #d8c8bf;

    --rail: 92px;
}

/* =========================
   3. BASE / RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
}

button, a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================
   4. LAYOUT & SIDE NAVIGATION
========================= */

.site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--paper);
    min-height: 100vh;
}

.side-nav {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    width: var(--rail);
    background: rgba(255,250,246,.97);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-logo {
    width: 100%;
    height: 92px;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--blush);
    padding: 6px;
}

.side-logo img, .side-nav .side-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    mix-blend-mode: multiply;
}

.side-nav nav {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 12px 0;
}

.side-nav nav a {
    height: 88px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid transparent;
    color: #686462;
    transition: .2s;
}

.side-nav nav a:hover, .side-nav nav a.active {
    color: var(--ink);
    border-color: var(--coral);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.social-links a:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
    transform: translateY(-2px);
}

.side-socials {
    display: grid;
    grid-template-columns: repeat(2,28px);
    gap: 7px;
    padding: 14px 0 18px;
}

.side-socials a {
    width: 28px;
    height: 28px;
    font-size: 11px;
    color: #5f5a58;
}

main {
    margin-left: var(--rail);
    background: var(--paper);
}

section,footer {
    scroll-margin-top: 20px;
}

/* =========================
   5. SHARED UI COMPONENTS
========================= */

.kicker {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 10px;
    font-weight: 600;
    margin: 0 0 20px;
}

/* =========================
   6. TRIAL BANNER
========================= */

.trial {
    min-height: 170px;
    background: var(--rose);
    display: grid;
    grid-template-columns: 1.15fr .9fr auto;
    align-items: center;
    gap: 42px;
    padding: 26px clamp(34px,6vw,96px);
}

.trial h2, .hero h1, .section h2, .about h2, footer h2 {
    font-family: "Manrope",sans-serif;
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: 1.02;
    margin: 0;
}

.trial h2 {
    font-size: clamp(32px,3.2vw,50px);
}

.trial>p {
    max-width: 460px;
    line-height: 1.65;
}

.pill {
    min-height: 56px;
    padding: 0 29px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--rose);
    color: #171719;
    font-size: 15px;
    font-weight: 600;
    transition: .2s;
}

.pill:hover {
    transform: translateY(-2px);
    background: var(--rose-deep);
    color: var(--paper);
}

.pill span {
    font-size: 23px;
    font-weight: 400;
}

.pill.light {
    background: var(--paper);
}

.pill.light:hover {
    background: white;
    color: var(--ink);
}

/* =========================
   7. HERO
========================= */

.hero {
    min-height: 720px;
    display: grid;
    grid-template-columns: 36% 64%;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 78px 0 70px clamp(42px,5vw,78px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--paper);
}

.hero h1 {
    font-size: clamp(48px,5.1vw,80px);
    white-space: nowrap;
}

.hero h1 em, .section h2 em, .about h2 em {
    font-style: normal;
    color: var(--coral);
}

.title-line {
    width: 128px;
    height: 3px;
    background: var(--clay);
    margin: 24px 0 32px;
}

.hero-copy>p:not(.kicker) {
    max-width: 350px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 34px;
}

.plain-link {
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}

.hero-gallery {
    position: relative;
    background: var(--slate);
    color: white;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-socials {
    position: absolute;
    right: 45px;
    top: 28px;
    z-index: 3;
}

.hero-socials a {
    color: #f8ede7;
    border-color: rgba(248,237,231,.55);
}

.gallery-track {
    display: flex;
    gap: 24px;
    margin-left: clamp(92px,9vw,164px);
    transform: translateY(24px);
}

.portrait {
    flex: 0 0 clamp(205px,19vw,280px);
    height: 455px;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 22px 40px rgba(0,0,0,.2);
}

.portrait:nth-child(2) {
    transform: translateY(-16px);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.88) contrast(1.02);
}

.portrait-one img {
    object-position: center 28%;
}

.portrait-two img {
    object-position: center 30%;
}

.portrait-three img {
    object-position: center 22%;
}

/* =========================
   8. ABOUT / LA SCUOLA
========================= */

.about {
    width: 100%;
    min-height: 720px;
    height: min(100svh,920px);
    display: grid;
    grid-template-columns: 36% 64%;
    background: var(--slate);
    color: white;
}

.about-image {
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.about-copy {
    padding: 80px clamp(40px,6vw,92px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about h2 {
    font-size: clamp(48px,5vw,76px);
}

.about-copy>p:not(.kicker) {
    line-height: 1.75;
    color: #dbe0e2;
    max-width: 520px;
    margin: 28px 0 0;
}

.about-copy .history-text {
    color: #bfc8cc;
    margin-top: 16px;
    font-size: 14px;
}

.about-copy .inverse {
    margin-top: 30px;
}

.inverse {
    align-self: flex-start;
}

/* =========================
   9. GENERIC SECTIONS & COURSES
========================= */

.section {
    padding: 96px clamp(34px,6vw,96px);
}

.section-heading {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 50px;
}

.section-heading h2, .schedule h2 {
    font-size: clamp(46px,5vw,74px);
}

.section-heading>p {
    max-width: 480px;
    line-height: 1.7;
    color: var(--muted);
}

.coral {
    color: var(--coral);
}

.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: -14px 0 36px;
}

.course-filters button {
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.course-filters button:hover, .course-filters button.active {
    background: var(--slate);
    border-color: var(--slate);
    color: white;
    transform: translateY(-2px);
}

.courses {
    background: var(--paper);
}

.course-browser {
    display: grid;
    grid-template-columns: minmax(0,1.7fr) minmax(280px,.75fr);
    gap: 28px;
    align-items: stretch;
}

.course-cards {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
    padding-bottom: 68px;
}

.course-card {
    position: relative;
    min-height: 500px;
    padding: 0;
    background: var(--slate);
    border-radius: 28px;
    overflow: hidden;
    color: white;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(57,45,39,.09);
    transition: .25s;
}

.course-card:hover, .course-card.selected {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(57,45,39,.17);
}

.course-card.selected {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

.course-card>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    filter: saturate(.78);
}

.course-card:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,rgba(29,33,35,.96),rgba(29,33,35,.02) 68%);
}

.card-number {
    position: absolute;
    z-index: 2;
    top: 23px;
    left: 25px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.course-overlay {
    position: absolute;
    z-index: 2;
    left: 27px;
    right: 27px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
}

.course-overlay small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.course-overlay strong {
    font: 500 28px/1.12 "Manrope",sans-serif;
    margin: 8px 0 18px;
}

.course-overlay em {
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
}

.course-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.course-controls button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--slate);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: .2s;
}

.course-controls button:hover {
    background: var(--coral);
    transform: scale(1.06);
}

.course-controls span {
    font-size: 10px;
    letter-spacing: .15em;
    color: var(--muted);
}

.course-detail {
    position: relative;
    min-height: 500px;
    border-radius: 28px;
    background: var(--blush);
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: detailIn .3s ease;
}

.course-detail:before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(37,40,42,.14);
    border-radius: 20px;
    pointer-events: none;
}

.detail-number {
    position: absolute;
    top: 30px;
    right: 32px;
    font: 400 52px/1 "Manrope",sans-serif;
    color: rgba(37,40,42,.13);
}

.course-detail h3 {
    font: 500 clamp(33px,3vw,48px)/1.05 "Manrope",sans-serif;
    letter-spacing: -.04em;
    margin: 0 0 24px;
}

.course-detail>p:not(.kicker) {
    font-size: 15px;
    line-height: 1.75;
    color: #5f5956;
}

.course-detail>small {
    margin: 10px 0 32px;
    font-weight: 600;
    color: var(--coral);
}

.course-detail .pill {
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

@keyframes detailIn {
    from {
        opacity: .3;
        transform: translateX(8px);
    }
}

/* =========================
   10. TEACHERS
========================= */

.teachers {
    height: 100svh;
    min-height: 720px;
    max-height: 980px;
    background: var(--cream);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(54px,7vh,84px);
    padding-bottom: clamp(54px,7vh,84px);
}

.teachers .schedule-intro {
    width: 100%;
    margin-bottom: clamp(28px,5vh,52px);
}

.teacher-marquee {
    width: calc(100% + 12vw);
    margin-left: -6vw;
    overflow: hidden;
    padding: 18px 0 28px;
    mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}

.teacher-track {
    display: flex;
    width: max-content;
    gap: 22px;
    animation: teacher-scroll 70s linear infinite;
}

.teacher-marquee:hover .teacher-track {
    animation-play-state: paused;
}

.teacher-card {
    width: clamp(230px,16vw,292px);
    flex: 0 0 clamp(230px,16vw,292px);
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(61,47,41,.12);
}

.teacher-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

@keyframes teacher-scroll {
    to {
        transform: translateX(calc(-50% - 11px));
    }
}

/* =========================
   11. BALLA & SNELLA
========================= */

.balla-snella {
    height: 100svh;
    min-height: 720px;
    max-height: 980px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    background: var(--rose-deep);
    color: var(--paper);
    overflow: hidden;
}

.balla-copy {
    padding: clamp(48px,6vw,92px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.balla-copy h2 {
    font-family: "Manrope",sans-serif;
    font-size: clamp(58px,7vw,104px);
    font-weight: 400;
    letter-spacing: -.06em;
    line-height: .95;
    margin: 0;
}

.balla-copy h2 em {
    font-style: normal;
    color: var(--blush);
}

.balla-copy>p:not(.kicker) {
    max-width: 520px;
    line-height: 1.75;
    margin: 30px 0;
    color: rgba(255,250,246,.88);
}

.balla-copy .pill {
    align-self: flex-start;
    margin-top: 16px;
}

.balla-image {
    overflow: hidden;
    min-height: 0;
    height: 100%;
    background: var(--paper);
}

.balla-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* =========================
   12. SCHEDULE
========================= */

.schedule-content.revised {
    grid-template-columns: minmax(340px,.82fr) minmax(520px,1.18fr);
    align-items: start;
}

.schedule-list {
    min-height: 520px;
    padding: 42px 48px;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--line);
}

.schedule-list h3 {
    margin: 0 0 28px;
    font-size: clamp(30px,3vw,48px);
}

.schedule-list .kicker {
    color: var(--coral);
}

.schedule-levels {
    display: grid;
    gap: 30px;
}

.schedule-level h4 {
    margin: 0 0 8px;
    color: var(--rose-deep);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.schedule-rows {
    border-top: 1px solid var(--line);
}

.schedule-row {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 22px;
    align-items: center;
    min-height: 68px;
    border-bottom: 1px solid var(--line);
}

.schedule-day {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    color: var(--coral);
}

.schedule-name {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

.schedule-row strong {
    font: 500 clamp(18px,2vw,26px)/1 "Manrope",sans-serif;
    white-space: nowrap;
}

.schedule {
    background: var(--paper);
    min-height: min(760px,100vh);
    display: block;
    padding-top: clamp(58px,7vh,90px);
}

.schedule-intro {
    max-width: 1180px;
    margin: 0 auto 44px;
}

.schedule-intro h2 {
    margin-bottom: 14px;
}

.schedule-intro>p:last-child {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.65;
}

.schedule-content {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px,.72fr) minmax(520px,1.28fr);
    gap: clamp(44px,6vw,92px);
    align-items: start;
}

.schedule-summary {
    background: var(--cream);
    color: var(--ink);
    border-radius: 26px;
    padding: 36px;
    min-height: 310px;
    display: flex;
    flex-direction: column;
}

.schedule-summary .kicker {
    color: var(--coral);
}

.schedule-summary h3 {
    font: 500 clamp(30px,3vw,44px)/1.08 "Manrope",sans-serif;
    letter-spacing: -.04em;
    margin: 8px 0 28px;
}

.schedule-summary .pill {
    align-self: flex-start;
    margin-top: auto;
    background: var(--rose);
    color: var(--ink);
}

.schedule-picker>.kicker {
    margin-bottom: 16px;
}

.schedule-buttons {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.schedule-buttons button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 16px;
    min-height: 70px;
    padding: 14px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .2s ease;
    cursor: pointer;
}

.schedule-buttons button span {
    font-weight: 700;
}

.schedule-buttons button small {
    color: var(--muted);
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .08em;
}

.schedule-buttons button:hover, .schedule-buttons button.active {
    background: var(--rose);
    border-color: var(--rose);
    transform: translateY(-2px);
}

.planning-download {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    border-bottom: 1px solid var(--ink);
    padding: 10px 0;
    font-weight: 700;
    font-size: 13px;
}

.planning-download span {
    font-size: 18px;
}

/* =========================
   13. FOOTER
========================= */

footer {
    min-height: 230px;
    background: var(--rose);
    padding: 38px clamp(34px,6vw,96px) 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px 40px;
}

footer h2 {
    font-size: clamp(38px,4vw,58px);
}

.footer-brand .kicker {
    margin-bottom: 10px;
}

.footer-socials {
    justify-self: end;
}

.footer-socials a {
    width: 36px;
    height: 36px;
}

.footer-bottom {
    grid-column: 1/-1;
    border-top: 1px solid rgba(38,39,41,.25);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-note, .site-credit {
    margin: 0;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-credit a {
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* =========================
   14. RESPONSIVE / ACCESSIBILITY
========================= */

@media (max-width:1080px) {
    .course-browser {
        grid-template-columns: minmax(0,1.4fr) minmax(260px,.8fr);
    }

    .course-card {
        min-height: 460px;
    }

    .course-detail {
        min-height: 460px;
        padding: 40px 30px;
    }
}

@media (max-width:1050px) {
    .balla-snella {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-content.revised {
        grid-template-columns: 1fr;
    }

    .schedule-list {
        min-height: auto;
    }
}

@media (max-width:900px) {
    main {
        margin: 0;
    }

    .trial {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-block: 34px;
    }

    .trial .pill {
        justify-self: start;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 72px 30px 60px;
    }

    .hero h1 {
        white-space: normal;
    }

    .hero-gallery {
        min-height: 570px;
    }

    .gallery-track {
        margin-left: 30px;
    }

    .about {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .about-image {
        height: 540px;
    }

    .course-browser {
        grid-template-columns: 1fr;
    }

    .course-detail {
        min-height: 400px;
    }

    .schedule-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .schedule-summary {
        min-height: 280px;
    }

    .teachers {
        height: auto;
        min-height: 0;
        max-height: none;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .balla-snella {
        height: auto;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width:720px) {
    .teacher-marquee {
        width: 100%;
        margin: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        mask-image: none;
        padding-bottom: 18px;
    }

    .teacher-track {
        animation: none;
        gap: 14px;
    }

    .teacher-card {
        width: 76vw;
        flex-basis: 76vw;
        scroll-snap-align: center;
    }

    .balla-snella {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .balla-copy {
        padding: 64px 22px;
    }

    .balla-image {
        min-height: 470px;
    }

    .schedule-content.revised {
        display: flex;
        flex-direction: column;
    }

    .schedule-picker {
        width: 100%;
    }

    .schedule-list {
        width: 100%;
        padding: 34px 24px;
    }

    .schedule-row {
        grid-template-columns: 42px minmax(0,1fr) auto;
        gap: 10px;
        min-height: 64px;
    }

    .schedule-name {
        font-size: 12px;
    }

    .schedule-row strong {
        font-size: 17px;
    }

    .schedule-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width:600px) {
    .trial {
        padding: 30px 22px;
    }

    .trial h2 {
        font-size: 35px;
    }

    .trial>p {
        margin: 0;
    }

    .trial .kicker {
        margin-bottom: 12px;
    }

    .hero-copy {
        padding: 56px 22px 50px;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-socials {
        right: 18px;
        top: 18px;
        gap: 7px;
    }

    .hero-socials a {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .section {
        padding: 66px 22px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 36px;
    }

    .course-filters {
        margin-top: -8px;
        margin-bottom: 28px;
        gap: 8px;
    }

    .course-filters button {
        min-height: 44px;
        padding-inline: 16px;
        font-size: 12px;
    }

    .section-heading h2, .schedule h2 {
        font-size: 44px;
    }

    .course-cards {
        grid-template-columns: 1fr;
    }

    .course-card {
        min-height: 440px;
    }

    .course-card:nth-of-type(2) {
        display: none;
    }

    .course-detail {
        min-height: auto;
        padding: 64px 29px 38px;
    }

    .course-detail h3 {
        font-size: 37px;
    }

    .schedule {
        min-height: auto;
        padding-top: 56px;
    }

    .schedule-intro {
        margin-bottom: 28px;
    }

    .schedule-intro h2 {
        font-size: 42px;
        line-height: 1.02;
    }

    .schedule-content {
        gap: 24px;
    }

    .schedule-summary {
        min-height: 270px;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .schedule-buttons {
        grid-template-columns: 1fr;
    }

    .schedule-buttons button {
        min-height: 62px;
    }

    .planning-download {
        width: 100%;
        justify-content: space-between;
    }

    .about-image {
        height: 420px;
    }

    .about-copy {
        padding: 64px 22px;
    }

    .about h2 {
        font-size: 45px;
    }

    footer {
        padding: 32px 22px 20px;
        min-height: auto;
        grid-template-columns: 1fr;
    }

    footer h2 {
        font-size: 40px;
    }

    .footer-socials {
        justify-self: start;
    }

    .footer-bottom {
        display: grid;
        gap: 10px;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .course-detail,
    .teacher-track {
        animation: none;
    }

    .teacher-marquee {
        overflow-x: auto;
    }
}