/*
Theme Name: Blog do Seridó
Theme URI: http://www.blogdoserido.com.br
Description: Thema desenvolvido exclusivamente para o Blog do Seridó.
Author: Kurtição Entretenimento
Version: 2.0
Tags: Seridó, Caicó, Jornalista, Blog, Notícia, Rio Grande do Norte, Reportagem, Entrevista, Blogueiro, Itans  
Text Domain: Blog do Seridó
*/

@charset "utf-8";

:root {
  --bg: #f5f7fb;
  --card: #fff;
  --text: #0b0b0c;
  --muted: #667085;
  --primary: #144459;
  --shadow: 0 10px 24px rgba(16,24,40,.12);
  --border: #e6e9ef;
}

*, *:before, *:after { 
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Lato', sans-serif;
	background-color: var(--bg);
	overflow-x: hidden;
	max-width: 100%;
}

body {
	line-height: 1.6;
	background-color: var(--bg);
}

#clear {
    clear: both;
}

/* Header tradicional responsivo */
#topo {
	width: 100%;
	height: 422px;
	background-image: url(images/bg1.jpg);
	background-position: center;
	background-repeat: no-repeat;
	background-color: #114D8B;
	display: block;
	background-size: cover;
	position: relative;
}
/*
#topo::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(17, 77, 139, 0.85), rgba(20, 68, 89, 0.9));
	z-index: 1;
}
*/

#topo-cont {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	height: 422px;
	margin: 0 auto;
	display: block;
	padding: 0 1rem;
	box-sizing: border-box;
}

#logo {
    width: 100%;
    max-width: 382px;
    height: 100px;
    float: left;
    margin-top: 165px;
    text-align: center;
}

#logo img {
    max-width: 100%;
    height: auto;
}

#menu-topo {
	width: 100%;
	max-width: 1200px;
	height: auto;
	margin: 20px auto 0;
	background-color: rgba(17, 77, 139, 0.95);
	padding: 1rem;
	border-radius: 12px;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

#links-menu {
	width: auto;
	height: auto;
	font-weight: 400;
	float: none;
	margin: 0;
	flex: 0 0 auto;
}

#links-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#links-menu ul li {
    height: auto;
    display: inline;
    list-style: none;
    padding: 0;
    float: none;
    font-size: 18px;
    color: #FFF;
}

#links-menu ul li a {
    text-decoration: none;
    color: #FFF;
    transition: color 0.2s ease;
}

#links-menu ul li a:hover {
    text-decoration: underline;
    color: #FFF;
}

#busca-topo {
    width: auto;
    height: auto;
    float: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 200px;
}

#busca-topo form {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

#busca-topo form input {
    margin: 0;
    vertical-align: top;
}

#busca-topo form .submit {
    margin: 0;
    vertical-align: top;
}

#busca-topo input {
    border: none;
    flex: 1;
    height: 40px;
    padding: 0.75rem;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    box-sizing: border-box;
    min-width: 0;
    display: block;
    line-height: 1;
}

#busca-topo .submit {
    height: 40px;
    background-color: #236cb0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 1rem;
    font-size: 14px;
    min-width: 60px;
    max-width: 80px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    display: block;
    line-height: 1;
}

#busca-topo .submit:hover {
    background-color: #1D4ED8;
}

/* Responsividade do header */
@media (max-width: 768px) {
    #topo {
        height: auto;
        width: 100%;
        overflow-x: hidden;
    }
    
    #topo-cont {
        height: auto;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    #logo {
        margin-top: 10px;
        float: none;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    #busca-topo {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    #menu-topo {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: stretch;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    
    #links-menu {
        display: none !important;
    }
    
    #links-menu ul {
        display: none !important;
    }
    
    #links-menu ul li {
        display: none !important;
    }
    
    #busca-topo {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    #topo-cont {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    #logo {
        text-align: left;
    }
    
    #links-menu ul {
        justify-content: flex-start;
    }
    
    #busca-topo {
        width: auto;
        flex: 0 0 auto;
        min-width: 150px;
        gap: 0.25rem;
    }
    
    #busca-topo form {
        gap: 0.25rem;
    }
    
    #busca-topo input {
        font-size: 14px;
        padding: 0.5rem;
        height: 36px;
        line-height: 1;
    }
    
    #busca-topo .submit {
        height: 36px;
        min-width: 50px;
        max-width: 60px;
        font-size: 12px;
        padding: 0 0.5rem;
        line-height: 1;
    }
}

