:root {
    --red: #e30613;
    --cream: #fdf8f2;
    --step-yellow: #f4c400;
    --text: #1a1a1a;
    --container: 72rem;
    --step-number-size: 3.75rem;
    --step-number-size-sm: 3rem;
    --step-number-size-xs: 2.75rem;
    --step-side-left: 6rem;
    --step-side-right: 10rem;
    --step-1-visual-right: 10rem;
    --step-photo-size: 10.5rem;
    --step-photo-overhang: 5.75rem;
    --step-photo-gap: 3.5rem;
    --step-photo-buffer: 0.75rem;
    --step-photo-below: calc(var(--step-photo-size) - var(--step-photo-overhang) + var(--step-photo-buffer));
    --step-stack-gap: 4.75rem;
    --card-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.15);
    --font-body: "Neue Kabel", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
}

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

a {
    color: inherit;
}

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

.section-image,
[class$="__inner"] {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}

.section-image {
    display: block;
    line-height: 0;
}

.section-image img {
    width: 100%;
    height: auto;
}

/* Step 1 */
.step-section {
    width: 100%;
    background: #fff;
    overflow: visible;
}

.step-section__inner {
    position: relative;
    padding: 3.5rem 1rem calc(var(--step-photo-below) + var(--step-stack-gap));
    overflow: visible;
}

.step-card__number,
.step-item__number {
    position: absolute;
    z-index: 2;
    width: var(--step-number-size);
    max-width: var(--step-number-size);
    height: auto;
    pointer-events: none;
}

.step-card__number {
    top: 0;
    left: 50%;
    width: var(--step-number-size-sm);
    max-width: var(--step-number-size-sm);
    transform: translate(-50%, -68%);
}

.step-item__number {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-item__number--sm {
    width: var(--step-number-size-xs);
    max-width: var(--step-number-size-xs);
}

.step-card {
    position: relative;
    display: grid;
    gap: 1.5rem;
    padding: 3.25rem 1.25rem calc(var(--step-photo-overhang) + 1.75rem);
    border-radius: 2rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow: visible;
}

.step-card__tart {
    display: none;
}

.step-card__content {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
}

.step-card__title {
    margin: 0 0 1rem;
    font-size: clamp(1.15rem, 3.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--red);
}

.step-card__title-full {
    display: none;
}

.step-card__title-short {
    display: block;
}

.step-card__content p {
    margin: 0 0 0.75rem;
    font-size: clamp(0.88rem, 2.4vw, 1rem);
    font-weight: 400;
    line-height: 1.45;
}

.step-card__content ul {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    font-size: clamp(0.88rem, 2.4vw, 1rem);
    line-height: 1.5;
}

.step-card__content li + li {
    margin-top: 0.35rem;
}

.step-card__content a {
    text-decoration: underline;
}

.step-card__visuals {
    position: absolute;
    left: 50%;
    bottom: calc(-1 * var(--step-photo-overhang));
    z-index: 2;
    width: 88%;
    margin: 0;
    overflow: visible;
    transform: translateX(-50%);
}

.step-card__products {
    width: 100%;
    height: auto;
    max-width: none;
}

/* Steps 2–4 */
.steps-grid-section {
    width: 100%;
    background: #fff;
    overflow: visible;
}

.steps-grid-section__inner {
    display: grid;
    gap: var(--step-stack-gap);
    padding: 1rem 1rem var(--step-photo-gap);
    overflow: visible;
}

.step-item {
    position: relative;
    padding-bottom: var(--step-photo-below);
    overflow: visible;
}

.step-item--desktop-only {
    display: block;
}

.step-item--mobile-only {
    display: none;
}

.step-item__card {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2.75rem 1.25rem calc(var(--step-photo-overhang) + 1.75rem);
    border-radius: 2rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    text-align: center;
    overflow: visible;
}

.step-item__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--red);
}

.step-item__card p {
    margin: 0 0 0.75rem;
    font-size: clamp(0.88rem, 2.4vw, 1rem);
    line-height: 1.45;
}

.step-item__card p:last-of-type {
    margin-bottom: 0;
}

.step-item__mention {
    color: var(--red);
    font-weight: 700;
}

