﻿/* =========================================================
   HEVEATEC - RESPONSIVE FIXES
   Carregar por último, após todos os CSS atuais
   ========================================================= */

/* -------------------- RESET GLOBAL SEGURO -------------------- */
html,
body {
    width: 100%;
    max-width: none !important;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid {
    width: 100%;
}

/* melhora respiro em telas grandes sem mudar layout */
@media (min-width: 1600px) {
    .container-fluid {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 2200px) {
    .container-fluid {
        padding-left: 48px;
        padding-right: 48px;
    }
}


/* -------------------- HEADER / MENU -------------------- */
#header {
    width: 100%;
}

    #header .container-fluid {
        width: 100%;
        max-width: 100%;
    }

    #header .logo img {
        max-width: 270px;
        width: 100%;
        height: auto;
    }

/* preserva o layout original do menu */
.nav-menu,
.nav-menu * {
    box-sizing: border-box;
}

/* só melhora o comportamento em telas menores, sem mudar o desktop */
@media (max-width: 1199.98px) {
    .nav-menu a {
        font-size: 13px;
        padding: 5px 8px;
    }
}
/* -------------------- HERO / BANNERS INTERNOS -------------------- */
#main {
    width: 100%;
    position: relative;
}

    /* regra genérica para os banners laterais das páginas internas */
    #main .bg-detail {
        width: 100%;
        min-height: clamp(360px, 42vw, 735px);
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    /* evita colunas internas estourando altura */
    #main .row {
        min-height: 0;
    }

/* blocos que hoje usam margin-top muito agressivo */
.primary-content {
    margin-top: clamp(40px, 14vw, 300px) !important;
}

/* logo da certificação */
.logo-certificacao {
    padding: 20px;
    text-align: center;
}

    .logo-certificacao img {
        max-width: 220px;
        width: 100%;
        height: auto;
        padding: 0 !important;
        margin: 0 auto 16px auto;
        display: block;
    }

/* botões de download */
.btn-download {
    max-width: 100%;
    width: auto;
    white-space: normal;
    text-align: center;
}

/* -------------------- HOME -------------------- */
#home {
    min-height: 100svh;
    height: auto;
    background-size: cover;
    background-position: center center;
}

    #home .box,
    #home .box2 {
        min-height: 100svh;
    }

#crono {
    margin-top: clamp(-40px, -5vw, -80px);
}

    #crono .box {
        width: min(1000px, calc(100% - 24px));
    }

#sustentabilidade {
    min-height: 603px;
    height: auto;
    background-size: cover;
    background-position: center center;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* -------------------- EMPRESA / SUSTENTABILIDADE / PRODUTO / QUALIDADE -------------------- */
#sobre img,
#empresa img,
#premio img {
    max-width: 100%;
    height: auto;
}

#sobre .item,
#sobre .box {
    min-width: 0;
}

#sobre .texto,
.content-meioambiente,
.primary-content {
    min-width: 0;
}

/* tabela da página produto */
table {
    width: 100%;
    display: table;
}

.download {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

    .download li {
        padding: 0 !important;
    }

        .download li.list-item-title {
            width: 100%;
        }

/* -------------------- FOOTER -------------------- */
#contato .bg-azul,
#contato .bg-verde {
    min-width: 0;
}

#contato textarea.form-control {
    background-color: transparent;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    color: #fff;
}

#contato textarea::placeholder {
    color: #fff;
}

/* -------------------- BOTÃO FLUTUANTE -------------------- */
.flutuante {
    left: auto !important;
    right: 20px;
    bottom: 20px;
}

    .flutuante a.main {
        right: 20px;
        bottom: 20px;
    }

/* -------------------- NOTEBOOK / TABLET -------------------- */
@media (max-width: 1199.98px) {
    #header {
        margin-bottom: 0 !important;
    }

    #main .bg-detail {
        min-height: 420px;
    }

    .primary-content {
        margin-top: 40px !important;
    }

    #home .box,
    #home .box2 {
        min-height: 92svh;
    }

    #crono .box {
        flex-direction: column;
        gap: 20px;
    }

    #crono .btn {
        margin-left: 0;
    }

    #ind .icones {
        flex-wrap: wrap;
        gap: 24px;
    }

        #ind .icones .item {
            margin-left: 12px;
            margin-right: 12px;
        }

    #sustentabilidade {
        min-height: auto;
    }
}

/* -------------------- TABLET / MOBILE -------------------- */
@media (max-width: 991.98px) {
    #header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 0 !important;
    }

        #header .box-cab {
            margin-right: 16px;
        }

        #header .logo {
            margin-left: 16px;
            margin-right: 16px;
        }

            #header .logo img {
                max-width: 220px;
            }

    #main {
        padding-top: 0 !important;
    }

        #main .bg-detail {
            min-height: 360px;
            margin-bottom: 24px;
        }

    #sobre .item,
    #sobre .box {
        flex-direction: column;
    }

        #sobre .item .icone,
        #sobre .box .icone {
            margin-right: 0;
            margin-bottom: 12px;
        }

    #video {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #contato .bg-azul {
        padding: 2rem 1.5rem;
    }

    #contato .bg-verde {
        padding: 2rem 1.5rem;
    }
}

/* -------------------- MOBILE -------------------- */
@media (max-width: 767.98px) {
    #header .social {
        display: none !important;
    }

    #header .lang a {
        font-size: 16px;
    }

    #home {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

        #home .box,
        #home .box2 {
            min-height: auto;
            height: auto;
        }

            #home .box h1 {
                font-size: 32px;
                line-height: 1.15;
            }

            #home .box h3 {
                font-size: 22px;
                line-height: 1.2;
            }

            #home .box h5 {
                font-size: 18px;
                line-height: 1.4;
            }

    #crono {
        margin-top: 20px;
    }

        #crono .box {
            width: calc(100% - 20px);
            padding: 20px 16px;
        }

            #crono .box .area {
                flex-direction: column;
                text-align: center;
            }

                #crono .box .area .faixa {
                    width: 80px;
                    height: 3px;
                    margin: 16px 0;
                }

                #crono .box .area .item.white,
                #crono .box .area .item.black {
                    text-align: center;
                }

    #sobre h3,
    #sobre .titulo,
    #sobre .leg,
    #main p,
    #sobre p {
        word-break: normal;
    }

    #sobre h3 {
        font-size: 30px !important;
        line-height: 1.15 !important;
    }

    #sobre p,
    #main p {
        font-size: 16px !important;
        line-height: 1.5;
    }

    h1, h2, h3, h4, h5 {
        word-wrap: break-word;
    }

    .btn-download {
        width: 100% !important;
    }

    .download {
        display: block;
    }

        .download li {
            display: block !important;
            margin-bottom: 10px;
        }

    table,
    thead,
    tbody,
    tr,
    td,
    th {
        font-size: 13px;
    }

    .logo-certificacao img {
        max-width: 170px;
    }

    .flutuante a.main {
        width: 60px;
        height: 60px;
    }

        .flutuante a.main i {
            font-size: 36px;
        }
}

/* -------------------- TELAS MUITO PEQUENAS -------------------- */
@media (max-width: 480px) {
    #main .bg-detail {
        min-height: 280px;
    }

    .primary-content {
        margin-top: 24px !important;
    }

    #home .box h1 {
        font-size: 28px;
    }

    #home .box h3 {
        font-size: 20px;
    }

    #home .box h5 {
        font-size: 16px;
    }

    #sobre h1,
    #empresa h1,
    #sustentabilidade h1,
    #ind h1 {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    #contato h4 {
        font-size: 26px;
    }

    #contato h5 {
        font-size: 16px;
    }
}
