/*
Theme Name: CV do Fábio
Theme URI: https://cv.fabiog.com.br
Author: Fábio G. Silva
Author URI: https://www.fabiog.com.br
Description: Tema moderno e responsivo para o blog CV do Fábio — marketing, empreendedorismo e desenvolvimento pessoal. Inclui anúncios entre parágrafos (AdSense + banners), caixa de autor, barra lateral de widgets e campos do Yoast na REST API.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: cv-do-fabio
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	/* Paleta da marca fabiog.com.br */
	--brand: #77aadd;
	--brand-50: #f1f6fc;
	--brand-100: #e1ecf8;
	--brand-200: #c9dcf1;
	--brand-600: #3f7fc1;
	--brand-700: #2b64a0;
	--brand-800: #1f4d7e;
	--brand-rgb: 63, 127, 193;

	--bg: #f6f8fb;
	--surface: #ffffff;
	--surface-2: #eef3f8;
	--ink: #18222e;
	--ink-2: #3c4a59;
	--muted: #627080;
	--line: #e2e8ef;
	--accent: var(--brand-700);
	--accent-hover: var(--brand-800);
	--accent-bright: var(--brand);
	--accent-soft: var(--brand-100);
	--accent-soft-ink: var(--brand-700);
	--dark: #111c28;
	--dark-2: #1a2735;
	--dark-line: #26364a;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Barlow Condensed", "Arial Narrow", var(--font-sans);

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow-sm: 0 1px 2px rgba(20, 20, 24, .05);
	--shadow: 0 1px 2px rgba(20, 20, 24, .04), 0 8px 24px -8px rgba(20, 20, 24, .12);
	--shadow-lg: 0 2px 4px rgba(20, 20, 24, .04), 0 20px 40px -12px rgba(20, 20, 24, .18);

	--gutter: 16px;
	--header-h: 64px;
	--max: 1180px;
	--narrow: 760px;
	--sidebar: 320px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) {
	:root { --gutter: 24px; --header-h: 72px; }
}
@media (min-width: 1024px) {
	:root { --gutter: 32px; }
}

/* =========================================================
   2. Base
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: .005em;
	margin: 0 0 .5em;
	font-weight: 600;
}

button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px; background: var(--surface); color: var(--ink);
	border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

.container {
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.icon { flex: none; }

.eyebrow {
	margin: 0 0 .75rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Botões */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--sm { padding: .5rem .95rem; font-size: .85rem; }

/* Chips */
.chip {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center;
	padding: .25rem .7rem;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-soft-ink);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
	transition: background .2s;
}
a.chip:hover { background: var(--brand-200); color: var(--accent-soft-ink); }
.chip--muted { background: var(--surface-2); color: var(--muted); }

/* Meta */
.meta {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: .35rem 1rem;
	font-size: .82rem;
	color: var(--muted);
}
.meta-item { display: inline-flex; align-items: center; gap: .35rem; }

/* Formulários */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="tel"], input[type="number"], textarea, select {
	width: 100%;
	padding: .75rem 1rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--accent-bright);
	box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .18);
}

.search-form { position: relative; display: flex; gap: .5rem; align-items: center; }
.search-form > .icon { position: absolute; left: 1rem; color: var(--muted); pointer-events: none; }
.search-form .search-field { padding-left: 2.75rem; border-radius: 999px; }
.search-form .search-submit {
	flex: none;
	padding: .75rem 1.15rem;
	border: 0; border-radius: 999px;
	background: var(--brand-600); color: #fff; font-weight: 600; font-size: .9rem;
}
.search-form .search-submit:hover { background: var(--accent); }

/* =========================================================
   3. Header
   ========================================================= */
.read-progress {
	position: fixed; inset: 0 0 auto; z-index: 120;
	height: 3px; pointer-events: none;
}
.read-progress span {
	display: block; height: 100%;
	background: linear-gradient(90deg, var(--accent-bright), var(--accent));
	transform: scaleX(0); transform-origin: 0 50%;
}

