/* Effetto gradient shimmer per il titolo mobile, identico al desktop */
.hero-enterprise-highlight {
    background: linear-gradient(
        90deg,
        #38bdf8 0%,
        #ffffff 25%,
        #818cf8 50%,
        #ffffff 75%,
        #38bdf8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: 600;
    position: relative;
    display: inline-block;
    background-size: 300% 100%;
    animation: textShimmer 12s ease-in-out infinite;
    letter-spacing: 0.02em;
    font-style: normal;
}

@keyframes textShimmer {
    0% {
        background-position: -300% 0;
    }
    50% {
        background-position: 300% 0;
    }
    100% {
        background-position: -300% 0;
    }
}
/* ===== MOBILE HOME SECTION ===== */
.mobile-home-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ===== BACKGROUND VIDEO ===== */
.mobile-home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #0f172a; /* Fallback color */
}

.mobile-home-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Fix per iOS Safari */
@supports (-webkit-touch-callout: none) {
    .mobile-home-background video {
        -webkit-playsinline: true;
    }
}

.mobile-home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 41, 59, 0.75) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 2;
}

/* ===== CONTENT ===== */
.mobile-home-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== TITLE STYLING ===== */
.mobile-home-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-align: center;
    font-size: clamp(2.2rem, 8vw, 3.2rem);
}

.title-line-1,
.title-line-2 {
    display: block;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line-1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    color: #ffffff;
    margin-bottom: 0.5rem;
    animation: slideInFromLeft 1s ease-out;
}

.title-line-2 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInFromRight 1s ease-out 0.3s both;
}

/* ===== DESCRIPTION ===== */
.mobile-home-description {
    font-size: clamp(0.7rem, 2.2vw, 0.85rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 500px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== CTA SECTION ===== */
.mobile-home-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

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

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

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

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

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

/* ===== ANIMATIONS ===== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 320px) {
    .mobile-home-content {
        padding: 1.5rem 1rem;
    }
    
    .mobile-home-title {
        margin-bottom: 1.5rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 2rem;
    }
    
    .title-line-1 {
        margin-bottom: 0.3rem;
    }
    
    .mobile-home-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: 280px;
    }
    
    .mobile-cta-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 321px) and (max-width: 375px) {
    .title-line-1,
    .title-line-2 {
        font-size: 2.2rem;
    }
    
    .mobile-home-description {
        max-width: 320px;
    }
}

@media (min-width: 376px) and (max-width: 480px) {
    .title-line-1,
    .title-line-2 {
        font-size: 2.5rem;
    }
    
    .mobile-home-description {
        max-width: 400px;
        font-size: 1.1rem;
    }
}

@media (min-width: 481px) and (max-width: 600px) {
    .mobile-home-content {
        padding: 2.5rem 2rem;
    }
    
    .mobile-home-title {
        margin-bottom: 2.5rem;
    }
    
    .title-line-1,
    .title-line-2 {
        font-size: 2.8rem;
    }
    
    .title-line-1 {
        margin-bottom: 0.7rem;
    }
    
    .mobile-home-description {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        max-width: 480px;
    }
    
    .mobile-cta-primary {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-home-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .mobile-home-content {
        padding: 1rem 1.5rem;
    }
    
    .mobile-home-title {
        margin-bottom: 1rem;
    }
    
    .title-line-1 {
        margin-bottom: 0.2rem;
    }
    
    .mobile-home-description {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
    
    .mobile-cta-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .title-line-1,
    .title-line-2,
    .mobile-home-description,
    .mobile-home-cta {
        animation: none;
    }
}
