/*
Theme Name: Zepovinho
Theme URI: https://zepovinho.pt
Author: ZepovinhoAi
Author URI: https://zepovinho.pt
Description: Tema clássico e colorido para zepovinho.pt, inspirado no Mesocolumn. Monte o site arrastando widgets: barra lateral à esquerda e à direita, áreas da página inicial (topo, conteúdo e fundo), antes e depois de cada artigo, quatro colunas de rodapé e "páginas construídas" com widgets. Inclui widgets de carrossel, artigos com foto média, artigos com foto pequena, destaque + lista, redes sociais, caixa colorida, categorias coloridas e títulos de secção. Botões de partilha opcionais em cada artigo. Criado por ZepovinhoAi.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zepovinho
Tags: blog, news, three-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, threaded-comments, translation-ready
*/

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #444;
	background-color: #f4f4f4;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--zepo-links); text-decoration: none; }
a:hover, a:focus { color: var(--zepo-principal); }
h1, h2, h3, h4, h5, h6 { color: #181919; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #ECDC1A; outline-offset: 2px; }
.zepo-so-leitores { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zepo-saltar { position: absolute; left: -9999px; z-index: 1000; }
.zepo-saltar:focus { left: 1rem; top: 1rem; background: #F4EA7C; color: #181919; padding: .5rem 1rem; }

.zepo-contentor { width: 100%; max-width: var(--zepo-largura, 1240px); margin: 0 auto; padding: 0 20px; }

.zepo-botao, .zepo-comentarios .submit, input[type=submit] {
	display: inline-block;
	background: var(--zepo-principal);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: .6em 1.4em;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.zepo-botao:hover, input[type=submit]:hover { filter: brightness(.9); transform: translateY(-1px); }

input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: .6em .8em;
	border: 1px solid #ddd;
	border-radius: 6px;
	font: inherit;
	background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--zepo-destaque); outline: none; box-shadow: 0 0 0 3px rgba(82,192,212,.25); }

/* =========================================================
   Cabeçalho
   ========================================================= */
.zepo-barra-topo { background: var(--zepo-principal); color: #fff; font-size: .85rem; }
.zepo-barra-topo .zepo-contentor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.zepo-barra-topo a { color: #fff; }
.zepo-menu-topo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.zepo-menu-topo a { font-weight: 700; }
.zepo-menu-topo a:hover { text-decoration: underline; }
.zepo-data-hoje { font-weight: 700; text-transform: capitalize; }

.zepo-icones-redes { display: flex; gap: .4rem; align-items: center; }
.zepo-icone-rede { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; transition: transform .15s ease, background .15s ease; }
.zepo-icone-rede svg { width: 16px; height: 16px; fill: currentColor; }
.zepo-icones-topo .zepo-icone-rede { color: #fff !important; }
.zepo-icones-topo .zepo-icone-rede:hover { background: rgba(255,255,255,.2); transform: scale(1.1); }
.zepo-redes-widget { flex-wrap: wrap; }
.zepo-redes-widget .zepo-icone-rede { width: 42px; height: 42px; color: #fff !important; }
.zepo-redes-widget .zepo-icone-rede svg { width: 20px; height: 20px; }
.zepo-p-facebook { background: #1877F2; }
.zepo-p-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.zepo-p-x { background: #111; }
.zepo-p-tiktok { background: #111; box-shadow: -2px 0 0 #25F4EE, 2px 0 0 #FE2C55; }
.zepo-p-copiar { background: #8E5BD8; }
.zepo-icones-topo .zepo-icone-rede { background: transparent; box-shadow: none; }

.zepo-cabecalho { background: var(--zepo-cabecalho); }
.zepo-cabecalho__linha { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.zepo-marca { display: flex; align-items: center; gap: 14px; }
.zepo-marca .custom-logo { max-height: 80px; width: auto; display: block; }
.zepo-titulo-site { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.zepo-titulo-site a { color: #181919; }
.zepo-titulo-site a:hover { color: var(--zepo-principal); }
.zepo-descricao { margin: .2rem 0 0; color: #888; font-size: .95rem; }

.zepo-pesquisa { display: flex; position: relative; width: 100%; max-width: 320px; }
.zepo-pesquisa input[type=search] { border-radius: 999px; padding-right: 3rem; background: #f7f7f7; }
.zepo-pesquisa button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--zepo-destaque); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.zepo-barra .zepo-pesquisa, .zepo-404 .zepo-pesquisa, .zepo-nada .zepo-pesquisa { max-width: none; }

/* Menu principal */
.zepo-barra-menu { background: var(--zepo-menu); color: #fff; }
body.zepo-cabecalho-fixo .zepo-barra-menu { position: sticky; top: 0; z-index: 90; }
body.admin-bar.zepo-cabecalho-fixo .zepo-barra-menu { top: 32px; }
.zepo-menu-botao { display: none; background: none; border: 0; color: #fff; font: inherit; font-weight: 700; padding: .8rem 0; cursor: pointer; }
.zepo-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.zepo-menu li { position: relative; }
.zepo-menu a { display: block; color: #fff; padding: .85rem 1rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 3px solid transparent; }
.zepo-menu > li:first-child > a { padding-left: 0; }
.zepo-menu > li:nth-child(5n+1) > a:hover { border-color: #EF4423; }
.zepo-menu > li:nth-child(5n+2) > a:hover { border-color: #ECDC1A; }
.zepo-menu > li:nth-child(5n+3) > a:hover { border-color: #3DB46D; }
.zepo-menu > li:nth-child(5n+4) > a:hover { border-color: #52C0D4; }
.zepo-menu > li:nth-child(5n+5) > a:hover { border-color: #8E5BD8; }
.zepo-menu .current-menu-item > a, .zepo-menu .current-cat > a { border-color: #ECDC1A; }
.zepo-menu .sub-menu, .zepo-menu .children { list-style: none; margin: 0; padding: .4rem 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-top: 3px solid var(--zepo-principal); z-index: 95; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.zepo-menu li:hover > .sub-menu, .zepo-menu li:focus-within > .sub-menu, .zepo-menu li:hover > .children, .zepo-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.zepo-menu .sub-menu a, .zepo-menu .children a { color: #333; text-transform: none; padding: .45rem 1rem; border: 0; }
.zepo-menu .sub-menu a:hover, .zepo-menu .children a:hover { background: #f5f5f5; color: var(--zepo-principal); }
.zepo-menu .sub-menu .sub-menu { left: 100%; top: 0; }

.zepo-faixa-arco-iris { height: 5px; background: linear-gradient(90deg, #EF4423 0 20%, #ECDC1A 20% 40%, #3DB46D 40% 60%, #52C0D4 60% 80%, #8E5BD8 80% 100%); }

/* =========================================================
   Colunas: conteúdo + barras laterais
   ========================================================= */
.zepo-meio { padding-top: 28px; padding-bottom: 40px; }
.zepo-area-larga { padding-top: 24px; }
.zepo-area-larga > .widget:last-child { margin-bottom: 0; }

.zepo-corpo { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "principal"; align-items: start; }
.zepo-corpo.tem-esq { grid-template-columns: var(--zepo-esq, 240px) minmax(0, 1fr); grid-template-areas: "esq principal"; }
.zepo-corpo.tem-dir { grid-template-columns: minmax(0, 1fr) var(--zepo-dir, 300px); grid-template-areas: "principal dir"; }
.zepo-corpo.tem-esq.tem-dir { grid-template-columns: var(--zepo-esq, 240px) minmax(0, 1fr) var(--zepo-dir, 300px); grid-template-areas: "esq principal dir"; }
.zepo-principal { grid-area: principal; min-width: 0; outline: none; }
.zepo-barra--esquerda { grid-area: esq; min-width: 0; }
.zepo-barra--direita { grid-area: dir; min-width: 0; }

@media (max-width: 1100px) {
	.zepo-corpo.tem-esq.tem-dir { grid-template-columns: minmax(0, 1fr) var(--zepo-dir, 300px); grid-template-areas: "principal dir" "esq dir"; }
}
@media (max-width: 860px) {
	.zepo-corpo, .zepo-corpo.tem-esq, .zepo-corpo.tem-dir, .zepo-corpo.tem-esq.tem-dir { grid-template-columns: minmax(0, 1fr); grid-template-areas: "principal" "dir" "esq"; }
	.zepo-menu-botao { display: inline-block; }
	.zepo-menu-principal { display: none; padding-bottom: .6rem; }
	.zepo-menu-principal.aberto { display: block; }
	.zepo-menu { flex-direction: column; }
	.zepo-menu a { padding: .6rem 0; }
	.zepo-menu .sub-menu, .zepo-menu .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding-left: 1rem; }
	.zepo-menu .sub-menu a, .zepo-menu .children a { color: #ddd; }
	.zepo-pesquisa { max-width: none; }
	body.admin-bar.zepo-cabecalho-fixo .zepo-barra-menu { top: 0; }
}

/* =========================================================
   Widgets
   ========================================================= */
.widget {
	container-type: inline-size;
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	margin: 0 0 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.widget-title {
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 16px;
	border-bottom: 3px solid #eee;
	line-height: 1;
}
.widget-title span {
	display: inline-block;
	padding-bottom: 10px;
	margin-bottom: -3px;
	border-bottom: 3px solid var(--zepo-cat, var(--zepo-destaque));
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget > ul > li, .widget .menu li { padding: .4rem 0; border-bottom: 1px dashed #e5e5e5; }
.widget > ul > li:last-child { border-bottom: 0; }
.widget_tag_cloud a, .wp-block-tag-cloud a { display: inline-block; margin: 0 .25rem .4rem 0; padding: .15rem .7rem; border-radius: 999px; background: #f2f2f2; color: #444; font-size: .8rem !important; }
.widget_tag_cloud a:hover { background: var(--zepo-principal); color: #fff; }
.zepo-ver-todos { margin: 14px 0 0; text-align: right; font-weight: 700; font-size: .9rem; }

/* Widgets da página inicial e páginas construídas ficam "sem caixa" quando são de artigos? Não: mantêm a caixa branca. */
.zepo-widget .widget-title { margin-bottom: 18px; }

/* Etiquetas de categoria */
.zepo-etiquetas { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .45rem; }
.zepo-etiqueta { display: inline-block; background: var(--zepo-cat, var(--zepo-destaque)); color: #fff !important; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.8; padding: 0 .7em; border-radius: 999px; transition: filter .15s ease; }
.zepo-etiqueta:hover { filter: brightness(.9); }
.zepo-etiqueta--grande { font-size: .8rem; padding: .2em .9em; }
.zepo-categorias { display: flex; flex-wrap: wrap; gap: .4rem; }
.zepo-n { background: rgba(255,255,255,.3); border-radius: 999px; padding: 0 .45em; margin-left: .2em; }

.zepo-data { display: block; color: #999; font-size: .8rem; }
.zepo-resumo { color: #666; font-size: .93rem; margin: .4rem 0 0; }
.zepo-resumo p { margin: 0; }

/* Imagem em falta */
.zepo-sem-imagem { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 60px; background: var(--zepo-cat, #52C0D4); color: rgba(255,255,255,.85); font-weight: 800; font-size: 2rem; aspect-ratio: 3 / 2; }

/* ---------- Carrossel ---------- */
.zepo-carrossel { position: relative; overflow: hidden; border-radius: 10px; --zepo-visiveis: 1; }
.zepo-carrossel__pista { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .zepo-carrossel__pista { transition: none; } }
.zepo-carrossel__slide { position: relative; flex: 0 0 calc(100% / var(--zepo-visiveis)); height: var(--zepo-altura, 440px); padding: 0 3px; }
.zepo-carrossel:not(.pronto) .zepo-carrossel__slide:not(:first-child) { visibility: hidden; }
.zepo-carrossel__img { position: absolute; inset: 0 3px; overflow: hidden; border-radius: 8px; background: #222; }
.zepo-carrossel__img img, .zepo-carrossel__img .zepo-sem-imagem { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform 6s ease; }
.zepo-carrossel__slide[aria-hidden="false"] .zepo-carrossel__img img { transform: scale(1.06); }
.zepo-carrossel__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.82)); }
.zepo-carrossel__texto { position: absolute; left: 3px; right: 3px; bottom: 0; padding: 24px 28px 34px; color: #fff; z-index: 2; pointer-events: none; }
.zepo-carrossel__texto a { pointer-events: auto; }
.zepo-carrossel__titulo { font-size: clamp(1.15rem, 2.6vw, 2rem); margin: .2rem 0 .3rem; }
.zepo-carrossel[data-visiveis="3"] .zepo-carrossel__titulo, .zepo-carrossel[data-visiveis="4"] .zepo-carrossel__titulo { font-size: 1.15rem; }
.zepo-carrossel__titulo a { color: #fff; }
.zepo-carrossel__titulo a:hover { color: #F4EA7C; }
.zepo-carrossel .zepo-resumo { color: rgba(255,255,255,.9); }
.zepo-carrossel .zepo-data { color: rgba(255,255,255,.8); }
.zepo-carrossel__seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #181919; font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background .15s ease, color .15s ease; }
.zepo-carrossel__seta:hover { background: var(--zepo-principal); color: #fff; }
.zepo-anterior { left: 12px; }
.zepo-seguinte { right: 12px; }
.zepo-carrossel__pontos { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.zepo-carrossel__pontos button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.zepo-carrossel__pontos button.ativo { width: 26px; background: var(--zepo-principal); }
.zepo-inicio-topo .widget { padding: 12px; }

/* ---------- Grelha: artigos com foto média ---------- */
.zepo-grelha { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 460px) { .zepo-grelha { grid-template-columns: repeat(min(var(--zepo-colunas, 2), 2), minmax(0, 1fr)); } }
@container (min-width: 720px) { .zepo-grelha { grid-template-columns: repeat(var(--zepo-colunas, 2), minmax(0, 1fr)); } }
.zepo-cartao { display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.zepo-grelha--cartao .zepo-cartao, .zepo-relacionados .zepo-cartao { border: 1px solid #eee; }
.zepo-grelha--cartao .zepo-cartao:hover, .zepo-relacionados .zepo-cartao:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.zepo-cartao__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #eee; }
.zepo-cartao__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.zepo-cartao:hover .zepo-cartao__img img { transform: scale(1.05); }
.zepo-cartao__texto { padding: 12px 14px 14px; }
.zepo-grelha--simples .zepo-cartao__texto { padding: 10px 0 0; }
.zepo-cartao__titulo { font-size: 1.1rem; margin: 0 0 .3rem; }
.zepo-cartao__titulo a { color: #181919; }
.zepo-cartao__titulo a:hover { color: var(--zepo-principal); }
.zepo-grelha--sobreposto .zepo-cartao { position: relative; min-height: 240px; }
.zepo-grelha--sobreposto .zepo-cartao__img { position: absolute; inset: 0; aspect-ratio: auto; }
.zepo-grelha--sobreposto .zepo-cartao__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.8)); }
.zepo-grelha--sobreposto .zepo-cartao__texto { position: relative; margin-top: auto; z-index: 2; pointer-events: none; }
.zepo-grelha--sobreposto .zepo-cartao__texto a { pointer-events: auto; }
.zepo-grelha--sobreposto .zepo-cartao__titulo a, .zepo-grelha--sobreposto .zepo-resumo, .zepo-grelha--sobreposto .zepo-data { color: #fff; }

/* ---------- Lista: artigos com foto pequena ---------- */
.zepo-lista-pequena { list-style: none; margin: 0; padding: 0; counter-reset: zepo; }
.zepo-pequeno { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #e5e5e5; }
.zepo-pequeno:first-child { padding-top: 0; }
.zepo-pequeno:last-child { border-bottom: 0; padding-bottom: 0; }
.zepo-pequeno__img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; display: block; position: relative; }
.zepo-pequeno__img img, .zepo-pequeno__img .zepo-sem-imagem { width: 100%; height: 100%; object-fit: cover; display: flex; font-size: 1.4rem; min-height: 0; aspect-ratio: auto; }
.zepo-redonda .zepo-pequeno__img { border-radius: 50%; }
.zepo-pequeno__texto { min-width: 0; flex: 1; }
.zepo-pequeno__titulo { display: block; color: #181919; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.zepo-pequeno__titulo:hover { color: var(--zepo-principal); }
.zepo-pequeno .zepo-etiquetas { margin-bottom: .2rem; }
.zepo-numerada .zepo-pequeno { counter-increment: zepo; }
.zepo-numerada .zepo-pequeno__img::before { content: counter(zepo); position: absolute; top: 4px; left: 4px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--zepo-principal); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.zepo-numerada .zepo-pequeno:nth-child(2) .zepo-pequeno__img::before { background: #52C0D4; }
.zepo-numerada .zepo-pequeno:nth-child(3) .zepo-pequeno__img::before { background: #3DB46D; }
.zepo-numerada .zepo-pequeno:nth-child(4) .zepo-pequeno__img::before { background: #8E5BD8; }
.zepo-numerada .zepo-pequeno:nth-child(5) .zepo-pequeno__img::before { background: #ECDC1A; color: #181919; }

/* ---------- Destaque + lista ---------- */
.zepo-destaque { display: grid; gap: 18px; }
@container (min-width: 620px) { .zepo-destaque { grid-template-columns: 1.15fr 1fr; } }
.zepo-destaque__grande .zepo-cartao__texto { padding-left: 0; padding-right: 0; }
.zepo-destaque__grande .zepo-cartao__titulo { font-size: 1.4rem; }

/* ---------- Caixa colorida ---------- */
.zepo-caixa { border-radius: 10px; padding: 22px; color: #fff; }
.widget:has(> .zepo-caixa) { padding: 0; background: transparent; box-shadow: none; }
.zepo-caixa--laranja { background: linear-gradient(135deg, #EF4423, #D73828); }
.zepo-caixa--ciano { background: linear-gradient(135deg, #52C0D4, #048DA6); }
.zepo-caixa--verde { background: linear-gradient(135deg, #3DB46D, #23854b); }
.zepo-caixa--roxo { background: linear-gradient(135deg, #8E5BD8, #E8457C); }
.zepo-caixa--amarelo { background: #F4EA7C; color: #3b3612; }
.zepo-caixa--escuro { background: #181919; }
.zepo-caixa--arco-iris { background: linear-gradient(135deg, #EF4423, #ECDC1A 35%, #3DB46D 55%, #52C0D4 75%, #8E5BD8); }
.zepo-caixa__titulo { color: inherit; font-size: 1.3rem; }
.zepo-caixa__texto a { color: inherit; text-decoration: underline; }
.zepo-caixa .zepo-botao { background: #fff; color: #181919 !important; margin-top: .4rem; }
.zepo-caixa--amarelo .zepo-botao, .zepo-caixa--escuro .zepo-botao { background: var(--zepo-principal); color: #fff !important; }
.zepo-centro { text-align: center; }

/* ---------- Título de secção ---------- */
.widget:has(> .zepo-seccao) { background: transparent; box-shadow: none; padding: 6px 0 0; margin-bottom: 14px; }
.zepo-seccao__titulo { position: relative; display: inline-block; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; padding-bottom: .35em; }
.zepo-seccao__titulo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--zepo-cat, #EF4423), #52C0D4); }
.zepo-seccao__sub { color: #888; margin: .4rem 0 0; }

/* =========================================================
   Lista de artigos (blog / arquivos)
   ========================================================= */
.zepo-cabecalho-arquivo { background: #fff; border-radius: 10px; padding: 18px 22px; margin-bottom: 24px; border-left: 6px solid var(--zepo-cat, var(--zepo-principal)); }
.zepo-titulo-arquivo { margin: 0; font-size: 1.6rem; }
.zepo-descricao-arquivo { color: #777; margin-top: .4rem; }

.zepo-lista { display: grid; gap: 22px; container-type: inline-size; }
.zepo-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.zepo-item:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); }
.zepo-item__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #eee; }
.zepo-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.zepo-item:hover .zepo-item__img img { transform: scale(1.04); }
.zepo-item__texto { padding: 16px 20px 18px; }
.zepo-item__titulo { font-size: 1.4rem; margin: .1rem 0 .3rem; }
.zepo-item__titulo a { color: #181919; }
.zepo-item__titulo a:hover { color: var(--zepo-principal); }
.zepo-ler-mais { display: inline-block; margin-top: .6rem; font-weight: 700; font-size: .9rem; }
@container (min-width: 600px) {
	.zepo-lista--lista .zepo-item { flex-direction: row; }
	.zepo-lista--lista .zepo-item__img { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
	.zepo-lista--grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zepo-lista--grelha .zepo-item__titulo { font-size: 1.2rem; }
}
.zepo-lista--grande .zepo-item__img { aspect-ratio: 2 / 1; }
.zepo-lista--grande .zepo-item__titulo { font-size: 1.8rem; }

.zepo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; color: #999; font-size: .82rem; }
.zepo-meta__autor { display: inline-flex; align-items: center; gap: .4rem; }
.zepo-meta__autor img { border-radius: 50%; }
.zepo-meta a { color: #666; font-weight: 700; }

/* Paginação */
.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-block; min-width: 2.4em; text-align: center; padding: .35em .8em; border-radius: 6px; background: var(--zepo-destaque); color: #fff !important; font-weight: 700; }
.page-numbers:hover { filter: brightness(.9); }
.page-numbers.current { background: var(--zepo-links); }
.page-numbers.dots { background: transparent; color: #888 !important; }

/* =========================================================
   Artigo
   ========================================================= */
.zepo-artigo, .zepo-pagina-construida > .zepo-conteudo, .zepo-autor-simples, .zepo-comentarios, .post-navigation, .zepo-relacionados, .zepo-404, .zepo-nada {
	background: #fff;
	border-radius: 10px;
	padding: clamp(18px, 3vw, 34px);
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.zepo-pagina-construida { background: none; }
.zepo-titulo-artigo { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: .2rem 0 .6rem; }
.zepo-cabecalho-artigo { margin-bottom: 1.2rem; }
.zepo-imagem-destaque { margin: 0 0 1.5rem; }
.zepo-imagem-destaque img { width: 100%; border-radius: 8px; display: block; }
.zepo-imagem-destaque figcaption, .wp-caption-text, figcaption { color: #888; font-size: .85rem; text-align: center; margin-top: .4rem; }
.zepo-conteudo { font-size: 1.06rem; }
.zepo-conteudo > * { max-width: 100%; }
.zepo-conteudo h2 { font-size: 1.6rem; margin-top: 1.6em; }
.zepo-conteudo h3 { font-size: 1.3rem; margin-top: 1.4em; }
.zepo-conteudo a { text-decoration: underline; text-decoration-color: rgba(4,141,166,.35); text-underline-offset: 3px; }
.zepo-conteudo blockquote { margin: 1.5em 0; padding: .4em 1.2em; border-left: 5px solid var(--zepo-principal); font-family: Georgia, serif; font-style: italic; font-size: 1.15rem; color: #333; background: #fafafa; }
.zepo-conteudo pre { background: #f5f5f5; padding: 1rem; overflow: auto; border-radius: 6px; }
.zepo-conteudo table { border-collapse: collapse; width: 100%; }
.zepo-conteudo th, .zepo-conteudo td { border: 1px solid #e5e5e5; padding: .5em .7em; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.zepo-rodape-artigo { margin-top: 1.6rem; clear: both; }
.zepo-tags span { font-weight: 700; margin-right: .3rem; }
.zepo-tags a { display: inline-block; background: #f2f2f2; color: #555; border-radius: 999px; padding: 0 .7em; margin: 0 .2rem .3rem 0; font-size: .85rem; }
.zepo-tags a:hover { background: var(--zepo-principal); color: #fff; }
.zepo-area-artigo { margin: 0 0 24px; }

/* Partilha (botões do tema, sem o plugin) */
.zepo-partilha-tema { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.2rem 0; padding-top: 1.2rem; border-top: 1px dashed #e5e5e5; }
.zepo-partilha-tema__titulo { font-weight: 700; }
.zepo-partilha-tema__botao { display: inline-flex; align-items: center; gap: .4rem; color: #fff !important; font-weight: 700; font-size: .85rem; padding: .45rem 1rem; border-radius: 999px; text-decoration: none !important; transition: transform .15s ease, filter .15s ease; }
.zepo-partilha-tema__botao:hover { transform: translateY(-2px); filter: brightness(1.1); }
.zepo-partilha-tema__botao svg { width: 17px; height: 17px; fill: #fff; }
.zepo-partilha-tema__botao * { color: #fff !important; }
.zepo-rodape-artigo .zepo-partilha { padding-top: 1.2rem; border-top: 1px dashed #e5e5e5; }

/* Autor (sem o plugin) */
.zepo-autor-simples { display: flex; gap: 18px; align-items: flex-start; border-top: 5px solid var(--zepo-destaque); }
.zepo-autor-simples img { border-radius: 50%; flex-shrink: 0; }
.zepo-autor-simples h3 { margin: 0 0 .3rem; }

/* Anterior / seguinte */
.post-navigation .nav-links { justify-content: space-between; gap: 18px; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1 1 45%; }
.post-navigation .nav-next { text-align: right; }
.zepo-nav-rotulo { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--zepo-principal); font-weight: 700; }
.zepo-nav-titulo { color: #181919; font-weight: 700; }
.zepo-relacionados { container-type: inline-size; }

/* Comentários */
.zepo-lista-comentarios, .zepo-lista-comentarios .children { list-style: none; padding: 0; margin: 0; }
.zepo-lista-comentarios .children { margin-left: clamp(12px, 4vw, 40px); }
.zepo-lista-comentarios .comment-body { background: #f7f7f7; border-left: 4px solid var(--zepo-destaque); border-radius: 8px; padding: 14px 18px; margin-bottom: 14px; }
.zepo-lista-comentarios .children .comment-body { border-left-color: var(--zepo-principal); }
.comment-author img { border-radius: 50%; float: left; margin-right: 10px; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: #999; }
.comment-content { clear: both; padding-top: .4rem; }
.reply a { font-size: .85rem; font-weight: 700; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* 404 e avisos */
.zepo-404 { text-align: center; }
.zepo-404__numero { font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; line-height: 1; margin: 0; background: linear-gradient(90deg, #EF4423, #ECDC1A, #3DB46D, #52C0D4, #8E5BD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zepo-aviso { background: #F7F3DE; border-left: 5px solid #E1CA59; color: #837639; padding: .8rem 1rem; border-radius: 6px; }

/* =========================================================
   Rodapé
   ========================================================= */
.zepo-rodape { background: var(--zepo-rodape); color: #cfcfcf; margin-top: 10px; }
.zepo-rodape__colunas { display: grid; gap: 28px; grid-template-columns: repeat(var(--zepo-colunas, 4), minmax(0, 1fr)); padding-top: 44px; padding-bottom: 20px; }
@media (max-width: 900px) { .zepo-rodape__colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zepo-rodape__colunas { grid-template-columns: minmax(0, 1fr); } }
.zepo-rodape .widget { background: transparent; box-shadow: none; padding: 0; }
.zepo-rodape .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.12); }
.zepo-rodape a { color: #e8e8e8; }
.zepo-rodape a:hover { color: #ECDC1A; }
.zepo-rodape .widget > ul > li { border-bottom-color: rgba(255,255,255,.1); }
.zepo-rodape .zepo-pequeno { border-bottom-color: rgba(255,255,255,.1); }
.zepo-rodape .zepo-pequeno__titulo, .zepo-rodape .zepo-cartao__titulo a { color: #fff; }
.zepo-rodape .zepo-cartao { background: rgba(255,255,255,.05); }
.zepo-rodape__fundo { background: var(--zepo-destaque); color: #fff; font-size: .88rem; }
.zepo-rodape__fundo .zepo-contentor { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-top: 14px; padding-bottom: 14px; }
.zepo-rodape__fundo p { margin: 0; }
.zepo-rodape__fundo a { color: #fff; }
.zepo-menu-rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Voltar ao topo */
.zepo-topo { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--zepo-principal); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.zepo-topo.visivel { opacity: 1; pointer-events: auto; }
.zepo-topo:hover { transform: translateY(-3px); }

/* Imagens e galerias do WordPress */
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.gallery img { border-radius: 6px; }
.sticky .zepo-item__titulo::before { content: "★ "; color: var(--zepo-principal); }
.bypostauthor > .comment-body { border-left-color: #3DB46D; }
