.component-suite:has(.vitis-maison-hero),
.component-fin:has(.vitis-maison-hero) {
    container-type: inline-size;
    overflow-x: clip;
}

.vitis-maison-hero {
    --vitis-maison-hero-max-height: 720px;
    --vitis-maison-hero-text-max-width: 970px;
    --vitis-maison-hero-overlay: 0.24;
    --vitis-maison-hero-position: center;
    position: relative;
    display: grid;
    width: 100cqw;
    height: min(var(--vitis-maison-hero-max-height), clamp(22rem, 58vw, 56rem));
    margin-inline: calc(50% - 50cqw);
    overflow: hidden;
    isolation: isolate;
    background: #62663D;
}

.vitis-maison-hero__image,
.vitis-maison-hero__overlay,
.vitis-maison-hero__content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vitis-maison-hero__image {
    z-index: 0;
    display: block;
    object-fit: cover;
    object-position: center var(--vitis-maison-hero-position);
}

.vitis-maison-hero__overlay {
    z-index: 1;
    background: rgb(0 0 0 / var(--vitis-maison-hero-overlay));
    pointer-events: none;
}

.vitis-maison-hero__content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 4rem);
    color: #fff;
    text-align: center;
}

.vitis-maison-hero__title,
.vitis-maison-hero__subtitle {
    margin: 0;
    color: inherit;
    text-wrap: balance;
}

.vitis-maison-hero__text {
    width: 100%;
    max-width: var(--vitis-maison-hero-text-max-width);
}

.vitis-maison-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 1.7rem + 5.2vw, 6.25rem);
    font-weight: 400;
    line-height: 0.98;
}

.vitis-maison-hero__subtitle {
    margin-top: clamp(0.8rem, 0.45rem + 1.3vw, 1.75rem);
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3.125rem);
    font-weight: 400;
    line-height: 1.15;
}

.vitis-maison-hero__button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    margin-top: clamp(1.5rem, 1.1rem + 1.3vw, 2.5rem);
    padding: 0.75rem 1.6rem;
    border: 1px solid #FFFFFF;
    border-radius: 0;
    background: transparent;
    color: #FFFFFF;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 280ms ease,
        color 280ms ease,
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vitis-maison-hero__button:hover {
    background: #FFFFFF;
    color: #62663D;
    transform: translateY(-0.15rem);
}

.vitis-maison-hero__button:focus-visible {
    background: #FFFFFF;
    color: #62663D;
    outline: 2px solid #FFFFFF;
    outline-offset: 0.3rem;
}

.vitis-maison-hero.is-enhanced .vitis-maison-hero__title,
.vitis-maison-hero.is-enhanced .vitis-maison-hero__subtitle,
.vitis-maison-hero.is-enhanced .vitis-maison-hero__button {
    opacity: 0;
    filter: blur(0.4rem);
    transform: translateY(1.4rem);
    transition:
        opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 950ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 950ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 280ms ease,
        color 280ms ease;
}

.vitis-maison-hero.is-enhanced .vitis-maison-hero__subtitle {
    transition-delay: 120ms;
}

.vitis-maison-hero.is-enhanced.is-visible .vitis-maison-hero__title,
.vitis-maison-hero.is-enhanced.is-visible .vitis-maison-hero__subtitle,
.vitis-maison-hero.is-enhanced.is-visible .vitis-maison-hero__button {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

@supports not (width: 1cqw) {
    .vitis-maison-hero {
        width: 100vw;
        margin-inline: calc(50% - 50vw);
    }
}

@media (max-width: 575.98px) {
    .vitis-maison-hero {
        height: min(var(--vitis-maison-hero-max-height), clamp(19rem, 100vw, 26rem));
    }

    .vitis-maison-hero__title {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .vitis-maison-hero__subtitle {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vitis-maison-hero.is-enhanced .vitis-maison-hero__title,
    .vitis-maison-hero.is-enhanced .vitis-maison-hero__subtitle,
    .vitis-maison-hero.is-enhanced .vitis-maison-hero__button {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }

    .vitis-maison-hero__button:hover {
        transform: none;
    }
}
