/* =====================================================
   ARTIGO — MOBILE
===================================================== */

@import "reset.css";


/* =====================================================
   ARTIGO
===================================================== */

.artigo {

    width: 100%;

    margin: 0 0 20px;

    font-family: var(--fonte-principal);

}


/* =====================================================
   DESTAQUE DO ARTIGO
===================================================== */

.destaque-artigo {

    position: relative;

    width: 100%;

    height: 350px;

    background-color: var(--azulEscuro);

    padding: 10px;

    box-sizing: border-box;

}


/* =====================================================
   IMAGEM DO ARTIGO
===================================================== */

.imagem-artigo {

    position: relative;

    width: 100%;

    height: 100%;

    margin: 0;

    overflow: hidden;

    border-radius: 12px;

}


/* =====================================================
   IMAGEM
===================================================== */

.imagem-artigo-slide {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center center;

    display: block;

    opacity: 0;

    transition:

        opacity 1.4s ease;

}


/* =====================================================
   IMAGEM ATIVA
===================================================== */

.imagem-artigo-slide.ativa {

    opacity: 1;

}

.imagem-artigo::after {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom,

            transparent 0%,

            rgba(29, 48, 86, .20) 25%,

            rgba(29, 48, 86, .40) 35%,

            rgba(29, 48, 86, .60) 55%,

            rgba(29, 48, 86, .80) 75%,

            #1D3056 100%);

}


/* =====================================================
   TÍTULO SOBRE A IMAGEM
===================================================== */

.titulo-artigo {

    position: absolute;

    left: 50%;

    bottom: 35px;

    transform: translateX(-50%);

    width: calc(100% - 30px);

    z-index: 3;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

}


/* =====================================================
   H1
===================================================== */

.titulo-artigo h1 {

    width: 100%;

    margin: 0;

    padding: 0;

    color: var(--corBranca);

    font-size: 1.5rem;

    line-height: 1.2;

    font-weight: 550;

    text-align: center;

}


/* =====================================================
   INFORMAÇÕES DO ARTIGO
===================================================== */

.informacoes-artigo {

    width: 100%;

    margin: 15px 0 0;

    padding: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    text-align: center;

}


/* =====================================================
   AUTOR E DATA
===================================================== */

.informacoes-artigo span {

    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    color: var(--corTexto);

    font-size: .9rem;

    line-height: 1.4;

    font-weight: 300;

    text-align: center;

}


/* =====================================================
   TEXTO EM DESTAQUE
===================================================== */

.informacoes-artigo strong {

    color: var(--azulEscuro);

    font-weight: 500;

}




/* =====================================================
   CONTEÚDO DO ARTIGO — MOBILE
===================================================== */

.conteudo-artigo {

    width: 100%;

    max-width: 100%;

    margin: 10px auto;

    padding: 0 20px;

    box-sizing: border-box;

    color: var(--corTexto);

    font-family: var(--fonte-principal);

}


/* =====================================================
   PARÁGRAFOS
===================================================== */

.conteudo-artigo p {

    width: 100%;

    margin: 0 0 20px;

    font-size: .9rem;

    line-height: 1.2;

    font-weight: 300;

    text-align: left;

}


/* =====================================================
   ÚLTIMO PARÁGRAFO
===================================================== */

.conteudo-artigo p:last-child {

    margin-bottom: 0;

}





/* =====================================================
   ÁREA DE COMENTÁRIO
===================================================== */

.area-comentario {

    width: 100%;

    max-width: 100%;

    margin: 50px auto 30px;

    padding: 0 20px;

    box-sizing: border-box;

    font-family: var(--fonte-principal);

}



/* =====================================================
   FORMULÁRIO — MOBILE
===================================================== */

.formulario-comentario {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 10px;

}


/* =====================================================
   CAMPOS
===================================================== */

.campo-comentario,
.campo {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 4px;

}


/* =====================================================
   LABELS
===================================================== */

.campo-comentario label,
.campo label {

    width: 100%;

    margin: 0;

    padding: 0 4px;

    box-sizing: border-box;

    color: var(--corTexto);

    font-size: .9rem;

    font-weight: 400;

}


/* =====================================================
   TEXTAREA
===================================================== */

