/*
 * Contenção transitória de páginas Elementor.
 * A especificidade elevada corrige CSS inline gerado pelo construtor sem
 * remover dados nem desativar widgets. O objetivo é permitir migração gradual.
 */

body.sirius-elementor-surface .sirius-builder-main,
body.sirius-elementor-surface .sirius-page,
body.sirius-elementor-surface .sirius-entry-content,
body.sirius-elementor-surface .elementor,
body.sirius-elementor-surface .elementor-section-wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.sirius-elementor-surface .sirius-builder-main {
	min-height: calc(100vh - 136px);
	background: var(--sirius-obsidian);
}

body.sirius-elementor-surface .elementor-section.elementor-section-boxed > .elementor-container,
body.sirius-elementor-surface .e-con-boxed > .e-con-inner {
	width: min(100% - (2 * var(--sirius-page-padding)), 1760px);
	max-width: none;
	margin-inline: auto;
}

body.sirius-elementor-surface .elementor-section.elementor-section-full_width,
body.sirius-elementor-surface .e-con-full,
body.sirius-elementor-surface [data-element_type="container"] {
	max-width: 100%;
}

body.sirius-elementor-surface :where(.elementor-widget-image img, .elementor-widget-video video, .elementor iframe) {
	max-width: 100%;
	height: auto;
}

body.sirius-elementor-surface :where(.elementor-heading-title, .elementor-widget-heading h1, .elementor-widget-heading h2, .elementor-widget-heading h3) {
	font-family: var(--sirius-font-editorial) !important;
	line-height: 1.08;
	text-wrap: balance;
}

body.sirius-elementor-surface :where(.elementor-widget-text-editor, .elementor-widget-text-editor p, .elementor-widget-text-editor li) {
	font-family: var(--sirius-font-body) !important;
	line-height: 1.68;
}

/* Substitui ações roxas/azuis herdadas sem alterar links nem conteúdo. */
body.sirius-elementor-surface :where(.elementor-button, a.elementor-button, .elementor-widget-button .elementor-button) {
	min-height: 46px;
	padding: 0.78rem 1.25rem;
	border: 1px solid rgba(229, 211, 168, .28) !important;
	border-radius: 999px !important;
	background: var(--sirius-action-primary-bg) !important;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
	color: var(--sirius-action-primary-text) !important;
	font-weight: 760;
	letter-spacing: 0.015em;
}

body.sirius-elementor-surface :where(.elementor-button, a.elementor-button, .elementor-widget-button .elementor-button):hover {
	border-color: var(--sirius-brand-gold) !important;
	background: var(--sirius-action-primary-hover-bg) !important;
	color: var(--sirius-action-primary-text) !important;
	transform: translateY(-1px);
}

/* O primeiro painel da página inicial recebe contraste ritualístico legível. */
body.home.sirius-elementor-surface .elementor > .elementor-element:first-child :where(.elementor-heading-title, h1, h2, h3) {
	color: var(--sirius-paper-strong) !important;
	text-shadow: 0 3px 22px rgba(0, 0, 0, 0.62);
}

body.home.sirius-elementor-surface .elementor > .elementor-element:first-child :where(p, .elementor-widget-text-editor) {
	color: rgba(255, 253, 247, 0.88) !important;
}

body.home.sirius-elementor-surface .elementor > .elementor-element:nth-child(n+2) :where(.elementor-heading-title, h1, h2, h3) {
	color: var(--sirius-forest-950) !important;
}

body.sirius-elementor-surface :where(.elementor-accordion-item, .elementor-toggle-item) {
	border-color: rgba(146, 112, 42, 0.24) !important;
}

body.sirius-elementor-surface :where(.elementor-tab-title, .elementor-toggle-title) {
	color: var(--sirius-forest-950) !important;
	font-family: var(--sirius-font-editorial) !important;
	font-weight: 650;
}

body.sirius-elementor-surface :where(.elementor-tab-title.elementor-active, .elementor-toggle-title:hover) {
	color: var(--sirius-crimson-dark) !important;
}

