:root {
	/* Color Scheme: Dark, Technical, Neon */
	--bg-color: #1a1a1a;           /* Dark background */
	--primary-color: #00FFFF;      /* Electric Cyan - main brand */
	--secondary-color: #888888;    /* Gray - secondary text/borders */
	--text-color: #E0E0E0;         /* Light gray - main text */
	--accent-color: #FFB347;       /* Warm Orange - highlights/CTAs */
	--success-color: #00FF88;      /* Green - success states */
	--warning-color: #FFAA00;      /* Yellow - warnings */
	--error-color: #FF6666;        /* Red - errors */
	--font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	
	/* Dynamic positioning for floating buttons */
	--floating-btn-bottom: 20px;
	--floating-btn-bottom-mobile: 80px;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	font-family: var(--font-family);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	text-align: center;
	padding: 20px;
	position: relative; 
}

#video-background {
	opacity: 0.1;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1; 
	overflow: hidden;
	pointer-events: none; 
}

#video-background video {			
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 56.25vw; 
	min-height: 100vh;
	min-width: 177.77vh; 
	transform: translate(-50%, -50%);
	object-fit: cover;
}

/* NUOVO STILE: Overlay colorato sopra il video */
#video-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -0.5; /* Tra il video e il contenuto principale */
	/* background-color: var(--primary-color); */ /* Il colore del tuo brand */
	opacity: 0.2; /* Regola l'intensità del colore sull'onda */
	mix-blend-mode: screen; /* Metodo di fusione per tingere le parti chiare */
}
/* FINE NUOVO STILE */

.container {
	max-width: 650px;
	padding: 40px;
	/* Ho aumentato l'opacità per una migliore leggibilità del testo */
	background: rgba(18, 18, 18, 0.9); /* Sfondo più scuro per il container */
	border: 1px solid var(--secondary-color);
	box-shadow: 0 0 15px rgba(0, 255, 255, 0.1); 
	border-radius: 4px;
	position: relative; 
	z-index: 10; 
}

h1 {
	color: var(--primary-color);
	font-size: 2.8em;
	text-transform: uppercase;
	letter-spacing: 4px;
	margin-bottom: 5px;
}

h2 {
	font-size: 1.1em;
	margin-top: 5px;
	font-weight: 400;
	color: var(--secondary-color);
	border-bottom: 1px solid #333;
	padding-bottom: 15px;
}

.status {
	font-size: 1.3em;
	color: var(--primary-color);
	margin: 30px 0;
	animation: blink 1s infinite;
}

.status span {
	color: var(--text-color);
}

p {
	font-size: 1.1em;
	line-height: 1.6;
	margin-bottom: 30px;
}


.links {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.links a {
	color: var(--primary-color);
	text-decoration: none;
	transition: all 0.3s ease;
}

.links a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
	border-color: var(--text-color) !important;
}

.text-link, .text-link:visited {
	color: #AAAAAA !important; /* Forza il colore del testo */
	text-decoration: none; /* Rimuove la sottolineatura */
	cursor: pointer;
	transition: color 0.3s; /* Aggiunge una transizione fluida */
}
.text-link:hover {
	color: var(--primary-color) !important; /* Fa brillare il link con il colore Electric Cyan */
	text-decoration: underline;
}

.social-link {
	display: inline-flex;
	align-items: center;
	font-weight: bold;
	text-transform: uppercase;
	position: relative;
}

.social-link img {
	height: 30px;
	width: auto;
	margin-right: 10px;
	transition: filter 0.3s ease-in-out;
	filter: grayscale(100%) brightness(200%); 
}

.social-link:hover img {
	filter: grayscale(0%) brightness(100%); 
}

.secondary-link {
	font-size: 0.8em;
	margin-top: 20px;
	display: block;
	color: var(--secondary-color);
	cursor: pointer;
	position: relative;
}

.admin-link {
	font-size: 1.2em;
	margin-top: 30px;
	display: block;
	color: #555;
	text-decoration: none;
	opacity: 0.6;
	transition: all 0.3s;
	cursor: pointer;
	letter-spacing: 2px;
}

