:root {
	--spm-blue: #0c0027;
	--spm-gold: #bd843c;
	--spm-black: #141414;
	--spm-gray: #efefef;
	--spm-white: #ffffff;
	--spm-container: 1120px;
	--spm-shadow: 0 18px 50px rgba(12, 0, 39, 0.12);
	--spm-transition: 180ms ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--spm-black);
	background: var(--spm-white);
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

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

a {
	color: inherit;
}

.container {
	width: min(calc(100% - 2rem), var(--spm-container));
	margin-inline: auto;
}

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

.screen-reader-text:focus {
	position: fixed;
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--spm-white);
	color: var(--spm-blue);
}

.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: transform var(--spm-transition), background-color var(--spm-transition), color var(--spm-transition);
}

.button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.button--primary {
	background: var(--spm-gold);
	color: var(--spm-white);
}

.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--spm-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow--light {
	color: #e8c997;
}

.site-header {
	position: relative;
	z-index: 50;
	background: var(--spm-blue);
	color: var(--spm-white);
}

.topbar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.76rem;
}

.topbar__inner,
.topbar__contacts,
.topbar__social {
	display: flex;
	align-items: center;
}

.topbar__inner {
	min-height: 40px;
	justify-content: space-between;
	gap: 1rem;
}

.topbar__contacts,
.topbar__social {
	gap: 1.25rem;
}

.topbar a {
	text-decoration: none;
}

.topbar a:hover {
	color: #e8c997;
}

.main-header__inner {
	display: flex;
	align-items: center;
	min-height: 88px;
	gap: 2rem;
}

.site-branding {
	flex: 0 0 auto;
}

.site-branding__link,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.custom-logo {
	width: auto;
	max-width: 230px;
	max-height: 70px;
}

.site-branding__text {
	color: var(--spm-white);
	font-size: 1.4rem;
	font-weight: 700;
}

.primary-navigation {
	margin-left: auto;
}

.primary-navigation ul {
	display: flex;
	align-items: center;
	gap: 1.7rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-navigation a {
	position: relative;
	padding-block: 0.4rem;
	font-size: 0.92rem;
	text-decoration: none;
}

.primary-navigation a::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: var(--spm-gold);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--spm-transition);
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after {
	transform: scaleX(1);
}

.header-cta {
	flex: 0 0 auto;
}

.menu-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: var(--spm-white);
	font: inherit;
}

.site-main {
	overflow: hidden;
}

.spm-hero {
	display: grid;
	min-height: min(760px, 84vh);
	align-items: center;
	padding: clamp(7rem, 14vw, 11rem) 1rem;
	background:
		linear-gradient(90deg, rgba(12, 0, 39, 0.98) 0%, rgba(12, 0, 39, 0.82) 50%, rgba(12, 0, 39, 0.48) 100%),
		radial-gradient(circle at 85% 30%, rgba(189, 132, 60, 0.55), transparent 34%),
		var(--spm-blue);
	color: var(--spm-white);
}

.spm-hero h1 {
	max-width: 900px;
	margin: 0 0 1.5rem;
	color: var(--spm-white);
	letter-spacing: -0.03em;
}

.spm-hero p:not(.eyebrow) {
	max-width: 720px;
	color: rgba(255, 255, 255, 0.86);
}

.spm-section {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.spm-about {
	background: var(--spm-white);
}

.spm-about .wp-block-columns {
	gap: clamp(2rem, 6vw, 6rem);
}

.spm-practice {
	background: var(--spm-gray);
}

.practice-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.85rem;
	margin-top: 2.5rem;
}

.practice-grid span {
	display: grid;
	min-height: 54px;
	place-items: center;
	padding: 0.75rem 1rem;
	border: 1px solid var(--spm-blue);
	background: var(--spm-white);
	color: var(--spm-blue);
	text-align: center;
	transition: background-color var(--spm-transition), color var(--spm-transition), transform var(--spm-transition);
}

.practice-grid span:hover,
.practice-grid span:focus-visible {
	border-color: var(--spm-gold);
	background: var(--spm-gold);
	color: var(--spm-white);
	transform: translateY(-2px);
}

.spm-results {
	border-block: 6px solid var(--spm-gold);
	background: var(--spm-blue);
	color: var(--spm-white);
}

