* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Smooth Scrolling per tutta la pagina */
html, body {
    scroll-behavior: smooth !important;
}

.footer-service-link {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-service-link:hover {
    color: #3b82f6;
    padding-left: 0.5rem;
}

@media (max-width: 768px) {
    .footer-service-link {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
}


/* Offset per compensare l'header fisso */
#chi-siamo {
    scroll-margin-top: 100px;
}

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .header {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: bold;
            color: #2563eb;
        }

        .logo i {
            margin-right: 10px;
            font-size: 2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #2563eb;
        }

        .contact-info {
            color: #2563eb;
            font-weight: bold;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(59,130,246,0.2)), url('background6.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 100vh;
            display: flex;
            align-items: center;
            color: white;
            position: relative;
            margin-top: 80px;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .hero-text {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            padding: 2.5rem;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .hero-title {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .cta-button {
            background: #10b981;
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }

        .cta-button:hover {
            background: #059669;
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(16,185,129,0.4);
        }

        .hero-image {
            text-align: center;
        }

        .hero-avatar {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: linear-gradient(45deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            font-size: 8rem;
            color: white;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        /* Promo Bar */
       .promo-bar {
        background: #1f2937;
        color: white;
        text-align: center;
        padding: 0.8rem 1rem;
        margin-top: 80px;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1001;
        animation: promoSlideDown 0.6s ease-out;
        }

        .promo-bar .container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        position: relative;
        }

        .promo-text {
        font-size: 1rem;
        font-weight: 500;
        }

        .promo-button {
        background: #2563eb;
        color: white;
        padding: 0.4rem 0.9rem;
        border: none;
        border-radius: 25px;
        margin-left: 0.5rem;
        cursor: pointer;
        font-weight: bold;
        font-size: 0.85rem;
        transition: transform 0.2s ease, background 0.3s ease;
        }

        .promo-button:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        }

        .promo-close {
        position: absolute;
        right: 0;
        background: transparent;
        border: none;
        color: #e5e7eb;
        font-size: 1.1rem;
        cursor: pointer;
        padding: 0 0.5rem;
        transition: transform 0.2s ease, color 0.2s ease;
        }

        .promo-close:hover {
        color: #ffffff;
        transform: scale(1.1);
        }

        @keyframes promoSlideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
        }

       @media (max-width: 768px) {
  .promo-bar {
    padding: 0.7rem 0.8rem;
  }

  .promo-text {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .promo-button {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
  }

  .promo-close {
    display: none;
  }
}







        /* Services Section */
        .services {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.subsection-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-text {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center; /* Centra tutte le card */
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    width: 350px; /* Larghezza fissa per mantenere uniformità */
    flex-shrink: 0; /* Impedisce alle card di rimpicciolirsi */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
}

        /* Features Section */
        .features {
            padding: 5rem 0;
            background: linear-gradient(135deg, #2563eb, #1e40af);
            color: white;
        }

        .features-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .features-list {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            padding: 2.5rem;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .feature-item i {
            background: #10b981;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 0.9rem;
        }

        .features-text h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .features-text p {
            font-size: 1.2rem;
            opacity: 0.9;
            line-height: 1.6;
        }

        /* Locations Section */
        .locations {
            padding: 5rem 0;
            background: #f8fafc;
        }

        .locations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .location-card {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .location-card:hover {
            transform: translateY(-5px);
        }

        .location-icon {
            width: 60px;
            height: 60px;
            background: #ef4444;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: white;
            font-size: 1.5rem;
        }

        .location-title {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #1f2937;
        }

        .location-description {
            color: #6b7280;
            font-size: 0.9rem;
        }

        /* Testimonials */
        .testimonials {
            padding: 5rem 0;
            background: white;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .testimonial-card {
            background: #f8fafc;
            padding: 2rem;
            border-radius: 15px;
            position: relative;
        }

        .testimonial-card::before {
            content: '"';
            position: absolute;
            top: -10px;
            left: 20px;
            font-size: 4rem;
            color: #2563eb;
            opacity: 0.3;
        }

        .testimonial-text {
            color: #4b5563;
            font-style: italic;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
        }

        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(45deg, #2563eb, #3b82f6);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 1rem;
        }

        .author-info h4 {
            font-weight: bold;
            color: #1f2937;
        }

        .stars {
            color: #fbbf24;
            margin-bottom: 0.5rem;
        }

        /* Footer */
        .footer {
            background: #1f2937;
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: #2563eb;
        }

        .footer-section p,
        .footer-section a {
            color: #d1d5db;
            text-decoration: none;
            margin-bottom: 0.5rem;
            display: block;
        }

        .footer-section a:hover {
            color: #2563eb;
        }

        .contact-form {
            display: grid;
            gap: 1rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: none;
            border-radius: 8px;
            background: #374151;
            color: white;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #9ca3af;
        }

        .form-group select {
            width: 100%;
            padding: 0.875rem;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
            background: #f9fafb;
            color: #000000;
        }

        .form-group select:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background: white;
        }

        .submit-btn {
            background: #2563eb;
            color: white;
            padding: 0.8rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s;
        }

        .submit-btn:hover {
            background: #1d4ed8;
        }

        .footer-bottom {
            border-top: 1px solid #374151;
            padding-top: 1rem;
            text-align: center;
            color: #9ca3af;
            font-size: 0.9rem;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-title {
                font-size: 2.2rem;
            }

            .hero-avatar {
                width: 200px;
                height: 200px;
                font-size: 5rem;
            }

            .features-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .contact-info {
                display: none;
            }

            .promo-text {
                font-size: 1rem;
            }

            .promo-button {
                margin-left: 0.5rem;
                margin-top: 0.5rem;
                display: inline-block;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.8s ease-out;
        }

        /* Floating elements */
        .floating {
            animation: floating 3s ease-in-out infinite;
        }

        @keyframes floating {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }



        /* CSS per il popup */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .popup-overlay.active {
            display: flex;
            opacity: 1;
        }

        .popup-container {
            background: white;
            border-radius: 20px;
            padding: 0;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: scale(0.8) translateY(50px);
            transition: transform 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .popup-overlay.active .popup-container {
            transform: scale(1) translateY(0);
        }

        .popup-header {
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            color: white;
            padding: 2rem;
            border-radius: 20px 20px 0 0;
            position: relative;
        }

        .close-popup {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .close-popup:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .popup-title {
            font-size: 1.8rem;
            font-weight: bold;
            margin: 0;
            padding-right: 50px;
        }

        .popup-subtitle {
            opacity: 0.9;
            margin-top: 0.5rem;
            font-size: 1rem;
        }

        .popup-body {
            padding: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #374151;
        }

        .form-group input,
        .form-group textarea {
            color: #000000;
            width: 100%;
            padding: 0.875rem;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
            background: #f9fafb;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background: white;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .highlighted-field {
            color: #000000 !important;
            background: #eff6ff !important;
            border-color: #2563eb !important;
            font-weight: 600;
        }

        .submit-button {
            width: 100%;
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 1rem;
        }

        .submit-button:hover {
            background: linear-gradient(135deg, #059669, #047857);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
        }

        .submit-button:active {
            transform: translateY(0);
        }

        /* Animazione di caricamento */
        .submit-button.loading {
            background: #6b7280;
            cursor: not-allowed;
            position: relative;
            overflow: hidden;
        }

        .submit-button.loading::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Stili per le service cards clickabili */
        .service-card {
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .service-card:hover::before {
            opacity: 1;
        }

        .service-card:active {
            transform: translateY(-5px) scale(0.98);
        }

        /* Messaggio di successo */
        .success-message {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .success-icon {
            width: 80px;
            height: 80px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: white;
            font-size: 2rem;
        }

        .success-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: #065f46;
            margin-bottom: 0.5rem;
        }

        .success-text {
            color: #6b7280;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .popup-container {
                width: 95%;
                margin: 1rem;
            }

            .popup-header {
                padding: 1.5rem;
            }

            .popup-title {
                font-size: 1.5rem;
            }

            .popup-body {
                padding: 1.5rem;
            }
        }















        /* About Us Section */
.about-us {
    padding: 5rem 0;
    background: white;
}

.about-content {
    margin-top: 3rem;
}

.about-main {
    margin-bottom: 4rem;
}

.about-intro {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid #2563eb;
    margin-bottom: 3rem;
}

.about-intro p {
    font-size: 1.1rem;
    color: #1f2937;
    line-height: 1.8;
    margin-top: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #2563eb;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2563eb;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 600;
}

.about-expertise {
    margin: 4rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.expertise-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.expertise-card:hover {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h4 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    font-weight: bold;
}

.expertise-card p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-mission {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 3rem;
    border-radius: 25px;
    margin-top: 4rem;
}

.mission-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-text h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.mission-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.mission-values {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.value-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-item i {
    background: #10b981;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.about-us {
    scroll-margin-top: 80px;
}

/* Responsive for About Us */
@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .about-intro {
        padding: 1.5rem;
    }
    
    .about-mission {
        padding: 2rem 1.5rem;
    }
}


@media (max-width: 768px) {
  .nav {
    justify-content: center;
  }

  .logo {
    margin: 0 auto;
  }

  .nav-links {
    display: none;
  }

  .contact-info {
    display: none;
  }
}


/* Correzione scroll per header + promo bar */
#home,
#servizi,
#chi-siamo,
#contatti,
#zone-servizio {
    scroll-margin-top: 150px;
}



