
/*
Theme Name: Norte Noticias
Theme URI: https://slagencia.com
Author: Seu Nome
Author URI: https://nortenoticias.com.br
Description: Tema WordPress leve, otimizado para SEO, performance e acessibilidade.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleanseo
Tags: seo, minimal, responsive, fast, accessibility-ready
*/

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  color: #222;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}
p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
}
a {
  color: #01507c;
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== CABEÇALHO GERAL ===== */
.site-header {
  background: #1a1a1a;
  padding: 1.5rem 0;
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.site-branding {
  display: flex;
  align-items: center;
}
.site-branding img {
  max-width: 200px;
  height: auto;
}



/* =====================================================
   === MAIN MENU - Estilos do Menu ===
   ===================================================== */


.menu-area {
	background: var( --wpdevs-gray2 );
}
.main-menu {
    height: 55px;
    display: flex;
    justify-content: center;
background: #fdc82e;
}
.main-menu ul {
    margin: 0;
    padding-left: 0;
}
.main-menu ul li {
    display: inline-block;
    line-height: 55px;
    position: relative;
}
.main-menu ul li.current_page_item > a{
    font-weight: bold;
}
.main-menu ul li a {
    color: #144285;
    padding: 0 30px;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
}
.main-menu ul li a:hover,
.main-menu ul li a:active
{
    color: var( --wpdevs-gray1 );
    transition: .5s all;
}
.main-menu ul li a:focus + ul
{
    display: block;
}
.main-menu li.menu-item-has-children::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc( 50% - 6px);
    width: 0px;
    height: 0px;
    border-top: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #000000;
    border-left: 6px solid transparent;
}
.main-menu ul.sub-menu {
    position: absolute;
    padding-left: 0;
    background-color: #1a4e98;
    z-index: 1;
    text-align: left;
    display: none;
}
.main-menu ul .menu-item-has-children:hover>ul,
.main-menu ul .menu-item-has-children:focus+ul {
    display: block
}
.main-menu ul.sub-menu li {
    width: max-content;
}
.main-menu ul.sub-menu a {
    color: #FFFFFF;
}
.menu-icon,
.check-button {
	cursor: pointer;
	display: none;
}
.menu-icon .bar1, 
.menu-icon .bar2, 
.menu-icon .bar3 {
    width: 28px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}
@media (max-width: 767px){
    .menu-icon,
    .check-button {
		display: block;
	}
    .check-button{
        border: none;
        background: transparent;
        height: 55px;
    }
	.main-menu ul{
		position: absolute;
		width: 100%;
		background: #000000;
		left: -999px;
		text-align: left;
		transition: all cubic-bezier(.79,.14,.15,.86) .5s;
        padding: 0;
        margin: 0;
        z-index: 1;
	}
    .main-menu ul:not(.sub-menu){
        margin-top: 55px;
    }
	.main-menu ul li{
		display: block;
		margin: 15px 0;
		line-height: 30px;
	}
	.main-menu ul li a {
		color: #FFFFFF;
	}
    .main-menu ul.sub-menu{
        position: relative;
        top: 0;
        margin-left: 30px;
        display: block;
        width: auto;
    }
    .main-menu ul.sub-menu a{
        color: #FFFFFF;
    } 
    .show-dropdown{
        left: 0 !important;
    }  
    .animate-button .bar1 {
        -webkit-transform: rotate(-45deg) translate(-4px, 4px);
        transform: rotate(-45deg) translate(-4px, 4px);
    }
    .animate-button .bar2 {opacity: 0;}
    .animate-button .bar3 {
        -webkit-transform: rotate(45deg) translate(-7px, -7px);
        transform: rotate(45deg) translate(-7px, -7px);
    }
}  
/* ===== DESKTOP AJUSTES (corrigido para menu e logo lado a lado) ===== */
@media (min-width: 769px) {
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; /* CORRIGIDO: evitar empilhamento vertical */
  }

  .site-branding {
    flex: 1;
    display: flex; /* Flexbox para a logo */
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    text-align: center;
  }

  .site-branding img {
    max-width: 100%; /* Garante que a imagem não ultrapasse o limite do contêiner */
    height: auto; /* Garante que a altura da imagem seja proporcional */
  }

  .site-navigation {
    flex: 2;
    display: flex !important;
    justify-content: center;
    margin-top: 0 !important;
  }

  .site-navigation .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
  }

  .header-buttons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

