/* Blocco "lab-intro" — ingresso del Laboratorio: la saldatura a tutto schermo, prima il titolo poi il racconto del fatto a mano (js/blocks/lab-intro.js).
   Con la sezione hm-cad--notitle: la bici che si colora, senza titolo, occupa tutto il foglio. */
.cx-intro{ position:relative; height:400vh; padding:0; }   /* tre testi, uno per foto */
.cx-intro__stage{ position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; }
.cx-intro__stage > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.cx-intro__stage > img:first-child{ opacity:1; }
.cx-intro__stage::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(26,26,26,.9) 0%, rgba(26,26,26,.55) 45%, rgba(26,26,26,.15) 80%); }
.cx-intro__a, .cx-intro__b{ position:absolute; left:var(--pad); right:var(--pad); bottom:10vh; z-index:2; max-width:40rem; }
.cx-intro .hm-eyebrow{ display:block; margin-bottom:1rem; }
.cx-intro h1{ font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:-.02em; line-height:1; margin:0; font-size:clamp(2.6rem,6vw,5.8rem); color:var(--cream); }
.cx-intro h1 em{ font:inherit; color:inherit; }
.cx-intro__a p{ max-width:24rem; margin:1.3rem 0 0; font-size:1.05rem; line-height:1.6; }
.cx-intro__b h2{ font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:-.02em; line-height:1.1; font-size:clamp(1.9rem,3.6vw,3rem); margin:0 0 1.1rem; color:var(--cream); }
.cx-intro__b p{ margin:0; font-size:1.0625rem; line-height:1.65; }
.cx-cue{ color:rgba(247,240,230,.7); }
.cx-intro.is-live .cx-intro__b{ opacity:0; visibility:hidden; }
.hm-cad--notitle .hm-cad__bike{ left:8vw; right:8vw; }
@media (max-width:760px){
  .hm-cad--notitle .hm-cad__bike{ left:3vw; right:3vw; top:calc(62px + 22vh); bottom:24vh; }
  .hm-cad--notitle .hm-cad__scan{ top:calc(62px + 20vh); }
}
@media (max-height:520px) and (min-width:600px){
  .cx-intro h1{ font-size:clamp(2rem,13vh,3.4rem); }
  .cx-intro__a, .cx-intro__b{ bottom:6vh; max-width:70vw; }
  .cx-intro__b p{ font-size:.85rem; line-height:1.5; } .cx-intro__a p{ font-size:.9rem; margin-top:.8rem; }
  .cx-intro__b h2{ margin-bottom:.6rem; }
  .cx-cue{ display:none; }
  .hm-cad--notitle .hm-cad__bike{ left:10vw; right:10vw; top:calc(62px + 3vh); }
}
@media (prefers-reduced-motion:reduce){
  .cx-intro{ height:auto; } .cx-intro__stage{ position:relative; height:auto; min-height:100svh; display:flex; flex-direction:column; justify-content:flex-end; gap:6vh; padding:calc(62px + 8vh) var(--pad) 8vh; }
  .cx-intro__a, .cx-intro__b{ position:relative; left:auto; right:auto; bottom:auto; }
  .cx-cue{ display:none; }
}
/* il sopratitolo "Laboratorio Tommasini" sta dentro l'H1 (per Google), ma ha l'aspetto di prima */
.cx-intro h1 .hm-eyebrow{ font-style:normal; line-height:1.3; letter-spacing:.15em; }
/* senza animazioni i tre testi stanno uno sotto l'altro (vedi sopra) */
@media (prefers-reduced-motion:reduce){ .cx-intro__c{ position:relative; } }

