/* =====================================================================
   PITRIO CMS 1.0.0.0 — camada responsiva final
   Corrige overflow horizontal, rodapé e depoimentos em telas móveis.
   Carregada por último para prevalecer sobre estilos legados/inline.
   ===================================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body { overflow-x: clip; }
}

img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

img,
picture,
video { height: auto; }

pre,
code,
.blog-content,
.container-depoimento,
.container-footer,
.site-footer,
.site-footer * {
    overflow-wrap: anywhere;
    word-break: normal;
}

.container-depoimento,
.container-footer {
    width: 100%;
    max-width: 1300px;
    min-width: 0;
}

.site-footer__grid > *,
.site-footer__contact > *,
.site-footer__cta,
.site-footer__utility > *,
.site-footer__bottom > * {
    min-width: 0;
}

@media (max-width: 900px) {
    /* Evita que componentes legados com largura mínima ultrapassem o viewport. */
    main,
    section,
    footer,
    .container,
    .container-depoimento,
    .container-footer,
    .blog-shell,
    .blog-container {
        max-width: 100%;
        min-width: 0;
    }

    /* Depoimentos: elimina combinação de padding + minmax(320px) que causava overflow. */
    #depoimentos {
        padding: 72px 16px 64px !important;
        clip-path: none !important;
        overflow: hidden !important;
    }

    #depoimentos .container-depoimento {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline: auto !important;
        padding-inline: 0 !important;
    }

    #depoimentos .container-depoimento > div[style*="display:grid"],
    #depoimentos .container-depoimento > div[style*="display: grid"],
    #depoimentos div[style*="grid-template-columns:repeat(auto-fit,minmax(320px"],
    #depoimentos div[style*="grid-template-columns: repeat(auto-fit, minmax(320px"] {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    #depoimentos .card,
    #depoimentos [class*="testimonial"],
    #depoimentos .container-depoimento > div > div {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #depoimentos .card {
        padding: 34px 24px !important;
        margin-inline: 0 !important;
    }

    /* Rodapé: uma coluna real, sem min-width implícito nem espaços laterais excessivos. */
    .site-footer {
        padding: 76px 16px 28px !important;
        overflow: hidden !important;
    }

    .site-footer .container-footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-inline: 0 !important;
        margin-inline: auto !important;
    }

    .site-footer__decor-medal {
        width: min(280px, 76vw) !important;
        right: -90px !important;
        opacity: .015 !important;
    }

    .site-footer__watermark {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(5rem, 28vw, 9rem) !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .site-footer__intro {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 48px !important;
    }

    .site-footer__intro h2 {
        font-size: clamp(1.85rem, 8vw, 2.6rem) !important;
        line-height: 1.12 !important;
    }

    .site-footer__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
        margin-bottom: 54px !important;
        width: 100% !important;
    }

    .site-footer__contact {
        gap: 24px !important;
    }

    .site-footer__ecosystem-nav,
    .site-footer__cta {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 26px 20px !important;
        border-radius: 24px !important;
    }

    .site-footer__social-links,
    .site-footer__quick-links,
    .site-footer__badges,
    .site-footer__ai {
        flex-wrap: wrap !important;
    }

    .site-footer__utility {
        margin-top: 54px !important;
        padding: 24px 0 0 !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    .site-footer__quick-links {
        width: 100% !important;
        gap: 12px 20px !important;
    }

    .site-footer__quick-links a {
        display: inline-flex !important;
        min-height: 40px !important;
        align-items: center !important;
    }

    .site-footer__bottom {
        padding-top: 24px !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    .site-footer__badges {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    .site-footer__ai {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .whatsapp-float {
        right: 16px !important;
        bottom: 18px !important;
        width: 58px !important;
        height: 58px !important;
        font-size: 29px !important;
    }
}

@media (max-width: 480px) {
    #depoimentos {
        padding-inline: 14px !important;
    }

    #depoimentos .card {
        padding: 30px 20px !important;
        border-radius: 22px !important;
    }

    .site-footer {
        padding-inline: 14px !important;
    }

    .site-footer__ecosystem-nav,
    .site-footer__cta {
        padding: 24px 18px !important;
        border-radius: 22px !important;
    }

    .site-footer__social-links a {
        width: 42px !important;
        height: 42px !important;
    }
}

@media (max-width: 360px) {
    #depoimentos,
    .site-footer {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .site-footer__quick-links {
        flex-direction: column !important;
        gap: 4px !important;
    }
}