.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
/* fundo em pseudo-elemento: backdrop-filter no próprio header quebraria o menu fixo */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner {
	display: flex; align-items: center; gap: 1rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex; align-items: center; gap: .7rem;
	color: var(--ink); text-decoration: none;
	min-width: 0; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark {
	flex: none;
	width: auto; height: 40px;
	object-fit: contain;
}
.brand__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: #5b5a5d; white-space: nowrap; }
.brand:hover .brand__name { color: var(--ink); }
.brand__tagline {
	margin-top: .2rem;
	font-size: .72rem; color: var(--muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	display: none;
}
@media (min-width: 480px) { .brand__tagline { display: block; } }
/* com o menu horizontal o espaço é curto: esconde o slogan */
@media (min-width: 1280px) { .brand__tagline { display: none; } .brand { flex: none; } }

.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 12px;
	background: transparent; color: var(--ink);
	transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }

.nav-toggle__bars { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 2px;
	border-radius: 2px; background: currentColor;
	transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-open .nav-toggle { position: relative; z-index: 102; }

/* Menu — mobile/tablet: painel lateral */
.site-nav {
	position: fixed; z-index: 101;
	top: 0; right: 0; bottom: 0;
	width: min(380px, 88vw);
	padding: calc(var(--header-h) + 8px) 1.25rem 2rem;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.nav-open .site-nav {
	transform: none; visibility: visible;
	transition: transform .35s var(--ease), visibility 0s;
}
.nav-backdrop {
	position: fixed; inset: 0; z-index: 99;
	background: rgba(20, 20, 24, .4);
	animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }

.site-nav .menu, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li { position: relative; border-bottom: 1px solid var(--line); }
.site-nav a {
	display: block;
	padding: .9rem 2.75rem .9rem .25rem;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--accent); }
.site-nav .sub-toggle {
	position: absolute; top: .45rem; right: 0;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border: 0; border-radius: 10px; background: var(--surface-2);
	transition: transform .25s var(--ease);
}
.site-nav .is-open > .sub-toggle { transform: rotate(180deg); }
.site-nav .sub-menu { display: none; padding: 0 0 .75rem .75rem; }
.site-nav .is-open > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: .55rem .25rem; font-weight: 500; color: var(--ink-2); font-size: .95rem; }

/* Menu — desktop (menu longo: só vira horizontal a partir de 1280px) */
@media (min-width: 1280px) {
	.nav-toggle, .nav-backdrop { display: none !important; }
	.site-nav {
		position: static; width: auto; padding: 0;
		background: none; box-shadow: none; overflow: visible;
		transform: none; visibility: visible; transition: none;
	}
	.site-nav { margin-left: 1.5rem; }
	.site-nav .menu { display: flex; align-items: center; gap: .15rem; }
	.site-nav .menu > li { border: 0; }
	.site-nav .menu > li > a {
		padding: .5rem .75rem;
		border-radius: 10px;
		font-size: .9rem; font-weight: 500; color: var(--ink-2);
		white-space: nowrap;
	}
	.site-nav .menu > li > a:hover,
	.site-nav .menu > .current-menu-item > a { background: var(--surface-2); color: var(--ink); }
	.site-nav .menu-item-has-children > a { padding-right: 1.75rem; }
	.site-nav .sub-toggle {
		top: 50%; right: .3rem; width: 22px; height: 22px;
		margin-top: -11px; background: none; pointer-events: none;
	}
	.site-nav .sub-menu {
		display: block;
		position: absolute; top: calc(100% + 8px); left: 0;
		min-width: 280px; padding: .5rem;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s;
	}
	.site-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity .2s, transform .2s var(--ease), visibility 0s;
	}
	.site-nav .sub-menu a { padding: .55rem .75rem; border-radius: 10px; font-size: .9rem; }
	.site-nav .sub-menu a:hover { background: var(--surface-2); }
}

.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 1rem 0; }
.search-panel .search-form { max-width: 640px; margin-inline: auto; }

/* =========================================================
   4. Hero (home)
   ========================================================= */
.hero {
	position: relative;
	padding: 2.5rem 0 2rem;
	overflow: hidden;
}
.hero::before {
	content: ""; position: absolute; z-index: -1;
	width: 680px; height: 680px; top: -340px; right: -200px;
	background: radial-gradient(closest-side, rgba(119, 170, 221, .30), transparent);
}
.hero::after {
	content: ""; position: absolute; z-index: -1;
	width: 520px; height: 520px; bottom: -300px; left: -220px;
	background: radial-gradient(closest-side, rgba(63, 127, 193, .12), transparent);
}
.hero__inner { display: grid; gap: 2rem; align-items: center; }
.hero__title {
	font-size: clamp(2.6rem, 6.4vw, 4.4rem);
	font-weight: 700;
	letter-spacing: .005em;
	line-height: 1.06;
	margin-bottom: 1rem;
	max-width: 16ch;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 54ch; margin: 0 0 1.5rem; }

