.sl-hero-slider {
  --sl-hero-slider-orange: #ff5a13;
  --sl-hero-slider-white: #fff;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #020d18;
  color: var(--sl-hero-slider-white);
  isolation: isolate;
}

/* Lo shortcode vive normalmente dentro una row Divi centrata: il breakout
   mantiene la hero a tutta viewport senza cambiare la struttura della pagina. */
.sl-code-hero .sl-hero-slider,
.sl-home-hero .sl-hero-slider {
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
}

.sl-hero-slider *,
.sl-hero-slider *::before,
.sl-hero-slider *::after {
  box-sizing: border-box;
}

.sl-hero-slider__viewport,
.sl-hero-slider__slide {
  min-height: inherit;
}

.sl-hero-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .55s ease, visibility .55s ease;
}

.sl-hero-slider__slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.sl-hero-slider__slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 13, 24, .99) 0%, rgba(2, 13, 24, .94) 39%, rgba(2, 13, 24, .48) 64%, rgba(2, 13, 24, .18) 100%),
    radial-gradient(circle at 70% 42%, rgba(3, 118, 201, .27), transparent 34%);
}

.sl-hero-slider__slide.is-reversed::after {
  background:
    linear-gradient(270deg, rgba(2, 13, 24, .99) 0%, rgba(2, 13, 24, .94) 39%, rgba(2, 13, 24, .48) 64%, rgba(2, 13, 24, .18) 100%),
    radial-gradient(circle at 30% 42%, rgba(3, 118, 201, .27), transparent 34%);
}

.sl-hero-slider__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
}

.sl-hero-slider__slide.is-reversed .sl-hero-slider__media {
  inset: 0;
}

.sl-hero-slider__media picture,
.sl-hero-slider__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.sl-hero-slider .sl-hero-slider__media img {
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.sl-hero-slider__inner {
  position: relative;
  z-index: 2;
  width: min(100% - (2 * var(--sl-gutter, 24px)), var(--sl-content, 1200px));
  margin-inline: auto;
}

.sl-hero-slider__content {
  width: min(var(--sl-hero-slider-copy-width, 50%), 100%);
  padding: 120px 0 80px;
}

.sl-hero-slider__slide.is-reversed .sl-hero-slider__content {
  margin-left: auto;
}

.sl-hero-slider__content > h1,
.sl-hero-slider__content > h2,
.sl-hero-slider__content > p,
.sl-hero-slider__content > .sl-hero-slider__cta {
  opacity: 0;
  transform: translateY(16px);
}

.sl-hero-slider__slide.is-active .sl-hero-slider__content > h1,
.sl-hero-slider__slide.is-active .sl-hero-slider__content > h2,
.sl-hero-slider__slide.is-active .sl-hero-slider__content > p,
.sl-hero-slider__slide.is-active .sl-hero-slider__content > .sl-hero-slider__cta {
  opacity: 1;
  transform: translateY(0);
}

.sl-hero-slider__slide.is-active .sl-hero-slider__content > h1,
.sl-hero-slider__slide.is-active .sl-hero-slider__content > h2 {
  animation: sl-hero-slider-copy-in .68s cubic-bezier(.22, .72, .25, 1) .12s backwards;
}

.sl-hero-slider__slide.is-active .sl-hero-slider__content > p {
  animation: sl-hero-slider-copy-in .68s cubic-bezier(.22, .72, .25, 1) .26s backwards;
}

.sl-hero-slider__slide.is-active .sl-hero-slider__content > .sl-hero-slider__cta {
  animation: sl-hero-slider-copy-in .68s cubic-bezier(.22, .72, .25, 1) .4s backwards;
}

@keyframes sl-hero-slider-copy-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sl-hero-slider h1,
.sl-hero-slider h2 {
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--sl-hero-slider-white);
  font-family: var(--sl-font-primary, "Manrope", sans-serif);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
}

