/**
 * Hero (vídeo) — desktop + mobile.
 * Extraído do custom-style.css do tema. Fica aqui, junto do widget
 * que o usa, em vez de misturado num CSS global do tema.
 */

@keyframes heroReveal {
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes contentFade {
	from {
		transform: translateY(35px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ==========================================================
   DESKTOP
========================================================== */

.hero-video {
	position: relative;

	width: 100vw; /* 100% da largura do ecrã */
	margin-left: calc(-50vw + 50%); /* descola do padding do container do Elementor */
	height: 95vh;

	overflow: hidden;

	border-bottom-left-radius: 30px;
	border-bottom-right-radius: 30px;

	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.35);

	animation: heroReveal 1.2s ease-out forwards;
	transform: translateY(-120px);
	opacity: 0;

	z-index: 1;
}

.hero-video video {
	position: absolute;
	top: 0;
	left: 0;

	max-width: 100vw;
	min-height: 100%;

	object-fit: cover;
	object-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;

	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.82),
			rgba(0, 0, 0, 0.45),
			rgba(0, 0, 0, 0.25)
		);

	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
	opacity: 0;
	transition: opacity 1.4s ease;
}

.hero-overlay.show {
	opacity: 1;
}

.hero-content {
	text-align: center;
	max-width: 950px;
	padding: 0 25px;
	z-index: 3;
	animation: contentFade 1.4s ease forwards;
}

.hero-content h1 {
	color: #fff;
	font-size: clamp(3rem, 7vw, 6rem);
	line-height: 1.05;
	font-weight: 1000;

	margin-bottom: 25px;

	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.title-break {
	display: inline;
}

.hero-content p {
	color: rgba(255, 255, 255, 0.92);

	font-size: 1.5em;
	line-height: 1.6;

	max-width: 760px;
	margin: 0 auto 45px auto;

	text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 20px 42px;

	background: #0274be;
	color: #fff;

	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;

	border-radius: 100px;
	border: 2px solid #0274be;

	transition:
		transform 0.3s ease,
		background 0.3s ease,
		color 0.3s ease,
		box-shadow 0.3s ease;

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.hero-btn:hover {
	background: #fff;
	color: #000;

	transform: translateY(-4px);
}

/* ==========================================================
   MOBILE (até 768px)
========================================================== */
@media (max-width: 768px) {

	.hero-video {
		height: 85vh;
		border-bottom-left-radius: 22px;
		border-bottom-right-radius: 22px;
	}

	.hero-video video {
		inset: 0;
		width: 100%;
		height: auto;
		display: block;
	}

	.hero-overlay {
		padding: 20px;
	}

	.hero-content {
		max-width: 90%;
		padding: 0;
	}

	.hero-content h1 {
		font-size: clamp(2.5rem, 8vw, 4.5rem);
		line-height: 1.2;
		margin-bottom: 15px;
	}

	.title-break {
		display: block;
	}

	.hero-content p {
		font-size: clamp(1rem, 3vw, 1.35rem);
		line-height: 1.5;
		margin-bottom: 25px;
	}

	.hero-btn {
		width: 100%;
		max-width: clamp(280px, 45vw, 420px);
		padding: clamp(16px, 2.5vw, 20px) 20px;
		font-size: clamp(1rem, 2.2vw, 1.15rem);
	}
}