        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent; /* Rimuove l'highlight al tap su mobile */
            -webkit-touch-callout: none; /* Rimuove il menu contestuale su iOS */
        }

        :root {
            --primary: #1a2332;
            --secondary: #2c3e50;
            --accent: #6b7280; /* neutral / professional accent (replaced light blue) */
            --gold: #d4af37;
            --light: #ecf0f1;
            --white: #ffffff;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--primary);
            overflow-x: hidden;
        }

        /* Navigation */
        nav {
            position: fixed;
            width: 100%;
            background: rgba(26, 35, 50, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem 5%;
            z-index: 1000;
            transition: all 0.3s;
        }

        nav.scrolled {
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--white);
            letter-spacing: 2px;
        }

        .logo span {
            color: var(--gold);
        }

        /* Logo immagine: ottimizzazione e fallback */
        .logo__img {
            display: block;
            height: 60px; /* poco più grande su desktop */
            width: auto;
            max-width: 280px; /* leggermente più largo su desktop */
            object-fit: contain;
        }

        /* Logo specifico per la pagina 'Lavora con noi' (posizionato sotto l'intro) */
        .job-logo {
            text-align: center;
            margin-top: 1.5rem;
        }

        .job-logo__img {
            display: inline-block;
            width: clamp(140px, 50%, 350px);
            max-width: 100%;
            height: auto;
            object-fit: contain;
        }

        /* Riduci logo su schermi medi */
        @media (max-width: 968px) {
            .logo__img {
                height: 52px; /* leggero aumento rispetto a prima */
                max-width: 210px;
            }
        }

        @media (max-width: 480px) {
            .logo__img {
                height: 46px; /* piccolo aumento mobile */
                max-width: 190px;
            }
        }

        /* Mantieni fallback testuale nascosto ma accessibile per i non vedenti */
        .logo--text-fallback {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2.5rem;
        }

        .nav-links a {
            color: var(--white);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            gap: 5px;
        }

        .menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--white);
            transition: 0.3s;
        }

        /* Hamburger -> X transformation */
        .menu-toggle.open span {
            background: var(--white);
        }

        .menu-toggle.open span:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
            width: 24px;
        }

        .menu-toggle.open span:nth-child(2) {
            opacity: 0;
            transform: translateX(-10px);
        }

        .menu-toggle.open span:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
            width: 24px;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--white);
            overflow: hidden;
        }

        /* Video background */
        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: translate(-50%, -50%);
            z-index: 0;
        }

        /* Gradient overlay to improve text contrast */
        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(26, 35, 50, 0.6), rgba(107, 114, 128, 0.4)); /* updated to neutral accent */
            z-index: 1;
        }

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

        .hero-content h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            font-weight: 700;
            text-shadow: 0 8px 30px rgba(0,0,0,0.6);
        }

        .hero-content .highlight {
            color: var(--gold);
        }

        .hero-content p {
            font-size: 1.4rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2.5rem;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-primary {
            background: var(--gold);
            color: var(--primary);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }

        .btn-secondary:hover {
            background: var(--white);
            color: var(--primary);
        }

        /* Services CTA: center the button and match hero button styling */
        .services-cta {
            display: flex;
            justify-content: center;
            margin-top: 2.5rem;
        }

        .services-cta .btn {
            /* ensure same sizing/shape as hero button */
            padding: 1rem 2.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
        }

        .btn-more__icon {
            margin-left: 0.6rem;
            flex-shrink: 0;
        }

        /* About Section */
        .about {
            padding: 6rem 5%;
            background: var(--light);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.8rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .section-subtitle {
            text-align: center;
            color: var(--accent);
            font-size: 1.2rem;
            margin-bottom: 4rem;
        }

        .about-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            margin-top: 3rem;
        }

        .about-card {
            background: var(--white);
            padding: 2.5rem;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .about-card:hover {
            transform: translateY(-10px);
        }

        .about-card h3 {
            font-size: 1.6rem;
            margin-bottom: 1rem;
            color: #000000; /* titoli 'Chi siamo' in nero */
        }

        .about-card p {
            color: var(--secondary);
            line-height: 1.8;
        }

        /* Services Section */
        .services {
            padding: 6rem 5%;
            background: var(--white);
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }

        /* Large photo that spans two card slots on desktop */
        .service-photo-large {
            grid-column: span 2;
            min-height: 360px;
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            display: block;
        }

        .service-photo-large__img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .service-card {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            padding: 2.5rem;
            border-radius: 15px;
            color: var(--white);
            position: relative;
            overflow: hidden;
            transition: all 0.3s;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            transition: 0.5s;
        }

        .service-card:hover::before {
            transform: scale(1.2);
        }

        .service-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
        }

        .service-icon svg {
            width: 3rem;
            height: 3rem;
            display: block;
            margin-bottom: 1rem;
            color: inherit;
        }

        .service-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            position: relative;
        }

        .service-card p {
            opacity: 0.9;
            position: relative;
        }

        /* Certifications Section */
        .certifications {
            padding: 6rem 5%;
            background: var(--primary);
            color: var(--white);
        }

        .cert-highlight {
            background: rgba(212, 175, 55, 0.1);
            border-left: 4px solid var(--gold);
            padding: 2rem;
            border-radius: 10px;
            margin: 2rem 0;
        }

        .cert-highlight h3 {
            color: var(--gold);
            font-size: 1.25rem; /* match other card headings */
            margin-bottom: 1rem;
        }

        /* Ensure certification text size matches global content */
        .certifications p,
        .cert-highlight p {
            font-size: 1rem;
            color: var(--secondary);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        /* Emphasized certification lines that should appear white */
        .cert-emphasis {
            color: var(--white);
            font-weight: 400; /* normal weight */
        }

        /* Higher-specificity rule to override .certifications p selector */
        .cert-highlight .cert-emphasis {
            color: var(--white);
            font-weight: 400;
        }

        /* Ensure any cert-emphasis inside the certifications section is white (higher specificity) */
        .certifications .cert-emphasis {
            color: var(--white) !important;
            font-weight: 400;
        }

        .certifications .cert-list li {
            font-size: 1rem;
        }

        .cert-list {
            list-style: none;
            padding-left: 0;
        }

        .cert-list li {
            padding: 0.8rem 0;
            padding-left: 2rem;
            position: relative;
            font-size: 1.1rem;
        }

        .cert-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--gold);
            font-weight: bold;
            font-size: 1.3rem;
        }

        /* Technology Section */
        .technology {
            padding: 6rem 5%;
            background: var(--light);
        }

        .tech-showcase {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            margin-top: 3rem;
        }

        /* Alternating layout */
        .tech-showcase:nth-child(even) {
            direction: rtl;
        }

        .tech-showcase:nth-child(even) .tech-content,
        .tech-showcase:nth-child(even) .tech-image {
            direction: ltr;
        }

        .tech-image {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, var(--accent), var(--secondary)); /* fallback */
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            display: block;
        }

        .tech-image__img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* ritaglia per occupare il rettangolo */
            display: block;
            border-radius: 15px; /* mantieni gli angoli arrotondati */
        }


        .tech-content h3 {
            font-size: 2.4rem; /* increased to emphasize section headings */
            margin-bottom: 1.8rem;
            color: var(--primary);
        }

        .tech-features {
            list-style: none;
        }

        .tech-features li {
            padding: 1rem 0;
            padding-left: 2.5rem;
            position: relative;
            font-size: 1.1rem;
            color: var(--secondary);
        }

        .tech-features li::before {
            content: '▶';
            position: absolute;
            left: 0;
            color: var(--accent);
        }

        /* Contact Section */
        .contact {
            padding: 6rem 5%;
            background: var(--white);
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            margin-top: 3rem;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
        }

        .contact-icon {
            font-size: 2rem;
            color: var(--accent);
            min-width: 50px;
        }

        .contact-item h4 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: var(--primary);
        }

        .contact-item p {
            color: var(--secondary);
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--primary);
        }

        .form-group input,
        .form-group textarea {
            padding: 1rem;
            border: 2px solid var(--light);
            border-radius: 8px;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }

        .form-group input[type="file"] {
            padding: 0.8rem;
            border: 2px solid var(--light);
            border-radius: 8px;
            font-family: inherit;
            background: var(--white);
            cursor: pointer;
        }

        .form-group input[type="file"]:focus {
            outline: none;
            border-color: var(--accent);
        }

        .form-group input[type="date"] {
            padding: 1rem;
            border: 2px solid var(--light);
            border-radius: 8px;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .form-group input[type="date"]:focus {
            outline: none;
            border-color: var(--accent);
        }

        .privacy-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            cursor: pointer;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .privacy-checkbox input[type="checkbox"] {
            margin-top: 0.2rem;
            cursor: pointer;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .privacy-link {
            color: var(--accent);
            text-decoration: underline;
            cursor: pointer;
        }

        .privacy-link:hover {
            color: var(--primary);
        }

        .form-group button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Modal Privacy Policy */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background-color: var(--white);
            margin: 5% auto;
            padding: 2.5rem;
            border-radius: 15px;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .modal-close {
            color: var(--secondary);
            float: right;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
            position: absolute;
            right: 1.5rem;
            top: 1.5rem;
            line-height: 1;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: var(--primary);
        }

        .modal-content h2 {
            color: var(--primary);
            margin-bottom: 1.5rem;
            padding-right: 2rem;
        }

        .modal-content h3 {
            color: var(--accent);
            margin-top: 1.5rem;
            margin-bottom: 0.8rem;
            font-size: 1rem;
        }

        .privacy-content {
            color: var(--secondary);
            line-height: 1.8;
        }

        .privacy-content p {
            margin-bottom: 1rem;
        }

        .privacy-content ul {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
        }

        .privacy-content li {
            margin-bottom: 0.5rem;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--light);
        }

        /* Footer */
        footer {
            background: var(--primary);
            color: var(--white);
            padding: 3rem 5%;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 4rem;
            margin-bottom: 2rem;
        }

        .footer-column {
            display: flex;
            flex-direction: column;
        }

        .footer-company .logo {
            margin-bottom: 1.5rem;
        }

        .footer-info p {
            margin-bottom: 0.8rem;
            opacity: 0.9;
            line-height: 1.6;
        }

        .footer-info p strong {
            opacity: 1;
            font-size: 1.1rem;
        }

        .footer-links h3,
        .footer-hours h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--gold);
        }

        .footer-nav {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .footer-nav a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.9;
            transition: all 0.3s;
            position: relative;
            padding-left: 0;
        }

        .footer-nav a:hover {
            opacity: 1;
            color: var(--gold);
            padding-left: 10px;
        }

        .footer-nav a::before {
            content: '→';
            position: absolute;
            left: -15px;
            opacity: 0;
            transition: all 0.3s;
            color: var(--gold);
        }

        .footer-nav a:hover::before {
            opacity: 1;
            left: -10px;
        }

        /* Ensure email and phone links inside footer info are white (not default blue) */
        footer .footer-info a {
            color: var(--white);
            text-decoration: none;
            opacity: 0.95;
        }

        footer .footer-info a:hover {
            color: var(--gold);
            opacity: 1;
            text-decoration: underline;
        }

        /* Ensure phone links always match site styling (prevents blue on mobile when numbers are auto-linked) */
        a[href^="tel"] {
            color: inherit;
            text-decoration: none;
            opacity: 0.95;
        }

        a[href^="tel"]:hover {
            color: var(--gold);
            text-decoration: underline;
            opacity: 1;
        }

        /* Make mailto/tel links in contact sections match site style (not default blue) */
        .contact-text a,
        .contact-info a,
        .contact-item a {
            color: inherit; /* use surrounding text color */
            text-decoration: none;
            opacity: 0.95;
        }

        .contact-text a:hover,
        .contact-info a:hover,
        .contact-item a:hover {
            color: var(--gold);
            text-decoration: underline;
            opacity: 1;
        }

        /* Job-note email link should match footer/contact link styling */
        .job-note a,
        .contact-link {
            color: inherit;
            text-decoration: none;
            opacity: 0.95;
            font-weight: 600;
        }

        .job-note a:hover,
        .contact-link:hover {
            color: var(--gold);
            text-decoration: underline;
            opacity: 1;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 2rem;
            margin-top: 2rem;
            text-align: center;
        }

        .footer-bottom p {
            opacity: 0.8;
            margin: 0;
        }

        /* Legal/company identifiers (Partita IVA / Codice Fiscale) */
        .footer-legal {
            margin-top: 0.45rem;
            font-size: 0.95rem;
            opacity: 0.9;
            color: var(--white);
            font-weight: 400; /* ensure normal weight */
            line-height: 1.4;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .menu-toggle {
                display: flex;
            }

            /* Modern dropdown-style mobile menu (not full-page) */
            .nav-links {
                position: absolute;
                top: calc(100% + 10px);
                right: 5%;
                flex-direction: column;
                background: rgba(26,35,50,0.98);
                padding: 0.7rem;
                gap: 0.6rem; /* increased spacing between items */
                width: min(320px, 90%);
                border-radius: 12px;
                box-shadow: 0 8px 30px rgba(0,0,0,0.28);
                transform: translateY(-8px) scale(0.98);
                opacity: 0;
                pointer-events: none;
                transition: opacity 220ms ease, transform 220ms ease;
                z-index: 1100;
            }

            .nav-links::before {
                content: "";
                position: absolute;
                top: -8px;
                right: 22px;
                width: 14px;
                height: 14px;
                background: rgba(26,35,50,0.98);
                transform: rotate(45deg);
                border-radius: 2px;
                box-shadow: -4px -4px 10px rgba(0,0,0,0.06);
            }

            .nav-links.active {
                transform: translateY(0) scale(1);
                opacity: 1;
                pointer-events: auto;
            }

            .nav-links a {
                display: block;
                padding: 0.6rem 0.9rem; /* slightly larger vertical spacing */
                border-radius: 8px;
                color: var(--white);
                font-size: 0.98rem;
            }

            .nav-links a:hover {
                background: rgba(255,255,255,0.03);
                color: var(--gold);
            }

            /* Adjusting text sizes for better mobile readability */
            .hero-content h1 {
                font-size: 2.4rem;
                line-height: 1.3;
            }

            .hero-content p {
                font-size: 1.1rem;
                line-height: 1.5;
                margin-bottom: 1.5rem;
            }

            .section-title {
                font-size: 1.6rem;
                line-height: 1.35;
                margin-bottom: 0.8rem;
            }

            .section-subtitle {
                font-size: 1rem;
                line-height: 1.5;
                margin-bottom: 2.5rem;
            }

            /* Tech showcase mobile adjustments */
            .tech-showcase,
            .contact-grid {
                grid-template-columns: 1fr;
            }

            /* Footer mobile adjustments */
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 2.5rem;
            }

            .footer-hours {
                margin-top: 0;
            }

            /* Modal mobile adjustments */
            .modal-content {
                margin: 10% auto;
                padding: 1.5rem;
                width: 95%;
                max-height: 90vh;
            }

            .modal-close {
                right: 1rem;
                top: 1rem;
                font-size: 1.5rem;
            }

            .modal-actions {
                flex-direction: column;
            }

            .modal-actions .btn {
                width: 100%;
            }
            
            /* Reset direction on mobile and ensure title appears first */
            .tech-showcase,
            .tech-showcase:nth-child(even) {
                direction: ltr;
            }
            
            .tech-showcase {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                margin-top: 2rem;
            }
            
            .tech-content {
                order: 1;
            }

            .tech-content h3 {
                font-size: 1.8rem; /* slightly larger on tablet for clarity */
                margin-bottom: 1.2rem;
                line-height: 1.35;
            }

            /* Card and small-title adjustments on mobile */
            .about-card h3 {
                font-size: 1.1rem;
                margin-bottom: 0.6rem;
            }

            .service-card h3 {
                font-size: 1.15rem;
                margin-bottom: 0.6rem;
            }

            .cert-highlight h3 {
                font-size: 1.15rem;
            }

            .tech-content p {
                font-size: 1rem;
                line-height: 1.6;
            }
            
            .tech-image {
                order: 2;
                height: 250px;
            }

            /* Ensure contact section boxes align with page padding on mobile */
            .contact-text {
                padding: 0; /* remove extra internal padding so text aligns with other sections */
                background: transparent; /* keep visual consistent on small screens */
            }

            .contact-text p {
                margin: 0 0 0.8rem 0;
            }

            .contact-map > div {
                min-height: 200px;
            }

            /* Service cards mobile adjustments */
            .service-card {
                padding: 1.8rem;
            }

            .service-card h3 {
                font-size: 1.3rem;
                margin-bottom: 0.8rem;
            }

            .service-card p {
                font-size: 0.95rem;
                line-height: 1.5;
            }

            /* Make the large photo full-width on smaller screens */
            .service-photo-large {
                grid-column: 1 / -1;
                min-height: 220px;
            }
        }

        @media (max-width: 600px) {
            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 80%;
            }

            .services-cta .btn {
                width: auto;
                min-width: 200px;
                max-width: 90%;
                padding: 1rem 2rem;
            }
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--gold);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            text-decoration: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            z-index: 999;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .back-to-top svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }

        @media (max-width: 768px) {
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 40px;
                height: 40px;
            }

            .back-to-top svg {
                width: 20px;
                height: 20px;
            }
        }

        /* ===========================================
           PAGINA "LAVORA CON NOI" - Layout più ampio
           =========================================== */
        .careers-section {
            padding-top: 8rem;
        }

        .careers-grid {
            display: grid;
            grid-template-columns: 1fr;
            max-width: 1000px; /* Più ampio rispetto a prima (era 800px) */
            margin: 0 auto;
            gap: 2rem;
        }

        .careers-intro {
            margin-bottom: 1rem;
        }

        .careers-intro p {
            margin-bottom: 1rem;
            line-height: 1.7;
        }

        .careers-positions {
            margin: 1.5rem 0;
        }

        .careers-positions-title {
            margin-bottom: 0.75rem;
            font-weight: 500;
        }

        .careers-list {
            margin: 0 0 0.75rem 1.25rem;
            padding: 0;
        }

        .careers-list li {
            margin-bottom: 0.5rem;
        }

        .careers-cta {
            margin-top: 0.5rem;
        }

        @media (max-width: 768px) {
            .careers-grid {
                max-width: 100%;
                padding: 0;
            }
        }

        /* ===========================================
           PAGINA SERVIZI DETTAGLIATI
           =========================================== */
        .services-detail-section {
            padding-top: 8rem;
        }

        .tech-content p {
            margin-bottom: 1.5rem;
        }

        /* ===========================================
           UTILITY CLASSES (per rimuovere inline styles)
           =========================================== */
        .logo-link {
            text-decoration: none;
        }

        .section-title--white {
            color: white;
        }

        .section-subtitle--gold {
            color: var(--gold);
        }

        .cert-emphasis--spaced {
            margin-bottom: 1.5rem;
        }

        .cert-emphasis--centered {
            text-align: center;
            margin-top: 2rem;
        }

        .contact-text-box {
            background: rgba(255, 255, 255, 0.02);
            padding: 1.25rem;
            border-radius: 8px;
        }

        .contact-cta {
            margin-bottom: 0;
            font-weight: 700;
        }

        .map-wrapper {
            border-radius: 8px;
            overflow: hidden;
            min-height: 260px;
        }

        .map-wrapper iframe {
            border: 0;
            min-height: 350px;
            width: 100%;
            height: 100%;
        }

        .footer-logo-wrapper {
            margin-bottom: 1.5rem;
        }

        .mt-1 {
            margin-top: 1rem;
        }

        /* ===========================================
           ANIMAZIONI
           =========================================== */
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        .service-card:hover {
            transform: translateY(-10px) scale(1.02);
        }

        /* Typographic hierarchy overrides (global) */
        /* Desktop scale: Section (H2) > Card titles (H3) > Subtitles */
        .section-title {
            font-size: 2.4rem; /* consistent H2 */
            font-weight: 700;
            line-height: 1.2;
        }

        .section-subtitle {
            font-size: 1.05rem;
            color: var(--accent);
            line-height: 1.5;
            font-weight: 500;
        }

        /* Card / block headings */
        .about-card h3,
        .service-card h3,
        .tech-content h3,
        .cert-highlight h3 {
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.25;
            margin-bottom: 0.9rem;
        }

        /* Smaller subheads */
        .contact-item h4,
        .footer-links h3,
        .footer-hours h3 {
            font-size: 1.05rem;
            font-weight: 700;
        }

        /* Ensure hero remains prominent but not overwhelming */
        .hero-content h1 {
            font-size: 3.2rem;
            line-height: 1.08;
        }

        /* Fine tune for very small screens */
        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 2.1rem;
            }

            .section-title {
                font-size: 1.4rem;
            }

            .about-card h3,
            .service-card h3,
            .tech-content h3 {
                font-size: 1rem;
            }
        }
