/* Stili Generali */
body {
    font-family: 'Montserrat', sans-serif; /* Carattere più moderno */
    color: #333;
}

h2, h3, h4 {
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    color: #555;
}

/* Navbar */
.navbar-brand img {
    margin-right: 10px;
    width: 60px; /* Aggiunto */
    height: 60px; /* Aggiunto */
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #007bff; /* Blu acceso per hover */
}

#hero .lead {
    color: #fff; /* Assicura che il sottotitolo sia bianco */
}

#hero .btn-light {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

#hero .btn-light:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Hero Section */
#hero {
    color: white;
    position: relative;
    min-height: 100vh; /* Modificato per flessibilità */
    display: flex; /* Aggiunto per centrare verticalmente */
    align-items: center; /* Aggiunto per centrare verticalmente */
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 50%, #2d3748 100%);
    overflow: hidden;
}

#hero h1 {
    font-weight: 700;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.7), rgba(23, 162, 184, 0.6));
    z-index: 1;
}

/* Features Section */
#features .img-fluid {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* About Section */
#about img {
    max-width: 100%;
}

/* Contact Form */
#contact form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

/* Footer */
footer p {
    margin-bottom: 0.5rem;
}

/* Sezioni Specifiche */
#cicli-macchina,
#report-errori,
#statistiche,
#industria-5 {
    padding: 80px 0;
}

#report-errori {
    background-color: #2c3e50; /* Blu scuro per un look tech */
}

.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

#industria-5 img {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

#industria-5 img:hover {
    filter: grayscale(0%);
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* Fullscreen Mobile Menu */
.mobile-menu-overlay {
    height: 0;
    width: 100%;
    position: fixed;
    z-index: 1050; /* Sopra la navbar */
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    overflow-y: hidden;
    transition: 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.mobile-menu-content {
    position: relative;
    text-align: center;
    width: 100%;
}

.mobile-menu-content .nav-link {
    padding: 15px;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    display: block;
    transition: 0.3s;
    font-weight: 700;
}

.mobile-menu-content .nav-link:hover, .mobile-menu-content .nav-link:focus {
    color: #007bff;
}

.mobile-menu-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: #333;
    text-decoration: none;
}

.mobile-menu-content img {
    margin-bottom: 30px;
}

.mobile-menu-footer {
    margin-top: 40px;
    font-size: 14px;
    color: #555;
}

.mobile-menu-footer p {
    margin-bottom: 5px;
}

@media (min-width: 992px) {
    #mobileMenu {
        display: none; /* Nascondi su desktop */
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important; /* Nascondi il menu bootstrap su mobile */
    }
}

.page-hero {
        display: flex;
        align-items: center;
        text-align: center;
        color: white;
        position: relative;
        background-size: cover;
        background-position: center;
        background-attachment: fixed; /* Effetto parallasse */
        min-height: 100vh; /* Aggiunta per occupare l'intera schermata */
    }

    .page-hero .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(23, 162, 184, 0.7), rgba(13, 110, 253, 0.8));
        z-index: 1;
    }

    /* Rimuovi background overlay per chi-siamo-hero */
    #chi-siamo-hero .hero-overlay {
        background: none;
    }

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

    .page-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .page-header p {
        font-size: 1.2rem;
        color: #ddd;
    }

.steelblue {
    background-color: steelblue !important;
    color: white !important;
}

.steelblue p.lead.mb-4 {
    color: white;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0 20px 0;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: 1;
}

.modern-footer .container {
    position: relative;
    z-index: 2;
}

.footer-section {
    height: 100%;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.footer-title i {
    color: #64b5f6;
    font-size: 1.1rem;
}

.footer-description {
    color: #b3d9ff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #e3f2fd;
}

.contact-item i {
    color: #64b5f6;
    font-size: 0.9rem;
    margin-top: 2px;
    min-width: 18px;
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e3f2fd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #64b5f6;
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.7rem;
    color: #64b5f6;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
}

.copyright-text,
.vat-text {
    margin: 0;
    font-size: 0.85rem;
    color: #b3d9ff;
    display: flex;
    align-items: center;
}

.copyright-text i,
.vat-text i {
    color: #64b5f6;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-bottom .col-md-6:last-child {
        text-align: left !important;
        margin-top: 10px;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
}

/* ===== ADVANCED STYLES FOR MODERN DESIGN ===== */

/* Enhanced Section Styling */
.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #17a2b8);
    border-radius: 2px;
}