.admin-link:hover {
	opacity: 1;
	color: var(--primary-color);
	transform: scale(1.2);
}

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Floating Admin Shortcut */
.floating-admin-shortcut {
	position: fixed;
	right: 20px;
	bottom: var(--floating-btn-bottom);
	width: 60px;
	height: 60px;
	background: rgba(0, 255, 255, 0.1);
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	text-decoration: none;
	z-index: 9999;
	transition: all 0.3s ease;
	box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
	backdrop-filter: blur(10px);
}

.floating-admin-shortcut:hover {
	background: rgba(0, 255, 255, 0.2);
	transform: scale(1.1);
	box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.floating-admin-shortcut svg {
	width: 28px;
	height: 28px;
	transition: transform 0.3s ease;
}

.floating-admin-shortcut:hover svg {
	transform: rotate(180deg);
}

/* Floating Cookie Preferences Button */
.floating-cookie-btn {
	position: fixed;
	left: 20px;
	bottom: var(--floating-btn-bottom);
	width: 60px;
	height: 60px;
	background: rgba(0, 255, 255, 0.1);
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
	text-decoration: none;
	z-index: 9999;
	transition: all 0.3s ease;
	box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	opacity: 0;
	pointer-events: none;
}

.floating-cookie-btn.show {
	opacity: 1;
	pointer-events: auto;
}

.floating-cookie-btn:hover {
	background: rgba(0, 255, 255, 0.2);
	transform: scale(1.1) rotate(10deg);
	box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.floating-cookie-btn svg {
	width: 28px;
	height: 28px;
	transition: transform 0.3s ease;
}

.floating-cookie-btn:hover svg {
	transform: rotate(-10deg);
}

@media (max-width: 768px) {
	.floating-admin-shortcut {
		width: 50px;
		height: 50px;
		right: 15px;
		bottom: var(--floating-btn-bottom-mobile);
	}
	
	.floating-admin-shortcut svg {
		width: 24px;
		height: 24px;
	}
	
	.floating-cookie-btn {
		width: 50px;
		height: 50px;
		left: 15px;
		bottom: var(--floating-btn-bottom-mobile);
	}
	
	.floating-cookie-btn svg {
		width: 24px;
		height: 24px;
	}
}

/* Swiper Pages Styling */
.swiper-pages {
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.swiper-slide {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	/* Account for bottom nav height */
	padding-bottom: 90px;
	box-sizing: border-box;
}

/* Center home slide content vertically */
.swiper-slide[data-page="home"] {
	align-content: center;
}

/* Keep home container centered with original width */
.swiper-slide .container {
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

/* Portfolio container - ensure proper centering */
.swiper-slide .portfolio-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

/* Contact container - ensure proper centering */
.swiper-slide .contact-container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

/* Main Navigation (flexible positioning) */
#main-nav {
	position: fixed;
	left: 0;
	right: 0;
	height: 70px;
	background: rgba(18, 18, 18, 0.95);
	display: flex;
	justify-content: space-around;
	align-items: center;
	z-index: 9998;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

/* Position variants */
#main-nav.nav-bottom {
	bottom: 0;
	border-top: 1px solid var(--secondary-color);
}

#main-nav.nav-top {
	top: 0;
	border-bottom: 1px solid var(--secondary-color);
}

#main-nav .nav-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	color: var(--secondary-color);
	cursor: pointer;
	padding: 10px 20px;
	transition: all 0.3s ease;
	font-family: var(--font-family);
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 1px;
}

#main-nav .nav-btn svg {
	transition: all 0.3s ease;
}

#main-nav .nav-btn:hover {
	color: var(--primary-color);
}

#main-nav .nav-btn:hover svg {
	transform: scale(1.1);
}

#main-nav .nav-btn.active {
	color: var(--primary-color);
}

#main-nav .nav-btn.active svg {
	stroke: var(--primary-color);
	filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

@media (max-width: 768px) {
	#main-nav {
		height: 60px;
	}
	
	#main-nav .nav-btn {
		padding: 8px 15px;
		font-size: 0.7em;
	}
	
	#main-nav .nav-btn svg {
		width: 18px;
		height: 18px;
	}
}
