/* ========================================
   HOME STYLE - STILI SPECIFICI PER INDEX
   ======================================== */

/* Stili Generali del Corpo */
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #0b0c13; 
    color: #c9d1d9; 
    overflow-x: hidden; 
}

/* Navigazione Principale Effetto Vetro Avanzato */
.main-nav { 
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 60;
    
    /* Menu Animation - Slides down from top after 2 seconds */
    opacity: 0;
    transform: translateY(-100%);
    visibility: hidden; /* Nascondi immediatamente il menu */
    animation: menu-slide-down 1s ease-out forwards;
    animation-delay: 2s; /* Start after 2 seconds */
}

@keyframes menu-slide-down {
    0% {
        opacity: 0;
        transform: translateY(-100%);
        visibility: hidden; /* Mantieni nascosto all'inizio */
    }
    5% {
        /* Inizia a mostrare solo quando è quasi arrivato */
        opacity: 0;
        transform: translateY(-95%);
        visibility: visible; /* Diventa visibile solo qui */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        visibility: visible; /* Completamente visibile */
    }
}

/* Card di Contenuto */
.content-card { 
    background: rgba(22, 27, 34, 0.6); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(48, 54, 61, 0.5); 
}

/* --- Gradiente Testo per Sezione --- */
.text-gradient-main { 
    background: linear-gradient(90deg, #00B5C8, #818cf8); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.text-gradient-launch { 
    background: linear-gradient(90deg, #10b981, #34d399); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.text-gradient-blueprint { 
    background: linear-gradient(90deg, #a78bfa, #c084fc); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* --- Pulsanti Call-to-Action per Sezione --- */
.cta-button-main { 
    transition: all 0.3s ease; 
    box-shadow: 0 0 15px rgba(0, 181, 200, 0.3); 
    background-color: #00B5C8;
}
.cta-button-main:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 0 25px rgba(0, 181, 200, 0.5); 
    background-color: #009DAA;
}

/* Stile Pulsante Neumorfico Avanzato con Effetto Vetro e Forma Quadrata */
.neumorphic-btn {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.neumorphic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(148, 163, 184, 0.2);
}

.neumorphic-btn:hover::before {
    left: 100%;
}

/* Colori Icone Aggiornati con Stile Tipografico Elegante */
.icon-foundation { 
    color: #22d3ee !important; /* Cyan più vivace */
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
    transition: all 0.3s ease;
    min-width: 2rem;
    text-align: center;
}

.icon-launch { 
    color: #4ade80 !important; /* Green più brillante */
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
    min-width: 2rem;
    text-align: center;
}

.icon-blueprint { 
    color: #a855f7 !important; /* Purple più intenso */
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    min-width: 2rem;
    text-align: center;
}

.icon-partners { 
    color: #6366f1 !important; /* Indigo più profondo */
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    min-width: 2rem;
    text-align: center;
}

/* Effetti Hover per le Icone con Glow Esteso ai Bordi */
.neumorphic-btn:hover .icon-foundation {
    color: #06b6d4 !important;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
    transform: scale(1.1);
}

.neumorphic-btn:hover .icon-launch {
    color: #22c55e !important;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
    transform: scale(1.1);
}

.neumorphic-btn:hover .icon-blueprint {
    color: #9333ea !important;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
    transform: scale(1.1);
}

.neumorphic-btn:hover .icon-partners {
    color: #4f46e5 !important;
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    transform: scale(1.1);
}

/* Glow Esteso ai Bordi dei Pulsanti - Versione Semplificata */
.neumorphic-btn:hover {
    border-color: transparent;
}

/* Hover per Foundation - Glow Cyan */
.neumorphic-btn:has(.icon-foundation):hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(34, 211, 238, 0.4),
        0 0 20px rgba(34, 211, 238, 0.3);
}

/* Hover per Launch - Glow Green */
.neumorphic-btn:has(.icon-launch):hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(74, 222, 128, 0.4),
        0 0 20px rgba(74, 222, 128, 0.3);
}

/* Hover per Blueprint - Glow Purple */
.neumorphic-btn:has(.icon-blueprint):hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(168, 85, 247, 0.4),
        0 0 20px rgba(168, 85, 247, 0.3);
}

/* Hover per Partners - Glow Indigo */
.neumorphic-btn:has(.icon-partners):hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.4),
        0 0 20px rgba(99, 102, 241, 0.3);
}

/* Stili Hero Section con Video */
#video-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 12, 19, 0.85); /* #0b0c13 con 85% opacità */
    z-index: -50;
}

/* Hero Content Animations - Start after 3 seconds with staggered fade-in */
.hero-content h1 { 
    opacity: 0; 
    transform: translateY(30px); 
    animation: hero-fade-in-up 1s ease-out forwards;
    animation-delay: 3s; /* Start after 3 seconds */
}

.hero-content p { 
    opacity: 0; 
    transform: translateY(30px); 
    animation: hero-fade-in-up 1s ease-out forwards;
    animation-delay: 3.3s; /* Start 0.3s after h1 */
}

.hero-content a { 
    opacity: 0; 
    transform: translateY(30px); 
    animation: hero-fade-in-up 1s ease-out forwards;
    animation-delay: 5s; /* Start at 5 seconds */
}

@keyframes hero-fade-in-up { 
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* Optional: Add a subtle scale effect for the button */
.hero-content a {
    animation: hero-fade-in-up 1s ease-out forwards, hero-scale-in 0.6s ease-out forwards;
    animation-delay: 5s, 5.6s; /* Scale effect starts after fade-in completes */
}

@keyframes hero-scale-in {
    0% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Stili Sezione Nome */
.name-card {
    border: 1px solid rgba(48, 54, 61, 0.5);
}

/* Stili Widget Servizi */
.service-widget-item {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Stili per le Icone nella Sezione Servizi - Con Colori Distintivi */
#servizi .icon-foundation {
    color: #22d3ee !important; /* Cyan per Brand Foundation */
    font-weight: bold;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-align: center;
    min-width: 2rem;
}

#servizi .icon-launch {
    color: #4ade80 !important; /* Green per Launch Kit */
    font-weight: bold;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-align: center;
    min-width: 2rem;
}

#servizi .icon-blueprint {
    color: #a855f7 !important; /* Purple per Growth Strategy */
    font-weight: bold;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-align: center;
    min-width: 2rem;
}

#servizi .icon-partners {
    color: #6366f1 !important; /* Indigo per Growth Partners */
    font-weight: bold;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-align: center;
    min-width: 2rem;
}

/* ========================================
   SPACING E LAYOUT SPECIFICI PER INDEX
   ======================================== */

/* Spacing per il menu dell'index - distante dai bordi laterali */
.main-nav {
    /* Aggiungi spazio ai bordi laterali */
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

/* Responsive spacing per il menu */
@media screen and (min-width: 640px) {
    .main-nav {
        margin-left: 1.5rem !important;
        margin-right: 1.5rem !important;
    }
}

@media screen and (min-width: 768px) {
    .main-nav {
        margin-left: 2rem !important;
        margin-right: 2rem !important;
    }
}

@media screen and (min-width: 1024px) {
    .main-nav {
        margin-left: 3rem !important;
        margin-right: 3rem !important;
    }
}

@media screen and (min-width: 1280px) {
    .main-nav {
        margin-left: 4rem !important;
        margin-right: 4rem !important;
    }
}

/* Fix per il container del menu per evitare overflow */
.fixed.top-0.left-0.right-0.z-50.container {
    /* Assicura che il container non causi overflow */
    max-width: 100% !important;

    box-sizing: border-box !important;
}
