﻿/* ═══════════════════════════════════════════════════════════
   ADRIANO BELLERINO — Portfolio
   ═══════════════════════════════════════════════════════════
   INDICE SEZIONI
   ───────────────────────────────────────────────────────────
    1.  Variabili CSS (@property + :root)
    2.  Base — reset e tipografia globale
    3.  Utilità tipografiche
    4.  Navbar
    5.  Hero
    6.  Hero sticky wrapper
    7.  My Work — griglia progetti e carousel
    8.  The Thinking Room — chi sono
    9.  What I Do — servizi offerti
   10.  My Creative Toolkit — strumenti
   11.  Start a New Project — CTA finale
   12.  Footer
   13.  GSAP — stati base animazioni scroll
   14.  Animazione lettere pulsanti
   15.  Responsive — media query generali
   16.  Correzioni mobile aggiuntive
   17.  Menu mobile — overlay di navigazione
   18.  Landscape mobile
   19.  Pill arancione — variante CTA
   ─────────────────────────────────────────────────────────── */

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to { --angle: 360deg; }
}

/* ─── 1. VARIABILI CSS ──────────────────────────────────── */

/* ─── Barra di avanzamento scroll ──────────────────────── */

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #FF832F 50%, #FF832F);
    z-index: 2000;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    box-shadow: 0 0 12px rgba(255, 131, 47, 0.5);
}

/* ─── 2. BASE — Reset e tipografia globale ─────────────── */

/* Sfondo fisso, mai gestito da JS: prima di questa regola, page-transition.js
   coloriva <html> di arancione via JS al volo (per evitare un flash bianco
   prima che il CSS carichi) e lo toglieva a fine animazione. Su alcuni
   browser mobile — soprattutto con lo zoom di mezzo — quella rimozione non
   veniva ridisegnata sullo schermo: bande arancioni bloccate ai lati per
   sempre, un bug di rendering del browser innescato dal cambio dinamico.
   Una regola CSS statica non ha questo problema: il colore è sempre lo
   stesso, non c'è nulla da "togliere" dopo, quindi nulla può restare
   bloccato. */
html { scroll-behavior: auto; overflow-x: clip; background: #28292E; }

/* ─── Lenis smooth scroll support ─────────────────────────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
    background-color: #28292E;
    color: #F9F8ED;
    margin: 0;
    font-family: 'Palanquin', sans-serif;
    font-weight: 500;
    overflow-x: clip;
}

h1, h2 {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-style: normal;
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-style: italic;
}

p {
    font-family: 'Palanquin', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #F9F8ED;
}

a {
    color: #F9F8ED;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ─── 3. UTILITÀ TIPOGRAFICHE ───────────────────────────── */

.titolo-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-style: italic;
    color: #FF832F;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: italic;
    color: #FF832F;
    font-size: 115px;
}

.my-work {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 200;
    font-style: normal;
    color: #F9F8ED;
    font-size: clamp(55px, 9vw, 95px);
    line-height: 1;
}

.stop-sett {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 300;
    font-style: normal;
    color: rgba(249, 248, 237, 0.65);
    font-size: clamp(16px, 2vw, 25px);
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════
   4. NAVBAR
═══════════════════════════════════════════════════════════ */

.logo-sito { width: 55px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: clamp(14px, 1.2vw, 20px);
}

.btn-chat {
    color: #F9F8ED !important;
    padding: 12px 35px !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(14px, 1.2vw, 20px);
    display: inline-block;
    text-decoration: none;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-chat::before,
.btn-chat::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    background-image: conic-gradient(
        from var(--angle),
        transparent 0%,
        rgba(255, 131, 47, 0.1) 30%,
        rgba(255, 131, 47, 0.5) 70%,
        #FF832F 100%
    );
    animation: rotate 3s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}

.btn-chat::after {
    filter: blur(50px);
    opacity: 0.8;
    mask: none;
    -webkit-mask: none;
}

.btn-chat:hover {
    color: #FF832F !important;
    text-decoration: none;
}

.btn-chat:hover::after {
    filter: blur(50px);
    opacity: 1;
}

.word-about,
.word-work {
    color: #F9F8ED;
}

.word-about:hover,
.word-work:hover {
    color: #FF832F;
    text-decoration: none;
}

.word-about.is-active,
.word-work.is-active {
    color: #FF832F;
}

.head {
    background: transparent !important;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.head.scrolled {
    background: rgba(15, 15, 15, 0.72) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    padding: 12px 40px;
}

.navbar-hidden { transform: translateY(-100%); }

@keyframes navFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-anim {
    opacity: 0;
    animation: navFadeDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.navbar-brand.nav-anim  { animation-delay: 0.1s; }
.nav-item.nav-anim      { animation-delay: calc(0.2s + (var(--anim-order) * 0.1s)); }
.mobile-menu-btn.nav-anim { animation-delay: 0.2s; }

/* ═══════════════════════════════════════════════════════════
   5. HERO — Sezione principale
   Sfondo: #0A0807 | Font: Libre Franklin
═══════════════════════════════════════════════════════════ */

:root {
    /* ── Variabili hero ── */
    --hero-bg:          #0A0807;
    --hero-cream:       #F2EEE5;
    --hero-cream-dim:   #C8C2B5;
    --hero-accent:      #FF832F;
    --hero-green:       #4ADE80;
    --hero-line:        rgba(242, 238, 229, 0.08);
    --hero-line-strong: rgba(242, 238, 229, 0.14);
    --hero-ff:          'Libre Franklin', system-ui, sans-serif;
    /* ── Variabili globali (sezioni crema e dark) ── */
    --cream:       #F9F8ED;
    --cream-deep:  #ECE7D8;
    --ink:         #1A1714;
    --ink-soft:    #423C34;
    --ink-dim:     #6E665A;
    --ink-faint:   #A89F90;
    --orange:      #FF832F;
    --orange-deep: #B8410A;
    --orange-glow: #FF832F;
    --hair:        rgba(26, 23, 20, 0.14);
    --hair-soft:   rgba(26, 23, 20, 0.08);
    --serif:       'Cormorant Garamond', Georgia, serif;
    --sans:        'Libre Franklin', system-ui, sans-serif;
    --wid-pad-x:   40px;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--hero-bg);
    overflow: clip;              /* taglia blur e overflow dei figli al bordo della sezione */
    /* contain: paint rimosso — creava un layer GPU stale che bloccava
       l'hero su nero/scalato dopo aver scrollato verso l'alto */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hero-ff);
    color: var(--hero-cream);
}

/* Nasconde il vecchio divisore del layout a due colonne */
.hero-section::after { display: none !important; }

/* ─── Grana pellicola ────────────────────────────────────── */
.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
    z-index: 0;
}

/* ─── Luce spotlight ─────────────────────────────────────── */
.hero-spotlight {
    position: absolute;
    left: 50%; top: 55%;
    width: 1400px; height: 1400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, var(--hero-accent) 0%, transparent 60%);
    opacity: 0.18;
    pointer-events: none;
    filter: blur(20px);
    z-index: 0;
}

/* ─── Orb ambientali ─────────────────────────────────────── */
.hero-orb {
    position: absolute;
    left: 50%; top: 54%;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-a {
    width: 1300px; height: 1300px;
    background: radial-gradient(circle, rgba(255,131,47,.16) 0%, rgba(255,131,47,.06) 35%, transparent 65%);
    filter: blur(60px);
    opacity: 0.55;
    animation: heroOrbDrift 28s ease-in-out infinite;
}

.hero-orb-b {
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 60%);
    filter: blur(50px);
    opacity: 0.6;
    animation: heroOrbDriftB 36s ease-in-out infinite;
}

@keyframes heroOrbDrift {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    25%     { transform: translate(calc(-50% + 60px),calc(-50% - 35px)) scale(1.06); }
    50%     { transform: translate(-50%,-50%) scale(1.02); }
    75%     { transform: translate(calc(-50% - 60px),calc(-50% + 35px)) scale(1.06); }
}

@keyframes heroOrbDriftB {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    33%     { transform: translate(calc(-50% - 40px),calc(-50% + 50px)) scale(1.08); }
    66%     { transform: translate(calc(-50% + 50px),calc(-50% - 30px)) scale(.95); }
}

/* ─── Particelle fluttuanti (span iniettati da JS) ──────── */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* ─── Contenitore logo AO gigante ───────────────────────── */
.hero-ao-wrap {
    position: absolute;
    left: 50%; top: 48%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1;
    opacity: 0.52;
    will-change: transform;
    animation: heroAoEntry 1.4s cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

@keyframes heroAoEntry {
    from { opacity: 0; }
    to   { opacity: 0.52; }
}

.hero-ao-svg {
    display: block;
    overflow: visible;
    width: min(1800px, 172vw);
    max-height: 80vh;   /* non più alto dell'area visibile dell'hero */
    height: auto;
}

/* ─── Punti pulsanti sul logo ───────────────────────────── */
.hero-pulse-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: heroPulseDot 3.2s ease-in-out var(--pd-delay, 0s) infinite;
    transform: translate(-50%, -50%);
}

@keyframes heroPulseDot {
    0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.95; }
    50%     { transform: translate(-50%,-50%) scale(0.55); opacity: 0.55; }
}

/* ─── Pill di stato (primo elemento flex in .hero-center-stack) ─── */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--hero-line-strong);
    background: rgba(255,255,255,.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--hero-ff);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--hero-cream-dim);
    white-space: nowrap;
    margin-bottom: 44px;
    animation: heroRise .8s cubic-bezier(.22,1,.36,1) 150ms both;
}

.hero-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--hero-green);
    box-shadow: 0 0 12px var(--hero-green);
    flex-shrink: 0;
    animation: heroStatusPulse 2s ease-in-out infinite;
}

@keyframes heroStatusPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: .5; transform: scale(.9); }
}

/* ─── Stack centrale ─────────────────────────────────────── */
.hero-center-stack {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 4;
    width: 94%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

/* ─── Riga introduttiva — "hi, i'm" ─────────────────────── */
.hero-intro-line {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-family: var(--hero-ff);
    font-style: normal;
    font-weight: 700;
    font-size: clamp(32px, 5.5vw, 80px);
    color: var(--hero-cream);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 6px;
    animation: heroRise .9s cubic-bezier(.22,1,.36,1) 300ms both;
    user-select: none;
}

.hero-intro-rule {
    width: 36px; height: 2px;
    background: var(--hero-accent);
    display: inline-block;
    flex-shrink: 0;
    transform: translateY(0.05em);
}

/* ─── Wordmark — "ADRIANO" ──────────────────────────────── */
.hero-wordmark {
    font-family: var(--hero-ff);
    font-weight: 700;
    font-size: clamp(120px, 16vw, 240px);
    line-height: 0.88;
    letter-spacing: -0.045em;
    color: var(--hero-cream);
    margin: 0;
    text-align: center;
    user-select: none;
    cursor: default;
    white-space: nowrap;      /* non va a capo — il clamp gestisce la dimensione */
    transition: letter-spacing .9s cubic-bezier(.22,1,.36,1);
    animation: heroRise 1.1s cubic-bezier(.22,1,.36,1) 500ms both;
    pointer-events: auto;
}

.hero-wordmark.is-hovered { letter-spacing: -0.02em; }

.hero-wordmark .wm-char {
    display: inline-block;
    /* Crema pieno a opacità totale — niente background-clip né trasparenza */
    color: var(--hero-cream);
    transition: color .55s cubic-bezier(.22,1,.36,1),
                -webkit-text-stroke .55s cubic-bezier(.22,1,.36,1);
}

/* Hover: il riempimento sparisce e compare il contorno crema lettera per lettera */
.hero-wordmark.is-hovered .wm-char {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.6px var(--hero-cream);
}

/* ─── Pill ruolo ─────────────────────────────────────────── */
.hero-role-pill {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    font-family: var(--hero-ff);
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--hero-cream);
    padding: 16px 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
    animation: heroRise 1s cubic-bezier(.22,1,.36,1) 700ms both;
    pointer-events: auto;
    user-select: none;
}

.hero-role-a,
.hero-role-and { font-weight: 500; }

.hero-role-b {
    font-weight: 400;
    font-style: italic;
    color: var(--hero-accent);
    letter-spacing: -0.01em;
    display: inline-block;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
    cursor: default;
}

.hero-role-b:hover { transform: rotate(-6deg) translateY(-4px); }

/* ─── Rotatore ruolo ─────────────────────────────────────── */
.role-rotator {
    display: grid;
    place-items: center;   /* centra le frasi più corte orizzontalmente */
    overflow: hidden;      /* taglia i caratteri che animano in/out verticalmente */
}

