

        :root {
            --transition-long: 1.4s cubic-bezier(0.16, 1, 0.3, 1);
        }



        /* --- LOGICA SLIDE --- */

        html { scroll-behavior: smooth; }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {

            background-color: var(--col-burro);

            color: var(--col-bosco);

            font-family: var(--font-serif);

            overflow-x: hidden;

            line-height: 1.6;

        }



        section {

            min-height: 100vh;

            width: 100%;

            position: relative;

            overflow: hidden;

        }



        /* --- HEADER --- */

        header {

            position: fixed; top: 0; width: 100%; padding: 40px 60px;

            display: flex; justify-content: space-between; align-items: center; z-index: 100;

            color: var(--col-bosco);

            transition: color 0.24s ease;

        }

        .logo { font-size: 1.4rem; font-weight: 600; text-decoration: none; color: inherit; letter-spacing: -0.02em; }

        header.header--light { color: white; }
        header.header--dark { color: var(--col-bosco); }

        nav a {
            position: relative;
            font-family: var(--font-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; margin-left: 30px; text-decoration: none; color: inherit;
            transition: letter-spacing 0.24s ease;
        }
        nav a::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -6px;
            height: 1px;
            background: currentColor;
            transform: scaleX(0);
            transform-origin: left center;
            transition: transform 0.24s ease;
        }
        nav a:hover::after,
        nav a:focus-visible::after {
            transform: scaleX(1);
        }

        .mobile-menu-toggle,
        .mobile-menu-overlay {
            display: none;
        }

        body.menu-open {
            overflow: hidden;
        }



        /* --- MARCATORI DI TAGLIO (CROP MARKS) --- */

        .crop-mark {

            position: absolute; width: 30px; height: 30px;

            border-color: rgba(46, 58, 50, 0.18); border-style: solid;

            transition: all 1.8s ease; opacity: 0; z-index: 10;

        }

        .top-left { top: 24px; left: 24px; border-width: 1px 0 0 1px; transform: translate(-16px, -16px); }

        .bottom-right { bottom: 24px; right: 24px; border-width: 0 1px 1px 0; transform: translate(16px, 16px); }

        .service-item.chapter-active .crop-mark { opacity: 1; transform: translate(0, 0); }



        /* --- HERO --- */

        .hero {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
        }

        .hero-bg {

            position: absolute; top: 0; left: 0; width: 100%; height: 100%;

            background:
                linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.15)),
                url("../img/placeholder-hero.webp") center / cover no-repeat;

            z-index: -1;

        }

        .hero-section h1 { font-size: clamp(3rem, 7vw, 5.5rem); max-width: 850px; line-height: 1.1; font-weight: 300; }

        .hero-section h1 span { font-style: italic; }



        /* --- VISIONE --- */

        .vision {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0 10vw;
        }

        .vision h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.4; max-width: 1100px; }

        .highlight {

            color: var(--col-accento);

            font-family: var(--font-sans);

            font-weight: 300; text-transform: uppercase; letter-spacing: 0.15em;

            display: block; margin: 15px 0; font-size: 0.85em;

        }



        /* --- GALLERIA: 3 COLONNE VERTICALI --- */

        .gallery-vertical {
            width: 80%;
            margin-inline: auto;
            padding: 10vh 0 14vh;
            overflow: visible;
        }

        .gallery-vertical > .wp-block-group__inner-container,
        .gallery-vertical .gallery-columns > .wp-block-group__inner-container,
        .gallery-vertical .gallery-col > .wp-block-group__inner-container {
            max-width: none;
            width: 100%;
        }

        .gallery-vertical .gallery-columns > .wp-block-group__inner-container,
        .gallery-vertical .gallery-col > .wp-block-group__inner-container {
            display: contents;
        }

        .gallery-vertical .gallery-columns {
            display: flex;
            width: 100%;
            gap: var(--vr-gap, 2rem);
            margin: 0;
            align-items: flex-start;
        }

        .gallery-vertical .gallery-col {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: var(--vr-gap, 2rem);
            will-change: transform;
            transform: translateY(0);
        }

        .gallery-spacer {
            height: auto;
            grid-row: span 6;
        }

        .gallery-item {
            width: 100%;
            aspect-ratio: auto;
            grid-row: span 23;
            overflow: hidden;
            background: var(--col-terra);
            box-shadow: 0 12px 32px rgba(0,0,0,0.08);
            contain: layout paint;
            content-visibility: auto;
            contain-intrinsic-size: 420px 525px;
        }

        .gallery-col:nth-child(1) > .gallery-spacer:first-child { grid-row: span 6; }
        .gallery-col:nth-child(2) > .gallery-spacer:first-child { grid-row: span 8; }
        .gallery-col:nth-child(3) > .gallery-spacer:first-child { grid-row: span 7; }

        .gallery-col:nth-child(1) > .gallery-spacer:last-child { grid-row: span 7; }
        .gallery-col:nth-child(2) > .gallery-spacer:last-child { grid-row: span 8; }
        .gallery-col:nth-child(3) > .gallery-spacer:last-child { grid-row: span 6; }

        .gallery-col:nth-child(1) > .gallery-item:nth-child(3n) { grid-row: span 20; }
        .gallery-col:nth-child(1) > .gallery-item:nth-child(5n) { grid-row: span 27; }

        .gallery-col:nth-child(2) > .gallery-item:nth-child(2n) { grid-row: span 25; }
        .gallery-col:nth-child(2) > .gallery-item:nth-child(5n) { grid-row: span 19; }

        .gallery-col:nth-child(3) > .gallery-item:nth-child(3n) { grid-row: span 24; }
        .gallery-col:nth-child(3) > .gallery-item:nth-child(6n) { grid-row: span 18; }

        .gallery-vertical .gallery-item,
        .gallery-vertical .gallery-item .wp-block-image {
            width: 100%;
        }

        .gallery-vertical .gallery-item img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: transform 2.4s ease;
        }

        .gallery-vertical.reveal.active .gallery-item img,
        section.active .gallery-item img { transform: scale(1.03); }



        /* --- SERVIZI: TIMELINE --- */

        .service-link { font-family: var(--font-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; text-decoration: none; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 6px; display: inline-block; margin-top: 18px; }
        .cta-contact {
            transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, padding 0.22s ease;
        }
        .cta-contact:hover,
        .cta-contact:focus-visible {
            background-color: var(--col-bosco);
            color: var(--col-burro);
            border-color: var(--col-bosco);
            padding: 9px 14px 8px;
        }

        .services-timeline {
            display: block;
            padding: 14vh 8vw 16vh;
            overflow: visible;
            position: relative;
        }

        .services-timeline::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(244, 238, 216, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 1;
        }

        .services-timeline.chapter-focus::before { opacity: 1; }

        .services-timeline .timeline {
            position: relative;
            width: min(1200px, 100%);
            margin: 0 auto;
            z-index: 3;
        }

        .services-timeline .timeline .wp-block-post-template {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 16vh;
        }

        .services-timeline .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 2px;
            background: rgba(0,0,0,0.85);
            transform: translateX(-50%);
        }

        .service-item {
            position: relative;
            width: min(var(--chapter-width, 520px), 90%);
            padding: 34px 36px;
            background: rgba(244,238,216,0.9);
            border: 1px solid rgba(46, 58, 50, 0.12);
            opacity: 0.42;
            transform: translateY(calc(var(--chapter-offset, 0px) + 16px)) scale(0.985);
            transition: opacity 0.38s ease, transform 0.38s ease;
            z-index: 4;
        }

        .service-item.left,
        .service-item:has(.service-side-flag[data-side="left"]) {
            align-self: flex-start;
            text-align: left;
            --chapter-offset: 0vh;
            --chapter-width: 560px;
            margin-right: auto;
        }
        .service-item.right,
        .service-item:has(.service-side-flag[data-side="right"]) {
            align-self: flex-end;
            text-align: left;
            --chapter-offset: 3vh;
            --chapter-width: 500px;
            margin-left: auto;
        }
        .service-side-flag {
            display: none;
        }
        .timeline .wp-block-post-template > .wp-block-post:nth-child(4n+2) > .service-item.right,
        .timeline .wp-block-post-template > .wp-block-post:nth-child(4n+2) > .service-item:has(.service-side-flag[data-side="right"]) { margin-left: 10vw; --chapter-offset: 8vh; --chapter-width: 490px; }
        .timeline .wp-block-post-template > .wp-block-post:nth-child(4n+3) > .service-item.left,
        .timeline .wp-block-post-template > .wp-block-post:nth-child(4n+3) > .service-item:has(.service-side-flag[data-side="left"]) { margin-right: 3vw; --chapter-offset: 5vh; --chapter-width: 540px; }
        .timeline .wp-block-post-template > .wp-block-post:nth-child(4n+4) > .service-item.right,
        .timeline .wp-block-post-template > .wp-block-post:nth-child(4n+4) > .service-item:has(.service-side-flag[data-side="right"]) { margin-left: 6vw; --chapter-offset: 11vh; --chapter-width: 500px; }
        .service-item.chapter-active {
            opacity: 1;
            transform: translateY(var(--chapter-offset, 0px)) scale(1);
            z-index: 7;
        }

        .services-timeline.chapter-focus .service-item:not(.chapter-active) {
            opacity: 0.28;
            transform: translateY(calc(var(--chapter-offset, 0px) + 22px)) scale(0.975);
        }

        .services-timeline.chapter-focus .timeline::before {
            opacity: 0.72;
        }

        .service-item .crop-mark {
            border-color: rgba(46, 58, 50, 0.24);
            transition: opacity 0.28s ease, transform 0.28s ease;
        }

        .service-item .num { color: var(--col-bordeaux); font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.3em; display: block; margin-bottom: 10px; }
        .service-item h3 { font-size: clamp(2.5rem, 4.5vw, 3.8rem); font-weight: 400; line-height: 1.1; margin-bottom: 25px; }
        .service-item p { font-family: var(--font-sans); font-weight: 300; font-size: 0.95rem; line-height: 1.8; opacity: 0.8; max-width: 420px; }

        /* --- FOOTER EDITORIALE --- */

        .footer-section {
            display: block;
            min-height: auto;
            padding: 16vh 8vw 12vh;
            background: var(--col-burro);
            border-top: 1px solid rgba(46, 58, 50, 0.14);
        }

        .footer-layout {
            width: min(1200px, 100%);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.25fr 0.9fr;
            column-gap: 7vw;
            row-gap: 6vh;
            align-items: start;
        }

        .footer-brand .logo-mark {
            font-size: clamp(2.2rem, 4.4vw, 4rem);
            line-height: 1;
            letter-spacing: -0.01em;
            margin-bottom: 20px;
        }

        .footer-brand .closing {
            font-family: var(--font-sans);
            font-size: 0.82rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            opacity: 0.74;
        }

        .footer-contacts {
            max-width: 420px;
        }

        .footer-label {
            font-family: var(--font-sans);
            font-size: 0.66rem;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            margin-bottom: 14px;
            opacity: 0.56;
        }

        .footer-contacts a,
        .footer-social a,
        .footer-pages a {
            color: inherit;
            text-decoration: none;
        }

        .footer-contacts .email {
            font-size: clamp(1.3rem, 2.2vw, 1.9rem);
            line-height: 1.2;
            display: inline-block;
            margin-bottom: 14px;
        }

        .footer-contacts .location {
            font-family: var(--font-sans);
            font-size: 0.92rem;
            opacity: 0.8;
            margin-bottom: 24px;
        }

        .footer-links-rail {
            border-top: 1px solid rgba(46, 58, 50, 0.14);
            padding-top: 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4vh 3vw;
        }

        .footer-social a,
        .footer-pages a {
            display: block;
            font-family: var(--font-sans);
            font-size: 0.82rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 12px;
            opacity: 0.85;
        }

        .footer-colophon {
            grid-column: 1 / -1;
            margin-top: 2vh;
            padding-top: 18px;
            border-top: 1px solid rgba(46, 58, 50, 0.14);
            font-family: var(--font-sans);
            font-size: 0.62rem;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            opacity: 0.52;
        }



        /* --- MOTION BASATO SU ACCESSIBILITA --- */

        @media (prefers-reduced-motion: reduce) {

            html { scroll-behavior: auto; }

            * { transition: none !important; animation: none !important; }

            .gallery-vertical .gallery-col,
            .gallery-vertical .gallery-item img,
            .service-item,
            .services-timeline.chapter-focus .service-item:not(.chapter-active) {
                transform: none !important;
            }

        }



        @media (max-width: 1024px) {

            .gallery-vertical { width: 88%; padding: 8vh 0 12vh; }
            .gallery-vertical .gallery-columns { gap: var(--vr-gap, 1.25rem); }
            .gallery-vertical .gallery-col { gap: var(--vr-gap, 1.25rem); }

            .services-timeline { padding: 12vh 6vw 14vh; }
            .services-timeline .timeline {
                row-gap: 10vh;
            }
            .services-timeline .timeline .wp-block-post-template {
                gap: 10vh;
            }
            .services-timeline .timeline::before { display: none; }
            .service-item {
                padding: 28px 24px;
                width: 100%;
                max-width: none;
                align-self: flex-start;
            }
            .timeline .wp-block-post-template > .wp-block-post > .service-item {
                margin: 0;
                --chapter-offset: 0px;
                --chapter-width: 100%;
            }
            .services-timeline.chapter-focus .service-item:not(.chapter-active) {
                transform: translateY(10px) scale(0.99);
            }

            .footer-section {
                padding: 14vh 6vw 11vh;
            }

            .footer-layout {
                grid-template-columns: 1fr;
                row-gap: 5vh;
            }

            .footer-links-rail {
                grid-template-columns: 1fr 1fr;
            }

        }

        @media (max-width: 680px) {

            header { padding: 28px 26px; }

            nav a { margin-left: 18px; }
            .gallery-vertical .gallery-columns { gap: var(--vr-gap, 0.9rem); }
            .gallery-vertical .gallery-col { gap: var(--vr-gap, 0.9rem); }

            .footer-section {
                padding: 12vh 24px 10vh;
            }

            .footer-links-rail {
                grid-template-columns: 1fr;
                gap: 3.2vh;
            }

            .footer-brand .logo-mark {
                font-size: clamp(2rem, 12vw, 2.9rem);
            }

        }

        @media (max-width: 768px) {

            section {
                overflow: visible;
            }

            header {
                padding: 26px 24px;
            }

            header nav {
                display: none;
            }

            .mobile-menu-toggle {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background: none;
                border: 0;
                color: inherit;
                font-family: var(--font-sans);
                font-size: 0.72rem;
                letter-spacing: 0.2em;
                text-transform: uppercase;
                cursor: pointer;
            }

            .mobile-menu-overlay {
                display: flex;
                flex-direction: column;
                position: fixed;
                inset: 0;
                z-index: 120;
                background: var(--col-burro);
                color: var(--col-bosco);
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: translateY(10px);
                transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
                padding: 26px 24px 36px;
            }

            .mobile-menu-overlay.is-open {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateY(0);
            }

            .mobile-menu-close {
                align-self: flex-end;
                background: none;
                border: 0;
                color: inherit;
                font-family: var(--font-sans);
                font-size: 1.15rem;
                letter-spacing: 0.12em;
                text-transform: uppercase;
                cursor: pointer;
                line-height: 1;
            }

            .mobile-menu-nav {
                margin-top: 10vh;
                display: flex;
                flex-direction: column;
                gap: 3.2vh;
            }

            .mobile-menu-nav a {
                color: inherit;
                text-decoration: none;
                font-family: var(--font-serif);
                font-size: clamp(2rem, 9vw, 3.1rem);
                line-height: 1.08;
                letter-spacing: 0.01em;
            }

            .gallery-vertical {
                width: 100%;
                padding: 8vh 0 10vh;
                overflow: visible;
            }

            .gallery-vertical .gallery-columns {
                width: 100%;
                margin: 0;
                flex-direction: row;
                align-items: flex-start;
                gap: 8px;
            }

            .gallery-vertical .gallery-col {
                flex: 1 1 0;
                min-width: 0;
                gap: 8px;
            }

            .hero-section .wp-block-cover__inner-container,
            .section-wrap,
            .manifesto,
            .quote-breath,
            .services-timeline .timeline {
                width: 100%;
                max-width: 100%;
            }

            .hero-section h1,
            .manifesto h2,
            .manifesto p {
                overflow-wrap: anywhere;
                word-break: normal;
            }

            .services-timeline {
                padding: 10vh 0 12vh;
            }

            .services-timeline .timeline {
                width: 100%;
                gap: 10vh;
                padding: 0 24px;
            }

            .service-item {
                width: 100%;
                max-width: none;
                margin: 0;
                align-self: stretch;
                padding: 32px 26px;
                --chapter-offset: 0px;
                --chapter-width: 100%;
            }

            .service-item.chapter-active {
                transform: translateY(0) scale(1);
            }

            .services-timeline.chapter-focus::before {
                opacity: 0.3;
            }

            .services-timeline.chapter-focus .service-item:not(.chapter-active) {
                opacity: 0.22;
                transform: translateY(12px) scale(0.985);
            }
        }

    