.spm-results h2 {
	max-width: 850px;
	margin-inline: auto;
}

.result-cards {
	gap: 2rem;
	margin-top: 3rem;
}

.result-card {
	min-height: 210px;
	padding: clamp(2rem, 4vw, 3rem);
	border-radius: 18px;
	background: var(--spm-white);
	box-shadow: -8px 8px 0 var(--spm-gold);
	color: var(--spm-blue);
}

.result-card__lead {
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.2;
}

.metrics-grid {
	text-align: center;
}

.metrics-grid > .wp-block-column {
	padding: 1rem clamp(1rem, 3vw, 2.5rem);
	border-right: 1px solid var(--spm-gold);
}

.metrics-grid > .wp-block-column:last-child {
	border-right: 0;
}

.metric-value {
	margin-bottom: 0.7rem;
	color: var(--spm-blue);
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.05;
}

.spm-recognition {
	background: var(--spm-gray);
}

.spm-contact {
	background: var(--spm-white);
}

.spm-contact > .wp-block-columns {
	gap: 0;
	box-shadow: var(--spm-shadow);
}

.contact-panel,
.contact-information {
	padding: clamp(2.5rem, 6vw, 5rem);
}

.contact-panel {
	background: var(--spm-blue);
	color: rgba(255, 255, 255, 0.82);
}

.contact-information {
	background: var(--spm-gray);
}

