
        /* ============================================================
           CSS - STILI GENERALI DELLA PAGINA
           ============================================================ */
        :root {
            --navy: #0a1f44;
            --ink: #14213d;
            --muted: #5d6d7e;
            --paper: #ffffff;
            --gold: #d7b25d;
            --soft: #f6f9fd;
            --line: #e9eef5;
            --shadow: 0 18px 50px rgba(10,31,68,.13);
            --radius: 28px;
            --max: 1160px;
        }


        body {
            margin: 0;
            font-family: "Segoe UI",Arial,sans-serif;
            color: var(--ink);
            background: #ffffff;
            line-height: 1.65;
        }

        a {
            color: inherit;
            text-decoration: none
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(255,255,255,.92);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(10,31,68,.08);
        }

        .nav {
            max-width: var(--max);
            margin: auto;
            min-height: 76px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 28px;
            padding: 0 24px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 14px;
            font-weight: 800;
            color: var(--navy);
        }

            .brand img {
                width: 42px;
                height: 42px;
                object-fit: contain;
            }

        .nav-links {
            display: flex;
            gap: 24px;
            align-items: center;
            font-size: 14px;
            font-weight: 650;
            color: #41556e;
        }

            .nav-links a {
                position: relative;
                padding: 26px 0;
            }

                .nav-links a.active,
                .nav-links a:hover {
                    color: var(--navy);
                }

                    .nav-links a.active:after,
                    .nav-links a:hover:after {
                        content: "";
                        position: absolute;
                        left: 0;
                        right: 0;
                        bottom: 18px;
                        height: 2px;
                        background: var(--navy);
                        border-radius: 99px;
                    }


        .menu-toggle {
            display: none;
            border: 0;
            background: transparent;
            font-size: 30px;
            color: var(--navy);
            cursor: pointer;
        }

        .hero {
            position: relative;
            overflow: hidden;
            min-height: 560px;
            padding: 115px 24px 95px;
        }

        .hero-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 112%;
            object-fit: cover;
            object-position: center top;
            transform: translateY(0) scale(1.04);
            will-change: transform;
            z-index: 0;
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg,rgba(10,31,68,.58),rgba(10,31,68,.42),rgba(10,31,68,.25));
            z-index: 1;
        }

        .hero-inner {
            position: relative;
            z-index: 2;
            max-width: var(--max);
            min-height: 350px;
            margin: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .hero-content {
            max-width: 860px;
            margin: auto
        }

        h1 {
            font-size: clamp(42px,6vw,78px);
            font-weight: 600;
            line-height: 1;
            margin: 0 0 22px;
            color: #ffffff;
            letter-spacing: -1px;
            text-shadow: 0 5px 24px rgba(0,0,0,.65);
        }

        .eyebrow {
            text-transform: uppercase;
            letter-spacing: 3px;
            font-size: 13px;
            font-weight: 600;
            color: var(--gold);
            margin-bottom: 28px;
            text-shadow: 0 3px 12px rgba(0,0,0,.60);
        }

        .hero-subtitle {
            font-size: clamp(16px,2vw,21px);
            color: rgba(255,255,255,.92);
            max-width: 780px;
            margin: 0 auto;
            text-shadow: 0 3px 14px rgba(0,0,0,.55);
        }

        .section {
            position: relative;
            z-index: 3;
            max-width: var(--max);
            margin: auto;
            padding: 76px 24px;
            background: #ffffff;
        }

        .section-title {
            text-align: center;
            font-size: clamp(28px,4vw,44px);
            line-height: 1.1;
            margin: 0 0 12px;
            color: var(--navy);
            letter-spacing: -1px;
        }

            .section-title:after {
                content: "";
                display: block;
                width: 72px;
                height: 3px;
                margin: 16px auto 0;
                background: linear-gradient(90deg,var(--navy),#6ec1ff);
                border-radius: 99px;
            }

        .section-subtitle {
            text-align: center;
            max-width: 850px;
            margin: 0 auto 42px;
            color: var(--muted);
            font-size: 16px;
        }

        .portfolio-intro {
            display: grid;
            grid-template-columns: .85fr 1.15fr;
            gap: 42px;
            align-items: start;
        }

        .portfolio-side {
            position: sticky;
            top: 104px;
            background: var(--paper);
            border: 1px solid rgba(10,31,68,.08);
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow);
        }

            .portfolio-side h2 {
                margin: 0 0 12px;
                color: var(--navy);
                font-size: 28px;
                line-height: 1.15;
            }

            .portfolio-side p {
                margin: 0;
                color: var(--muted)
            }

        .portfolio-copy {
            font-size: 16px;
            color: #30435a;
            text-align: justify;
            hyphens: auto;
        }

            .portfolio-copy p {
                margin: 0 0 18px
            }

        .keyword {
            color: var(--navy);
            font-weight: 800
        }

        .projects-list {
            display: grid;
            gap: 22px
        }

        .project-card {
            border: 1px solid var(--line);
            border-radius: 26px;
            background: #ffffff;
            overflow: hidden;
            box-shadow: 0 12px 34px rgba(10,31,68,.08);
            transition: box-shadow .25s ease,border-color .25s ease,transform .25s ease;
        }

            .project-card:hover {
                border-color: #6ec1ff;
                box-shadow: 0 20px 46px rgba(10,31,68,.14);
                transform: translateY(-3px);
            }

        .project-header {
            display: grid;
            grid-template-columns: 260px 1fr auto;
            align-items: center;
            gap: 26px;
            padding: 22px;
            cursor: pointer;
            border: 0;
            background: transparent;
            width: 100%;
            text-align: left;
            font-family: inherit;
            color: inherit;
        }

        .project-thumb {
            width: 100%;
            height: 180px;
            border-radius: 0px;
            object-fit: contain;
            object-position: center;
            object-position: center;
            display: block;
            background: ##ffffff;
        }

        .pipeline-visual-title {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin: 0 0 8px;
            line-height: 1.25;
        }

            .pipeline-visual-title .pipeline-faded {
                color: rgba(10,31,68,.28);
                font-size: 18px;
                font-weight: 700;
            }

            .pipeline-visual-title .pipeline-main {
                color: var(--navy);
                font-size: 22px;
                font-weight: 700;
                line-height: 1.25;
                font-family: "Segoe UI", Arial, sans-serif;
                letter-spacing: .3px;
            }

                .pipeline-visual-title .pipeline-main em {
                    font-weight: 700;
                    letter-spacing: 1px;
                }

        .pipeline-visual-subtitle {
            max-width: 690px;
            color: #465a70;
            font-size: 16px;
            line-height: 1.45;
        }

        .project-summary h3 {
            margin: 0 0 8px;
            color: var(--navy);
            font-size: 22px;
            line-height: 1.25;
        }

        .project-summary p {
            margin: 0;
            color: #465a70;
            font-size: 14px;
            line-height: 1.55;
        }

        .project-toggle {
            display: inline-grid;
            place-items: center;
            width: 42px;
            height: 42px;
            border-radius: 999px;
            background: linear-gradient(135deg,var(--navy),#235aa0);
            color: #ffffff;
            font-size: 22px;
            font-weight: 800;
            transition: transform .35s ease;
            flex: 0 0 auto;
        }

        .project-card.open .project-toggle {
            transform: rotate(180deg)
        }

        .project-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height .55s ease;
        }

        .project-inner {
            padding: 0 28px 30px;
            border-top: 1px solid rgba(10,31,68,.08);
        }

        .project-layout {
            display: grid;
            grid-template-columns: 1.05fr .95fr;
            gap: 30px;
            padding-top: 28px;
            align-items: start;
        }

        .project-main-image {
            width: 95%;
            height: 330px;
            object-fit: cover;
            border-radius: 24px;
            box-shadow: 0 18px 44px rgba(10,31,68,.14);
            background: #ffffff;
        }

        .project-details h4 {
            margin: 0 0 10px;
            color: var(--navy);
            font-size: 19px;
        }

        .project-details p {
            margin: 0 0 18px;
            color: #30435a;
            font-size: 15px;
            text-align: justify;
        }

        .project-meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin: 18px 0;
        }

        .project-meta {
            background: #f7fbff;
            border-left: 3px solid #6ec1ff;
            border-radius: 16px;
            padding: 14px;
        }

            .project-meta strong {
                display: block;
                color: var(--navy);
                font-size: 13px;
                margin-bottom: 4px;
            }

            .project-meta span {
                color: #465a70;
                font-size: 13px;
                line-height: 1.4;
            }

        .badge-list {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
            margin-top: 16px;
        }

        .badge {
            display: inline-flex;
            padding: 7px 12px;
            border-radius: 999px;
            background: #eef6ff;
            color: #1769aa;
            font-size: 12px;
            font-weight: 800;
        }

        .project-gallery {
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 14px;
            margin-top: 22px;
        }

            .project-gallery img {
                width: 100%;
                height: 120px;
                object-fit: cover;
                border-radius: 18px;
                border: 1px solid var(--line);
                background: #eef6ff;
            }



        .related-publications-block {
            margin-top: 30px;
            padding-top: 26px;
            border-top: 1px solid rgba(10,31,68,.08);
        }

        .related-publications-title {
            margin: 0 0 10px;
            color: var(--navy);
            font-size: 22px;
            line-height: 1.25;
        }

        .related-publications-subtitle {
            margin: 0 0 18px;
            color: var(--muted);
            font-size: 14px;
        }

        .related-publications-list {
            display: grid;
            gap: 14px;
            counter-reset: related-pub;
        }

        .publication-card {
            position: relative;
            background: #ffffff;
            border: 1px solid var(--line);
            border-radius: 22px;
            padding: 22px 24px 22px 74px;
            box-shadow: 0 10px 28px rgba(10,31,68,.07);
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
            cursor: pointer;
        }

            .publication-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 18px 40px rgba(10,31,68,.13);
                border-color: #6ec1ff;
            }

            .publication-card:active {
                transform: scale(.99);
            }

            .publication-card:before {
                counter-increment: related-pub;
                content: counter(related-pub);
                position: absolute;
                left: 22px;
                top: 22px;
                width: 34px;
                height: 34px;
                border-radius: 50%;
                display: grid;
                place-items: center;
                background: linear-gradient(135deg,var(--navy),#2d75bd);
                color: #ffffff;
                font-weight: 800;
                font-size: 14px;
            }

            .publication-card:after {
                content: var(--publication-cta, "Read publication →");
                position: absolute;
                right: 20px;
                bottom: 16px;
                color: #6ec1ff;
                font-size: 12px;
                font-weight: 700;
                opacity: 0;
                transition: opacity .25s ease;
            }

            .publication-card:hover:after {
                opacity: 1;
            }

            .publication-card h3 {
                margin: 0 0 8px;
                color: var(--navy);
                font-size: 17px;
                line-height: 1.35;
                padding-right: 120px;
            }

            .publication-card p {
                margin: 0;
                color: #30435a;
                font-size: 14px;
                line-height: 1.55;
            }

        .publication-meta {
            margin-top: 12px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .tag {
            display: inline-flex;
            padding: 6px 11px;
            border-radius: 999px;
            background: #eef6ff;
            color: #1769aa;
            font-size: 12px;
            font-weight: 800;
        }

        .doi {
            display: inline-flex;
            padding: 6px 11px;
            border-radius: 999px;
            background: #ffffff;
            color: var(--navy);
            font-size: 12px;
            font-weight: 800;
            border: 1px solid rgba(10,31,68,.12);
        }

        .author {
            color: #1769aa;
            font-weight: 800;
            border-bottom: 2px solid #1769aa;
            padding-bottom: 1px;
        }

        .mosaic-section {
            position: relative;
            z-index: 3;
            background: #ffffff;
            padding: 20px 0 86px;
            overflow: hidden;
        }

        .mosaic-title {
            max-width: var(--max);
            margin: 0 auto 24px;
            padding: 0 24px;
            text-align: center;
        }

            .mosaic-title h2 {
                font-size: clamp(28px,4vw,44px);
                line-height: 1.1;
                margin: 0 0 12px;
                color: var(--navy);
                letter-spacing: -1px;
            }

            .mosaic-title p {
                margin: 0 auto;
                max-width: 760px;
                color: var(--muted);
            }

        .mosaic-track {
            display: flex;
            width: max-content;
            gap: 18px;
            animation: mosaicSlide 38s linear infinite;
            padding: 16px 0;
        }

            .mosaic-track:hover {
                animation-play-state: paused
            }

        .mosaic-item {
            width: 320px;
            height: 210px;
            border-radius: 26px;
            overflow: hidden;
            border: 1px solid var(--line);
            box-shadow: 0 12px 34px rgba(10,31,68,.10);
            background: #eef6ff;
        }

            .mosaic-item.tall {
                height: 260px
            }

            .mosaic-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        @keyframes mosaicSlide {
            from {
                transform: translateX(0)
            }

            to {
                transform: translateX(-50%)
            }
        }

        .quote {
            max-width: var(--max);
            margin: 0 auto;
            padding: 0 24px 76px;
            position: relative;
            z-index: 3;
            background: #ffffff;
        }

        .quote-box {
            border-radius: 34px;
            padding: 44px;
            background: linear-gradient(135deg,var(--navy),#1c5f9f);
            color: white;
            box-shadow: 0 24px 60px rgba(10,31,68,.24);
            text-align: center;
        }

            .quote-box p {
                margin: 0;
                font-size: clamp(23px,3vw,38px);
                line-height: 1.25;
                font-weight: 700;
                letter-spacing: -.8px;
            }

        .back-top {
            position: relative;
            z-index: 3;
            background: linear-gradient(180deg,#ffffff,#f6f9fd);
            padding: 86px 20px 100px;
            text-align: center;
        }

            .back-top h2 {
                font-size: clamp(28px,4vw,40px);
                color: var(--navy);
                margin: 0 0 16px;
                letter-spacing: -1px;
            }

            .back-top p {
                color: #5c6b82;
                font-size: 17px;
                line-height: 1.8;
                margin: 0 auto 34px;
                max-width: 720px;
            }

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 13px 24px;
            border-radius: 999px;
            background: #ffffff;
            color: var(--navy);
            font-weight: 800;
            font-size: 14px;
            border: 1px solid rgba(215,178,93,.55);
            box-shadow: 0 10px 28px rgba(0,0,0,.12);
            transition: transform .25s ease,box-shadow .25s ease,background .25s ease;
            cursor: pointer;
            font-family: inherit;
        }

            .button:hover {
                transform: translateY(-3px);
                box-shadow: 0 16px 34px rgba(0,0,0,.18);
            }

        .button-primary {
            background: linear-gradient(135deg,#0a1f44,#235aa0);
            color: white;
            border: 0;
        }

        .footer {
            padding: 36px 24px;
            text-align: center;
            color: #6b7c8f;
            border-top: 1px solid rgba(10,31,68,.08);
            background: #fff;
            font-size: 14px;
        }

        @media(max-width:860px) {
            .nav {
                min-height: 68px
            }

            .menu-toggle {
                display: block
            }

            .nav-links {
                position: absolute;
                left: 0;
                right: 0;
                top: 68px;
                display: none;
                flex-direction: column;
                gap: 0;
                background: white;
                border-bottom: 1px solid rgba(10,31,68,.08);
                box-shadow: 0 18px 40px rgba(10,31,68,.12);
            }

                .nav-links.open {
                    display: flex
                }

                .nav-links a {
                    width: 100%;
                    padding: 16px 24px
                }

                    .nav-links a.active:after, .nav-links a:hover:after {
                        display: none
                    }

            .hero {
                min-height: 520px;
                padding: 100px 18px 78px
            }

            .hero-image {
                height: 110%;
                object-position: center top
            }

            .hero-inner {
                min-height: 330px
            }

            .section {
                padding: 54px 18px
            }

            .portfolio-intro, .project-layout {
                grid-template-columns: 1fr
            }

            .portfolio-side {
                position: relative;
                top: auto
            }

            .project-header {
                grid-template-columns: 1fr;
                gap: 18px
            }

            .project-toggle {
                justify-self: start
            }

            .project-main-image {
                height: 260px
            }

            .project-meta-grid, .project-gallery {
                grid-template-columns: 1fr
            }

                .project-gallery img {
                    height: 180px
                }

            .quote {
                padding: 0 18px 54px
            }

            .quote-box {
                padding: 32px 26px
            }

            .brand span {
                font-size: 15px
            }
        }

        .project-features {
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 20px;
            margin-top: 30px;
        }

        .feature {
            background: #f7fbff;
            border: 1px solid #e9eef5;
            border-radius: 20px;
            padding: 24px;
            transition: .25s;
        }

            .feature:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 26px rgba(10,31,68,.10);
            }

            .feature h5 {
                margin: 0 0 14px;
                color: #0a1f44;
                font-size: 18px;
                font-weight: 700;
            }

            .feature p {
                margin: 0;
                color: #465a70;
                font-size: 14px;
                line-height: 1.7;
                text-align: justify;
            }

        .ongoing-notice {
            margin-top: 26px;
            padding: 22px 24px;
            border-radius: 22px;
            background: linear-gradient(135deg,#f7fbff,#ffffff);
            border: 1px solid #e9eef5;
            box-shadow: 0 12px 28px rgba(10,31,68,.08);
            display: flex;
            align-items: flex-start;
            gap: 18px;
        }

            .ongoing-notice h4 {
                margin: 0 0 8px;
                color: var(--navy);
                font-size: 18px;
            }

            .ongoing-notice p {
                margin: 0;
                color: #465a70;
                font-size: 14px;
                line-height: 1.65;
            }

        .ongoing-pulse {
            width: 16px;
            height: 16px;
            margin-top: 6px;
            border-radius: 50%;
            background: #d7b25d;
            box-shadow: 0 0 0 rgba(215,178,93,.65);
            animation: pulseResearch 1.8s infinite;
            flex: 0 0 auto;
        }

        @keyframes pulseResearch {
            0% {
                box-shadow: 0 0 0 0 rgba(215,178,93,.65);
            }

            70% {
                box-shadow: 0 0 0 16px rgba(215,178,93,0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(215,178,93,0);
            }
        }

        @media(max-width:860px) {

            .project-features {
                grid-template-columns: 1fr;
            }
        }

        @media(max-width:520px) {
            .hero {
                min-height: 500px;
                padding: 90px 16px 70px
            }

            h1 {
                font-size: clamp(36px,9vw,52px)
            }

            .eyebrow {
                font-size: 11px;
                letter-spacing: 2px
            }

            .project-inner {
                padding: 0 18px 24px
            }

            .project-main-image {
                height: 210px
            }



            .publication-card {
                padding: 72px 18px 42px;
            }

                .publication-card:before {
                    left: 18px;
                    top: 20px;
                }

                .publication-card h3 {
                    padding-right: 0;
                }

                .publication-card:after {
                    opacity: 1;
                    left: 18px;
                    right: auto;
                    bottom: 16px;
                }

            .mosaic-item {
                width: 260px;
                height: 170px
            }

                .mosaic-item.tall {
                    height: 220px
                }
        }