/* CSS para telas muito pequenas */
@media (max-width: 480px) {
    #menu-topo {
        display: flex;
        justify-content: stretch;
        align-items: center;
        padding: 0.25rem 0.75rem;
    }
    
    #links-menu {
        display: none !important;
    }
    
    #busca-topo {
        gap: 0.125rem;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    
    #busca-topo form {
        gap: 0.125rem;
    }
    
    #busca-topo input {
        font-size: 13px;
        padding: 0.375rem;
        height: 32px;
        line-height: 1;
    }
    
    #busca-topo .submit {
        height: 32px;
        min-width: 45px;
        max-width: 55px;
        font-size: 11px;
        padding: 0 0.375rem;
        line-height: 1;
    }
}

/* ==== SIDEBAR ==== */
#sidebar {
	width: 100%;
	padding-top: 1.5rem;
	clear: both;
	background: var(--card);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

#widguets {
	background: transparent; 
	box-shadow: none; 
	border-radius: 0; 
	padding: 0;
	margin-bottom: 1.5rem;
	width: 100%;
	box-sizing: border-box;
	min-width:0;
}

#widguets h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #236cb0;
    border-bottom: 3px solid #F3F4F6;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    text-align: left;
}

#widguets li {
    list-style: none;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
    color: #236cb0;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

#widguets li:hover {
    color: #1D4ED8;
}

#widguets li:last-child {
    border-bottom: none;
}

#widguets a {
    text-decoration: none;
    color: inherit;
}

#widguets a:hover {
    color: #1D4ED8;
}

/* Footer moderno */
#footer {
    margin-top: 3rem;
    background: linear-gradient(135deg, #114D8B, #064481);
    color: white;
    padding: 2rem 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

#footer-cont {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#logo-footer {
    text-align: center;
}

#logo-footer img {
    max-width: 200px;
    height: auto;
     display: block; 
    margin: 0 auto;
}

#direitos {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Elementos específicos */
.div-left {
    float: left;
}

.div-right {
    float: right;
    margin-right: 10px;
}

#banner-postagem {
    width: 100%;
    max-width: 675px;
    height: 90px;
    margin: 0 auto 20px;
}

.widguets-banner {
	margin-bottom: 8px;
}

/* evita que floats antigos estraguem o flex */
.div-left, .div-right{ float:none; margin:0; }

/* garante que nada estoure a coluna do sidebar */
#sidebar, #widguets{ min-width:0; }
#widguets, #widguets *{
	overflow-wrap:anywhere;
	word-break:break-word;
}

/* imagens nunca estouram as colunas */
#postagens img, #sidebar img{ max-width:100%; height:auto; display:block; }

/* Featured image on single posts */
#postagem .post-featured-image {
	margin: 0 0 1.5rem;
	text-align: center;
}

#postagem .post-featured-image img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}

#postagem .post-featured-image figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--muted);
	width: 100% !important;
	display: block !important;
	text-align: center !important;
	padding: 0.5rem 0 !important;
}

/* ==== LAYOUT PRINCIPAL ==== */
#conteudos {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	display: block;
	box-sizing: border-box;
	width: 100%;
	overflow-x: hidden;
}

#postagens {
	width: 100%;
	padding: 1.5rem 0;
}

