/* ==========================================================================
   Alan Chiapetta — folha de estilos principal
   Visual "editorial de vendas": fundo claro, blocos escuros, tipografia
   grande e acento terracota.
   ========================================================================== */

:root {
	--color-bg: #fbf9f7;
	--color-bg-alt: #f3f0ec;
	--color-border: #e5e1db;
	--color-text: #1f1e1c;
	--color-text-muted: #5a554f;
	--color-text-faint: #d9d4cd;
	--color-accent: #c73e2b;
	--color-accent-strong: #9a3412;
	--color-amber: #ffb020;
	--color-link: #c73e2b;
	--color-dark: #121212;
	--color-white: #ffffff;
	--color-white-soft: rgba(255, 255, 255, 0.85);
	--color-surface-dark: #181818;
	--color-border-dark: #2a2a2a;
	--font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--radius: 10px;
	--radius-sm: 4px;
	--radius-pill: 999px;
	--container-max: 859px;
	--header-h: 64px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 20px;
	line-height: 1.8;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	margin: 0 0 1em;
}

h2 {
	font-size: 1.8em;
	font-weight: 800;
}

h3 {
	font-size: 1.4em;
	font-weight: 800;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--color-text);
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
	text-underline-offset: 3px;
}

a:hover, a:focus, a:active {
	color: var(--color-link);
}

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

/* ==========================================================================
   Acessibilidade
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	background: var(--color-dark);
	color: var(--color-white);
	clip: auto;
	white-space: normal;
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
	display: inline-block;
	padding: 8px 20px;
	border-radius: var(--radius-sm);
	border: 2px solid transparent;
	font-size: 18px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn--primary:hover {
	background: var(--color-accent-strong);
	color: var(--color-white);
	text-decoration: none;
}

.btn--outline {
	border-color: var(--color-accent);
	color: var(--color-text);
	background: transparent;
}

.btn--outline:hover {
	background: var(--color-accent);
	color: var(--color-white);
	text-decoration: none;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-dark);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--header-h);
	max-width: 1100px;
}

.site-branding {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.site-branding__name {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-white);
	text-decoration: none;
	letter-spacing: 0.5px;
}

.site-branding__name:hover {
	color: var(--color-link);
	text-decoration: none;
}

.site-branding__tagline {
	font-size: 14px;
	color: var(--color-text-faint);
	display: none;
}

.site-header img.custom-logo {
	width: 200px;
	max-height: 48px;
	object-fit: contain;
}

.main-navigation ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--color-white);
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
}

.main-navigation a:hover {
	color: var(--color-link);
	text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--color-link);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--color-border-dark);
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: var(--color-white);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Landing — Hero
   ========================================================================== */

.landing-hero {
	padding: 60px 0 80px;
	text-align: center;
	background-color: var(--color-dark);
}

