/* CSS INTEGRATO */
        :root {
            --bg-color: #030305;
            --bg-surface: rgba(15, 15, 25, 0.6);
            --bg-surface-hover: rgba(25, 25, 40, 0.8);
            --accent-primary: #4f46e5;
            --accent-secondary: #7c3aed;
            --accent-tertiary: #db2777;
            --text-primary: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
            --glow-shadow: 0 0 25px rgba(79, 70, 229, 0.4);
            --transition-smooth: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        }

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

        html {
            scroll-behavior: smooth;
            scroll-snap-type: y proximity;
            font-size: 16px;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
            position: relative;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: 0.3s ease;
        }

        ul {
            list-style: none;
        }

        /* Accessibilità — screen reader only */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Effetti Background */
        .background-effects {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        .glow-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.35;
            animation: float 25s infinite alternate ease-in-out;
        }

        .orb-1 {
            top: -10%;
            left: -5%;
            width: 40vw;
            height: 40vw;
            background: radial-gradient(circle, var(--accent-primary), transparent);
        }

        .orb-2 {
            bottom: -10%;
            right: -5%;
            width: 45vw;
            height: 45vw;
            background: radial-gradient(circle, var(--accent-secondary), transparent);
            animation-delay: -5s;
        }

        .orb-3 {
            top: 40%;
            left: 30%;
            width: 30vw;
            height: 30vw;
            background: radial-gradient(circle, var(--accent-tertiary), transparent);
            opacity: 0.15;
            animation-delay: -10s;
        }

        @keyframes float {
            0%   { transform: translate(0, 0) scale(1); }
            100% { transform: translate(60px, 60px) scale(1.15); }
        }

        /* Glassmorphism */
        .glass-card {
            background: var(--bg-surface);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            box-shadow: var(--glass-shadow);
            transition: var(--transition-smooth);
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            padding: 1.5rem 0;
            transition: var(--transition-smooth);
        }

        header.scrolled {
            padding: 1rem 0;
            background: rgba(3, 3, 5, 0.85);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.7rem;
            font-weight: 800;
            letter-spacing: -1px;
        }

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

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links a {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: white;
        }

        .nav-links a.active:not(.btn) {
            color: var(--accent-primary);
        }

        .mobile-menu-btn {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Typography & Buttons */
        h1, h2, h3 {
            font-weight: 600;
            line-height: 1.2;
        }

        h2 {
            font-size: 2.5rem;
            background: linear-gradient(to right, #fff, var(--text-secondary));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .section-header {
            margin-bottom: 4rem;
        }

        .section-header .line {
            height: 3px;
            width: 60px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
            border-radius: 3px;
            margin-top: 10px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition-smooth);
            border: none;
            gap: 0.5rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            color: white;
        }

        .btn-primary:hover {
            box-shadow: var(--glow-shadow);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            color: white;
            border: 1px solid var(--glass-border);
        }

        .btn-outline:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        /* Hero */
        section {
            padding: 8rem 0;
        }

        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 0;
            overflow: hidden;
            scroll-snap-align: start;
        }

        .video-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: hidden;
            background: #000;
        }

        .bg-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            transform: scale(1.02);
            filter: contrast(1.1);
        }

        .video-overlay-uniform {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(3, 3, 5, 0.82);
            z-index: 2;
        }

        .hero-inner-centered {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
            max-width: 900px;
            position: relative;
            z-index: 3;
            margin: 0 auto;
            padding-top: 5rem;
        }

        .hero-content-centered {
            text-align: center;
            background: rgba(10, 10, 15, 0.45);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 4rem 3rem;
            border-radius: 20px;
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .hero-content-centered h1 {
            font-weight: 300;
        }

        .hero-content-centered .subtitle,
        .hero-content-centered .bio-short {
            margin-left: auto;
            margin-right: auto;
        }

        .hero-ctas-centered {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 2rem;
            width: 100%;
        }

        .badge {
            display: inline-block;
            padding: 0.4rem 1.2rem;
            background: rgba(79, 70, 229, 0.15);
            color: #818cf8;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            border: 1px solid rgba(79, 70, 229, 0.3);
        }

        h1 {
            font-size: clamp(2.2rem, 8vw, 6.5rem);
            margin-bottom: 1.5rem;
            background: linear-gradient(to right, #fff, #64748b);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .subtitle {
            font-size: 1.4rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-weight: 300;
        }

        .bio-short {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin-bottom: 2.5rem;
        }

        /* ==========================================
           LAYOUT A 4 PAGINE SCORREVOLI
        ========================================== */
        #about,
        #solutions,
        #page-end {
            scroll-snap-align: start;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 5rem 0;
        }

        #page-end > section {
            padding: 2.5rem 0;
        }

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

        #about.appear,
        #solutions.appear,
        #page-end.appear {
            animation: sectionReveal 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
        }

        /* Executive Summary */
        .executive-layout {
            display: flex;
            flex-direction: column;
            gap: 3rem;
        }

        .executive-top-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-items: stretch;
        }

        .executive-card-overview,
        .executive-card-expertise {
            padding: 2.5rem;
        }

        .executive-card-overview h3,
        .executive-card-expertise h3 {
            font-size: 1.3rem;
            margin-bottom: 1.2rem;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .executive-card-overview h3 i,
        .executive-card-expertise h3 i {
            color: var(--accent-primary);
        }

        .executive-card-overview p,
        .executive-card-expertise p {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 1rem;
        }

        .executive-card-overview p:last-child,
        .executive-card-expertise p:last-child {
            margin-bottom: 0;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .tech-pill {
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Stats Strip */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            padding: 0;
            overflow: hidden;
        }

        .stat-item {
            text-align: center;
            padding: 2rem 1.5rem;
            border-right: 1px solid var(--glass-border);
        }

        .stat-item:last-child {
            border-right: none;
        }

        .stat-number {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            font-size: 0.78rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 600;
        }

        /* Workflow Architecture Image */
        .workflow-frame {
            position: relative;
            padding: 1px;
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.7), transparent 40%, rgba(219, 39, 119, 0.4));
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
        }

        .workflow-badge {
            position: absolute;
            top: -14px;
            right: 3rem;
            background: var(--bg-color);
            border: 1px solid rgba(79, 70, 229, 0.6);
            border-radius: 50px;
            padding: 0.4rem 1.5rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--accent-primary);
            letter-spacing: 1.5px;
            z-index: 10;
            text-transform: uppercase;
        }

        .workflow-inner {
            background: rgba(15, 15, 25, 0.7);
            border-radius: 20px;
            padding: 2rem;
            overflow: hidden;
            backdrop-filter: blur(20px);
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 300px;
        }

        .workflow-img {
            max-width: 100%;
            max-height: 65vh;
            width: auto;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.05);
            transition: transform 0.3s ease;
        }

        .workflow-img:hover {
            transform: scale(1.02);
        }

        /* Projects */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
        }

        .project-card {
            padding: 2.5rem;
            height: 100%;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
            background: var(--bg-surface-hover);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .card-icon {
            width: 55px;
            height: 55px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--glass-border);
        }

        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1.5rem 0;
        }

        .tags li {
            font-size: 0.75rem;
            padding: 0.3rem 0.8rem;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            color: var(--text-muted);
        }

        .card-link {
            margin-top: auto;
            color: white;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

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

        /* Bookmark Cards (per sezione Guide — vedi sezione_guide.txt) */
        .bookmark-grid {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .bookmark-card {
            display: flex;
            align-items: stretch;
            min-height: 140px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(20, 20, 30, 0.4);
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
        }

        .bookmark-card:hover {
            transform: translateY(-4px);
            background: rgba(30, 30, 45, 0.6);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .bookmark-content {
            flex: 1;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .bookmark-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .bookmark-desc {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.5;
        }

        .bookmark-link {
            font-size: 0.85rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: auto;
        }

        .bookmark-link i {
            color: #ef4444;
        }

        .bookmark-image {
            width: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3.5rem;
            color: rgba(255, 255, 255, 0.5);
            border-left: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* Contact Form */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            overflow: hidden;
        }

        .contact-info {
            padding: 4rem;
            background: rgba(255, 255, 255, 0.02);
            display: flex;
            flex-direction: column;
        }

        .contact-info h2 {
            margin-bottom: 1rem;
        }

        .contact-info > p {
            color: var(--text-secondary);
            line-height: 1.7;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--glass-border);
            transition: 0.3s ease;
        }

        .social-icon:hover {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            transform: translateY(-5px);
        }

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

        .form-group {
            position: relative;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1.2rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: white;
            outline: none;
            font-family: inherit;
            font-size: 1rem;
            transition: border-color 0.3s ease, background 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--accent-primary);
            background: rgba(255, 255, 255, 0.06);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-muted);
        }

        .form-error {
            color: #ef4444;
            font-size: 0.85rem;
            display: none;
            text-align: center;
            padding: 0.6rem 1rem;
            background: rgba(239, 68, 68, 0.08);
            border-radius: 8px;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .form-error a {
            color: #ef4444;
            text-decoration: underline;
        }

        .form-success {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            text-align: center;
            padding: 3rem 2rem;
            height: 100%;
        }

        .form-success i {
            font-size: 3rem;
            color: #10b981;
        }

        .form-success p {
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        .btn-block {
            width: 100%;
        }

        /* Footer */
        footer {
            padding: 2rem 0;
            border-top: 1px solid var(--glass-border);
            margin-top: 5rem;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* Animazioni comparsa */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: 1s ease;
        }

        .fade-in-up.appear {
            opacity: 1;
            transform: translateY(0);
        }

        /* ==========================================
           MOBILE RESPONSIVE
        ========================================== */

        /* Tablet landscape */
        @media (max-width: 992px) {
            .contact-container {
                grid-template-columns: 1fr;
            }

            .executive-top-row {
                grid-template-columns: 1fr;
            }

            .executive-card-overview,
            .executive-card-expertise {
                padding: 2rem;
            }

            .hero-inner-centered {
                padding-top: 2rem;
            }

            .hero-content-centered {
                padding: 2.5rem 2rem;
            }

            .contact-info,
            .contact-form {
                padding: 2.5rem 2rem;
            }
        }

        /* Tablet portrait e smartphone grandi */
        @media (max-width: 768px) {
            /* Nav */
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: #080810;
                padding: 1.5rem;
                flex-direction: column;
                gap: 1.2rem;
                border-bottom: 1px solid var(--glass-border);
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu-btn {
                display: block;
            }

            /* Typography */
            h2 {
                font-size: 1.8rem;
            }

            .subtitle {
                font-size: 1.1rem;
            }

            .bio-short {
                font-size: 0.95rem;
            }

            section {
                padding: 4rem 0;
            }

            #about,
            #solutions,
            #page-end {
                min-height: auto;
                padding: 4rem 0;
            }

            .section-header {
                margin-bottom: 2rem;
            }

            .container {
                padding: 0 1.2rem;
            }

            /* Hero */
            .hero-inner-centered {
                padding-top: 1.5rem;
                padding-bottom: 1.5rem;
            }

            .hero-content-centered {
                padding: 2rem 1.4rem;
                border-radius: 14px;
            }

            .hero-ctas-centered {
                flex-direction: column;
                align-items: stretch;
                gap: 0.8rem;
            }

            .hero-ctas-centered .btn {
                width: 100%;
                text-align: center;
                justify-content: center;
            }

            /* Stats */
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .stat-item {
                border-right: none;
                border-bottom: 1px solid var(--glass-border);
                padding: 1.5rem 1rem;
            }

            .stat-item:last-child {
                border-bottom: none;
            }

            /* Project cards */
            .project-grid {
                grid-template-columns: 1fr;
            }

            .project-card {
                padding: 1.5rem;
            }

            /* Executive Summary */
            .executive-top-row {
                grid-template-columns: 1fr;
            }

            .executive-card-overview,
            .executive-card-expertise {
                padding: 1.5rem;
            }

            .workflow-badge {
                right: 1.5rem;
                font-size: 0.65rem;
                padding: 0.3rem 1rem;
            }

            /* Contact */
            .contact-info,
            .contact-form {
                padding: 1.8rem 1.4rem;
            }

            /* Footer */
            .footer-content {
                flex-direction: column;
                gap: 0.5rem;
                text-align: center;
            }

            /* Bookmark */
            .bookmark-card {
                flex-direction: column;
            }

            .bookmark-image {
                width: 100%;
                height: 90px;
                border-left: none;
                border-top: 1px solid rgba(255, 255, 255, 0.05);
            }

            .bookmark-content {
                padding: 1.2rem;
            }
        }

        /* Smartphone piccoli */
        @media (max-width: 420px) {
            .hero-content-centered {
                padding: 1.5rem 1rem;
                border-radius: 10px;
            }

            .badge {
                font-size: 0.7rem;
                padding: 0.3rem 0.8rem;
            }

            .tech-pill {
                font-size: 0.8rem;
                padding: 0.4rem 0.7rem;
            }

            .stat-number {
                font-size: 2.2rem;
            }
        }