.campo-comentario textarea {

    width: 100%;

    height: 100px;

    min-height: 100px;

    padding: 10px 12px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #d9dfe8;

    border-radius: 5px;

    outline: none;

    background: #fff;

    color: var(--corTexto);

    font-family: inherit;

    font-size: .9rem;
    font-weight: 400;

    line-height: 1.4;

    transition:
        border-color .3s ease,
        box-shadow .3s ease;

}


.campo-comentario textarea:focus {

    border-color: #29618c;

    box-shadow:
        0 0 0 3px rgba(41, 97, 140, .10);

}


/* =====================================================
   NOME + E-MAIL
===================================================== */

.linha-dados {

    width: 100%;

    display: flex;

    flex-direction: row;

    align-items: flex-start;

    gap: 10px;

}


/* =====================================================
   CAMPOS NOME E E-MAIL
===================================================== */

.linha-dados .campo {

    width: calc((100% - 10px) / 2);

    flex: none;

}


/* =====================================================
   INPUTS
===================================================== */

.campo input {

    width: 100%;

    height: 34px;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #d9dfe8;

    border-radius: 5px;

    outline: none;

    background: var(--corBranca);

    color: var(--corTexto);

    font-family: inherit;

    font-size: .8rem;
    font-weight: 300;

    transition:
        border-color .3s ease,
        box-shadow .3s ease;

}


.campo input:focus {

    border-color: #29618c;

    box-shadow:
        0 0 0 3px rgba(41, 97, 140, .10);

}


/* =====================================================
   BOTÃO
===================================================== */

.botao-comentario {

    width: 50%;

    min-height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    align-self: flex-start;

    margin-top: 5px;

    padding: 7px 2px;

    box-sizing: border-box;

    border: none;

    border-radius: 4px;

    background: var(--azulEscuro);

    color: var(--corBranca);

    font-family: inherit;

    font-size: .8rem;

    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .2s ease;

}


/* =====================================================
   ÍCONE
===================================================== */

.botao-comentario img {

    width: 12px;

    height: 12px;

    display: block;

    object-fit: contain;

}


/* =====================================================
   HOVER
===================================================== */

.botao-comentario:hover {

    background: #1d3056;

    transform: translateY(-1px);

}




/* =====================================================
   ARTIGOS RELACIONADOS — MOBILE
===================================================== */

.artigos-relacionados {

    width: 100%;

    margin: 30px 0 30px;

    padding: 0 15px;

    box-sizing: border-box;

    font-family: var(--fonte-principal);

}


/* =====================================================
   TÍTULO
===================================================== */

.titulo-artigos-relacionados {

    width: 100%;

    margin: 0 0 20px;

    padding: 0;

    color: var(--corTexto);

    font-size: 1.5rem;

    line-height: 1.2;

    font-weight: 600;

    text-align: center;


}


/* =====================================================
   FUNDO
   NO MOBILE NÃO SERÁ MOSTRADO
===================================================== */

.fundo-artigos-relacionados {

    display: none;

}


/* =====================================================
   LISTA
===================================================== */

.lista-artigos-relacionados {

    position: relative;

    width: 100%;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

/* =====================================================
   CARD
===================================================== */

.card-artigo-relacionado {

    width: 100%;

    min-width: 100%;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    padding: 8px;

    border: 1px solid var(--corTexto);

    border-radius: 15px;

    background: var(--corBranca);

    box-shadow: none;

    opacity: 1;

    transform: translateX(0);

    transition:
        opacity .45s ease,
        transform .45s ease;



}


/* =====================================================
   CARD OCULTO
===================================================== */

.card-artigo-relacionado.oculto {

    display: none;

}


/* =====================================================
   IMAGEM
===================================================== */

.imagem-card-artigo {

    width: 100%;

    height: 210px;

    flex-shrink: 0;

    overflow: hidden;

    margin: 0;

}


/* =====================================================
   IMAGEM DO CARD
===================================================== */

.imagem-card-artigo img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    border-radius: 14px;

}


/* =====================================================
   CONTEÚDO
===================================================== */

.conteudo-card-artigo {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 0;

    box-sizing: border-box;

}


/* =====================================================
   TÍTULO DO CARD
===================================================== */

.conteudo-card-artigo h3 {

    width: 100%;

    margin: 5px 0 5px;

    padding: 0;

    color: var(--corTexto);

    font-size: 1.2rem;

    line-height: 1.2;

    font-weight: 550;


    /* Limita o título a no máximo 2 linhas */

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    line-clamp: 2;

    overflow: hidden;

}


