/* La nostra storia. Namespace st-: nessuna collisione con pf-/sv-.
   Token (--ink, --muted, --line, --pale, --gutter), reset e .pf-wrap/.pf-label/.pf-button arrivano da .pf-scope in pf-site.css. */

.st-page{--st-dark:#171817;--st-soft:#9a9c97;--st-header:88px;--st-gap:clamp(16px,2.2vw,32px);--st-col:calc((1280px - 11*var(--st-gap))/12)}
@media(max-width:900px){.st-page{--st-header:74px}}
@media(max-width:767px){.st-page{--st-header:72px}}

.st-page .st-eyebrow,.st-page .pf-label{font-size:12px;line-height:1.6;letter-spacing:.07em;text-transform:uppercase;font-weight:500}
/* Griglia a 12 colonne con margini elastici: i figli possono andare a filo schermo (colonne 1 e 14) restando allineati a .pf-wrap */
.st-page :is(.st-stage,.st-craft){display:grid;grid-template-columns:minmax(calc(var(--gutter) - var(--st-gap)),1fr) repeat(12,minmax(0,var(--st-col))) minmax(calc(var(--gutter) - var(--st-gap)),1fr);column-gap:var(--st-gap)}

/* ---------- immagini ---------- */
.st-page .st-media{position:relative;display:block;overflow:hidden;aspect-ratio:var(--ar,3/2);background:#d5d5cf;isolation:isolate}
.st-page .st-media picture,.st-page .st-hero-media picture,.st-page .st-stage-media picture{position:absolute;inset:0;display:block}
.st-page :is(.st-media,.st-hero-media,.st-stage-media) img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.st-page .st-media:after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(0deg,#0d100ccc,transparent);pointer-events:none;z-index:1}
.st-page .st-cap{position:absolute;z-index:2;left:22px;right:22px;bottom:19px;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;color:#fff;font-size:12px;line-height:1.55;letter-spacing:.07em;text-transform:uppercase;font-style:normal}
.st-page .st-cap i{font-style:normal;opacity:.78;text-align:right}
.st-page .st-parallax img{scale:1.14;will-change:transform}

/* numeri fantasma */
.st-page .st-ghost{font-size:clamp(140px,21vw,310px);line-height:.78;letter-spacing:-.085em;font-weight:500;color:transparent;-webkit-text-stroke:1px #c9cbc6;pointer-events:none;user-select:none}

/* ---------- hero a tutto schermo ---------- */
.st-page .st-hero{position:relative;display:flex;min-height:max(620px,calc(100svh - var(--st-header)));background:var(--st-dark);color:#fff;overflow:hidden;isolation:isolate}
.st-page .st-hero-media{position:absolute;inset:0;z-index:-2;overflow:hidden}
.st-page .st-hero-media img{object-position:62% center;animation:st-zoom 2.2s cubic-bezier(.22,1,.36,1) .1s both}
.st-page .st-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0a0c0bd9 0%,#0a0c0b80 46%,#0a0c0b14 100%),linear-gradient(0deg,#0a0c0b99,transparent 40%)}
.st-page .st-hero-wrap{display:flex;flex-direction:column;justify-content:space-between;gap:48px;padding-top:56px;padding-bottom:44px}
.st-page .st-hero-top{display:flex;justify-content:space-between;gap:20px;color:#e5e5df}
.st-page .st-hero-title{font-size:clamp(68px,12.4vw,196px);line-height:.9;letter-spacing:-.075em;font-weight:500;margin:0}
.st-page .st-hero-title span{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.st-page .st-hero-title span>i{display:block;font-style:normal;animation:st-rise 1.1s both cubic-bezier(.22,1,.36,1) .15s}
.st-page .st-hero-title span:nth-child(2)>i{animation-delay:.28s}
.st-page .st-outline{color:transparent;-webkit-text-stroke:2px #fff}
.st-page .st-hero-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.st-page .st-hero-down{display:inline-flex;align-items:center;gap:14px;min-height:44px;font-size:11px;font-weight:500;letter-spacing:.07em;text-transform:uppercase;color:#fff}
.st-page .st-hero-down-icon{width:40px;height:40px;border:1px solid #ffffffa6;display:grid;place-items:center;font-size:16px;line-height:1;transition:transform .3s,background .2s,color .2s}
.st-page .st-hero-down:is(:hover,:focus-visible) .st-hero-down-icon{transform:translateY(4px);background:#fff;color:var(--ink);border-color:#fff}
.st-page .st-hero-count{color:#e5e5df}
@keyframes st-rise{from{transform:translateY(105%);opacity:.4}to{transform:none;opacity:1}}
@keyframes st-zoom{from{transform:scale(1.06)}to{transform:scale(1)}}

/* ---------- 01 · le origini ---------- */
.st-page .st-story{background:var(--paper)}
.st-page .st-origins{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--st-gap);padding-top:clamp(88px,11vw,168px);padding-bottom:clamp(88px,11vw,168px)}
.st-page .st-origins>.pf-label{grid-column:1/13;grid-row:1}
.st-page .st-title{grid-column:1/13;grid-row:2;margin-top:30px;font-size:clamp(44px,8.6vw,132px);line-height:.98;letter-spacing:-.07em;font-weight:500}
.st-page .st-title span{display:block}
.st-page .st-title .st-soft{color:var(--st-soft)}
.st-page .st-ghost{display:block}
.st-page .st-origins>.st-ghost{grid-column:1/7;grid-row:3;align-self:start;margin-top:clamp(56px,7vw,104px)}
.st-page .st-lead{grid-column:1/6;grid-row:3;align-self:end;margin-top:56px;max-width:540px;font-size:clamp(17px,1.3vw,19px);line-height:1.75;color:var(--muted)}
.st-page .st-origins>figure{grid-column:8/13;grid-row:3;margin-top:clamp(56px,7vw,104px)}

/* ---------- 02 · stage a tutto schermo (testo su fotografia) ---------- */
.st-page .st-stage{position:relative;height:calc(100svh - var(--st-header));min-height:640px;grid-template-rows:1fr repeat(4,auto);padding-bottom:clamp(40px,5vw,72px);background:var(--st-dark);color:#fff;overflow:hidden;isolation:isolate}
.st-page .st-stage-media{position:absolute;inset:0;z-index:-1;overflow:hidden}
.st-page .st-stage-media:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0a0c0bf0 0%,#0a0c0bb0 36%,#0a0c0b26 72%,#0a0c0b00 100%),linear-gradient(0deg,#0a0c0b80,transparent 45%);opacity:var(--st-veil,1);pointer-events:none}
.st-page .st-stage .st-cap{left:auto;right:var(--gutter);bottom:clamp(40px,5vw,72px);flex-direction:column;align-items:flex-end;gap:2px}
.st-page .st-stage>:not(figure){grid-column:2/9;max-width:640px}
.st-page .st-stage>.pf-label{grid-row:2;color:#e5e5df}
.st-page .st-stage>h3{grid-row:3;font-size:clamp(34px,4.2vw,62px);line-height:1.04;letter-spacing:-.058em;font-weight:500;margin:20px 0 24px}
.st-page .st-stage>p{font-size:clamp(17px,1.3vw,19px);line-height:1.7;color:#e6e8e1}
.st-page .st-stage>p:nth-of-type(1){grid-row:4}
.st-page .st-stage>p:nth-of-type(2){grid-row:5;margin-top:16px}
/* stato "armato" dal JS (solo desktop con motion): foto che si apre da riquadro a tutto campo */
.st-page .st-stage.st-armed{background:var(--paper)}
.st-page .st-stage.st-armed .st-stage-media{clip-path:inset(16% 24% 16% 24%)}
.st-page .st-stage.st-armed .st-stage-item{opacity:.001}

/* ---------- 03 · composizione ---------- */
.st-page .st-craft{position:relative;grid-template-rows:auto auto auto auto 1fr;background:var(--pale);padding-block:clamp(88px,11vw,168px);overflow:clip}
.st-page .st-craft>:is(.pf-label,h3,p){grid-column:2/8;max-width:580px;position:relative;z-index:3}
.st-page .st-craft>.pf-label{grid-row:1}
.st-page .st-craft>h3{grid-row:2;font-size:clamp(34px,4.4vw,62px);line-height:1.04;letter-spacing:-.058em;font-weight:500;margin:22px 0 28px}
.st-page .st-craft>p{font-size:clamp(17px,1.3vw,19px);line-height:1.75;color:var(--muted)}
.st-page .st-craft>p:nth-of-type(1){grid-row:3}
.st-page .st-craft>p:nth-of-type(2){grid-row:4;margin-top:18px}
.st-page .st-craft>.st-ghost{grid-column:2/8;grid-row:5;align-self:end;-webkit-text-stroke-color:#cfd1cb}
.st-page .st-duo{grid-column:8/15;grid-row:1/6;align-self:start;display:block;position:relative}
.st-page .st-shot-main{width:100%}
.st-page .st-shot-main:after{inset:0 0 55%;background:linear-gradient(180deg,#0d100ccc,transparent)}
.st-page .st-shot-main .st-cap{bottom:auto;top:19px;align-items:flex-start}
.st-page .st-shot-sub{position:relative;z-index:2;width:56%;margin:-20% 0 0 12%;outline:clamp(8px,1vw,14px) solid var(--pale)}

/* ---------- 04 · manifesto ---------- */
.st-page .st-manifesto{background:var(--st-dark);color:#fff;display:flex;min-height:calc(100svh - var(--st-header))}
.st-page .st-manifesto-wrap{display:flex;flex-direction:column;justify-content:space-between;gap:56px;padding-top:clamp(64px,7vw,104px);padding-bottom:clamp(40px,4vw,56px)}
.st-page .st-manifesto-label{color:#e5e5df}
.st-page .st-manifesto-text{font-family:'Inter',Arial,sans-serif;font-size:clamp(32px,5.6vw,84px);line-height:1.05;letter-spacing:-.062em;font-weight:500;color:var(--st-soft);max-width:1180px}
.st-page .st-manifesto-text strong{display:block;margin-top:.4em;font-weight:500;color:#fff}
.st-page .st-line{display:block}
.st-page .st-line>i{display:block;font-style:normal}
.st-page .st-manifesto-close{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;padding-top:30px;border-top:1px solid #ffffff2e}
.st-page .st-manifesto-close p{font-size:clamp(17px,1.3vw,19px);line-height:1.7;color:#d6d8d0;max-width:500px}
.st-page .st-manifesto-close strong{display:block;color:#fff;font-weight:500}
.st-page .st-manifesto.st-armed .st-w{opacity:.14}
.st-page .st-manifesto.st-armed .st-manifesto-close{opacity:.001}

/* ---------- responsive ---------- */
@media(max-width:1100px){
 .st-page .st-origins>figure{grid-column:7/13}
 .st-page .st-stage>:not(figure){grid-column:2/9}
 .st-page .st-craft>:is(.pf-label,h3,p),.st-page .st-craft>.st-ghost{grid-column:2/9}
 .st-page .st-duo{grid-column:9/15}
}
@media(max-width:900px){
 /* titolo → testo → fotografia, in colonna; niente pin né overlay */
 .st-page .st-hero{min-height:max(560px,calc(100svh - var(--st-header)))}
 .st-page .st-hero:before{background:linear-gradient(0deg,#0a0c0bcc,#0a0c0b66 60%,#0a0c0b80)}
 .st-page .st-origins{display:block}
 .st-page .st-title{margin-top:24px}
 .st-page .st-lead{margin-top:32px;max-width:600px}
 .st-page .st-origins>figure{margin-top:44px}
 .st-page .st-origins>.st-ghost{display:none}
 .st-page :is(.st-stage,.st-craft){display:block}
 .st-page .st-stage{height:auto;min-height:0;background:var(--paper);color:var(--ink);padding:78px var(--gutter) 0;overflow:visible}
 .st-page .st-stage>:not(figure){max-width:640px}
 .st-page .st-stage>.pf-label{color:var(--ink)}
 .st-page .st-stage>h3{font-size:clamp(32px,6vw,48px)}
 .st-page .st-stage>p{color:var(--muted)}
 .st-page .st-stage-media{position:relative;inset:auto;z-index:0;margin:40px calc(var(--gutter) * -1) 0;aspect-ratio:3/2}
 .st-page .st-stage-media:after{display:none}
 .st-page .st-stage .st-cap{left:var(--gutter);right:var(--gutter);bottom:16px;flex-direction:row;align-items:flex-end}
 .st-page .st-craft{padding:78px var(--gutter)}
 .st-page .st-craft>:is(.pf-label,h3,p){max-width:640px}
 .st-page .st-craft>h3{font-size:clamp(32px,6vw,48px)}
 .st-page .st-craft>.st-ghost{display:none}
 .st-page .st-duo{margin-top:40px}
 .st-page .st-shot-sub{width:68%;margin:-12% 0 0 auto}
 .st-page .st-manifesto{min-height:0}
}
@media(max-width:767px){
 .st-page .st-hero-wrap{padding-top:36px;padding-bottom:32px}
 .st-page .st-hero-top{flex-direction:column;gap:2px}
 .st-page .st-hero-title{font-size:clamp(60px,19vw,92px)}
 .st-page .st-hero-count{display:none}
 .st-page .st-hero-bottom{flex-wrap:wrap;gap:14px 24px}
 .st-page .st-origins{padding-top:64px;padding-bottom:72px}
 .st-page .st-title{font-size:clamp(38px,11.2vw,56px)}
 .st-page .st-stage{padding-top:64px}
 .st-page .st-cap{left:16px;right:16px;bottom:14px;flex-direction:column;align-items:flex-start;gap:2px}
 .st-page .st-stage .st-cap{flex-direction:column}
 .st-page .st-cap i{text-align:left}
 .st-page .st-craft{padding-top:64px;padding-bottom:72px}
 .st-page .st-shot-sub{width:78%;margin-top:-10%}
 .st-page .st-manifesto-wrap{padding-top:64px;gap:48px}
 .st-page .st-manifesto-text{font-size:clamp(30px,9vw,42px);line-height:1.1}
 .st-page .st-line,.st-page .st-line>i{display:inline}
 .st-page .st-manifesto-close{flex-direction:column;align-items:flex-start;gap:28px}
 .st-page .st-manifesto-close .pf-button{width:100%}
}

/* ---------- mobile native (solo telefoni, <=767px): il desktop non è toccato ----------
   Fotografie a filo schermo, capitolo 02 come scena unica testo-su-foto (senza pin),
   capitolo 03 con le due immagini in striscia orizzontale (swipe + snap), manifesto a tutta altezza. */
@media(max-width:767px){
 .st-page{--st-m-gap:12px}

 /* hero in colonna: titoli sul fondo scuro in alto, fotografia sotto a filo schermo, senza testo sopra.
    Ordine visivo: etichetta → titolo → sottotitolo → link "Scopri". */
 .st-page .st-hero{flex-direction:column}
 .st-page .st-hero:before{display:none}
 .st-page .st-hero-wrap{order:1;flex:none;justify-content:flex-start;gap:0;padding-top:32px;padding-bottom:28px}
 .st-page .st-hero-top{display:contents}
 .st-page .st-hero-top>span:first-child{order:0;display:flex;align-items:center;gap:12px;color:#c9cbc6}
 .st-page .st-hero-top>span:first-child:before{content:'';width:24px;height:1px;background:currentColor}
 .st-page .st-hero-title{order:1;margin-top:18px;font-size:clamp(58px,18vw,88px)}
 .st-page .st-hero-top>span:last-child{order:2;margin-top:20px;max-width:30ch;text-wrap:balance;font-size:15px;line-height:1.5;letter-spacing:0;text-transform:none;font-weight:400;color:#c9cbc6}
 .st-page .st-hero-media{order:2;position:relative;inset:auto;z-index:-2;flex:1 1 auto;min-height:300px}
 .st-page .st-hero-media img{object-position:72% center}
 .st-page .st-hero-bottom{order:3;margin-top:26px;align-items:center}

 /* 01 · numerazione di capitolo in outline, titolo, testo, foto a filo schermo */
 .st-page .st-origins{position:relative;padding-top:88px;padding-bottom:96px}
 .st-page .st-origins>.st-ghost{display:block;position:absolute;top:22px;right:var(--gutter);margin:0;font-size:64px;line-height:.8;letter-spacing:-.06em}
 .st-page .st-lead{margin-top:24px;font-size:17px;line-height:1.65;text-align:left}
 /* foto 01: dentro i margini e spostata a destra (asimmetria editoriale), con aria intorno: non tocca la scena 02 */
 .st-page .st-origins>figure{width:84%;margin:44px 0 0 auto}
 .st-page .st-origins>figure .st-cap{left:16px;right:16px;bottom:14px}
 .st-page .st-fig-tools.st-m-par img{scale:1.12}

 /* 02 · scena unica: fotografia a tutta altezza, testo ancorato in basso su velatura */
 .st-page .st-stage{display:flex;flex-direction:column;justify-content:flex-end;min-height:max(720px,calc(100svh - var(--st-header)));padding:96px var(--gutter) calc(40px + env(safe-area-inset-bottom,0px));background:var(--st-dark);color:#fff;overflow:hidden;isolation:isolate}
 .st-page .st-stage-media{position:absolute;inset:0;z-index:-1;margin:0;aspect-ratio:auto}
 .st-page .st-stage-media img{object-position:50% 38%}
 .st-page .st-stage-media:after{display:block;background:linear-gradient(0deg,#0a0c0bf5 0%,#0a0c0be0 42%,#0a0c0b66 72%,#0a0c0b33 100%)}
 .st-page .st-stage .st-cap{top:20px;bottom:auto;left:var(--gutter);right:var(--gutter);align-items:flex-start}
 .st-page .st-stage>:not(figure){max-width:none}
 .st-page .st-stage>.pf-label{color:#e5e5df}
 .st-page .st-stage>h3{margin:14px 0 18px;font-size:clamp(32px,9.2vw,42px);line-height:1.04;color:#fff}
 .st-page .st-stage>p{font-size:16px;line-height:1.6;color:#e6e8e1}

 /* 03 · testo, poi le due immagini in striscia orizzontale con anteprima della seconda */
 .st-page .st-craft{position:relative;padding-top:88px;padding-bottom:64px}
 .st-page .st-craft>.st-ghost{display:block;position:absolute;top:22px;right:var(--gutter);margin:0;font-size:64px;line-height:.8;letter-spacing:-.06em}
 .st-page .st-craft>h3{margin:14px 0 20px;font-size:clamp(32px,9.2vw,42px)}
 .st-page .st-craft>p{font-size:16px;line-height:1.65}
 .st-page .st-duo{display:flex;gap:var(--st-m-gap);margin:36px calc(var(--gutter) * -1) 0;padding:0 var(--gutter);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .st-page .st-duo::-webkit-scrollbar{display:none}
 .st-page .st-duo>.st-media{flex:0 0 82%;width:auto;margin:0;outline:0;aspect-ratio:4/5;scroll-snap-align:start}
 .st-page .st-duo>.st-media:after{inset:55% 0 0;background:linear-gradient(0deg,#0d100ccc,transparent)}
 .st-page .st-duo>.st-media .st-cap{top:auto;bottom:14px;align-items:flex-start}
 .st-page .st-duo>.st-shot-main img{object-position:34% center}

 /* 04 · manifesto a tutta altezza, testo grande, CTA a pollice */
 .st-page .st-manifesto{min-height:calc(100svh - var(--st-header))}
 .st-page .st-manifesto-wrap{padding-top:56px;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));gap:40px}
 .st-page .st-manifesto-text{font-size:clamp(30px,9.4vw,44px);line-height:1.08}
 .st-page .st-manifesto-close .pf-button{min-height:52px}

 /* transizioni da scroll (solo se il JS arma lo stato): la scena 02 si apre da cartolina a tutto schermo, il testo sale a scaglioni */
 .st-page .st-stage.st-m-armed{background:var(--paper)}
 .st-page .st-stage.st-m-armed .st-stage-media{clip-path:inset(calc((1 - var(--p,0)) * 12%) calc((1 - var(--p,0)) * 14%))}
 .st-page .st-stage.st-m-armed .st-stage-media img{scale:calc(1.3 - .28 * var(--p,0))}
 .st-page .st-stage.st-m-armed .st-stage-item{opacity:0;translate:0 24px;transition:opacity .7s ease,translate .9s cubic-bezier(.22,1,.36,1)}
 .st-page .st-stage.st-m-armed.st-m-in .st-stage-item{opacity:1;translate:none}
 .st-page .st-stage.st-m-armed .st-stage-item:nth-child(2){transition-delay:.12s}
 .st-page .st-stage.st-m-armed .st-stage-item:nth-child(3){transition-delay:.24s}
 .st-page .st-stage.st-m-armed .st-stage-item:nth-child(4){transition-delay:.36s}

 /* linea d'apertura di capitolo: si disegna da sinistra quando il capitolo entra (armata dal JS; senza JS resta tracciata) */
 .st-page :is(.st-origins>.pf-label,.st-stage>.pf-label,.st-craft>.pf-label,.st-manifesto-label){display:block;padding-top:14px;background:linear-gradient(currentColor,currentColor) 0 0 / var(--ln) 1px no-repeat;transition:--ln 1.3s cubic-bezier(.22,1,.36,1)}
 .st-page .st-m-ln{--ln:0%}
 .st-page .st-m-ln.is-in{--ln:100%}
}
@property --ln{syntax:'<percentage>';inherits:false;initial-value:100%}