.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.topic {
	display: inline-flex; align-items: center; gap: .45rem;
	padding: .45rem .5rem .45rem .9rem;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface);
	color: var(--ink); font-size: .875rem; font-weight: 500;
	text-decoration: none;
	transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.topic span {
	min-width: 1.75rem; padding: .05rem .45rem;
	border-radius: 999px; background: var(--surface-2);
	color: var(--muted); font-size: .75rem; text-align: center;
}
.topic:hover { color: var(--ink); border-color: var(--accent-bright); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.hero__card {
	position: relative;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
	display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center;
}
.hero__avatar { grid-row: span 2; }
.hero__avatar img {
	width: 72px; height: 72px; border-radius: 50%;
	box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-bright);
}
.hero__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
.hero__bio { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.5; grid-column: 1 / -1; margin-top: .75rem; }
.hero__card .btn { grid-column: 1 / -1; justify-self: start; margin-top: 1rem; }

@media (min-width: 640px) {
	.hero { padding: 3.5rem 0 2.5rem; }
}
@media (min-width: 960px) {
	.hero { padding: 4.5rem 0 3rem; }
	.hero__inner { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 3.5rem; }
	.hero__card { display: block; text-align: left; padding: 2rem; }
	.hero__avatar img { width: 96px; height: 96px; margin-bottom: 1rem; }
	.hero__name { font-size: 1.7rem; }
	.hero__bio { margin-top: .5rem; }
}

/* =========================================================
   5. Layout com sidebar
   ========================================================= */
.layout {
	display: grid;
	gap: 3rem;
	padding-top: 1.5rem;
	padding-bottom: 4rem;
}
.main { min-width: 0; }
@media (min-width: 1024px) {
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: 3rem; }
}
@media (min-width: 1200px) {
	.has-sidebar .layout { gap: 4rem; }
}

.section-title {
	display: flex; align-items: center; gap: 1rem;
	font-size: 1.6rem; margin-bottom: 1.25rem;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Cabeçalho de arquivo/busca */
.page-head { padding: 1rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-head__title { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: .005em; margin: 0; }
.page-head__desc { color: var(--ink-2); margin-top: .75rem; max-width: 62ch; }
.page-head__desc p { margin: 0 0 .5em; }
.page-head .search-form { margin-top: 1.25rem; max-width: 560px; }
.page-head__author { display: flex; align-items: center; gap: 1rem; }
.page-head__author img { border-radius: 50%; }
.page-head__author .eyebrow { margin-bottom: .25rem; }

.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* =========================================================
   6. Cards
   ========================================================= */
.post-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
	body:not(.has-sidebar) .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.card__top { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.card__title { font-size: 1.45rem; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: .005em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--accent); }
.card__excerpt {
	margin: 0 0 1rem;
	color: var(--muted); font-size: .925rem; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { margin-top: auto; }

.card--featured { grid-column: 1 / -1; }
.card--featured .card__title { font-size: clamp(1.75rem, 3.6vw, 2.4rem); letter-spacing: .005em; line-height: 1.2; }
.card--featured .card__excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
@media (min-width: 768px) {
	.card--featured { display: grid; grid-template-columns: 1.15fr 1fr; }
	.card--featured .card__media { aspect-ratio: auto; min-height: 100%; }
	.card--featured .card__body { padding: 1.75rem 2rem; justify-content: center; }
}

/* Paginação */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 .75rem;
	border: 1px solid var(--line); border-radius: 12px;
	background: var(--surface);
	color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none;
	transition: border-color .2s, background .2s;
}
a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

.empty-state { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* =========================================================
   7. Sidebar / widgets
   ========================================================= */
.sidebar { display: grid; gap: 2rem; align-content: start; min-width: 0; }
@media (min-width: 640px) and (max-width: 1023px) {
	.sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-top: 2.5rem; border-top: 1px solid var(--line);
	}
}
.widget { min-width: 0; font-size: .925rem; }
.widget-title,
.widget .wp-block-heading,
.widget > h2 {
	display: flex; align-items: center; gap: .6rem;
	margin: 0 0 1rem;
	font-family: var(--font-sans);
	font-size: .72rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink);
}
.widget-title::before,
.widget .wp-block-heading::before {
	content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--accent-bright);
}
/* widget de bloco que é só o rótulo "Anúncio": cola no anúncio logo abaixo */
.widget_block:has(> .wp-block-heading:only-child) { margin-bottom: -1.25rem; }
.widget_block:has(> p:only-child) p { margin: 0; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.widget li a { color: var(--ink-2); text-decoration: none; }
.widget li a:hover { color: var(--accent); }

/* Categorias como "pills" */
.widget_categories ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.widget_categories li { padding: 0; border: 0; }
.widget_categories li a {
	display: inline-block;
	padding: .35rem .8rem;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface);
	font-size: .82rem; font-weight: 500;
	transition: border-color .2s, color .2s;
}
.widget_categories li a:hover { border-color: var(--accent-bright); }
.widget_categories .children { display: contents; }

