/* Reset e stili base */
html, body {
            margin: 0;
            height: 100%;
        }
/* 2. Trasforma il body in un contenitore Flexbox verticale */
	body {
		display: flex;
		flex-direction: column;
	}

/* 3. Il contenuto principale prende tutto lo spazio disponibile */
	.content {
		flex: 1;
	}
/* 4. Il tuo footer rimarrà automaticamente sul fondo */
	footer {
		background-color: #333;
		color: white;
		padding: 20px;
		text-align: center;
	}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: Arial, sans-serif;
	background-color: #f8fafc;
	color: #333;
	line-height: 1.6;
}

/* --- MENU DI NAVIGAZIONE --- */
.navbar {
	position: sticky;
	top: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 50px;
	z-index: 100;
	background: #80a5e8;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.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;
}

/* --- CAROSELLO A LARGHEZZA PAGINA (Banner) --- */
.carousel-container {
	position: relative;
	width: 100%;
	height: 450px; /* Altezza fissa ottimizzata per la pagina di testo */
	overflow: hidden;
	background-color: #000;
}

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

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

/* Filtro scuro hi-tech */
.slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, rgba(30, 60, 114, 0.8), rgba(0, 0, 0, 0.4));
}

.slide-content {
	position: absolute;
	top: 50%;
	left: 10%;
	transform: translateY(-50%);
	color: white;
	z-index: 2;
	max-width: 600px;
}

.slide-content h2 {
	font-size: 2.5rem;
	margin-bottom: 15px;
	font-weight: bold;
}

.slide-content p {
	font-size: 1.1rem;
	opacity: 0.9;
}

/* Frecce carosello */
.nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: white;
	border: none;
	padding: 12px 18px;
	font-size: 20px;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.3s;
	z-index: 10;
	user-select: none;
}

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

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

/* --- CONTENUTO GENERALE AZIENDALE --- */
.main-content {
	max-width: 1000px;
	margin-top: 60px auto;
	margin-left: 60px auto;
	margin-right: 60px auto;
	padding: 0 20px;
	margin-bottom: auto;
}

.company-intro {
	text-align: center;
	margin-bottom: 50px;
}

.company-intro h1 {
	font-size: 2.5rem;
	color: #1e3c72;
	margin-bottom: 20px;
}

.company-intro p {
	font-size: 1.2rem;
	color: #555;
	max-width: 800px;
	margin: 0 auto;
}

/* Sezione dei 3 pilastri o valori */
.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.value-card {
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	border-top: 4px solid #1e3c72;
}

.value-card h3 {
	color: #1e3c72;
	font-size: 1.3rem;
	margin-bottom: 15px;
}

/* --- SEZIONE SERVIZI --- */
.main-content {
	max-width: 1000px;
	margin: 60px auto;
	padding: 0 20px;
}

.services-intro {
	text-align: center;
	margin-bottom: 50px;
}

.services-intro h1 {
	font-size: 2.5rem;
	color: #1e3c72;
	margin-bottom: 20px;
}

.services-intro p {
	font-size: 1.2rem;
	color: #555;
	max-width: 800px;
	margin: 0 auto;
}

/* Griglia dei Servizi Dettagliati */
.services-list {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 40px;
}

.service-row {
	background: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	border-left: 6px solid #1e3c72;
	transition: transform 0.3s ease;
}

.service-row:hover {
	transform: translateX(5px);
}

.service-row h3 {
	color: #1e3c72;
	font-size: 1.5rem;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.service-row p {
	color: #555;
	font-size: 1.05rem;
	margin-bottom: 15px;
}

/* Lista delle sotto-funzionalità */
.service-features {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	padding-top: 10px;
}

.service-features li {
	font-size: 0.95rem;
	color: #444;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Semplice checkmark per i punti elenco */
.service-features li::before {
	content: "✓";
	color: #2a5298;
font-weight: bold;}

 /* Footer di chiusura */
        footer {
            text-align: center;
            padding: 40px 20px;
            background-color: #1e3c72;
            color: white;
            margin-top: 60px;
            font-size: 0.9rem;
        }

/* --- 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 !important; /* Aggiunto !important per forzare il colore */
    transition: all 0.3s ease;
}

/* --- STILE MOBILE AGGIORNATO --- */
@media (max-width: 1400px) {
    .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; }
}

/* Ripristina lo sfondo trasparente sul bottone hamburger ignorando i CSS globali */
button.hamburger {
    background: transparent !important;
    padding: 0 !important;
    width: 30px !important;
    height: 21px !important;
}