/*
Theme Name: Nexo Base Child
Theme URI: 
Description: Tema filho do Nexo Base
Author: Adriano Marques
Author URI: 
Template: nexo-base
Version: 1.0.0
Text Domain: nexo-base-child
*/

/* =========================
   BASE TIPOGRÁFICA GLOBAL
========================= */

body {
	font-family: var(--nexo-font-family-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: var(--nexo-font-size-body, 16px);
	font-weight: var(--nexo-font-weight-body, 400);
	line-height: var(--nexo-line-height-body, 1.6);
	
}


h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--nexo-font-family-headings, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-weight: var(--nexo-font-weight-headings, 700);
}

h1 {
	font-size: var(--nexo-font-size-h1, 40px);
}

h2 {
	font-size: var(--nexo-font-size-h2, 32px);
}

h3 {
	font-size: var(--nexo-font-size-h3, 26px);
}

/* =========================
   FOOTER ESTRUTURADO
   Baseado no footer.php do child
========================= */

.site-footer {
	background: #05364d;
	color: #f4f7fb;
	margin: 0;
	padding: 0;
}

.site-footer a,
.site-footer a:visited {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #ffffff;
	text-decoration: none;
	opacity: 1;
}

/* Bloco superior */
.footer-neogrid {
	background: #05364d;
	padding: 64px 76px 36px;
}

.footer-neogrid__inner {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr minmax(260px, 320px);
	gap: 36px;
	align-items: start;
}

.footer-neogrid__column {
	min-width: 0;
}

.footer-neogrid__title {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
}

/* Menus */
.footer-neogrid__menu,
.footer-neogrid__menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-neogrid__menu li {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.footer-neogrid__menu li:last-child {
	margin-bottom: 0;
}

.footer-neogrid__menu li::before,
.footer-neogrid__menu li::marker {
	content: none !important;
	display: none !important;
}

.footer-neogrid__menu a {
	display: inline-block;
	font-size: var(--nexo-font-size-footer, 15px);
	line-height: 1.55;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.88);
}

/* Coluna newsletter */
.footer-neogrid__text {
	max-width: 320px;
	margin: 0 0 18px;
	font-size: var(--nexo-font-size-footer, 15px);
	line-height: 1.45;
	color: #ffffff;
}

.footer-neogrid__form {
	margin: 0;
}

.footer-neogrid__field,
.footer-neogrid__privacy,
.footer-neogrid__submit {
	margin: 0 0 18px;
}

.footer-neogrid__field input[type="text"],
.footer-neogrid__field input[type="email"] {
	width: 100%;
	max-width: 290px;
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 16px;
	background: #edf1f4;
	color: #1f2b35;
	font-family: inherit;
	font-size: var(--nexo-font-size-footer, 15px);
	outline: none;
	box-shadow: none;
}

.footer-neogrid__field input::placeholder {
	color: #8b9098;
	opacity: 1;
}

.footer-neogrid__privacy label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	cursor: pointer;
}

.footer-neogrid__privacy input[type="checkbox"] {
	margin-top: 2px;
	flex: 0 0 auto;
}

.footer-neogrid__submit button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	height: 40px;
	padding: 0 24px;
	border: 0;
	border-radius: 16px;
	background: #ffffff;
	color: #1e2e38;
	font-family: inherit;
	font-size: var(--nexo-font-size-footer, 15px);
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-neogrid__submit button:hover,
.footer-neogrid__submit button:focus {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Bloco inferior */
.footer-neogrid-bottom {
	background: #05364d;
	padding: 8px 76px 56px;
}

.footer-neogrid-bottom__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.footer-neogrid-bottom__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
}

.footer-neogrid-bottom__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-neogrid-bottom__social a:hover,
.footer-neogrid-bottom__social a:focus {
	border-color: rgba(255, 255, 255, 0.36);
	color: #ffffff;
}

.footer-neogrid-bottom__branding {
	max-width: 620px;
}

.footer-neogrid-bottom__logo {
	margin: 0 0 18px;
}

.footer-neogrid-bottom__logo img,
.footer-neogrid-bottom__branding .custom-logo {
	max-width: 240px;
	height: auto;
	display: block;
}

.footer-neogrid-bottom__site-name {
	margin: 0 0 18px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	color: #ffffff;
}

