:root {
    --global-color-primary: #C8282A;
    --global-color-primary-light: #ff6a5e;
    --global-color-secondary: #000000;
    --global-color-text: #000;
    --global-color-soft: #333333;
    --global-color-muted: #9a9a9a;
    --global-color-pink: #e66a95;
    --global-color-accent: #61ce70;
}

*, *:before, *:after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: clip;
    color: var(--global-color-text);
    background: #FFFFFF;
    font-family: Urbanist, sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 24px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--global-color-primary);
    transition: color .3s ease;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--global-color-primary);
    outline-offset: 2px;
}

p {
    margin: 0 0 14px;
    text-wrap: pretty;
}

b, strong {
    font-weight: 800;
}

h1, h2, h3 {
    margin-top: 0;
    text-wrap: balance;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.light {
    font-weight: 300;
}

/* striscia nera */
.top-strip {
    background: #000;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
}

.top-strip__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 19px;
    max-width: 1400px;
    min-height: 38px;
    margin: 0 auto;
    padding: 0 10px;
}

.top-strip__group {
    display: flex;
    gap: 19px;
}

.top-strip a {
    color: #fff;
    text-decoration: none;
}

.top-strip a:hover {
    color: var(--global-color-primary-light);
}

/* fascia bianca */
.head-band {
    position: relative;
    background: #fff;
}

.head-band__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    min-height: 120px;
    margin: 0 auto;
    padding: 0 10px;
}

.wordmark img {
    width: 152px;
}

.head-band__links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.head-band__links a {
    display: block;
    padding: 6px 12px;
    border-radius: 3px;
    color: var(--global-color-primary);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .3s ease, color .3s ease;
}

.head-band__links a:hover, .head-band__links .chip-active, .head-band__links a[aria-current] {
    color: #fff;
    background: var(--global-color-primary);
}

.head-band__toggle {
    display: none;
}

/* hero */
.hero-collage {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1400px;
    min-height: 549px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-collage__tiles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
}

.hero-collage__tiles img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-collage:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
}

.hero-collage__text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: 30px;
    padding: 60px 20px 60px 0;
}

.hero-collage h1 {
    margin-bottom: 3.125rem;
    color: var(--global-color-primary-light);
    font-size: clamp(32px, 3.4vw, 40px);
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.hero-collage__line {
    color: #fff;
    font-size: 15px;
}

/* pulsanti */
.btn-red, .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 15px;
    font-style: italic;
    font-weight: 800;
    line-height: 22px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s ease, background .3s ease;
}

.btn-red {
    color: #fff;
    background: var(--global-color-primary);
}

.btn-red:hover {
    color: #000;
}

.btn-outline {
    padding: 9px 21px;
    border: 3px solid var(--global-color-primary);
    border-radius: 4px;
    color: var(--global-color-primary);
    background: #fff;
}

.btn-outline:hover {
    color: #fff;
    background: var(--global-color-primary);
}

.btn-red--small, .btn-outline--small {
    font-size: 13px;
}

/* intestazioni di sezione */
.title-duo, .title-red {
    margin-bottom: 20px;
    font-size: 27px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    text-transform: uppercase;
}

.title-duo__red, .title-red {
    color: var(--global-color-primary);
}

.title-duo--white {
    color: #fff;
}

.title-duo--white .title-duo__red {
    color: var(--global-color-primary-light);
}

.sub-red {
    margin: 22px 0 8px;
    color: var(--global-color-primary);
    font-size: 26px;
    font-weight: 800;
    line-height: 30px;
}

/* intro */
.intro-pair {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 1140px;
    margin: 84px auto 99px;
    padding: 0 10px;
}

.intro-pair__text {
    flex: 1;
    font-weight: 300;
}

.intro-pair__box {
    flex: 0 0 300px;
    margin: 56px 0 0;
    padding: 24px 26px;
    border-radius: 3px;
    color: #fff;
    background: var(--global-color-primary);
    list-style: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.intro-pair__box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    font-weight: 800;
}

.intro-pair__box li:last-child {
    border-bottom: 0;
}

/* foto e testo */
.split-art {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 99px;
    padding-right: 10px;
}

.split-art__media {
    flex: 0 0 44%;
}

.split-art__media img {
    width: 100%;
    aspect-ratio: 9 / 7.4;
    object-fit: cover;
    border-radius: 0 3px 3px 0;
}

.split-art__copy {
    flex: 1;
    max-width: 620px;
}

.split-art__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.split-art--mirror {
    flex-direction: row-reverse;
    padding-right: 0;
    padding-left: 10px;
}

