.a3-logos,
.a3-logos * {
    box-sizing: border-box;
}

.a3-logos {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px 8px;
    background: transparent;
    border-top: 3px solid transparent;
    position: relative;
}

.a3-logos__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.a3-logos__title {
    margin: 0 0 16px;
    color: #303870;
    text-align: center;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.a3-logos__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 18px;
    width: 100%;
}

.a3-logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 112px;
    padding: 10px 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(48, 56, 112, 0.12);
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(22, 31, 62, 0.10);
}

.a3-logos__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
}

.a3-logos__image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 90% !important;
    max-height: 82px !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 767px) {
    .a3-logos {
        padding: 11px 12px 7px;
    }

    .a3-logos__inner {
        max-width: 600px;
    }

    .a3-logos__title {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .a3-logos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

    .a3-logos__item {
        min-height: 100px;
        padding: 8px 7px;
        border-radius: 16px;
    }

    .a3-logos__link {
        min-height: 80px;
    }

    .a3-logos__image {
        max-width: 94% !important;
        max-height: 68px !important;
    }
}

@media (max-width: 420px) {
    .a3-logos {
        padding-right: 10px;
        padding-left: 10px;
    }

    .a3-logos__grid {
        gap: 10px 8px;
    }

    .a3-logos__item {
        min-height: 90px;
        padding: 6px;
        border-radius: 15px;
    }

    .a3-logos__link {
        min-height: 76px;
    }

    .a3-logos__image {
        max-height: 60px !important;
    }
}

/* Reduz somente o espaço inferior da Home 2025. */
body.home.page-id-2025 #main-content.wd-content-layout {
    padding-block-end: 8px !important;
}

/* Linha superior de Logos estendida até as bordas da viewport. */
.a3-logos::before {
    content: "";
    position: absolute;
    top: -3px;
    left: calc((100% - 100vw) / 2);
    right: calc((100% - 100vw) / 2);
    height: 3px;
    background: #303870;
    z-index: 2;
    pointer-events: none;
}