.role-item {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.role-item.role-active {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Animazione per singolo carattere ──────────────────── */
.role-char {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    will-change: transform, opacity;
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.role-item.role-active .role-char {
    transform: translateY(0);
    opacity: 1;
}

.role-item.role-exiting .role-char {
    transform: translateY(-115%);
    opacity: 0;
}

.role-char--accent {
    font-weight: 400;
    font-style: italic;
    color: var(--hero-accent);
    letter-spacing: -0.01em;
}

/* ─── Striscia informazioni in basso ────────────────────── */
.hero-meta-strip {
    position: absolute;
    left: 64px; right: 64px; bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 48px;
    align-items: end;
    padding-top: 24px;
    border-top: 1px solid var(--hero-line);
    z-index: 5;
    animation: heroRise 1s cubic-bezier(.22,1,.36,1) 900ms both;
}

.hero-meta-label {
    font-family: var(--hero-ff);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--hero-cream-dim);
    margin-bottom: 8px;
}

.hero-meta-value {
    font-family: var(--hero-ff);
    font-size: 17px;
    font-weight: 500;
    color: var(--hero-cream);
}

.hero-meta-dim  { color: var(--hero-cream-dim); font-weight: 300; }

.hero-meta-tagline {
    font-style: italic;
    font-weight: 400;
    font-size: 19px;
}

.hero-meta-col--center { text-align: center; }
.hero-meta-col--right  { text-align: right; }

.hero-meta-arrow {
    color: var(--hero-accent);
    display: inline-block;
    animation: heroBounceY 2.4s ease-in-out infinite;
    margin-left: 4px;
}

/* ─── Keyframe animazioni hero ──────────────────────────── */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroBounceY {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(4px); }
}

/* ─── Accessibilità: movimento ridotto ───────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-ao-wrap, .hero-intro-line, .hero-wordmark,
    .hero-role-pill, .hero-meta-strip, .hero-status-pill,
    .hero-orb-a, .hero-orb-b, .hero-pulse-dot,
    .hero-status-dot, .hero-meta-arrow {
        animation: none !important;
        transition: none !important;
    }
}

/* ─── Responsive hero ────────────────────────────────────── */
@media (max-width: 991px) {
    /* Pill di stato ora è elemento flex — non serve position assoluta */
    .hero-status-pill { font-size: 10px; padding: 6px 14px; margin-bottom: 28px; }

    .hero-intro-line  { font-size: clamp(36px, 9vw, 64px); gap: 12px; }
    .hero-intro-rule  { width: 24px; }
    .hero-center-stack { width: 96%; }

    /* Riduce il wordmark per stare su una riga */
    .hero-wordmark    { font-size: clamp(52px, 15vw, 180px); }

    .hero-role-pill {
        padding: 12px 20px;
        font-size: clamp(20px, 4.8vw, 44px);
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.15em;
    }

    /* ── Meta strip: griglia a 2 righe ────────────────────────
       Riga 1: BASED IN (col 1, sx) | EXPLORE (col 2, dx)
       Riga 2: CRAFT tagline (larghezza intera, centrata)
    ─────────────────────────────────────────────────────────── */
    .hero-meta-strip {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        left: 24px; right: 24px; bottom: 24px;
        gap: 0;
        padding-top: 16px;
    }

    /* BASED IN: posizione di default (riga 1, col 1) — nessun override necessario */

    /* CRAFT: larghezza intera in riga 2, centrata */
    .hero-meta-col--center {
        grid-row: 2;
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--hero-line);
    }

    /* EXPLORE: riga 1, col 2, allineata a destra */
    .hero-meta-col--right {
        grid-row: 1;
        grid-column: 2;
        text-align: right;
    }

    .hero-meta-tagline     { font-size: 13px; }
    .hero-meta-value       { font-size: 14px; }
    .hero-meta-label       { font-size: 9px; }

    /* Riduce l'effetto arancione su tablet/mobile */
    .hero-spotlight {
        width: 800px; height: 800px;
        opacity: 0.10;
    }
    .hero-orb-a {
        width: 700px; height: 700px;
        opacity: 0.28;
    }
    .hero-orb-b { opacity: 0.3; }

    .hero-ao-svg { width: min(900px, 160vw); max-height: 72vh; }
}

@media (max-width: 480px) {
    .hero-intro-line  { font-size: clamp(28px, 8.5vw, 48px); }
    .hero-status-pill { margin-bottom: 20px; }

    /* 13vw a 390px = 50.7px — 7 caratteri entrano su una riga */
    .hero-wordmark    { font-size: clamp(44px, 13vw, 120px); }

    .hero-role-pill {
        font-size: clamp(16px, 5vw, 28px);
        padding: 10px 16px;
    }

    /* Schermi molto piccoli: solo BASED IN (sx) e EXPLORE (dx), CRAFT nascosta */
    .hero-meta-strip {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        left: 20px; right: 20px; bottom: 20px;
    }

    .hero-meta-col--center { display: none; }

    .hero-meta-col--right {
        grid-row: 1;
        grid-column: 2;
        text-align: right;
    }

    /* Riduce ulteriormente l'arancione sui mobile molto piccoli */
    .hero-spotlight {
        width: 560px; height: 560px;
        opacity: 0.07;
    }
    .hero-orb-a {
        width: 480px; height: 480px;
        opacity: 0.18;
    }
}

/* ═══════════════════════════════════════════════════════════
   6. HERO STICKY WRAPPER — Meccanismo di scroll
   Iniettato da JS. Altezza 250vh = 100vh hero + 150vh di spazio scroll.
   work-section usa margin-top:-100vh così parte a 150vh,
   entra nel viewport a scroll=50vh mentre l'hero è ancora fisso.
   L'hero si "sblocca" a scroll=150vh (fondo wrapper - altezza hero).
   NESSUN overflow — overflow:hidden/clip rompe i figli sticky.
═══════════════════════════════════════════════════════════ */

#hero-sticky-wrapper {
    position: relative;
    height: 250vh;
    background: #0A0807; /* uguale a hero-bg — nasconde il grigio del body quando l'hero scala a 0.9 */
}

#hero-sticky-wrapper > .hero-section {
    position: sticky !important;
    top: 0;
}

/* ═══════════════════════════════════════════════════════════
   7. MY WORK — Griglia progetti e carousel
═══════════════════════════════════════════════════════════ */

.work-section {
    padding: 100px 40px 80px;
    position: relative;
    z-index: 10;                /* scorre sopra l'hero sticky (z-index: 2) */
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -28px 90px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(255, 255, 255, 0.05);
    background: #28292E;        /* solido — nasconde l'hero man mano che sale */
    margin-top: -100vh;         /* tira la sezione su nella zona scroll del wrapper */
}

/* Linea accent sottile nella parte superiore della sezione */
.work-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 131, 47, 0.25) 18%,
        rgba(255, 131, 47, 0.25) 82%,
        transparent
    );
}

/* ─── Card progetto ──────────────────────────────────────── */

/* La card non ha più cornice: è la FOTO, a tutto campo.
   Prima c'era un contenitore scuro con 14px di margine attorno all'immagine e
   una fascia di 80px sotto per il pulsante. Ora l'immagine riempie tutto e i
   testi vivono sopra, su una sfumatura — l'immagine è il progetto, non una
   miniatura dentro una scatola. */
.project-card {
    background-color: transparent;
    border-radius: 18px;
    padding: 0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
        transform 0.55s cubic-bezier(0.22, 0.68, 0, 1.2),
        box-shadow 0.55s ease;
    will-change: transform;
    /* Reset stili <a> quando project-card è un elemento anchor */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card .frame-effetto {
    border-radius: 18px;
}
.project-card .project-img {
    border-radius: 18px;
}

/* ═══════════════════════════════════════════════════════════
   CARD PROGETTO — barra sopra la foto (solo home)
   Nessuna cornice: la card È l'immagine. Nome e sottotitolo a sinistra, le
   discipline a destra, sopra la foto.
   La sfumatura non è decorativa: senza, su un'immagine chiara (la scatola
   della pizza, Capodimonte) il testo bianco sparirebbe.
   ═══════════════════════════════════════════════════════════ */

.pc-meta {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(18px, 2.5vw, 40px);
    padding: clamp(22px, 2.6vw, 40px);
    padding-top: clamp(70px, 9vw, 130px);
    background: linear-gradient(
        to top,
        rgba(10, 10, 12, 0.92) 0%,
        rgba(10, 10, 12, 0.72) 34%,
        rgba(10, 10, 12, 0.30) 66%,
        transparent 100%
    );
    /* Il mousemove per il parallasse dell'immagine deve arrivare alla card. */
    pointer-events: none;
}

.pc-meta-text { min-width: 0; }   /* senza, il testo lungo non si accorcia */

/* font-style: normal NON è ridondante: più in alto c'è `h3 { font-style:
   italic }` e .pc-name È un <h3>. Senza, il nome eredita il corsivo. */
.pc-name {
    margin: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: clamp(20px, 2.3vw, 42px);
    text-transform: uppercase;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: #F9F8ED;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.pc-sub {
    margin: clamp(6px, 0.7vw, 11px) 0 0;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(11px, 1vw, 15px);
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(244, 241, 231, 0.62);
    transition: color 0.4s ease;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.pc-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.pc-tag {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(249, 248, 237, 0.22);
    background: rgba(10, 10, 12, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(9px, 0.72vw, 11px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(249, 248, 237, 0.72);
    transition: color 0.4s ease, border-color 0.4s ease;
}

/* In hover si accende il nome: i tag restano di supporto, non competono. */
.project-card:hover .pc-name { color: #FF832F; }
.project-card:hover .pc-sub  { color: rgba(244, 241, 231, 0.85); }
.project-card:hover .pc-tag  { border-color: rgba(255, 131, 47, 0.45); }

/* ── Schermi stretti ──
   Affiancare testo e tag li schiaccerebbe entrambi: la barra si impila. */
@media (max-width: 991.98px) {
    .pc-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: clamp(80px, 22vw, 150px);
    }
    .pc-tags { justify-content: flex-start; }
}

/* Sotto i 480px tre tag rubano l'immagine: ne restano due. */
@media (max-width: 479.98px) {
    .pc-tag:nth-child(n + 3) { display: none; }
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 131, 47, 0.07);
}

/* ═══════════════════════════════════════════════════════════
   CARD PROGETTO — barra informativa (solo home)
   Prima c'era un pulsante col solo NOME, centrato sotto l'immagine: diceva
   dove si andava, non di cosa si trattava. Qui la fascia che il pulsante
   occupava (il padding-bottom della card) ospita nome + sottotitolo a
   sinistra e le discipline a destra: si capisce il progetto senza aprirlo.
   I testi sono gli STESSI della pagina Work — una sola tassonomia, non due.
   ═══════════════════════════════════════════════════════════ */

.frame-effetto {
    overflow: hidden;
    border-radius: 9px;
    will-change: transform;
    transform: translateZ(0);
}

.project-img {
    border-radius: 9px;
    object-fit: cover;
    display: block;
    width: 100%;
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.row:first-of-type .project-img { aspect-ratio: 21 / 9; }
.col-md-7 .project-img,
.col-md-5 .project-img           { aspect-ratio: 4 / 3; }

/* Poster + LEGO: altezza identica — entrambe le colonne asimmetriche ottengono
   la stessa altezza esplicita invece dell'aspect-ratio variabile per larghezza. */
.col-md-7 .frame-effetto,
.col-md-5 .frame-effetto {
    height: clamp(560px, 65vh, 780px);
}
.col-md-7 .project-img,
.col-md-5 .project-img {
    aspect-ratio: unset !important;
    height: 100% !important;
    width: 100%;
    object-fit: cover;
}







/* CTA finale della sezione lavori */
.final-cta p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 5vw, 78px);
    font-weight: 500;
    color: #F9F8ED;
    line-height: 1.15;
}

/* Pulsante SEE ALL WORK — non modificare */
.btn-orange-work {
    background-color: #FF832F;
    color: #F9F8ED;
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(25px, 3vw, 40px);
    font-weight: 600;
    padding: 8px 60px;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px;
    position: relative;
}

.btn-orange-work::before,
.btn-orange-work::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    background-image: conic-gradient(from var(--angle), transparent 50%, #f9f8ed 100%);
    animation: rotate 3s linear infinite;
}

.btn-orange-work::after { filter: blur(15px); }
.btn-orange-work:hover::after { filter: blur(25px); }
.btn-orange-work:hover { text-decoration: none; }

/* ─── Carousel cinematografico ───────────────────────────── */

.cinematic-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0 60px;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.cc-track {
    display: grid;
    align-items: center;
    justify-items: center;
}

.cc-slide {
    grid-area: 1 / 1;
    width: 52%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity, filter;
    /* GSAP gestisce transform e opacity — CSS transiziona solo filter */
    transition: filter 0.65s ease;
}

/* Stati filtro — CSS gestisce blur/brightness con transizione fluida */
.cc-slide.is-active {
    filter: brightness(1) blur(0px);
    /* Fallback senza GSAP: */
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.cc-slide.is-prev {
    filter: brightness(0.62) blur(1.5px);
    /* Fallback senza GSAP: */
    transform: translateX(-100%) scale(0.78);
    opacity: 0.45;
    z-index: 1;
}

.cc-slide.is-next {
    filter: brightness(0.62) blur(1.5px);
    /* Fallback senza GSAP: */
    transform: translateX(100%) scale(0.78);
    opacity: 0.45;
    z-index: 1;
}

.cc-slide .project-img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover;
    width: 100%;
}

.cc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 131, 47, 0.45);
    color: #FF832F;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cc-btn:hover {
    background: #FF832F;
    color: #0a0a0a;
    border-color: #FF832F;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 131, 47, 0.15), 0 8px 28px rgba(255, 131, 47, 0.28);
}

.cc-prev { left: 21%; margin-left: -28px; }
.cc-next { right: 21%; margin-right: -28px; }

/* ─── Transizione My Work → Thinking Room ───────────────── */

.bg-creama {
    background-color: #F9F8ED;
    color: #000;
    overflow-x: hidden;
}

