/**
 * Hero Slider Links - Frontend Styles
 * Estilos do Widget Hero Slider para o frontend
 */

/* ===================================
   RESET E VARIÁVEIS
   =================================== */

   .hero-slider {
   	position: relative;
   	width: 100%;
   	overflow: hidden;
   }

   .hero-slider * {
   	box-sizing: border-box;
   }

/* ===================================
   CONTAINER PRINCIPAL
   =================================== */

   .hero-slider {
   	min-height: 700px;
   	background-color: #000;
   	position: relative;
   	min-height: 700px;
   }

   .hero-slider__wrapper {
   	width: 100%;
   	height: 700px;
   	position: relative;
   	display: flex;
   	flex-direction: column;
   	overflow: hidden;
   }

   .splide {
   	width: 100%;
   	height: 700px;
   }

   .splide__track {
   	width: 100%;
   	height: 700px;
   	overflow: hidden;
   	position: relative;
   }

   .splide__list {
   	height: 700px;
   	display: flex;
   	width: 100%;
   	transition: transform 0.4s ease;
   	margin: 0;
   	padding: 0;	
   }

   .splide__slide {
   	flex: 0 0 100%;
   	width: 100%;
   	height: 700px;
   }

   .hero-slider__pagination {
   	display: flex;
   	justify-content: center;
   	gap: 8px;
   	position: absolute;
   	left: 50%;
   	bottom: 24px;
   	transform: translateX(-50%);
   	z-index: 6;
   }

   .hero-slider__pagination-bullet {
   	width: 20px;
   	height: 3px;
   	padding: 0;
   	border: 0;
   	border-radius: 999px;
   	background: rgba(255, 255, 255, 0.55);
   	cursor: pointer;
   	transition: background 0.2s ease, transform 0.2s ease;
   }

   .hero-slider__pagination-bullet:hover,
   .hero-slider__pagination-bullet:focus-visible {
   	background: rgba(255, 255, 255, 0.9);
   	transform: scale(1.05);
   }

   .hero-slider__pagination-bullet--active {
   	background: #ffffff;
   	width: 40px;
   }

   .hero-slider__button-prev,
   .hero-slider__button-next {
   	position: absolute;
   	top: 50%;
   	transform: translateY(-50%);
   	z-index: 6;
   	border: 0;
   	border-radius: 999px;
   	width: 44px;
   	height: 44px;
   	background: rgba(255, 255, 255, 0.2);
   	color: #fff;
   	cursor: pointer;
   	display: inline-flex;
   	align-items: center;
   	justify-content: center;
   	backdrop-filter: blur(6px);
   }

   .hero-slider__button-prev:hover,
   .hero-slider__button-next:hover,
   .hero-slider__button-prev:focus-visible,
   .hero-slider__button-next:focus-visible {
   	background: rgba(255, 255, 255, 0.35);
   }

   .hero-slider__button-prev {
   	left: 16px;
   }

   .hero-slider__button-next {
   	right: 16px;
   }

/* ===================================
   SLIDE
   =================================== */
   .hero-slider__slide {
   	position: relative;
   	width: 100%;
   	height: 100%;
   	overflow: hidden;
   	display: flex;
   	align-items: center;
   	justify-content: center;
   }

/* Link do slide inteiro (clicável) */
.hero-slider__slide-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	text-decoration: none;
}

/* ===================================
   IMAGEM DE FUNDO
   =================================== */
   .hero-slider__image {
   	position: absolute;
   	top: 0;
   	left: 0;
   	width: 100%;
   	height: 100%;
   	object-fit: cover;
   	object-position: center;
   	display: block;
   	z-index: 0;
   }
   img.hero-slider__image {
   	height: 100%;
   }

/* Lazy loading - placeholder minimalista */
.hero-slider__image.swiper-lazy-loading {
	opacity: 0.7;
}