/* ===========================================
   COOKIE CONSENT BANNER
   =========================================== */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 2rem));
    z-index: 9999;
    width: min(560px, calc(100vw - 2rem));
    background: #fff;
    color: #2c3e50;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    transition: transform 0.36s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    opacity: 0;
    border-top: 3px solid var(--gold, #d4af37);
}

#cookie-banner[hidden] {
    display: none;
}

#cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    display: flex;
}

#cookie-banner p {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #444;
}

#cookie-banner p a {
    color: var(--gold, #d4af37);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn-accept,
.cookie-btn-reject {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--gold, #d4af37);
    color: #1a2332;
}

.cookie-btn-reject {
    background: transparent;
    color: #7f8c8d;
    border: 1px solid #ccc;
}

.cookie-btn-accept:hover { filter: brightness(1.1); }
.cookie-btn-reject:hover { background: #f0f0f0; }

@media (max-width: 520px) {
    #cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(calc(100% + 2rem));
    }
    #cookie-banner.visible {
        transform: translateX(0) translateY(0);
    }
}

/* Link "Gestisci cookie" nel footer */
.footer-legal a,
.footer-legal #cookie-manage {
    color: var(--white);
    text-decoration: none;
    opacity: 0.95;
    transition: all 0.3s;
}

.footer-legal a:hover,
.footer-legal #cookie-manage:hover {
    color: var(--gold);
    opacity: 1;
    text-decoration: underline;
}

/* Developer Link Styles */
.developer-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.developer-link:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.35);
}