.split-art--mirror .split-art__media img {
    border-radius: 3px 0 0 3px;
}

/* schede rosse */
.posts-block {
    max-width: 1240px;
    margin: 0 auto 6.2rem;
    padding: 0 50px;
}

.posts-block__note {
    max-width: 680px;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 30px;
}

.posts-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

.post-card {
    overflow: hidden;
    border-radius: 3px;
    background: var(--global-color-primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
    transition: all .25s;
}

.post-card:hover {
    box-shadow: 0 0 18px rgba(0, 0, 0, .25);
}

.post-card__img {
    position: relative;
    padding-bottom: 66%;
}

.post-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    padding: 18px 20px 20px;
    color: #fff;
}

.post-card__body h3 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 21px;
}

.post-card__body p {
    margin: 0;
    font-size: 15px;
    line-height: 22px;
}

/* domande e risposte */
.qa-block {
    max-width: 1140px;
    margin: 0 auto 5.25rem;
    padding: 0 10px;
}

.qa-block__lead {
    max-width: 680px;
}

.qa-list {
    display: grid;
    gap: 26px;
    margin: 30px 0 0;
}

.qa-list--two {
    grid-template-columns: 1fr 1fr;
    gap: 26px 50px;
}

.qa-list dt {
    margin-bottom: 4px;
    color: var(--global-color-primary);
    font-size: 21px;
    font-weight: 800;
    line-height: 26px;
}

.qa-list dt em {
    margin-left: 6px;
    color: var(--global-color-soft);
    font-size: 14px;
    font-weight: 400;
}

.qa-list dd {
    margin: 0;
    font-weight: 300;
}

/* cicli e passi */
.calendar-block {
    max-width: 1140px;
    margin: 0 auto 7.5rem;
    padding: 0 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0 40px;
}