.section-spacing-crema {
    padding-top: 150px;
    padding-bottom: 150px;
}

/* ═══════════════════════════════════════════════════════════
   8. THE THINKING ROOM — Chi sono
   Classi con prefisso tr-* per evitare conflitti con Bootstrap.
   Attivazione: #thinking-room.tr-booted (IntersectionObserver in JS)
═══════════════════════════════════════════════════════════ */

#thinking-room {
    position: relative;
    overflow: hidden;
}

/* Linea separatrice sottile tra scuro e crema */
#thinking-room::before {
    content: '';
    position: absolute;
    top: 0; left: 40px; right: 40px;
    height: 1px;
    z-index: 3;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08) 22%, rgba(0, 0, 0, 0.08) 78%, transparent);
    pointer-events: none;
}

/* Dissolvenza in basso — fonde il bagliore arancione con lo sfondo, nasconde il bordo con la sezione successiva */
#thinking-room::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, #F9F8ED);
    pointer-events: none;
    z-index: 1;
}

.extra-spacing-top { margin-top: 60px !important; }

/* ─── Layer sfondo (position:absolute, tagliato da overflow:hidden della sezione) ─── */
.tr-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#tr-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    will-change: opacity;
    transition: opacity 1.8s ease;
}
#thinking-room.tr-booted #tr-field { opacity: 1; }

.tr-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform;
    opacity: 0;
    transition: opacity 2s ease;
}
#thinking-room.tr-booted .tr-orb { opacity: 1; }
.tr-orb-a { width: 620px; height: 620px; top: -16%; left: 8%;
    background: radial-gradient(circle, rgba(255,131,47,0.16) 0%, transparent 66%); }
.tr-orb-b { width: 760px; height: 760px; bottom: -22%; right: 4%;
    background: radial-gradient(circle, rgba(255,131,47,0.13) 0%, transparent 66%); }
.tr-orb-c { width: 420px; height: 420px; top: 38%; left: 52%;
    background: radial-gradient(circle, rgba(255,131,47,0.10) 0%, transparent 64%); }

.tr-amp-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}
.tr-amp {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(340px, 50vw, 720px);
    line-height: 1;
    color: #FF832F;
    opacity: 0;
    will-change: opacity;
    transition: opacity 2.4s ease 0.4s;
    user-select: none;
}
#thinking-room.tr-booted .tr-amp { opacity: 0.06; }

.tr-sat {
    position: absolute;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #FF832F;
    opacity: 0;
    will-change: transform, opacity;
    text-transform: uppercase;
    transition: opacity 1.4s ease 1.2s;
}
#thinking-room.tr-booted .tr-sat { opacity: 0.5; }
.tr-sat .tr-mk {
    display: inline-block;
    width: 7px; height: 7px;
    background: #FF832F;
    transform: rotate(45deg);
    margin-right: 9px;
    vertical-align: middle;
    opacity: 0.7;
}

/* Bagliore cursore — disabilitato */
.tr-cursor-glow { display: none; }

/* ─── Wrap — sopra il layer di sfondo ───────────────────── */
.tr-content-col { padding-left: 0; padding-right: 0; }
.tr-wrap {
    position: relative;
    z-index: 2;
    padding-top: clamp(80px, 9vh, 120px) !important;
    padding-bottom: clamp(80px, 9vh, 120px) !important;
}

/* ─── Intestazione sezione ───────────────────────────────── */
.tr-head { text-align: center; margin-bottom: clamp(26px, 3.4vh, 44px); }

.tr-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.36em;
    color: #FF832F;
    text-transform: uppercase;
    margin-bottom: clamp(16px, 2.2vh, 26px);
    opacity: 0;
    transform: translateY(10px);
    will-change: transform, opacity;
    transition: opacity 0.8s ease 0.45s, transform 0.8s ease 0.45s;
}
#thinking-room.tr-booted .tr-kicker { opacity: 1; transform: none; }

.tr-tick {
    display: inline-block;
    width: 30px; height: 1px;
    background: #FF832F;
    opacity: 0.5;
    transform: scaleX(0);
    will-change: transform;
    transition: transform 0.7s cubic-bezier(.7,0,.3,1) 0.7s;
}
.tr-tick.tr-l { transform-origin: right; }
.tr-tick.tr-r { transform-origin: left; }
#thinking-room.tr-booted .tr-tick { transform: scaleX(1); }

.tr-ttl {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.02em 0.3em;
    line-height: 0.9;
    margin: 0;
    cursor: default;
}

.tr-sm {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.4vw, 32px);
    letter-spacing: 0.22em;
    color: #423C34;
    text-transform: uppercase;
    overflow: hidden;
    display: inline-block;
}
.tr-sm > span {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
    transition: transform 0.85s cubic-bezier(.16,1,.3,1);
}
#thinking-room.tr-booted .tr-sm.tr-s1 > span { transition-delay: 0.55s; }
#thinking-room.tr-booted .tr-sm.tr-s2 > span { transition-delay: 1.1s; }
#thinking-room.tr-booted .tr-sm > span { transform: translateY(0); }

.tr-word {
    display: inline-flex;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(56px, 9vw, 140px);
    letter-spacing: -0.01em;
    color: #1A1714;
}
.tr-mask { display: inline-block; overflow: hidden; padding: 0 0.012em; }
.tr-ch {
    display: inline-block;
    transform: translateY(112%);
    transition: transform 0.9s cubic-bezier(.16,1,.3,1);
    will-change: transform;
}
#thinking-room.tr-booted .tr-ch { transform: translateY(0); }

.tr-underline {
    position: relative;
    height: 3px;
    width: min(640px, 78%);
    margin: clamp(14px, 1.8vh, 24px) auto 0;
    background: linear-gradient(90deg, transparent 0%, #FF832F 14%, #FF832F 50%, #FF832F 86%, transparent 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(.7,0,.3,1) 1.45s;
}
#thinking-room.tr-booted .tr-underline { transform: scaleX(1); }

/* ─── Barra statistiche ──────────────────────────────────── */
.tr-statbar {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    padding: clamp(13px, 1.6vh, 19px) 0;
    border-top: 1px solid rgba(26,23,20,0.14);
    border-bottom: 1px solid rgba(26,23,20,0.14);
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(16px);
    will-change: transform, opacity;
    transition: opacity 0.9s ease 1.6s, transform 0.9s cubic-bezier(.16,1,.3,1) 1.6s;
}
#thinking-room.tr-booted .tr-statbar { opacity: 1; transform: none; }

.tr-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1px solid rgba(26,23,20,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: #423C34;
    text-transform: uppercase;
}

.tr-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #FF832F;
    box-shadow: 0 0 10px #FF832F;
    flex-shrink: 0;
    animation: trPulse 2.4s ease-in-out infinite;
}
@keyframes trPulse { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity:.4; transform: scale(.75); } }

.tr-connector {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #FF832F 0%, #FF832F 8%, rgba(26,23,20,0.14) 26%, rgba(26,23,20,0.14) 100%);
}

.tr-stats {
    display: flex;
    align-items: stretch;
    gap: clamp(18px, 2.4vw, 40px);
    flex-shrink: 0;
}

.tr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tr-num {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #FF832F;
    font-variant-numeric: tabular-nums;
}

.tr-lbl {
    margin-top: 7px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.26em;
    color: #A89F90;
    text-transform: uppercase;
}

.tr-stat-div {
    width: 1px;
    align-self: center;
    height: 38px;
    background: rgba(26,23,20,0.14);
}

/* ─── Colonne manifesto ──────────────────────────────────── */
.tr-col h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: #1A1714;
    margin: 0 0 clamp(22px, 2.6vw, 34px);
    text-wrap: balance;
}
.tr-col h3 em { font-style: italic; color: #FF832F; }

.tr-body p {
    margin: 0 0 0.5em;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 400;
    font-size: clamp(14.5px, 1.05vw, 16.5px);
    line-height: 1.55;
    color: #423C34;
}
.tr-accent { color: #FF832F; font-weight: 500; }

/* ─── Divisore verticale tra le colonne (desktop) ───────── */
.tr-divider-col { padding-top: 0; padding-bottom: 0; }

.tr-divider {
    position: relative;
    width: 2px;
    min-height: 220px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent 0%, #FF832F 25%, #FF832F 50%, #FF832F 75%, transparent 100%);
    border-radius: 1px;
}
.tr-node {
    position: absolute;
    top: 50%; left: 50%;
    width: 9px; height: 9px;
    background: #FF832F;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    box-shadow: 0 0 0 5px #F9F8ED, 0 0 16px rgba(255,131,47,0.5);
    transition: transform 0.7s cubic-bezier(.34,1.56,.64,1) 2.1s;
}
#thinking-room.tr-booted .tr-node { transform: translate(-50%, -50%) rotate(45deg) scale(1); }

/* ─── Riga CTA ───────────────────────────────────────────── */
.tr-cta-row { margin-top: clamp(30px, 3.6vh, 50px); }

/* ─── Animazioni reveal (attivate da .tr-booted sulla sezione) ── */
.tr-reveal {
    opacity: 0;
    transform: translateY(28px);
    will-change: transform, opacity;
    transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
#thinking-room.tr-booted .tr-reveal { opacity: 1; transform: none; }
#thinking-room.tr-booted .tr-d1 { transition-delay: 1.75s; }
#thinking-room.tr-booted .tr-d2 { transition-delay: 1.87s; }
#thinking-room.tr-booted .tr-d3 { transition-delay: 1.99s; }
#thinking-room.tr-booted .tr-d4 { transition-delay: 2.11s; }
#thinking-room.tr-booted .tr-d5 { transition-delay: 2.23s; }
#thinking-room.tr-booted .tr-d6 { transition-delay: 2.35s; }

/* Pulsante Learn More */
.btn-outline-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 36px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-decoration: none;
    color: #0A0A0C;
    background: transparent;
    cursor: pointer;
    border: 2px solid #0A0A0C;
    border-radius: 50px;
    overflow: hidden;
    -webkit-clip-path: inset(0 round 50px);
    clip-path: inset(0 round 50px);
    transition: color 0.4s ease 0.08s, border-color 0.4s ease;
    z-index: 1;
}

.btn-outline-pill::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(10, 10, 12, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.42s 0.06s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.btn-outline-pill::after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #0A0A0C;
    border-radius: 50%;
    display: block;
    transition: all 0.42s 0.06s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.btn-outline-pill:hover {
    color: #F9F8ED;
    text-decoration: none;
    border-color: #0A0A0C;
}

.btn-outline-pill:hover::before {
    top: -35%;
    background-color: #0A0A0C;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.btn-outline-pill:hover::after {
    top: -45%;
    background-color: #0A0A0C;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.btn-outline-pill:active { transform: scale(0.97); }

.max-w-300 { max-width: 300px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════
   9. WHAT I DO — Servizi offerti (scope .wid)
═══════════════════════════════════════════════════════════ */

.project-padding {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.wid * { box-sizing: border-box; }

/* Overlay grana fine — contenuto nella sezione */
.wid-grain {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  z-index: 60;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ─── Sfondo a strati ────────────────────────────────────── */
.wid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wid #field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.8s ease; }
.wid.booted #field { opacity: 1; }

.wid .orb { position: absolute; border-radius: 50%; filter: blur(50px); will-change: transform; opacity: 0; transition: opacity 2s ease; }
.wid.booted .orb { opacity: 1; }
.wid .orb.a { width: 640px; height: 640px; top: -18%; right: 6%;
  background: radial-gradient(circle, rgba(255,131,47,0.15) 0%, transparent 66%); }
.wid .orb.b { width: 720px; height: 720px; bottom: -24%; left: 2%;
  background: radial-gradient(circle, rgba(255,131,47,0.12) 0%, transparent 66%); }
.wid .orb.c { width: 440px; height: 440px; top: 44%; left: 46%;
  background: radial-gradient(circle, rgba(255,131,47,0.09) 0%, transparent 64%); }

/* ─── Contenitore principale ─────────────────────────────── */
.wid {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
/* Raccordo con la sezione sopra — fonde il crema verso trasparente,
   mascherando eventuali differenze di texture grana/orb al bordo */
.wid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--cream) 0%, transparent 100%);
  z-index: 61;
  pointer-events: none;
}
.wid .room {
  position: relative; z-index: 2; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(80px, 10vh, 130px) var(--wid-pad-x) clamp(80px, 10vh, 120px);
}
.wid .wrap { width: 100%; margin: 0; }

/* ─── Intestazione ───────────────────────────────────────── */
.wid .wid-head { margin-bottom: clamp(24px, 3vh, 44px); }
.wid .kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.36em;
  color: var(--orange); text-transform: uppercase;
  margin-bottom: clamp(18px, 2.4vh, 30px);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.wid.booted .kicker { opacity: 1; transform: none; }
.wid .kicker .tick { width: 30px; height: 1px; background: var(--orange); opacity: 0.55;
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s cubic-bezier(.7,0,.3,1) 0.45s; }
.wid.booted .kicker .tick { transform: scaleX(1); }
.wid .kicker .count { color: var(--ink-faint); letter-spacing: 0.3em; }

.wid .ttl-row { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 64px); flex-wrap: nowrap; }
.wid .ttl {
  margin: 0; line-height: 0.86; flex: 0 0 auto; white-space: nowrap;
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(64px, 12vw, 220px); letter-spacing: -0.025em;
  text-transform: uppercase; color: var(--ink); cursor: default;
}
.wid .ttl .mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wid .ttl .ch { display: inline-block; transform: translateY(115%);
  transition: transform 0.95s cubic-bezier(.16,1,.3,1); will-change: transform; }
.wid.booted .ttl .ch { transform: translateY(0); }

.wid .ttl-meta {
  text-align: right; padding-bottom: clamp(6px, 1.2vw, 18px);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(15px, 1.3vw, 21px); line-height: 1.35; color: var(--ink-dim);
  flex: 0 1 auto; min-width: 0; max-width: 24ch;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.9s ease 1s, transform 0.9s cubic-bezier(.16,1,.3,1) 1s;
}
.wid.booted .ttl-meta { opacity: 1; transform: none; }
.wid .ttl-meta b { color: var(--orange); font-weight: 600; font-style: normal; }

.wid .head-rule { position: relative; height: 2px; margin-top: clamp(16px, 2.2vh, 30px); background: var(--hair); overflow: hidden; }
.wid .head-rule::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-glow) 50%, var(--orange) 100%);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.3s cubic-bezier(.7,0,.3,1) 0.7s;
}
.wid.booted .head-rule::after { transform: scaleX(1); }

/* ─── Lista servizi ──────────────────────────────────────── */
.wid .index { margin-top: clamp(20px, 2.5vh, 40px); }

.wid .row {
  position: relative;
  display: block;
  text-decoration: none; color: inherit;
  padding: clamp(38px, 5vh, 68px) clamp(8px, 1.4vw, 22px);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  cursor: pointer;
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.95s cubic-bezier(.16,1,.3,1), transform 0.95s cubic-bezier(.16,1,.3,1);
  /* reset margini negativi di Bootstrap .row */
  margin-left: 0;
  margin-right: 0;
}
.wid.booted .row { opacity: 1; transform: none; }
.wid.booted .row.r1 { transition-delay: 0.95s; }
.wid.booted .row.r2 { transition-delay: 1.12s; }
.wid.booted .row.r3 { transition-delay: 1.29s; }

/* Lavaggio caldo che appare al hover */
.wid .row .wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,131,47,0.10) 0%, rgba(255,131,47,0.03) 38%, transparent 70%);
  opacity: 0; transition: opacity 0.55s ease;
}
.wid .row:hover .wash, .wid .row.touched .wash { opacity: 1; }

