/* style.css */
/* Adicione suas regras de estilo aqui */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Aplicando estilos de fonte */
header,
h1,
h2,
h3,
form button {
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
}
h1 {
  color: #182c61;
}
/* 2. Aplicando a fonte com fallback */
body,
input,
textarea {
  font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Início dos estilos do header */
header {
  color: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  left: 0;
  width: 100%;
  z-index: 1000;
}
.logo img,
.custom-logo {
  max-height: 90px; /* valor padrão (pode ser sobrescrito pelo Customizer) */
  height: auto;
  width: auto;
}
.admin-bar header.header {
  top: 32px !important;
}
/* Fim dos estilos do header */

/* Aplicando estilos do offcanvas-menu */
.admin-bar .offcanvas {
  top: 32px !important;
}

/* 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 dos estilos das páginas de single post */
.featured-image img {
  max-width: 100%;
  height: auto;
}
.post-item p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #555;
}
.post-meta {
  color: #666;
}
/* Fim dos estilos da página de single post */

/*Início das classes do footer */
footer#site {
  padding: 16px 0;
}
footer#site .container .footer-logo img {
  height: 25px;
}
/*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 */

/* Estilos para os boxes de categoria */
.box-categoria {
  margin-bottom: 2rem;
}

.box-category-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Edições widget */
.edicoes-widget {
  margin-bottom: 2rem;
}

.edicoes-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.edicoes-content .todas-edicoes {
  display: block;
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
  text-decoration: none;
}

/* Estilos adicionais para o box de categoria */
.box-categoria .position-relative {
  overflow: hidden;
}

.box-categoria .position-absolute {
  transition: all 0.3s ease;
}

.box-categoria .position-relative:hover .position-absolute {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0)
  );
}

/* Link VER TODOS */
.box-categoria .text-end a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Aproximar o título da foto e diminuir os gutters horizontais no desktop */
@media (min-width: 992px) {
  .thumb-additional {
    width: 105px; /* largura desejada (apenas CSS) */
    height: 85px; /* altura desejada no desktop */
    aspect-ratio: auto;
  }
  .box-categoria .post-item .row {
    --bs-gutter-x: 0.5rem;
  } /* encosta mais o título */
  .box-categoria .post-item .h6 {
    margin-top: 0;
  } /* remove espaço acima do título */
  .box-categoria .post-item .h6 {
    line-height: 1.3; /* base para o cálculo da altura */
  }
  .box-categoria .post-item .h6 a {
    display: -webkit-box; /* necessário para o clamp */
    -webkit-box-orient: vertical; /* necessário para o clamp */
    -webkit-line-clamp: 5; /* Chrome/Safari/Edge */
    line-clamp: 5; /* suporte moderno */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 6.5em; /* 5 linhas * 1.3 (line-height) */
  }
}

.whatsapp-button svg path {
  fill: #25d366;
}
.facebook-button svg path {
  fill: #0866ff;
}
.linkedin-button svg path {
  fill: #0866ff;
}
.x-button svg path {
  fill: #000000;
}
.telegram-button svg path {
  fill: #26a5e4;
}

/*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 */
  }
  /* Aplicando estilos do header */
  .admin-bar header.header {
    top: 0 !important;
  }
  /* Aplicando estilos do offcanvas-menu */
  .admin-bar .offcanvas {
    top: 46px !important;
  }
  .post-item {
    margin-bottom: 1rem;
  }

  .edicoes-widget {
    margin-top: 2rem;
  }
}
@media (max-width: 767px) {
  .box-categoria .col-7,
  .box-categoria .col-5 {
    width: 100%;
  }

  .box-categoria .post-item {
    margin-bottom: 1rem;
  }
}