/* Features Section Enhancement */
#features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0,123,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(23,162,184,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.feature-icon-container {
    position: relative;
    display: inline-block;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(23,162,184,0.1) 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-icon-container:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,123,255,0.2);
}

.feature-icon-container i {
    background: linear-gradient(45deg, #007bff, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Product Presentation Enhancement */
#product-presentation {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

#product-presentation::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(0,123,255,0.05), rgba(23,162,184,0.05));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

#product-presentation .display-5 {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

#product-presentation img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

#product-presentation img:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Statistics Cards Enhancement */
#statistiche .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

#statistiche .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #17a2b8);
}

#statistiche .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,123,255,0.15);
}

#statistiche .card i {
    background: linear-gradient(45deg, #007bff, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,123,255,0.2));
}

/* Industry 5.0 Section */
#industria-5 {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    position: relative;
    overflow: hidden;
}

#industria-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,123,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Contact Section Enhancement */
#contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

#contact .container {
    position: relative;
    z-index: 2;
}

#contact h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#contact .lead {
    color: rgba(255,255,255,0.9);
}

#contact form {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #333;
}

#contact .form-control {
    border: 2px solid transparent;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 20px rgba(0,123,255,0.2);
    background: white;
}

#contact .btn-primary {
    background: linear-gradient(45deg, #007bff, #17a2b8);
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#contact .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,123,255,0.3);
}

/* ===== CHI SIAMO PAGE STYLES ===== */

/* Mission/Vision Enhancement */
#mission-vision {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.section-icon {
    background: linear-gradient(45deg, #007bff, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(0,123,255,0.2));
    transition: transform 0.3s ease;
}

.section-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Value Cards Enhancement */
.value-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,123,255,0.1);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #17a2b8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,123,255,0.15);
}

.value-card .section-icon {
    margin-bottom: 25px;
}

.value-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Approach Section */
#our-approach {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#our-approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%);
    background-size: 60px 60px;
}

#our-approach .container {
    position: relative;
    z-index: 2;
}

#our-approach h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

#our-approach .lead {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

#our-approach ul {
    padding-left: 0;
}

#our-approach ul li {
    list-style: none;
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#our-approach ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 15px;
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

#our-approach ul li strong {
    color: #fff;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.cta-section .btn-outline-light {
    border-width: 2px;
    padding: 12px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

/* ===== NEW ENHANCED SECTIONS STYLES ===== */

/* Value Proposition Section */
#value-proposition {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.value-item i {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

.value-item h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Benefits Section */
.benefit-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,123,255,0.1);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,123,255,0.15);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #007bff, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.benefit-card h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Feature Points */
.feature-point {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.feature-point i {
    margin-top: 2px;
}

/* Implementation Steps */
.implementation-step {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
}

.implementation-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,123,255,0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #007bff, #17a2b8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.implementation-step h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.implementation-step p {
    color: #555;
    margin-bottom: 15px;
}

.implementation-step small {
    color: #17a2b8;
    font-weight: 600;
}

/* ===== CHI SIAMO PAGE ENHANCED STYLES ===== */

/* Hero Stats */
.hero-stats {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-item p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #17a2b8);
}

.timeline-item {
    position: relative;
    padding: 15px 0 15px 30px;
    color: #555;
    line-height: 1.6;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.timeline-item strong {
    color: #007bff;
    font-weight: 700;
}

/* Company Metrics */
.company-metrics {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid rgba(0,123,255,0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,123,255,0.15);
}

.metric-card h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.metric-card p {
    color: #555;
    margin: 0;
}

/* Enhanced Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,123,255,0.1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,123,255,0.15);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #007bff;
}

.team-member h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

.team-member .role {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== PARTICLES AND ANIMATED EFFECTS ===== */

/* Particles.js Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Enhanced Hero with Particles */
#hero {
    position: relative;
    overflow: hidden;
}

/* Animated Network Nodes (CSS Alternative) */
.network-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-node 8s infinite linear;
}

.node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.node:nth-child(2) { top: 40%; left: 20%; animation-delay: 1s; }
.node:nth-child(3) { top: 60%; left: 30%; animation-delay: 2s; }
.node:nth-child(4) { top: 80%; left: 40%; animation-delay: 3s; }
.node:nth-child(5) { top: 30%; left: 60%; animation-delay: 4s; }
.node:nth-child(6) { top: 70%; left: 70%; animation-delay: 5s; }
.node:nth-child(7) { top: 50%; left: 80%; animation-delay: 6s; }
.node:nth-child(8) { top: 90%; left: 90%; animation-delay: 7s; }

