/* ==========================================================
   MOTUS ANIMI FAD — SP Testimonial Free Override
   Plugin: SP Testimonial Free
   File:   assets/css/plugins/sp-testimonial-override.css
   ========================================================== */

/* ── WRAPPER ── */
.sp-testimonial-free-wrapper {
    font-family: 'Roboto', sans-serif;
}

/* ── TITOLO SEZIONE ── */
#poststuff .sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title,
.sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1d9b93, #c1146e);
    border-radius: 3px;
}

/* ── SLIDER SPACING ── */
div.sp-testimonial-free-section .slick-list {
    margin-right: 0;
}

.sp-testimonial-free-section.swiper-initialized,
.sp-testimonial-free-section:not(.swiper-initialized, .tfree-layout-grid) {
    margin-bottom: 30px;
}

/* ── SINGOLO ITEM ── */
.sp-testimonial-free-section .sp-testimonial-item {
    text-align: center;
    padding: 12px;
}

/* ── CARD TESTIMONIAL ── */
.sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

/* Linea accent top gradiente teal → pink */
.sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d9b93, #c1146e);
    border-radius: 12px 12px 0 0;
}

/* ── AVATAR ── */
.sp-testimonial-free-section .sp-testimonial-client-image {
    margin: 0 0 18px 0;
}

.sp-testimonial-free-section .sp-testimonial-client-image img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1d9b93;
    box-shadow: 0 2px 8px rgba(29, 155, 147, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free:hover .sp-testimonial-client-image img {
    border-color: #c1146e;
    box-shadow: 0 2px 8px rgba(193, 20, 110, 0.2);
}

/* Variante v2 (avatar sotto) */
.tfree-style-theme-one-v2 .sp-testimonial-free .sp-testimonial-client-image {
    margin: 20px 0 0 0;
}

/* ── TITOLO TESTIMONIAL ── */
.sp-testimonial-free-section .sp-testimonial-title {
    margin: 0 0 14px 0;
}

.sp-testimonial-free-section .sp-testimonial-title h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #1d9b93;
    padding: 0;
    margin: 0;
}

/* ── NOME CLIENTE ── */
.sp-testimonial-free-section .sp-testimonial-client-name {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #222222;
    margin: 0 0 4px 0;
}

/* ── RUOLO / DESIGNAZIONE ── */
.sp-testimonial-free-section .sp-testimonial-client-designation {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #888888;
    font-style: italic;
}

/* ── STELLE RATING ── */
.sp-testimonial-free-section .sp-testimonial-client-rating {
    margin: 0 0 12px 0;
}

.sp-testimonial-free-section .sp-testimonial-client-rating i.fa {
    font-size: 16px;
    color: #f5a623;
    margin: 0 2px;
}

/* ── TESTO TESTIMONIAL ── */
.sp-testimonial-free-section .sp-testimonial-client-testimonial,
.sp-testimonial-free-section .sp-testimonial-client-testimonial p {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #555555;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 18px 0;
    position: relative;
}

.sp-testimonial-free-section .sp-testimonial-client-testimonial p {
    padding: 0 10px;
}

/* Virgolette decorative grandi */
.sp-testimonial-free-section .sp-testimonial-client-testimonial::before {
    content: '\201C';
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(29, 155, 147, 0.12);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}

/* ── NAVIGAZIONE FRECCE ── */
.sp-testimonial-free-section .testimonial-nav-arrow {
    width: 42px;
    height: 42px;
    background-color: #ffffff;
    border: 2px solid #1d9b93;
    border-radius: 50%;
    color: #1d9b93;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transform: translateY(-50%);
}

.sp-testimonial-free-section .testimonial-nav-arrow:hover {
    background-color: #1d9b93;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(29, 155, 147, 0.35);
    border-color: #1d9b93;
}

/* Top right variant */
.sp-testimonial-free-section .swiper-button-next.testimonial-nav-arrow.top_right {
    top: 22px;
    right: 4px;
    transform: unset;
}

.sp-testimonial-free-section .swiper-button-prev.testimonial-nav-arrow.top_right {
    top: 22px;
    right: 44px;
    transform: unset;
    left: auto;
}

.sp-testimonial-free-wrapper .sp-testimonial-free-section .testimonial-nav-arrow:after {
    content: "";
    display: none;
}

.sp-testimonial-free-section .testimonial-nav-arrow svg,
.sp-testimonial-free-section .testimonial-nav-arrow i {
    color: inherit;
    fill: currentColor;
    transition: color 0.3s ease;
}

/* ── PAGINAZIONE DOTS ── */
.sp-testimonial-free-section .testimonial-pagination {
    margin: 20px 0 0 0;
}

.sp-testimonial-free-section .testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #d0d0d0;
    opacity: 1;
    margin: 3px 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sp-testimonial-free-section .testimonial-pagination .swiper-pagination-bullet-active {
    background-color: #1d9b93;
    transform: scale(1.3);
}

/* ── PAGINAZIONE NUMERICA (grid) ── */
.sp-testimonial-free-section ul.sp-tfree-pagination {
    padding-left: 0;
    margin-left: 0;
}

.sp-testimonial-free-section ul.sp-tfree-pagination li a,
.sp-testimonial-free-section ul.sp-tfree-pagination li span {
    font-family: 'Roboto', sans-serif;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 38px;
    height: 38px;
    width: 38px;
    color: #555555;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    margin-right: 3px;
    transition: all 0.2s ease;
}

.sp-testimonial-free-section ul.sp-tfree-pagination li span.current,
.sp-testimonial-free-section ul.sp-tfree-pagination li a:hover {
    background-color: #1d9b93;
    border-color: #1d9b93;
    color: #ffffff;
}

/* ── GRID LAYOUT ── */
.sp-testimonial-free-section .tfree-grid-items {
    gap: 0;
}

.sp-testimonial-free-section.tfree-layout-grid .sp-testimonial-item {
    padding: 12px;
}

/* ── PRELOADER ── */
.sp-testimonial-preloader {
    background-color: #ffffff;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
    .sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free {
        padding: 24px 18px;
    }

    .sp-testimonial-free-section .sp-testimonial-client-image img {
        width: 60px !important;
        height: 60px !important;
    }

    .sp-testimonial-free-section .sp-testimonial-client-testimonial,
    .sp-testimonial-free-section .sp-testimonial-client-testimonial p {
        font-size: 14px;
    }

    .sp-testimonial-free-wrapper h2.sp-testimonial-free-section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .sp-testimonial-free-section .testimonial-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 479px) {
    .sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free {
        padding: 20px 14px;
        border-radius: 10px;
    }

    .sp-testimonial-free-section .sp-testimonial-item .sp-testimonial-free::before {
        border-radius: 10px 10px 0 0;
    }

    .sp-testimonial-free-section .testimonial-nav-arrow {
        width: 32px;
        height: 32px;
    }

    .sp-testimonial-free-section .sp-testimonial-title h3 {
        font-size: 16px;
    }
}