/* ==========================================================
   NT 3.0 — FOOTER / NEWSLETTER
   Objetivo visual: bloco central de 1360px com laterais livres,
   newsletter clara acima e rodapé escuro texturizado abaixo.
   ========================================================== */

:root {
	--nt-footer-max: 1360px;
	--nt-footer-gutter: 24px;
	--nt-footer-texture: url("https://noticiasdotransporte.com.br/wp-content/uploads/2024/1212NT-1781x2048-0x.png");
}

/* ----------------------------------------------------------
   NEWSLETTER — linha Primary Footer do Astra
   O fundo NÃO deve atravessar todo o viewport. As laterais ficam livres.
   ---------------------------------------------------------- */
.site-footer .site-primary-footer-wrap {
	background: transparent !important;
	border: 0 !important;
	padding: 0 var(--nt-footer-gutter) !important;
}

.site-footer .site-primary-footer-wrap .site-primary-footer-inner-wrap {
	position: relative;
	width: 100%;
	max-width: var(--nt-footer-max) !important;
	min-height: 148px;
	margin-inline: auto !important;
	padding: 28px 42px !important;
	border: 0 !important;
	border-radius: 10px 10px 0 0;
	overflow: hidden;
	background-color: #dff3e2 !important;
	background-image:
		linear-gradient(90deg, rgba(223,243,226,.94), rgba(224,245,229,.88)),
		var(--nt-footer-texture) !important;
	background-size: 100% 100%, cover !important;
	background-position: center, center !important;
	background-repeat: no-repeat !important;
}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row {
	align-items: center !important;
	column-gap: 42px !important;
}

/* HTML do texto + envelope da newsletter. */
.nt-newsletter-intro {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	margin: 0;
	color: #103b20;
}

.nt-newsletter-intro__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 100px;
	width: 100px;
	height: 82px;
	color: #0a7d2c;
	opacity: .16;
}

.nt-newsletter-intro__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.nt-newsletter-intro__copy {
	min-width: 0;
}

.nt-newsletter-intro__title {
	margin: 0 0 4px !important;
	font-family: "Titillium Web", "Source Sans 3", sans-serif !important;
	font-size: clamp(20px, 1.45vw, 25px);
	font-weight: 700 !important;
	line-height: 1.08;
	letter-spacing: -.25px;
	color: #123d21 !important;
}

.nt-newsletter-intro__description {
	margin: 0 !important;
	font-family: "Source Sans 3", sans-serif !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: #41654d !important;
}

.nt-newsletter-intro__privacy {
	margin: 6px 0 0 !important;
	font-family: "Source Sans 3", sans-serif !important;
	font-size: 10px;
	line-height: 1.3;
	color: #66816f !important;
}

.nt-newsletter-intro__privacy a {
	color: inherit !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* Jetpack Subscribe: mantém o módulo, mas aproxima do mockup. */
.site-footer .site-primary-footer-wrap .wp-block-jetpack-subscriptions,
.site-footer .site-primary-footer-wrap .wp-block-jetpack-subscriptions__container {
	width: 100%;
	margin: 0 !important;
}

.site-footer .site-primary-footer-wrap .wp-block-jetpack-subscriptions form,
.site-footer .site-primary-footer-wrap .wp-block-jetpack-subscriptions__form-elements {
	display: flex !important;
	align-items: stretch !important;
	gap: 12px !important;
	margin: 0 !important;
}

.site-footer .site-primary-footer-wrap input[type="email"] {
	min-height: 46px;
	border: 1px solid rgba(10,125,44,.10) !important;
	border-radius: 4px !important;
	background: rgba(255,255,255,.86) !important;
	box-shadow: none !important;
	font-family: "Source Sans 3", sans-serif !important;
	font-size: 14px !important;
	color: #244832 !important;
}

.site-footer .site-primary-footer-wrap input[type="submit"],
.site-footer .site-primary-footer-wrap button[type="submit"] {
	min-height: 46px;
	padding-inline: 24px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #075b27 !important;
	font-family: "Source Sans 3", sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #fff !important;
	box-shadow: none !important;
}

/* ----------------------------------------------------------
   RODAPÉ ESCURO — linha Below Footer do Astra
   O próprio bloco verde fica limitado a 1360px. Nada de fundo verde
   ocupando as laterais do viewport.
   ---------------------------------------------------------- */
.site-footer .site-below-footer-wrap {
	background: transparent !important;
	border: 0 !important;
	padding: 0 var(--nt-footer-gutter) !important;
	color: rgba(255,255,255,.84);
}

.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap {
	position: relative;
	width: 100%;
	max-width: var(--nt-footer-max) !important;
	min-height: 82px !important;
	margin-inline: auto !important;
	padding: 15px 28px !important;
	border: 0 !important;
	border-radius: 0 0 10px 10px;
	overflow: hidden;
	background-color: #075b27 !important;
	background-image:
		linear-gradient(90deg, rgba(3,80,31,.94), rgba(5,107,41,.91) 52%, rgba(3,78,30,.95)),
		var(--nt-footer-texture) !important;
	background-size: 100% 100%, cover !important;
	background-position: center, center !important;
	background-repeat: no-repeat !important;
}

.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.07));
	z-index: 0;
}