@keyframes float-node {
    0% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(-20px) translateX(10px);
        opacity: 0;
    }
}

/* Connecting Lines Animation */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: draw-line 3s infinite;
    transform-origin: left;
}

@keyframes draw-line {
    0% { 
        width: 0;
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        width: 150px;
        opacity: 0;
    }
}

/* Status Indicator - Animated Pulse */
.status-indicator {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #28a745;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Geometric Shapes Animation */
.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.polygon {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: rotate-polygon 20s infinite linear;
}

.polygon.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(0, 123, 255, 0.1);
    top: 20%;
    left: 80%;
    animation-duration: 15s;
}

.polygon.square {
    width: 20px;
    height: 20px;
    background: rgba(23, 162, 184, 0.1);
    top: 60%;
    left: 10%;
    animation-duration: 25s;
}

.polygon.hexagon {
    width: 30px;
    height: 17px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    top: 40%;
    left: 70%;
    animation-duration: 18s;
}

.polygon.hexagon:before,
.polygon.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.polygon.hexagon:before {
    bottom: 100%;
    border-bottom: 8.5px solid rgba(255, 255, 255, 0.05);
}

.polygon.hexagon:after {
    top: 100%;
    border-top: 8.5px solid rgba(255, 255, 255, 0.05);
}

@keyframes rotate-polygon {
    from {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

/* Data Flow Animation */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #007bff, transparent);
    animation: data-flow 4s infinite;
}

.data-stream:nth-child(1) { left: 15%; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 35%; animation-delay: 1s; }
.data-stream:nth-child(3) { left: 55%; animation-delay: 2s; }
.data-stream:nth-child(4) { left: 75%; animation-delay: 3s; }

@keyframes data-flow {
    0% {
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Online Status Banner */
.online-banner {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 1000;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    animation: slide-in 0.5s ease-out;
}

.online-banner .status-indicator {
    margin-right: 8px;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== SERVER RACK EFFECT STYLES ===== */

/* Container principale del server rack */
#server-rack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0.7;
    pointer-events: none;
    padding: 40px 20px;
}

/* Righe del server rack */
.server-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px 0;
    gap: 3px;
    width: 90%;
    max-width: 1200px;
}

/* Singole luci del server */
.server-light {
    width: 10px;
    height: 10px;
    background: #2a3f5f;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #1a2332;
    flex-shrink: 0;
}

/* Luci più piccole (dim) per variazione */
.server-light-dim {
    width: 7px;
    height: 7px;
    background: #1e2a3a;
}

/* Luci molto piccole per variazione */
.server-light-tiny {
    width: 4px;
    height: 4px;
    background: #151f2e;
}

/* Stato di glow base */
.server-light.is-glowing {
    animation: server-pulse 0.8s ease-in-out;
    transform: scale(1.2);
}

/* Colori di glow */
.server-light.glow-blue.is-glowing {
    background: #00a8ff;
    box-shadow: 
        0 0 8px #00a8ff,
        0 0 16px #00a8ff,
        0 0 24px rgba(0, 168, 255, 0.5);
    border-color: #00a8ff;
}

.server-light.glow-green.is-glowing {
    background: #00d084;
    box-shadow: 
        0 0 8px #00d084,
        0 0 16px #00d084,
        0 0 24px rgba(0, 208, 132, 0.5);
    border-color: #00d084;
}

.server-light.glow-orange.is-glowing {
    background: #ff9500;
    box-shadow: 
        0 0 8px #ff9500,
        0 0 16px #ff9500,
        0 0 24px rgba(255, 149, 0, 0.5);
    border-color: #ff9500;
}

.server-light.glow-cyan.is-glowing {
    background: #00fff7;
    box-shadow: 
        0 0 8px #00fff7,
        0 0 16px #00fff7,
        0 0 24px rgba(0, 255, 247, 0.5);
    border-color: #00fff7;
}

.server-light.glow-purple.is-glowing {
    background: #8b5cf6;
    box-shadow: 
        0 0 8px #8b5cf6,
        0 0 16px #8b5cf6,
        0 0 24px rgba(139, 92, 246, 0.5);
    border-color: #8b5cf6;
}

/* Animazione di pulsazione */
@keyframes server-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* Effetto aggiuntivo: linee di connessione */
#server-rack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0, 168, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 168, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: grid-flow 8s linear infinite;
}

@keyframes grid-flow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(20px, 20px);
    }
}

