/* style.css */
/* Adicione suas regras de estilo aqui */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root{
  --brand-green-neon: #86E926;
  --brand-green: #579C2E;      /* principal (médio) */
  --brand-green-alt: #589C2E;  /* variação bem próxima */
  --brand-green-dark: #305A1A; /* escuro (ótimo p/ fundo e hover) */
  --brand-black: #000000;
  --brand-green-light: #39ab00; /* mais claro */

  --brand-blue: #182c61;       /* seu h1 (mantém) */
  --text: #111111;
  --link: var(--brand-green-dark);
  --link-hover: #000000;
  --text-link-green: #63B35C;
   /* Cores das categorias */
  --cat-esportes: #579C2E;
  --cat-politica: #009ddb;
}
/* Aplicando estilos de fonte */
header,
h1,
h2,
h3,
form button {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
}
h1 {
  color: var(--brand-blue);
}
h2 {
  color: var(--brand-green);
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
}
/* 2. Aplicando a fonte com fallback */
body,
input,
textarea {
  font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Se o header só vira fixo/sticky em algum estado/classe, mantenha também */
body.admin-bar .site-header-wrap.is-sticky,
body.admin-bar .site-header-wrap.sticky,
body.admin-bar .site-header-wrap.fixed {
  top: 32px;
}

/* Início dos estilos do header */

/* Mantém fundo sólido quando estiver sticky */
.site-header-wrap {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
}

header {
  color: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  left: 0;
  width: 100%;
}
.logo img,
.custom-logo {
  max-height: 90px; /* valor padrão (pode ser sobrescrito pelo Customizer) */
  height: auto;
  width: auto;
}
/* Fim dos estilos do header */

/* Início dos estilos da estrutura das páginas */
.container {
  max-width: 1280px;
  width: 100%;
}
section p {
  margin-bottom: 25px;
}
/* Fim dos estilos da estrutura das páginas */

/*Início das classes do footer */
footer#site {
  padding: 16px 0;
  background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
}
footer#site .container .footer-logo img {
  height: 50px;
}
.footer-bottom {
  background-color: var(--brand-green-dark); /* navy principal */
}
.footer-bottom a {
  color: var(--brand-green-light);
}
/*Fim das classes do footer */

/* Classe de imagem fluída */
.img-fluid {
  max-width: 100%;
  height: auto;
}
/* Fim da Classe de imagem fluída */

/*Início das classes da paginação */
#pagination .barra-bottom p {
  margin: 0;
  padding: 15px;
}
#pagination .posts-per-page-form {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
#pagination .posts-per-page-form select {
  margin: 10px;
  padding: 5px;
}
#pagination .pagination {
  text-align: right;
  padding: 10px;
}
/*Fim das classes da paginação */

/*Início das classes da página de contato - formulário */
.contact-form textarea {
  resize: none;
  height: 180px;
}
.contact-form :focus,
textarea:focus {
  outline-color: #182c61;
}
.contact-text,
.contact-form {
  padding: 0 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-form button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
}
.contact-form button:hover {
  background-color: #45a049;
}
/*Fim das classes da página de contato - formulário */

/* Importando arquivos de fontes */
@font-face {
  font-family: "Material Symbols Outlined";
  src: url("../fonts/material-symbols/outlined.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.5em; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/static/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/static/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Mesma coisa para Poppins */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("trueType");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Fim da importação dos arquivos de fontes */

/*para garantir responsividade do banner*/
.banner-home-right-1 img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
  /* Aplicando estilos na estrutura das páginas */
  .container {
    max-width: 1200px;
    padding: 0 15px; /* Adiciona espaço nas laterais do container em dispositivos móveis */
  }
  .post-item {
    margin-bottom: 1rem;
  }
}

/* Desktop: wrapper (header + navbar) fica sticky; header interno vira estático */
@media (min-width: 992px) {
  .site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
  }
  /* Ajuste do header quando a Admin Bar do WP está presente (usuário logado) */
  body.admin-bar .site-header-wrap {
    top: 32px; /* altura da admin bar no desktop */
}
}