.sl-hero-slider p {
  max-width: 100%;
  margin: 18px 0 27px;
  padding: 0;
  color: var(--sl-hero-slider-white);
  font-family: var(--sl-font-primary, "Manrope", sans-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.sl-hero-slider__cta {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--sl-orange, var(--sl-hero-slider-orange));
  border-radius: 3px;
  background-color: var(--sl-orange, var(--sl-hero-slider-orange));
  background-image: var(--sl-orange-gradient, linear-gradient(135deg, #ff6b1a, var(--sl-hero-slider-orange)));
  color: var(--sl-hero-slider-white) !important;
  font-family: var(--sl-font-primary, "Manrope", sans-serif);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sl-hero-slider__cta:hover,
.sl-hero-slider__cta:focus-visible {
  background-color: var(--sl-orange, var(--sl-hero-slider-orange));
  background-image: var(--sl-orange-gradient-hover, linear-gradient(135deg, #ff7a2b, #ff4f0a));
  box-shadow: 0 12px 22px rgba(255, 90, 19, .26);
  color: var(--sl-hero-slider-white) !important;
  transform: translateY(-1px);
}

.sl-hero-slider__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(2, 13, 24, .45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: .8;
  transform: translateY(-50%);
  transition: opacity .28s ease, background .2s ease, visibility .28s ease;
}

.sl-hero-slider__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.sl-hero-slider__arrow:hover,
.sl-hero-slider__arrow:focus-visible {
  background: var(--sl-hero-slider-orange);
  opacity: 1;
}

.sl-hero-slider__arrow--prev {
  left: 150px;
}

.sl-hero-slider__arrow--next {
  right: 150px;
}

.sl-hero-slider.are-controls-idle .sl-hero-slider__arrow {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.sl-hero-slider__dots {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 26px;
  display: flex;
  gap: 10px;
}

.sl-hero-slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.sl-hero-slider__dots button.is-active {
  border-color: var(--sl-hero-slider-orange);
  background: var(--sl-hero-slider-orange);
  transform: scale(1.25);
}

.sl-hero-slider :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.sl-hero-slider__diagnostic {
  padding: 16px;
  border-left: 4px solid #d63638;
  background: #fff;
  color: #1d2327;
}

@media (max-width: 980px) {
  .sl-hero-slider__content {
    width: min(var(--sl-hero-slider-copy-width, 50%), 100%);
  }

  .sl-hero-slider h1,
  .sl-hero-slider h2 {
    max-width: 100%;
    font-size: 54px;
  }

  .sl-hero-slider__arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }
}

@media (max-width: 700px) {
  .sl-hero-slider__media,
  .sl-hero-slider__slide.is-reversed .sl-hero-slider__media {
    inset: 0;
    width: 100%;
  }

  .sl-hero-slider__slide::after,
  .sl-hero-slider__slide.is-reversed::after {
    background:
      linear-gradient(90deg, rgba(2, 13, 24, .93) 0%, rgba(2, 13, 24, .73) 72%, rgba(2, 13, 24, .52) 100%),
      linear-gradient(0deg, rgba(2, 13, 24, .76), transparent 55%);
  }

  .sl-hero-slider__content,
  .sl-hero-slider__slide.is-reversed .sl-hero-slider__content {
    width: 100%;
    margin: 0;
    padding: 70px 0 90px;
  }

  .sl-hero-slider h1,
  .sl-hero-slider h2 {
    max-width: 9.5em;
    font-size: 36px;
    line-height: 1.08;
  }

  .sl-hero-slider p {
    max-width: 100%;
    font-size: 17px;
  }

  .sl-hero-slider__arrow {
    width: 38px;
    height: 38px;
    bottom: 16px;
  }

  .sl-hero-slider__arrow--prev {
    left: 32px;
  }

  .sl-hero-slider__arrow--next {
    right: 32px;
  }

  .sl-hero-slider__dots {
    right: 50%;
    bottom: 30px;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-hero-slider__slide,
  .sl-hero-slider__cta,
  .sl-hero-slider__arrow,
  .sl-hero-slider__dots button {
    scroll-behavior: auto;
    transition-duration: .01ms !important;
  }

  .sl-hero-slider__content > h1,
  .sl-hero-slider__content > h2,
  .sl-hero-slider__content > p,
  .sl-hero-slider__content > .sl-hero-slider__cta {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