/* Linea arancione che si disegna sul bordo superiore della riga */
.wid .row::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; z-index: 3;
  background: linear-gradient(90deg, var(--orange-glow), var(--orange) 50%, transparent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.6s cubic-bezier(.7,0,.3,1);
  box-shadow: 0 0 14px rgba(255,131,47,0.55);
}
.wid .row:hover::before, .wid .row.touched::before { transform: scaleX(1); }

/* Numero fantasma gigante */
.wid .row .ghost {
  position: absolute; top: 50%; right: clamp(10px, 3vw, 60px); z-index: 0;
  /* reset override di Bootstrap .row > * che rompe il positioning assoluto */
  width: auto; max-width: none; padding-left: 0; padding-right: 0; margin-top: 0;
  transform: translate(60px, -50%) scale(0.9);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(120px, 18vw, 260px); line-height: 1;
  color: var(--orange); opacity: 0; pointer-events: none; user-select: none;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.wid .row:hover .ghost, .wid .row.touched .ghost { opacity: 0.07; transform: translate(0, -50%) scale(1); }

.wid .row-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(24px, 4vw, 80px);
}

/* sinistra: numero + nome */
.wid .row-lead { display: flex; align-items: baseline; gap: clamp(16px, 1.6vw, 30px); min-width: 0; }
.wid .row-num {
  flex-shrink: 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(16px, 1.5vw, 24px); color: var(--orange);
  letter-spacing: 0.04em; line-height: 1;
  transition: transform 0.55s cubic-bezier(.22,1,.36,1);
}
.wid .row:hover .row-num, .wid .row.touched .row-num { transform: translateY(-6px); }

.wid .name {
  position: relative; display: inline-block; min-width: 0;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 76px); line-height: 0.96;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--ink);
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.wid .row:hover .name, .wid .row.touched .name { transform: translateX(clamp(6px, 0.8vw, 14px)); }
/* Layer di colore arancione che si svela al hover */
.wid .name .fill {
  position: absolute; inset: 0; color: var(--orange);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s cubic-bezier(.7,0,.3,1);
  pointer-events: none;
}
.wid .row:hover .name .fill, .wid .row.touched .name .fill { clip-path: inset(0 0 0 0); }

/* destra: tag + freccia */
.wid .row-tail { display: flex; align-items: center; gap: clamp(20px, 3vw, 56px); }
.wid .tags {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(2, auto); grid-auto-columns: minmax(140px, auto);
  column-gap: clamp(28px, 4vw, 96px); row-gap: clamp(9px, 1.1vh, 14px);
}
.wid .tag {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  font-size: clamp(13px, 1vw, 16px); font-weight: 400; letter-spacing: 0.01em;
  color: var(--ink-dim); white-space: nowrap;
  transition: color 0.4s ease, transform 0.5s cubic-bezier(.22,1,.36,1);
}
.wid .tag .mk {
  display: inline-block; width: 0; height: 7px; margin-right: 0;
  background: var(--orange); transform: rotate(45deg) scale(0); transform-origin: center;
  transition: width 0.45s cubic-bezier(.22,1,.36,1), margin 0.45s cubic-bezier(.22,1,.36,1), transform 0.45s cubic-bezier(.22,1,.36,1);
}
.wid .row:hover .tag, .wid .row.touched .tag { color: var(--ink); transform: translateX(15px); }
.wid .row:hover .tag .mk, .wid .row.touched .tag .mk { width: 7px; margin-right: 11px; transform: rotate(45deg) scale(1); }
.wid .row:hover .tag.g1, .wid .row.touched .tag.g1 { transition-delay: 0.02s; }
.wid .row:hover .tag.g2, .wid .row.touched .tag.g2 { transition-delay: 0.07s; }
.wid .row:hover .tag.g3, .wid .row.touched .tag.g3 { transition-delay: 0.12s; }
.wid .row:hover .tag.g4, .wid .row.touched .tag.g4 { transition-delay: 0.17s; }

.wid .go {
  flex-shrink: 0; width: clamp(40px, 3vw, 54px); height: clamp(40px, 3vw, 54px);
  border-radius: 50%; border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 18px;
  transform: scale(0.82); opacity: 0;
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), opacity 0.4s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.wid .go .ar { transition: transform 0.45s cubic-bezier(.22,1,.36,1); }
.wid .row:hover .go, .wid .row.touched .go { opacity: 1; transform: scale(1); background: var(--orange); border-color: var(--orange); color: var(--cream); }
.wid .row:hover .go .ar, .wid .row.touched .go .ar { transform: translateX(3px); }

@media (max-width: 1080px) {
  .wid .ttl-meta { display: none; }
  .wid .row-inner { grid-template-columns: 1fr; gap: clamp(18px, 3vh, 26px); }
  .wid .row-tail { justify-content: space-between; }
  .wid .ghost { display: none; }
}
@media (max-width: 620px) {
  .wid .tags { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .wid .go { display: none; }
  .wid .row:hover .name, .wid .row.touched .name { transform: none; }
}
@media (max-width: 480px) {
  :root { --wid-pad-x: 20px; }
  /* a 390px, 64px Libre Franklin "WHAT I DO" ≈ 346px — quasi a filo del bordo destro.
     Riduco il minimo a 52px → ~281px, comodo in 350px di larghezza contenuto. */
  .wid .ttl { font-size: clamp(52px, 12vw, 220px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .wid .ttl .ch, .wid .kicker, .wid .kicker .tick, .wid .ttl-meta, .wid .head-rule::after, .wid .row, .wid .orb {
    transition: none !important; opacity: 1 !important; transform: none !important;
  }
  .wid .ttl .ch { transform: translateY(0) !important; }
  .wid .head-rule::after { transform: scaleX(1) !important; }
  .wid .orb { opacity: 1 !important; }
  .wid #field { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   10. MY CREATIVE TOOLKIT — Strumenti creativi
   Classi con prefisso ctk-* per evitare conflitti con Bootstrap.
   Attivazione: #creative-toolkit.ctk-booted (IntersectionObserver in JS)
═══════════════════════════════════════════════════════════ */

.ctk-wrapper {
    position: relative;
    overflow: visible;
    background: #050504;
    color: #F9F8ED;
}

/* Linea arancione in cima — si disegna all'attivazione */
#creative-toolkit::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px; z-index: 5;
    background: linear-gradient(90deg, transparent 0%, #FF832F 18%, #FF832F 50%, #FF832F 82%, transparent 100%);
    transform: scaleX(1); transform-origin: left center;
}
#creative-toolkit.ctk-booted::before { transform: scaleX(1); }

/* ─── Layer sfondo ───────────────────────────────────────── */
.ctk-bg {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
    background: radial-gradient(120% 100% at 72% 42%, #161009 0%, #0a0705 40%, #050504 78%);
}

.ctk-core {
    position: absolute; top: 40%; right: 6%;
    width: 760px; height: 760px; transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255,131,47,0.34) 0%, rgba(255,131,47,0.14) 36%, transparent 64%);
    filter: blur(36px); opacity: 1;
    animation: ctkCorePulse 7s ease-in-out infinite;
}
#creative-toolkit.ctk-booted .ctk-core { opacity: 1; }
@keyframes ctkCorePulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.9; }
    50% { transform: translateY(-52%) scale(1.12); opacity: 1; }
}

.ctk-bg-parallax { position: absolute; inset: 0; will-change: transform; }
.ctk-bg-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background: url('../../Foto_OnePage/Creative toolkit.webp') no-repeat center right / cover;
    filter: brightness(1.28) contrast(1.18) saturate(1.24);
    opacity: 1;
    animation: ctkBreathe 24s ease-in-out infinite;
}
#creative-toolkit.ctk-booted .ctk-bg-photo { opacity: 1; }
@keyframes ctkBreathe {
    0%, 100% { transform: scale(1.02); }
    50% { transform: scale(1.08); }
}

#ctk-dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
#creative-toolkit.ctk-booted #ctk-dust { opacity: 1; }

.ctk-glass-streak {
    position: absolute; top: -10%; left: 22%; width: 28%; height: 122%;
    transform: skewX(-9deg); opacity: 1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.05) 44%, rgba(255,255,255,0.13) 50%, rgba(255,205,140,0.07) 57%, transparent 72%);
    backdrop-filter: blur(8px) brightness(1.07); -webkit-backdrop-filter: blur(8px) brightness(1.07);
    mix-blend-mode: screen; animation: ctkStreakDrift 17s ease-in-out infinite;
}
#creative-toolkit.ctk-booted .ctk-glass-streak { opacity: 1; }
@keyframes ctkStreakDrift { 0%,100% { transform: translateX(0) skewX(-9deg); } 50% { transform: translateX(48%) skewX(-9deg); } }

.ctk-orb { position: absolute; border-radius: 50%; filter: blur(74px); opacity: 1; }
#creative-toolkit.ctk-booted .ctk-orb { opacity: 1; }
.ctk-orb-a { width: 640px; height: 640px; top: -22%; right: 22%;
    background: radial-gradient(circle, rgba(255,131,47,0.26) 0%, transparent 62%);
    animation: ctkOrbA 21s ease-in-out infinite; }
.ctk-orb-b { width: 520px; height: 520px; bottom: -18%; right: 4%;
    background: radial-gradient(circle, rgba(255,131,47,0.20) 0%, transparent 64%);
    animation: ctkOrbB 26s ease-in-out infinite; }
@keyframes ctkOrbA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-46px,32px) scale(1.14); } }
@keyframes ctkOrbB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-28px) scale(1.1); } }

.ctk-spec {
    position: absolute; inset: 0; opacity: 1;
    background: linear-gradient(115deg, transparent 32%, rgba(255,150,80,0.08) 48%, rgba(255,255,255,0.07) 52%, transparent 68%);
    background-size: 260% 100%; background-position: 130% 0;
    mix-blend-mode: screen;
    animation: ctkSpecSweep 15s ease-in-out infinite;
}
#creative-toolkit.ctk-booted .ctk-spec { opacity: 1; }
@keyframes ctkSpecSweep { 0% { background-position: 130% 0; } 55% { background-position: -30% 0; } 100% { background-position: -30% 0; } }

.ctk-bg-fade { position: absolute; inset: 0;
    background: linear-gradient(90deg, #050504 0%, rgba(5,5,4,0.84) 22%, rgba(5,5,4,0.36) 44%, transparent 66%, rgba(5,5,4,0.18) 100%); }
.ctk-bg-vig { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,5,4,0.88) 0%, transparent 15%, transparent 82%, rgba(5,5,4,0.96) 100%),
                radial-gradient(150% 130% at 64% 48%, transparent 46%, rgba(5,5,4,0.42) 100%); }
.ctk-bg::after { content: ""; position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: screen;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 200px 200px; }

/* ─── Pausa animazioni decorative fuori viewport ───────────
   ctk-core/bg-photo/glass-streak/orb/spec animano infinite fin dal
   load, anche a sezione fuori schermo: costano paint/composite continuo
   su ogni pagina. #creative-toolkit.ctk-inview è alimentata da un
   IntersectionObserver separato da quello di boot (che è one-shot). */