@media (max-width: 782px) {
	body.sirius-elementor-surface :where(.elementor-section.elementor-section-boxed > .elementor-container, .e-con-boxed > .e-con-inner) {
		width: min(100% - 32px, 1760px);
	}

	body.sirius-elementor-surface :where(.elementor-column, .e-con) {
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.sirius-elementor-surface .elementor-element,
	body.sirius-elementor-surface .elementor-button {
		animation: none !important;
		transition: none !important;
	}
}

body.sirius-elementor-surface .sirius-page-shell {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.sirius-elementor-surface .sirius-page-shell > .wp-block-post-title,
body.sirius-elementor-surface .sirius-page-shell > .wp-block-post-featured-image {
	display: none;
}

body.sirius-elementor-surface .sirius-page-shell > .wp-block-post-content,
body.sirius-elementor-surface .sirius-page-shell > .wp-block-post-content > * {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0;
}

body.sirius-private-surface.sirius-elementor-surface .sirius-page-shell {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
}

/* --------------------------------------------------------------------------
 * RC5 — contraste por superfície real, sem forçar texto branco globalmente
 * -------------------------------------------------------------------------- */

body.sirius-public-surface.sirius-elementor-surface .sirius-builder-main {
	background:
		radial-gradient(circle at 84% 8%, rgba(176, 40, 48, 0.12), transparent 28rem),
		radial-gradient(circle at 12% 20%, rgba(200, 163, 77, 0.09), transparent 30rem),
		var(--sirius-bg-authenticated);
	color: rgba(255, 253, 247, 0.88);
}

/* Superfícies escuras detectadas a partir do CSS computado do Elementor. */
body.sirius-elementor-surface .sirius-legacy-dark :where(
	.elementor-heading-title,
	h1, h2, h3, h4, h5, h6
) {
	color: var(--sirius-gold-150) !important;
	text-shadow: 0 3px 24px rgba(0, 0, 0, 0.38);
}

body.sirius-elementor-surface .sirius-legacy-dark :where(
	.elementor-widget-text-editor,
	.elementor-widget-text-editor p,
	.elementor-widget-text-editor li,
	.elementor-widget-text-editor span,
	.elementor-widget-text-editor strong,
	.elementor-widget-text-editor em,
	.elementor-widget-icon-list-text,
	.elementor-widget-counter .elementor-counter-number-wrapper,
	.elementor-widget-counter .elementor-counter-title
) {
	color: rgba(255, 253, 247, 0.86) !important;
}

body.sirius-elementor-surface .sirius-legacy-dark :where(.elementor-widget-text-editor a, .elementor-icon-list-item a, .elementor-tab-title a) {
	color: var(--sirius-brand-gold) !important;
}

/* Superfícies claras preservam tinta escura. A regra vem depois da escura para
 * que um painel branco aninhado em um hero escuro mantenha contraste correto. */
body.sirius-elementor-surface .sirius-legacy-light :where(
	.elementor-heading-title,
	h1, h2, h3, h4, h5, h6
) {
	color: var(--sirius-ink) !important;
	text-shadow: none !important;
}

body.sirius-elementor-surface .sirius-legacy-light :where(
	.elementor-widget-text-editor,
	.elementor-widget-text-editor p,
	.elementor-widget-text-editor li,
	.elementor-widget-text-editor span,
	.elementor-widget-text-editor strong,
	.elementor-widget-text-editor em,
	.elementor-widget-icon-list-text,
	.elementor-widget-counter .elementor-counter-number-wrapper,
	.elementor-widget-counter .elementor-counter-title
) {
	color: var(--sirius-text) !important;
}

body.sirius-elementor-surface .sirius-legacy-light :where(.elementor-widget-text-editor a, .elementor-icon-list-item a, .elementor-tab-title a) {
	color: var(--sirius-crimson-dark) !important;
}

body.sirius-elementor-surface :where(.elementor-widget-text-editor a, .elementor-icon-list-item a, .elementor-tab-title a):hover {
	color: var(--sirius-crimson) !important;
}

body.sirius-elementor-surface :where(.elementor-drop-cap, .elementor-drop-cap-letter) {
	color: var(--sirius-brand-gold) !important;
}

body.sirius-elementor-surface .sirius-legacy-dark :where(.elementor-accordion-item, .elementor-toggle-item, .elementor-widget-tabs .elementor-tab-content) {
	border-color: rgba(228, 207, 145, 0.18) !important;
	background: rgba(0, 0, 0, 0.52) !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

body.sirius-elementor-surface .sirius-legacy-light :where(.elementor-accordion-item, .elementor-toggle-item, .elementor-widget-tabs .elementor-tab-content) {
	border-color: rgba(146, 112, 42, 0.2) !important;
	background: rgba(255, 253, 247, 0.88) !important;
}

body.sirius-elementor-surface .sirius-legacy-dark :where(.elementor-tab-title, .elementor-toggle-title, .elementor-accordion-title) {
	color: var(--sirius-gold-150) !important;
}

body.sirius-elementor-surface .sirius-legacy-light :where(.elementor-tab-title, .elementor-toggle-title, .elementor-accordion-title) {
	color: var(--sirius-forest-950) !important;
}

@media (max-width: 760px) {
	body.sirius-elementor-surface :where(.elementor-widget-text-editor, .elementor-widget-text-editor p, .elementor-widget-text-editor li) {
		font-size: 1rem !important;
		line-height: 1.72 !important;
	}

	body.sirius-elementor-surface :where(.elementor-heading-title, .elementor-widget-heading h1, .elementor-widget-heading h2) {
		font-size: clamp(2rem, 10vw, 3.6rem) !important;
	}
}
