/* ===== ANIMATIONS ===== */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fadeIn {
    animation: fadeIn 0.8s ease-out;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-up {
    animation: scaleUp 0.6s ease-out;
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

.bounce {
    animation: bounce 1s ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Rotate animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate 2s linear infinite;
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Shake animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.6);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* ===== SUPER ANIMAZIONI ICONE EVENTI BAMBINI - DISABILITATE ===== */

/* ===== EFFETTI DINAMICI HERO SECTION ===== */

/* Gradiente dinamico nell'hero section */
.hero-section {
    background: linear-gradient(-45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

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

/* Sfondo con pattern che si muove dolcemente */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 30px 30px;
    animation: patternMove 20s linear infinite;
    z-index: 1;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Effetti di luce che si spostano sulla pagina */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: lightMove 25s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes lightMove {
    0%, 100% {
        transform: translate(-20%, -20%) rotate(0deg);
    }
    25% {
        transform: translate(20%, -10%) rotate(90deg);
    }
    50% {
        transform: translate(10%, 20%) rotate(180deg);
    }
    75% {
        transform: translate(-10%, 10%) rotate(270deg);
    }
}

/* Assicura che il contenuto dell'hero sia sopra gli effetti */
.hero-section .container {
    position: relative;
    z-index: 10;
}

/* Effetti per le altre pagine */
.page-header {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 60px 60px, 90px 90px;
    animation: patternMove 18s linear infinite;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    animation: lightMove 20s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 10;
}

.gallery-header {
    background: linear-gradient(-45deg, #a8edea, #fed6e3, #d299c2, #fef9d7, #efd5ff, #b7f8db);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 45px 45px, 75px 75px;
    animation: patternMove 22s linear infinite;
    z-index: 1;
}

.gallery-header::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: 
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 65% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
    animation: lightMove 23s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.gallery-header .container {
    position: relative;
    z-index: 10;
}

/* ===== EFFETTO ONDE PULSANTE PRENOTA ORA ===== */

/* Pulsante Prenota Ora con effetto onde */
.btn-prenota {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-prenota::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: waveLeft 3s ease-in-out infinite;
    z-index: -1;
}

.btn-prenota::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: waveRight 3s ease-in-out infinite;
    animation-delay: 1.5s;
    z-index: -1;
}

@keyframes waveLeft {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 0%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes waveRight {
    0% {
        right: -100%;
        opacity: 0;
    }
    50% {
        right: 0%;
        opacity: 1;
    }
    100% {
        right: 100%;
        opacity: 0;
    }
}

/* Effetto hover potenziato per il pulsante */
.btn-prenota:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-prenota:hover::before {
    animation-duration: 1.5s;
}

.btn-prenota:hover::after {
    animation-duration: 1.5s;
    animation-delay: 0.75s;
}

/* Riduzione movimento per utenti con preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .page-header,
    .gallery-header {
        animation: none;
        background: linear-gradient(-45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    }
    
    .hero-section::before,
    .hero-section::after,
    .page-header::before,
    .page-header::after,
    .gallery-header::before,
    .gallery-header::after {
        animation: none;
        transform: none;
    }
    
    .btn-prenota::before,
    .btn-prenota::after {
        animation: none;
        opacity: 0;
    }
    
    .btn-prenota:hover {
        transform: none;
    }
}

/* Animazione per INDEX - Fluttuazione Circolare - DISABILITATA */
.party-icons-index {
    display: none !important;
}

.party-icon-index {
    display: none !important;
}

.party-icon-index:hover {
    display: none !important;
}

@keyframes floatCircular {
    0% {
        transform: translateX(-100px) translateY(0px) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
        transform: translateX(20vw) translateY(-30px) scale(1.2) rotate(45deg);
    }
    30% {
        transform: translateX(40vw) translateY(20px) scale(0.8) rotate(90deg);
        opacity: 0.9;
    }
    45% {
        transform: translateX(60vw) translateY(-40px) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    60% {
        transform: translateX(80vw) translateY(30px) scale(0.7) rotate(270deg);
        opacity: 0.8;
    }
    75% {
        transform: translateX(90vw) translateY(-20px) scale(1.1) rotate(315deg);
        opacity: 0.6;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0px) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

/* Animazione da destra a sinistra */
@keyframes floatRightToLeft {
    0% {
        transform: translateX(calc(100vw + 100px)) translateY(0px) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
        transform: translateX(80vw) translateY(-30px) scale(1.2) rotate(-45deg);
    }
    30% {
        transform: translateX(60vw) translateY(20px) scale(0.8) rotate(-90deg);
        opacity: 0.9;
    }
    45% {
        transform: translateX(40vw) translateY(-40px) scale(1.5) rotate(-180deg);
        opacity: 1;
    }
    60% {
        transform: translateX(20vw) translateY(30px) scale(0.7) rotate(-270deg);
        opacity: 0.8;
    }
    75% {
        transform: translateX(10vw) translateY(-20px) scale(1.1) rotate(-315deg);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-100px) translateY(0px) scale(0.3) rotate(-360deg);
        opacity: 0;
    }
}

/* Animazione dall'alto verso il basso */
@keyframes floatTopToBottom {
    0% {
        transform: translateX(0px) translateY(-100px) scale(0.4) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: translateX(30px) translateY(20vh) scale(1.3) rotate(90deg);
        opacity: 0.9;
    }
    40% {
        transform: translateX(-20px) translateY(40vh) scale(0.7) rotate(180deg);
        opacity: 1;
    }
    60% {
        transform: translateX(40px) translateY(60vh) scale(1.4) rotate(270deg);
        opacity: 0.8;
    }
    80% {
        transform: translateX(-10px) translateY(80vh) scale(0.9) rotate(315deg);
        opacity: 0.5;
    }
    100% {
        transform: translateX(0px) translateY(calc(100vh + 100px)) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

/* Animazione dal basso verso l'alto */
@keyframes floatBottomToTop {
    0% {
        transform: translateX(0px) translateY(calc(100vh + 100px)) scale(0.4) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: translateX(-30px) translateY(80vh) scale(1.2) rotate(-90deg);
        opacity: 0.9;
    }
    40% {
        transform: translateX(25px) translateY(60vh) scale(0.8) rotate(-180deg);
        opacity: 1;
    }
    60% {
        transform: translateX(-35px) translateY(40vh) scale(1.5) rotate(-270deg);
        opacity: 0.8;
    }
    80% {
        transform: translateX(15px) translateY(20vh) scale(1.0) rotate(-315deg);
        opacity: 0.6;
    }
    100% {
        transform: translateX(0px) translateY(-100px) scale(0.2) rotate(-360deg);
        opacity: 0;
    }
}

/* Icone con movimento da sinistra a destra */
.party-icon-index:nth-child(1) { color: #FF6B6B; animation-delay: 0s; top: 20%; left: 0%; animation-name: floatCircular; }
.party-icon-index:nth-child(5) { color: #FF8E53; animation-delay: 6s; top: 60%; left: 0%; animation-name: floatCircular; }

/* Icone con movimento da destra a sinistra */
.party-icon-index:nth-child(2) { color: #4ECDC4; animation-delay: 1.5s; top: 30%; right: 0%; animation-name: floatRightToLeft; }
.party-icon-index:nth-child(6) { color: #95E1D3; animation-delay: 7.5s; top: 70%; right: 0%; animation-name: floatRightToLeft; }

/* Icone con movimento dall'alto verso il basso */
.party-icon-index:nth-child(3) { color: #FFD166; animation-delay: 3s; top: 0%; left: 40%; animation-name: floatTopToBottom; }
.party-icon-index:nth-child(7) { color: #F38BA8; animation-delay: 9s; top: 0%; left: 25%; animation-name: floatTopToBottom; }

/* Icone con movimento dal basso verso l'alto */
.party-icon-index:nth-child(4) { color: #6A4C93; animation-delay: 4.5s; bottom: 0%; left: 70%; animation-name: floatBottomToTop; }
.party-icon-index:nth-child(8) { color: #A8DADC; animation-delay: 10.5s; bottom: 0%; left: 75%; animation-name: floatBottomToTop; }

/* Animazione per GALLERIA - Cascata dall'Alto - DISABILITATA */
.party-icons-gallery {
    display: none !important;
}

.party-icon-gallery {
    display: none !important;
}

@keyframes cascadeDown {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

.party-icon-gallery:nth-child(1) { color: var(--primary); animation-delay: 0s; left: 10%; }
.party-icon-gallery:nth-child(2) { color: var(--secondary); animation-delay: 1.5s; left: 20%; }
.party-icon-gallery:nth-child(3) { color: var(--accent); animation-delay: 3s; left: 30%; }
.party-icon-gallery:nth-child(4) { color: var(--primary); animation-delay: 4.5s; left: 40%; }
.party-icon-gallery:nth-child(5) { color: var(--secondary); animation-delay: 6s; left: 50%; }
.party-icon-gallery:nth-child(6) { color: var(--accent); animation-delay: 7.5s; left: 60%; }
.party-icon-gallery:nth-child(7) { color: var(--primary); animation-delay: 9s; left: 70%; }
.party-icon-gallery:nth-child(8) { color: var(--secondary); animation-delay: 10.5s; left: 80%; }

/* Animazione per SERVIZI - Spirale Rotante - DISABILITATA */
.party-icons-servizi {
    display: none !important;
}

.party-icon-servizi {
    display: none !important;
}

@keyframes spiralRotate {
    0% {
        transform: translateX(-100px) translateY(50vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: translateX(25vw) translateY(20vh) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    50% {
        transform: translateX(50vw) translateY(80vh) scale(0.8) rotate(360deg);
        opacity: 0.9;
    }
    75% {
        transform: translateX(75vw) translateY(10vh) scale(1.2) rotate(540deg);
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(50vh) scale(0) rotate(720deg);
        opacity: 0;
    }
}

.party-icon-servizi:nth-child(1) { color: #FF6B6B !important; animation-delay: 0s; top: 10%; left: -10%; }
.party-icon-servizi:nth-child(2) { color: #4ECDC4 !important; animation-delay: 2.5s; top: 20%; left: -10%; }
.party-icon-servizi:nth-child(3) { color: #45B7D1 !important; animation-delay: 5s; top: 30%; left: -10%; }
.party-icon-servizi:nth-child(4) { color: #96CEB4 !important; animation-delay: 7.5s; top: 40%; left: -10%; }
.party-icon-servizi:nth-child(5) { color: #FFEAA7 !important; animation-delay: 10s; top: 50%; left: -10%; }
.party-icon-servizi:nth-child(6) { color: #DDA0DD !important; animation-delay: 12.5s; top: 60%; left: -10%; }
.party-icon-servizi:nth-child(7) { color: #98D8C8 !important; animation-delay: 15s; top: 70%; left: -10%; }
.party-icon-servizi:nth-child(8) { color: #F7DC6F !important; animation-delay: 17.5s; top: 80%; left: -10%; }

/* Animazione per CHI SIAMO - Danza Ondulata - DISABILITATA */
.party-icons-chi-siamo {
    display: none !important;
}

.party-icon-chi-siamo {
    display: none !important;
}

@keyframes waveFloat {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: translateX(25vw) translateY(-50px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(50vw) translateY(50px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateX(75vw) translateY(-30px) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0px) rotate(360deg);
        opacity: 0;
    }
}

.party-icon-chi-siamo:nth-child(1) { color: var(--primary); animation-delay: 0s; top: 15%; }
.party-icon-chi-siamo:nth-child(2) { color: var(--secondary); animation-delay: 2.25s; top: 25%; }
.party-icon-chi-siamo:nth-child(3) { color: var(--accent); animation-delay: 4.5s; top: 35%; }
.party-icon-chi-siamo:nth-child(4) { color: var(--primary); animation-delay: 6.75s; top: 45%; }
.party-icon-chi-siamo:nth-child(5) { color: var(--secondary); animation-delay: 9s; top: 55%; }
.party-icon-chi-siamo:nth-child(6) { color: var(--accent); animation-delay: 11.25s; top: 65%; }
.party-icon-chi-siamo:nth-child(7) { color: var(--primary); animation-delay: 13.5s; top: 75%; }
.party-icon-chi-siamo:nth-child(8) { color: var(--secondary); animation-delay: 15.75s; top: 85%; }

/* Aggiustamento per mobile - evita sovrapposizione con navbar */
@media (max-width: 768px) {
    .page-header h1,
    .page-header .display-4,
    .page-header .lead,
    .page-header p {
        margin-top: 40px;
    }
    
    .page-header .container {
        padding-top: 20px;
    }
}

/* Responsive per animazioni */
@media (max-width: 768px) {
    .party-icon-index,
    .party-icon-gallery,
    .party-icon-servizi,
    .party-icon-chi-siamo {
        font-size: 1.5rem;
    }
    
    @keyframes floatCircular {
        0% {
            transform: rotate(0deg) translateX(150px) rotate(0deg);
            opacity: 0;
        }
        10% {
            opacity: 0.7;
        }
        90% {
            opacity: 0.7;
        }
        100% {
            transform: rotate(360deg) translateX(150px) rotate(-360deg);
            opacity: 0;
        }
    }
    
    @keyframes spiralRotate {
        0% {
            transform: translateX(-50px) translateY(50vh) scale(0) rotate(0deg);
            opacity: 0;
        }
        25% {
            transform: translateX(20vw) translateY(25vh) scale(1.2) rotate(180deg);
            opacity: 1;
        }
        50% {
            transform: translateX(40vw) translateY(75vh) scale(0.6) rotate(360deg);
            opacity: 0.9;
        }
        75% {
            transform: translateX(60vw) translateY(15vh) scale(1) rotate(540deg);
            opacity: 1;
        }
        100% {
            transform: translateX(calc(100vw + 50px)) translateY(50vh) scale(0) rotate(720deg);
            opacity: 0;
        }
    }
    
    @keyframes waveFloat {
        0% {
            transform: translateX(-50px) translateY(0px) rotate(0deg);
            opacity: 0;
        }
        25% {
            transform: translateX(20vw) translateY(-30px) rotate(90deg);
            opacity: 0.5;
        }
        50% {
            transform: translateX(40vw) translateY(30px) rotate(180deg);
            opacity: 0.7;
        }
        75% {
            transform: translateX(60vw) translateY(-20px) rotate(270deg);
            opacity: 0.5;
        }
        100% {
            transform: translateX(calc(100vw + 50px)) translateY(0px) rotate(360deg);
            opacity: 0;
        }
    }
}

/* Animazioni per header delle pagine */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ELEMENTI FLUTTUANTI ANIMATI - DISABILITATI ===== */

/* Palloncini Fluttuanti - DISABILITATI */
.floating-balloons {
    display: none !important;
}

.floating-balloon {
    display: none !important;
}

/* Stelle Scintillanti - DISABILITATE */
.twinkling-stars {
    display: none !important;
}

.twinkling-star {
    display: none !important;
}

/* Caramelle Rimbalzanti - DISABILITATE */
.bouncing-candies {
    display: none !important;
}

.bouncing-candy {
    display: none !important;
}

/* Bastoncini di Zucchero Rotanti - DISABILITATI */
.rotating-candycanes {
    display: none !important;
}

.rotating-candycane {
    display: none !important;
}