/* HSElevate Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #327fa8;
    --primary-orange: #F2A93B;
    --primary-red: #FF4B33;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --white: #ffffff;
}

body {
    animation: backgroundBreathe 8s ease-in-out infinite;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: 
        /* Layer principale - gradient diagonale dinamico */
        linear-gradient(135deg, 
            #0a0a0a 0%, 
            #151515 25%, 
            #1a1a1a 40%, 
            #1f1f1f 60%, 
            #1a1a1a 80%, 
            #0f0f0f 100%),
        /* Zone di competenza - focal points con brand blu */
        radial-gradient(ellipse at 20% 20%, rgba(50, 127, 168, 0.15) 0%, rgba(50, 127, 168, 0.08) 25%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(50, 127, 168, 0.12) 0%, rgba(50, 127, 168, 0.06) 30%, transparent 70%),
        radial-gradient(ellipse at 60% 10%, rgba(50, 127, 168, 0.08) 0%, transparent 50%),
        /* Subtle accent arancione per bilanciare */
        radial-gradient(ellipse at 10% 90%, rgba(242, 169, 59, 0.06) 0%, transparent 40%);
    min-height: 100vh;
    position: relative;
    
   
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Grid principale */
        linear-gradient(rgba(50, 127, 168, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 127, 168, 0.05) 1px, transparent 1px),
        /* Cross-hatch pattern per profondità */
        linear-gradient(45deg, rgba(50, 127, 168, 0.03) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(50, 127, 168, 0.03) 1px, transparent 1px),
        /* Dots pattern per texture fine */
        radial-gradient(circle at 25% 25%, rgba(50, 127, 168, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(50, 127, 168, 0.04) 1px, transparent 1px);
    background-size: 
        60px 60px,
        60px 60px,
        30px 30px,
        30px 30px,
        15px 15px,
        15px 15px;
    background-position: 
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        7.5px 7.5px;
    z-index: 1;
    z-index: -1;
    pointer-events: none;
    animation: patternFloat 20s linear infinite;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Vignette effect per focus */
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes backgroundBreathe {
    0%, 100% { 
        background-size: 100% 100%, 120% 120%, 110% 110%, 100% 100%, 90% 90%; 
    }
    50% { 
        background-size: 100% 100%, 110% 110%, 120% 120%, 110% 110%, 100% 100%; 
    }
}
@keyframes patternFloat {
    0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 7.5px 7.5px; }
    100% { background-position: 60px 60px, 60px 60px, 30px 30px, 30px 30px, 15px 15px, 22.5px 22.5px; }
}




/* Stile per la sezione video-hero combinata */
.video-hero-section {
    position: relative;
    width: 100%;
    height: 100%; /* Altezza a tutto schermo */
    min-height: 100vh; /* Altezza minima */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px; /* Rimuove il margine superiore */
}

/* Container per il video di sfondo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Stile per il video */
.video-background video {
    width: 100%;
    height: 650px;
    object-fit: cover; /* Copre l'intera area senza perdere le proporzioni */
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay scuro sopra al video per migliorare la leggibilità del testo */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Overlay scuro semi-trasparente */
    z-index: 2;
}

/* Contenuto Hero sovrapposto al video */
.hero-content-overlay {
    position: relative;
    z-index: 3; /* Sopra al video e all'overlay */
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    color: var(--white); /* Testo bianco per contrasto */
    margin-top: 60px; /* Spazio per il menu fisso */
}

/* Contenuto hero sovrapposto al video */
.hero-content {
    position: relative;
    z-index: 3; /* Sopra video e overlay */
    text-align: center;
    
    width: 100%;
    max-width: 1200px;
    margin: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-container {
    max-width: 800px;
    padding: 1.0rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Modifica degli stili esistenti per adattarsi al nuovo layout */
.hero-tag {
    color: var(--white);
    /*background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;*/
    
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: center;
    display: block;
    color: white;
    /*text-shadow: -0.3px -0.3px 0 black, 
                 0.3px -0.3px 0 black, 
                 -0.3px 0.3px 0 black, 
                 0.3px 0.3px 0 black;*/
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    text-align: center;
    text-shadow: -0.3px -0.3px 0 white, 
                 0.3px -0.5px 0 white, 
                 -0.3px 0.5px 0 white, 
                 0.3px 0.3px 0 white;
}

.hero-subheading {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-red);
    transform: translateY(-5px);
    scale: 1.05;
    box-shadow: 0 15px 30px rgba(50, 127, 168, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-hero-section {
        height: 90vh;
        min-height: 500px;
    }
    
    .hero-text-container {
        padding: 1.5rem;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.6rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-hero-section {
        height: 85vh;
        min-height: 450px;
    }
    
    .hero-text-container {
        padding: 1rem;
    }
    
    .hero-headline {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-tag {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.4rem;
        font-size: 1rem;
    }
}


/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 3s ease forwards;
}

.hero-tag {
    animation-delay: 0.1s;
}

.hero-headline {
    animation-delay: 0.2s;
}

.hero-subheading {
    animation-delay: 0.3s;
}

.cta-button {
    animation-delay: 0.4s;
}

.hero-image img {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Landscape e Desktop piccoli */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        gap: 3rem;
        max-width: 900px;
    }

    .hero-image img {
        max-width: 450px;
    }

    .hero-headline {
        font-size: 3.5rem;
    }

    .hero-subheading {
        font-size: 1.2rem;
    }
}



/* Tablet Portrait */
@media (max-width: 768px) and (min-width: 481px) {
    .hero {
        padding: 4rem 2rem 2rem 2rem;
        min-height: 90vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        max-width: 600px;
    }

    .hero-image {
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .hero-image img {
        max-width: 400px;
        width: 70%;
        height: auto;
    }

    .hero-headline {
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }

    .hero-subheading {
        font-size: 1.2rem;
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    .cta-button {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .hero-tag {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem 2rem 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-tag {
        margin-top: 1.5rem;
    }

    .hero-image {
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .hero-image img {
        max-width: 100%;
        width: 85%;
        height: auto;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subheading {
        font-size: 1rem;
        max-width: 100%;
    }

    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    
}