.hero-slider__image.swiper-lazy-loaded {
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ===================================
   OVERLAY
   =================================== */
   .hero-slider__overlay {
   	position: absolute;
   	top: 0;
   	left: 0;
   	width: 100%;
   	height: 100%;
   	background-color: rgba(0, 0, 0, 0.5);
   	z-index: 2;
   }

/* ===================================
   CONTEÚDO (TEXTOS E BOTÕES)
   =================================== */
   .hero-slider__content {
   	position: absolute;
   	width: 100%;
   	padding: 0px 0px 0px 70px;
   	z-index: 3;
   	display: flex;
   	flex-direction: column;
   	gap: 0px;
   	max-width: 700px;
   	animation: slideInUp 0.6s ease-out;
   }

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

/* Modificadores de Posição */

.hero-slider__content--top-left {
	top: 20%;
	left: 0px;
	align-items: flex-start;
	justify-content: flex-start;
}

.hero-slider__content--top-center {
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	align-items: center;
	justify-content: flex-start;
}

.hero-slider__content--top-right {
	top: 0;
	right: 0;
	align-items: flex-end;
	justify-content: flex-start;
}

.hero-slider__content--center-left {
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	align-items: flex-start;
	justify-content: center;
}

.hero-slider__content--center-center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero-slider__content--center-right {
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	align-items: flex-end;
	justify-content: center;
}

.hero-slider__content--bottom-left {
	bottom: 0;
	left: 0;
	align-items: flex-start;
	justify-content: flex-end;
}

.hero-slider__content--bottom-center {
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	align-items: center;
	justify-content: flex-end;
}

.hero-slider__content--bottom-right {
	bottom: 0;
	right: 0;
	align-items: flex-end;
	justify-content: flex-end;
}

/* ===================================
   TEXTOS
   =================================== */

   .hero-slider__supertitle {
   	font-size: 14px;
   	font-weight: 600;
   	text-transform: uppercase;
   	letter-spacing: 2px;
   	color: #999999;
   	margin: 0px 0px 10px 0px;
   }

   .hero-slider__title {
   	font-size: 48px;
   	font-weight: 700;
   	line-height: 1.2;
   	color: #ffffff;
   	margin: 0;
   }

   .hero-slider__subtitle {
   	font-size: 16px;
   	font-weight: 400;
   	line-height: 1.6;
   	color: #cccccc;
   	margin: 0;
   }

/* ===================================
   BOTÕES
   =================================== */

   .hero-slider__buttons {
   	display: flex;
   	flex-wrap: wrap;
   	gap: 12px;
   	margin-top: 10px;
   }

   .hero-slider__button {
   	display: inline-block;
   	padding: 12px 30px;
   	font-size: 14px;
   	font-weight: 600;
   	text-decoration: none;
   	border-radius: 4px;
   	border: 2px solid transparent;
   	cursor: pointer;
   	transition: all 0.3s ease;
   	text-align: center;
   }

   .hero-slider__button:focus-visible {
   	outline: 2px solid rgba(255, 255, 255, 0.5);
   	outline-offset: 2px;
   }

/* Modificador Primary */
.hero-slider__button--primary {
	background-color: #007bff;
	color: #ffffff;
}

.hero-slider__button--primary:hover {
	background-color: #0056b3;
	color: #ffffff;
}

/* Modificador Secondary */
.hero-slider__button--secondary {
	background-color: #6c757d;
	color: #ffffff;
}

.hero-slider__button--secondary:hover {
	background-color: #545b62;
	color: #ffffff;
}

/* Modificador Outline */
.hero-slider__button--outline {
	background-color: transparent;
	color: #ffffff;
	border-color: #ffffff;
}

.hero-slider__button--outline:hover {
	background-color: #ffffff;
	color: #000000;
	border-color: #ffffff;
}

/* ===================================
   NAVEGAÇÃO (SETAS)
   =================================== */

   .hero-slider__button-prev,
   .hero-slider__button-next {
   	position: absolute;
   	top: 50%;
   	transform: translateY(-50%);
   	z-index: 10;
   	width: 50px;
   	height: 50px;
   	display: flex;
   	align-items: center;
   	justify-content: center;
   	background-color: transparent;
   	border: none;
   	cursor: pointer;
   	color: #ffffff;
   	font-size: 40px;
   	opacity: 0;
   	transition: all 0.3s ease;
   	padding: 0;
   }

   .hero-slider__button-prev {
   	left: 20px;
   }

   .hero-slider__button-next {
   	right: 20px;
   }

/* Mostrar setas ao fazer hover no slider (desktop) */
.hero-slider:hover .hero-slider__button-prev,
.hero-slider:hover .hero-slider__button-next {
	opacity: 1;
}

/* Mobile: sempre visível */
@media (max-width: 768px) {
	.hero-slider__button-prev,
	.hero-slider__button-next {
		opacity: 1;
		background-color: rgba(0, 0, 0, 0.3);
		border-radius: 50%;
	}
}

.hero-slider__button-prev:hover,
.hero-slider__button-next:hover {
	color: #ffcc00;
	background-color: rgba(0, 0, 0, 0.5);
}

/* Ícones das setas - usando dashicons */
.hero-slider__button-prev .dashicons,
.hero-slider__button-next .dashicons {
	font-size: 40px;
	width: auto;
	height: auto;
	line-height: 1;
}

/* ===================================
   PAGINAÇÃO (DOTS)
   =================================== */

   .hero-slider__pagination {
   	position: absolute;
   	/* bottom: 20px; */
   	left: 50%;
   	transform: translateX(-50%);
   	z-index: 10;
   	display: flex;
   	gap: 10px;
   	justify-content: center;
   	top: 80%;
   	left: 123px;
   }

   .swiper-pagination-bullet {
   	width: 12px;
   	height: 12px;
   	background-color: rgba(255, 255, 255, 0.5);
   	border-radius: 50%;
   	cursor: pointer;
   	transition: all 0.3s ease;
   	border: none;
   	margin: 0 5px;
   	padding: 0;
   }

   .swiper-pagination-bullet-active {
   	background-color: #ffffff;
   }

/* ===================================
   PARALLAX
   =================================== */

   [data-swiper-parallax] {
   	transition: transform 0.3s ease;
   }

/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
	.hero-slider__content {
		padding: 30px;
		max-width: 500px;
	}

	.hero-slider__title {
		font-size: 36px;
	}

	.hero-slider__subtitle {
		font-size: 14px;
	}

	.hero-slider__button {
		padding: 10px 24px;
		font-size: 13px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.hero-slider {
		min-height: 300px;
	}

	.hero-slider__content {
		padding: 20px;
		max-width: 100%;
		gap: 12px;
	}

	.hero-slider__title {
		font-size: 28px;
	}

	.hero-slider__supertitle {
		font-size: 12px;
	}

	.hero-slider__subtitle {
		font-size: 13px;
	}

	.hero-slider__buttons {
		gap: 8px;
	}

	.hero-slider__button {
		padding: 10px 20px;
		font-size: 12px;
	}

	.hero-slider__button-prev,
	.hero-slider__button-next {
		width: 40px;
		height: 40px;
		font-size: 30px;
	}

	.hero-slider__button-prev {
		left: 10px;
	}

	.hero-slider__button-next {
		right: 10px;
	}

	.hero-slider__pagination {
		bottom: 10px;
		top: 85%;
		left: 70px;
	}

	.swiper-pagination-bullet {
		width: 8px;
		height: 8px;
		margin: 0 3px;
	}
}

/* Extra Mobile (pequeno) */
@media (max-width: 480px) {
	.hero-slider {
		min-height: 250px;
	}

	.hero-slider__content {
		padding: 15px;
	}

	.hero-slider__title {
		font-size: 22px;
	}

	.hero-slider__supertitle {
		font-size: 11px;
	}

	.hero-slider__subtitle {
		font-size: 12px;
	}

	.hero-slider__button {
		padding: 8px 16px;
		font-size: 11px;
	}
}

/* ===================================
   ACESSIBILIDADE
   =================================== */

/* Modo redução de movimento */
@media (prefers-reduced-motion: reduce) {
	.hero-slider__content,
	.hero-slider__image,
	.swiper-pagination-bullet,
	.hero-slider__button,
	.hero-slider__button-prev,
	.hero-slider__button-next,
	[data-swiper-parallax] {
		animation: none !important;
		transition: none !important;
	}
}

/* Focus visible para teclado */
.hero-slider__button:focus-visible,
.hero-slider__button-prev:focus-visible,
.hero-slider__button-next:focus-visible,
.swiper-pagination-bullet:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7) !important;
	outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.hero-slider__overlay {
		background-color: rgba(0, 0, 0, 0.6);
	}
}

/* ===================================
   ELEMENTOR EDITOR
   =================================== */

   .elementor-editor-active .hero-slider {
   	background-color: transparent;
   }

   .elementor-editor-active .hero-slider__content {
   	animation: none;
   }