/* ===== MOBILE AJUSTES (para centralizar a logo também no mobile) ===== */
@media (max-width: 768px) {
  .site-header .container {
    display: flex;
    justify-content: center; /* Centraliza todo o conteúdo dentro da header */
    align-items: center;
    flex-direction: column; /* Empilha os itens verticalmente no mobile */
    width: 100%; /* Garante que o container ocupe toda a largura da tela */
  }

  .site-branding {
    flex: none; /* Impede que o container da logo ocupe espaço excessivo */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%; /* Garantir que a logo ocupe 100% da largura */
  }

  .site-branding img {
    max-width: 80%; /* Ajusta a largura da logo no mobile para que ela não ocupe toda a tela */
    height: auto;
  }

  .site-navigation {
    width: 100%;
    display: flex !important;
    justify-content: center;
  }
}



/* ===== BOTÕES HEADER ===== */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  right: 1.2rem;
  top: 1.5rem;
  z-index: 1001;
}

/* ===== ACESSIBILIDADE ===== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 1rem;
  background: #000;
  color: #fff;
  z-index: 1000;
  clip: auto;
}

/* ===== LISTA DE POSTS ===== */
.post-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.post-thumb {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
}
.entry-title a {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}
.entry-title a:hover {
  text-decoration: underline;
}
.entry-summary {
  color: #444;
  font-size: 1rem;
}

