/* Reset CSS base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Container principale del carosello */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    /* Altezza piena della viewport */
    overflow: hidden;
}

/* Container per tutte le slide */
.carousel-container {
    position: relative;
    width: 500%;
    /* 5 slide × 100% = 500% */
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Singola slide del carosello */
.carousel-slide {
    position: relative;
    width: 20%;
    /* 100% ÷ 5 slide = 20% per slide */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay scuro sopra l'immagine di sfondo per migliorare la leggibilità */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 158, 124, 0.2) 0%, rgba(222, 110, 71, 0.3) 100%);
    z-index: 1;
}

/* Nome del file in sovraimpressione */
.filename-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    color: #df6e47;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(223, 110, 71, 0.3);
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 10px rgba(223, 110, 71, 0.2);
}

/* Contenuto testuale della slide */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

/* Titolo principale di ogni slide */
.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Sottotitolo/descrizione della slide */
.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* Bottone call-to-action */
.slide-content .cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, #df6e47, #ea9e7c);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(223, 110, 71, 0.4);
}

.slide-content .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(223, 110, 71, 0.6);
}

/* Controlli di navigazione (frecce sinistra/destra) */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    background: transparent;
    border: none;
    color: #df6e47;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover {
    color: #ea9e7c;
    transform: scale(1.2);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Posizionamento freccia precedente */
.prev {
    left: 30px;
}

/* Posizionamento freccia successiva */
.next {
    right: 30px;
}

/* Indicatori delle slide (pallini) */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

/* Singolo indicatore */
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Indicatore attivo */
.indicator.active {
    background: linear-gradient(45deg, #df6e47, #ea9e7c);
    transform: scale(1.2);
    border-color: rgba(223, 110, 71, 0.3);
    box-shadow: 0 2px 8px rgba(223, 110, 71, 0.4);
}

/* Animazione per l'entrata del contenuto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design per tablet */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }

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

    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 25px;
    }

    .prev {
        left: 20px;
    }

    .next {
        right: 20px;
    }

    .filename-overlay {
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .carousel-indicators {
        bottom: 25px;
    }
}

/* Responsive design per mobile */
@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .slide-content .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }

    .filename-overlay {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .carousel-indicators {
        bottom: 20px;
    }
}