/* ==========================================================================
   CERTIFICAÇÃO DE SUSTENTABILIDADE - SEM SOBREPOSIÇÃO
   Estratégia MOBILE: Logo certificação ABAIXO do logo principal
   ========================================================================== */

/* ==========================================================================
   MOBILE até 768px - CERTIFICATION ABAIXO DO LOGO
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Container usa flexbox VERTICAL (coluna) */
    .navbar .img-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 15px;
        margin: 30px auto 40px;
    }

    /* Logo principal NO TOPO */
    .navbar .img-header .navbar-brand {
        order: 1;
        align-self: flex-start;
        margin-bottom: 20px;
    }

    /* Certification ABAIXO do logo */
    .navbar .img-header .certification-text {
        order: 2;
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin-top: 0;
    }

    .navbar .img-header .certification-content {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .navbar .img-header .certification-logo {
        width: 45px;
        height: auto;
        flex-shrink: 0;
        object-fit: contain;
    }

    .navbar .img-header .certification-text p {
        margin: 0;
        font-size: 11px;
        font-weight: 300;
        line-height: 1.4;
        color: #1d1d1b;
    }

    .navbar .img-header .certification-text p a {
        color: #1d1d1b;
        text-decoration: underline;
    }

    .navbar .img-header .certification-text p a:hover {
        font-weight: 600;
    }
}

/* Ajustes para telas muito pequenas */
@media screen and (max-width: 360px) {
    .navbar .img-header .certification-logo {
        width: 40px;
        height: auto;
    }

    .navbar .img-header .certification-text p {
        font-size: 10px;
    }
}

/* MOBILE 375px+ */
@media screen and (min-width: 375px) and (max-width: 768px) {
    .navbar .img-header .certification-logo {
        width: 48px;
        height: auto;
    }

    .navbar .img-header .certification-text p {
        font-size: 12px;
    }
}

/* MOBILE LARGE 480px+ */
@media screen and (min-width: 480px) and (max-width: 768px) {
    .navbar .img-header .certification-logo {
        width: 50px;
        height: auto;
    }

    .navbar .img-header .certification-content {
        gap: 12px;
    }
}

/* ==========================================================================
   TABLET e DESKTOP 769px+ - CERTIFICATION à ESQUERDA (absolute)
   ========================================================================== */
@media screen and (min-width: 769px) {
    .navbar .img-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        margin: 40px auto 50px;
        padding: 0;
    }

    /* Certification volta a absolute à esquerda */
    .navbar .img-header .certification-text {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
        max-width: 280px;
        text-align: left;
        order: initial;
    }

    .navbar .img-header .certification-content {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .navbar .img-header .certification-logo {
        width: 55px;
        height: auto;
        object-fit: contain;
    }

    .navbar .img-header .certification-text p {
        font-size: 12px;
        line-height: 1.4;
    }

    .navbar .img-header .navbar-brand {
        order: initial;
        margin-bottom: 0;
    }
}

/* DESKTOP SMALL 1024px+ */
@media screen and (min-width: 1024px) {
    .navbar .img-header {
        margin: 50px auto 60px;
    }

    .navbar .img-header .certification-text {
        left: 60px;
        max-width: 300px;
    }

    .navbar .img-header .certification-logo {
        width: 58px;
        height: auto;
    }

    .navbar .img-header .certification-text p {
        font-size: 13px;
    }
}

/* DESKTOP 1366px+ */
@media screen and (min-width: 1366px) {
    .navbar .img-header .certification-text {
        max-width: 320px;
    }

    .navbar .img-header .certification-logo {
        width: 60px;
        height: auto;
    }

    .navbar .img-header .certification-content {
        gap: 14px;
    }
}

/* DESKTOP LARGE 1920px+ */
@media screen and (min-width: 1920px) {
    .navbar .img-header .certification-text {
        left: 80px;
        max-width: 350px;
    }

    .navbar .img-header .certification-logo {
        width: 65px;
        height: auto;
    }

    .navbar .img-header .certification-text p {
        font-size: 14px;
    }
}

/* ==========================================================================
   SELETOR DE IDIOMAS WPML
   ========================================================================== */
.select_lang_desktop {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.select_lang_mobile {
    margin-top: 15px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .select_lang_desktop {
        display: none;
    }

    .select_lang_mobile {
        display: block !important;
    }
}

@media screen and (min-width: 769px) {
    .select_lang_mobile {
        display: none;
    }
}