/* General Styles */
:root {
    --primary-color: #071525;
    --gold: #D4AF37;
    --gold-soft: #E8D5A3;
    --navy: #071525;
    --navy-mid: #0E2744;
    --secondary-color: #6c757d;
    --dark-color: #071525;
    --light-color: #f7f4ee;
    --bs-primary: #071525;
    --bs-primary-rgb: 7, 21, 37;
    --bs-link-color: #8C6E1E;
    --bs-link-hover-color: #071525;
    --bs-body-color: #1C2833;
}

.blink-ocra {
    color: var(--gold) !important;
    border-radius: 5px;
    padding: 8px 12px !important;
}

.blink-ocra:hover {
    color: var(--gold-soft) !important;
}

/* CGEasy AI Menu Link - Molto Visibile */
.nav-cgeasy {
    background: linear-gradient(135deg, #00d4ff, #7c3aed) !important;
    border: none;
    border-radius: 25px;
    padding: 8px 18px !important;
    color: white !important;
    font-weight: 700;
    transition: all 0.3s ease;
    animation: cgeasyGlow 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

@keyframes cgeasyGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(124, 58, 237, 0.5); }
}

.nav-cgeasy:hover {
    background: linear-gradient(135deg, #00b8e6, #6a2dc9) !important;
    color: white !important;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.8), 0 0 40px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.nav-cgeasy i {
    animation: brainPulse 1.5s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1C2833;
    background: #f7f4ee;
    overflow-x: hidden;
    padding-top: 76px; /* Compensazione per navbar fixed-top */
}

h1, h2, h3, h4, h5,
.display-3, .display-4, .display-5 {
    color: #C6A15B;
}

.navbar.bg-primary,
.bg-primary {
    background-color: var(--navy) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--gold) !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: var(--gold-soft) !important;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-soft) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    filter: brightness(1.35) saturate(0.9);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(16, 48, 88, 0.5) 0%, rgba(24, 64, 110, 0.38) 100%);
}

.hero-content,
.hero-content h1,
.hero-content .lead,
.hero-content .text-white,
.page-hero-services .text-white,
.team-hero .text-white,
.page-hero.text-white,
.page-hero .text-white,
.hero-icon,
.scroll-indicator {
    color: var(--gold) !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: #F3D98A !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

.hero-content .lead {
    display: inline-block;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    background: rgba(7, 18, 32, 0.62);
    color: #F6E7B2 !important;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

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

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Feature List */
.feature-item {
    display: flex;
    align-items-start;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--navy) !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
}

.btn-primary:hover {
    background: var(--navy-mid) !important;
    color: var(--gold-soft) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(7, 21, 37, 0.35);
}

.bg-primary,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.bg-primary .lead,
.bg-primary.text-white {
    color: var(--gold-soft) !important;
}

footer.bg-dark {
    background-color: var(--navy) !important;
}

footer h5,
footer p,
footer a,
footer small,
footer .text-white-50 {
    color: var(--gold-soft) !important;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem !important;
        font-size: 1rem;
    }
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}


