/*
Theme Name: Cegonheiros do Brasil
Theme URI: https://cegonheirosdobrasil.com.br
Description: Tema personalizado para o blog Cegonheiros do Brasil.
Author: Arsnova Digital
Author URI: https://arsnova.digital
Version: 1.0.0
License: Copyright (C) 2025 Pergamo Comunicação. Todos os direitos reservados.

*/

/*--------------------------------------------------------------
# Normalização
--------------------------------------------------------------*/

body {
    /* Remove as margens do conteúdo em todos os navegadores. */
    margin: 0;
}

img {
    /* Ajusta as imagens para não extrapolarem as dimensões de seu contentor. */
    height: auto;
    max-width: 100%;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    /* Permite estilizar botões no iOS e no Safari. */
    -webkit-appearance: button;
}

* {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Padronização
--------------------------------------------------------------*/

:root {
    --verde: #006437;
    --verde-claro: #96c31e;
    --vermelho: #e1411e;
    --laranja: #eb5a23;
    --salmao: #f5af8c;
    --cinza-escuro: #575757;

    --cor-corpo-texto: black;
    --cor-titulo: var(--verde);

    --letra-corpo-texto: 'Avenir',
        sans-serif;
    --letra-titulo: 'Avenir',
        sans-serif;
    --letra-menu: 'Transit CAT', sans-serif;

    --tamanho-coluna-central: 800px;
    --tamanho-coluna-indice: 1200px;
}

html {
    font-size: 16px;
}

body {
    padding-top: 2rem;
}

body,
button,
input,
select,
optgroup,
textarea {
    color: var(--cor-corpo-texto);
    font-family: var(--letra-corpo-texto);
    font-size: 1rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--cor-titulo);
    font-family: var(--letra-titulo);
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
}

a {
    color: var(--cor-titulo);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/*--------------------------------------------------------------
# Cabeçalho
--------------------------------------------------------------*/

.site-header {
    margin: 0 auto;
    max-width: var(--tamanho-coluna-index);
}

.site-header-container {
    line-height: 1;
    margin-bottom: 3rem;
    text-align: center;
}

.site-title,
.site-title a {
    color: var(--cor-titulo-blog);
    font-family: var(--letra-titulo);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    text-decoration: none;
}

.site-header-bloginfo-description {
    margin: 0 0 1rem;
}

#site-navigation {
    font-family: var(--letra-menu);
    margin: 0 auto;
    max-width: var(--tamanho-coluna-indice);
    text-transform: uppercase;
}

.mobile-navigation {
    font-size: 1.25rem;
    margin: 2rem auto;
    width: 100%;
}

.mobile-navigation ul {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-evenly;
    padding: 0 20px;
}

.main-navigation {
    display: none;
    
    font-size: 1.25rem;
}

.main-navigation ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    padding: 0 20px;
    width: 50%;
    float: right;
}

.logo-grande {
    display: none;
    padding: 0 36px;
}

.logo-pequeno {
    padding: 0 12px;
}

@media screen and (min-width: 670px) {
    .logo-pequeno {
        display: none;
    }

    .logo-grande {
        display: block;
    }

    .mobile-navigation {
        display: none;
    }

    .main-navigation {
        display: block;
    }
}

/*--------------------------------------------------------------
# Índices
--------------------------------------------------------------*/

.indice-titulo {
    font-size: 2.25rem;
    margin: 3rem auto;
    text-align: center;
}

.post-cartao {
    border-bottom: 1px solid #efefef;
    font-size: 0.75rem;
    margin-bottom: 3rem;
    padding: 0 0.25rem 1rem 0.25rem;
    width: 320px;
}

@media screen and (max-width: 820px) {
    .post-cartao {}
}

@media screen and (max-width: 720px) {
    .post-cartao {
        width: auto;
        max-width: 300px;
    }
}

@media screen and (max-width: 670px) {
    .post-cartao {
        width: auto;
        max-width: 400px;
    }
}

.post-cartao-titulo {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: var(--letra-titulo);
}