.calendar-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 24px 22px;
    border-radius: 3px;
    border-top: 6px solid var(--global-color-primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.calendar-card__month {
    color: var(--global-color-primary);
    font-size: 26px;
    font-weight: 800;
    line-height: 32px;
    text-transform: uppercase;
}

.calendar-card small {
    color: var(--global-color-soft);
    font-size: 14px;
}

.calendar-steps ol {
    margin: 0 0 24px;
    padding: 0 0 0 22px;
    font-weight: 300;
}

.calendar-steps li {
    padding: 6px 0;
}

.calendar-steps li b {
    color: var(--global-color-primary);
}

/* banda nera */
.limits-band {
    max-width: 1400px;
    margin: 0 auto 4.25rem;
    padding: 50px 60px;
    color: #fff;
    background: #000;
}

.limits-band__list {
    columns: 2;
    column-gap: 60px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 300;
}

.limits-band__list li {
    margin-bottom: 14px;
    break-inside: avoid;
}

.limits-band__list b {
    display: block;
    color: var(--global-color-primary-light);
}

.qa-block--last {
    margin-bottom: 3.5rem;
}

/* piede */
.foot-black {
    padding: 50px 10px 20px;
    color: #fff;
    background: #000000;
    font-size: 14px;
    line-height: 22px;
}

.foot-black__cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.foot-black__cols img {
    width: 140px;
    margin-bottom: 14px;
}

.foot-black a {
    color: #fff;
}

.foot-black__head {
    margin-bottom: 10px;
    font-family: Roboto, Urbanist, sans-serif;
    font-weight: 600;
}

.foot-black__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-black__links a {
    display: inline-block;
    padding: 3px 0;
    color: var(--global-color-muted);
    text-decoration: none;
}

.foot-black__links a:hover {
    color: #fff;
}

.foot-black__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.foot-black__tags a {
    padding: 4px 10px;
    border-radius: 3px;
    color: #000;
    background: #fff;
    font-size: 13px;
    text-decoration: none;
}

.foot-black__copy {
    max-width: 1140px;
    margin: 40px auto 0;
    color: var(--global-color-pink);
    font-size: 13px;
}

.foot-black__cookie {
    padding: 4px 0;
    border: 0;
    color: var(--global-color-pink);
    background: none;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-card {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    max-width: 420px;
    padding: 20px 22px;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    line-height: 21px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
}

.cookie-card[hidden] {
    display: none;
}

.cookie-card__check {
    display: block;
    margin-bottom: 12px;
}

.cookie-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* pagine del corso */
.inner-head {
    position: relative;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 70px 30px 60px;
    color: #fff;
    background: #000;
}

.inner-head h1 {
    margin-bottom: 18px;
    color: var(--global-color-primary-light);
    font-size: 40px;
    font-style: normal;
    font-weight: 800;
    line-height: 42px;
    text-transform: uppercase;
}

.inner-kicker {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.inner-lead {
    max-width: 720px;
    font-size: 17px;
    font-weight: 300;
    line-height: 26px;
}

.inner-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
}

.inner-section {
    margin-bottom: 70px;
    font-weight: 300;
}

.inner-section h2 {
    color: var(--global-color-primary);
    font-size: 27px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    text-transform: uppercase;
}

.inner-row {
    display: flex;
    gap: 50px;
}

.inner-row--mid {
    align-items: center;
}

.inner-col {
    flex: 1;
    min-width: 0;
}

.inner-photo {
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.inner-black {
    padding: 50px 0;
    color: #fff;
    background: #000;
}

.inner-black h2, .inner-black a:not(.btn-red):not(.btn-outline) {
    color: var(--global-color-primary-light);
}

.inner-figure {
    margin: 30px 0;
}

.inner-figure img {
    width: 100%;
    border-radius: 3px;
}

.inner-figure figcaption {
    margin-top: 8px;
    color: var(--global-color-soft);
    font-size: 14px;
}

.legal-text {
    max-width: 860px;
}

.legal-text h3 {
    margin: 28px 0 6px;
    color: var(--global-color-primary);
    font-size: 19px;
    font-weight: 800;
}

.enrol-box {
    max-width: 720px;
    margin-bottom: 40px;
    padding: 30px;
    border-top: 6px solid var(--global-color-primary);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.enrol-marks {
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.enrol-marks li {
    flex: 1;
    padding: 6px 10px;
    border-radius: 3px;
    color: var(--global-color-soft);
    background: #f1f1f1;
    font-size: 14px;
    font-weight: 600;
}

.enrol-marks li.is-reached {
    color: #fff;
    background: var(--global-color-primary);
}

.enrol-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.enrol-form legend {
    margin-bottom: 8px;
    color: var(--global-color-primary);
    font-size: 24px;
    font-weight: 800;
}

.enrol-label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

.enrol-form select, .enrol-form input[type=text], .enrol-form input[type=email] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
}

.enrol-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.enrol-consent {
    display: block;
    margin-top: 16px;
    font-size: 15px;
}

.enrol-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.enrol-hidden {
    position: absolute;
    left: -9999px;
}

.enrol-status {
    margin-top: 12px;
    color: var(--global-color-primary);
    font-weight: 800;
}

.enrol-next {
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .head-band__links a {
        padding: 6px 8px;
        font-size: 12px;
    }
    .posts-grid--four {
        grid-template-columns: repeat(2, 1fr);
    }
    .split-art {
        gap: 36px;
    }
    .posts-block {
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .top-strip__mail {
        display: none;
    }
    .head-band__inner {
        min-height: 80px;
    }
    .wordmark img {
        width: 120px;
    }
    .head-band__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 10px;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .toggle-line {
        display: block;
        height: 2px;
        background: var(--global-color-primary);
    }
    .head-band__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
    }
    .head-band__links.is-open {
        display: flex;
    }
    .head-band__links a {
        padding: 10px 12px;
        font-size: 15px;
    }
    .hero-collage__tiles {
        grid-template-columns: 1fr;
    }
    .hero-collage__tiles img + img {
        display: none;
    }
    .hero-collage__text {
        margin-left: 16px;
    }
    .hero-collage h1 {
        font-size: 32px;
        line-height: 34px;
    }
    .intro-pair, .split-art, .split-art--mirror, .inner-row {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    .intro-pair {
        margin: 50px auto 60px;
    }
    .intro-pair__box {
        flex-basis: auto;
        margin-top: 0;
    }
    .split-art, .split-art--mirror {
        padding: 0 10px;
        margin-bottom: 60px;
    }
    .split-art__media img {
        border-radius: 3px;
    }
    .posts-block {
        padding: 0 10px;
        margin-bottom: 60px;
    }
    .posts-grid, .posts-grid--four, .calendar-grid, .qa-list--two, .foot-black__cols {
        grid-template-columns: 1fr;
    }
    .limits-band {
        padding: 36px 16px;
    }
    .limits-band__list {
        columns: 1;
    }
    .foot-black {
        text-align: center;
    }
    .foot-black__cols img {
        margin: 0 auto 14px;
    }
    .foot-black__tags {
        justify-content: center;
    }
    .cookie-card {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    .inner-head {
        padding: 50px 16px 40px;
    }
    .inner-head h1 {
        font-size: 30px;
        line-height: 32px;
    }
    .enrol-box {
        padding: 22px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after {
        transition: none !important;
    }
}
