/* Spagnoli Contabilidade — layout do site */

:root {
	--ink: #1b210f;
	--ink-2: #252d17;
	--ink-3: #34411f;
	--brand: #43541a;
	--brand-600: #344315;
	--brand-bright: #8c7e67;
	--brand-soft: #f0efe8;
	--text: #28281f;
	--muted: #686456;
	--line: #e5e1d7;
	--bg: #ffffff;
	--bg-soft: #f7f5ef;
	--on-dark: #f2f0e9;
	--on-dark-muted: #c8c0b2;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(27, 33, 15, .05), 0 8px 24px rgba(27, 33, 15, .06);
	--shadow-lg: 0 24px 60px rgba(27, 33, 15, .18);
	--font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--header-h: 72px;
	--gutter: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.spg {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

:where(.spg) img { max-width: 100%; height: auto; display: block; }
:where(.spg) a { color: inherit; text-decoration: none; }
:where(.spg) p { margin: 0 0 1em; }
:where(.spg) :is(h1, h2, h3, h4) { font-family: var(--font-head); line-height: 1.2; margin: 0; color: inherit; letter-spacing: -.01em; }
:where(.spg) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.spg :focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

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

.anchor { position: relative; top: calc(-1 * var(--header-h)); display: block; height: 0; }

/* ---------- Botões ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 15px/1 var(--font-body); cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(67, 84, 26, .28); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--outline { color: var(--brand-600); border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--brand); }

/* ---------- Topbar ---------- */
.topbar { display: none; background: var(--ink); color: var(--on-dark-muted); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar__list { display: flex; gap: 24px; }
.topbar__list li, .topbar__list a, .topbar__cnpj { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar .icon { color: var(--brand-bright); width: 15px; height: 15px; }
.topbar__cnpj { color: var(--on-dark); font-weight: 500; }
@media (min-width: 1024px) { .topbar { display: block; } }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
/* backdrop-filter cria um containing block para position: fixed; por isso só no desktop, onde o menu não é um painel fixo */
@media (min-width: 1024px) {
	.site-header { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(27, 33, 15, .06); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.brand__logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand__text small { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.brand--light { color: #fff; }
.brand--light small { color: var(--on-dark-muted); }

.nav__list { display: flex; gap: 4px; }
.nav__link { display: block; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--text); transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--brand-600); background: var(--brand-soft); }
.nav__mobile-extra { display: none; }

.menu-toggle {
	display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
	background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

@media (max-width: 1023px) {
	.site-header__cta { display: none; }
	.menu-toggle { display: inline-flex; }
	.nav {
		position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
		background: #fff; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
		overflow-y: auto; overscroll-behavior: contain;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__link { padding: 16px 4px; border-radius: 0; font-size: 18px; font-weight: 600; font-family: var(--font-head); border-bottom: 1px solid var(--line); }
	.nav__link:hover, .nav__link.is-active { background: none; }
	.nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
	.nav__contact { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
	.nav__contact .icon { color: var(--brand); }
	body.menu-open { overflow: hidden; }
}
@media (min-width: 783px) and (max-width: 1023px) { .admin-bar .nav { top: calc(var(--header-h) + 32px); } }

/* ---------- Tipografia de seção ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px !important;
	font: 700 13px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--brand);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--brand-bright); }
.eyebrow__dot { display: none; }

.section { padding: 72px 0; }
.section--tight { padding: 40px 0 72px; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.section--dark::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 60% at 90% 10%, rgba(140, 126, 103, .12), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(67, 84, 26, .18), transparent 70%);
}
.section--dark .container { position: relative; }
.section--dark p { color: var(--on-dark-muted); }
.section-title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin-bottom: 16px !important; }
.section-lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--row .section-title { margin-bottom: 0 !important; }

@media (min-width: 900px) { .section { padding: 104px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(55% 70% at 100% 0%, rgba(140, 126, 103, .16), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(67, 84, 26, .22), transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
.hero__title { font-size: clamp(34px, 6.4vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--brand-bright); }
.hero__lead { font-size: 18px; color: var(--on-dark-muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero__checks { display: grid; gap: 10px; color: var(--on-dark); font-size: 15px; }
.hero__checks li { display: flex; align-items: center; gap: 10px; }
.hero__checks .icon { color: var(--brand-bright); width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(140, 126, 103, .14); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__badge {
	position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 320px;
	display: flex; align-items: center; gap: 14px; padding: 14px 18px;
	background: rgba(255, 255, 255, .96); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.35;
}
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.hero__badge-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.hero__badge-icon .icon { width: 22px; height: 22px; }

@media (max-width: 479px) {
	.hero__actions .btn { width: 100%; }
}
@media (min-width: 640px) { .hero__checks { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; } }
@media (min-width: 1024px) {
	.hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 104px; }
	.hero__checks { grid-template-columns: 1fr; }
	.hero__media img { aspect-ratio: 5 / 5.2; }
	.hero__badge { left: -32px; bottom: 40px; right: auto; }
}

/* ---------- Números ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 28px 8px; text-align: center; border-color: var(--line); border-style: solid; border-width: 0; }
.stat:nth-child(odd) { border-right-width: 1px; }
.stat:nth-child(-n+2) { border-bottom-width: 1px; }
.stat__value { font: 800 clamp(34px, 6vw, 48px)/1 var(--font-head); color: var(--brand); letter-spacing: -.03em; }
.stat__label { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) {
	.stats__grid { grid-template-columns: repeat(4, 1fr); }
	.stat { padding: 40px 16px; border-width: 0 1px 0 0 !important; }
	.stat:last-child { border-right-width: 0 !important; }
}

/* ---------- Split (texto + imagem) ---------- */
.split { display: grid; gap: 48px; align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }
.split__card {
	position: absolute; right: 16px; bottom: -24px; display: flex; flex-direction: column; gap: 2px;
	padding: 18px 22px; background: var(--ink); color: var(--on-dark-muted); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13px;
}
.split__card strong { font: 800 36px/1 var(--font-head); color: #fff; }
.split__card-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--brand-bright); font-weight: 700; }
.split__content > p { color: var(--muted); font-size: 17px; }
.split__content strong { color: var(--text); }
.section--dark .split__content strong { color: #fff; }
.split__img-inline { margin-top: 28px; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; opacity: .95; }

.feature-list { display: grid; gap: 18px; margin-top: 28px !important; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.feature-list strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 15px; }

@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: 72px; }
	.split__card { right: -24px; bottom: 32px; }
}

/* ---------- Cards de serviços ---------- */
.cards { display: grid; gap: 20px; }
.card {
	position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 33, 15, .1); border-color: #ddd9cd; }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: var(--brand-bright); margin-bottom: 20px; }
.card__icon .icon { width: 26px; height: 26px; }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px !important; }
.card__text { color: var(--muted); font-size: 15px; }
.card__list { display: grid; gap: 8px; margin-top: auto !important; padding-top: 16px !important; border-top: 1px dashed var(--line); }
.card__list li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.card__list .icon { color: var(--brand); margin-top: 3px; width: 16px; height: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.regimes { margin-top: 48px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.regimes__label { font-weight: 600; font-family: var(--font-head); margin-bottom: 16px !important; }
.regimes__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.regimes__list li { padding: 8px 16px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-600); font-weight: 600; font-size: 14px; }

/* ---------- Passos ---------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.step__num { display: inline-block; font: 800 14px/1 var(--font-head); color: #fff; background: var(--brand); padding: 8px 12px; border-radius: 999px; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px !important; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Links oficiais ---------- */
.links-grid { display: grid; gap: 12px; }
.link-card {
	display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark);
	transition: background-color .2s, border-color .2s, transform .2s;
}
.link-card:hover { background: rgba(140, 126, 103, .08); border-color: rgba(140, 126, 103, .45); transform: translateX(4px); }
.link-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(140, 126, 103, .12); color: var(--brand-bright); flex: none; }
.link-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link-card__body strong { font-family: var(--font-head); font-size: 15px; color: #fff; }
.link-card__body span { font-size: 13px; color: var(--on-dark-muted); }
.link-card__ext { color: var(--on-dark-muted); width: 16px; height: 16px; }
@media (min-width: 640px) and (max-width: 899px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Blog ---------- */
.posts-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 33, 15, .1); }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card__title { font-size: 19px; font-weight: 700; margin: 12px 0 10px !important; }
.post-card__title a:hover { color: var(--brand-600); }
.post-card__excerpt { color: var(--muted); font-size: 15px; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--brand-600); font-size: 15px; }
.post-card__more .icon { transition: transform .2s; }
.post-card__more:hover .icon { transform: translateX(4px); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta--light { color: var(--on-dark-muted); gap: 8px 20px; margin-top: 24px; }
.post-meta--light .icon { color: var(--brand-bright); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-600); font-weight: 600; font-size: 12px; }

.page-hero { background: var(--ink); color: #fff; padding: 48px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(140, 126, 103, .14), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 12px !important; }
.page-hero__lead { color: var(--on-dark-muted); font-size: 17px; max-width: 640px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-dark-muted); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: var(--brand-bright); }

.search { display: flex; align-items: center; gap: 8px; max-width: 520px; margin-top: 24px; padding: 6px 6px 6px 18px; background: #fff; border-radius: 999px; }
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 16px var(--font-body); color: var(--text); background: transparent; padding: 8px 0; }
.search .btn { min-height: 42px; padding: 0 18px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 32px; scrollbar-width: thin; }
.chip { flex: none; display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--text); transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand-600); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; background: #fff; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand-600); }

.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty > .icon { width: 44px; height: 44px; color: var(--brand); margin: 0 auto 16px; }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* ---------- Artigo ---------- */
.article__header { background: var(--ink); color: #fff; padding: 48px 0 120px; position: relative; overflow: hidden; }
.article__header::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(140, 126, 103, .14), transparent 70%); pointer-events: none; }
.article__header .container { position: relative; }
.article__title { font-size: clamp(30px, 5.5vw, 48px); font-weight: 800; letter-spacing: -.025em; margin: 16px 0 16px !important; }
.article__lead { font-size: 18px; color: var(--on-dark-muted); margin: 0; }
.article__cover { margin: -88px 0 40px; position: relative; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.prose { font-size: 18px; line-height: 1.75; color: #353528; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > :is(h2, h3) + * { margin-top: .6em; }
.prose > h2 { font-size: clamp(24px, 3.5vw, 30px); font-weight: 800; margin-top: 1.8em; color: var(--ink); }
.prose > h3 { font-size: 22px; font-weight: 700; margin-top: 1.5em; color: var(--ink); }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: .6em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-600); font: 700 14px/1 var(--font-head); }
.prose blockquote { margin: 1.6em 0 0; padding: 20px 24px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0 0; }

.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.article__note { display: flex; gap: 14px; margin-top: 32px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article__note .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.article__note p { margin: 0; }
.article__note a { color: var(--brand-600); font-weight: 600; }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.share a, .share button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.share button.is-copied { background: var(--brand); color: #fff; }

.article__nav { display: grid; gap: 16px; margin: 40px 0 72px; }
.article__nav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.article__nav-link:hover { border-color: var(--brand); }
.article__nav-link small { color: var(--muted); font-size: 13px; }
.article__nav-link span { font-family: var(--font-head); font-weight: 700; }
.article__nav-link--next { text-align: right; }
@media (min-width: 640px) { .article__nav { grid-template-columns: 1fr 1fr; } .article__nav-link--next:only-child { grid-column: 2; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #ddd9cd; box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--brand); transition: transform .25s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding: 0 20px 20px; margin: 0; color: var(--muted); }
@media (min-width: 900px) { #faq .split { grid-template-columns: .8fr 1.2fr; } #faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---------- Contato ---------- */
.contact { display: grid; gap: 24px; }
.contact__info { display: grid; gap: 24px; align-content: start; }
.contact__list { display: grid; gap: 4px; padding: 8px 24px !important; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact__list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 0; }
.contact__list strong { display: block; font-family: var(--font-head); font-size: 15px; }
.contact__list a, .contact__list span { color: var(--muted); font-size: 15px; word-break: break-word; }
.contact__list a:hover { color: var(--brand-600); }
.contact__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); border: 1px solid var(--line); flex: none; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-soft); }
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.contact__form { padding: 28px 22px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.contact__form h3 { font-size: 24px; color: #fff; margin-bottom: 6px !important; }
.contact__form > p { color: var(--on-dark-muted); font-size: 15px; }
.contact__form .notice a { color: var(--brand-bright); }
@media (min-width: 900px) {
	.contact { grid-template-columns: 1fr 1fr; gap: 32px; }
	.contact__form { padding: 40px; }
}

/* Formulário (Contact Form 7) */
.contact__form .wpcf7 { margin-top: 20px; }
.contact__form .wpcf7 form > p, .contact__form .wpcf7 form > label { margin: 0 0 16px; }
.contact__form .wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.contact__form .wpcf7 br { display: none; }
.contact__form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.contact__form input[type="text"], .contact__form input[type="email"], .contact__form input[type="tel"], .contact__form textarea, .contact__form select {
	width: 100%; padding: 14px 16px; font: 16px var(--font-body); color: #fff;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
	transition: border-color .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.contact__form textarea { min-height: 140px; height: 140px; resize: vertical; }
.contact__form input::placeholder, .contact__form textarea::placeholder { color: rgba(242, 240, 233, .55); }
.contact__form input:focus, .contact__form textarea:focus { outline: 0; border-color: var(--brand-bright); background: rgba(255, 255, 255, .09); }
.contact__form .wpcf7-submit {
	width: 100%; min-height: 54px; margin-top: 4px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--brand-bright); color: var(--ink); font: 700 16px var(--font-body); transition: background-color .2s, transform .2s;
}
.contact__form .wpcf7-submit:hover { background: #a89b81; transform: translateY(-1px); }
.contact__form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.contact__form .wpcf7-not-valid-tip { color: #ffb4a8; font-size: 13px; margin-top: 6px; }
.contact__form .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; border-width: 1px; }
.contact__form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--brand-bright); color: var(--brand-bright); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-600), var(--brand) 60%, #43541a); color: #fff; }
.cta-band__inner { display: grid; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; margin-bottom: 8px !important; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; } }
@media (max-width: 479px) { .cta-band__actions .btn { width: 100%; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.site-footer__grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer__brand p { margin: 20px 0; max-width: 380px; }
.site-footer__legal { display: grid; gap: 10px; margin: 0; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); max-width: 380px; }
.site-footer__legal div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.site-footer__legal dt { color: var(--on-dark-muted); }
.site-footer__legal dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.site-footer__title { font-size: 15px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px !important; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--brand-bright); }
.site-footer__contact { display: grid; gap: 14px; }
.site-footer__contact li { display: flex; gap: 12px; }
.site-footer__contact .icon { color: var(--brand-bright); margin-top: 4px; }
.site-footer__contact a, .site-footer__contact span { word-break: break-word; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); font-size: 13px; }
.site-footer__bottom p { margin: 0; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.2fr; gap: 48px; } }

.to-top {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: var(--brand); color: #fff !important; box-shadow: 0 10px 24px rgba(27, 33, 15, .25);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 404 ---------- */
.error-page { text-align: center; }
.error-page__code { font: 800 clamp(80px, 18vw, 140px)/1 var(--font-head); color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); margin: 0 0 8px !important; }
.error-page .section-lead { margin: 0 auto; }
.error-page .hero__actions { justify-content: center; }

/* ---------- Animação de entrada (só com JS e sem redução de movimento) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Efeitos ---------- */

/* Grade sutil e brilhos animados nos fundos escuros */
.hero::after, .page-hero::after, .article__header::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .5; }
.hero__glow--a { width: 380px; height: 380px; background: #43541a; top: -120px; right: -80px; }
.hero__glow--b { width: 300px; height: 300px; background: #43541a; bottom: -140px; left: -100px; }

.hero__title em { background: linear-gradient(90deg, #8c7e67, #c9bfad, #8c7e67); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__media::before {
	content: ""; position: absolute; inset: -14px -14px auto auto; width: 55%; height: 55%;
	border: 2px solid rgba(140, 126, 103, .35); border-radius: var(--radius-lg); pointer-events: none;
}
.hero__media img { position: relative; }

@media (prefers-reduced-motion: no-preference) {
	.hero__glow--a { animation: spg-drift 14s ease-in-out infinite alternate; }
	.hero__glow--b { animation: spg-drift 18s ease-in-out infinite alternate-reverse; }
	.hero__title em { animation: spg-shine 6s linear infinite; }
	.hero__badge { animation: spg-float 5s ease-in-out infinite; }

	/* Entrada do hero ao carregar */
	.hero__content > *, .hero__media { animation: spg-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
	.hero__content > :nth-child(2) { animation-delay: .08s; }
	.hero__content > :nth-child(3) { animation-delay: .16s; }
	.hero__content > :nth-child(4) { animation-delay: .24s; }
	.hero__content > :nth-child(5) { animation-delay: .32s; }
	.hero__media { animation-delay: .2s; }

	.btn--primary { position: relative; overflow: hidden; }
	.btn--primary::after {
		content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
		background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
	}
	.btn--primary:hover::after { left: 140%; transition: left .7s ease; }
}

@keyframes spg-drift { to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes spg-shine { to { background-position: 200% center; } }
@keyframes spg-float { 50% { transform: translateY(-8px); } }
@keyframes spg-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Brilho que segue o cursor */
.card, .step, .link-card { position: relative; isolation: isolate; }
.card::before, .step::before, .link-card::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 126, 103, .14), transparent 60%);
}
.link-card::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 126, 103, .16), transparent 60%); }
.card:hover::before, .step:hover::before, .link-card:hover::before { opacity: 1; }
.card__icon { transition: transform .3s, background-color .3s, color .3s; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); background: var(--brand); color: #fff; }

