.hero-home-block-module-outer {
    --hero-height: 85vh;
    --hero-thumbs-height: calc(var(--baseline) * 40);
    --hero-thumbs-width: 25vw;
    --global-icon-clr: var(--white);

    border-radius: var(--radius-border-rounded---s);
    margin: 0 var(--spacer-sm) var(--spacer-sm) var(--spacer-sm);
    height: var(--hero-height);
    overflow: hidden;
    position: relative;
    max-width: 100%;
}

.hero-home-block-module .swiper-wrapper,
.hero-home-block-module {
    height: 100%;
}

.hero-home-block-module__slide {
    height: 100%;
    padding: var(--spacer-sm) 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--primary-50);
    padding-bottom: calc(var(--hero-thumbs-height) + var(--spacer-md));
    z-index: 1;
}

.hero-home-slider__button-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacer-xs);
    position: absolute;
    bottom: var(--spacer-md);
    left: var(--spacer-md);
    right: var(--spacer-md);
    z-index: 2;
}

.hero-home-slider__button-prev,
.hero-home-slider__button-next {
    --color1: var(--global-icon-clr);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--step-3);
    transition: all 0.3s ease;
}

.hero-home-slider__button-prev:hover,
.hero-home-slider__button-next:hover {
    cursor: pointer;
    transform: scale(0.95);
}

.hero-home-slider__button-next {
    transform: rotate(180deg);
}

.hero-home-slider__button-next:hover {
    transform: rotate(180deg) scale(0.95);
}

@media (min-width: 992px) {
    .hero-home-block-module__slide {
        padding-bottom: 0;
    }
}

.hero-home-block-module__slide-heading {
    color: var(--primary-50);
    font-weight: 300;
}

.hero-home-block-module__slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-home-block-module__slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-home-block-module__slide-content {
    padding: 0 var(--spacer-md);
    position: relative;
    z-index: 1;
    margin: calc(var(--hero-height) - var(--hero-thumbs-height) - var(--spacer-xl) - var(--spacer-md)) 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-home-block-module__slide-content {
        padding-right: calc(var(--hero-thumbs-width) + var(--spacer-md));
    }
}

.hero-home-block-module__thumbs {
    position: absolute;
    bottom: var(--spacer-xl);
    left: calc(var(--horizontal-lateral-difference) + var(--spacer-md));
    right: auto;
    width: calc(100% - var(--spacer-md) * 2);
    max-width: 350px;
    height: var(--hero-thumbs-height);
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-home-block-module__thumbs {
        left: auto;
        right: var(--spacer-md);
        width: var(--hero-thumbs-width);
    }
}

.hero-home-block-thumbs {
    height: 100%;
}

.hero-home-block-module__thumb {
    background-color: var(--primary-50);
    border-radius: var(--radius-border-rounded---m);
    overflow: clip;
    height: calc(var(--baseline) * 16);
    padding: var(--spacer-sm);
    display: flex;
    gap: var(--spacer-sm);
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-home-block-module__thumb:hover {
  background-color: var(--btn-primary-full-fill);
  color: var(--btn-primary-full-clr-hover);
}

.hero-home-block-module__thumb img {
    border-radius: var(--radius-border-rounded---s);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    max-height: 100%;
    max-width: 25%;
}

.hero-home-block-module__thumb-heading {
    color: var(--typography-body);
    font-family: var(--font-family-body);
    font-weight: 600;
    margin-bottom: 0;
    font-size: var(--step--1);
}

.hero-home-block-module__thumb:hover .hero-home-block-module__thumb-heading {
    --typography-body: var(--btn-primary-full-clr-hover);
}

@media screen and (max-width: 992px) {
  .hero-home-block-module-outer {
    height: auto;
  }
  .hero-home-block-module__slide-content {
    margin: 0px 0px var(--spacer-lg) 0px;
  }
  .hero-home-slider__button-wrapper {
    display: none;
  }
}

/* Solo per Safari mobile */
@supports (-webkit-overflow-scrolling: touch) {
  @media (max-width: 768px) {
    .hero-home-block-module__thumbs {
      left: var(--baseline-2);
    }
  }
}