/* (25/11) la bici che si colora fa da apertura ai progetti: titolo in alto a sinistra, bici piu' in basso e a destra */
.hm-cad__head{ position:absolute; left:var(--pad); top:calc(62px + 7vh); z-index:6; max-width:34rem; }
.hm-cad__head h2{ font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:-.02em; line-height:1.1; font-size:clamp(1.9rem,3.6vw,3rem); margin:0 0 .6rem; color:var(--ink); }
.hm-cad__head p{ margin:0; font-family:var(--font-sans); font-size:1.0625rem; line-height:1.6; color:rgba(26,26,26,.8); }
.hm-cad--notitle .hm-cad__bike{ left:20vw; right:3vw; top:calc(62px + 22vh); bottom:6vh; }
.hm-cad--notitle .hm-cad__scan{ top:calc(62px + 20vh); bottom:4vh; }
.cx-proj{ padding-top:clamp(24px,4vh,48px); }
@media (max-width:760px){
  .hm-cad__head{ right:var(--pad); top:calc(62px + 4vh); }
  .hm-cad--notitle .hm-cad__bike{ left:3vw; right:3vw; top:calc(62px + 30vh); bottom:20vh; }
  .hm-cad--notitle .hm-cad__scan{ top:calc(62px + 28vh); bottom:18vh; }
}
@media (max-height:520px) and (min-width:600px){
  .hm-cad__head{ top:calc(62px + 3vh); max-width:40vw; } .hm-cad__head p{ font-size:.85rem; }
  .hm-cad--notitle .hm-cad__bike{ left:40vw; right:2vw; top:calc(62px + 6vh); bottom:4vh; }
}
.lab .hm-cad__head{ max-width:min(46rem, 80vw); }
.lab .hm-cad__head p{ font-size:1.0625rem; }
@media (max-height:520px) and (min-width:600px){ .lab .hm-cad__head p{ font-size:.85rem; } }
/* "Loading... / Ready to ride." sopra la bici, centrato su di lei (non sul titolo) */
.hm-cad--notitle .hm-cad__load{ left:20vw; right:3vw; top:calc(62px + 15vh); }
@media (max-width:760px){ .hm-cad--notitle .hm-cad__load{ left:3vw; right:3vw; top:calc(62px + 23vh); } }
@media (max-height:520px) and (min-width:600px){ .hm-cad--notitle .hm-cad__load{ left:40vw; right:2vw; top:calc(62px + 1vh); } }
/* (25/11) "Loading... / Ready to ride." sotto il titolo, a sinistra, piu' grande */
.hm-cad--notitle .hm-cad__head .hm-cad__load{ position:relative; left:auto; right:auto; top:auto; margin-top:clamp(18px,3vh,32px); justify-items:start; text-align:left; }
.hm-cad__head .hm-cad__load-txt{ font-size:1rem; letter-spacing:.2em; }
.hm-cad__head .hm-cad__load-pct{ font-size:1.15rem; }
.hm-cad__head .hm-cad__ready{ font-size:clamp(2rem,3.4vw,3rem); }
@media (max-width:760px){ .hm-cad__head .hm-cad__load-txt{ font-size:.8rem; } .hm-cad__head .hm-cad__ready{ font-size:1.7rem; } }
/* (25/11) appena sotto la terza riga della griglia (righe = 1/8 dello schermo), piu' grande */
@media (min-width:761px) and (min-height:521px){
  .hm-cad--notitle .hm-cad__head .hm-cad__load{ position:absolute; left:0; top:calc(37.5vh + 14px - 62px - 7vh); margin:0; }
}
.hm-cad__head .hm-cad__load-txt{ font-size:1.2rem; }
.hm-cad__head .hm-cad__load-pct{ font-size:1.4rem; }
.hm-cad__head .hm-cad__ready{ font-size:clamp(2.4rem,4.2vw,3.8rem); }
@media (max-width:760px){ .hm-cad__head .hm-cad__load-txt{ font-size:.9rem; } .hm-cad__head .hm-cad__load-pct{ font-size:1rem; } .hm-cad__head .hm-cad__ready{ font-size:1.9rem; } }
/* (25/11) appena sotto la riga della griglia: le due scritte partono dall'alto (prima "Loading" stava centrata nello spazio di "Ready") */
@media (min-width:761px) and (min-height:521px){
  .hm-cad--notitle .hm-cad__head .hm-cad__load{ top:calc(37.5vh + 6px - 62px - 7vh); align-items:start; }
}

/* ============ (25/11) un testo alla volta ============ */
.cx-intro{ height:720vh; }
.cx-beat{ position:absolute; left:var(--pad); right:var(--pad); bottom:11vh; z-index:2; max-width:44rem; }
/* prima che parta l'animazione si vede solo la prima battuta: niente testi sovrapposti all'apertura */
@media (prefers-reduced-motion:no-preference){ html:not(.no-js) .cx-beat:not(:first-of-type){ opacity:0; visibility:hidden; } }
.cx-beat h2{ font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:-.02em; line-height:1.05; font-size:clamp(2.2rem,4.6vw,4.2rem); margin:0 0 1.1rem; color:var(--cream); }
.lab .cx-beat .cx-beat__p{ margin:0; max-width:34rem; font-size:clamp(1.05rem,1.4vw,1.3rem); line-height:1.6; color:rgba(247,240,230,.9); }
.lab .cx-beat .cx-beat__lead{ margin:0 0 1.2rem; font-family:var(--font-mono); font-size:.8rem; letter-spacing:.2em; text-transform:uppercase; color:var(--terracotta); }
.cx-steps{ list-style:none; margin:0; padding:0; display:grid; gap:.35em; }
.cx-steps li{ font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:-.02em; line-height:1.08; color:var(--cream); }
.cx-steps--q li{ font-size:clamp(2.4rem,5.4vw,5rem); }
.cx-steps--n{ counter-reset:n; gap:.6em; }
.cx-steps--n li{ counter-increment:n; font-size:clamp(1.7rem,3.2vw,2.9rem); display:grid; grid-template-columns:3.2rem 1fr; align-items:baseline; }
.cx-steps--n li::before{ content:"0" counter(n); font-family:var(--font-mono); font-style:normal; font-size:.8rem; letter-spacing:.15em; color:var(--terracotta); }
.lab .cx-beat .cx-big{ margin:0 0 1.2rem; font-family:var(--font-serif); font-style:italic; font-weight:400; letter-spacing:-.02em; line-height:1.08; font-size:clamp(2.2rem,4.8vw,4.4rem); color:var(--cream); max-width:16em; }
@media (max-width:760px){
  .cx-beat{ bottom:9vh; }
  .cx-steps--n li{ grid-template-columns:2.4rem 1fr; }
}
@media (max-height:520px) and (min-width:600px){
  .cx-beat{ bottom:6vh; max-width:70vw; }
  .cx-steps--q li{ font-size:clamp(1.6rem,9vh,2.6rem); } .cx-steps--n li{ font-size:clamp(1.2rem,6vh,1.8rem); }
  .lab .cx-beat .cx-big, .cx-beat h2{ font-size:clamp(1.6rem,9vh,2.6rem); } .lab .cx-beat .cx-beat__p{ font-size:.9rem; }
}
@media (prefers-reduced-motion:reduce){
  .cx-intro{ height:auto; }
  .cx-beat{ position:relative; left:auto; right:auto; bottom:auto; }
}

/* (26/11) quattro testi invece di sette */
.cx-intro{ height:430vh; }
