/* ===== MOBILE BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0f172a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITY CLASSES ===== */
.highlight-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ===== MOBILE MAIN CONTAINER ===== */
.mobile-main {
    padding-top: 70px; /* Spazio per navbar fissa */
    min-height: 100vh;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 480px) and (max-width: 600px) {
    html {
        font-size: 18px;
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SHARED SECTION STYLES ===== */
.mobile-section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.mobile-section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.mobile-section-description {
    font-size: clamp(1rem, 3vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.mobile-cta-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

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

.mobile-cta-primary:hover::before {
    left: 100%;
}

.mobile-cta-primary:hover,
.mobile-cta-primary:active {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-cta-primary:active {
    transform: translateY(0);
}

.mobile-cta-primary i {
    transition: transform 0.3s ease;
}

.mobile-cta-primary:hover i {
    transform: translateX(3px);
}

/* ===== ANIMATIONS ON SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 320px) {
    .mobile-section-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .mobile-section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .mobile-section-description {
        font-size: 0.9rem;
    }
    
    .mobile-cta-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 480px) and (max-width: 600px) {
    .mobile-section-header {
        padding: 0 2rem;
        margin-bottom: 3.5rem;
    }
    
    .mobile-section-title {
        font-size: 2.2rem;
        margin-bottom: 1.8rem;
    }
    
    .mobile-section-description {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .mobile-cta-primary {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
}

/* ===== MOBILE FOOTER ===== */
.mobile-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0 1rem 0;
    margin-top: 2rem;
}

.mobile-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.mobile-footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.mobile-footer-actions {
    display: flex;
    justify-content: center;
}

.desktop-switch-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.desktop-switch-btn:hover,
.desktop-switch-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.desktop-switch-btn i {
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 320px) {
    .mobile-footer {
        padding: 1.5rem 0 0.8rem 0;
        margin-top: 1.5rem;
    }
    
    .mobile-footer-content {
        padding: 0 1rem;
        gap: 0.8rem;
    }
    
    .mobile-footer-info p {
        font-size: 0.8rem;
    }
    
    .desktop-switch-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 480px) and (max-width: 600px) {
    .mobile-footer {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .mobile-footer-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 2rem;
        text-align: left;
    }
    
    .mobile-footer-info {
        flex: 1;
    }
    
    .mobile-footer-actions {
        flex-shrink: 0;
    }
    
    .desktop-switch-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