.post-cartao-imagem {
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    height: 220px;
    margin-bottom: 1.5rem;
    width: 100%;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.post-cartao-data {
    margin-right: 1rem;
}

.lista-cartoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/*--------------------------------------------------------------
# Conteúdo
--------------------------------------------------------------*/

.site-content {
    margin: 0 auto;
    max-width: var(--tamanho-coluna-indice);
    padding: 0 20px;
}

/* Artigos */

article.post,
article.page {
    margin: 0 auto 3rem;
    max-width: var(--tamanho-coluna-central);
}

.entry-title {
    text-align: center;
	text-transform: none;
}

.entry-meta {
    color: #777;
    display: flex;
    justify-content: space-evenly;
    font-size: 0.75rem;
    line-height: 1;
    margin: 3rem auto 2rem;
    width: 320px;
}

.post-tags a::after {
    content: ', ';

}

.post-tags a:last-of-type:after {
    content: none;
}

.entry-content {}


.entry-footer {
    border-top: 0.5px solid black;
    font-size: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 0;
}


/* Paginação */

.pagination {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.page-numbers {
    padding-right: 4px;
}

.page-numbers.current {
    font-weight: 700;
}

/* Navegação entre posts */

.post-navigation {
    padding-top: 1rem;
}

.post-navigation .nav-links {
    display: flex;
    font-size: 0.9rem;
}

.post-navigation .nav-links>* {
    flex: 1;
}

.post-navigation .nav-links .nav-previous {
    margin-right: 0.25rem;
    text-align: left;
}

.post-navigation .nav-links .nav-next {
    margin-left: 0.25rem;
    text-align: right;
}

/*--------------------------------------------------------------
# Nuvem de tags
--------------------------------------------------------------*/

#nuvem-tags {
    background-color: #ebebeb;
    margin: 1rem auto 2rem;
    max-width: var(--tamanho-coluna-central);
    padding: 2rem;
    text-align: center;
}

#nuvem-tags .tag-cloud-link::after {
    content: "|";
    margin-left: 4px;
}

#nuvem-tags .tag-cloud-link:last-of-type::after {
    content: "";

}

/*--------------------------------------------------------------
# Buscas
--------------------------------------------------------------*/

.search-no-result {
    margin: 1rem auto 3rem;
    max-width: 640px;
    padding: 20px;
}

/*--------------------------------------------------------------
# Comentários
--------------------------------------------------------------*/

#comentarios {
    margin-bottom: 3rem;
    width: 100%;
}

#comments {
    font-size: 0.85rem;
    margin: 0 auto;
    max-width: var(--tamanho-coluna-central);
}

#comments h3 {
    font-size: 1.5rem;
}

#comments p {
    margin-bottom: 0;
}

#comments form textarea {
    width: 100%;
}

#comments .comment-form-author-info {
    display: flex;
    justify-content: space-between;
}

#comments .comment-form-author-info p {
    width: 33%;
}

#comments .comment-form-author-info input {
    width: 100%;
}

#comments ::placeholder {
    font-size: 0.75rem;
}

#comments input[type=submit] {
    appearance: none;
    background-color: #056839;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 8px 12px;
    text-transform: uppercase;
}


@media screen and (max-width: 640px) {

    #comments .comment-form-author-info {
        flex-direction: column;
    }

    #comments .comment-form-author-info p {
        width: 100%;
    }

    #comments .comment-form-author-info input {
        width: 100%;
    }

}

/*--------------------------------------------------------------
# Artigos relacionados
--------------------------------------------------------------*/

#artigos-relacionados {
    background-color: #FAF698;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

#artigos-relacionados h3 {
    font-size: 1.5rem;
}

#artigos-relacionados ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    list-style: none;
    margin: 0 auto;
    max-width: var(--tamanho-coluna-central);
    padding: 0;
    width: 100%;
}

#artigos-relacionados ul li {
    font-family: var(--letra-titulo);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
    text-transform: uppercase;
    width: 240px;
}



.artigo-relac-imagem {
    background-position: center;
    background-size: cover;

    height: 200px;
    margin-bottom: 0.5rem;
    width: 100%;
}


