/* ============================
   GERAL
   ============================ */

.hr2 {
    background-color: #8AC440;
    opacity: 1;
    border: none;
    height: 3px;
    width: 20%;
    margin: 0;
    margin-bottom: 20px;
}

/* ============================
   HERO
   ============================ */

.hero {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    img {
        width: 100%;
        height: auto;
        display: block;
    }

    article {
        position: absolute;
        max-width: 575px;
        left: 10%;

        h1 {
            font-size: 36px;
            font-weight: 800;
            margin: 0;
        }

        p {
            font-size: 16px;
            font-weight: 400;
            margin: 0;
        }
    }
}

/* ============================
   SECTION SOLUÇÕES
   ============================ */

.section-solucoes {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

/* before-element */
.section-solucoes .before-element {
    color: #D9D8D6;
    font-size: 96px;
    font-weight: 900;
    position: absolute;
    z-index: 1;
}

.section-solucoes .before-element::after {
    content: "";
    position: absolute;
    top: 0;
    left: var(--flash-x);
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

/* hr dentro da seção */
.section-solucoes hr {
    background-color: #8AC440;
    opacity: 1;
    height: 3px;
    width: 20%;
    border: none;
    margin-bottom: 80px;
}

/* IMPORTANTE: usar > para evitar atingir o Swiper (filho direto) */
.section-solucoes>article:nth-of-type(1) {
    display: flex;
    justify-content: space-around;
    z-index: 10;
    gap: 10px;
}

/* títulos dentro do primeiro article (filho direto) */
.section-solucoes>article:nth-of-type(1) div h2 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 15px 0 0 0;
}

/* segundo article (filho direto) */
.section-solucoes>article:nth-of-type(2) {
    background-color: #F5F5F5;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.section-solucoes>article:nth-of-type(2) p {
    color: #052630;
    font-size: 16px;
    text-align: center;
    padding: 4px 0px;
}

/* swiper - escondido por padrão (será mostrado no mobile) */
.section-solucoes .mySwiper-solucoes {
    display: none;
}

/* ============================
   SECTION PORQUE
   ============================ */

.section-porque {
    margin-top: 70px;
}

.section-porque .hr2.sub {
    width: 100% !important;
    background-color: #F5F5F5;
    border: none;
    height: 1px;
}

.section-porque article {
    display: flex;
    justify-content: space-between;
}

.section-porque article div {
    max-width: 650px;
}

.section-porque article div h2 {
    color: #052630E5;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.section-porque article div .p-title {
    margin: 0;
    padding: 15px 0 0 0;
    color: #78AD3E;
    font-weight: 700;
    font-size: 20px;
}

.section-porque article div .h2-sub {
    color: #78AD3E;
    font-size: 16px;
    font-weight: 400;
}

/* ============================
   SECTION DIFERENCIAIS
   ============================ */

.section-diferenciais {
    margin-top: 60px;
}

.section-diferenciais h2 {
    color: #052630E5;
    font-size: 36px;
    font-weight: 800;
}

.section-diferenciais article:nth-of-type(1) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 0 0;
}