/* ==== FIX: conteúdo + sidebar não quebrar ==== */
@media (min-width:1024px){
	#conteudos{
		display:flex;            /* já tem, reforço aqui */
		align-items:flex-start;
		gap:2rem;
		flex-wrap:nowrap;        /* impede quebra para a linha de baixo */
	}

	#postagens{
		flex:1 1 0;              /* conteúdo cresce */
		min-width:0;             /* evita empurrar o sidebar por overflow */
		order:1;
	}

	#sidebar{
		flex:0 0 clamp(280px,28%,360px);  /* largura estável do sidebar */
		max-width:360px;
		min-width:260px;
		width:auto;               /* não herda width:100% no flex */
		clear:none;               /* não força quebra de linha */
		order:2;
	}
}

/* empilha no tablet/mobile */
@media (max-width:1023px){
	#conteudos{ display:block; }
	#sidebar{ width:100%; max-width:none; min-width:0; }
}

#postagem {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#postagem:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16,24,40,.16);
}

#categoria {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: clamp(12px, 1.2vw, 13.5px);
  margin-bottom: 1rem;
  text-decoration: none;
  order: 1;
}

/* Estilo para links de categoria do WordPress */
#categoria a,
#categoria a:link,
#categoria a:visited,
#categoria a:hover,
#categoria a:active,
#categoria .cat-links a,
#categoria .cat-links a:link,
#categoria .cat-links a:visited,
#categoria .cat-links a:hover,
#categoria .cat-links a:active {
  color: white !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  display: inline !important;
}

/* Se a categoria for renderizada como lista */
#categoria ul,
#categoria li {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#categoria ul li {
  display: inline !important;
}

/* Badge da categoria - span simples */
.categoria-badge {
  display: inline-block !important;
  background: #114D8B !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  margin-bottom: 1rem !important;
  text-decoration: none !important;
  order: 1 !important;
  width: fit-content !important;
  max-width: none !important;
  min-width: auto !important;
}

/* Legenda da imagem - largura 100% */
figcaption,
.post-featured-image figcaption,
#postagem figcaption,
figure figcaption {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  padding: 0.5rem 0 !important;
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  box-sizing: border-box !important;
}

#titulo {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 1rem;
  order: 2;
}

#titulo a {
  text-decoration: none;
  color: inherit;
}

#datas {
  background: none;
  padding: 0;
  margin-bottom: 1.5rem;
  color: var(--muted);
  order: 3;
}

#dados-postagem {
  display: none;
}

#postado, #autor, #hora {
  display: inline;
  margin: 0;
}

#postado::after,
#autor::after {
  content: "•";
  margin: 0 8px;
  color: var(--muted);
}

/* Imagem da notícia - aparece antes do primeiro parágrafo */
.post-featured-image {
  margin: 0 0 1.5rem 0;
  order: 4;
  width: 100% !important;
  display: block !important;
}

.post-featured-image img {
  width: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(16,24,40,.08);
}

.post-content {
  order: 5;
}

.post-content p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
  margin: 0 0 1.1rem;
  color: var(--text);
  font-weight: 400 !important;
}

/* Remove negrito de todos os parágrafos das notícias */
#postagem p,
.post-content p,
.entry-content p,
.single p,
.page p {
  font-weight: 400 !important;
}

/* Imagens dentro do conteúdo */
.post-content img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(16,24,40,.08);
  margin: 1rem 0;
}

#postagem .alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
  border-radius: 12px;
  width: auto;
}

#postagem .aligncenter {
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
  width: auto;
}

#postagem .alignright {
  float: right;
  margin: 0 0 1rem 1rem;
  border-radius: 12px;
  width: auto;
}

#base-postagem {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 6;
}

#compartilhe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(17, 48, 73, 0.05);
  border-radius: 12px;
}

.div-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.div-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.div-right a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Força os botões de compartilhamento a não usar inline-block */
.div-right a,
.addtoany_share_save a,
.addtoany_share_save .a2a_button {
  display: inline-flex !important;
}

