/* ==========================================================================
   Dynamic Hero — Frontend Styles (v2.1)
   Predefined Responsive Typography (Best Practices) + Content Width + Mobile Center
   ========================================================================== */

.dh-hero-container {
	position: relative;
	width: 100%;
	height: var(--dh-current-height, var(--dh-vw-desktop, 39.0625vw));
	min-height: 220px;
	overflow: hidden;
	background-color: #0f172a;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	transition: height 0.25s ease;
}

@media (max-width: 1024px) {
	.dh-hero-container {
		height: var(--dh-current-height, var(--dh-vw-tablet, var(--dh-vw-desktop, 39.0625vw)));
	}
}

@media (max-width: 767px) {
	.dh-hero-container {
		height: var(--dh-current-height, var(--dh-vw-mobile, var(--dh-vw-tablet, var(--dh-vw-desktop, 39.0625vw))));
	}
}

.dh-hero-container *,
.dh-hero-container *::before,
.dh-hero-container *::after {
	box-sizing: border-box;
}

/* Swiper & Banner Item Wrapper */
.dh-swiper,
.dh-swiper .swiper-wrapper,
.dh-banner-item {
	width: 100%;
	height: 100%;
	position: relative;
}

/* Media Picture & Image */
.dh-banner-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.dh-banner-media picture,
.dh-banner-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Content Positioning (Esquerda, Centro, Direita) */
.dh-banner-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 5vw, 4.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.dh-banner-content.dh-pos-left {
	align-items: flex-start;
	text-align: left;
}

.dh-banner-content.dh-pos-center {
	align-items: center;
	text-align: center;
}

.dh-banner-content.dh-pos-right {
	align-items: flex-end;
	text-align: right;
}

.dh-banner-inner {
	width: var(--dh-content-width, 55%);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: clamp(0.5rem, 1.3vw, 1.15rem);
}

.dh-pos-center .dh-banner-inner {
	align-items: center;
}

.dh-pos-right .dh-banner-inner {
	align-items: flex-end;
}

/* ==========================================================================
   Predefined Responsive Typography (Best Practices per Device)
   ========================================================================== */

.dh-banner-kicker {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	line-height: 1.25;
	font-size: clamp(0.75rem, 0.95vw, 0.95rem);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	word-break: break-word;
}

.dh-banner-title {
	margin: 0;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-size: clamp(2rem, 3.2vw, 3.5rem);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	word-break: break-word;
}

.dh-banner-text {
	margin: 0;
	font-weight: 400;
	line-height: 1.55;
	font-size: clamp(1rem, 1.25vw, 1.25rem);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
	word-break: break-word;
}

.dh-banner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 8px;
	padding: 0.8em 1.75em;
	font-size: clamp(0.925rem, 1.05vw, 1.05rem);
	color: var(--dh-btn-color, #ffffff) !important;
	background-color: var(--dh-btn-bg, #2271b1) !important;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	line-height: 1.2;
}

.dh-banner-btn:hover,
.dh-banner-btn:focus-visible {
	background-color: var(--dh-btn-hover-bg, #135e96) !important;
	color: var(--dh-btn-color, #ffffff) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Tablet (768px to 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
	.dh-banner-inner {
		width: max(var(--dh-content-width, 55%), 75%);
	}
	.dh-banner-kicker { font-size: clamp(0.75rem, 1.2vw, 0.875rem); }
	.dh-banner-title  { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
	.dh-banner-text   { font-size: clamp(0.95rem, 1.4vw, 1.1rem); }
	.dh-banner-btn    { font-size: 0.95rem; }
}

/* --- Mobile (<= 767px) --- */
@media (max-width: 767px) {
	.dh-banner-inner {
		width: 100% !important;
	}
	.dh-banner-kicker { font-size: clamp(0.72rem, 3.2vw, 0.85rem); }
	.dh-banner-title  { font-size: clamp(1.4rem, 5.8vw, 2rem); }
	.dh-banner-text   { font-size: clamp(0.9rem, 3.6vw, 1.05rem); }
	.dh-banner-btn    { font-size: 0.925rem; padding: 0.78em 1.5em; }

	/* Toggle "Centralizar no mobile" */
	.dh-banner-content.dh-mobile-center {
		align-items: center !important;
		text-align: center !important;
	}
	.dh-banner-content.dh-mobile-center .dh-banner-inner {
		align-items: center !important;
	}
}

/* ==========================================================================
   Swiper Navigation Controls
   ========================================================================== */

.dh-hero-container .dh-nav-prev,
.dh-hero-container .dh-nav-next {
	color: #ffffff !important;
	background: rgba(15, 23, 42, 0.55) !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease, transform 0.2s ease !important;
	z-index: 20 !important;
}

.dh-hero-container .dh-nav-prev::after,
.dh-hero-container .dh-nav-next::after {
	font-size: 1.1rem !important;
	font-weight: 700 !important;
}

.dh-hero-container .dh-nav-prev:hover,
.dh-hero-container .dh-nav-next:hover {
	background: rgba(15, 23, 42, 0.88) !important;
	transform: scale(1.08);
}

.dh-hero-container .dh-pagination {
	bottom: 14px !important;
	z-index: 20 !important;
}

.dh-hero-container .swiper-pagination-bullet {
	background: #ffffff !important;
	opacity: 0.55 !important;
	width: 9px !important;
	height: 9px !important;
	transition: all 0.25s ease !important;
}

.dh-hero-container .swiper-pagination-bullet-active {
	opacity: 1 !important;
	width: 26px !important;
	border-radius: 5px !important;
}