/* Indicatori di stato sui lati */
#server-rack::after {
    content: '';
    position: absolute;
    left: 10%;
    top: 20%;
    width: 4px;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent,
        #00d084 20%,
        #00d084 40%,
        #ff9500 60%,
        #ff9500 80%,
        transparent
    );
    border-radius: 2px;
    animation: status-indicator 3s ease-in-out infinite;
}

@keyframes status-indicator {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(0, 208, 132, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(0, 208, 132, 0.6);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .server-row {
        width: 85%;
        gap: 2px;
    }
}

@media (max-width: 768px) {
    .server-light {
        width: 7px;
        height: 7px;
    }
    
    .server-light-dim {
        width: 5px;
        height: 5px;
    }
    
    .server-light-tiny {
        width: 3px;
        height: 3px;
    }
    
    .server-row {
        gap: 2px;
        margin: 1px 0;
        width: 80%;
    }
    
    #server-rack {
        opacity: 0.6;
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .server-light {
        width: 5px;
        height: 5px;
    }
    
    .server-light-dim {
        width: 4px;
        height: 4px;
    }
    
    .server-light-tiny {
        width: 2px;
        height: 2px;
    }
    
    .server-row {
        gap: 1px;
        margin: 1px 0;
        width: 75%;
    }
    
    #server-rack {
        opacity: 0.5;
        padding: 20px 10px;
    }
}

/* Miglioramento dell'overlay hero per il nuovo effetto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(15, 20, 25, 0.8), rgba(45, 55, 72, 0.6));
    z-index: 2;
}

/* Banner online enhancement per coordinare con server rack */
.online-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d084 0%, #00a8ff 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1060;
    animation: slide-in 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.status-indicator {
    margin-right: 8px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00fff7;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px #00fff7;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* ===== DIGITAL TRANSFORMATION EFFECT STYLES ===== */

/* Container principale per la trasformazione digitale */
#digital-transformation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* Layer analogico (tradizionale) */
.analog-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 2s ease-in-out;
}

/* Layer digitale (trasformato) */
.digital-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

/* Ingranaggi rimossi - sostituiti con elementi industriali più semplici */

/* Elementi industriali tradizionali */
.analog-element {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(169, 169, 169, 0.5);
    border-radius: 2px;
    animation: analogPulse 3s ease-in-out infinite;
}

/* Nodi digitali */
.digital-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 
        0 0 10px #00d4ff,
        0 0 20px rgba(0, 212, 255, 0.5);
    animation: digitalPulse 2s ease-in-out infinite;
}

.digital-node::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: ripple 3s ease-out infinite;
}

/* Connessioni digitali */
.digital-connection {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: dataFlow 3s ease-in-out infinite;
    transform-origin: left center;
}

/* Flussi di dati */
.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #00ff88, #00d4ff, transparent);
    animation: streamFlow 4s ease-in-out infinite;
    top: -100px;
}