/* Linha que conecta os passos */
@media (min-width: 1024px) {
	.steps { position: relative; isolation: isolate; }
	.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 44px; border-top: 2px dashed #ddd9cd; z-index: -1; }
	.step { background: #fff; }
}

/* Regimes em faixa com brilho suave */
.regimes__list li { transition: background-color .2s, color .2s; }
.regimes__list li:hover { background: var(--brand); color: #fff; }

/* Barra de progresso de leitura */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.admin-bar .read-progress { top: 46px; }
@media (min-width: 783px) { .admin-bar .read-progress { top: 32px; } }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Ajustes finos no celular ---------- */
@media (max-width: 899px) {
	.split__img-inline { display: none; }
	.section { padding: 64px 0; }
	.section-head { margin-bottom: 32px; }
	.split { gap: 56px; }
	.card { padding: 24px; }
	.link-card { padding: 14px; gap: 14px; }
	.link-card__icon { width: 38px; height: 38px; }
	.contact__list { padding: 4px 18px !important; }
	.contact__form { order: -1; }
}
@media (max-width: 639px) {
	.site-footer__grid > div:nth-child(2), .site-footer__grid > div:nth-child(3) { display: none; }
	.faq__item summary { font-size: 16px; padding: 16px 18px; }
}
/* Em telas até 600px a barra de admin do WordPress rola junto com a página */
@media (max-width: 600px) {
	.admin-bar .site-header, .admin-bar .read-progress { top: 0; }
}

/* Identidade visual Spagnoli & Cavalheiro: logo oficial e tons do arquivo aprovado. */
.brand { gap: 0; }
.brand__logo { width: 190px; height: 66px; max-width: min(190px, 40vw); object-fit: contain; border-radius: 0; background: transparent; }
.brand__text { display: none; }
.site-footer .brand__logo { box-sizing: content-box; background: #fff; padding: 5px 8px; border-radius: 6px; }
body.elementor-kit-6 { --e-global-color-primary: #43541a; --e-global-color-secondary: #8c7e67; --e-global-color-text: #28281f; --e-global-color-accent: #43541a; background-color: #f7f5ef; }
@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .brand__logo { width: 166px; height: 58px; max-width: calc(100vw - 170px); }
  .site-header__inner { gap: 10px; }
}