.campanha-slider {
  position: relative;
  width: 100%;
  min-height: 750px;
  overflow: hidden;
}

.campanha-slider .carousel-item {
  min-height: 750px;
  background-image: var(--campanha-bg-desktop-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.campanha-slider .carousel-item .campanha-slide-container {
  min-height: 750px;
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .campanha-slider {
    min-height: 560px;
  }

  .campanha-slider .carousel-item {
    min-height: 560px;
    background-image: var(
      --campanha-bg-mobile-image,
      var(--campanha-bg-desktop-image)
    );
    background-position: center;
    background-size: cover;
  }

  .campanha-slider .carousel-item .campanha-slide-container {
    min-height: 560px;
    align-items: flex-start;
    padding-top: 0.6rem;
    padding-bottom: 0;
  }

  .campanha-slider .carousel-item .campanha-content {
    max-width: 360px;
    padding: 0.3rem 0.1rem 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .campanha-slider .carousel-item .campanha-content h1 {
    font-size: clamp(1.45rem, 6.9vw, 2rem);
    line-height: 1.1;
    margin-bottom: 0.75rem !important;
  }

  .campanha-slider .carousel-item .campanha-content p,
  .campanha-slider .carousel-item .campanha-content .campanha-desc {
    font-size: clamp(0.95rem, 4.4vw, 1.2rem);
    line-height: 1.28;
    margin: 0 0 0.9rem;
  }

  .campanha-slider .carousel-item .campanha-content a {
    display: block;
    width: min(100%, 290px);
    padding: 0.72rem 1rem;
    text-align: center;
    border-radius: 0.55rem;
    margin-left: auto;
    margin-right: auto;
  }

  .campanha-slider .carousel-item .campanha-content .campanha-btn-label {
    font-size: clamp(1.05rem, 4.2vw, 1.22rem);
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .campanha-slider .carousel-item .campanha-content {
    max-width: 560px;
  }

  .campanha-slider .carousel-item .campanha-content h1 {
    font-size: clamp(2.5rem, 3.1vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1rem !important;
  }

  .campanha-slider .carousel-item .campanha-content p,
  .campanha-slider .carousel-item .campanha-content .campanha-desc {
    font-size: clamp(1.25rem, 1.25vw, 1.7rem);
    line-height: 1.35;
    margin: 0 0 1.35rem;
  }

  .campanha-slider .carousel-item .campanha-content a {
    padding: 0.82rem 1.5rem;
    border-radius: 0.5rem;
  }

  .campanha-slider .carousel-item .campanha-content .campanha-btn-label {
    font-size: clamp(1.15rem, 1.1vw, 1.45rem);
    line-height: 1.05;
  }
}

.campanha-slider .campanha-content {
  max-width: 100%;
  padding: 1.25rem;
  border-radius: 0.5rem;
}

.campanha-slider .carousel-item .campanha-content h1 {
  margin: 0;
  color: var(--nl-gray-100);
}

.campanha-slider .carousel-item .campanha-content p {
  margin: 10px 0;
}

.campanha-slider .carousel-item .campanha-content a {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--nl-red);
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.campanha-slider .carousel-item .campanha-content a:hover {
  background-color: var(--nl-red-dark);
}

@keyframes nlFadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

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

.campanha-slider .campanha-content.is-animating {
  animation: nlFadeInLeft 0.5s ease-out;
}

.campanha-slider .autoplay-progress {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
}

.campanha-slider .autoplay-progress .barra {
  height: 100%;
  width: 0%;
  background: var(--nl-red);
  transition: width 0.1s linear;
}
