/* Testimonial Style */

.myts-testimonials-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 5%;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.testimonials-swiper {
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.myts-testimonial-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.testimonial-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.testimonial-content {
  position: relative;
  background: transparent;
  padding: 30px 25px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 380px;
  text-align: center;
  box-sizing: border-box;
}

.testimonial-content {
  padding-bottom: 70px; /* sufficiente per la nuova coda */
}

.testimonial-content:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.myts-testimonial-text {
  font-style: italic;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  padding: 0 5px;
}
.myts-testimonial-text p{
    line-height:1.5;
}

.myts-testimonial-author {
  margin-top: auto;
  padding-bottom: 25px;
  z-index: 2;
}

.myts-testimonial-image img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.myts-testimonial-name {
  margin: 5px 0 2px;
  font-weight: 700;
  font-size: 16px;
  color: #222;
}

.myts-testimonial-role {
  font-size: 14px;
  font-weight: 500;
  color: #e67e22;
}

.myts-testimonials-wrapper .swiper-button-prev,
.myts-testimonials-wrapper .swiper-button-next {
  position: absolute;
  top: 45%;
  transform: translateY(-45%);
  background: #F7941D;
  color: #fff;
  z-index: 20;
  padding: 40px 20px;
  border-radius: 8px;
}

.myts-testimonials-wrapper .swiper-button-prev:after,
.myts-testimonials-wrapper .swiper-button-next:after {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}

.myts-testimonials-wrapper .swiper-button-prev {
  left: -1px;
}

.myts-testimonials-wrapper .swiper-button-next {
  right: -1px;
}

@media (max-width: 1024px) {
  .myts-testimonials-wrapper .swiper-button-prev,
  .myts-testimonials-wrapper .swiper-button-next {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  .myts-testimonials-wrapper .swiper-button-prev,
  .myts-testimonials-wrapper .swiper-button-next {
    background: none;
    color: #e67e22;
  }

  .myts-testimonials-wrapper .swiper-button-prev:after,
  .myts-testimonials-wrapper .swiper-button-next:after {
    color: #F7941D;
  }

  .myts-testimonials-wrapper .swiper-button-prev {
    left: -40px;
  }

  .myts-testimonials-wrapper .swiper-button-next {
    right: -40px;
  }
}

@media (max-width: 767px) {
  .testimonial-content {
    padding: 20px 15px 120px;
    min-height: auto;
  }

  .myts-testimonial-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .myts-testimonial-author {
    padding-bottom: 25px;
  }

  .myts-testimonial-image img {
    width: 55px;
    height: 55px;
    margin-bottom: 8px;
  }

  .myts-testimonial-name {
    font-size: 15px;
  }

  .myts-testimonial-role {
    font-size: 13px;
  }

  .myts-testimonials-wrapper .swiper-button-prev {
    left: 5px;
  }

  .myts-testimonials-wrapper .swiper-button-next {
    right: 5px;
  }
}