/* Oculta apenas o texto "Comente!" */
#comente,
#comente a,
#compartilhe .div-left:contains("Comente!"),
.addtoany_share_save .a2a_s_label,
.addtoany_share_save .a2a_label,
.addtoany_share_save .a2a_s_text,
.addtoany_share_save .a2a_text {
  display: none !important;
}

/* Mostra o texto "Compartilhe:" */
.div-left {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  display: block !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  #base-postagem {
    padding: 1rem 0;
  }
  
  #compartilhe {
    padding: 1rem 1.25rem;
    gap: 1.25rem;
  }
  
  .div-right {
    gap: 1.25rem;
  }
  
  .div-right a {
    width: 56px;
    height: 56px;
  }
  
  /* Footer responsivo para mobile */
#footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
  }
  
#footer-cont {
    padding: 1.5rem 0.5rem;
    gap: 1rem;
  }
  
  #logo-footer img {
    max-width: 150px;
  }
  
#direitos {
    font-size: 0.8rem;
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

#comments {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  margin-top: 2rem;
}

#comments h3 {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  #postagem {
    border-radius: 14px;
    padding: clamp(16px, 4vw, 24px);
  }
  
  #titulo {
    font-size: clamp(24px, 6vw, 30px);
  }
  
  .wp-post-image,
  #postagem img {
    border-radius: 14px;
  }
  
  #conteudos {
    padding: 0 0.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* ==== FIX: conteúdo + sidebar não quebrar ==== */
@media (min-width:1024px){
  #conteudos{
    display:flex;            /* já tem, reforço aqui */
    align-items:flex-start;
    gap:2rem;
    flex-wrap:nowrap;        /* impede quebra para a linha de baixo */
  }

  #postagens{
    flex:1 1 0;              /* conteúdo cresce */
    min-width:0;             /* evita empurrar o sidebar por overflow */
    order:1;
  }

  #sidebar{
    flex:0 0 clamp(280px,28%,360px);  /* largura estável do sidebar */
    max-width:360px;
    min-width:260px;
    width:auto;               /* não herda width:100% no flex */
    clear:none;               /* não força quebra de linha */
    order:2;
  }
}

/* empilha no tablet/mobile */
@media (max-width:1023px){
  #conteudos{ display:block; }
  #sidebar{ width:100%; max-width:none; min-width:0; }
}

/* evita que floats antigos estraguem o flex */
.div-left, .div-right{ float:none; margin:0; }

/* garante que nada estoure a coluna do sidebar */
#sidebar, #widguets{ min-width:0; }
#widguets, #widguets *{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* imagens nunca estouram as colunas */
#postagens img, #sidebar img{ max-width:100%; height:auto; display:block; }

/* Opção alternativa: um card só, no sidebar inteiro */
#sidebar{
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
#widguets{
  background: transparent; box-shadow: none; border-radius: 0; padding: 0;
}

/* Featured image on single posts */
#postagem .post-featured-image {
    margin: 0 0 1.5rem;
    text-align: center;
}

#postagem .post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

#postagem .post-featured-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 0.5rem 0 !important;
}
/* ===== Calendário padrão do WP no estilo do tema ===== */
.widget_calendar {
  --radius: 16px;
  --b: 1px solid rgba(20,68,89,.12);       /* borda suave */
}

.widget_calendar #wp-calendar{
	width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--card);
  color:var(--text);
  border:var(--b);
  border-radius:var(--radius);
  overflow:hidden; /* arredonda o thead */
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  font-size:14px;
}

/* Título (mês/ano) */
.widget_calendar #wp-calendar caption{
  padding:.85rem 1rem;
  font-weight:700;
  text-align:center;
  background:rgba(20,68,89,.06);
  color:var(--text);
}

/* Cabeçalho dos dias (D S T Q Q S S) */
.widget_calendar #wp-calendar thead th{
  background:var(--primary);
  color:#fff;
  font-weight:600;
  padding:.5rem 0;
  border-bottom:var(--b);
}