/*--------------------------------------------------------------
# Rodapé
--------------------------------------------------------------*/

.site-footer {
    background-color: var(--verde);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    color: white;
    font-size: 0.75em;
    line-height: 2;
    margin: 2rem auto 0;
    max-width: calc(var(--tamanho-coluna-indice) - 40px);
    padding: 2rem;
    text-align: center;
   
}

.site-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

@media screen and (max-width: 1024px) {
    .site-footer {
        margin: 1rem 1rem 0;
    }

    .site-footer-info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.arsnova {
    margin-top: 1rem;
}


/*--------------------------------------------------------------
# Capa
--------------------------------------------------------------*/

#destaque {
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    min-height: 400px;
    margin: 2rem auto 3rem;
    max-width: var(--tamanho-coluna-indice);
    position: relative;
    text-align: center;
    width: 100%;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

#destaque .mascara {
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 20px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}


.destaque {
	display: flex;
	flex-direction: column;
}

.destaque-conteudo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.destaque-titulo {
    color: white;
    font-family: var(--letra-titulo);
    font-size: 2.4rem;
	line-height: 1.25;
    max-width: var(--tamanho-coluna-central);
    text-transform: uppercase;
	text-align: center;
}

.destaque-imagem {
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	max-height: 320px;
	object-fit: cover;
	width: 100%;
}

.destaque-wrapper {
	background-color: var(--laranja);
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	padding: 24px;
}

.destaque-wrapper a {
    color: white;
}

.destaque-excerpt {
	display: block;
	color: #ffffff;
	margin: 10px auto;
	text-align: center;
	max-width: 600px;
}

@media screen and (max-width: 720px) {
    .destaque-titulo {
        font-size: 1.8rem;
    }
}

.destaque-leia-mais {
    appearance: none;
    background-color: white;
    border: 0;
    border-radius: 10px;
    color: black;
    cursor: pointer;
    font-size: 0.75rem;
    margin-top: 1rem;
    padding: 10px;
    text-transform: uppercase;
    width: 10rem;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.destaque-leia-mais:hover {
    text-decoration: none;
}


/*--------------------------------------------------------------
# Barras de widgets
--------------------------------------------------------------*/

#sidebar ul {
    margin: 0 auto;
    max-width: var(--tamanho-coluna-indice);
    padding: 0;
}

#sidebar .wp-block-columns {
    gap: 0;
}

#sidebar .wp-block-column {
    background-color: var(--cinza-escuro);
    border-radius: 20px;
    color: white;
    margin: 1.25rem;
    padding: 1rem 2rem 2rem;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

#sidebar .wp-block-column p {
    font-size: 0.85rem;
}

#sidebar .wp-block-heading, #sidebar a {
    color: var(--verde-claro);
}

.wp-block-search__button {appearance: none;
    background-color: var(--verde-claro);
    border: 0;
    color: black;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 12px;
    text-transform: uppercase;
    width: 200px;}


/*--------------------------------------------------------------
# Elementos
--------------------------------------------------------------*/

/* Legenda de imagens */

.wp-block-image figcaption {
    background-color: black;
    color: white;
    font-size: 0.75rem;
    opacity: 75%;
    padding: 0.5rem;
    text-align: center;
}

/* Friso */

.friso {
    background-image: url('img/friso-azul.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 50px;
    width: calc(100vw - 40px);
    margin: 0 auto 3rem;
    max-width: var(--tamanho-coluna-central);
}


/*--------------------------------------------------------------
# Publicidade
--------------------------------------------------------------*/

#publicidade-topo {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 2rem auto;
}

#publicidade-manchete {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 2rem auto;
}


#publicidade-rodape {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 2rem auto 1rem;
    padding: 0 20px;
}


/*--------------------------------------------------------------
# Formulário de contato
--------------------------------------------------------------*/

.wpcf7-form {
    max-width: var(--tamanho-coluna-central);
    width: 100%;
}

form input,
form textarea {
    width: 100%;
}

form input[type=submit] {
    appearance: none;
    background-color: #056839;
    border: 0;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 8px 12px;
    text-transform: uppercase;
    width: 200px;
}