.ctk-core, .ctk-bg-photo, .ctk-glass-streak, .ctk-orb, .ctk-spec {
    animation-play-state: paused;
}
#creative-toolkit.ctk-inview .ctk-core,
#creative-toolkit.ctk-inview .ctk-bg-photo,
#creative-toolkit.ctk-inview .ctk-glass-streak,
#creative-toolkit.ctk-inview .ctk-orb,
#creative-toolkit.ctk-inview .ctk-spec {
    animation-play-state: running;
}
#creative-toolkit.ctk-booted .ctk-l2,
#creative-toolkit.ctk-booted .ctk-l2 .ctk-ch {
    animation-play-state: paused;
}
#creative-toolkit.ctk-booted.ctk-inview .ctk-l2,
#creative-toolkit.ctk-booted.ctk-inview .ctk-l2 .ctk-ch {
    animation-play-state: running;
}

/* ─── Contenitore + wrap ─────────────────────────────────── */
.ctk-room {
    position: relative; z-index: 2;
    padding-top: clamp(80px, 9vh, 120px) !important;
    padding-bottom: clamp(60px, 7vh, 90px) !important;
}
.ctk-wrap { width: 100%; }

/* ─── Effetti reveal ─────────────────────────────────────── */
.ctk-fx { opacity: 1; transform: none; filter: none; }
.ctk-fx-fade { opacity: 1; filter: none; }
#creative-toolkit.ctk-booted .ctk-fx { opacity: 1; transform: none; filter: blur(0);
    transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.16,1,.3,1), filter 1.1s ease; }
#creative-toolkit.ctk-booted .ctk-fx-fade { opacity: 1; filter: blur(0); transition: opacity 1.2s ease, filter 1.2s ease; }

/* ─── Kicker (etichetta superiore) ──────────────────────── */
.ctk-kicker { display: inline-flex; align-items: center; gap: 14px;
    font-family: 'Libre Franklin', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.36em; color: #FF832F; text-transform: uppercase;
    margin-bottom: clamp(18px, 2.4vh, 28px); }
#creative-toolkit.ctk-booted .ctk-kicker.ctk-fx { transition-delay: 0.35s; }
.ctk-tick { display: inline-block; width: 34px; height: 1px; background: #FF832F; opacity: 0.6;
    transform: scaleX(1); transform-origin: left; }
#creative-toolkit.ctk-booted .ctk-tick { transform: scaleX(1); }

/* ─── Titolo principale ──────────────────────────────────── */
.ctk-title { margin: 0; line-height: 0.82; letter-spacing: -0.01em; }
.ctk-title .ctk-l1, .ctk-title .ctk-l2 { display: block; }
.ctk-fitline { display: inline-block; white-space: nowrap; }
.ctk-l1 { font-family: 'Libre Franklin', sans-serif; font-weight: 700;
    font-size: clamp(44px, 8.4vw, 150px); letter-spacing: -0.014em; color: #F9F8ED; }
.ctk-l2 { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600;
    font-size: clamp(66px, 12.6vw, 225px); letter-spacing: 0.005em; margin-top: 0.02em;
    color: #FF832F; filter: drop-shadow(0 0 26px rgba(255, 131, 47, 0.5)); }
#creative-toolkit.ctk-booted .ctk-l2 { animation: ctkL2Pulse 4.2s ease-in-out infinite; }
@keyframes ctkL2Pulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 131, 47, 0.42)); }
    50% { filter: drop-shadow(0 0 42px rgba(255, 131, 47, 0.75)); }
}
.ctk-ch { display: inline-block; padding-top: 0.22em; padding-bottom: 0.18em; margin-top: -0.22em; margin-bottom: -0.18em; opacity: 1; transform: none; filter: none; }
#creative-toolkit.ctk-booted .ctk-ch { opacity: 1; transform: none; filter: blur(0);
    transition: opacity 0.95s ease, transform 1.05s cubic-bezier(.16,1,.3,1), filter 0.95s ease; }
.ctk-l1 .ctk-ch { background: linear-gradient(180deg, #FFFEFB 0%, #F9F8ED 52%, #D2CBBA 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ctk-l2 .ctk-ch { background: linear-gradient(180deg, #FFB070 0%, #FF832F 46%, #C2480C 100%);
    background-size: 100% 220%; background-position: 0 0;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
#creative-toolkit.ctk-booted .ctk-l2 .ctk-ch { animation: ctkL2Sheen 5s ease-in-out infinite; }
@keyframes ctkL2Sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 0 100%; } }

/* ─── Griglia 2×2 strumenti ──────────────────────────────── */
.ctk-toolkit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(0px, 3vw, 60px); row-gap: 0;
    margin-top: clamp(40px, 5.6vh, 76px); max-width: 880px; }
.ctk-item { position: relative;
    padding: clamp(22px, 2.2vw, 32px) clamp(18px, 1.8vw, 30px) clamp(26px, 2.6vw, 38px);
    border-top: 1px solid rgba(244,241,231,0.10); cursor: default; overflow: hidden; }
#creative-toolkit.ctk-booted .ctk-item.ctk-fx { transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.16,1,.3,1), filter 1.1s ease; }
#creative-toolkit.ctk-booted .ctk-item.ctk-t1 { transition-delay: 1.00s; }
#creative-toolkit.ctk-booted .ctk-item.ctk-t2 { transition-delay: 1.12s; }
#creative-toolkit.ctk-booted .ctk-item.ctk-t3 { transition-delay: 1.24s; }
#creative-toolkit.ctk-booted .ctk-item.ctk-t4 { transition-delay: 1.36s; }
.ctk-item::before { content: ""; position: absolute; top: -1px; left: 0;
    height: 1px; width: 100%;
    background: linear-gradient(90deg, #FF832F, #FF832F 55%, transparent);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.6s cubic-bezier(.7,0,.3,1);
    box-shadow: 0 0 12px rgba(255,131,47,0.6); }
.ctk-item:hover::before { transform: scaleX(1); }
.ctk-wash { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,131,47,0.10) 0%, transparent 72%);
    opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.ctk-item:hover .ctk-wash { opacity: 1; }
