.testimonials{
  padding: 0 !important;
}

.testimonials h2{
  font-style: normal;
  font-weight: 700;
  font-size: 34px;
  line-height: 120%;

  color: #27272A;
  margin-bottom: 64px;
}

.testimonials-wrap{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 80px;
  gap: 32px;
  
  margin: 0 auto;

  width: 100%;
  height: 100%;
 
  background: #FFFFFF;

  border: 1.5px solid #DFE3EE;
  border-radius: 24px;
}

.testimonials-open-quote{
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.testimonials-close-quote{
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.testimonials-wrap p{
  font-weight: 400;
  line-height: 160%;

  color: #27272A;
}

.testimonials-wrap span{
  width: 100%;
  text-align: end;
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 24px;

  color: var(--accent-color);
}

.swiper-container {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper{
  align-items: center;
}

.swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .4;
}

/* non-active slide specifics */
.swiper-slide .testimonials-wrap{
  width: 75%;
  height: 75%;
}
.swiper-slide .testimonials-wrap p{
  font-size: 0.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8; /** número de linhas que você quer exibir */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swiper-slide .testimonials-wrap span{
  font-size: 0.9rem;
}

.swiper-slide .testimonials-profile{
  width: 90px;
  height: 90px;
}

/* active slide specifics */
.swiper-slide-active{
  opacity: inherit;
}

.swiper-slide-active .testimonials-wrap{
  width: 100%;
}

.swiper-slide-active .testimonials-wrap p {
  font-size: 1rem;
  text-overflow: inherit;
  max-height: max-content;
  display: -webkit-box;
  -webkit-line-clamp: inherit;
  -webkit-box-orient: vertical;
  overflow: inherit;
}

.swiper-slide-active .testimonials-wrap span{
  font-size: 1.2rem;
}

.swiper-slide-active .testimonials-profile{
  width: 120px;
  height: 120px;
}

@media (min-width: 1201px) and (max-width: 1550px){
  .container{
    max-width: 1140px !important;
  }
  
  .testimonials h2{
    font-size: 28px;
  }
}

@media screen and (max-width: 1201px){
  .testimonials h2{
    font-size: 20px;
  }
}

@media screen and (max-width: 993px){
  .testimonials{
    padding: 4rem 0 2rem 0;
  }

  .swiper-slide .testimonials-wrap{
    width: 100%;
  }

  .swiper-slide-active .testimonials-wrap p {
    font-size: 0.7rem;
    text-overflow: inherit;
    max-height: max-content;
  }
}

@media screen and (max-width: 769px){
  .testimonials h2{
    font-size: 24px;
  }
}

@media screen and (max-width: 577px){
  .swiper-slide{
    opacity: .9;
  }

  .swiper-slide-active .testimonials-wrap span{
    font-size: 0.9rem;
  }

  .swiper-slide-active .testimonials-profile{
    width: 90px;
    height: 90px;
  }

  .testimonials-wrap {
    padding: 4rem 1.5rem;
  }
}

@media screen and (max-width: 414px){
  .testimonials-wrap{
    padding: 2.6rem 1.5rem;
  }

  .swiper-slide-active .testimonials-wrap p {
    font-size: 0.60rem;
  }

  .swiper-slide-active .testimonials-wrap span{
    font-size: 0.75rem;
  }

  .swiper-slide-active .testimonials-profile{
    width: 60px;
    height: 60px;
  }
}