.footer-neogrid-bottom__description {
	margin: 0 0 16px;
	font-size: var(--nexo-font-size-footer, 15px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.footer-neogrid-bottom__copyright {
	margin: 0;
	font-size: var(--nexo-font-size-copyright, 14px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

/* Garante que listas herdadas não criem bullets */
.site-footer ul,
.site-footer ol,
.site-footer li {
	list-style: none;
}

/* Responsivo */
@media (max-width: 1100px) {
	.footer-neogrid {
		padding: 52px 32px 28px;
	}

	.footer-neogrid-bottom {
		padding: 0 32px 42px;
	}

	.footer-neogrid__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

@media (max-width: 780px) {
	.footer-neogrid {
		padding: 40px 20px 24px;
	}

	.footer-neogrid-bottom {
		padding: 0 20px 36px;
	}

	.footer-neogrid__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.footer-neogrid__field input[type="text"],
	.footer-neogrid__field input[type="email"] {
		max-width: 100%;
	}
}

.footer-neogrid-bottom__logo--footer {
	margin: 0 0 22px;
}

.footer-neogrid-bottom__logo--footer img {
	display: block;
	width: 300px;
	max-width: 100%;
	height: auto;
}

.footer-neogrid-bottom__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
}

/* =========================
   HEADER
========================= */

.site-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid rgba(229, 231, 235, 1);
	transition:
		background-color 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.site-header.is-sticky-enabled {
	position: sticky;
	top: 0;
}

.site-header__inner {
	min-height: var(--nexo-header-height, 88px);
	transition: min-height 0.25s ease, padding 0.25s ease;
}

.site-header__logo {
	width: var(--nexo-header-logo-width, 160px);
	height: auto;
	transition: width 0.25s ease;
}

.site-header.is-scrolled {
	background: rgba(255, 255, 255, var(--nexo-header-scrolled-opacity, 0.82));
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	border-bottom-color: rgba(229, 231, 235, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.site-header.is-scrolled .site-header__inner {
	min-height: var(--nexo-header-height-scrolled, 68px);
}

.site-header.is-scrolled .site-header__logo {
	width: var(--nexo-header-logo-width-scrolled, 138px);
}

.site-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 20px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

.site-header__brand {
	display: flex;
	align-items: center;
}

.site-header__logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-header__logo {
	display: block;
	width: 160px;
	height: auto;
}

.site-header__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.site-header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.site-header__menu,
.site-header__menu ul,
.site-header__menu li {
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.site-header__menu li::before,
.site-header__menu li::marker,
.site-header__menu ul li::before,
.site-header__menu ul li::marker {
	content: none !important;
	display: none !important;
}

.site-header__menu > li {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.site-header__menu > li > a {
	display: inline-flex;
	align-items: center;
	color: #111827;
	text-decoration: none;
	font-family: inherit;
	font-size: var(--nexo-font-size-menu, 15px);
	font-weight: 500;
	line-height: 1.2;
}

.site-header__menu > li > a:hover,
.site-header__menu > li > a:focus {
	color: #2563eb;
}

.site-header__menu > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	margin: 0;
	padding: 18px 0 12px;
	background: #ffffff;
	border: 1px solid rgba(229, 231, 235, 1);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
	z-index: 3000;
}

.site-header__menu > li:hover > ul,
.site-header__menu > li:focus-within > ul {
	display: block;
	animation: nexoHeaderDropdown 0.18s ease;
}

.site-header__menu > li > ul > li {
	display: block !important;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none !important;
}

.site-header__menu > li > ul > li > a {
	display: block;
	width: 100%;
	padding: 10px 16px;
	color: #111827;
	text-decoration: none;
	font-size: var(--nexo-font-size-menu, 15px);
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	background: transparent;
}

.site-header__menu > li > ul > li > a:hover,
.site-header__menu > li > ul > li > a:focus {
	background: #f8fafc;
	color: #2563eb;
}

@keyframes nexoHeaderDropdown {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-header__search {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.site-header__search form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.site-header__search label {
	display: none;
}

.site-header__search input[type="search"] {
	width: 220px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	font-family: inherit;
}

.site-header__search input[type="search"]::placeholder {
	color: #6b7280;
}

.site-header__search input[type="submit"] {
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #111827;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.site-header__search input[type="submit"]:hover,
.site-header__search input[type="submit"]:focus {
	opacity: 0.9;
}

@media (max-width: 1024px) {
	.site-header__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.site-header__nav {
		order: 2;
	}

	.site-header__search {
		order: 3;
		justify-content: center;
		width: 100%;
	}

	.site-header__logo {
		width: 140px;
	}

	.site-header__menu {
		flex-wrap: wrap;
		gap: 16px;
	}
}

@media (max-width: 640px) {
	.site-header__inner {
		padding: 14px 16px;
		gap: 16px;
	}

	.site-header__logo {
		width: 125px;
	}

	.site-header__search {
		width: 100%;
	}

	.site-header__search form {
		width: 100%;
		flex-direction: column;
	}

	.site-header__search input[type="search"],
	.site-header__search input[type="submit"] {
		width: 100%;
	}
}

.site-header__search {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.site-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.site-search-form__input {
	display: block;
	width: 220px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	font-size: 14px;
	font-family: inherit;
	line-height: 1;
	box-sizing: border-box;
}

.site-search-form__input::placeholder {
	color: #6b7280;
}

.site-search-form__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #111827;
	color: #ffffff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.site-search-form__button:hover,
.site-search-form__button:focus {
	opacity: 0.92;
}

.site-search-form__input:focus,
.site-search-form__button:focus {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.site-header__search {
		width: 100%;
		justify-content: center;
	}

	.site-search-form {
		width: 100%;
	}

	.site-search-form__input {
		width: 100%;
		min-width: 0;
		flex: 1;
	}

	.site-search-form__button {
		flex: 0 0 42px;
	}
}

.search-results-page__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.search-results-page__title {
	margin: 0 0 32px;
	font-size: var(--nexo-font-size-h1, 40px);
	line-height: 1.2;
	color: #111827;
}

.search-result-item {
	padding: 0 0 28px;
	margin: 0 0 28px;
	border-bottom: 1px solid #e5e7eb;
}

.search-result-item__title {
	margin: 0 0 10px;
	font-size: var(--nexo-font-size-h3, 26px);
	line-height: 1.2;
}

.search-result-item__title a {
	color: #0f172a;
	text-decoration: none;
}

.search-result-item__title a:hover,
.search-result-item__title a:focus {
	color: #2563eb;
}

.search-result-item__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: #374151;
}

.search-result-item__excerpt strong {
	font-weight: 700;
	color: #111827;
}

.site-main .entry-content {
	width: 100%;
}

.site-main .panel-layout,
.site-main .panel-grid,
.site-main .panel-row-style,
.site-main .so-panel {
	max-width: 100%;
}

.site-main .panel-grid {
	margin-left: 0;
	margin-right: 0;
}

.site-main .panel-grid-cell {
	padding-left: 20px;
	padding-right: 20px;
}

/* =========================
   AJUSTES DE ALINHAMENTO — SITEORIGIN / EDITOR
========================= */

.site-main .so-widget-sow-editor,
.site-main .so-widget-sow-text,
.site-main .textwidget,
.site-main .so-widget-sow-image,
.site-main .widget_sow-image,
.site-main .sow-image-container {
	text-align: inherit;
}

/* Quando o editor centraliza conteúdo, imagem e link devem obedecer */
.site-main .textwidget[style*="text-align: center"] a,
.site-main .so-widget-sow-editor [style*="text-align: center"] a,
.site-main .panel-grid-cell [style*="text-align: center"] a,
.site-main .entry-content [style*="text-align: center"] a,
.site-main .textwidget[style*="text-align: center"] img,
.site-main .so-widget-sow-editor [style*="text-align: center"] img,
.site-main .panel-grid-cell [style*="text-align: center"] img,
.site-main .entry-content [style*="text-align: center"] img {
	display: inline-block;
	width: auto;
}

/* Imagens centralizadas do editor clássico / WordPress */
.site-main .entry-content img.aligncenter,
.site-main .entry-content p img.aligncenter,
.site-main .entry-content div img.aligncenter,
.site-main .entry-content .wp-caption img,
.site-main .entry-content figure img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.site-main .entry-content .wp-caption.aligncenter,
.site-main .entry-content .wp-caption[style],
.site-main .entry-content figure.aligncenter {
	display: table;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	max-width: 100%;
}

.site-main .entry-content .wp-caption-text,
.site-main .entry-content .wp-caption-dd {
	text-align: center;
}