/* ===== SEZIONE WELCOME ===== */
.welcome-section {
	position: relative;
	min-height: 100vh;
	background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
				url('./images/cliff-rock-sea-beach-sunny-day.webp');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.welcome-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at center,
				transparent 0%,
				rgba(0, 40, 80, 0.3) 100%);
	z-index: 1;
}

.welcome-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: white;
	padding: 2rem;
}

.welcome-title {
	font-size: 4rem;
	font-weight: 700;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
	margin-bottom: 1rem;
	animation: fadeInUp 1s ease-out;
}

.welcome-subtitle {
	font-size: 1.5rem;
	font-weight: 300;
	text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
	margin-bottom: 2rem;
	animation: fadeInUp 1.2s ease-out;
}

.scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	animation: bounce 2s infinite;
	cursor: pointer;
}

.scroll-indicator i {
	font-size: 2rem;
	color: white;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.waves-effect {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 250px;
	background: linear-gradient(to bottom,
				transparent 0%,
				rgba(255, 255, 255, 0.3) 40%,
				rgba(255, 255, 255, 0.7) 70%,
				white 100%);
	z-index: 1;
}

/* ===== BANNER NUVOLE - SISTEMA MODULARE ===== */

.cloud-banner {
	position: absolute;
	width: 100%;
	height: 300px;
	left: 0;
	right: 0;
	bottom: 100px;
	background: transparent;
	overflow: visible;
	pointer-events: none;
	z-index: 2;
}

.clouds-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.cloud {
	position: absolute;
	bottom: 0;
	width: 400px;
	height: 260px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center bottom;
	left: -40%;
	animation: drift-x 30s linear infinite;
	filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
	opacity: 0.95;
}

/* 20 nuvole - scale grandi, stessa altezza */
.cloud-1  { --s: 2.5;  background-image: url('./images/cloud1.png'); animation-delay:   0s;  animation-duration: 70s; }
.cloud-2  { --s: 3.2;  background-image: url('./images/cloud2.png'); animation-delay: -10s;  animation-duration: 85s; }
.cloud-3  { --s: 2.0;  background-image: url('./images/cloud3.png'); animation-delay: -20s;  animation-duration: 100s; }
.cloud-4  { --s: 3.5;  background-image: url('./images/cloud4.png'); animation-delay:  -5s;  animation-duration: 75s; }
.cloud-5  { --s: 2.8;  background-image: url('./images/cloud5.png'); animation-delay: -30s;  animation-duration: 90s; }
.cloud-6  { --s: 3.0;  background-image: url('./images/cloud1.png'); animation-delay: -40s;  animation-duration: 105s; }
.cloud-7  { --s: 2.3;  background-image: url('./images/cloud3.png'); animation-delay: -15s;  animation-duration: 80s; }
.cloud-8  { --s: 3.4;  background-image: url('./images/cloud5.png'); animation-delay: -25s;  animation-duration: 95s; }
.cloud-9  { --s: 2.6;  background-image: url('./images/cloud2.png'); animation-delay: -35s;  animation-duration: 110s; }
.cloud-10 { --s: 3.1;  background-image: url('./images/cloud4.png'); animation-delay: -45s;  animation-duration: 88s; }
.cloud-11 { --s: 2.2;  background-image: url('./images/cloud1.png'); animation-delay: -50s;  animation-duration: 102s; }
.cloud-12 { --s: 3.3;  background-image: url('./images/cloud3.png'); animation-delay: -55s;  animation-duration: 93s; }
.cloud-13 { --s: 2.7;  background-image: url('./images/cloud2.png'); animation-delay: -60s;  animation-duration: 83s; }
.cloud-14 { --s: 3.6;  background-image: url('./images/cloud5.png'); animation-delay: -65s;  animation-duration: 98s; }
.cloud-15 { --s: 2.4;  background-image: url('./images/cloud4.png'); animation-delay: -70s;  animation-duration: 78s; }
.cloud-16 { --s: 3.0;  background-image: url('./images/cloud1.png'); animation-delay: -75s;  animation-duration: 108s; }
.cloud-17 { --s: 2.9;  background-image: url('./images/cloud3.png'); animation-delay: -80s;  animation-duration: 73s; }
.cloud-18 { --s: 3.2;  background-image: url('./images/cloud2.png'); animation-delay: -85s;  animation-duration: 90s; }
.cloud-19 { --s: 2.1;  background-image: url('./images/cloud5.png'); animation-delay: -90s;  animation-duration: 100s; }
.cloud-20 { --s: 3.5;  background-image: url('./images/cloud4.png'); animation-delay: -95s;  animation-duration: 85s; }

/* ===== ANIMAZIONI ===== */

@keyframes drift-x {
	0%   { transform: translateX(0)      scale(var(--s, 1)); }
	100% { transform: translateX(160vw)  scale(var(--s, 1)); }
}

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

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	40% {
		transform: translateX(-50%) translateY(-20px);
	}
	60% {
		transform: translateX(-50%) translateY(-10px);
	}
}

@keyframes wave {
	0%, 100% { opacity: 1; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
	.welcome-title {
		font-size: 2.5rem;
	}

	.welcome-subtitle {
		font-size: 1.2rem;
	}

	.cloud-banner {
		height: 150px;
	}

	.cloud {
		width: 200px;
		height: 130px;
	}
}

@media (max-width: 480px) {
	.welcome-title {
		font-size: 2rem;
	}

	.welcome-subtitle {
		font-size: 1rem;
	}

	.cloud-banner {
		height: 100px;
	}

	.cloud {
		width: 150px;
		height: 100px;
	}
}