.widget_custom_html,
.widget_text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.widget iframe { max-width: 100% !important; }
.widget .fb-page, .widget .fb-page span, .widget .fb-page iframe { width: 100% !important; }

/* HubSpot form (newsletter) */
.widget .hs-form fieldset { max-width: none !important; }
.widget .hs-form .hs-input { width: 100% !important; }
.widget .hs-form label { font-size: .85rem; font-weight: 500; }
.widget .hs-form input.hs-button,
.widget .hs-form .hs-button.primary {
	margin-top: .5rem; padding: .75rem 1.2rem !important;
	border: 0 !important; border-radius: 999px !important;
	background: var(--accent) !important; color: #fff !important;
	font-family: var(--font-sans) !important; font-weight: 600 !important; font-size: .95rem !important;
	box-shadow: none !important;
	cursor: pointer; width: 100%;
}
.widget .hs-form input.hs-button:hover { background: var(--accent-hover) !important; }
.widget .hs-form .hs-input { border-radius: 10px !important; border-color: var(--line) !important; background: var(--surface-2) !important; }
.widget .hs-error-msgs { list-style: none; padding: 0; margin: .25rem 0 0; font-size: .8rem; color: #b91c1c; }
.widget .hs-error-msgs li { border: 0; padding: 0; }

/* =========================================================
   8. Post individual
   ========================================================= */
.entry-head { padding: 2rem 0 1.75rem; }
@media (min-width: 768px) { .entry-head { padding: 3.5rem 0 2.25rem; } }
.entry-head__wrap > * { max-width: 860px; }

/* Post: título e imagem lado a lado (a partir de 900px) */
.entry-head__grid { display: grid; gap: 1.75rem; }
.entry-head--media .entry-cover { margin: 0; }
@media (min-width: 900px) {
	.entry-head--media .entry-head__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		align-items: center;
		gap: 3rem;
	}
	.entry-head--media .entry-title { font-size: clamp(2.2rem, 3.6vw, 3.3rem); }
	.entry-head--media .entry-cover img { aspect-ratio: 16 / 10; }
}
@media (min-width: 1200px) {
	.entry-head--media .entry-head__grid { gap: 4rem; }
}
.entry-head__chips { display: flex; gap: .4rem; margin-bottom: 1rem; }
.entry-title {
	font-size: clamp(2.3rem, 5.6vw, 3.8rem);
	font-weight: 700;
	letter-spacing: .005em;
	line-height: 1.12;
	margin-bottom: 1rem;
	text-wrap: balance;
}
.entry-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); margin: 0 0 1.5rem; line-height: 1.55; }
.entry-byline { display: flex; align-items: center; gap: .85rem; margin-top: 1.25rem; }
.entry-byline img { border-radius: 50%; }
.entry-byline__author { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; }
.entry-byline__author:hover { color: var(--accent); }

.entry-cover { margin-bottom: .5rem; }
.entry-cover img {
	width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
	border-radius: var(--radius);
	background: var(--surface-2);
}
@media (min-width: 768px) {
	.entry-cover img { aspect-ratio: 2 / 1; border-radius: var(--radius-lg); }
}
.entry-cover figcaption { margin-top: .6rem; font-size: .8rem; color: var(--muted); text-align: center; }

