/*
Theme Name: PortalNews
Author: Leanderson Santos (Soundindoor)
Description: Tema para portais de notícias: carrossel de manchetes, faixa de últimas, editorias em destaque e em pares, mais lidas, modo escuro, busca e rodapé profissional. Com o plugin PortalNews Pro: publicidade em carrossel, galeria de eventos, previsão do tempo e cores do portal.
Version: 3.0.0
Requires at least: 6.3
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portalnews
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--brand: #c8102e;
	--brand-deep: #9b0c23;
	--ink: #16161a;
	--text: #2a2a30;
	--muted: #6b6b75;
	--page: #ffffff;
	--soft: #f2f2f4;
	--line: #e3e3e8;
	--night: #000000;
	--on-dark: #f5f5f7;

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--condensed: 72%;
	--container: 1240px;
	--gap: 24px;
	--radius: 4px;
	--nav-h: 52px;
}

[data-theme="dark"] {
	--ink: #f3f3f5;
	--text: #d9d9de;
	--muted: #9d9da8;
	--page: #121216;
	--soft: #1b1b21;
	--line: #2b2b33;
	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background: var(--page);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; word-spacing: .06em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px;
	padding: 10px 16px; background: var(--page); color: var(--ink);
}

.icon { width: 1em; height: 1em; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.is-fade [data-slide] { transition: opacity .8s ease, visibility 0s linear .8s !important; }
	.is-fade [data-slide].is-active { transition: opacity .8s ease, visibility 0s linear 0s !important; }
}

/* ==========================================================================
   Topo
   ========================================================================== */