/* Células dos dias */
.widget_calendar #wp-calendar tbody td,
.widget_calendar #wp-calendar tbody th{
  text-align:center;
  padding:.65rem 0;
  border-right:var(--b);
  border-bottom:var(--b);
  min-width:40px;
	height:40px;
  vertical-align:middle;
}
.widget_calendar #wp-calendar tbody tr td:last-child{ border-right:0; }

/* Dias vazios */
.widget_calendar #wp-calendar tbody td.pad{
  background:transparent;
  opacity:.6;
}

/* Dia atual */
.widget_calendar #wp-calendar tbody td#today{
  background:rgba(20,68,89,.08);
  font-weight:700;
  outline:2px solid rgba(20,68,89,.25);
  outline-offset:-2px;
}

/* Dias com post (são links) */
.widget_calendar #wp-calendar tbody td a{
  display:inline-block;
  min-width:2rem;
  line-height:2rem;
  padding:0 .15rem;
  border-radius:10px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
	text-decoration:none;
  transition:transform .12s ease, filter .12s ease;
}
.widget_calendar #wp-calendar tbody td a:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}

/* Navegação (mês anterior/próximo) – WP 6.x usa .wp-calendar-nav */
.widget_calendar .wp-calendar-nav{
  display:flex;
  justify-content:space-between;
  gap:.5rem;
  margin:.6rem 0 0;
  font-size:.9rem;
}
.widget_calendar .wp-calendar-nav a{
  color:var(--primary);
	text-decoration:none;
  padding:.35rem .6rem;
  border-radius:999px;
  background:rgba(20,68,89,.08);
}
.widget_calendar .wp-calendar-nav a:hover{
  background:rgba(20,68,89,.14);
}

/* Modo responsivo: reduz fonte em telas estreitas */
@media (max-width:480px){
  .widget_calendar #wp-calendar{ font-size:13px; }
  .widget_calendar #wp-calendar tbody td{ min-width:36px; height:36px; }
}

/* Títulos da sidebar com Alfa Slab One */
.sidebar .widget .widget-title,
.sidebar .widget .widgettitle,
.widget-area .widget .widget-title,
.widget-area .widget .widgettitle,
.widget_block .wp-block-heading,            /* widgets de bloco (Gutenberg) */
.sidebar .wp-block-group .wp-block-heading  /* grupos na sidebar */
{
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;                /* Alfa Slab One só tem um peso */
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text, #0b0b0c);
  margin: 0 0 .75rem;
}

