
/* COPEX - Correção FORÇADA e isolada dos testemunhais
   Mantém fundo claro/padrão do site e corrige qualquer CSS anterior. */

/* Rodapé: remove fundo claro atrás do logo */
.site-footer .footer-logo {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.20));
}

/* Seção home: fundo normal do site */
section.testimonials-home-section,
section.copex-testimonials-section {
    background: transparent !important;
    margin: 0 !important;
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

section.testimonials-home-section .section-title,
section.copex-testimonials-section .section-title {
    align-items: flex-end !important;
    margin-bottom: 18px !important;
}

section.testimonials-home-section .section-title h2,
section.copex-testimonials-section .section-title h2 {
    color: var(--color-dark) !important;
}

section.testimonials-home-section .section-title p,
section.copex-testimonials-section .section-title p {
    color: var(--color-muted) !important;
}

section.testimonials-home-section .link-more,
section.copex-testimonials-section .link-more {
    color: var(--color-primary) !important;
}

/* Neutraliza qualquer wrapper antigo tipo content-card/testimonials-shell apenas nos testemunhais */
section.testimonials-home-section .content-card,
section.testimonials-home-section .testimonials-shell,
section.copex-testimonials-section .content-card,
section.copex-testimonials-section .testimonials-shell,
.testimonials-shell-page {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Grade dos cards */
section.testimonials-home-section .testimonials-grid,
section.copex-testimonials-section .copex-testimonials-grid,
.copex-testimonials-page,
.testimonials-page {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    background: transparent !important;
    align-items: stretch !important;
}

/* Funciona com markup antigo (.testimonial-card) e markup novo (.copex-testimonial) */
section.testimonials-home-section .testimonial-card,
section.copex-testimonials-section .copex-testimonial,
.copex-testimonials-page .copex-testimonial,
.testimonials-page .testimonial-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 330px !important;
    height: 100% !important;
    background: #fff !important;
    border: 1px solid rgba(0,85,120,.16) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(0,40,60,.08) !important;
    padding: 26px !important;
    overflow: hidden !important;
    text-align: left !important;
}

section.testimonials-home-section .testimonial-card::before,
section.copex-testimonials-section .copex-testimonial::before,
.copex-testimonials-page .copex-testimonial::before,
.testimonials-page .testimonial-card::before {
    content: '' !important;
    position: absolute !important;
    right: -52px !important;
    top: -58px !important;
    width: 142px !important;
    height: 142px !important;
    border-radius: 50% !important;
    background: rgba(140,200,220,.30) !important;
}

section.testimonials-home-section .testimonial-card::after,
section.copex-testimonials-section .copex-testimonial::after,
.copex-testimonials-page .copex-testimonial::after,
.testimonials-page .testimonial-card::after {
    display: none !important;
}

/* Se o markup novo tiver uma caixa interna, ela deixa de interferir */
.copex-testimonial-box {
    display: contents !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.copex-testimonial-box::before,
.copex-testimonial-box::after {
    display: none !important;
}

section.testimonials-home-section .testimonial-quote,
section.copex-testimonials-section .copex-testimonial-quote,
.copex-testimonials-page .copex-testimonial-quote,
.testimonials-page .testimonial-quote {
    position: relative !important;
    z-index: 1 !important;
    color: var(--color-accent) !important;
    font-size: 3.2rem !important;
    line-height: .7 !important;
    font-weight: 900 !important;
    margin: 0 0 18px !important;
}

section.testimonials-home-section .testimonial-card p,
section.copex-testimonials-section .copex-testimonial p,
.copex-testimonials-page .copex-testimonial p,
.testimonials-page .testimonial-card p {
    position: relative !important;
    z-index: 1 !important;
    color: var(--color-dark) !important;
    font-size: 1rem !important;
    line-height: 1.68 !important;
    font-weight: 700 !important;
    margin: 0 0 22px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 7 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.copex-testimonials-page .copex-testimonial p,
.testimonials-page .testimonial-card p {
    -webkit-line-clamp: 10 !important;
}

/* Autor sempre no rodapé do card */
section.testimonials-home-section .testimonial-author,
section.copex-testimonials-section .copex-testimonial-person,
.copex-testimonials-page .copex-testimonial-person,
.testimonials-page .testimonial-author {
    position: relative !important;
    z-index: 1 !important;
    margin-top: auto !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(0,85,120,.08) !important;
    display: grid !important;
    grid-template-columns: 56px 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: left !important;
    transform: none !important;
}

section.testimonials-home-section .testimonial-author img,
section.testimonials-home-section .testimonial-author span,
section.copex-testimonials-section .copex-testimonial-person img,
section.copex-testimonials-section .copex-testimonial-person span,
.copex-testimonials-page .copex-testimonial-person img,
.copex-testimonials-page .copex-testimonial-person span,
.testimonials-page .testimonial-author img,
.testimonials-page .testimonial-author span {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(140,200,220,.65) !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-deep)) !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

section.testimonials-home-section .testimonial-author > div,
section.copex-testimonials-section .copex-testimonial-person > div,
.copex-testimonials-page .copex-testimonial-person > div,
.testimonials-page .testimonial-author > div {
    min-width: 0 !important;
}

section.testimonials-home-section .testimonial-author strong,
section.copex-testimonials-section .copex-testimonial-person strong,
.copex-testimonials-page .copex-testimonial-person strong,
.testimonials-page .testimonial-author strong {
    display: block !important;
    color: var(--color-dark) !important;
    font-size: 1rem !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

section.testimonials-home-section .testimonial-author small,
section.copex-testimonials-section .copex-testimonial-person small,
.copex-testimonials-page .copex-testimonial-person small,
.testimonials-page .testimonial-author small {
    display: block !important;
    color: var(--color-muted) !important;
    font-size: .88rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    margin-top: 4px !important;
}

@media (max-width: 1080px) {
    section.testimonials-home-section .testimonials-grid,
    section.copex-testimonials-section .copex-testimonials-grid,
    .copex-testimonials-page,
    .testimonials-page {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    section.testimonials-home-section .testimonials-grid,
    section.copex-testimonials-section .copex-testimonials-grid,
    .copex-testimonials-page,
    .testimonials-page {
        grid-template-columns: 1fr !important;
    }

    section.testimonials-home-section .testimonial-card,
    section.copex-testimonials-section .copex-testimonial,
    .copex-testimonials-page .copex-testimonial,
    .testimonials-page .testimonial-card {
        min-height: 300px !important;
    }
}
