/* ------------------------- entenda -- */
.entenda {
    background: linear-gradient( to bottom, #1f2937 0%, #312d65 100% );
    padding: 20px 0;
}

.entenda-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.entenda h1 {
    color: #ffffff;
    text-align: center;
}

/* ------------------------- grid -- */
.entenda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: #f7f9f8;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

/* ------------------------- texto -- */
.entenda-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    max-width: 560px;
}

.entenda-texto p{
    text-align: justify;
}

/* ------------------------- destaque -- */
.entenda-destaque {
    background: transparent;
    font-size: 1.15rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.6;
    border-left: 6px solid #00ff99;
    padding-left: 18px;
    margin-bottom: 22px;
}

/* ------------------------- texto -- */
.entenda-texto p:not(.entenda-destaque) {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.entenda-texto p:last-child {
    margin-bottom: 0;
}

/* ------------------------- imagem -- */
.entenda-imagem {
    min-height: 320px;
    height: 100%;
}

.entenda-imagem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ------------------------- botão -- */
.entenda-vermais {
    display: none;
}

.entenda-titulo-desktop {
    display: block;
}

.entenda-titulo-mobile {
    display: none;
}

/* ------------------------- mobile -- */
@media (max-width: 768px) {

    .entenda {
        padding: 20px 16px;
    }

    .entenda-container {
        padding: 0 10px;
    }

    /* Títulos */
    .entenda h1,
    .entenda-titulo-mobile {
        margin-bottom: 20px;
    }

    .entenda-titulo-desktop {
        display: none;
    }

    .entenda-titulo-mobile {
        display: block;
    }


    /* Grid */
    .entenda-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }


    /* Texto */
    .entenda-texto {
        padding: 24px 20px;
        max-width: 100%;
    }

    .entenda-destaque {
        font-size: 1rem;
    }


    /* Imagem */
    .entenda-imagem {
        order: -1;
        min-height: auto;
    }

    .entenda-imagem img {
        aspect-ratio: 16 / 10;
        height: auto;
    }


    /* Conteúdo extra */
    .entenda-extra {
        display: none;
    }

    .entenda-extra.ativo {
        display: block;
    }


    /* Botão */
    .entenda-vermais {
        display: inline-flex;
        margin-top: 10px;
        padding: 0;
        background: transparent;
        border: none;
        color: #312d65;
        font-size: .9rem;
        font-weight: 700;
        cursor: pointer;

        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    .entenda-vermais:focus:not(:focus-visible) {
        outline: none;
    }
}

/* ------------------------- mobile landscape -- */
@media (max-width: 900px) and (orientation: landscape) {

    .entenda {
        padding: 40px 0;
    }

    .entenda-container {
        padding: 0 20px;
    }


    /* mantém título igual desktop */
    .entenda-titulo-desktop {
        display: block;
    }

    .entenda-titulo-mobile {
        display: none;
    }

    .entenda h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }


    /* volta para duas colunas */
    .entenda-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 10px;
    }


    /* texto próximo do desktop */
    .entenda-texto {
        padding: 35px;
        max-width: 100%;
    }


    .entenda-destaque {
        font-size: 1.05rem;
        line-height: 1.5;
        padding-left: 14px;
    }


    .entenda-texto p:not(.entenda-destaque) {
        font-size: .9rem;
        line-height: 1.5;
    }


    /* imagem lateral */
    .entenda-imagem {
        order: initial;
        min-height: 280px;
    }


    .entenda-imagem img {
        aspect-ratio: auto;
        height: 100%;
    }


    /* botão continua funcionando */
    .entenda-vermais {
        margin-top: 10px;
    }

}