/* ===== PAGINAÇÃO ===== */
.pagination {
  text-align: center;
  margin: 2rem 0;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 0.3rem;
  padding: 0.5rem 0.8rem;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.pagination .current {
  background: #333;
  color: #fff;
}

/* ===== SINGLE POST (ESTILO G1) ===== */
.single-post .container {
  max-width: 740px;
  margin: 0 auto;
}
.single-post .entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #111;
}
.single-post .entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.single-post .entry-content figure.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.single-post .entry-content figure.aligncenter img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}
.entry-content p,
.entry-content li,
.entry-content blockquote {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.entry-content {
  overflow-x: hidden;
}

/* Meta + Compartilhamento */
.meta-share-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.meta-author-block {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #555;
}
.meta-author-block .author-highlight {
  color: #f15a00;
  font-weight: 600;
}
.meta-author-block .meta-date {
  font-size: 0.85rem;
  color: #888;
}

/* Botões de compartilhamento */
.social-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.share-label {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin-right: 0.5rem;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #111;
  background-color: transparent;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.share-btn:hover {
  background-color: #f5f5f5;
  transform: scale(1.08);
}
.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
@media (min-width: 769px) {
  .share-btn {
    width: 44px;
    height: 44px;
  }
  .share-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== LEIA TAMBÉM ===== */
.leia-tambem-bloco {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e3e3e3;
}
.leia-tambem-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111;
}
.leia-tambem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.leia-tambem-item {
  border: none;
}
.leia-tambem-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.leia-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin-bottom: 0.5rem;
}
.leia-tambem-titulo-post {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}
.leia-tambem-excerpt {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1486cb;
  color: #fff;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: #ff9900;
}
.site-footer .container {
  max-width: 740px;
  margin: 0 auto;
}

/* ===== GRID DESTAQUE (HOME) ===== */
.grid-destaque {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.grid-destaque > div {
  min-width: 0; /* CORRIGIDO: evita quebra lateral */
}
.coluna-esquerda {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.coluna-direita {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.destaque-principal img,
.destaque-secundario img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}
.destaque-principal h3,
.destaque-secundario h4 {
  font-size: 1.1rem;
  color: #01507c;
  margin-top: 0.5rem;
}
.mais-destaque-link h4 {
  font-size: 1rem;
  color: #b30000;
  margin-top: 0.5rem;
}
.mais-destaque-link a {
  text-decoration: none;
}
.mais-destaque-link a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .grid-destaque {
    flex-direction: column;
  }

  .coluna-esquerda,
  .coluna-direita {
    width: 100%;
    flex: initial;
  }

  .destaque-principal h3,
  .destaque-secundario h4,
  .mais-destaque-link h4 {
    font-size: 1rem;
  }

  .categoria-destaque header h2 {
    font-size: 1.2rem;
  }

  .single-post .entry-title {
    font-size: 1.6rem;
  }

  .single-post .entry-content {
    font-size: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }

  .single-post .entry-content p {
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .meta-share-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ===== INTRODUÇÃO ===== */
.intro-blocos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .intro-blocos {
    flex-direction: row;
    justify-content: space-between;
  }
  .intro-box {
    flex: 1;
  }
}

.intro-box {
  background: #f5f8fa;
  padding: 1.5rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.intro-box h2 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.intro-box p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Botão */
.botao {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.botao:hover {
  background-color: #005a87;
  text-decoration: none;
}

/* ===== LEGENDA DE IMAGEM SINGLE ===== */
.wp-block-image figcaption {
  display: block !important;
  caption-side: bottom !important;
  text-align: center;
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .wp-block-image figcaption {
    font-size: 0.9rem;
    padding: 5px 10px;
    width: 100%;
  }
}
/* ===============================
   THUMBNAILS & DESTAQUE
================================== */

.post-thumb {
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
  aspect-ratio: 16 / 9;
}

.post-thumb img,
.destaque-principal img,
.destaque-secundario img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Corrigido seletor: "archive" não é uma tag */
.archive .post-list-grid,
.category .post-list-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive .post-item-horizontal,
.category .post-item-horizontal {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1.5rem;
}

.archive .post-thumb,
.category .post-thumb {
  flex-shrink: 0;
  width: 280px;
  border-radius: 8px;
  overflow: hidden;
}

.archive .post-thumb img,
.category .post-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.archive .post-content,
.category .post-content {
  flex-grow: 1;
}

.archive .entry-title,
.category .entry-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-display: swap;
}

.archive .entry-meta,
.category .entry-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.archive .entry-summary,
.category .entry-summary {
  font-size: 0.95rem;
  color: #333;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .archive .post-item-horizontal,
  .category .post-item-horizontal {
    flex-direction: column;
  }

  .archive .entry-title,
  .category .entry-title,
  .single .entry-title {
    font-size: 1.5rem !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-display: swap;
  }

  .archive .post-thumb,
  .category .post-thumb {
    width: 100%;
  }
}

.container-espacamento-topo {
  margin-top: 30px; /* Adiciona 10px de espaçamento no topo */
}


/* Estilo refinado com foco em UX, leveza e performance */
.destaques-por-categoria {
 display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin: 40px 0;
  padding: 0;
}

.coluna-destaque {
  flex: 1 1 300px;
  max-width: 380px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coluna-destaque:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.titulo-categoria {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  padding: 12px 16px 10px;
  margin: 0;
  background-color: #fff;
}

.post-principal {
  padding: 0 20px 16px;
}

.post-principal figure {
  margin: 0;
  border-bottom: 3px solid #001c40;
}

.post-principal img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.post-principal h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #001c40;
  margin: 10px 0 0;
  line-height: 1.4;
}

.post-principal a:hover h3 {
  text-decoration: underline;
}

.post-secundario {
  padding: 6px 20px 4px;
  display: block;
}

.post-secundario h4 {
  font-size: 0.85rem;
  color: #001c40;
  margin: 6px 0;
  line-height: 1.5;
  font-weight: 500;
}

.post-secundario a:hover h4 {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .destaques-por-categoria {
    flex-direction: column;
    padding: 0 12px;
  }
}


/*grid pequena */
/* Diminuindo o tamanho da fonte dos títulos na coluna direita */
.coluna-direita h2 {
  font-size: 16px;  /* Diminuindo o tamanho para um valor mais equilibrado */
  font-weight: bold;
  color: #0c507a;  /* Cor mais suave, mas ainda destacando */
  margin: 0;
  padding: 1px 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Adicionando um pouco de espaçamento entre os itens */
.coluna-direita article {
  margin-bottom: 20px;
}

/* Efeito de hover para os títulos */
.coluna-direita h2:hover {
  color: #007BFF;  /* Cor azul para o efeito hover */
  transform: translateX(5px);  /* Move um pouco o título para a direita */
}

/* Se quiser destacar ainda mais os itens, pode adicionar uma borda suave */
.coluna-direita article {
  padding: 10px;
  border: 1px solid #eee;  /* Borda suave para separar os posts */
  border-radius: 8px;  /* Bordas arredondadas */
  background-color: #f9f9f9;  /* Cor de fundo suave */
  transition: background-color 0.3s ease;
}

/* Efeito de hover no artigo */
.coluna-direita article:hover {
  background-color: #f1f1f1;  /* Mudando a cor de fundo ao passar o mouse */
  border-color: #ddd;  /* Tornando a borda mais visível */
}

/* Ajuste no layout para garantir que as colunas fiquem bonitas e bem alinhadas */
.grid-destaque {
  display: flex;
  gap: 20px;
}

.coluna-esquerda {
  flex: 3;
}

.coluna-direita {
  flex: 2;
}

/* Ajustando os títulos para que fiquem centralizados e legíveis */
.destaque-secundario h2 {
  text-align: left;
  padding-left: 10px; /* Adicionando um leve afastamento da borda */
}