.section-diferenciais article:nth-of-type(1) div {
    background-color: #F5F5F5;
    height: 206px;
    width: 23%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-diferenciais article:nth-of-type(1) div h2 {
    color: #78AD3E;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.section-diferenciais article:nth-of-type(1) div p {
    color: #052630;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
}

.section-diferenciais article:nth-of-type(3) {
    margin-top: 150px;
    position: relative;
}

.section-diferenciais .before-element2 {
    color: #D9D8D6;
    font-size: 96px;
    font-weight: 900;
    position: absolute;
    z-index: 1;
    top: -96px;
}

.section-diferenciais .before-element2::after {
    content: "";
    position: absolute;
    top: 0;
    left: var(--flash-x);
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.section-diferenciais article:nth-of-type(3) iframe {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ============================
   SECTION LIDERANÇA
   ============================ */

.section-lideraca {
    margin-top: 80px;
    margin-bottom: 80px;
}

.section-lideraca h2 {
    font-weight: 800;
    font-size: 32px;
    color: #052630E5;
    margin: 0;
}

.section-lideraca article {
    width: 100%;
    margin-top: 40px;
    color: #052630;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.section-lideraca article div {
    width: 273px;
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 372px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
    transition: box-shadow .3s ease, background-color .3s ease;
}

.section-lideraca article div h3 {
    font-weight: 700;
    font-size: 16px;
    margin: 10px 0 0 0;
}

.section-lideraca article div a {
    margin: 7px 0 7px 0;
    color: #052630;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color .3s ease;
}

/* Linha animada */
.section-lideraca article div a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #8AC440;
    transition: width .3s ease;
}

.section-lideraca article div p {
    margin-top: 3px;
    text-align: center;
    line-height: 18px;
}

.section-lideraca article div a:hover {
    color: #8AC440;
}

.section-lideraca article div a:hover::after {
    width: 100%;
}

.section-lideraca article div img {
    transform: translateZ(40px);
    transition: transform .3s ease;
}

.section-lideraca article div::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.section-lideraca article div:hover {
    box-shadow: 0 25px 20px rgba(0, 0, 0, 0.15);
    background-color: #FFF;
}

/* ============================
   SECTION CERTIFICADO
   ============================ */

.section-certificado {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 50px;
}

.section-certificado article {
    max-width: 680px;
}

.section-certificado article h2 {
    color: #78AD3E;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    margin: 0;
}

/* ============================
   SECTION PRODUTOS
   ============================ */

.section-produtos {
    h2 {
        font-weight: 800;
        font-size: 32px;
        color: #052630E5;
        margin: 0;
    }

    article {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        div {
            h2 {
                font-size: 18px;
                margin: 30px 0 0 0;
                line-height: 25px;
                font-weight: 700;
                color: #78AD3E;
            }

            p {
                font-size: 18px;
                margin: 0;
                line-height: 25px;
                font-weight: 400;
                color: #052630;
            }
        }
    }
}

/* ============================
   SECTION MODULAR
   ============================ */

.section-modular {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.section-modular img {
    width: 100%;
    display: block;
}

.section-modular article {
    position: absolute;
}

.section-modular article h2 {
    color: #FFF;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin: 0;
}

.section-modular article h2 span:nth-of-type(1) {
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 70px;
}

.section-modular article h2 span:nth-of-type(2) {
    position: relative;
    top: -5px;
    font-size: 24px;
}

/* ============================
   MODAL
   ============================ */

.modal-lider {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-lider.active {
    display: flex;
}

.modal-content {
    background: #052630;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    animation: modalIn .3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: #FFF;
}

.modal-content img {
    display: block;
    margin: 0 auto 20px auto;
    width: 15%;
    animation: flutuar 3s ease-in-out infinite;
}

#lider-texto {
    max-height: 450px;
    overflow: hidden;
    overflow-y: auto;
}

#lider-nome {
    text-align: center;
    font-size: 20px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    float: right;
    color: #FFF;
}

/* Logo da Modal */
@keyframes flutuar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.footer {
    margin-top: 0px !important;
}

/* ============================
   RESPONSIVO
   ============================ */

.swiper-diferenciais {
    display: none !important;

    div {
        p:nth-of-type(1) {
            color: #78AD3E;
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        p:nth-of-type(2) {
            color: #052630;
            font-size: 14px;
            line-height: 18px;
            text-align: center;
        }
    }
}

@media (max-width: 1285px) {
    .section-lideraca article {
        grid-template-columns: repeat(3, 1fr);

        div {
            width: 100%;
        }
    }
}

@media (max-width: 992px) {
    .section-solucoes>article:nth-of-type(1) {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }

    .section-solucoes>article:nth-of-type(1) div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero {
        overflow: hidden;
        padding-top: 90px;
    }

    .section-porque article {
        flex-direction: column;
    }

    .section-diferenciais {
        h2 {
            font-size: 30px;
        }
    }

    .section-diferenciais article:nth-of-type(1) {
        display: none !important;
    }

    .section-diferenciais article:nth-of-type(3) {
        margin-top: 130px;

        .before-element2 {
            font-size: 60px;
            line-height: 50px;
        }
    }

    .swiper-diferenciais {
        display: block !important;

        h2 {
            color: #78AD3E;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
        }

        p {
            color: #052630;
            font-size: 16px;
            line-height: 18px;
            text-align: center;
        }

        .swiper-slide {
            background-color: #F5F5F5;
            height: 206px;
            width: 23%;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
    }
}

@media (max-width: 767px) {
    .section-lideraca article {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-produtos {
        h2 {
            font-size: 25px;
        }

        article {
            flex-direction: column;

            div {
                h2 {
                    font-size: 16px;
                }

                p {
                    font-size: 14px;
                }
            }
        }

        .img-container {
            margin-top: 50px;
        }
    }

    .section-certificado {
        flex-direction: column;
        gap: 20px;
        margin-top: 100px;

        article {
            h2 {
                font-size: 16px;
            }

            p {
                font-size: 14px;
            }
        }
    }

    .section-modular {
        img {
            height: 200px;
        }

        article {
            h2 {
                font-size: 25px;

                span:nth-of-type(1) {
                    font-size: 50px;
                }

                span:nth-of-type(2) {
                    font-size: 20px;
                }
            }
        }
    }
}

@media (max-width: 576px) {
    .section-diferenciais article:nth-of-type(1) {
        display: none !important;
    }

    .section-solucoes article:nth-of-type(1) {
        display: none;
    }

    .mySwiper-solucoes {
        display: block !important;
        width: 100%;
        overflow: hidden;
    }

    .mySwiper-solucoes .swiper-slide {
        flex: 0 0 auto !important;
        width: calc(50% - 10px) !important;
        text-align: center;
    }

    .mySwiper-solucoes .swiper-wrapper {
        height: auto !important;
    }

    .mySwiper-solucoes img {
        width: 100%;
        height: auto;
        display: block;
    }

    .hero {
        padding-top: 80px;

        img {
            height: 250px;
        }

        article {
            left: 4%;

            h1 {
                font-size: 22px;
            }

            p {
                font-size: 14px;
            }
        }
    }

    .before-element {
        font-size: 70px !important;
    }

    .section-solucoes hr {
        width: 40% !important;
    }

    .section-solucoes>article:nth-of-type(2) {
        padding: 15px;

        p {
            font-size: 14px;
        }
    }

    .hr2 {
        width: 40% !important;
    }

    .section-porque {
        article {
            div {
                h2 {
                    font-size: 30px;
                }

                p {
                    font-size: 14px;
                }

                hr {
                    margin: 0;
                }
            }
        }
    }

    .section-lideraca article {
        grid-template-columns: repeat(1, 1fr);
        place-items: center;

        div {
            width: 273px;
        }
    }

    .section-modular {
        article {
            h2 {
                font-size: 20px;
                line-height: 5px;

                span:nth-of-type(1) {
                    font-size: 40px;
                }

                span:nth-of-type(2) {
                    font-size: 15px;
                }
            }
        }
    }
}