.landing-hero__greeting {
	color: var(--color-amber);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.landing-hero__title {
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 900;
	line-height: 1.1;
	color: var(--color-white);
	max-width: 820px;
	margin: 0 auto 18px;
}

.landing-hero__lead {
	color: var(--color-text-faint);
	font-size: clamp(19px, 2.4vw, 22px);
	font-weight: 300;
	max-width: 680px;
	margin: 0 auto 8px;
}

.landing-hero .btn {
	margin-top: 30px;
	border-radius: 0;
}

/* ==========================================================================
   Landing — seções gerais
   ========================================================================== */

.landing-section {
	padding: 80px 0;
	text-align: center;
}

.landing-section--alt {
	background: var(--color-bg-alt);
}

.landing-section--dark {
	background: var(--color-dark);
	color: var(--color-white);
}

.landing-section__title {
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 800;
	margin-bottom: 26px;
}

.landing-section__body {
	max-width: 780px;
	text-align: left;
}

.landing-section__body > p:last-child {
	margin-bottom: 0;
}

.check-list {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.check-list li {
	padding: 6px 0;
}

/* ==========================================================================
   Landing — CTA final
   ========================================================================== */

.landing-cta {
	padding: 90px 0;
	text-align: center;
	background: var(--color-bg);
}

.landing-cta__title {
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 900;
	max-width: 780px;
	margin: 0 auto 24px;
}

.landing-cta__body {
	max-width: 720px;
	margin: 0 auto 26px;
	color: var(--color-text-muted);
	text-align: left;
}

.landing-cta .btn {
	border-radius: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
	max-width: 780px;
	margin: 0 auto 34px;
	text-align: left;
}

.landing-faq .faq-item__answer {
	text-align: left;
}

.landing-faq.landing-section--dark .faq-item {
	border-color: var(--color-border-dark);
	background: var(--color-surface-dark);
}

.landing-faq.landing-section--dark .faq-item__question {
	color: var(--color-white);
}

.landing-faq.landing-section--dark .faq-item__answer {
	color: var(--color-text-faint);
}

.landing-faq.landing-section--dark .btn--outline {
	border-color: var(--color-accent);
	color: var(--color-white);
}

.faq-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
	margin-bottom: 12px;
	overflow: hidden;
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: 0;
	color: var(--color-text);
	font-size: 17px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.faq-item__icon {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--color-accent);
	transition: transform 0.2s ease;
}

.faq-item__icon::before {
	width: 16px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.faq-item__icon::after {
	width: 2px;
	height: 16px;
	transform: translate(-50%, -50%);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__answer {
	padding: 0 20px 16px;
	color: var(--color-text-muted);
}

.faq-item__answer p {
	margin-bottom: 0;
}

/* ==========================================================================
   Blog / arquivos / cards
   ========================================================================== */

.site-main {
	padding: 60px 0 80px;
}

.archive-header {
	margin-bottom: 40px;
	text-align: center;
}

.archive-title {
	font-size: clamp(30px, 4.5vw, 44px);
	font-weight: 900;
	margin-bottom: 8px;
}

.archive-description {
	color: var(--color-text-muted);
}

/* Chips de filtro por categoria (página Blog) */
.cat-chips__label {
	text-align: center;
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text-muted);
}

.cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 18px;
	margin-bottom: 48px;
}

.cat-chips__chip {
	display: inline-block;
	padding: 7px 18px;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-white);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cat-chips__chip:hover {
	background: var(--color-accent-strong);
	border-color: var(--color-accent-strong);
	color: var(--color-white);
}

/* Lista de artigos: posts completos separados por divisor (Blog e arquivos) */

/* espaço ANTES do separador (apenas até o penúltimo post) */
.post-list .entry:not(:last-child) {
	padding-bottom: 64px;
}

/* separador: linha 0.5px + símbolo // centralizado */
.post-list .entry + .entry {
	position: relative;
	border-top: 0.5px solid var(--color-border);
	padding-top: 64px; /* espaço DEPOIS do separador */
}

.post-list .entry + .entry::after {
	content: "//";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--color-bg);
	padding: 0 10px;
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1;
}

.post-list .entry-title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-list .entry-title a:hover {
	color: var(--color-accent);
}

.entry-meta {
	color: var(--color-text-muted);
	font-size: 15px;
	margin-top: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.entry-meta svg {
	vertical-align: -2px;
	margin-right: 4px;
}

.entry-cats {
	text-align: center;
	margin-bottom: 20px;
}

.entry-cats a {
	color: var(--color-accent);
	text-decoration: none;
}

.entry-cats a:hover {
	text-decoration: underline;
}

.entry-cats__sep {
	color: var(--color-text-muted);
	margin: 0 2px;
}

/* ==========================================================================
   Conteúdo / posts
   ========================================================================== */

.entry {
	max-width: 780px;
	margin: 0 auto;
}

.entry-header {
	margin-bottom: 28px;
	text-align: center;
}

.entry-title {
	font-size: clamp(32px, 4.5vw, 44px);
	font-weight: 900;
}

.entry-thumbnail {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 24px;
}

.entry-content {
	word-wrap: break-word;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
	margin-top: 1.6em;
}

.entry-content a {
	color: var(--color-link);
	text-decoration: underline;
	text-decoration-color: var(--color-link);
}

.entry-content a:hover {
	color: var(--color-accent-strong);
	text-decoration-color: var(--color-accent-strong);
}

.error-404 {
	text-align: center;
}

.error-404 .search-form {
	margin: 0 auto 28px;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
}

.search-field {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 16px;
	background: var(--color-white);
	color: var(--color-text);
}

.search-field:focus {
	outline: none;
	border-color: var(--color-accent);
}

.search-submit {
	padding: 8px 20px;
	border: 1px solid var(--color-accent);
	border-radius: var(--radius-sm);
	background: var(--color-accent);
	color: var(--color-white);
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.search-submit:hover {
	background: var(--color-accent-strong);
	border-color: var(--color-accent-strong);
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.2em;
	font-size: 16px;
}

.entry-content table th,
.entry-content table td {
	border: 1px solid var(--color-border);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}

.entry-content table thead th {
	background: var(--color-dark);
	color: var(--color-white);
	font-weight: 700;
}

.entry-content table tbody tr:nth-child(even) td {
	background: var(--color-bg-alt);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 16px 24px;
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg-alt);
	color: var(--color-text-muted);
	font-style: italic;
}

.entry-content ul, .entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.entry-content li {
	margin-bottom: 6px;
}

.entry-content img {
	border-radius: var(--radius);
}

.pagination {
	margin-top: 40px;
	text-align: center;
}

.pagination .nav-links {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--color-text);
}

