.hero-product-module {
    --product-hero-height: 85vh;

    background-color: var(--secondary-100);
    padding-top: var(--spacer-lg);
    position: relative;
    overflow-x: clip;
}

@media (min-width: 992px) {
    .hero-product-module {
        min-height: var(--product-hero-height);
    }
}

.hero-product-module__content {
    margin-bottom: var(--spacer-md);
    padding: 0 1rem;
    position: relative;
}

@media (min-width: 992px) {
    .hero-product-module__content {
        width: 30%;    
        background-color: var(--bu-castellini-treatment);
        position: absolute;
        bottom: 0;
        right: max(1rem,var(--horizontal-lateral-difference));
        padding: var(--spacer-lg);
        border-top-left-radius: var(--radius-border-rounded---m);
        border-top-right-radius: var(--radius-border-rounded---m); 
        margin-bottom: 0;
        z-index: 1;  
    }
}

@media (max-width: 991px) {
    .hero-product-module__content .btn-icon--white {
        color: var(--bu-castellini-treatment);
    }
    .hero-product-module__content .btn-icon--castellini .btn-icon__icon {
        background-color: var(--bu-castellini-treatment);
    }

    .hero-product-module__content .btn-icon--white .btn-icon__icon .icon {
        --color1: var(--primary-50)!important;
    }
}

.hero-product-module__inner {
    position: relative;
    padding-left: var(--spacer-lg);
    overflow-x: visible;
}

.hero-product-module__inner .swiper {
    overflow: visible;
    margin-left: calc(var(--spacer-lg) * -1);
    padding-left: var(--spacer-lg);
    width: calc(100% + var(--spacer-lg));
}

.hero-product-module__inner .swiper-wrapper {
    overflow: visible;
}

.hero-product-module__visual {
    height: calc(var(--baseline) * 50);
    width: 100%;
    position: relative;
    z-index: 0;
}

@media (min-width: 992px) {
    .hero-product-module__visual {
        height: var(--product-hero-height);
    }
}

.hero-product-module__swiper {
    height: 100%;
}

.hero-product-module__swiper-slide {
    border-top-left-radius: var(--radius-border-rounded---m);
    border-top-right-radius: var(--radius-border-rounded---m);
    overflow: clip;
    position: relative;
}

.hero-product-module__swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
}

.hero-product-module__tag-text {
    color: var(--bu-castellini-treatment);
    display: flex;
    align-items: center;
    gap: var(--spacer-xs);
    font-size: var(--step--2);
    font-weight: 700;
    margin-bottom: var(--spacer-sm);
}

@media (min-width: 992px) {
    .hero-product-module__tag-text {
        color: var(--primary-50);
    }
}

.hero-product-module__tag-text:before {
    content: "";
    aspect-ratio: 1 / 1;
    background: var(--bu-castellini-treatment);
    border-radius: var(--radius-border-rounded---s);
    display: inline-block;
    height: var(--spacer-xs);
    width: var(--spacer-xs);
}

@media (min-width: 992px) {
    .hero-product-module__tag-text:before {
        background: var(--primary-50);
    }

    .hero-product-module__body-content,
    .hero-product-module__heading {
        color: var(--primary-50);
    }
}

/* Safari mobile */
@supports (-webkit-overflow-scrolling: touch) {
  @media (max-width: 768px) {
    .hero-product-module,
    .hero-product-module__swiper-slide {
      overflow: hidden;
    }
    .hero-product-module__swiper-slide img {
      object-position: bottom;
    }
  }
}