﻿.tbp-home-hero-carousel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}

.tbp-home-hero-carousel > .wp-block-cover__image-background {
  transition: opacity 240ms ease;
}

.tbp-home-hero-carousel.tbp-home-hero-carousel--media-ready > .wp-block-cover__image-background {
  opacity: 0 !important;
}

.tbp-home-hero-carousel > .wp-block-cover__inner-container {
  position: relative;
  z-index: 3;
}

.tbp-home-hero-carousel .wp-block-cover__background {
  background: linear-gradient(180deg, rgba(17, 39, 87, 0.08), rgba(17, 39, 87, 0.18)) !important;
  opacity: 1 !important;
  z-index: 2;
}

.tbp-home-hero-carousel__viewport,
.tbp-home-hero-carousel__slides,
.tbp-home-hero-carousel__slide {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tbp-home-hero-carousel__viewport,
.tbp-home-hero-carousel__slides {
  z-index: 1;
  pointer-events: none;
}

.tbp-home-hero-carousel__slide {
  background-color: #f4efe9;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 520ms ease, transform 6.5s ease;
}

.tbp-home-hero-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.tbp-home-hero-carousel--fade .tbp-home-hero-carousel__slide {
  transform: scale(1.025);
}

.tbp-home-hero-carousel--fade .tbp-home-hero-carousel__slide.is-active {
  transform: scale(1);
}

.tbp-home-hero-carousel--slide .tbp-home-hero-carousel__slide {
  transform: translate3d(7%, 0, 0) scale(1.01);
  transition-duration: 520ms, 760ms;
}

.tbp-home-hero-carousel--slide .tbp-home-hero-carousel__slide.is-active {
  transform: translate3d(0, 0, 0) scale(1);
}

.tbp-home-hero-carousel--zoom .tbp-home-hero-carousel__slide {
  transform: scale(1.12);
  transition-duration: 520ms, 980ms;
}

.tbp-home-hero-carousel--zoom .tbp-home-hero-carousel__slide.is-active {
  transform: scale(1);
}

.tbp-home-hero-carousel--none .tbp-home-hero-carousel__slide {
  transform: none;
  transition: none;
}

.tbp-home-hero-carousel--none .tbp-home-hero-carousel__slide.is-active {
  transform: none;
}

.tbp-home-hero-carousel__nav {
  position: absolute;
  inset-inline: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: 18px;
}

.tbp-home-hero-carousel__arrow {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(17, 39, 87, 0.45);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tbp-home-hero-carousel__arrow:hover,
.tbp-home-hero-carousel__arrow:focus-visible {
  background: rgba(17, 39, 87, 0.68);
  border-color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.tbp-home-hero-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tbp-home-hero-carousel__dot {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.48);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, width 160ms ease;
}

.tbp-home-hero-carousel__dot.is-active {
  background: #fff;
  width: 28px;
}

.tbp-home-hero-carousel__dot:hover,
.tbp-home-hero-carousel__dot:focus-visible {
  background: #fff;
  outline: none;
  transform: scale(1.05);
}

.tbp-home-hero-carousel > .wp-block-cover__inner-container .wp-block-button__link {
  will-change: transform, opacity, filter;
}

.tbp-home-hero-carousel .wp-block-button__link.tbp-home-hero-carousel__btn-animate {
  animation: tbp-home-hero-btn-in 560ms cubic-bezier(0.22, 0.78, 0.22, 1) both;
}

@keyframes tbp-home-hero-btn-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (min-width: 782px) {
body.home .entry-content .wp-block-cover.tbp-hero-slide ~ .wp-block-cover.tbp-hero-slide {
  display: none !important;
}

.tbp-home-hero-carousel {
    aspect-ratio: 17 / 8 !important;
    min-height: unset !important;
    padding-top: 2.4% !important;
    padding-bottom: 2% !important;
  }

  body.home .entry-content > .wp-block-group.alignfull.has-color-1-background-color,
  body.home .entry-content > .wp-block-group.alignfull.has-color-2-background-color {
    box-sizing: border-box;
    width: fit-content !important;
    max-width: min(calc(100vw - 32px), var(--wp--style--global--wide-size, 1100px)) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }

  body.home .entry-content > .wp-block-group.alignfull.has-color-1-background-color {
    background: var(--wp--preset--color--color-1) !important;
  }

  body.home .entry-content > .wp-block-group.alignfull.has-color-2-background-color {
    background: var(--wp--preset--color--color-2) !important;
  }

  body.home .entry-content .tbp-nouveautes,
  body.home .entry-content .tbp-promotions {
    width: auto !important;
    max-width: var(--wp--style--global--wide-size, 1100px) !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    background: transparent !important;
    border-radius: 0;
    overflow: visible;
  }
}

@media (max-width: 781px) {
  .tbp-home-hero-carousel {
    min-height: 420px;
  }

  .tbp-home-hero-carousel > .wp-block-cover__inner-container {
    padding-inline: 12px;
  }

  .tbp-home-hero-carousel > .wp-block-cover__inner-container .wp-block-button__link {
    max-width: min(92vw, 560px);
  }

  .tbp-home-hero-carousel__nav {
    bottom: 12px;
    gap: 10px;
  }

  .tbp-home-hero-carousel__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbp-home-hero-carousel__slide,
  .tbp-home-hero-carousel__arrow,
  .tbp-home-hero-carousel__dot {
    transition: none;
  }

  .tbp-home-hero-carousel .wp-block-button__link.tbp-home-hero-carousel__btn-animate {
    animation: none !important;
  }
}
