/* =====================================================
   ARTIGO
===================================================== */
@import "reset.css";

.artigo {

    width: 100%;

    margin: 60px 0 20px;

    font-family: var(--fonte-principal);

}


/* =====================================================
   DESTAQUE DO ARTIGO
===================================================== */

.destaque-artigo {

    position: relative;

    width: 100%;

    height: 380px;

    background-color: #29618c;

    padding: 60px 30px 30px;

    box-sizing: border-box;

}


/* =====================================================
   IMAGEM DO ARTIGO
===================================================== */

.imagem-artigo {

    position: relative;

    width: calc(100% - 60px);

    height: 100%;

    margin-left: 30px;

    overflow: hidden;

    border-radius: 25px;

}


/* =====================================================
   IMAGEM
===================================================== */

.imagem-artigo-slide {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

    opacity: 0;

    transition: opacity 1.4s ease;

}


.imagem-artigo-slide.ativa {

    opacity: 1;

}


/* =====================================================
   TÍTULO SOBRE A IMAGEM
===================================================== */

.titulo-artigo {

    position: absolute;

    top: 80%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 70%;

    z-index: 3;

    text-align: center;

}


/* =====================================================
   H1
===================================================== */

.titulo-artigo h1 {

    margin: 0;

    color: var(--corBranca);

    font-size: 2.1rem;

    line-height: 1.2;

    font-weight: 600;

    text-align: center;

}


/* =====================================================
   INFORMAÇÕES DO ARTIGO
===================================================== */

.informacoes-artigo {

    width: calc(100% - 60px);

    margin: 18px auto 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


/* =====================================================
   AUTOR E DATA
===================================================== */

.informacoes-artigo {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 50px;

    text-align: center;

}


/* =====================================================
   INFORMAÇÕES DO ARTIGO
===================================================== */

.informacoes-artigo {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 1px;

    text-align: center;

}


.informacoes-artigo span {

    color: var(--corTexto);

    font-size: 1.2rem;

    font-weight: 400;

    text-align: center;

}


.informacoes-artigo strong {
    color: var(--azulEscuro);
    font-weight: 700;

}










/* =====================================================
   CONTEÚDO DO ARTIGO
===================================================== */

.conteudo-artigo {

    width: 100%;

    max-width: 1100px;

    margin: 40px auto;

    padding: 0 65px;

    box-sizing: border-box;

    color: var(--corTexto);

    font-family: var(--fonte-principal);

}


/* =====================================================
   PARÁGRAFOS
===================================================== */

.conteudo-artigo p {

    margin: 0 0 25px;

    font-size: 1rem;

    line-height: 1.4;

    font-weight: 500;

    text-align: justify;

}


/* =====================================================
   ÚLTIMO PARÁGRAFO
===================================================== */

.conteudo-artigo p:last-child {

    margin-bottom: 0;

}





/* =====================================================
   ÁREA DE COMENTÁRIO
===================================================== */

.area-comentario {

    width: 100%;

    max-width: 1000px;

    margin: 75px auto;

    font-family: var(--fonte-principal);

}







/* =====================================================
   FORMULÁRIO
===================================================== */

.formulario-comentario {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 5px;

}


/* =====================================================
   CAMPOS
===================================================== */

.campo-comentario,
.campo {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.campo-comentario label,
.campo label {

    color: var(--corTexto);

    font-size: .95rem;

    font-weight: 500;
    margin-left: 15px;

}


/* =====================================================
   TEXTAREA
===================================================== */

.campo-comentario textarea {

    width: 100%;

    min-height: 150px;

    padding: 14px 16px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #d9dfe8;

    border-radius: 4px;

    outline: none;

    background: #fff;

    color: var(--corTexto);

    font-family: inherit;

    font-size: .75rem;

    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;

    gap: 20px;

}


.linha-dados .campo {

    flex: 1;

}


/* =====================================================
   INPUTS
===================================================== */

.campo input {

    width: 100%;

    height: 38px;

    padding: 0 16px;

    box-sizing: border-box;

    border: 1px solid #d9dfe8;

    border-radius: 4px;

    outline: none;

    background: #fff;

    color: var(--corTexto);

    font-family: inherit;

    font-size: .70rem;

    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 {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    align-self: flex-start;

    padding: 10px 15px;

    border: none;

    border-radius: 3px;

    background: var(--azulEscuro);

    color: #fff;

    font-family: inherit;

    font-size: .75rem;

    font-weight: 600;

    line-height: 1;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .2s ease;

}


.botao-comentario img {

    width: 14px;

    height: 14px;

    display: block;

    object-fit: contain;

}


.botao-comentario:hover {

    background: #1d3056;

    transform: translateY(-2px);

}





/* =====================================================
   ARTIGOS RELACIONADOS
===================================================== */

.artigos-relacionados {

    position: relative;

    width: 100%;

    margin-bottom: 30px;

    background: var(--corBranca);

    box-sizing: border-box;

}


/* =====================================================
   TÍTULO
===================================================== */

.titulo-artigos-relacionados {

    margin: 0 0 8px;

    text-align: center;

    color: var(--azulEscuro);

    font-size: 3rem;

    font-weight: 700;

}


/* =====================================================
   IMAGEM DE FUNDO
===================================================== */

.fundo-artigos-relacionados {

    width: 100%;

    height: 300px;

    overflow: hidden;

}


.fundo-artigos-relacionados img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

}


/* =====================================================
   LISTA DOS ARTIGOS
===================================================== */

.lista-artigos-relacionados {

    position: absolute;

    left: 50%;

    bottom: 80px;

    transform: translateX(-50%);

    width: 80%;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    z-index: 3;

}


/* =====================================================
   CARD DO ARTIGO
===================================================== */

.card-artigo-relacionado {

    width: 100%;

    min-height: 150px;

    display: flex;

    align-items: flex-start;

    box-sizing: border-box;

    padding: 10px;

    background: var(--corBranca);

    border: none;

    border-radius: 20px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

}


/* =====================================================
   IMAGEM DO CARD
===================================================== */

.imagem-card-artigo {

    width: 170px;

    height: 160px;

    flex-shrink: 0;

    overflow: hidden;

}


.imagem-card-artigo img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 16px;

}


/* =====================================================
   CONTEÚDO DO CARD
===================================================== */

.conteudo-card-artigo {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 0 10px;

    box-sizing: border-box;

}


/* =====================================================
   TÍTULO DO CARD
===================================================== */

.conteudo-card-artigo h3 {

    width: 100%;

    margin: 10px 0 4px;

    color: var(--corTexto);

    font-size: 1.2rem;

    line-height: 1.2;

    font-weight: 700;

}


/* =====================================================
   DATA
===================================================== */

.conteudo-card-artigo span {

    margin-bottom: 5px;

    color: var(--corTexto);

    font-size: .73rem;

    font-weight: 500;

    font-style: italic;

}


/* =====================================================
   DESCRIÇÃO
===================================================== */

.conteudo-card-artigo p {

    width: 100%;

    margin: 0 0 4px;

    color: var(--corTexto);

    font-size: .73rem;

    line-height: 1.2;

    font-weight: 400;

}


/* =====================================================
   LINK
===================================================== */

.link-artigo-relacionado {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: auto;

    color: var(--corTexto);

    font-size: .8rem;

    font-weight: 400;

    font-style: italic;

    text-decoration: none;

    transition: .3s ease;

}