.step-item__tags {
    margin: 0.5rem 0 0;
    font-size: clamp(0.88rem, 2.4vw, 1rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--red);
}

.step-item__photo {
    position: absolute;
    left: 50%;
    bottom: var(--step-photo-buffer);
    z-index: 2;
    width: var(--step-photo-size);
    height: var(--step-photo-size);
    max-width: none;
    max-height: none;
    aspect-ratio: 1;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
}

/* Premi */
.premi-section {
    width: 100%;
    background: #fff;
    overflow: visible;
}

.premi-section__inner {
    padding: calc(var(--step-photo-gap) + 0.5rem) 1rem 2.5rem;
    overflow: visible;
}

.premi-intro {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
    padding: 2rem 1.25rem;
    border-radius: 2rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    text-align: center;
    overflow: visible;
}

.premi-intro__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.15rem, 3.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--red);
}

.premi-intro__text {
    margin: 0;
    max-width: 40rem;
    margin-inline: auto;
    font-size: clamp(0.88rem, 2.4vw, 1.05rem);
    line-height: 1.45;
}

.premi-section__cards {
    display: block;
    line-height: 0;
}

.premi-section__cards img {
    width: 100%;
    height: auto;
}

/* Banner date */
.dates-banner {
    width: 100%;
    background: #fff;
}

.dates-banner__inner {
    padding: 2.75rem 1.5rem;
    text-align: center;
}

.dates-banner__intro {
    margin: 0 0 0.65rem;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    font-weight: 700;
    color: var(--text);
}

.dates-banner__range {
    margin: 0;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--red);
}

/* Be gallery */
.be-section {
    width: 100%;
    background: var(--red);
    overflow: visible;
}

.be-section__title {
    display: block;
    width: min(92%, 36.5rem);
    height: auto;
    margin: 0 auto;
    padding: 1.65rem 1.5rem 1.75rem;
}

.be-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 38vw;
    gap: 0.45rem;
    padding: 0.85rem 0.65rem 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.be-gallery__item {
    position: relative;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2ebe3;
    text-decoration: none;
}

.be-gallery__item img,
.be-gallery__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-message {
    margin: 0;
    padding: 0 1rem 1rem;
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Calendario estrazioni */
.draws-section {
    width: 100%;
    background: #fff;
}

.draws-section__inner {
    padding: 1.5rem 1.5rem 3.5rem;
    overflow: visible;
}

.draws-grid {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.draw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 2rem 1.5rem 1.75rem;
    border: none;
    border-radius: 3rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    text-align: center;
    overflow: visible;
}

.draw-card h3 {
    margin: 0 0 1rem;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1.3;
}

.draw-card p {
    margin: 0 0 0.85rem;
    max-width: 18rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.draw-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.6;
}

.draw-card__note {
    max-width: 16rem;
    font-weight: 400 !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
}

.draw-card__tart {
    position: absolute;
    right: -1.5rem;
    bottom: -1.75rem;
    width: 7.5rem;
    max-width: none;
}

.draws-accordion--mobile {
    display: grid;
    gap: 0.65rem;
}

.draw-accordion {
    border: none;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.draw-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red);
    cursor: pointer;
    list-style: none;
}

.draw-accordion summary::-webkit-details-marker {
    display: none;
}

.draw-accordion summary::after {
    content: "+";
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 2px solid var(--red);
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.draw-accordion[open] summary::after {
    content: "−";
}

.draw-accordion__body {
    padding: 0 1rem 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Brand */
.brand-section {
    width: 100%;
    background: var(--cream);
}

.brand-section__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
    align-items: center;
}

.brand-section__logo {
    display: none;
    width: 5.5rem;
    margin-bottom: 0.75rem;
}

.brand-section__copy {
    text-align: center;
}

.brand-section__copy h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--red);
}

.brand-section__copy p {
    margin: 0;
    max-width: 28rem;
    margin-inline: auto;
    font-size: 0.9rem;
    line-height: 1.55;
}

.brand-section__photo {
    order: -1;
    width: min(100%, 22rem);
    margin-inline: auto;
}

