/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: #000;
}

/* Container principale */
.presentation-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Wrapper delle slide */
.slides-wrapper {
    display: flex;
    width: 400%; /* 4 slide = 400% */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Singola slide */
.slide {
    width: 25%; /* 100% / 4 slide */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

/* Colori di sfondo per ogni slide */
.slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Contenuto slide */
.slide-content {
    max-width: 90%;
    padding: 2rem;
    animation: slideIn 0.8s ease-out;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Numero slide rimosso */

/* Animazione contenuto */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigazione */
.navigation {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

/* Pallini di navigazione - altezza aumentata per le label */
.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px; /* Spazio per la label */
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Pallino attivo */
.nav-dot.active {
    width: 20px;
    height: 20px;
    background: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    transform: scale(1.2);
}

/* Label del pallino - solo per quello attivo */
.nav-label {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ff88;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    visibility: hidden;
}

.nav-dot.active .nav-label {
    opacity: 1;
    visibility: visible;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Assicura che le label rimangano centrate senza uscire */
.navigation {
    max-width: 90vw;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .navigation {
        bottom: 1.5rem;
        gap: 0.8rem;
        max-width: 95vw;
        padding: 0 0.5rem;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
        margin-bottom: 25px;
    }
    
    .nav-dot.active {
        width: 16px;
        height: 16px;
    }
    
    .nav-label {
        font-size: 0.7rem;
        max-width: 80px;
        top: 20px;
    }
    
    .nav-dot.active .nav-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .navigation {
        bottom: 1rem;
        gap: 0.6rem;
        max-width: 95vw;
        padding: 0 0.5rem;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
        margin-bottom: 20px;
    }
    
    .nav-dot.active {
        width: 14px;
        height: 14px;
    }
    
    .nav-label {
        font-size: 0.6rem;
        max-width: 70px;
        top: 15px;
    }
    
    .nav-dot.active .nav-label {
        font-size: 0.7rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .slide-content p {
        font-size: 1.3rem;
    }
    
    .nav-dot {
        margin-bottom: 28px;
    }
    
    .nav-label {
        top: 22px;
        max-width: 70px;
    }
}

/* Desktop Large */
@media (min-width: 1440px) {
    .slide-content h1 {
        font-size: 4rem;
    }
    
    .slide-content p {
        font-size: 1.8rem;
    }
    
    .nav-dot {
        width: 14px;
        height: 14px;
        margin-bottom: 35px;
    }
    
    .nav-dot.active {
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 0.9rem;
        top: 30px;
        max-width: 120px;
    }
    
    .nav-dot.active .nav-label {
        font-size: 1rem;
        font-weight: 700;
    }
}