.pagination .page-numbers.current {
	background: var(--color-accent);
	color: var(--color-white);
	border-color: var(--color-accent);
	font-weight: 800;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-border);
	padding: 36px 0;
}

.site-footer__inner {
	text-align: center;
}

.site-footer__top {
	margin-bottom: 20px;
}

.site-footer__top ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__top a {
	color: var(--color-text-muted);
	text-decoration: none;
}

.site-footer__top a:hover {
	color: var(--color-accent-strong);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__company {
	color: var(--color-text-muted);
	font-size: 14px;
}

/* ==========================================================================
   Consentimento de cookies
   ========================================================================== */

.ac-cookie-consent[hidden] {
	display: none;
}

.ac-cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: var(--color-dark);
	color: var(--color-white);
	padding: 14px 0;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.ac-cookie-consent__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0 24px;
}

.ac-cookie-consent__text {
	margin: 0;
	font-size: 15px;
	color: var(--color-white-soft);
	max-width: 720px;
}

.ac-cookie-consent__text a {
	color: var(--color-white);
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
}

.ac-cookie-consent__actions {
	display: flex;
	gap: 10px;
}

.ac-cookie-consent .btn {
	font-size: 15px;
	padding: 7px 18px;
	margin: 0;
}

.ac-cookie-consent .btn--outline {
	border-color: var(--color-accent);
	color: var(--color-white);
}

.ac-cookie-consent .btn--outline:hover {
	background: var(--color-accent-strong);
	border-color: var(--color-accent-strong);
	color: var(--color-white);
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (min-width: 769px) {
	.site-branding__tagline {
		display: inline;
	}
}

/* ==========================================================================
   Área após o artigo (single posts)
   ========================================================================== */

.post-area {
	background: var(--color-dark);
	color: var(--color-white);
	padding: 80px 0;
	margin-top: 48px;
}

body.has-post-area .site-main {
	padding-bottom: 0;
}

.post-area .container {
	max-width: 859px;
}

.post-area__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	text-align: left;
}

.post-area__col {
	min-width: 0;
}

.landing-block-img {
	margin: 0 0 1.2em;
	text-align: center;
}

.landing-block-img img {
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 280px;
	display: block;
	margin: 0 auto;
	border-radius: var(--radius);
}

.post-area__title {
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 800;
	color: var(--color-white);
	margin-bottom: 26px;
}

.post-area p,
.post-area li {
	color: var(--color-white-soft);
}

.post-area a:not(.btn) {
	color: var(--color-white);
}

.post-area .btn {
	display: table;
	margin: 16px auto;
}

/* ==========================================================================
   Navegação anterior/próximo (single)
   ========================================================================== */

.post-nav {
	max-width: 780px;
	margin: 0 auto 0;
	padding-top: 64px;
}

.post-nav__sep {
	position: relative;
	border-top: 0.5px solid var(--color-border);
}

.post-nav__sep-mark {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--color-bg);
	padding: 0 10px;
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 1;
}

.post-nav__links {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
}

.post-nav__link {
	flex: 1;
	display: block;
	min-width: 0;
	color: var(--color-text);
	text-decoration: none;
}

.post-nav__link--next {
	text-align: right;
}

.post-nav__label {
	display: block;
	font-size: 14px;
	color: var(--color-text-muted);
	margin-bottom: 6px;
}

.post-nav__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-accent);
	line-height: 1.3;
	transition: color 0.2s ease;
}

.post-nav__link:hover .post-nav__title {
	color: var(--color-accent-strong);
}

.post-nav__backtop {
	text-align: center;
	margin-top: 40px;
}

.post-nav__backtop a {
	color: var(--color-text-muted);
	font-size: 15px;
	text-decoration: none;
}

.post-nav__backtop a:hover {
	color: var(--color-accent);
}

@media (max-width: 640px) {
	.post-nav__links {
		flex-direction: column;
		gap: 20px;
	}

	.post-nav__link--next {
		text-align: left;
	}

	.ac-cookie-consent__inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		background: var(--color-dark);
		border-bottom: 1px solid var(--color-border-dark);
		padding: 12px 24px 20px;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	}

	.main-navigation.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 4px;
	}

	.landing-hero {
		padding: 44px 0 56px;
	}

	.landing-hero__title {
		font-size: 32px;
	}

	.landing-section {
		padding: 56px 0;
	}

	.landing-cta {
		padding: 64px 0;
	}

	.post-area {
		padding: 56px 0;
	}

	.post-area__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}