/* cor do seu tema (opcional) */
.sidebar .widget .widget-title,
.sidebar .widget .widgettitle,
.widget_block .wp-block-heading {
  color: var(--primary, #144459);
}

/* sublinhado/traço decorativo (opcional) */
.sidebar .widget .widget-title::after,
.sidebar .widget .widgettitle::after,
.widget_block .wp-block-heading::after{
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: .4rem;
  background: currentColor;
  border-radius: 2px;
}

/* ajuste fino em telas pequenas (opcional) */
@media (max-width: 480px) {
  .sidebar .widget .widget-title,
  .sidebar .widget .widgettitle,
  .widget_block .wp-block-heading { font-size: 1.05rem; }
}

:root { --font-heading: "Alfa Slab One", Georgia, serif; }

/* Títulos dos widgets (clássicos e blocos) */
#secondary .widget .widget-title,
.sidebar .widget .widget-title,
.sidebar .widget .widgettitle,
.widget-area .widget .widget-title,
.widget-area .widget .widgettitle,
.widget_block .wp-block-heading,
.sidebar .wp-block-group .wp-block-heading {
  font-family: var(--font-heading) !important;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Itens da lista "Últimas Notícias" / Latest Posts - fonte padrão */
.widget_recent_entries ul li a,
.wp-block-latest-posts__list li a,
.sidebar .widget ul li a {
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Títulos das notícias (lista/cards e single) */
.wp-block-post-title,
.wp-block-post-title a,
.entry-title,
.entry-title a,
.post-title,
.post-title a,
.hentry .entry-title a {
  font-family: var(--font-heading) !important;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Títulos das notícias com Alfa Slab One */
#titulo,
#titulo a,
.post-title,
.post-title a,
.entry-title,
.entry-title a {
  font-family: "Alfa Slab One", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Títulos dos widgets da sidebar com Alfa Slab One */
#sidebar h2,
#sidebar .widget-title,
#sidebar .widgettitle,
#sidebar .wp-block-heading,
.widget h2,
.widget .widget-title,
.widget .widgettitle,
.widget .wp-block-heading {
  font-family: "Alfa Slab One", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #113049 !important;
}

/* Links das notícias na sidebar - volta para fonte padrão */
#sidebar ul li a,
.widget ul li a,
.widget_recent_entries ul li a,
.wp-block-latest-posts__list li a {
  font-family: inherit !important;
  font-weight: inherit !important;
  color: var(--text, #333);
}

/* (Opcional) traço decorativo abaixo do título do widget */
#secondary .widget > .widget-title::after,
.sidebar .widget > .widget-title::after,
.sidebar .widget_block .wp-block-heading::after{
  content:"";
  display:block;
  width:52px; height:3px;
  margin-top:.4rem;
  background: currentColor;
  border-radius:2px;
}

/* Carrega a fonte via CDN (pode remover se já estiver no functions.php) */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

/* Backup @font-face para Alfa Slab One */
@font-face {
  font-family: "Alfa Slab One";
  src: url('https://fonts.gstatic.com/s/alfaslabone/v19/6NUQ8FmMKwSDx0WpWg3HjQ8.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Use esta var apenas para os TÍTULOS DA SIDEBAR */
:root { --widget-heading-font: "Alfa Slab One", Georgia, serif; }

/* ====== Títulos dos widgets na sidebar (todas as variações) ====== */
/* Sidebar como #secondary, .sidebar, .widget-area, ou <aside> */
#secondary .widget > .widget-title,
#secondary .widget > h2.widget-title,
#secondary .widget > h3.widget-title,
#secondary .widget_block > .wp-block-heading,
#secondary .wp-block-group > .wp-block-heading,

.sidebar .widget > .widget-title,
.sidebar .widget > h2.widget-title,
.sidebar .widget > h3.widget-title,
.sidebar .widget_block > .wp-block-heading,
.sidebar .wp-block-group > .wp-block-heading,

.widget-area .widget > .widget-title,
.widget-area .widget > h2.widget-title,
.widget-area .widget > h3.widget-title,
.widget-area .widget_block > .wp-block-heading,
.widget-area .wp-block-group > .wp-block-heading,

/* Alguns temas colocam <span> dentro do título */
#seco
@font-face{
  font-family:"Alfa Slab One";
  src:url("/wp-content/themes/SEU-TEMA/assets/fonts/alfa-slab-one-regular.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}

/* Títulos dos widgets (o seu seletor) */
#widgets h2{
  font-family: "Alfa Slab One", Georgia, serif !important;
  font-weight: 400;               /* Alfa Slab One tem um peso único */
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* (opcional) cor mantendo o seu estilo atual */
#widgets h2{
  color: var(--primary, #236cb0);

.alfa-slab-one-regular {
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-style: normal;
}

}

/* Alfa Slab One só nos TÍTULOS dos widgets da sidebar (#widgets) */
#widgets h2,
#widgets h2.widget-title,
#widgets .widget-title,
#widgets .wp-block-heading {
  font-family: "Alfa Slab One", Georgia, serif !important;
  font-weight: 400 !important;   /* Alfa Slab One tem 1 peso */
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--primary, #236cb0);
}

/* (opcional) não aplicar nos links da lista dentro do widget */
#widgets ul li a { 
  font-family: inherit !important; 
  font-weight: inherit !important; 
}
.wp-block-post-title, .wp-block-post-title a,
.entry-title, .entry-title a {
  font-family: "Alfa Slab One", Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}