.ctk-item h3 { position: relative; z-index: 1; margin: 0 0 13px;
    font-family: 'Libre Franklin', sans-serif; font-weight: 700; font-style: normal;
    font-size: clamp(15px, 1.15vw, 19px); letter-spacing: 0.2em; text-transform: uppercase;
    color: #F9F8ED; transition: color 0.4s ease, transform 0.55s cubic-bezier(.22,1,.36,1); }
.ctk-item:hover h3 { color: #FF832F; transform: translateX(5px); }
.ctk-item p { position: relative; z-index: 1; margin: 0;
    font-family: 'Libre Franklin', sans-serif; font-weight: 400;
    font-size: clamp(14px, 0.98vw, 16px); line-height: 1.55; color: #C2BCB1; max-width: 32ch;
    transition: color 0.45s ease; }
.ctk-item:hover p { color: #F9F8ED; }

/* ─── Contenitore CTA ───────────────────────────────────── */
.ctk-cta { margin-top: clamp(50px, 7vh, 104px); padding-left: 1.5rem; padding-right: 1.5rem; }
#creative-toolkit.ctk-booted .ctk-cta.ctk-fx-fade { transition-delay: 1.6s; }
.ctk-cta .startnew-text { text-align: center; }

/* ─── Footer interno sezione ────────────────────────────── */
.ctk-foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
    margin-top: clamp(34px, 5vh, 64px); padding-top: 22px;
    border-top: 1px solid rgba(244,241,231,0.05);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: #6F6A61; }
#creative-toolkit.ctk-booted .ctk-foot.ctk-fx-fade { transition-delay: 1.9s; }
.ctk-foot a { color: #C2BCB1; text-decoration: none; transition: color 0.3s ease; }
.ctk-foot a:hover { color: #FF832F; }
.ctk-foot-name { color: #C2BCB1; }
.ctk-foot-left { display: flex; align-items: center; gap: 10px; }
.ctk-foot-contacts { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.ctk-foot-right { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.ctk-foot-socials { display: flex; gap: 18px; }
.ctk-foot-socials a { font-size: 1.15rem; }

/* ─── Responsive toolkit ─────────────────────────────────── */
@media (max-width: 760px) {
    .ctk-toolkit { grid-template-columns: 1fr; max-width: none; }
    .ctk-foot { grid-template-columns: 1fr !important; justify-items: center !important; gap: 10px; text-align: center !important; }
    .ctk-foot-left { flex-direction: column !important; align-items: center !important; gap: 4px; }
    .ctk-foot-right { flex-direction: column !important; align-items: center !important; gap: 10px; justify-content: center !important; }
    .ctk-foot-contacts { flex-direction: column !important; align-items: center !important; gap: 6px; }
    .ctk-foot-socials { width: 100%; justify-content: center; margin-top: 4px; }
    .ctk-foot-socials a { font-size: 1.6rem; color: #FF832F; }
    /* CTA: azzera padding desktop su mobile */
    .ctk-cta { padding-left: 0 !important; padding-right: 0 !important; }
    /* Titolo: no bounce, no stagger, no onda — solo fade-in */
    .ctk-ch { transform: none !important; filter: none !important; transition-delay: 0s !important; }
}
@media (max-width: 991px) {
    .ctk-room { padding-top: clamp(60px, 7vh, 80px) !important; padding-bottom: clamp(50px, 6vh, 70px) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ctk-ch, .ctk-fx, .ctk-fx-fade { opacity: 1 !important; transform: none !important; filter: none !important; }
    .ctk-tick, #creative-toolkit::before { transform: scaleX(1) !important; }
    .ctk-bg-photo { transform: none !important; opacity: 1 !important; }
    .ctk-orb, #ctk-dust, .ctk-glass-streak, .ctk-spec, .ctk-core { opacity: 1 !important; }
    .ctk-core { transform: translateY(-50%) !important; }
    .ctk-l2 { filter: drop-shadow(0 0 22px rgba(255,131,47,0.45)) !important; }
}

.startnew-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(28px, 7.5vw, 128px);
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.05;
}

.new-project {
    color: #FF832F;
    font-family: 'Libre Franklin', sans-serif;
    font-style: normal !important;
    font-weight: 600;
    font-size: clamp(25px, 7.5vw, 108px);
}

/* ═══════════════════════════════════════════════════════════
   11. START A NEW PROJECT — CTA finale
═══════════════════════════════════════════════════════════ */

/* Pulsante START A CONVERSATION — non modificare */
.btn-outline-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 100px;
    color: #FF832F;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 22px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    background-color: rgba(43, 20, 5, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #FF832F;
    box-shadow:
        0 0 25px rgba(255, 131, 47, 0.6),
        inset 0 0 10px rgba(255, 131, 47, 0.2);
}

/* Fix Safari clip a ogni larghezza (non tocca la regola protetta sopra):
   overflow:hidden + border-radius non clippa lo shimmer ::before su Safari,
   prima risolto solo sotto i 991px — qui esteso anche a tablet landscape. */
.btn-outline-cta {
    -webkit-clip-path: inset(0 round 100px);
    clip-path: inset(0 round 100px);
}

.btn-outline-cta::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-outline-cta:hover::before {
    left: 150%;
    transition: all 0.8s ease-in-out;
}

.btn-outline-cta:hover {
    background-color: rgba(60, 28, 7, 0.8);
    box-shadow:
        0 0 35px rgba(255, 131, 47, 0.8),
        inset 0 0 15px rgba(255, 131, 47, 0.4);
    color: #FF832F !important;
    text-decoration: none;
    transform: scale(1.005);
}

.custom-padding-ctaw {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.testo-cta {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(16px, 2.5vw, 35px);
}

/* ═══════════════════════════════════════════════════════════
   12. FOOTER
═══════════════════════════════════════════════════════════ */

.site-footer {
    font-size: clamp(12px, 1vw, 14px);
    color: #F9F8ED;
    border-top: 1px solid rgba(249, 248, 237, 0.08);
    margin-top: 40px;
    padding-top: 24px !important;
}

.footer-copy {
    opacity: 0.45;
    font-family: 'Libre Franklin', sans-serif;
}

.footer-socials a {
    color: rgba(249, 248, 237, 0.55);
    margin-left: 22px;
    font-size: 1.45rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

.footer-socials a:hover {
    color: #FF832F;
    transform: translateY(-4px) scale(1.18);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   14. ANIMAZIONE LETTERE PULSANTI
   span-mother: testo visibile | span-mother2: testo nascosto sotto
   Al hover: primo testo esce in alto, secondo entra dal basso.
═══════════════════════════════════════════════════════════ */

.span-mother {
    display: inline-flex;
    overflow: hidden;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
}

.span-mother2 {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
    pointer-events: none;
    z-index: 2;
}

.span-mother span,
.span-mother2 span {
    display: inline-block;
    white-space: pre;
    transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.4, 1);
}

/* span-mother2 parte nascosto in basso — clip-path assicura il taglio GPU.
   opacity:0 è una rete di sicurezza: su alcune versioni di Safari il testo
   trasformato "scappa" dal clip-path/overflow del genitore quando viene
   promosso su un proprio layer di compositing (bug noto WebKit) — con
   opacity:0 resta comunque invisibile anche se il clip fallisce. */
.span-mother2 span {
    transform: translateY(2em);
    opacity: 0;
}

/* Al hover: primo testo esce verso l'alto */
.btn-chat:hover .span-mother span,
.btn-outline-cta:hover .span-mother span,
.btn-outline-pill:hover .span-mother span,
.btn-orange-work:hover .span-mother span {
    transform: translateY(-1.2em);
}

/* Al hover: secondo testo entra dal basso */
.btn-chat:hover .span-mother2 span,
.btn-outline-cta:hover .span-mother2 span,
.btn-outline-pill:hover .span-mother2 span,
.btn-orange-work:hover .span-mother2 span {
    transform: translateY(0);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE — Media query generali
═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    /* Sezione crema: compatta su mobile — padding gestito da .tr-wrap */

    .section-spacing-crema {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    /* Carousel: impilato verticalmente su mobile */
    .cinematic-carousel {
        padding: 0 !important;
        margin: 0 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        overflow: visible;
    }

    .cc-track {
        display: flex !important;
        flex-direction: column;
        gap: 25px;
    }

    .cc-slide {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    .cc-slide .project-img {
        aspect-ratio: 4 / 5 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .cc-btn { display: none !important; }

    .work-section .project-img {
        aspect-ratio: 4 / 5 !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Reset altezza fissa Poster+LEGO: su mobile tornano 4/5 come le altre card */
    .col-md-7 .frame-effetto,
    .col-md-5 .frame-effetto {
        height: auto !important;
    }

    .work-section,
    .project-card,
    .slider-container,
    .slider-track,
    .slider-item { height: auto !important; }

    .work-section .row,
    .work-section,
    .slider-container { margin-bottom: 25px !important; }

    .work-section .col-md-7 { margin-bottom: 25px !important; }
    .work-section .project-card { margin-bottom: 0 !important; }

    /* ─── Final CTA: mobile block layout ─── */
    .final-cta-text-mobile {
        font-family: 'Cormorant Garamond', serif;
        font-size: clamp(36px, 10vw, 64px);
        font-weight: 500;
        color: #F9F8ED;
        line-height: 1.15;
        margin-bottom: 0;
    }
    .final-cta-btn-mobile {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 20px 30px !important;
        font-size: clamp(18px, 5vw, 24px) !important;
        margin: 28px 0 0 !important;
    }

    /* ─── Thinking Room: spaziature mobile ─── */
    .extra-spacing-top { margin-top: 40px !important; }
    .project-padding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .max-w-300 { max-width: 100% !important; }
    .btn-outline-pill { font-size: 13px; padding: 14px 36px; }

    /* ─── Thinking Room redesign: mobile overrides ─── */
    #thinking-room { padding: 0; }
    .tr-wrap { padding-top: clamp(60px, 7vh, 90px) !important; padding-bottom: clamp(60px, 7vh, 90px) !important; }
    .tr-statbar { flex-direction: column; align-items: center; gap: 14px; }
    .tr-stats { margin-left: 0 !important; justify-content: center; gap: clamp(14px, 4vw, 28px); }
    .tr-connector { display: none !important; }
    .tr-sm { font-size: clamp(12px, 4vw, 20px) !important; }
    .tr-word { font-size: clamp(40px, 11.5vw, 80px) !important; }
    .tr-sat, .tr-cursor-glow { display: none; }

    /* ─── Role pill rotator mobile ─── */
    .hero-role-pill {
        font-size: clamp(16px, 4.5vw, 36px);
    }

    /* ─── Footer mobile centrato ─── */
    .footer-copy {
        text-align: center;
        margin-bottom: 12px !important;
    }
    .footer-socials { text-align: center; }
    .footer-socials a { margin-left: 12px; margin-right: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   TABLET INTERMEDIO — 769px–991px
   Range tra layout mobile (≤991px) e desktop (≥992px).
   Correzioni specifiche per iPad landscape e laptop small.
═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 991px) {

    /* font-serif (titolo "signature"): 115px fisso → scala con viewport */
    .font-serif { font-size: clamp(80px, 10.5vw, 115px); }

    /* My Work heading: riduce leggermente per bilanciare */
    .my-work { font-size: clamp(55px, 8.5vw, 85px); }

    /* Work section: padding orizzontale più contenuto su tablet */
    .work-section { padding-left: 32px; padding-right: 32px; }

    /* Poster + Lego card height: riduce leggermente su tablet */
    .col-md-7 .frame-effetto,
    .col-md-5 .frame-effetto {
        height: clamp(420px, 55vh, 620px);
    }

    /* Hero wordmark: scala più morbida in questo range */
    .hero-wordmark { font-size: clamp(80px, 13.5vw, 160px); }

    /* Hero meta strip: più compatta su tablet */
    .hero-meta-value { font-size: 13px; }
    .hero-meta-label { font-size: 8.5px; }

    /* Thinking Room: stat bar padding */
    .tr-statbar { padding: 0 16px; }

    /* CTA finale: font leggermente ridotto */
    .final-cta p { font-size: clamp(28px, 4.5vw, 64px); }
}

@media (max-width: 768px) {
    .adriano { font-size: clamp(52px, 14vw, 96px); }
    .my-work { font-size: clamp(44px, 13vw, 80px); }
    .font-serif { font-size: clamp(44px, 13vw, 80px); }
    .work-section { padding: 80px 20px 60px; }
    .work-section::before { left: 20px; right: 20px; }
}

@media (min-width: 992px) {
    .slider-item.main-card .project-img {
        aspect-ratio: 21 / 12 !important;
        max-height: 65vh;
        object-fit: cover;
    }
}

/* ═══════════════════════════════════════════════════════════
   16. CORREZIONI MOBILE AGGIUNTIVE
   Tutte le regole qui sotto agiscono SOLO su ≤ 991 px.
   Il layout desktop NON viene toccato.
═══════════════════════════════════════════════════════════ */

/* ── Staircase CTA: inline di default (desktop) ─────── */
.cta-line-1,
.cta-line-2,
.cta-line-3 { display: inline; }

/* "with me." non si spezza mai: "me." rimane sempre insieme a "with"
   anche quando il testo va a capo su schermi intermedi. ── */
.cta-line-3 { white-space: nowrap; }

@media (max-width: 991px) {

    /* ── PADDING ORIZZONTALE UNIFORME ──────────────────────
       Bootstrap grid: row ha margin -12px, col ha padding +12px.
       container-fluid a 20px → content a 20-12+12 = 20px dal bordo.
    ───────────────────────────────────────────────────────── */
    .site-footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .site-footer .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* ── 1. THE THINKING ROOM — colonne con linea sinistra arancione sfumata ─── */
    #thinking-room .col-12.col-md-4 {
        border-left: none;
        padding-left: 24px !important;
        margin-bottom: 36px;
        position: relative;
    }
    #thinking-room .col-12.col-md-4::before {
        content: '';
        position: absolute;
        left: 0; top: 6%; bottom: 6%;
        width: 2px;
        background: linear-gradient(to bottom, transparent, #FF832F 30%, #FF832F 70%, transparent);
        border-radius: 1px;
    }
    .tr-col h3 { font-size: clamp(28px, 7vw, 48px) !important; }
    .tr-body p { font-size: clamp(15px, 4vw, 17px) !important; }

    /* ── 1b. Pulsante LEARN MORE — dimensioni mobile
       (il fix Safari clip-path ora è nella regola base, vale a ogni larghezza) ─── */
    .btn-outline-pill {
        padding: 20px 30px !important;
        font-size: clamp(14px, 4.5vw, 20px) !important;
        letter-spacing: 2px !important;
    }
    .btn-outline-pill .span-mother2 span { transform: translateY(4em); }
    .max-w-300 { max-width: 100% !important; }

    /* ── 3b. CTA — centrata + "Start a" a sx con NEW PROJECT
                   "with me." a destra con PROJECT
       ──────────────────────────────────────────────────────
       Tecnica: h2 diventa flex block-level con width:fit-content.
       La larghezza = il figlio più largo ("NEW PROJECT").
       margin auto → centrato orizzontalmente nel contenitore.
       align-items:stretch → tutti i figli riempiono quella larghezza.
       text-align left/right sui figli → allineamento scalino.
    ───────────────────────────────────────────────────────── */
    .startnew-text {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: -webkit-fit-content;
        width: fit-content;
        /* Rete di sicurezza: se assets/js/fit-cta.js non gira, il blocco non
           può comunque superare la larghezza del genitore — così la terza
           riga, allineata a destra, resta sullo schermo. */
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 40px;
        text-align: left !important;
        font-size: clamp(26px, 7.5vw, 128px) !important;
    }
    /* "NEW PROJECT" — più grande; determina la larghezza del contenitore.
       Il 12vw originale bastava per l'inglese (11 caratteri) ma sfondava con
       le traduzioni (14: "NUOVO PROGETTO", "NOUVEAU PROJET"…). Il valore qui
       è più prudente; fit-cta.js misura poi la larghezza reale e riduce
       ancora se serve — perché le metriche del font non si possono indovinare
       a priori. */
    .new-project { font-size: clamp(34px, 9.5vw, 130px) !important; white-space: nowrap; }

    .cta-line-1 {
        display: block;
        text-align: left;   /* borda sinistra = borda sinistra di NEW PROJECT */
        margin-left: 0;
    }
    .cta-line-2 {
        display: block;
        margin-left: 0;
    }
    .cta-line-3 {
        display: block;
        text-align: right;  /* borda destra = borda destra di NEW PROJECT */
        margin-left: 0;
        font-family: 'Cormorant Garamond', serif;
        font-style: italic;
        font-weight: 500;
        font-size: clamp(24px, 7vw, 90px);
        color: #F9F8ED;
    }

    /* ── 3c. Pulsante START A CONVERSATION ─────────────────
       Fix "testo sottostante visibile":
       Stesso iOS Safari bug di LEARN MORE: border-radius + overflow:hidden
       non clippano il ::before shimmer → clip-path: inset() lo risolve.
       clip-path taglia anche il box-shadow esterno → no ghost glow.
    ───────────────────────────────────────────────────────── */
    .btn-outline-cta {
        padding: 20px 30px !important;
        font-size: clamp(14px, 4.5vw, 20px) !important;
        letter-spacing: 2px !important;
        -webkit-clip-path: inset(0 round 100px);
        clip-path: inset(0 round 100px);
    }
    /* Ghost text fix: spinge span-mother2 fuori dal campo visivo.
       Il :hover globale (specificità 0-3-1) batte questa regola (0-2-1)
       e ripristina translateY(0) → animazione funzionante. */
    .btn-outline-cta .span-mother2 span {
        transform: translateY(4em);
    }

    /* ── btn-orange-work: fix bordo conic-gradient su iOS Safari ──
       Il conic-gradient con z-index:-1 e animation causa artefatti GPU:
       il gradiente trapela attraverso lo sfondo arancione creando "blocchi"
       e testo fantasma a ogni step di rotazione. Eliminiamo i pseudo-elementi su mobile. */
    .btn-orange-work::before,
    .btn-orange-work::after {
        content: none !important;
        display: none !important;
        animation: none !important;
    }
    .btn-orange-work {
        /* Rimuove clip che creano stacking context indesiderati */
        -webkit-clip-path: none !important;
        clip-path: none !important;
        /* Sfondo sempre completamente opaco sopra i layer GPU */
        background-color: #FF832F !important;
        isolation: isolate;
    }
}

/* ═══════════════════════════════════════════════════════════
   17. MENU MOBILE — Overlay di navigazione
   Tutto il blocco si applica solo sotto 992 px. L'overlay è
   position:fixed ma pointer-events:none quando chiuso,
   quindi non interferisce mai con il layout desktop.
═══════════════════════════════════════════════════════════ */

/* ─── Pulsante hamburger personalizzato ──────────────────── */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    /* Padding verticale 15px (non 8px): area di tocco ~44px invece di ~30px,
       la dimensione minima raccomandata. La larghezza (28px barra + 8px×2 di
       padding = 44px) era già a posto, tocca solo l'altezza. */
    padding: 15px 8px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    transition: transform 0.12s ease;
}

/* Feedback tattile al tap */
.mobile-menu-btn:active { transform: scale(0.85); }

.mobile-menu-btn-bar {
    display: block;
    height: 1.5px;
    background: #F9F8ED;
    border-radius: 2px;
    will-change: transform, opacity, width;
}

/* ── CHIUSURA (stato default): barre 1&3 rientrano subito,
   barra 2 riappare con un piccolo ritardo ── */
.mobile-menu-btn-bar:nth-child(1) {
    width: 28px;
    transition:
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0s,
        opacity   0.28s ease 0s,
        width     0.36s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}
.mobile-menu-btn-bar:nth-child(2) {
    width: 18px;
    opacity: 1;
    /* Riappare con ritardo, dopo che 1 e 3 si sono già separate */
    transition:
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0s,
        opacity   0.22s ease 0.22s,
        width     0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}
.mobile-menu-btn-bar:nth-child(3) {
    width: 28px;
    transition:
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0s,
        opacity   0.28s ease 0s,
        width     0.36s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

/* ── APERTURA: barra 2 sparisce prima (no delay),
   poi 1 e 3 scivolano e si incrociano con micro-delay ── */
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    transition:
        transform 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity   0.28s ease,
        width     0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn-bar:nth-child(2) {
    opacity: 0;
    width: 0;
    transition:
        transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        opacity   0.13s ease 0s,
        width     0.16s ease 0s;
}
.mobile-menu-btn[aria-expanded="true"] .mobile-menu-btn-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    transition:
        transform 0.44s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity   0.28s ease,
        width     0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 991px) {
    .navbar-toggler  { display: none !important; }
    .mobile-menu-btn { display: flex !important; }

    /* Allinea il padding con l'interno dell'overlay (28px = 16px navbar + 12px Bootstrap) */
    .head,
    .head.scrolled {
        padding-left:  16px !important;
        padding-right: 16px !important;
    }
}

/* ─── Overlay a schermo intero ───────────────────────────── */

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: oklch(9% 0.006 30);
    /* Origine impostata dinamicamente da JS via --menu-origin-x / --menu-origin-y */
    clip-path: circle(0px at var(--menu-origin-x, calc(100% - 30px)) var(--menu-origin-y, 36px));
    /* Chiusura: rapida e decisa — il CSS del target (stato default) governa il close */
    transition: clip-path 0.52s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
    overflow: hidden;
}

.mobile-overlay.is-open {
    clip-path: circle(2200px at var(--menu-origin-x, calc(100% - 30px)) var(--menu-origin-y, 36px));
    pointer-events: all;
    /* Apertura: fluida, leggermente più veloce dell'originale */
    transition: clip-path 1.08s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Grana sottile — coerente con l'overlay grana del sito */
.mobile-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

/* Linea accent sottile in basso */
.mobile-overlay::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 131, 47, 0.18) 30%,
        rgba(255, 131, 47, 0.18) 70%,
        transparent
    );
    z-index: 2;
    pointer-events: none;
}

.mobile-overlay-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform; /* layer promosso — evita jank nel parallax */
    padding: 0 28px 44px;
    overflow-y: auto;
}

/* ─── Riga header overlay ────────────────────────────────── */

.mobile-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    flex-shrink: 0;
}

.mobile-overlay-logo {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-14px);
    /* Uscita rapida al close */
    transition: opacity 0.12s ease, transform 0.14s ease;
}
.mobile-overlay.is-open .mobile-overlay-logo {
    opacity: 1;
    transform: translateX(0);
    /* Ingresso con ritardo durante l'apertura */
    transition:
        opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

/* Pulsante chiudi */
.mobile-overlay-close {
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid rgba(249, 248, 237, 0.1);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.75) rotate(-90deg);
    /* Uscita rapida */
    transition:
        opacity      0.12s ease,
        transform    0.14s ease,
        border-color 0.3s ease,
        background   0.3s ease;
}
.mobile-overlay.is-open .mobile-overlay-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    /* Ingresso con ritardo */
    transition:
        opacity      0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.48s,
        transform    0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.48s,
        border-color 0.3s ease,
        background   0.3s ease;
}
.mobile-overlay-close:hover {
    border-color: rgba(255, 131, 47, 0.55);
    background: rgba(249, 248, 237, 0.04);
    transform: rotate(90deg);
}

.mobile-overlay-close span {
    position: absolute;
    width: 15px;
    height: 1.5px;
    background: #F9F8ED;
    border-radius: 2px;
}
.mobile-overlay-close span:first-child { transform: rotate(45deg); }
.mobile-overlay-close span:last-child  { transform: rotate(-45deg); }

/* ─── Voci di navigazione ────────────────────────────────── */

.mobile-overlay-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 20px;
}

.mo-item {
    padding: 22px 0;
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    /* Uscita rapida: scompaiono subito quando il menu si chiude */
    transition: opacity 0.12s ease, transform 0.14s ease;
}
.mobile-overlay.is-open .mo-item:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    /* Spring easing + stagger per l'ingresso */
    transition:
        opacity   0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s;
}
.mobile-overlay.is-open .mo-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity   0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.50s,
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.50s;
}

.mo-nav-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: #F9F8ED;
    margin-bottom: 8px;
}
.mo-nav-link:hover { text-decoration: none; color: #F9F8ED; }

.mo-nav-title {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: clamp(52px, 15vw, 80px);
    letter-spacing: -0.03em;
    line-height: 1;
    color: #F9F8ED;
    transition: color 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mo-nav-link:hover .mo-nav-title { color: #FF832F; transform: translateX(8px); }

.mo-nav-arrow {
    font-size: clamp(26px, 8vw, 40px);
    color: #FF832F;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    line-height: 1;
}
.mo-nav-link:hover .mo-nav-arrow { transform: translate(7px, -5px); }

.mo-nav-subtitle {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 131, 47, 0.65);
    margin: 0;
    line-height: 1;
}

/* ─── Separatore ────────────────────────────────────────── */

.mo-sep {
    height: 1px;
    background: rgba(249, 248, 237, 0.07);
    margin: 0;
    opacity: 0;
    transition: opacity 0.1s ease;
}
.mobile-overlay.is-open .mo-sep {
    opacity: 1;
    transition: opacity 0.55s ease 0.56s;
}

/* ─── CTA: LET'S CHAT ───────────────────────────────────── */

.mo-cta-wrap {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.1s ease, transform 0.12s ease;
}
.mobile-overlay.is-open .mo-cta-wrap {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity   0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.60s,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.60s;
}

/* LET'S CHAT — stesso CSS del pulsante mobile SEE ALL WORK */
.mo-cta-wrap .btn-orange-work {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 20px 30px !important;
    font-size: clamp(18px, 5vw, 24px) !important;
    letter-spacing: 2px !important;
}

/* ─── Link social ────────────────────────────────────────── */

.mo-socials {
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}
.mobile-overlay.is-open .mo-socials {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.70s,
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.70s;
}

.mo-social-link {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(249, 248, 237, 0.3);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}
.mo-social-link:hover {
    color: #FF832F;
    text-decoration: none;
    transform: translateX(5px);
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════════════════════
   18. LANDSCAPE MOBILE — Orientamento orizzontale
   Dispositivi ≤ 991px in modalità landscape.
   Viewport ~667–932px di larghezza, ~375–430px di altezza. Problemi:
   • font vw-based esplodono (12vw a 900px = 108px)
   • immagini portrait (4/5) diventano 1000–1160px di altezza — 3× il viewport
   • padding sezioni (80–100px) consumano il 25% dei 430px di altezza
   • min-height:100svh forza altezza artificiale nelle sezioni
═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) and (orientation: landscape) {

    /* ── Hero ── */
    .hero-wordmark {
        font-size: clamp(36px, 7.5vw, 80px) !important;
    }
    .hero-intro-line  { font-size: clamp(16px, 3vw, 28px)  !important; }
    .hero-status-pill { margin-bottom: 8px !important; padding: 5px 12px !important; }
    .hero-role-pill {
        font-size: clamp(12px, 2vw, 20px) !important;
        padding: 6px 14px !important;
        margin-top: 10px !important;
    }
    .hero-meta-strip {
        left: 16px; right: 16px; bottom: 8px;
        gap: 0;
        padding-top: 10px;
    }
    .hero-meta-col--center { display: none !important; }
    .hero-meta-value { font-size: 13px !important; }
    .hero-meta-label { font-size: 8px !important; }

    /* ── Padding sezione Work ── */
    .work-section {
        padding-top:    50px !important;
        padding-bottom: 40px !important;
    }

    /* ── Immagini Work: da portrait 4/5 a landscape 16/6 ──
       4/5 a 900px di larghezza = 1125px di altezza (quasi 3× il viewport).
       16/6 a 900px = 337px — entra comodamente in un viewport di 430px. */
    .work-section .project-img {
        aspect-ratio: 16 / 6 !important;
        max-height: 48vh !important;
    }
    div#ccTrack .cc-slide .project-img {
        aspect-ratio: 16 / 6 !important;
        max-height: 48vh !important;
    }
    .col-md-7 .frame-effetto,
    .col-md-5 .frame-effetto { height: auto !important; }
    .col-md-7 .project-img,
    .col-md-5 .project-img {
        aspect-ratio: 16 / 6 !important;
        height: auto !important;
        max-height: 48vh !important;
    }
    .final-cta-text-mobile { font-size: clamp(22px, 5.5vw, 42px) !important; }
    .final-cta-btn-mobile  { font-size: clamp(15px, 3.5vw, 20px) !important; padding: 14px 20px !important; }

    /* ── Thinking Room ── */
    .tr-wrap {
        padding-top:    44px !important;
        padding-bottom: 36px !important;
    }
    .tr-word { font-size: clamp(28px, 6vw, 52px)  !important; }
    .tr-sm   { font-size: clamp(9px,  2vw, 14px)  !important; }
    .tr-head { margin-bottom: clamp(14px, 2vh, 22px) !important; }

    /* ── What I Do ──
       min-height:100svh forza la sezione ad almeno 430px di altezza.
       Con padding 80px+80px restano solo 270px per il contenuto.
       In landscape: altezza naturale, padding ridotto, font più piccoli. */
    .wid .room {
        min-height: auto !important;
        padding-top:    44px !important;
        padding-bottom: 32px !important;
    }
    /* 7vw a 900px = 63px — dimensione ragionevole in landscape */
    .wid .ttl  { font-size: clamp(36px, 7vw, 90px)   !important; }
    .wid .name { font-size: clamp(18px, 3.4vw, 48px)  !important; }
    .wid .row  {
        padding-top:    16px !important;
        padding-bottom: 16px !important;
    }
    .wid .wid-head { margin-bottom: 12px !important; }
    .wid .index    { margin-top:    12px !important; }
    .wid .kicker   { margin-bottom: 10px !important; }
    /* Row inner: già colonna singola dalla regola max-width:1080px */
    .wid .row-inner { gap: 10px !important; }

    /* ── Creative Toolkit ── */
    .ctk-room {
        padding-top:    44px !important;
        padding-bottom: 36px !important;
    }
    .ctk-l1 { font-size: clamp(36px, 7vw, 100px) !important; }
    .ctk-l2 { font-size: clamp(52px, 10.5vw, 150px) !important; }
    .ctk-toolkit { margin-top: clamp(24px, 4vh, 48px) !important; }
    .ctk-cta { margin-top: clamp(30px, 4vh, 60px) !important; }
    .startnew-text { font-size: clamp(20px, 5vw, 80px) !important; }
    .new-project   { font-size: clamp(32px, 8vw, 90px) !important; }
}

/* ═══════════════════════════════════════════════════════════
   19. PILL ARANCIONE — Pulsanti CTA mobile
   Struttura e animazioni identiche a .btn-outline-pill,
   ma con colore arancione (bordo/testo #FF832F, riempimento al hover).
═══════════════════════════════════════════════════════════ */

.btn-outline-pill-orange {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 36px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-decoration: none;
    color: #FF832F;
    background: transparent;
    cursor: pointer;
    border: 2px solid #FF832F;
    border-radius: 50px;
    overflow: hidden;
    -webkit-clip-path: inset(0 round 50px);
    clip-path: inset(0 round 50px);
    transition: color 0.4s ease 0.08s, border-color 0.4s ease;
    z-index: 1;
}

.btn-outline-pill-orange::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(255, 131, 47, 0.06);
    border-radius: 50%;
    display: block;
    transition: all 0.42s 0.06s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.btn-outline-pill-orange::after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #FF832F;
    border-radius: 50%;
    display: block;
    transition: all 0.42s 0.06s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.btn-outline-pill-orange:hover {
    color: #F9F8ED;
    text-decoration: none;
    border-color: #FF832F;
}

.btn-outline-pill-orange:hover::before {
    top: -35%;
    background-color: #FF832F;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.btn-outline-pill-orange:hover::after {
    top: -45%;
    background-color: #FF832F;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.btn-outline-pill-orange:active { transform: scale(0.97); }

/* Animazione lettere — stessi trigger di btn-outline-pill */
.btn-outline-pill-orange:hover .span-mother span  { transform: translateY(-1.2em); }
.btn-outline-pill-orange:hover .span-mother2 span { transform: translateY(0); opacity: 1; }

/* Desktop final-cta: mantiene la dimensione inline grande del vecchio btn-orange-work */
.final-cta p .btn-outline-pill-orange {
    font-size: clamp(25px, 3vw, 40px);
    padding: 8px 60px;
    vertical-align: middle;
    margin: 0 5px;
}

/* Dimensioni mobile (il fix clip-path Safari ora è nella regola base,
   vale a ogni larghezza) */
@media (max-width: 991px) {
    .btn-outline-pill-orange {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 20px 30px !important;
        font-size: clamp(18px, 5vw, 24px) !important;
        letter-spacing: 2px !important;
    }
    /* Fix testo fantasma sotto il viewport (come btn-outline-pill mobile) */
    .btn-outline-pill-orange .span-mother2 span { transform: translateY(4em); }

    /* final-cta-btn-mobile: stesso margine del vecchio .final-cta-btn-mobile */
    .final-cta-btn-mobile.btn-outline-pill-orange {
        margin: 28px 0 0 !important;
    }

    /* mo-chat-btn dentro l'overlay: stesse dimensioni/margini della regola precedente */
    .mo-cta-wrap .btn-outline-pill-orange {
        margin: 0 !important;
    }
}

/* ─── Thinking Room: animazioni e layout mobile ─── */
@media (max-width: 991px) {
    .tr-mask { overflow: visible; }
    .tr-ch {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        animation: none !important;
    }
    .tr-statbar { justify-content: center; }
}

        /* ══ Creative Toolkit — rimuove blur (ctk-fx, ctk-fx-fade, ctk-ch) e azzera delay ══
           Sitocompleto.css imposta filter:blur(14px/12px/10px) e delay fino a 1.9s.
           Stessa specificità ma posizione successiva → vince. */

        /* Stato iniziale: nessun blur su tutte le classi animate */
        #creative-toolkit .ctk-fx      { filter: none !important; }
        #creative-toolkit .ctk-fx-fade { filter: none !important; transform: none; }
        /* ctk-ch = lettere del titolo — animazione soppressa, rivelazione gestita dalla riga */
        #creative-toolkit .ctk-ch,
        #creative-toolkit.ctk-booted .ctk-ch {
            opacity: 1 !important; transform: none !important;
            filter: none !important; transition: none !important;
        }

        /* Stato attivo: slide-up pulito, transizione standard */
        #creative-toolkit.ctk-booted .ctk-fx {
            filter: none !important;
            transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                        transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }
        /* Kicker: appare subito */
        #creative-toolkit.ctk-booted .ctk-kicker.ctk-fx { transition-delay: 0s !important; }
        /* Item toolkit in stagger rapido */
        #creative-toolkit.ctk-booted .ctk-item.ctk-t1   { transition-delay: 0.07s !important; }
        #creative-toolkit.ctk-booted .ctk-item.ctk-t2   { transition-delay: 0.14s !important; }
        #creative-toolkit.ctk-booted .ctk-item.ctk-t3   { transition-delay: 0.21s !important; }
        #creative-toolkit.ctk-booted .ctk-item.ctk-t4   { transition-delay: 0.28s !important; }

        #creative-toolkit.ctk-booted .ctk-fx-fade {
            filter: none !important;
            transform: none;
            transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                        transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) !important;
            transition-delay: 0.35s !important;
        }
        /* Piede compare leggermente dopo la CTA */
        #creative-toolkit.ctk-booted .ctk-foot.ctk-fx-fade { transition-delay: 0.5s !important; }

        /* ══ Thinking Room — riduce i delay dei paragrafi (da 1.75s–2.35s a 0.1s–0.6s) ══
           Gli elementi tr-reveal aspettano troppo dopo il boot della sezione. */
        #thinking-room.tr-booted .tr-d1 { transition-delay: 0.1s !important; }
        #thinking-room.tr-booted .tr-d2 { transition-delay: 0.2s !important; }
        #thinking-room.tr-booted .tr-d3 { transition-delay: 0.3s !important; }
        #thinking-room.tr-booted .tr-d4 { transition-delay: 0.4s !important; }
        #thinking-room.tr-booted .tr-d5 { transition-delay: 0.5s !important; }
        #thinking-room.tr-booted .tr-d6 { transition-delay: 0.6s !important; }
        /* Stat bar: era a 1.6s di delay, gli altri elementi su mobile sono a 0.1–1.1s */
        #thinking-room.tr-booted .tr-statbar { transition: opacity 0.9s ease 0.7s, transform 0.9s cubic-bezier(.16,1,.3,1) 0.7s !important; }

        /* ══ ctk-title — wipe reveal sul fitline ══ */
        #creative-toolkit .ctk-l1 .ctk-fitline,
        #creative-toolkit .ctk-l2 .ctk-fitline {
            clip-path: inset(105% -200% 0 -200%);
            transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #creative-toolkit.ctk-booted .ctk-l1 .ctk-fitline {
            clip-path: inset(-200% -200% -200% -200%);
            transition-delay: 0s;
        }
        #creative-toolkit.ctk-booted .ctk-l2 .ctk-fitline {
            clip-path: inset(-200% -200% -200% -200%);
            transition-delay: 0.12s;
        }

        /* ══ Hero — fluidità GPU ══
           hero-orb-a/b animano transform con filter:blur su CPU; will-change promuove
           il layer prima che l'animazione parta, eliminando il repaint per ogni frame.
           I path SVG vengono pre-nascosti via CSS per evitare il flash visibile che
           si vede tra il render CSS e l'esecuzione di DOMContentLoaded (JS nasconde
           i path con getTotalLength solo dopo il parse). */
        .hero-orb-a, .hero-orb-b { will-change: transform; }
        #heroAoPathO, #heroAoPathA {
            stroke-dasharray: 5000;
            stroke-dashoffset: 5000;
        }

