/* Importazione di un'icona set per i servizi (Bootstrap Icons) */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* -------------------------------------- */
/* 1. STILI GLOBALI E VARIABILI */
/* -------------------------------------- */
:root {
    --echelantis-primary: #007bff; /* Blu primario */
    --echelantis-secondary: #ffc107; /* Giallo (Warning) */
    --echelantis-dark: #212529; /* Sfondo scuro */
}

body {
    padding-top: 56px; /* Spazio per la navbar fissa */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* -------------------------------------- */
/* 2. SLIDER HERO (SWIPER 3D) */
/* -------------------------------------- */

#hero-slider {
    height: 100vh; /* Full viewport height */
    padding: 0;
    margin: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.text-muted {
	color: #adb5bd !important;
}

.swiper-slide {
    /* Stili base per la slide */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Assicura che il testo dell'overlay sia leggibile */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Sfondi Immagine (Corretto per risalire di una cartella: ../img/) */
.slide-bg-1 {
    /* Immagine sul tema: AI, PetaFLOPS, Potenza */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://echelantis.com/img/lomazzi01.jpg'); 
}
.slide-bg-2 {
    /* Immagine sul tema: Server, Cluster, Rete, Microsecondi */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://echelantis.com/img/lomazzi02.jpg');
}
.slide-bg-3 {
    /* Immagine sul tema: Soluzioni, Casid'Uso, Sviluppo */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://echelantis.com/img/lomazzi03.jpg');
}

/* Overlay per il Contenuto HTML */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Leggera trasparenza */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10; 
}

.slide-overlay h1 {
    font-size: 5rem;
    line-height: 1;
}

/* -------------------------------------- */
/* 3. ANIMAZIONI INIZIALI (Se mantenute in script.js) */
/* -------------------------------------- */

.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------- */
/* 4. SEZIONE SERVIZI */
/* -------------------------------------- */

/* Stili per le Card Servizi */
#servizi .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--echelantis-dark);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#servizi .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* -------------------------------------- */
/* 5. RESPONSIVE DESIGN */
/* -------------------------------------- */

@media (max-width: 768px) {
    /* Responsive per Slider */
    #hero-slider {
        height: 70vh;
    }
    .slide-overlay h1 {
        font-size: 3rem;
    }
}