/* Reset stili base */
	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
	
	html, body {
		width: 100%;
		height: 100%;
		overflow: hidden;
		font-family: Arial, sans-serif;
	}
	
/* --- STILE DEL MENU DI NAVIGAZIONE --- */
	.navbar {
		position: sticky;
		top: 0;
		left: 0;
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20px 50px;
		z-index: 100; /* Sopra al carosello e alle frecce */
		background: rgba(0, 0, 0, 0.15);
		backdrop-filter: blur(5px); /* Effetto vetro sfocato */
	}

	.brand-logo {
		color: white;
		font-size: 1.5rem;
		font-weight: bold;
		text-decoration: none;
		letter-spacing: 1px;
	}

	.nav-menu {
		display: flex;
		list-style: none;
		gap: 30px;
	}

	.nav-item a {
		color: white;
		text-decoration: none;
		font-size: 1rem;
		font-weight: 500;
		transition: opacity 0.3s;
	}

	.nav-item a:hover {
		opacity: 0.7;
	}



/* --- STILE DEL CAROSELLO HOME--- */
	.carousel-container {
		position: relative;
		width: 100%;
		height: 100vh;
	}

	.carousel-track {
		display: flex;
		width: 300%;
		height: 100%;
		transition: transform 0.5s ease-in-out;
	}

	.slide {
		width: 100vw;
		height: 100vh;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		position: relative;
	}

	.slide::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.3);
	}

	.slide-content {
		position: absolute;
		bottom: 15%;
		left: 10%;
		color: white;
		z-index: 2;
		text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
	}

	.slide-content h1 {
		font-size: 3rem;
		margin-bottom: 10px;
	}

/* Frecce spostate leggermente verso il basso per non sovrapporsi al menu */
	.nav-btn {
		position: absolute;
		top: 55%;
		transform: translateY(-55%);
		background: rgba(255, 255, 255, 0.2);
		color: white;
		border: none;
		padding: 15px 20px;
		font-size: 24px;
		cursor: pointer;
		border-radius: 50%;
		transition: background 0.3s;
		z-index: 10;
		user-select: none;
	}

	.nav-btn:hover {
		background: rgba(255, 255, 255, 0.5);
	}

	.prev-btn { left: 20px; }
	.next-btn { right: 20px; }

	.indicators {
		position: absolute;
		bottom: 30px;
		left: 50%;
		transform: translateX(-50%);
		display: flex;
		gap: 15px;
		z-index: 10;
	}

	.dot {
		width: 12px;
		height: 12px;
		background: rgba(255, 255, 255, 0.4);
		border-radius: 50%;
		cursor: pointer;
		transition: background 0.3s;
	}

	.dot.active {
		background: white;
		transform: scale(1.2);
	}

		
		/* --- STILE DEL PULSANTE HAMBURGER (DESKTOP: NASCOSTO) --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* --- STILE MOBILE AGGIORNATO --- */
@media (max-width: 768px) {
    .navbar { 
        padding: 15px 20px; 
        justify-content: space-between; /* Mantiene logo a sinistra e hamburger a destra */
        flex-direction: row; /* Sovrascrive il vecchio flex-direction: column */
        gap: 0;
    }

    .hamburger {
        display: flex; /* Mostra l'hamburger su smartphone */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Nasconde il menu fuori dallo schermo a destra */
        width: 70%; /* Larghezza della tendina */
        height: 100vh;
        background: rgba(0, 0, 0, 0.95); /* Sfondo scuro coprente */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 100;
        padding-top: 50px;
    }

    /* Classe attivata da JavaScript per far comparire il menu */
    .nav-menu.active {
        right: 0; 
    }

    .nav-item a {
        font-size: 1.5rem; /* Testo più grande su mobile per facilitare il clic */
    }

    /* TRASFORMAZIONE DELL'HAMBURGER IN UNA "X" QUANDO ATTIVO */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mantiene le tue impostazioni correnti per il carosello mobile */
    .carousel-container { height: 350px; }
    .slide-content h2 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
	.services-intro h1 { font-size: 2rem; }
	.service-row { padding: 25px; }
}