/**
 * Correzioni per la sezione hero-enterprise
 * Questo file sistema i problemi di visualizzazione della sezione home
 */

/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Typewriter Animation Styles */
.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);    
}

/* Typewriter Animation */
.typewriter-animation {
    animation: 
        typewriter 5s steps(50) 1s 1 normal both, 
        blinkingCursor 500ms steps(50) infinite normal;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkingCursor{
    from { border-right-color: rgba(255,255,255,.75); }
    to { border-right-color: transparent; }
}

/* Stile base per la sezione hero */
.hero-enterprise {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Aggiunto spazio per il menu */
}

/* Gestione del background video */
.hero-enterprise-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #0f172a; /* Fallback color */
}

.hero-enterprise-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-enterprise-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;
}

/* Contenitore principale del contenuto */
.hero-enterprise-container {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    margin: 0 auto;
    transform: none;
    /* Centratura verticale/orizzontale con Flexbox */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Regola se serve più spazio verticale */


/* Blocco centrato per titolo e sottotitolo */
.hero-enterprise-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    z-index: 10;
.hero-enterprise-content {
    max-width: 900px;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    transform: scale(1.15);
    transform-origin: left center;
}

/* Badge decorativo */
.hero-enterprise-badge {
    display: none;
}

.hero-enterprise-badge span {
        min-height: 60vh;
        padding: 0 8px;
        transform: none;
        transform-origin: center;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-enterprise-center-content {
        padding: 0 8px;
    }
}

/* Titolo principale con effetto highlight e typewriter */
.hero-enterprise-title {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2rem;
    padding-bottom: 0.2rem;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow: hidden;
    /* Typewriter specific styles */
    white-space: nowrap;
    border-right: 2px solid rgba(255,255,255,.75);
}

/* Apply typewriter animation to the title */
.hero-enterprise-title.typewriter-animation {
    animation: 
        typewriter 4s steps(40) 1s 1 normal both, 
        blinkingCursor 500ms steps(40) infinite normal;
}

.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;
    }
}

/* Sottotitolo */
.hero-enterprise-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Pulsanti d'azione */
.hero-enterprise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-enterprise-primary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #fff;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.hero-enterprise-primary-btn .btn-icon {
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.hero-enterprise-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.hero-enterprise-primary-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-shimmer {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.hero-enterprise-primary-btn:hover .btn-shimmer {
    top: -50%;
    left: -100%;
    transition: all 1s ease;
}

.hero-enterprise-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem;
}

.hero-enterprise-secondary-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-enterprise-secondary-btn:hover {
    color: #fff;
}

.hero-enterprise-secondary-btn:hover i {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Statistiche */
.hero-enterprise-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.hero-stat-item {
    flex: 1;
    min-width: 140px;
}

.hero-stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

/* Elementi flottanti decorativi */
.hero-floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.05));
    z-index: 1;
    animation: float 15s infinite ease-in-out;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 10%;
    animation-duration: 20s;
}

.element-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.element-3 {
    width: 150px;
    height: 150px;
    bottom: 40%;
    right: 15%;
    animation-duration: 25s;
    animation-delay: 5s;
}

/* Indicatore di scroll */
.hero-enterprise-scroll {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    z-index: 50; /* Increased z-index to ensure visibility */
    width: 100%;
    text-align: center;
    pointer-events: none; /* Ensures clicks pass through to elements below */
    /* Rimossa animazione di bouncing */
    filter: grayscale(100%); /* Assicura che tutto sia grigio */
}

.scroll-indicator-container {
    display: inline-block;
    pointer-events: auto; /* Re-enable pointer events for the indicator itself */
    filter: drop-shadow(0 0 5px rgba(128, 128, 128, 0.5)); /* Grigio con ombra più sottile */
    cursor: pointer; /* Shows cursor pointer on hover for better UX */
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 3px solid rgba(128, 128, 128, 0.8); /* Bordo grigio */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;    box-shadow: 0 0 10px rgba(128, 128, 128, 0.4), /* Effetto glow grigio più leggero */
                inset 0 0 5px rgba(128, 128, 128, 0.2); /* Glow interno grigio più leggero */
                /* Rimosso bordo bianco per avere tutto grigio */position: relative;
    /* Rimossa animazione pulse */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    overflow: hidden; /* For the ripple effect */
    backdrop-filter: blur(2px); /* Subtle blur effect */
}

/* Ripple effect when clicked */
.scroll-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.7) 0%, rgba(128, 128, 128, 0) 70%); /* Cambiato a grigio */
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s, opacity 0.5s;
}

.scroll-wheel {
    width: 6px; /* Wider for better visibility */
    height: 12px;
    background-color: rgba(128, 128, 128, 0.9); /* Grigio con alta opacità */
    border-radius: 3px;
    animation: scrollWheel 1.5s infinite; /* Mantengo solo l'animazione della rotella per indicare lo scroll */
    filter: grayscale(100%); /* Assicura che sia grigio in ogni caso */
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px);
    }
    100% {
        opacity: 0.5; /* Not completely invisible for better visibility */
        transform: translateY(20px);
    }
    100.1% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced slogan with special effects like statistics numbers */
.enhanced-slogan {
    position: relative;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8) !important;
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradientFlow 4s ease-in-out infinite,
               textPulse 3s ease-in-out infinite,
               shimmerEffect 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
    text-shadow: none;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    display: inline-block;
    overflow: hidden;
}

.enhanced-slogan::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: shimmerSweep 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.enhanced-slogan::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite alternate;
    z-index: -1;
    border-radius: 10px;
    filter: blur(10px);
}

/* Keyframes for enhanced slogan effects */
@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.005);
    }
}

@keyframes shimmerEffect {
    0% {
        filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(129, 140, 248, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
    }
}

@keyframes shimmerSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 50%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes glow {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Rimosso keyframes pulse */

/* Rimosso keyframes bounce */

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-enterprise-content {
        transform: scale(1.1);
    }
    
    .hero-enterprise-title {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {
    .hero-enterprise-content {
        max-width: 700px;
        transform: scale(1.05);
    }
    
    .hero-enterprise-title {
        font-size: 3.5rem;
    }
    
    .element-1 {
        width: 200px;
        height: 200px;
    }
    
    .element-2, .element-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .hero-enterprise-content {
        text-align: center;
        margin: 0 auto;
        transform: scale(1);
        transform-origin: center;
    }
    
    .hero-enterprise-title {
        font-size: 3rem;
    }
    
    .hero-enterprise-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.2rem;
    }
    
    .hero-enterprise-actions {
        justify-content: center;
    }
    
    .hero-enterprise-stats {
        justify-content: center;
    }
    
    .hero-stat-item {
        text-align: center;
        min-width: 120px;
    }
    
    .element-1, .element-2, .element-3 {
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .hero-enterprise-content {
        transform: scale(0.95);
    }
    
    .hero-enterprise-title {
        font-size: 2.5rem;
    }
    
    .hero-enterprise-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-enterprise-badge {
        margin-bottom: 1.5rem;
    }
    
    .hero-enterprise-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-enterprise-primary-btn, .hero-enterprise-secondary-btn {
        width: 100%;
        justify-content: center;
    }
}
}