.topbar { background: var(--night); color: #c9c9d1; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__nav { margin-left: auto; }
.topbar__menu { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.topbar__menu a { color: #d4d4dc; font-size: 13px; font-weight: 500; }
.topbar__menu a:hover, .topbar__menu .current-menu-item > a { color: #fff; }
.topbar__nav + .socials { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }

.socials { display: flex; gap: 6px; }
.social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%; font-size: 15px; color: #fff;
	transition: background .15s;
}
.topbar .social:hover { background: var(--brand); color: #fff; }

.masthead { background: var(--page); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.brand { flex-shrink: 0; }
.brand .custom-logo { max-height: 84px; width: auto; }
.brand__name {
	display: block; font-size: 44px; font-weight: 800; font-stretch: var(--condensed);
	letter-spacing: -.01em; line-height: 1; color: var(--ink);
}
.brand__name:hover { color: var(--ink); }
.brand__tagline { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.masthead__ad { flex: 0 1 728px; min-width: 0; }
.masthead__ad .ad__label, .masthead__ad .adc__label { display: none; }

/* ==========================================================================
   Menu
   ========================================================================== */
.mainnav {
	position: sticky; top: 0; z-index: 60;
	background: var(--brand); color: #fff;
	box-shadow: 0 2px 0 var(--brand-deep);
}
.admin-bar .mainnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .mainnav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mainnav { top: 0; } }

.mainnav__inner { position: relative; display: flex; align-items: stretch; height: var(--nav-h); }
.mainnav__home {
	display: flex; align-items: center; justify-content: center;
	width: var(--nav-h); background: var(--brand-deep); color: #fff; font-size: 20px;
}
.mainnav__home:hover { color: #fff; background: #000; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; }
.menu > li { position: relative; }
.menu > li > a {
	display: flex; align-items: center; height: var(--nav-h); padding: 0 16px;
	color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.menu > li > a:hover,
.menu > .current-menu-item > a,
.menu > .current-cat > a,
.menu > .current-menu-ancestor > a { background: var(--brand-deep); color: #fff; }
.menu .menu-item-has-children > a::after {
	content: ""; width: 6px; height: 6px; margin-left: 8px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.menu .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: var(--page); border-top: 3px solid var(--brand); box-shadow: 0 12px 28px rgba(0,0,0,.18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { display: block; padding: 9px 18px; color: var(--text); font-size: 14px; font-weight: 500; }
.menu .sub-menu a:hover { color: var(--brand); background: var(--soft); }

.mainnav__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; padding-left: 12px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 19px;
}
.mainnav .icon-btn:hover { background: rgba(0,0,0,.2); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: inline-flex; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-moon, .icon-sun { align-items: center; }

.mainnav__toggle { display: none; }

@media (max-width: 960px) {
	.mainnav__toggle {
		display: flex; align-items: center; justify-content: center;
		width: var(--nav-h); border: 0; background: transparent; color: #fff; padding: 0;
	}
	.mainnav__burger, .mainnav__burger::before, .mainnav__burger::after {
		display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: .2s;
	}
	.mainnav__burger::before, .mainnav__burger::after { content: ""; position: absolute; left: 0; }
	.mainnav__burger::before { top: -7px; }
	.mainnav__burger::after { top: 7px; }
	.mainnav__toggle[aria-expanded="true"] .mainnav__burger { background: transparent; }
	.mainnav__toggle[aria-expanded="true"] .mainnav__burger::before { top: 0; transform: rotate(45deg); }
	.mainnav__toggle[aria-expanded="true"] .mainnav__burger::after { top: 0; transform: rotate(-45deg); }

	.mainnav__inner { padding: 0; }
	.menu {
		display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
		flex-direction: column; background: var(--brand-deep); max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
		padding: 6px 0 12px;
	}
	.menu.is-open { display: flex; }
	.menu > li > a { height: auto; padding: 12px 20px; }
	.menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border: 0; background: transparent; padding: 0 0 6px 16px;
	}
	.menu .sub-menu a { color: #ffd9de; padding: 8px 20px; }
	.menu .sub-menu a:hover { background: transparent; color: #fff; }
	.menu .menu-item-has-children > a::after { display: none; }
}

/* Busca em sobreposição */
.search-overlay {
	position: fixed; inset: 0; z-index: 100; background: rgba(10,10,14,.92);
	display: flex; align-items: flex-start; padding-top: 18vh;
}
.search-overlay[hidden] { display: none; }
.search-overlay__box { position: relative; max-width: 760px; }
.search-overlay .search-form__input { font-size: 22px; padding: 18px 20px; }
.search-overlay__close { position: absolute; top: -56px; right: 20px; color: #fff; font-size: 26px; }

.search-form { display: flex; width: 100%; }
.search-form__input {
	flex: 1; min-width: 0; padding: 12px 14px; font: inherit; color: var(--ink);
	background: var(--page); border: 2px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
}
.search-form__input:focus { outline: none; border-color: var(--brand); }
.search-form__btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border: 0;
	background: var(--brand); color: #fff; font-weight: 700; border-radius: 0 var(--radius) var(--radius) 0;
}
.search-form__btn:hover { background: var(--brand-deep); }

/* ==========================================================================
   Faixa de últimas
   ========================================================================== */
.ticker { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker__inner { display: flex; align-items: center; height: 44px; overflow: hidden; }
.ticker__label {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line);
	font-weight: 800; color: var(--brand);
}
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ticker__track {
	display: flex; overflow: hidden; flex: 1; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker__list {
	display: flex; flex-shrink: 0; gap: 40px; padding-right: 40px; margin: 0; list-style: none;
	animation: ticker 60s linear infinite;
}
.ticker__track:hover .ticker__list, .ticker__track:focus-within .ticker__list { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
.ticker__list li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ticker__list time { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker__list a { color: var(--ink); font-weight: 500; }
.ticker__list a:hover { color: var(--brand); }

/* ==========================================================================
   Badges, meta e títulos de seção
   ========================================================================== */
.badge {
	position: relative; z-index: 2; display: inline-block; margin-bottom: 10px;
	padding: 3px 9px; border-radius: 2px; background: var(--cat, var(--brand));
	color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4;
}
.badge:hover { color: #fff; filter: brightness(1.1); }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.meta__item { display: inline-flex; align-items: center; gap: 5px; }

.section-title {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.section-title h2, .widget__title {
	position: relative; display: inline-block; margin: 0; padding-bottom: 10px;
	font-size: 23px; font-weight: 800; font-stretch: var(--condensed); letter-spacing: -.005em;
}
.section-title h2::after, .widget__title::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--cat, var(--brand));
}
.section-title__more {
	display: inline-flex; align-items: center; gap: 2px; padding-bottom: 10px;
	font-size: 14px; font-weight: 700; color: var(--cat, var(--brand));
}
.section-title__more:hover { color: var(--ink); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card__title { margin: 0 0 8px; font-weight: 700; letter-spacing: -.005em; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--brand); }
.card__excerpt { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card__media { display: block; overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }

.thumb-fallback {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	min-height: 100%; padding: 12px; text-align: center;
	background: linear-gradient(135deg, var(--brand), #1a0006);
	color: rgba(255,255,255,.85); font-weight: 800; font-stretch: var(--condensed); font-size: 20px;
}

/* foto em cima */
.card--card .card__media { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.card--card .card__title { font-size: 18px; line-height: 1.25; }

/* foto à esquerda */
.card--row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.card--row .card__media { aspect-ratio: 16 / 10; }
.card--row .card__title { font-size: 22px; line-height: 1.2; }

/* miniatura */
.card--list { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--list .card__media { aspect-ratio: 3 / 2; }
.card--list .card__title { font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.card--list .meta { font-size: 12px; }

/* texto sobre a foto */
.card--overlay { overflow: hidden; border-radius: var(--radius); background: #000; min-height: 220px; }
.card--overlay .card__media { position: absolute; inset: 0; border-radius: 0; }
.card--overlay .card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.92) 100%);
}
.card--overlay .card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.card--overlay .card__title { color: #fff; font-size: 19px; line-height: 1.2; text-wrap: balance; }
.card--overlay .card__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card--overlay .card__excerpt { color: rgba(255,255,255,.82); }
.card--overlay .meta { color: rgba(255,255,255,.75); }

/* ==========================================================================
   Destaques (o ponto forte da home)
   ========================================================================== */
.hero { margin-top: 22px; }
.hero__grid {
	display: grid; gap: 6px;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, 205px);
}
.hero__main { grid-row: span 2; }
.hero__grid .card--overlay { min-height: 0; }

/* Carrossel de manchetes */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; min-height: 0; }
.hero-slider__track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4, 0, .2, 1); }
.hero-slider__slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.hero-slider__slide > .card { height: 100%; border-radius: 0; }
.hero-slider__nav {
	position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .45); color: #fff; font-size: 20px;
	opacity: 0; transition: opacity .2s, background .2s;
}
.hero-slider:hover .hero-slider__nav, .hero-slider:focus-within .hero-slider__nav { opacity: 1; }
.hero-slider__nav:hover { background: var(--brand); }
.hero-slider__nav--prev { left: 12px; }
.hero-slider__nav--prev .icon { transform: rotate(180deg); }
.hero-slider__nav--next { right: 12px; }
.hero-slider__dots { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 6px; }
.hero-slider__dot {
	width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px;
	background: rgba(255, 255, 255, .5); transition: width .25s, background .25s;
}
.hero-slider__dot.is-active { width: 26px; background: #fff; }
@media (hover: none) { .hero-slider__nav { display: none; } }

/* Transição suave (fade) dos carrosséis */
.is-fade [data-track] { display: grid; grid-template: 100% / 100%; transform: none; transition: none; }
.is-fade [data-slide] {
	grid-area: 1 / 1; width: 100%; opacity: 0; visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
.is-fade [data-slide].is-active {
	opacity: 1; visibility: visible; z-index: 1;
	transition: opacity 1s ease, visibility 0s linear 0s;
}
/* Zoom lento da foto da manchete enquanto está na tela */
.hero-slider.is-fade .is-active .card__media img { animation: portal-zoom 9s ease-out both; }
.hero-slider.is-fade .card:hover .card__media img { transform: none; }
@keyframes portal-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__main .card__body { padding: 26px 30px; max-width: 720px; }
.hero__main .card__title {
	font-size: clamp(28px, 3vw, 42px); font-weight: 800; font-stretch: var(--condensed);
	line-height: 1.02; letter-spacing: -.01em; margin-bottom: 12px;
}
.hero__main .card__excerpt { font-size: 16px; max-width: 60ch; }
.hero__main .badge { font-size: 13px; }
.hero__tile .card__body { padding: 16px; }
.hero__tile .card__title { font-size: 17px; font-weight: 800; font-stretch: 85%; }
.hero__tile .meta__item:nth-child(2) { display: none; }

/* ==========================================================================
   Layout com barra lateral
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 32px; margin-bottom: 40px; align-items: start; }
.layout__main { min-width: 0; }
.layout__side { min-width: 0; display: flex; flex-direction: column; gap: 30px; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.block + .block, .block + .ad-slot, .ad-slot + .block { margin-top: 34px; }
.block__feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); }
.block__lead .card__title { font-size: 22px; line-height: 1.18; }
.grid--compact { gap: 20px; }

/* Home: blocos empilhados e editorias em pares */
.home-main { display: flex; flex-direction: column; gap: 34px; }
.home-main > .ad-slot { margin-top: 0; }
.home-main .block + .block, .home-main .block + .ad-slot, .home-main .ad-slot + .block { margin-top: 0; }
.block-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.block__column .block__lead .card__title { font-size: 18px; }
.block__column .block__lead .meta__item:nth-child(2) { display: none; }
.block__column .block__list { margin-top: 14px; border-top: 1px solid var(--line); }
.block__column .block__list .card--list:first-child { padding-top: 12px; }
.block__column .card--list { grid-template-columns: 96px minmax(0, 1fr); }
@media (max-width: 680px) { .block-pair { grid-template-columns: minmax(0, 1fr); } }
.grid--compact .card__media { aspect-ratio: 3 / 2; margin-bottom: 10px; }
.grid--compact .card__title { font-size: 16px; line-height: 1.28; }
.grid--compact .badge { margin-bottom: 8px; }
.grid--compact .meta__item:nth-child(2) { display: none; }
.block__list { display: flex; flex-direction: column; }
.block__list .card--list { padding: 12px 0; border-bottom: 1px solid var(--line); }
.block__list .card--list:first-child { padding-top: 0; }
.block__list .card--list:last-child { border-bottom: 0; }

.rows { display: flex; flex-direction: column; gap: 24px; }

/* ==========================================================================
   Barra lateral
   ========================================================================== */
.widget__title { font-size: 22px; margin-bottom: 18px; }
.sidebar .widget__title { display: block; }
.sidebar .widget__title::after { right: auto; width: 56px; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sidebar .widget img { margin: 0 auto; }

.ranking { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.sidebar .widget .ranking__item {
	position: relative; counter-increment: rank; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line);
}
.ranking__item::before {
	content: counter(rank); position: absolute; left: 0; top: 6px;
	font-size: 34px; font-weight: 800; font-stretch: var(--condensed); line-height: 1; color: var(--brand);
}
.ranking__item a { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.ranking__item a:hover { color: var(--brand); }
.ranking__date { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* Receba no WhatsApp */
.side-cta {
	position: relative; overflow: hidden; padding: 26px 24px; border-radius: 6px;
	background: #0b6b3a; color: #e9fff2;
}
.side-cta::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
	border-radius: 50%; background: rgba(255,255,255,.08);
}
.side-cta__icon { display: inline-flex; font-size: 34px; color: #25d366; margin-bottom: 10px; }
.side-cta__title { color: #fff; font-size: 24px; font-weight: 800; font-stretch: var(--condensed); margin: 0 0 6px; }
.side-cta__text { margin: 0 0 18px; font-size: 15px; }
.side-cta__btn {
	position: relative; z-index: 1; display: inline-block; padding: 11px 20px; border-radius: 99px;
	background: #25d366; color: #06301a; font-weight: 800;
}
.side-cta__btn:hover { background: #fff; color: #06301a; }

/* Siga o portal */
.follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.follow__item {
	display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 4px;
	color: #fff; font-weight: 700; font-size: 14px;
}
.follow__item .icon { font-size: 18px; }
.follow__item:hover { color: #fff; filter: brightness(1.1); }
.follow__item--facebook { background: #1877f2; }
.follow__item--instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.follow__item--whatsapp { background: #25d366; }
.follow__item--youtube { background: #ff0000; }
.follow__item--x { background: #000; }
.follow__item--telegram { background: #229ed9; }

/* Editorias em etiquetas */
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px;
	border: 1px solid var(--line); border-left: 4px solid var(--cat, var(--brand)); border-radius: 4px;
	font-size: 14px; font-weight: 600; color: var(--ink);
}
.topic:hover { border-color: var(--cat, var(--brand)); color: var(--cat, var(--brand)); }
.topic__count {
	min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--soft);
	font-size: 12px; font-weight: 700; color: var(--muted); text-align: center;
}

/* ==========================================================================
   Publicidade
   ========================================================================== */
.ad-slot { margin-top: 28px; text-align: center; }
.ad { text-align: center; }
.ad + .ad { margin-top: 16px; }
.ad img { margin: 0 auto; border-radius: 2px; }
.ad__label { display: block; margin-bottom: 6px; font-size: 11px; color: var(--muted); }

/* ==========================================================================
   Matéria
   ========================================================================== */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb .icon { font-size: 12px; }
.breadcrumb a:hover { color: var(--brand); }

.entry__title {
	font-size: clamp(30px, 4vw, 48px); font-weight: 800; font-stretch: 80%;
	line-height: 1.06; letter-spacing: -.012em; margin: 4px 0 14px; text-wrap: balance;
}
.entry__lead { font-size: 20px; line-height: 1.45; color: var(--muted); margin: 0 0 20px; }
.entry__meta {
	display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0; font-size: 14px; color: var(--muted);
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.entry__meta strong { color: var(--ink); }
.entry__updated { margin-left: 4px; }
.entry__header .share { margin: 16px 0 24px; }

.entry__figure { margin: 0 0 28px; }
.entry__figure img { width: 100%; border-radius: var(--radius); }
.entry__figure figcaption, .entry__content figcaption, .wp-caption-text {
	margin-top: 8px; font-size: 13px; color: var(--muted); text-align: left;
}

.entry__content { font-size: 18px; line-height: 1.75; color: var(--text); }
.entry__content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry__content h2 { font-size: 28px; font-stretch: 85%; margin-top: 1.6em; }
.entry__content h3 { font-size: 22px; margin-top: 1.4em; }
.entry__content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry__content blockquote {
	margin-left: 0; margin-right: 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--brand);
	font-size: 21px; font-weight: 600; color: var(--ink);
}
.entry__content img { border-radius: var(--radius); }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content iframe { width: 100%; aspect-ratio: 16 / 9; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.entry__footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.entry__tags a {
	padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--text);
}
.entry__tags a:hover { border-color: var(--brand); color: var(--brand); }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; font-size: 17px;
}
.share__btn:hover { color: #fff; filter: brightness(1.12); }
.share__btn--whatsapp { background: #25d366; }
.share__btn--facebook { background: #1877f2; }
.share__btn--x { background: #000; }
.share__btn--telegram { background: #229ed9; }
.share__btn--link { background: var(--muted); }
.share__btn--link .icon:last-child { display: none; }
.share__btn--link.is-copied { background: #2b8a3e; }
.share__btn--link.is-copied .icon:first-child { display: none; }
.share__btn--link.is-copied .icon:last-child { display: block; }

.related { margin-top: 48px; }
.related .card--card .card__title { font-size: 17px; }

/* Comentários */
.comments { margin-top: 48px; }
.comments__title, .comment-reply-title { font-size: 24px; font-stretch: var(--condensed); }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); margin: 2px 0 8px 54px; }
.comment-content { margin-left: 54px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--page);
	border: 2px solid var(--line); border-radius: var(--radius);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); }
.btn, .comment-form .submit {
	display: inline-block; padding: 12px 22px; border: 0; border-radius: var(--radius);
	background: var(--brand); color: #fff; font-weight: 700;
}
.btn:hover, .comment-form .submit:hover { background: var(--brand-deep); color: #fff; }

/* ==========================================================================
   Listagens, paginação, 404
   ========================================================================== */
.page-head { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 4px solid var(--cat, var(--brand)); }
.page-head__title { font-size: clamp(32px, 4vw, 46px); font-weight: 800; font-stretch: var(--condensed); margin: 0; }
.page-head__desc { color: var(--muted); margin-top: 6px; }
.page-head .search-form { margin-top: 16px; max-width: 560px; }

.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--ink);
}
.page-numbers.current, .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty-note { padding: 28px; background: var(--soft); border-radius: var(--radius); color: var(--muted); }
.container.empty-note { margin-top: 28px; }

.notfound { max-width: 640px; padding-top: 64px; padding-bottom: 24px; text-align: center; }
.notfound__code { margin: 0; font-size: 120px; font-weight: 800; font-stretch: 62%; line-height: 1; color: var(--brand); }
.notfound__title { font-size: 30px; font-stretch: var(--condensed); }
.notfound .search-form { margin-top: 24px; }
.notfound + .block { margin-top: 48px; margin-bottom: 56px; }

/* ==========================================================================
   Títulos em faixa (editorias, galeria, relacionadas e barra lateral)
   ========================================================================== */
.section-title,
.sidebar .widget__title {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 38px; margin: 0 0 18px; padding: 0 22px 0 26px;
	background: var(--cat, var(--brand)); border: 0; color: #fff;
	clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
	box-shadow: none;
}
/* lasca escura na ponta esquerda */
.section-title::before,
.sidebar .widget__title::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22px;
	background: rgba(0, 0, 0, .28);
	clip-path: polygon(12px 0, 22px 0, 10px 100%, 0 100%);
}
/* escurecimento suave na ponta direita */
.section-title::after,
.sidebar .widget__title::after {
	content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 180px; height: auto;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .22));
	pointer-events: none;
}
.section-title h2 {
	position: relative; z-index: 1; margin: 0; padding: 0; color: #fff;
	font-size: 19px; font-weight: 700; font-stretch: 90%; letter-spacing: 0; line-height: 1.2;
}
.section-title h2::after { display: none; }
.section-title__more {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 2px; padding: 0;
	color: #fff; font-size: 14px; font-weight: 800; font-style: italic; white-space: nowrap;
}
.section-title__more:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.section-title__more .icon { font-style: normal; }
.sidebar .widget__title { display: flex; font-size: 18px; font-weight: 700; font-stretch: 90%; padding-bottom: 0; }
.sidebar .widget__title > * { position: relative; z-index: 1; }

/* ==========================================================================
   Rodapé (estilos em inc/footer-pro.php) e botão voltar ao topo
   ========================================================================== */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 50;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-deep); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
	.hero__grid { grid-template-rows: repeat(2, 220px); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.masthead__inner { flex-direction: column; align-items: center; gap: 18px; text-align: center; }
	.masthead__ad { flex-basis: auto; width: 100%; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px repeat(2, 210px); }
	.hero__main { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 680px) {
	.container { padding: 0 16px; }
	.topbar__date { display: none; }
	.topbar__inner { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
	.topbar__nav { margin-left: 0; }
	.topbar__menu { justify-content: center; gap: 4px 14px; }
	.topbar__menu a { font-size: 12px; }
	.topbar__nav + .socials { display: none; }
	.brand__name { font-size: 36px; }
	.hero { margin-top: 0; padding: 0; }
	.hero__grid { gap: 2px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
	.hero__main { grid-column: auto; height: 440px; }
	.hero__tile { height: 210px; }
	.hero__main .card__body { padding: 20px; }
	.hero__main .card__excerpt { display: none; }
	.card--overlay { border-radius: 0; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
	.block__feature { grid-template-columns: minmax(0, 1fr); }
	.card--row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
	.card--row .card__media { aspect-ratio: 1; }
	.card--row .card__title { font-size: 17px; }
	.card--row .card__excerpt, .card--row .badge { display: none; }
	.entry__content { font-size: 17px; }
	.entry__lead { font-size: 18px; }
	.ticker__label { margin-right: 10px; padding-right: 10px; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}

/* Editorias da lateral: duas colunas iguais, quantidade alinhada à direita */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.topic { justify-content: space-between; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .ticker__list { animation: ticker 60s linear infinite !important; } }