.site-footer .site-below-footer-wrap .ast-builder-grid-row {
	position: relative;
	z-index: 1;
	grid-template-columns: minmax(220px, 1fr) minmax(420px, 2fr) minmax(220px, 1fr) !important;
	align-items: center !important;
	column-gap: 28px !important;
	min-height: 52px !important;
}

.site-footer .site-below-footer-wrap .site-footer-section,
.site-footer .site-below-footer-wrap [class*="site-footer-below-section-"] {
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important; /* target não tem divisórias verticais */
}

.site-footer .site-below-footer-wrap .site-footer-section-1,
.site-footer .site-below-footer-wrap .site-footer-below-section-1 {
	justify-content: flex-start !important;
	text-align: left !important;
}

.site-footer .site-below-footer-wrap .site-footer-section-2,
.site-footer .site-below-footer-wrap .site-footer-below-section-2 {
	justify-content: center !important;
	text-align: center !important;
}

.site-footer .site-below-footer-wrap .site-footer-section-3,
.site-footer .site-below-footer-wrap .site-footer-below-section-3 {
	justify-content: flex-end !important;
	text-align: right !important;
}

.site-footer .site-below-footer-wrap .site-footer-section-1 img,
.site-footer .site-below-footer-wrap .site-footer-below-section-1 img {
	display: block !important;
	width: auto !important;
	max-width: 220px !important;
	max-height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: contain;
}

.nt-footer-links {
	width: 100%;
	font-family: "Source Sans 3", sans-serif;
}

.nt-footer-links__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 22px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.nt-footer-links__item {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1;
}

.nt-footer-links__link {
	display: inline-flex;
	align-items: center;
	padding: 3px 0;
	font-family: "Source Sans 3", sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.25;
	color: rgba(255,255,255,.92) !important;
	text-decoration: none !important;
}

.nt-footer-links__link:hover,
.nt-footer-links__link:focus-visible {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.site-footer .site-below-footer-wrap .site-footer-section-3,
.site-footer .site-below-footer-wrap .site-footer-section-3 *,
.site-footer .site-below-footer-wrap .site-footer-below-section-3,
.site-footer .site-below-footer-wrap .site-footer-below-section-3 * {
	font-family: "Source Sans 3", sans-serif !important;
	font-size: 11px !important;
	font-weight: 500;
	line-height: 1.35 !important;
	color: rgba(255,255,255,.72) !important;
}

.site-footer .site-below-footer-wrap a {
	color: rgba(255,255,255,.92);
}

@media (max-width: 1100px) {
	:root { --nt-footer-gutter: 18px; }

	.site-footer .site-below-footer-wrap .ast-builder-grid-row {
		grid-template-columns: 1fr 2fr 1fr !important;
		column-gap: 18px !important;
	}

	.nt-footer-links__list { gap: 5px 14px; }
	.nt-footer-links__link { font-size: 11px !important; }
}

@media (max-width: 921px) {
	.site-footer .site-primary-footer-wrap .site-primary-footer-inner-wrap,
	.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap {
		border-radius: 8px;
	}

	.site-footer .site-primary-footer-wrap .ast-builder-grid-row,
	.site-footer .site-below-footer-wrap .ast-builder-grid-row {
		grid-template-columns: 1fr !important;
		row-gap: 16px !important;
	}

	.site-footer .site-below-footer-wrap .site-footer-section-1,
	.site-footer .site-below-footer-wrap .site-footer-section-2,
	.site-footer .site-below-footer-wrap .site-footer-section-3,
	.site-footer .site-below-footer-wrap .site-footer-below-section-1,
	.site-footer .site-below-footer-wrap .site-footer-below-section-2,
	.site-footer .site-below-footer-wrap .site-footer-below-section-3 {
		justify-content: center !important;
		text-align: center !important;
	}

	.site-footer .site-below-footer-wrap .site-footer-section-1 img,
	.site-footer .site-below-footer-wrap .site-footer-below-section-1 img {
		margin-inline: auto !important;
	}
}

@media (max-width: 600px) {
	:root { --nt-footer-gutter: 14px; }

	.site-footer .site-primary-footer-wrap .site-primary-footer-inner-wrap {
		padding: 24px 18px !important;
	}

	.site-footer .site-below-footer-wrap .site-below-footer-inner-wrap {
		padding: 22px 18px !important;
	}

	.nt-newsletter-intro {
		align-items: flex-start;
		gap: 12px;
	}

	.nt-newsletter-intro__icon {
		flex-basis: 58px;
		width: 58px;
		height: 50px;
	}

	.nt-newsletter-intro__title { font-size: 19px; }
	.nt-newsletter-intro__description { font-size: 12px; }

	.site-footer .site-primary-footer-wrap .wp-block-jetpack-subscriptions form,
	.site-footer .site-primary-footer-wrap .wp-block-jetpack-subscriptions__form-elements {
		flex-direction: column !important;
	}
}