.single-post .layout { padding-top: 2rem; }
@media (min-width: 1024px) { .single-post .layout { padding-top: 3rem; } }

/* Tipografia do conteúdo */
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.78;
	color: var(--ink-2);
	overflow-wrap: break-word;
}
@media (min-width: 768px) { .entry-content { font-size: 1.125rem; } }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { font-size: clamp(1.8rem, 3.6vw, 2.3rem); margin: 2.2em 0 .7em; letter-spacing: .005em; }
.entry-content h3 { font-size: clamp(1.45rem, 2.8vw, 1.7rem); margin: 1.9em 0 .6em; }
.entry-content h4 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.entry-content a { color: var(--accent); font-weight: 500; }
.entry-content strong { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent-bright); }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0;
	padding: 1.1rem 1.5rem;
	border-left: 4px solid var(--accent-bright);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--accent-soft);
	color: var(--ink);
	font-size: 1.08em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .5rem; font-size: .85rem; color: var(--muted); font-style: normal; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .wp-element-caption {
	margin-top: .5rem; font-size: .82rem; color: var(--muted); text-align: center;
}
.entry-content .wp-caption { max-width: 100%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
@media (max-width: 599px) {
	.entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: auto; max-width: 100%; }
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92em; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--ink); background: var(--surface-2); }
.entry-content code { padding: .15em .4em; border-radius: 6px; background: var(--surface-2); font-size: .88em; }
.entry-content pre { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: var(--dark); color: #f4f4f5; overflow-x: auto; font-size: .88rem; }
.entry-content pre code { background: none; padding: 0; }
.entry-content iframe { width: 100%; border-radius: 12px; }
.entry-content .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; height: auto; }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; padding: .75rem 1.4rem; }