/* =====================================================
   DATA
===================================================== */

.conteudo-card-artigo span {

    margin: 0 0 5px;

    color: var(--corTexto);

    font-size: .78rem;

    line-height: 1.2;

    font-weight: 300;

    font-style: italic;

}


/* =====================================================
   DESCRIÇÃO
===================================================== */

.conteudo-card-artigo p {


    width: 100%;

    margin: 0 0 5px;

    color: var(--corTexto);

    font-size: .78rem;

    line-height: 1.2;

    font-weight: 300;


    /* Limita o título a no máximo 2 linhas */

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 4;

    line-clamp: 4;

    overflow: hidden;

}


/* =====================================================
   LER MAIS
===================================================== */

.link-artigo-relacionado {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 0;

    color: var(--corTexto);

    font-size: .8rem;

    font-weight: 400;

    font-style: italic;

    text-decoration: none;

    transition: .3s ease;

}



/* =====================================================
   HOVER
===================================================== */

.link-artigo-relacionado:hover {

    opacity: .7;

    transform: translateX(2px);

}


/* =====================================================
   PAGINAÇÃO
===================================================== */

.paginacao {

    width: 100%;

    margin-top: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

}


/* =====================================================
   CONTADOR
===================================================== */

.paginacao span {

    color: var(--azulEscuro);

    font-size: .9rem;

    font-weight: 500;

}


/* =====================================================
   BOTÕES
===================================================== */

.paginacao-botoes {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}


/* =====================================================
   BOTÃO
===================================================== */

.paginacao button {

    width: 30px;

    height: 30px;

    padding: 0;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    outline: none;

    border-radius: 50%;

    background-color: var(--azulEscuro);

    cursor: pointer;

    transition:
        opacity .3s ease,
        transform .2s ease;

}


/* =====================================================
   ÍCONE
===================================================== */

.paginacao button img {

    width: 9px;

    height: 9px;

    display: block;

    object-fit: contain;

}


/* =====================================================
   VOLTAR
===================================================== */

.pagina-anterior img {

    transform: rotate(180deg);

}


/* =====================================================
   BOTÃO DESATIVADO
===================================================== */

.paginacao button:disabled {

    opacity: .35;

    cursor: default;

}


/* =====================================================
   HOVER
===================================================== */

.paginacao button:not(:disabled):hover {

    transform: scale(1.08);

}


/* =====================================================
   MOBILE PEQUENO
===================================================== */

@media (max-width: 380px) {

    .artigos-relacionados {

        margin-top: 40px;

        padding: 0 12px;

    }


    .titulo-artigos-relacionados {

        margin-bottom: 15px;

        font-size: 1.2rem;

    }


    .card-artigo-relacionado {

        padding: 7px;

        border-radius: 12px;

    }


    .imagem-card-artigo {

        height: 190px;

    }


    .imagem-card-artigo img {

        border-radius: 11px;

    }


    .conteudo-card-artigo h3 {

        font-size: 1.05rem;

    }


    .conteudo-card-artigo span {

        font-size: .75rem;

    }


    .conteudo-card-artigo p {

        font-size: .8rem;

        line-height: 1.35;

    }


    .paginacao {

        margin-top: 15px;

    }

}


/* =====================================================
   MOBILE — IMAGENS E VÍDEOS DO CONTEÚDO
===================================================== */


/* =====================================================
   IMAGENS
===================================================== */

.conteudo-artigo img {
    width: 100%;
    max-width: 100%;

    height: auto;

    display: block;
    margin: 0 auto;

    border-radius: 6px;

    object-fit: contain;
}


/* =====================================================
   VÍDEOS DO QUILL / YOUTUBE
===================================================== */

.conteudo-artigo iframe.ql-video {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    aspect-ratio: 16 / 9 !important;

    display: block !important;

    margin: 8px auto !important;
    padding: 0 !important;

    border: 1px solid #F36D53 !important;
    border-radius: 10px !important;

    background: #000;

    overflow: hidden;
}


/* =====================================================
   VÍDEO HTML5
===================================================== */

.conteudo-artigo video {
    width: 100%;
    max-width: 100%;

    height: auto;

    display: block;

    margin: 20px auto 8px;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #000;

    border: 1px solid #F36D53;
    border-radius: 10px;
}
