/* ========================================
   SLIDER COMPLETE CSS - File CSS Unico
   Da salvare come: assets/css/slider-complete.css
   ======================================== */

/* ==== STILI BASE SLIDER ==== */
.slider-content {
    background: rgba(0,0,0,0.75);
    padding: 25px 30px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ==== LAYOUT POSIZIONI ==== */
.layout-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.layout-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align: left;
    max-width: 400px;
}

.layout-top-center {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 500px;
}

.layout-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
    max-width: 400px;
}

.layout-left-center {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    text-align: left;
    max-width: 450px;
}

.layout-right-center {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    text-align: right;
    max-width: 450px;
}

.layout-bottom-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-align: left;
    max-width: 400px;
}

.layout-bottom-center {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 500px;
}

.layout-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: right;
    max-width: 400px;
}

/* ==== STILI TESTO HERO STANDARD ==== */
.hero-standard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideInUp 0.8s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #f8f9fa;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.4s forwards;
    margin-bottom: 15px;
}

/* ==== STILI TESTO REVERSE ==== */
.reverse-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.reverse-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    transition: all 0.4s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.reverse-title:hover {
    color: #ffffff;
    -webkit-text-stroke: 2px transparent;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.reverse-badge {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    color: #212529;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin: 3px;
    font-size: 0.9rem;
    animation: slideInFromBottom 0.8s ease-out;
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* ==== STILI COMPATTI PER LAYOUT LATERALI ==== */
.compact-title {
    font-size: 2.2rem !important;
    margin-bottom: 10px !important;
}

.compact-subtitle {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
}

.compact-badge {
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    margin: 2px !important;
}

/* ==== EFFETTO GRADIENTE ANIMATO ==== */
.gradient-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* ==== EFFETTO NEON ==== */
.neon-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 5px #00ff88,
        0 0 10px #00ff88,
        0 0 15px #00ff88,
        0 0 20px #00ff88;
    animation: neonFlicker 2s infinite alternate;
    margin-bottom: 20px;
}

.neon-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    border-left: 3px solid #00ff88;
    padding-left: 15px;
    animation: typing 2s steps(40) 1s both;
    white-space: nowrap;
    overflow: hidden;
    max-width: fit-content;
}

/* ==== EFFETTO GLITCH ==== */
.glitch-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glitch 2s infinite;
    margin-bottom: 20px;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch-title::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0040;
    z-index: -1;
}

.glitch-title::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    z-index: -2;
}

/* ==== ICONE ANIMATE ==== */
.icon-bounce {
    animation: bounceIcon 2s infinite;
    margin-right: 8px;
}

.icon-pulse {
    animation: pulseIcon 1.5s infinite;
    margin-right: 8px;
}

.icon-rotate {
    animation: rotateIcon 3s linear infinite;
    margin-right: 8px;
}

/* ==== ANIMAZIONI ==== */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromBottom {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIcon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes neonFlicker {
    0%, 100% { 
        text-shadow: 
            0 0 5px #00ff88,
            0 0 10px #00ff88,
            0 0 15px #00ff88,
            0 0 20px #00ff88;
    }
    50% { 
        text-shadow: 
            0 0 2px #00ff88,
            0 0 5px #00ff88,
            0 0 8px #00ff88,
            0 0 12px #00ff88;
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 768px) {
    /* Mantieni i layout laterali visibili ma ridimensionati */
    .layout-top-left, .layout-top-right {
        top: 10px !important;
        max-width: 280px !important;
    }
    
    .layout-top-left {
        left: 10px !important;
    }
    
    .layout-top-right {
        right: 10px !important;
    }
    
    .layout-left-center, .layout-right-center {
        top: 40% !important;
        max-width: 250px !important;
    }
    
    .layout-left-center {
        left: 10px !important;
    }
    
    .layout-right-center {
        right: 10px !important;
    }
    
    .layout-bottom-left, .layout-bottom-right {
        bottom: 10px !important;
        max-width: 280px !important;
    }
    
    .layout-bottom-left {
        left: 10px !important;
    }
    
    .layout-bottom-right {
        right: 10px !important;
    }
    
    .layout-top-center, .layout-bottom-center {
        max-width: 90% !important;
    }
    
    .layout-center {
        max-width: 95% !important;
    }
    
    /* Ridimensiona font per mobile */
    .hero-title, .neon-title, .reverse-title, .glitch-title, .gradient-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle, .neon-subtitle {
        font-size: 1rem !important;
    }
    
    .slider-content {
        padding: 20px !important;
    }
    
    .compact-title {
        font-size: 1.8rem !important;
    }
    
    .compact-subtitle {
        font-size: 0.9rem !important;
    }
    
    .compact-badge {
        padding: 3px 8px !important;
        font-size: 0.7rem !important;
    }
    
    .reverse-badge {
        font-size: 0.8rem !important;
        padding: 4px 10px !important;
    }
}

@media (max-width: 480px) {
    /* Per schermi molto piccoli, riduci ulteriormente */
    .layout-top-left, .layout-top-right,
    .layout-left-center, .layout-right-center,
    .layout-bottom-left, .layout-bottom-right {
        max-width: 200px !important;
    }
    
    .hero-title, .neon-title, .reverse-title, .glitch-title, .gradient-title {
        font-size: 1.6rem !important;
        letter-spacing: 1px !important;
    }
    
    .compact-title {
        font-size: 1.4rem !important;
    }
    
    .reverse-badge, .compact-badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
    }
    
    .slider-content {
        padding: 15px !important;
    }
}