/* Posts relacionados (plugin Related Posts Thumbnails) */
.entry-content .relpost-thumb-wrapper { margin-top: 3rem; }
.entry-content .relpoststh-block-title { font-size: 1.6rem; margin-bottom: 1rem; }
.entry-content .relpost-block-container {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
@media (min-width: 768px) {
	.entry-content .relpost-block-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.entry-content a.relpost-block-single {
	display: block; width: auto !important; margin: 0 !important;
	border: 1px solid var(--line) !important; border-radius: var(--radius);
	background: var(--surface) !important;
	overflow: hidden; text-decoration: none;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.entry-content a.relpost-block-single:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.entry-content .relpost-custom-block-single { width: auto !important; height: auto !important; margin: 0 !important; }
.entry-content .relpost-block-single-image {
	width: 100% !important; height: auto !important;
	aspect-ratio: 16 / 10 !important; object-fit: cover; border-radius: 0 !important;
}
.entry-content .relpost-block-single-text { height: auto !important; padding: .75rem .9rem 1rem; }
.entry-content .relpost_card_title {
	margin: 0 !important;
	font-family: var(--font-display) !important; font-size: 1.15rem !important; font-weight: 600;
	line-height: 1.35 !important; color: var(--ink) !important; text-align: left !important;
}
.entry-content a.relpost-block-single:hover .relpost_card_title { color: var(--accent) !important; }

.page-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 2rem 0; font-weight: 600; }
.page-links a, .page-links > span:not(:first-child) {
	display: inline-grid; place-items: center; min-width: 36px; height: 36px;
	border: 1px solid var(--line); border-radius: 10px; text-decoration: none;
}

/* Anúncios dentro do conteúdo */
.cvf-ad {
	position: relative;
	clear: both;
	margin: 2.5rem 0 !important;
	padding: 1.5rem 0 1.25rem;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.cvf-ad__label {
	position: absolute; top: 0; left: 50%;
	transform: translate(-50%, -50%);
	padding: 0 .75rem;
	background: var(--bg);
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: .65rem; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase;
	line-height: 1;
}
.cvf-ad__banner { display: inline-block; max-width: 100%; }
.cvf-ad__banner img { margin-inline: auto; border-radius: 12px; transition: transform .3s var(--ease); }
.cvf-ad__banner:hover img { transform: translateY(-2px); }
.cvf-ad .adsbygoogle { margin-inline: auto; }

/* Rodapé do post */
.entry-footer { display: grid; gap: 1.25rem; margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.entry-tags__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-right: .4rem; }
.entry-tags a {
	padding: .3rem .75rem; border-radius: 999px;
	background: var(--surface-2); color: var(--ink-2);
	font-size: .82rem; text-decoration: none;
}
.entry-tags a:hover { background: var(--accent-soft); color: var(--accent-soft-ink); }
.edit-link { margin: 0; font-size: .85rem; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.share__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.share__list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.share__btn {
	position: relative;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--line); border-radius: 50%;
	background: var(--surface); color: var(--ink);
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.share__btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share__btn--linkedin:hover { background: #0a66c2; }
.share__btn--whatsapp:hover { background: #1fa855; }
.share__btn--x:hover { background: #111; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--copy:hover, .share__btn--copy.is-copied { background: var(--accent); }
.share__toast {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	padding: .3rem .6rem; border-radius: 8px;
	background: var(--ink); color: #fff; font-size: .75rem; white-space: nowrap;
	pointer-events: none;
}
.share__toast:empty { display: none; }

/* Caixa do autor */
.author-box {
	display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem;
	margin: 2.5rem 0;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}
.author-box__avatar img {
	width: 64px; height: 64px; border-radius: 50%;
	box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-bright);
}
.author-box__eyebrow { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.author-box__name { margin: .1rem 0 .5rem; font-size: 1.65rem; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__name a:hover { color: var(--accent); }
.author-box__bio { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.author-box__bio p { margin: 0 0 .75em; }
.author-box__footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.author-box__social { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.author-box__social a {
	display: grid; place-items: center; width: 36px; height: 36px;
	border-radius: 50%; color: var(--ink-2); background: var(--surface-2);
}
.author-box__social a:hover { background: var(--accent); color: #fff; }
@media (max-width: 559px) {
	.author-box { grid-template-columns: 1fr; }
	.author-box__body { grid-column: 1; }
}
@media (min-width: 768px) {
	.author-box { padding: 2rem; gap: 1.5rem 1.75rem; }
	.author-box__avatar img { width: 96px; height: 96px; }
}

/* Navegação entre posts */
.post-nav { display: grid; gap: 1rem; margin: 2.5rem 0; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__item {
	display: flex; flex-direction: column; gap: .4rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface);
	text-decoration: none;
	transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.post-nav__item:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav__item--next { text-align: right; grid-column: -2; }
.post-nav__item--next .post-nav__label { justify-content: flex-end; }
.post-nav__label { display: flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-nav__title { color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
@media (max-width: 639px) { .post-nav__item--next { grid-column: auto; } }

/* Comentários */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments__title { font-size: 1.75rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.25rem; border-left: 2px solid var(--line); margin-left: .5rem; }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; margin: .25rem 0 .5rem 60px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-left: 60px; color: var(--ink-2); }
.reply { margin-left: 60px; font-size: .85rem; font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: .875rem; color: var(--muted); }

/* Páginas */
.single-page .entry-content { padding-bottom: 4rem; }
.single-page .entry-cover { margin-bottom: 2.5rem; }

/* 404 */
.error-404 { padding-top: 4rem; padding-bottom: 6rem; text-align: center; }
.error-404__code {
	margin: 0;
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(5rem, 18vw, 9rem); line-height: 1;
	background: linear-gradient(135deg, var(--accent-bright), var(--accent));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 .search-form { max-width: 520px; margin: 0 auto 2rem; }

/* =========================================================
   9. Rodapé
   ========================================================= */
.site-footer {
	background: var(--dark);
	color: #a9b6c6;
	padding-top: 3.5rem;
	font-size: .925rem;
}
.site-footer a { color: #e3eaf3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.footer-brand p { max-width: 42ch; margin: 1rem 0 0; }
.brand--footer { color: #fff; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand__name, .brand--footer:hover .brand__name { color: #fff; }
.footer-title { color: #fff; font-family: var(--font-sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-topics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
.footer-social__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.footer-social__list a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--dark-line); border-radius: 999px; font-size: .85rem; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem;
	padding-top: 1.5rem; padding-bottom: 1.5rem;
	border-top: 1px solid var(--dark-line);
	font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .35rem; }

/* =========================================================
   10. Utilidades WordPress
   ========================================================= */
.sticky, .bypostauthor, .gallery-caption { /* classes exigidas pelo WP */ }
.wp-block-image figcaption { text-align: center; }
.alignwide, .alignfull { max-width: 100%; }