.content-page,
.error-page {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.content-page__header,
.team-page__hero {
	padding-block: 4rem;
}

.team-page__hero {
	background: var(--spm-blue);
	color: var(--spm-white);
}

.team-page__hero h1 {
	margin: 0;
	color: var(--spm-white);
}

.team-page__content {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.entry-content > * {
	max-width: 100%;
}

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

.post-card {
	padding: 2rem;
	background: var(--spm-gray);
}

.site-footer {
	padding-top: 4rem;
	background: var(--spm-blue);
	color: rgba(255, 255, 255, 0.76);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 3rem;
}

.site-footer__title {
	color: var(--spm-white);
}

.site-footer ul {
	padding: 0;
	list-style: none;
}

.site-footer a {
	text-decoration: none;
}

.site-footer__bottom {
	padding-block: 1.5rem;
	margin-top: 3rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.8rem;
}

@media (max-width: 960px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.topbar__inner,
	.topbar__contacts {
		align-items: flex-start;
	}

	.topbar__contacts {
		flex-direction: column;
		gap: 0.3rem;
		padding-block: 0.65rem;
	}

	.topbar__social,
	.header-cta {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 1rem;
		background: var(--spm-blue);
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.primary-navigation a {
		display: block;
		padding: 0.85rem 0;
	}

	.practice-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.posts-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 700px) {
	.spm-hero {
		min-height: 620px;
	}

	.practice-grid,
	.posts-grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.metrics-grid > .wp-block-column {
		padding-block: 2rem;
		border-right: 0;
		border-bottom: 1px solid var(--spm-gold);
	}

	.metrics-grid > .wp-block-column:last-child {
		border-bottom: 0;
	}

	.spm-recognition .wp-block-buttons {
		justify-content: flex-start !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* === SPM HERO OVERLAY V0.3.0 ===
   Cabeçalho sobreposto ao hero, sem depender de classe manual no Gutenberg.
   A imagem do hero é a imagem destacada da página inicial.
*/

.spm-front-page .site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 50;
	background: transparent;
	color: var(--spm-white);
}

.spm-front-page.admin-bar .site-header {
	top: 32px;
}

.spm-front-page .topbar {
	background: rgba(12, 0, 39, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.spm-front-page .topbar__inner {
	min-height: 52px;
}

.spm-front-page .topbar,
.spm-front-page .topbar a,
.spm-front-page .topbar span {
	color: var(--spm-white);
}

.spm-front-page .main-header {
	background: rgba(12, 0, 39, 0.10);
}

.spm-front-page .main-header__inner {
	min-height: 104px;
	gap: 0;
}

.spm-front-page .site-branding {
	flex: 0 0 auto;
}

.spm-front-page .custom-logo {
	width: auto;
	max-width: 230px;
	max-height: 78px;
}

.spm-front-page .primary-navigation {
	margin-right: 0;
	margin-left: 2.75rem;
}

.spm-front-page .primary-navigation ul {
	gap: 1.8rem;
}

.spm-front-page .primary-navigation a {
	color: var(--spm-white);
}

.spm-front-page .header-cta {
	margin-left: auto;
}

.spm-front-page .spm-hero {
	display: flex;
	min-height: 750px;
	align-items: center;
	padding: 205px 1rem 90px;
	background-color: var(--spm-blue);
	background-image:
		linear-gradient(
			90deg,
			rgba(12, 0, 39, 0.52) 0%,
			rgba(12, 0, 39, 0.30) 48%,
			rgba(12, 0, 39, 0.20) 100%
		),
		var(
			--spm-hero-image,
			linear-gradient(125deg, #0c0027 0%, #28142f 62%, #513025 100%)
		);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--spm-white);
}

.spm-front-page .spm-hero__content {
	display: flex;
	width: min(calc(100% - 2rem), var(--spm-container));
	justify-content: flex-end;
	margin-inline: auto;
}

/*
 * Não exige a criação de um grupo adicional.
 * O próprio H1 existente vira o quadro visual.
 */
.spm-front-page .spm-hero__content > .eyebrow,
.spm-front-page .spm-hero__content > p:not(.eyebrow),
.spm-front-page .spm-hero__content > .wp-block-buttons {
	display: none;
}

.spm-front-page .spm-hero__content > h1 {
	width: min(100%, 540px);
	max-width: 540px;
	padding: 2rem 2.4rem;
	margin: 0;
	border: 1.5px solid var(--spm-gold);
	border-radius: 12px;
	background: rgba(12, 0, 39, 0.30);
	color: var(--spm-white);
	font-size: clamp(2.15rem, 3.3vw, 3.45rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-align: center;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

/* Neutraliza a classe manual usada no teste anterior, caso ainda exista. */
.spm-front-page .spm-hero__box {
	width: auto;
	max-width: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Garante que o H1 continue formatado mesmo dentro do grupo antigo. */
.spm-front-page .spm-hero__box > h1 {
	width: min(100%, 540px);
	max-width: 540px;
	padding: 2rem 2.4rem;
	margin: 0;
	border: 1.5px solid var(--spm-gold);
	border-radius: 12px;
	background: rgba(12, 0, 39, 0.30);
	color: var(--spm-white);
	font-size: clamp(2.15rem, 3.3vw, 3.45rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-align: center;
}

@media (max-width: 960px) {
	.spm-front-page.admin-bar .site-header {
		top: 46px;
	}

	.spm-front-page .topbar__inner {
		min-height: auto;
	}

	.spm-front-page .main-header__inner {
		min-height: 88px;
	}

	.spm-front-page .primary-navigation {
		margin-left: 0;
		background: rgba(12, 0, 39, 0.98);
	}

	.spm-front-page .spm-hero {
		min-height: 650px;
		padding-top: 180px;
	}

	.spm-front-page .spm-hero__content {
		justify-content: center;
	}

	.spm-front-page .spm-hero__content > h1,
	.spm-front-page .spm-hero__box > h1 {
		width: min(100%, 520px);
		padding: 1.6rem 1.7rem;
		font-size: clamp(2rem, 7.5vw, 3rem);
	}

	.spm-front-page .custom-logo {
		max-height: 64px;
	}
}

@media (max-width: 700px) {
	.spm-front-page .topbar {
		display: none;
	}

	.spm-front-page .spm-hero {
		min-height: 590px;
		padding-top: 130px;
		padding-bottom: 70px;
	}

	.spm-front-page .spm-hero__content > h1,
	.spm-front-page .spm-hero__box > h1 {
		padding: 1.4rem 1.25rem;
		font-size: clamp(1.85rem, 9vw, 2.65rem);
	}
}


/* === CORREÇÃO HERO SPM V0.3.1 ===
   Fundo sólido oficial e estrutura previsível no Gutenberg.
*/

.spm-front-page .front-page-content > .spm-hero,
.spm-front-page .spm-hero {
	position: relative;
	isolation: isolate;
	display: flex !important;
	width: 100%;
	min-height: 750px;
	align-items: center;
	padding: 205px 1rem 90px !important;
	margin: 0 !important;
	background: #0c0027 !important;
	color: #ffffff;
}

.spm-front-page .spm-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(
			circle at 82% 42%,
			rgba(189, 132, 60, 0.14),
			transparent 34%
		);
	content: "";
	pointer-events: none;
}

.spm-front-page .spm-hero > .spm-hero__content,
.spm-front-page .spm-hero__content {
	display: flex !important;
	width: min(calc(100% - 2rem), 1120px) !important;
	max-width: 1120px !important;
	min-height: 260px;
	align-items: center;
	justify-content: flex-end !important;
	padding: 0 !important;
	margin: 0 auto !important;
	background: transparent !important;
}

/* Oculta os elementos antigos do hero, caso ainda existam. */
.spm-front-page .spm-hero__content > .eyebrow,
.spm-front-page .spm-hero__content > p:not(.eyebrow),
.spm-front-page .spm-hero__content > .wp-block-buttons {
	display: none !important;
}

/* Título direto dentro do contêiner correto. */
.spm-front-page .spm-hero__content > h1 {
	box-sizing: border-box;
	width: min(100%, 540px) !important;
	max-width: 540px !important;
	padding: 2rem 2.4rem !important;
	margin: 0 !important;
	border: 1px solid #bd843c !important;
	border-radius: 12px !important;
	background: rgba(12, 0, 39, 0.54) !important;
	color: #ffffff !important;
	font-size: clamp(2.15rem, 3.3vw, 3.45rem) !important;
	font-weight: 400 !important;
	letter-spacing: -0.025em;
	line-height: 1.08 !important;
	text-align: center;
}

/*
 * Compatibilidade temporária caso exista um grupo antigo com
 * a classe spm-hero__box dentro de spm-hero__content.
 */
.spm-front-page .spm-hero__content > .spm-hero__box {
	display: block !important;
	box-sizing: border-box;
	width: min(100%, 540px) !important;
	max-width: 540px !important;
	padding: 2rem 2.4rem !important;
	margin: 0 !important;
	border: 1px solid #bd843c !important;
	border-radius: 12px !important;
	background: rgba(12, 0, 39, 0.54) !important;
}

.spm-front-page .spm-hero__content > .spm-hero__box > h1 {
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #ffffff !important;
	font-size: clamp(2.15rem, 3.3vw, 3.45rem) !important;
	font-weight: 400 !important;
	line-height: 1.08 !important;
	text-align: center;
}

/* Impede que a classe antiga aplicada fora do contêiner vire o banner inteiro. */
.spm-front-page .spm-hero__box:not(.spm-hero__content > .spm-hero__box) {
	max-width: none;
}

@media (max-width: 960px) {
	.spm-front-page .front-page-content > .spm-hero,
	.spm-front-page .spm-hero {
		min-height: 650px;
		padding: 180px 1rem 70px !important;
	}

	.spm-front-page .spm-hero > .spm-hero__content,
	.spm-front-page .spm-hero__content {
		justify-content: center !important;
	}

	.spm-front-page .spm-hero__content > h1,
	.spm-front-page .spm-hero__content > .spm-hero__box {
		width: min(100%, 520px) !important;
		max-width: 520px !important;
		padding: 1.6rem 1.7rem !important;
	}

	.spm-front-page .spm-hero__content > h1,
	.spm-front-page .spm-hero__content > .spm-hero__box > h1 {
		font-size: clamp(2rem, 7.5vw, 3rem) !important;
	}
}

@media (max-width: 700px) {
	.spm-front-page .front-page-content > .spm-hero,
	.spm-front-page .spm-hero {
		min-height: 590px;
		padding: 130px 1rem 60px !important;
	}

	.spm-front-page .spm-hero__content > h1,
	.spm-front-page .spm-hero__content > .spm-hero__box {
		padding: 1.4rem 1.25rem !important;
	}

	.spm-front-page .spm-hero__content > h1,
	.spm-front-page .spm-hero__content > .spm-hero__box > h1 {
		font-size: clamp(1.85rem, 9vw, 2.65rem) !important;
	}
}


/* === MENU E ÍCONES DO CABEÇALHO V0.3.2 === */

/*
 * Links de âncora da página inicial podem receber current-menu-item
 * simultaneamente pelo WordPress. Na home, a linha dourada deve aparecer
 * apenas em hover/foco, preservando a animação.
 */
.spm-front-page .primary-navigation .current-menu-item > a::after {
	transform: scaleX(0);
}

.spm-front-page .primary-navigation a:hover::after,
.spm-front-page .primary-navigation a:focus-visible::after {
	transform: scaleX(1);
}

/* Separadores verticais entre os itens, como no layout anterior. */
.spm-front-page .primary-navigation .menu {
	gap: 0;
}

.spm-front-page .primary-navigation .menu > li {
	display: flex;
	align-items: center;
}

.spm-front-page .primary-navigation .menu > li:not(:last-child)::after {
	width: 1px;
	height: 15px;
	margin-inline: 1.15rem;
	background: rgba(255, 255, 255, 0.82);
	content: "";
}

/* Barra superior com ícones locais em SVG. */
.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.topbar__icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	align-items: center;
	justify-content: center;
	color: currentColor;
}

.topbar__icon svg,
.topbar__social-link svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.topbar__social {
	gap: 0.65rem;
}

.topbar__social-link {
	display: inline-flex;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	color: currentColor;
	transition:
		color var(--spm-transition),
		transform var(--spm-transition);
}

.topbar__social-link:hover,
.topbar__social-link:focus-visible {
	color: var(--spm-gold);
	transform: translateY(-1px);
}

@media (max-width: 960px) {
	.spm-front-page .primary-navigation .menu > li {
		display: block;
	}

	.spm-front-page .primary-navigation .menu > li::after {
		display: none;
	}

	.topbar__item {
		align-items: flex-start;
	}
}


/* === AJUSTES FINOS DE CABEÇALHO E TIPOGRAFIA V0.3.3 === */

/* Century Gothic em todo o site, mantendo títulos em peso forte. */
html,
body,
button,
input,
select,
textarea,
.primary-navigation,
.topbar,
.site-footer {
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

body,
p,
li,
a,
button,
input,
select,
textarea {
	font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.site-footer__title,
.metric-value,
.result-card__lead {
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
	font-weight: 700;
}

/* Aumenta discretamente a altura do cabeçalho, sem alterar o layout. */
.spm-front-page .topbar__inner {
	min-height: 58px;
}

.spm-front-page .main-header__inner {
	min-height: 116px;
}

/* Mantém o hero na mesma posição visual após o aumento do cabeçalho. */
.spm-front-page .front-page-content > .spm-hero,
.spm-front-page .spm-hero {
	padding-top: 223px !important;
}

@media (max-width: 960px) {
	.spm-front-page .main-header__inner {
		min-height: 96px;
	}

	.spm-front-page .front-page-content > .spm-hero,
	.spm-front-page .spm-hero {
		padding-top: 188px !important;
	}
}


/* === CONTADORES INSTITUCIONAIS V0.3.4 === */

.metric-value .metric-prefix {
	font-size: 0.82em;
	font-weight: 400;
}

/* =========================================================
   WPFORMS — FORMULÁRIO INSTITUCIONAL SPM
   ========================================================= */

.contact-panel {
    padding: clamp(3rem, 6vw, 5rem);
    border-radius: 14px;
    background: #0c0027;
}

.contact-panel h2 {
    max-width: 520px;
    margin-top: 0;
    margin-bottom: 2.6rem;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    line-height: 1.05;
}

.contact-panel .wpforms-container,
.contact-panel .wpforms-container-full {
    width: 100%;
    max-width: 520px;
    margin: 0;
}

/* Mantém os rótulos acessíveis, mas invisíveis visualmente */
.contact-panel .wpforms-container .wpforms-field-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Espaçamento entre campos */
.contact-panel .wpforms-container .wpforms-field {
    padding: 0 0 1.35rem !important;
}

/* Remove limites de largura do WPForms */
.contact-panel .wpforms-container input.wpforms-field-medium,
.contact-panel .wpforms-container input.wpforms-field-large,
.contact-panel .wpforms-container textarea.wpforms-field-medium,
.contact-panel .wpforms-container textarea.wpforms-field-large {
    width: 100% !important;
    max-width: none !important;
}

/* Campos transparentes com linha inferior */
.contact-panel .wpforms-container input[type="text"],
.contact-panel .wpforms-container input[type="email"],
.contact-panel .wpforms-container input[type="tel"],
.contact-panel .wpforms-container input[type="number"],
.contact-panel .wpforms-container textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    padding: 0.65rem 0 !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 0 !important;

    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

/* Mensagem */
.contact-panel .wpforms-container textarea {
    min-height: 120px !important;
    padding-top: 0.75rem !important;
    resize: vertical;
}

/* Placeholders */
.contact-panel .wpforms-container input::placeholder,
.contact-panel .wpforms-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.56) !important;
    opacity: 1 !important;
}

/* Campo ativo */
.contact-panel .wpforms-container input:focus,
.contact-panel .wpforms-container textarea:focus {
    border-bottom-color: #bd843c !important;
    box-shadow: 0 1px 0 #bd843c !important;
}

/* Botão */
.contact-panel .wpforms-container .wpforms-submit-container {
    padding-top: 0.5rem !important;
}

.contact-panel .wpforms-container button[type="submit"],
.contact-panel .wpforms-container input[type="submit"] {
    min-width: 140px !important;
    min-height: 44px !important;
    padding: 0.85rem 2rem !important;

    border: 1px solid #bd843c !important;
    border-radius: 999px !important;

    background: #bd843c !important;
    box-shadow: none !important;
    color: #ffffff !important;

    font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.contact-panel .wpforms-container button[type="submit"]:hover,
.contact-panel .wpforms-container button[type="submit"]:focus-visible,
.contact-panel .wpforms-container input[type="submit"]:hover,
.contact-panel .wpforms-container input[type="submit"]:focus-visible {
    background: transparent !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Remove eventuais fundos do tema do WPForms */
.contact-panel .wpforms-container .wpforms-field-container,
.contact-panel .wpforms-container form {
    background: transparent !important;
}

/* Mensagens de validação */
.contact-panel .wpforms-container label.wpforms-error,
.contact-panel .wpforms-container em.wpforms-error,
.contact-panel .wpforms-container .wpforms-error {
    margin-top: 0.35rem !important;
    color: #ffd4d4 !important;
    font-size: 0.78rem !important;
}

/* Confirmação de envio */
.contact-panel .wpforms-confirmation-container-full {
    margin: 1.5rem 0 0 !important;
    padding: 1rem 1.2rem !important;
    border: 1px solid #bd843c !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* Ajuste mobile */
@media (max-width: 700px) {
    .contact-panel {
        padding: 2.5rem 1.5rem;
    }

    .contact-panel h2 {
        font-size: 2rem;
    }

    .contact-panel .wpforms-container,
    .contact-panel .wpforms-container-full {
        max-width: none;
    }
}

/* =========================================================
   PADRONIZAÇÃO DO MENU EM PÁGINAS INTERNAS
   ========================================================= */

/* Animação dourada do menu em todas as páginas */
.primary-navigation .current-menu-item > a::after {
    transform: scaleX(0);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
    transform: scaleX(1);
}

/* Desktop */
@media (min-width: 961px) {

    /* Remove o espaçamento automático que empurrava o menu */
    .main-header__inner {
        gap: 0;
    }

    /* Logo e menu permanecem agrupados à esquerda */
    .primary-navigation {
        margin-left: 2.75rem;
        margin-right: 0;
    }

    /* Botão permanece à direita */
    .header-cta {
        margin-left: auto;
    }

    /* Remove o espaçamento padrão para usar os divisores */
    .primary-navigation .menu {
        gap: 0;
    }

    .primary-navigation .menu > li {
        display: flex;
        align-items: center;
    }

    /* Divisores brancos entre os itens */
    .primary-navigation .menu > li:not(:last-child)::after {
        width: 1px;
        height: 15px;
        margin-inline: 1.15rem;
        background: rgba(255, 255, 255, 0.82);
        content: "";
    }
}

/* Mobile: não exibir os divisores */
@media (max-width: 960px) {

    .primary-navigation .menu > li {
        display: block;
    }

    .primary-navigation .menu > li::after {
        display: none;
    }
}
