/* ============================================
   HERO PARALLAX VACANZE STUDIO 2026
   ============================================ */

/* Sezione Hero principale con effetto parallax */
.parallax-hero.hero-vacanze-studio {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* Fallback per dispositivi che non supportano parallax */
    background-image: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

/* Overlay di sfondo principale */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.8) 0%,
        rgba(0, 86, 179, 0.9) 50%,
        rgba(13, 71, 161, 0.95) 100%
    );
    z-index: 1;
}

/* Overlay radiale per effetto focus centrale */
.hero-radial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Contenitore principale del contenuto */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Contenitore interno con animazioni */
.hero-inner {
    animation: fadeInUp 1s ease-out;
}

/* Animazioni di entrata per elementi individuali */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-badge.animated-in,
.hero-title.animated-in,
.hero-subtitle.animated-in,
.hero-cta.animated-in {
    opacity: 1;
    transform: translateY(0);
}

/* Ritardi per effetto cascata */
.hero-badge {
    transition-delay: 0.2s;
}

.hero-title {
    transition-delay: 0.4s;
}

.hero-subtitle {
    transition-delay: 0.6s;
}

.hero-cta {
    transition-delay: 0.8s;
}

/* Badge Prenotazioni Aperte */
.hero-badge {
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.hero-badge span {
    display: inline-block;
    background: linear-gradient(45deg, #ff4757, #ff3838);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Titolo principale */
.hero-title {
    margin-bottom: 30px;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

.hero-title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-title-accent {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Sottotitolo */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

/* Contenitore CTA */
.hero-cta {
    margin-top: 40px;
}

/* Pulsante CTA principale */
.hero-cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
    color: white;
    text-decoration: none;
}

.hero-cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-cta-button:hover:before {
    left: 100%;
}

/* ============================================
   ANIMAZIONI
   ============================================ */

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet e schermi medi */
@media (max-width: 992px) {
    .parallax-hero.hero-vacanze-studio {
        min-height: 80vh;
        background-attachment: scroll; /* Disabilita parallax su tablet */
    }

    .hero-title-main {
        font-size: 2.8rem;
    }

    .hero-title-accent {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .parallax-hero.hero-vacanze-studio {
        min-height: 70vh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title-main {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-title-accent {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .hero-badge span {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Smartphone piccoli */
@media (max-width: 480px) {
    .hero-title-main {
        font-size: 1.8rem;
    }

    .hero-title-accent {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ============================================
   COMPATIBILITÀ BROWSER
   ============================================ */

/* Fallback per browser che non supportano backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .hero-badge span,
    .hero-cta-button {
        background: rgba(0, 0, 0, 0.85) !important;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Miglioramenti per retina display */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title-main,
    .hero-title-accent {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibilità - Riduce le animazioni per utenti con preferenza */
@media (prefers-reduced-motion: reduce) {
    .hero-inner {
        animation: none;
    }

    .hero-badge {
        animation: none;
    }

    .hero-cta-button {
        transition: none;
    }

    .parallax-hero.hero-vacanze-studio {
        background-attachment: scroll;
    }
}