/* ════════════════════════════════════════════════════════
   PROJECT PALETTE  —  hero color swatches
   ════════════════════════════════════════════════════════ */
.tc-palette { display: flex; flex-direction: column; gap: 10px; }
.tc-palette-label {
    font-family: 'Libre Franklin', sans-serif; font-size: 9px;
    letter-spacing: .22em; text-transform: uppercase;
    color: rgba(249,248,237,.28);
}
.tc-palette-swatches { display: flex; align-items: center; gap: 7px; }
.tc-swatch {
    width: clamp(22px, 2vw, 28px); height: clamp(22px, 2vw, 28px);
    border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
    cursor: default;
}
.tc-swatch:hover {
    transform: scale(1.18) translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
.tc-swatch-sep { width: 16px; height: 1px; background: rgba(249,248,237,.1); flex-shrink: 0; }
.tc-swatch-count {
    font-family: 'Libre Franklin', sans-serif; font-size: 9px;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(249,248,237,.22); white-space: nowrap;
}
@media (max-width: 767.98px) {
    .tc-palette { align-items: center; }
    .tc-palette-swatches { justify-content: center; }
    .tc-swatch-sep, .tc-swatch-count { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   18a. RIFINITURE
   Dettagli che nessuno nota finché ci sono, e che si notano tutti quando
   mancano: sono i punti in cui il BROWSER imponeva i suoi colori di default
   — blu di sistema — dentro un sito grigio e arancione.
   ═══════════════════════════════════════════════════════════ */

/* ── Selezione del testo ──
   Era il blu di sistema. Su un sito costruito su #28292E e #FF832F stonava
   ogni volta che qualcuno selezionava una parola. */
::selection {
    background: #FF832F;
    color: #170F08;
}
::-moz-selection {
    background: #FF832F;
    color: #170F08;
}

/* ── Controlli del form ──
   I radio della pagina contatti erano blu di sistema. accent-color li
   riporta nel brand senza doverli ricostruire da zero. */
:root {
    accent-color: #FF832F;
}

/* ── Tocco su mobile ──
   Toccando un link, iOS e Android disegnano un rettangolo azzurro
   traslucido. Su un sito curato è il dettaglio che tradisce di più.
   Si può togliere perché gli stati :hover, :active e :focus-visible danno
   già il riscontro necessario. */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ── Barra di scorrimento ──
   Era quella chiara di sistema, su un sito scuro: una striscia bianca lungo
   tutto il bordo. Qui è sottile e nei colori del sito.
   scrollbar-color/width per Firefox, ::-webkit-scrollbar per Chrome e Safari. */
html {
    scrollbar-color: #55565C #28292E;
    scrollbar-width: thin;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #28292E;
}
::-webkit-scrollbar-thumb {
    background: #4A4B51;
    border: 2px solid #28292E;   /* bordo dello stesso colore = pollice più sottile */
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF832F;
}

/* ── Immagini in dissolvenza ──
   La classe la mette assets/js/img-fade.js, e SOLO alle immagini non ancora
   arrivate. Volutamente non si scrive `img { opacity: 0 }` qui: se il JS non
   partisse, le immagini resterebbero invisibili per sempre. Così, nel peggiore
   dei casi, si perde la dissolvenza — non le foto. */
.img-fading {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-fading.is-loaded {
    opacity: 1;
}

/* ── Vedove e orfane ──
   `pretty` impedisce che l'ultima riga di un paragrafo resti una parola sola.
   È una rifinitura tipografica che il browser applica da sé, dove supportata;
   dove non lo è, semplicemente non fa nulla. */
p {
    text-wrap: pretty;
}

/* ═══════════════════════════════════════════════════════════
   18b. MOVIMENTO RIDOTTO — THINKING ROOM
   Hero, "What I Do" e Toolkit avevano già il loro blocco; la Thinking Room
   era l'unica sezione scoperta. Il JS salta già parallasse, particelle e loop
   del titolo quando l'utente chiede meno movimento, ma restavano le
   transizioni CSS d'ingresso (fade + 28px di scorrimento, con delay a
   cascata).

   Attenzione al tranello classico: qui NON si può azzerare e basta, perché
   .tr-reveal parte da opacity:0 — il contenuto resterebbe invisibile. Si
   forza lo stato FINALE, così il testo c'è subito, semplicemente senza
   animazione.
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .tr-reveal,
    .tr-ch,
    .tr-word,
    .tr-sm,
    .tr-kicker,
    .tr-statbar,
    .tr-pill,
    .tr-stat,
    .tr-col {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .tr-underline { transform: scaleX(1) !important; }

    /* Elementi d'atmosfera: restano visibili, ma fermi. */
    .tr-orb,
    .tr-sat,
    .tr-amp,
    .tr-dot,
    .tr-node {
        animation: none !important;
        transform: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   19a. FOCUS DA TASTIERA
   Il sito non aveva NESSUNA regola di focus fuori dal form contatti: i 38
   link e i 5 bottoni della home si affidavano all'anello di default del
   browser, che su fondo scuro è poco leggibile e cambia da browser a browser.
   Qui l'indicatore diventa esplicito e nei colori del brand.

   :focus-visible e non :focus — così l'anello compare a chi naviga da
   tastiera, ma NON al click del mouse, dove sarebbe solo rumore visivo.
   ═══════════════════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid #FF832F;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Sui pulsanti a pillola l'anello segue la forma arrotondata. */
.btn-chat:focus-visible,
.btn-outline-pill:focus-visible,
.btn-outline-pill-orange:focus-visible,
.btn-orange-work:focus-visible,
.lang-toggle:focus-visible,
.mo-lang:focus-visible {
    outline-offset: 4px;
    border-radius: 50px;
}

/* Le card progetto hanno angoli propri: l'anello li rispetta. */
.project-card:focus-visible {
    outline-offset: 4px;
    border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════
   19b. TESTO PER SCREEN READER E MOTORI DI RICERCA
   Visibile a chi legge la pagina con uno screen reader e ai crawler,
   invisibile a schermo. Serve nell'<h1> della home: lì il nome è reso come
   lettere decorative iniettate via JS, quindi senza questo l'H1 non
   contiene alcun testo — e l'H1 è il segnale più forte per una ricerca sul
   nome. Niente display:none: verrebbe ignorato dagli screen reader.
   ═══════════════════════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════
   20. SELETTORE DI LINGUA
   Navbar desktop (≥992px) + overlay mobile (≤991px).
   Le voci sono link veri verso /it/ /es/ /fr/ /de/ : niente stato JS,
   niente flash di traduzione, e i motori di ricerca le seguono.
   ═══════════════════════════════════════════════════════════ */

/* Sta a SINISTRA di ABOUT/WORK/LET'S CHAT ed è volutamente discreto: è un
   comando di servizio, non deve rubare peso visivo alla navigazione né alla
   CTA. Niente bordo, niente sfondo: solo il codice lingua e una freccetta. */
.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: rgba(249, 248, 237, 0.55);
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lang-toggle:hover,
.lang-switch.is-open .lang-toggle {
    color: #FF832F;
}

.lang-current { text-align: left; }

.lang-caret {
    font-size: 9px;
    opacity: 0.8;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

/* — Menu a tendina — */
.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 1200;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid rgba(249, 248, 237, 0.1);
    background: rgba(20, 20, 23, 0.92);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);

    /* Chiuso: invisibile E non cliccabile. visibility+pointer-events
       evitano che un menu trasparente intercetti i click della navbar. */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top left;
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0.32s;
}
.lang-switch.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.28s ease,
        transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s linear 0s;
}

.lang-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    text-decoration: none;
    color: rgba(249, 248, 237, 0.62);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.22s ease, background 0.22s ease;
}
.lang-opt:hover {
    color: #F9F8ED;
    background: rgba(249, 248, 237, 0.07);
    text-decoration: none;
}
.lang-opt.is-active {
    color: #FF832F;
    background: rgba(255, 131, 47, 0.1);
}

.lang-code {
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.14em;
    opacity: 0.85;
    min-width: 2.1em;
}
.lang-name { white-space: nowrap; }

/* ─── Overlay mobile: riga di codici lingua, niente tendina ───────────── */

.mo-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.1s ease, transform 0.1s ease;
}
/* Entra in scena con lo stesso stagger degli altri blocchi dell'overlay,
   subito prima dei social. */
.mobile-overlay.is-open .mo-langs {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.66s,
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.66s;
}

.mo-lang {
    padding: 9px 15px;
    border-radius: 50px;
    border: 1px solid rgba(249, 248, 237, 0.14);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(249, 248, 237, 0.45);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.mo-lang:hover {
    color: #F9F8ED;
    border-color: rgba(249, 248, 237, 0.4);
    text-decoration: none;
}
.mo-lang.is-active {
    color: #FF832F;
    border-color: rgba(255, 131, 47, 0.55);
    background: rgba(255, 131, 47, 0.1);
}

/* Il selettore desktop vive nella navbar collassabile, che sotto i 992px
   Bootstrap nasconde: lì subentra .mo-langs dentro l'overlay. */
@media (max-width: 991.98px) {
    .lang-switch { display: none; }
}