/* ==================================================================== */
/* CSA-RAL Animation Styles - Mobile Optimized Version                 */
/* ==================================================================== */

/* ===================== */
/* CSS VARIABLES         */
/* ===================== */
:root {
    --csa-coral: #ff6b6b;
    --csa-sand-yellow: #f4d35e;
    --csa-electric-blue: #4ecdc4;
    --csa-mint-green: #3eb489;
}

/* ===================== */
/* DISCLAIMER SECTION    */
/* ===================== */
.disclaimer-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* ===================== */
/* ANIMATION CONTAINER   */
/* ===================== */
.animation {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===================== */
/* SLIDING DIAGONALS     */
/* ===================== */
.sliding-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: slide 3s ease-in-out infinite alternate;
    background: linear-gradient(-60deg, var(--csa-coral) 50%, var(--csa-electric-blue) 50%);
    opacity: 0.4;
    z-index: 1;
}

.sliding-bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
    background: linear-gradient(-60deg, var(--csa-sand-yellow) 50%, var(--csa-coral) 50%);
    opacity: 0.35;
}

.sliding-bg3 {
    animation-duration: 5s;
    background: linear-gradient(-60deg, var(--csa-electric-blue) 50%, var(--csa-sand-yellow) 50%);
    opacity: 0.3;
}

.sliding-bg4 {
    animation-direction: alternate-reverse;
    animation-duration: 6s;
    background: linear-gradient(-60deg, #1e90ff 50%, var(--csa-coral) 50%);
    opacity: 0.25;
}

@keyframes slide {
    0% { transform: translateX(-25%); }
    100% { transform: translateX(25%); }
}

/* ===================== */
/* OVERLAY               */
/* ===================== */
.animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 30, 0.5);
    z-index: 2;
}

/* ===================== */
/* CONTENT WRAPPER       */
/* ===================== */
.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    padding-top: 70px;
    padding-bottom: 2rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===================== */
/* LOGO CONTAINER        */
/* ===================== */
.logo-3d-container {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-perspective {
    display: flex;
    justify-content: center;
}

.logo-rotate {
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-main {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.logo-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, transparent 50%);
    animation: glowRotate 6s linear infinite;
}

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

.logo-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.logo-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 50% 50% 0 0;
}

.logo-shadow {
    display: none;
}

.logo-text-3d {
    margin-top: 1rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fff, var(--csa-electric-blue), var(--csa-sand-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================== */
/* SLOGAN TEXT           */
/* ===================== */
.slogan-container {
    animation: fadeIn 0.8s ease-out 1s both;
    max-width: 95%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

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

.slogan-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.slogan-word {
    display: inline;
}

.slogan-word.animated {
    display: inline;
    opacity: 1;
}

.highlight-word {
    font-weight: 700;
    color: var(--csa-sand-yellow);
    text-transform: uppercase;
}

.location-highlight {
    font-weight: 600;
    color: var(--csa-electric-blue);
}

/* ===================== */
/* BUTTON                */
/* ===================== */
.button-container {
    animation: fadeIn 0.8s ease-out 2s both;
}

.adesioni-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--csa-mint-green), #2a9d8f);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 5px 20px rgba(62, 180, 137, 0.4);
    transition: transform 0.2s ease;
}

.adesioni-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-shine {
    display: none;
}

/* ===================== */
/* PARTICLES             */
/* ===================== */
.floating-particle {
    display: none;
}

/* ===================== */
/* MOBILE FIXES          */
/* ===================== */
@media (max-width: 599px) {
    /* Rimuove il padding della classe .section che rompe il full-viewport */
    #disclaimer.section {
        padding: 0;
    }

    .animation {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height per mobile */
        align-items: center;
    }

    .content-wrapper {
        padding: 60px 0.75rem 1.5rem;
        gap: 1rem;
    }

    .logo-main {
        width: 110px;
        height: 110px;
    }

    .logo-image {
        width: 85px;
        height: 85px;
    }

    .logo-text-3d {
        font-size: 1.3rem;
        margin-top: 0.75rem;
    }

    .adesioni-btn {
        padding: 0.75rem 1.6rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    .sliding-bg {
        animation-duration: 4s;
    }
    .sliding-bg2 {
        animation-duration: 5s;
    }
    .sliding-bg3 {
        animation-duration: 6s;
    }
    .sliding-bg4 {
        animation-duration: 7s;
    }
}

/* ===================== */
/* TABLET                */
/* ===================== */
@media (min-width: 600px) {
    .content-wrapper {
        gap: 2rem;
        padding: 2rem;
    }

    .logo-main {
        width: 160px;
        height: 160px;
    }

    .logo-image {
        width: 125px;
        height: 125px;
    }

    .logo-text-3d {
        font-size: 2rem;
    }

    .slogan-container {
        max-width: 600px;
        padding: 1.5rem;
    }

    .slogan-text {
        font-size: 1.1rem;
    }

    .adesioni-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* ===================== */
/* DESKTOP               */
/* ===================== */
@media (min-width: 1024px) {
    .logo-main {
        width: 180px;
        height: 180px;
    }

    .logo-image {
        width: 140px;
        height: 140px;
    }

    .logo-text-3d {
        font-size: 2.4rem;
    }

    .slogan-container {
        max-width: 700px;
    }

    .slogan-text {
        font-size: 1.3rem;
    }

    .adesioni-btn {
        padding: 1.2rem 3rem;
        font-size: 1.2rem;
    }

    .adesioni-btn:hover {
        transform: scale(1.05);
    }

    .btn-shine {
        display: block;
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: btnShine 3s ease-in-out infinite;
    }

    @keyframes btnShine {
        0%, 100% { left: -100%; }
        50% { left: 100%; }
    }
}

/* ===================== */
/* REDUCED MOTION        */
/* ===================== */
@media (prefers-reduced-motion: reduce) {
    .sliding-bg,
    .logo-rotate,
    .logo-glow {
        animation: none !important;
    }
    
    .logo-3d-container,
    .slogan-container,
    .button-container {
        animation: none !important;
        opacity: 1 !important;
    }
}