/* Animazioni */
@keyframes analogPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes digitalPulse {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
        box-shadow: 
            0 0 10px #00d4ff,
            0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3);
        box-shadow: 
            0 0 15px #00d4ff,
            0 0 30px rgba(0, 212, 255, 0.8);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes dataFlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes streamFlow {
    0% {
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.cookie-banner.show .cookie-banner-content {
    transform: scale(1);
}

.cookie-banner h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.cookie-banner h3 i {
    color: #007bff;
    margin-right: 10px;
}

.cookie-banner p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-banner .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-banner .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cookie-banner .btn-accept {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.cookie-banner .btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.cookie-banner .btn-reject {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.cookie-banner .btn-reject:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.cookie-banner .btn-settings {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.cookie-banner .btn-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #333;
}

.cookie-category {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-category h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category h5 i {
    color: #007bff;
    margin-right: 10px;
}

.cookie-category p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.cookie-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: #28a745;
}

.cookie-toggle.disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active::after {
    transform: translateX(30px);
}

.cookie-details {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

.cookie-details h6 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.cookie-details ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.cookie-details li {
    color: #555;
    margin-bottom: 5px;
}

/* Cookie Status Indicator */
.cookie-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cookie-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.cookie-status i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content,
    .cookie-modal-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .cookie-banner .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-category {
        padding: 20px 15px;
    }
    
    .cookie-status {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content,
    .cookie-modal-content {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .cookie-banner h3 {
        font-size: 1.3rem;
    }
    
    .cookie-modal-close {
        top: 15px;
        right: 20px;
        font-size: 24px;
    }
}

/* Page Overlay when Cookie Banner is shown */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.page-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Cookie Consent Log Styles */
.consent-log {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.consent-log h6 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.consent-log-entry {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
}

.consent-log-entry:last-child {
    margin-bottom: 0;
}

.consent-log-entry .timestamp {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.consent-log-entry .action {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 5px;
}

.consent-log-entry .details {
    color: #555;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Animation for cookie icons */
@keyframes cookieBounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.cookie-icon {
    animation: cookieBounce 2s ease-in-out infinite;
}

/* ===== END COOKIE CONSENT SYSTEM STYLES ===== */

/* ===== ENHANCED FORM PRIVACY STYLES ===== */

/* Privacy Section Headers */
.privacy-section-title {
    background: linear-gradient(45deg, #007bff, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Required Consent Alert */
.alert-primary {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(23, 162, 184, 0.1) 100%);
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 15px;
}

.alert-primary .form-check-label {
    color: #2c3e50;
    font-weight: 500;
}

.alert-primary .form-check-label strong {
    color: #007bff;
}

.alert-primary .form-check-label ul {
    color: #555;
    font-size: 0.9rem;
}

.alert-primary .form-check-label ul li {
    margin-bottom: 5px;
}

/* Optional Consent Alert */
.alert-light {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%);
    border: 1px solid #e9ecef;
    border-radius: 15px;
}

.alert-light h6 {
    color: #6c757d;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.alert-light .form-check-label strong {
    color: #2c3e50;
    font-weight: 600;
}

.alert-light .form-check-label small {
    color: #6c757d;
    line-height: 1.4;
}

/* Success Message for Optional Consents */
.text-success {
    background: rgba(40, 167, 69, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Enhanced Form Checkboxes */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.form-check-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Privacy Links */
.text-decoration-underline:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Form Section Spacing */
#contact form .mb-4 {
    margin-bottom: 2rem !important;
}

/* Enhanced Info Box */
.text-muted {
    background: rgba(108, 117, 125, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #6c757d;
}

.text-muted strong {
    color: #495057;
}

/* Footer Link Styles */
.footer-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
}

.footer-link:focus {
    color: inherit;
    outline: none;
    text-decoration: underline;
}

/* =============================================================================
   TECH GRADIENT EFFECT - Chi Siamo Hero Section
   ============================================================================= */

#tech-grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(45deg, 
        rgba(13, 110, 253, 0.1) 0%, 
        rgba(23, 162, 184, 0.1) 25%, 
        rgba(0, 255, 255, 0.1) 50%, 
        rgba(13, 110, 253, 0.1) 75%, 
        rgba(23, 162, 184, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulviscolo Digitale */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0;
}

.tech-particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(13, 110, 253, 0.6), transparent);
    animation-duration: 12s;
}

.tech-particle:nth-child(3n) {
    background: radial-gradient(circle, rgba(23, 162, 184, 0.7), transparent);
    animation-duration: 10s;
}

.tech-particle:nth-child(5n) {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    animation-duration: 15s;
}

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) translateX(0px) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
        transform: translateY(90vh) translateX(20px) scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(50vh) translateX(-30px) scale(1.2);
    }
    90% { 
        opacity: 0.6; 
        transform: translateY(10vh) translateX(10px) scale(0.8);
    }
    100% { 
        transform: translateY(-10vh) translateX(-20px) scale(0); 
        opacity: 0; 
    }
}

/* Overlay Colorato Dinamico */
.tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, 
        rgba(0, 255, 255, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 80% 70%, 
        rgba(13, 110, 253, 0.15) 0%, 
        transparent 50%),
        radial-gradient(circle at 50% 20%, 
        rgba(23, 162, 184, 0.1) 0%, 
        transparent 50%);
    animation: overlayMove 15s ease-in-out infinite;
}

@keyframes overlayMove {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Effetti Responsivi */
@media (max-width: 768px) {
    .tech-particle {
        width: 2px;
        height: 2px;
    }
    
    #tech-grid-background {
        background-size: 300% 300%;
        animation-duration: 6s;
    }
}

@media (max-width: 480px) {
    .floating-particles {
        opacity: 0.7;
    }
    
    .tech-particle {
        width: 1px;
        height: 1px;
    }
    
    #tech-grid-background {
        background-size: 200% 200%;
        animation-duration: 4s;
    }
}