/* Footer */
.site-footer {
    width: 100%;
    background: var(--red);
    color: #fff;
}

.site-footer__inner {
    display: grid;
    gap: 1.5rem;
    padding: 2.25rem 1.5rem 2.75rem;
    justify-items: center;
}

.site-footer__logo {
    width: 8rem;
    margin-inline: auto;
}

.site-footer__legal {
    font-size: 0.68rem;
    line-height: 1.55;
    text-align: center;
}

.site-footer__legal p {
    margin: 0 0 0.75rem;
}

.site-footer__legal a {
    color: #fff;
    text-decoration: underline;
}

.site-footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.site-footer__social img {
    width: 1.35rem;
    height: 1.35rem;
}

@media (min-width: 768px) {
    :root {
        --step-photo-size: 11.5rem;
        --step-photo-overhang: 5.25rem;
        --step-photo-gap: 1rem;
        --step-photo-buffer: 0.25rem;
    }

    .step-section__inner {
        padding: 5rem 2rem 5.5rem;
    }

    .step-card {
        display: block;
        padding: 2.5rem min(23rem, 42%) 3.5rem min(8rem, 14%);
    }

    .step-card__tart {
        display: block;
        position: absolute;
        left: calc(-1 * var(--step-side-left));
        bottom: -3.5rem;
        z-index: 2;
        width: 11rem;
        max-width: none;
    }

    .step-card__content {
        margin-inline: 0;
        max-width: none;
        text-align: left;
    }

    .step-card__title-full {
        display: block;
    }

    .step-card__title-short {
        display: none;
    }

    .step-card__visuals {
        top: 50%;
        right: calc(-1 * var(--step-1-visual-right));
        bottom: auto;
        left: auto;
        width: min(44rem, 52%);
        transform: translateY(-50%);
    }

    .steps-grid-section__inner {
        display: flex;
        gap: 1.5rem;
        align-items: stretch;
        padding: 1.5rem 2rem calc(var(--step-photo-below) + 0.25rem);
    }

    .step-item {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        min-width: 0;
        padding-bottom: var(--step-photo-below);
    }

    .step-item--desktop-only {
        display: flex;
    }

    .step-item--mobile-only {
        display: none;
    }

    .step-item__card {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        padding: 2.85rem 1.35rem calc(var(--step-photo-overhang) + 1rem);
    }

    .premi-section__inner {
        padding: 0.75rem 2rem 3rem;
    }

    .premi-intro {
        margin-bottom: 3rem;
        padding: 2.25rem 2.5rem;
        border-radius: 2.5rem;
    }

    .dates-banner__inner {
        padding-inline: 2rem;
    }

    .be-section__title {
        padding: 1.85rem 2rem 2rem;
    }

    .be-gallery {
        grid-auto-flow: row;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 1rem 2rem 1.75rem;
        overflow: visible;
    }

    .draws-section__inner {
        padding: 2.5rem 2rem 4rem;
    }

    .draw-card {
        padding: 2.25rem 1.75rem 2rem;
        border-radius: 3.5rem;
    }

    .draw-card p,
    .draw-card ul,
    .draw-card__note {
        max-width: 19rem;
        margin-inline: auto;
    }

    .draw-card__tart {
        right: -1.75rem;
        bottom: -2.5rem;
        width: 9rem;
    }

    .draws-grid--desktop {
        display: grid;
    }

    .draws-accordion--mobile {
        display: none;
    }

    .brand-section__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-inline: 2.5rem;
    }

    .brand-section__logo {
        display: block;
    }

    .brand-section__copy {
        justify-self: start;
        text-align: left;
    }

    .brand-section__copy p {
        margin-inline: 0;
    }

    .brand-section__photo {
        order: 0;
        justify-self: end;
        margin-inline: 0;
    }

    .site-footer__inner {
        grid-template-columns: 7rem 1fr auto;
        align-items: center;
        justify-items: start;
        gap: 2rem;
    }

    .site-footer__logo {
        width: 5.5rem;
        margin-inline: 0;
    }

    .site-footer__legal {
        text-align: left;
    }

    .site-footer__social {
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .dates-banner__inner {
        padding-block: 3rem;
    }
}
