/* Sezione generale */
.ml-testimonials-section {
    padding: 100px 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.ml-testimonials-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.ml-testimonials-heading {
    max-width: 900px;
    margin: 0 0 4rem;
}

.ml-testimonials-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0;
    font-weight: 600;
}

.ml-testimonials-title .ml-testimonials-subtitle {
    font-weight: 400;
    color: #6b6b6b;
}

.ml-testimonials-subtitle {
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0;
    font-weight: 400;
    color: #6b6b6b;
}

/* Wrapper slider */
.ml-testimonials-slider-wrapper {
    width: 100%;
    position: relative;
}

@media (min-width: 1200px) {
    .ml-testimonials-slider-wrapper {
        width: calc(100% + (100vw - 1600px) / 2);
        margin-right: calc((100vw - 1600px) / -2);
    }
}

/* Slider custom */
.ml-slider {
    width: 100%;
    position: relative;
}

/* Mask (equivalente di .w-slider-mask / .tes_slider-mask) */
.ml-slider-mask {
    max-width: 100%;
    min-height: 19rem;   /* altezza minima */
    height: auto;        /* ma può crescere */
    position: relative;
}

/* Track */
.ml-slider-track {
    display: flex;
    align-items: stretch;
    height: 100%;
    transition: transform 0.5s ease;
}

/* Singola slide (equivalente di .tes_slide / .w-slide) */
.ml-slide {
    flex: 0 0 auto;
    max-width: 25rem;
    height: auto;        /* niente altezza fissa */
    display: flex;
}

/* Card base */
.ml-testimonial-card {
    border-top: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
    background: #ffffff;
    padding: 1.5rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #e5e5e5;
    min-height: 19rem;   /* non meno di 19rem, ma cresce se serve */
}

.ml-slide:first-child .ml-testimonial-card {
    border-left: 1px solid #e5e5e5;
}

/* Card riassuntiva */
.ml-testimonial-card-summary {
    width: 25rem;
    min-height: 19rem;
    height: auto;
    padding: 3.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;      /* centra orizzontalmente */
}

.ml-testimonial-summary-rating {
    font-size: 100px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ml-testimonial-summary-stars {
    font-size: 40px;
    line-height: 1;
    color: #ff4b4b;
    letter-spacing: 2px;
}

.ml-testimonial-summary-count {
    font-size: 0.75rem; /* come .review_count */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777777;
    margin-bottom: 2rem;
}

.ml-testimonial-summary-bottom {
    margin-top: auto;
    max-width: 150px;
	position: absolute;
	bottom: 10px;
}

.ml-testimonial-summary-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #111111;
}

/* Testo recensione */
.ml-testimonial-top {
    font-size: 13px; /* come .tes_brand-name */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    color: #999999;
}
.ml-testimonial-content {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    font-size: 30px;
    line-height: 1.2;
    color: #333333;
}

.ml-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.ml-testimonial-avatar img {
    width: 2rem;   /* come .tes_img-wrap */
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ml-testimonial-author-name {
    font-weight: 600;
    font-size: 0.9375rem; /* come .tes_name.h4 */
    color: #111111;
}

/* Dots (equivalente .w-slider-nav / .w-slider-dot) */
.ml-slider-dots {
  text-align: center;
  height: 40px;
  margin: 0;
  padding-top: 30px;
  position: relative;
  max-width: 1600px;
}

.ml-slider-dot {
    cursor: pointer;
    background-color: #2226; /* puntino NON attivo */
    width: 1em;
    height: 1em;
    margin: 0 3px 0.5em;
    border-radius: 50%;
    border: none;
    padding: 0;                  /* azzera il padding del button */
    display: inline-block;
    transition: background-color 0.1s ease, color 0.1s ease;
    -webkit-appearance: none;    /* toglie lo stile nativo */
    appearance: none;
}

.ml-slider-dot.is-active {
    background-color: #0a0a0f;
}

/* Focus */
.ml-slider-dot:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .ml-testimonials-section {
        padding: 6rem 0;
    }
    .ml-testimonials-title,
    .ml-testimonials-subtitle {
        font-size: 1.75rem;
    }

    .ml-testimonials-heading {
        margin-bottom: 2rem;
    }

    .ml-slider-mask {
        height: auto;
    }

    .ml-slide {
        height: auto;
        min-width: 0;
    }
    .ml-testimonial-card,
    .ml-testimonial-card-summary {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        height: auto;
    }

    .ml-slider-dots {
        text-align: center;
    }
    .ml-testimonials-title,
    .ml-testimonials-subtitle {
        font-size: 1.5rem;
    }
    .ml-slide {
        max-width: 19rem;
    }

    .ml-testimonial-card {
        padding: 1.25rem 1.25rem;
    }

    .ml-testimonial-card-summary {
        max-width: 19rem;
        padding: 2rem 1.25rem;
    }

    .ml-testimonial-content {
        font-size: 1rem;
    }
        .ml-testimonial-content,
    .ml-testimonial-top,
    .ml-testimonial-author-name {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}