.c-fira-nadal-home {
    box-sizing: border-box;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(12px, 2.5vw, 40px);
    width: 100%;
    min-height: clamp(500px, 52vw, 760px);
    padding: clamp(100px, 12vw, 150px) clamp(20px, 5vw, 84px) 64px;
    overflow: hidden;
    isolation: isolate;
    background-color: #493d42;
    background-image:
        linear-gradient(90deg,
            rgba(28, 27, 31, .42) 0%,
            rgba(28, 27, 31, .42) 30%,
            rgba(28, 27, 31, .88) 50%,
            rgba(28, 27, 31, .42) 70%,
            rgba(28, 27, 31, .42) 100%),
        linear-gradient(rgba(28, 27, 31, .30), rgba(28, 27, 31, .30));
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
}

.c-fira-nadal-home::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: url("img/fira-nadal/fira-fons2.png");
    background-position: center;
    background-repeat: repeat;
    background-size: 500px 500px;
    opacity: .05;
    pointer-events: none;
}

.c-fira-nadal-home__title {
    font-family: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
}

.c-fira-nadal-home__figure,
.c-fira-nadal-home__message,
.c-fira-nadal-home__basket {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.c-fira-nadal-home__figure img,
.c-fira-nadal-home__basket img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.c-fira-nadal-home__figure img {
    max-height: min(62vh, 590px);
}

.c-fira-nadal-home__basket img {
    width: 60%;
    max-height: min(45vh, 430px);
}

.c-fira-nadal-home__message {
    flex-direction: column;
    gap: clamp(14px, 2vw, 28px);
}

.c-fira-nadal-home__title,
.c-fira-nadal-home__dates {
    margin: 0;
    text-align: center;
    color: #f0dfb0;
    text-shadow: 0 2px 0 rgba(32, 23, 24, .16);
}

.c-fira-nadal-home__title {
    width: 100%;
    font-size: clamp(3.5rem, 8vw, 7.6rem);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.065em;
    color: #f1dfb1;
}

.c-fira-nadal-home__title > span {
    animation: fira-nadal-title-glow 4.6s ease-in-out infinite;
}

@keyframes fira-nadal-title-glow {
    0%, 100% {
        color: #f1dfb1;
        text-shadow: 0 2px 0 rgba(32, 23, 24, .16), 0 0 4px rgba(255, 213, 112, .14);
    }
    50% {
        color: #ffe29a;
        text-shadow: 0 2px 0 rgba(32, 23, 24, .12), 0 0 8px rgba(255, 213, 112, .52), 0 0 18px rgba(255, 192, 72, .32), 0 0 30px rgba(255, 170, 55, .16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-fira-nadal-home__title > span {
        animation: none;
    }
}

.c-fira-nadal-home__title small {
    display: block;
    margin-top: .32em;
    color: #ef6c59;
    font-size: .37em;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .005em;
}

.c-fira-nadal-home__dates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-family: "Milonga", "Bodoni MT", Didot, "Times New Roman", serif;
    color: #ff6254;
    line-height: .95;
}

.c-fira-nadal-home__dates strong {
    font-size: clamp(1.5rem, 3vw, 2.7rem);
    font-weight: 500;
    letter-spacing: -.035em;
}

.c-fira-nadal-home__dates span {
    font-size: clamp(1.25rem, 2.4vw, 2.1rem);
    letter-spacing: -.045em;
}

.c-fira-nadal-home__dates small {
    margin-top: 8px;
    color: #eed9ac;
    font-family: Arial, sans-serif;
    font-size: clamp(.65rem, 1.1vw, .95rem);
    line-height: 1.2;
    letter-spacing: .025em;
}

.c-fira-nadal-home__download {
    margin-top: 12px;
    padding: .55rem 1rem;
    border-color: #ff6254;
    border-radius: .375rem;
    background-color: #ff6254;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: clamp(.78rem, 1.1vw, .95rem);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease;
}

.c-fira-nadal-home__download:hover,
.c-fira-nadal-home__download:focus-visible {
    border-color: #e94d42;
    background-color: #e94d42;
    color: #fff;
}

.c-fira-nadal-home__title small {
    font-family: "Milonga", "Bodoni MT", Didot, "Times New Roman", serif;
}

.c-fira-nadal-home__wave {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -1px;
    left: 0;
    height: clamp(30px, 4vw, 56px);
    pointer-events: none;
}

.c-fira-nadal-home__wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.c-fira-nadal-home__wave path {
    fill: #fff;
}

@media (max-width: 700px) {
    .c-fira-nadal-home {
        grid-template-columns: minmax(0, .72fr) minmax(0, 1.5fr) minmax(0, .72fr);
        gap: 5px;
        min-height: 500px;
        padding: 102px 16px 58px;
        background-image:
            linear-gradient(90deg,
                rgba(28, 27, 31, .50) 0%,
                rgba(28, 27, 31, .62) 30%,
                rgba(28, 27, 31, .92) 50%,
                rgba(28, 27, 31, .62) 70%,
                rgba(28, 27, 31, .50) 100%),
            linear-gradient(rgba(28, 27, 31, .30), rgba(28, 27, 31, .30));
    }

    .c-fira-nadal-home__figure img {
        max-height: 34vh;
    }

    .c-fira-nadal-home__basket img {
        max-height: 25vh;
    }

    .c-fira-nadal-home__message {
        gap: 14px;
    }

    .c-fira-nadal-home__dates {
        width: 100%;
    }

    .c-fira-nadal-home__title {
        font-size: clamp(2.4rem, 10.4vw, 4.5rem);
    }

    .c-fira-nadal-home__dates strong {
        font-size: clamp(1.45rem, 5.8vw, 2.5rem);
    }

    .c-fira-nadal-home__dates span {
        font-size: clamp(1.2rem, 4.8vw, 2.2rem);
    }

    .c-fira-nadal-home__download {
        margin-top: 9px;
        padding: .5rem .65rem;
        font-size: .73rem;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .c-fira-nadal-home {
        min-height: 460px;
        padding-inline: 10px;
    }
}
