/* Pop-up Store Esperienziale — stili della landing. Generato dal prototipo; scope: body.ps-popup-store / main.ps-page */

/* ------------------------------------------------------------ TOKENS */
:root{
  --black:#000000;
  --white:#FFFFFF;
  --accent:#2300A4;
  --accent-light:#6A4DFF;     /* stesso colore, alzato di luminosità per leggere su nero */
  --grey:#8A8A8A;
  --grey-2:#3A3A3A;
  --line:rgba(255,255,255,.16);
  --line-dark:rgba(0,0,0,.14);
  --head:"Galano Grotesque","Galano Grotesque Alt","Plus Jakarta Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
  --body:"Helvetica Neue",Helvetica,Arial,sans-serif;

  --bg:var(--black); --fg:var(--white); --muted:#B3B3B3;

  box-sizing:border-box;
  timeline-scope:--t1,--t2,--t3;
  --hdr:var(--ps-header-offset, 0px); /* imposta --ps-header-offset all'altezza dell'header se è sticky */
}
/* il sito VØID è nero anche in light mode: i token non cambiano con lo schema di sistema */
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --bg:#000; --fg:#fff; } }
:root[data-theme="dark"]{ --bg:#000; --fg:#fff; }

html:has(.ps-popup-store){ scroll-padding-top:env(safe-area-inset-top,0px); scroll-behavior:smooth; }
body.ps-popup-store .ps-page *, body.ps-popup-store .ps-page *::before, body.ps-popup-store .ps-page *::after{ box-sizing:inherit; }
body.ps-popup-store{ margin:0; background:var(--bg); color:var(--fg); font-family:var(--body); font-size:1.0625rem; line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
body.ps-popup-store .ps-page svg, body.ps-popup-store .ps-page canvas, body.ps-popup-store .ps-page img{ display:block; max-width:100%; }
body.ps-popup-store .ps-page a{ color:inherit; } body.ps-popup-store .ps-page button{ font:inherit; color:inherit; }
body.ps-popup-store .ps-page :focus-visible{ outline:3px solid var(--accent-light); outline-offset:3px; }

body.ps-popup-store .ps-page .ps-wrap{ width:min(1180px, 100% - 2.5rem); margin-inline:auto; }
@media (min-width:760px){ body.ps-popup-store .ps-page .ps-wrap{ width:min(1180px, 100% - 4.5rem); } }

/* ------------------------------------------------------------ TYPE */
body.ps-popup-store .ps-page h1, body.ps-popup-store .ps-page h2, body.ps-popup-store .ps-page h3{ margin:0; font-family:var(--head); text-transform:uppercase; letter-spacing:-.005em; line-height:.98; color:var(--fg); }
body.ps-popup-store .ps-page h1{ font-size:clamp(2.2rem, 6.5vw, 4.8rem); font-weight:800; }
body.ps-popup-store .ps-page h2{ font-size:clamp(1.7rem, 4vw, 2.9rem); font-weight:800; }
body.ps-popup-store .ps-page h3{ font-size:clamp(1.3rem, 2.6vw, 1.9rem); font-weight:700; }
body.ps-popup-store .ps-page p{ margin:0; max-width:36em; }
body.ps-popup-store .ps-page .ps-lede{ font-size:clamp(1.05rem, 1.9vw, 1.3rem); line-height:1.45; color:var(--muted); }
body.ps-popup-store .ps-page .ps-kicker{ font-family:var(--head); font-weight:600; font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:var(--accent-light); }
body.ps-popup-store .ps-page .ps-light .ps-kicker{ color:var(--accent); }

/* sezioni bianche */
body.ps-popup-store .ps-page .ps-light{ background:var(--white); color:var(--black); --muted:#555; --line:rgba(0,0,0,.14); }
body.ps-popup-store .ps-page .ps-light h1, body.ps-popup-store .ps-page .ps-light h2, body.ps-popup-store .ps-page .ps-light h3{ color:var(--black); }

/* etichetta tecnica */
body.ps-popup-store .ps-page .ps-label{ display:grid; grid-template-columns:auto 1fr; width:max-content; max-width:100%; border:1px solid currentColor; font-size:.8rem; line-height:1.25; }
body.ps-popup-store .ps-page .ps-label > *{ padding:.38rem .65rem; border-bottom:1px solid currentColor; }
body.ps-popup-store .ps-page .ps-label > :nth-last-child(-n+2){ border-bottom:0; }
body.ps-popup-store .ps-page .ps-label > :nth-child(odd){ border-right:1px solid currentColor; opacity:.7; }
body.ps-popup-store .ps-page .ps-label > :nth-child(even){ font-weight:700; }
body.ps-popup-store .ps-page .ps-label .ps-head{ grid-column:1/-1; border-right:0 !important; opacity:1 !important; font-family:var(--head); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:.72rem; background:var(--accent); color:#fff; }

/* bottoni — UI VØID: rettangolo pieno, testo in maiuscolo spaziato */
body.ps-popup-store .ps-page .ps-btn{ display:inline-flex; align-items:center; gap:.8rem; background:var(--accent); color:#fff; border:1px solid var(--accent); padding:1rem 1.5rem; font-family:var(--head); font-weight:700; font-size:.85rem; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; cursor:pointer; transition:background .25s, color .25s; }
body.ps-popup-store .ps-page .ps-btn::after{ content:""; width:.55rem; height:.55rem; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:rotate(45deg); transition:translate .25s; }
body.ps-popup-store .ps-page .ps-btn:hover{ background:var(--accent-light); border-color:var(--accent-light); } body.ps-popup-store .ps-page .ps-btn:hover::after{ translate:.3rem 0; }
body.ps-popup-store .ps-page .ps-btn.ps-ghost{ background:transparent; color:inherit; border-color:currentColor; } body.ps-popup-store .ps-page .ps-btn.ps-ghost:hover{ background:var(--white); color:var(--black); border-color:var(--white); }
body.ps-popup-store .ps-page .ps-light .ps-btn.ps-ghost:hover{ background:var(--black); color:var(--white); border-color:var(--black); }


/* ------------------------------------------------------------ HERO */
body.ps-popup-store .ps-page .ps-hero{ position:relative; padding:clamp(2.5rem,6vw,5rem) 0 0; overflow:hidden; }
body.ps-popup-store .ps-page .ps-hero .ps-wrap{ display:grid; gap:2rem; }
@media (min-width:900px){ body.ps-popup-store .ps-page .ps-hero .ps-wrap{ grid-template-columns:1fr 1fr; align-items:end; gap:2rem; } body.ps-popup-store .ps-page .ps-hero .ps-copy{ padding-bottom:3rem; } }
body.ps-popup-store .ps-page .ps-hero .ps-lede{ margin-top:1.25rem; }
body.ps-popup-store .ps-page .ps-hero .ps-cta{ margin-top:2rem; display:flex; gap:.9rem; flex-wrap:wrap; }
body.ps-popup-store .ps-page .ps-hero .ps-kicker{ margin-bottom:1rem; display:block; }

/* la scena: la piazza di notte, il volume che si accende, la coda con i telefoni alzati */
body.ps-popup-store .ps-page .ps-scene{ position:relative; margin-inline:-1.25rem; }
@media (min-width:760px){ body.ps-popup-store .ps-page .ps-scene{ margin-inline:0; } }
body.ps-popup-store .ps-page .ps-scene svg{ width:100%; height:auto; aspect-ratio:4/3; }

@keyframes lights-on{ 0%{ opacity:0 } 40%{ opacity:0 } 55%{ opacity:.7 } 62%{ opacity:.2 } 70%{ opacity:1 } 100%{ opacity:1 } }
@keyframes pool{ from{ opacity:0; scale:.2 1 } to{ opacity:1; scale:1 1 } }
@keyframes ph{ from{ opacity:0 } to{ opacity:1 } }
body.ps-popup-store .ps-page .ps-scene .ps-facade-led, body.ps-popup-store .ps-page .ps-scene .ps-glow{ animation:lights-on 1.6s steps(1,end) both; }
body.ps-popup-store .ps-page .ps-scene .ps-pool{ transform-box:fill-box; transform-origin:center; animation:pool 1s .9s cubic-bezier(.2,.7,.2,1) both; }
body.ps-popup-store .ps-page .ps-scene .ps-phone{ opacity:0; animation:ph .35s both; }
body.ps-popup-store .ps-page .ps-scene .ps-phone:nth-of-type(1){ animation-delay:1.8s } body.ps-popup-store .ps-page .ps-scene .ps-phone:nth-of-type(2){ animation-delay:2.1s } body.ps-popup-store .ps-page .ps-scene .ps-phone:nth-of-type(3){ animation-delay:2.35s }
body.ps-popup-store .ps-page .ps-scene .ps-phone:nth-of-type(4){ animation-delay:2.7s } body.ps-popup-store .ps-page .ps-scene .ps-phone:nth-of-type(5){ animation-delay:3s }
body.ps-popup-store .ps-page .ps-hero .ps-copy > *{ animation:rise .8s cubic-bezier(.2,.7,.2,1) both; }
body.ps-popup-store .ps-page .ps-hero .ps-copy > :nth-child(2){ animation-delay:.1s } body.ps-popup-store .ps-page .ps-hero .ps-copy > :nth-child(3){ animation-delay:.2s } body.ps-popup-store .ps-page .ps-hero .ps-copy > :nth-child(4){ animation-delay:.3s }
@keyframes rise{ from{ opacity:0; translate:0 .8rem } to{ opacity:1; translate:0 0 } }

/* ------------------------------------------------------------ STATS (bianca) */
body.ps-popup-store .ps-page .ps-stats{ padding:clamp(3.5rem,8vw,6.5rem) 0; }
body.ps-popup-store .ps-page .ps-stats .ps-wrap{ display:grid; gap:2.5rem; }
@media (min-width:900px){ body.ps-popup-store .ps-page .ps-stats .ps-wrap{ grid-template-columns:1fr 1fr; gap:4rem; align-items:start; } }
body.ps-popup-store .ps-page .ps-stats p{ color:var(--muted); margin-top:1.25rem; }
body.ps-popup-store .ps-page .ps-nums{ display:grid; gap:1.5rem; }
body.ps-popup-store .ps-page .ps-num{ border-top:2px solid var(--black); padding-top:1rem; }
body.ps-popup-store .ps-page .ps-num .ps-n{ font-family:var(--head); font-weight:800; font-size:clamp(3.2rem,9vw,6rem); line-height:.95; letter-spacing:-.03em; color:var(--accent); font-variant-numeric:tabular-nums; }
body.ps-popup-store .ps-page .ps-num .ps-n small{ font-size:.42em; letter-spacing:0; font-weight:700; margin-left:.15em; }
body.ps-popup-store .ps-page .ps-num .ps-t{ margin-top:.5rem; color:var(--muted); max-width:24em; font-size:.95rem; }
body.ps-popup-store .ps-page .ps-feed{ margin-top:2.5rem; display:grid; grid-template-columns:repeat(6,1fr); gap:.4rem; max-width:420px; }
body.ps-popup-store .ps-page .ps-feed i{ display:block; aspect-ratio:1; background:var(--black); position:relative; overflow:hidden; }
body.ps-popup-store .ps-page .ps-feed i::after{ content:""; position:absolute; inset:25% 30% 35% 30%; background:var(--accent-light); opacity:.9; }
body.ps-popup-store .ps-page .ps-feed i:nth-child(odd)::after{ inset:30% 20% 30% 45%; }
body.ps-popup-store .ps-page .ps-feed-cap{ margin-top:.6rem; font-size:.85rem; color:var(--muted); }
body.ps-popup-store .ps-page .ps-feed-media{ position:relative; margin-top:2.5rem; max-width:420px; aspect-ratio:4/3; overflow:hidden; background:#000; }

/* ------------------------------------------------------------ TRE COSE (pinnata) */
body.ps-popup-store .ps-page .ps-three{ position:relative; }
/* Ogni pannello ha 150dvh di scroll: l'animazione si completa nel primo 55%, poi il pannello resta fermo e leggibile. */
body.ps-popup-store .ps-page .ps-three-sticky{ position:sticky; top:var(--hdr); height:calc(100dvh - var(--hdr)); overflow:hidden; }
body.ps-popup-store .ps-page .ps-three-tracks{ margin-top:calc(-100dvh + var(--hdr)); position:relative; pointer-events:none; }
body.ps-popup-store .ps-page .ps-track{ height:150dvh; }
body.ps-popup-store .ps-page .ps-track:nth-child(1){ view-timeline:--t1 block; } body.ps-popup-store .ps-page .ps-track:nth-child(2){ view-timeline:--t2 block; } body.ps-popup-store .ps-page .ps-track:nth-child(3){ view-timeline:--t3 block; }

body.ps-popup-store .ps-page .ps-three-head{ position:absolute; top:0; left:0; width:100%; z-index:3; padding-top:1.25rem; pointer-events:none; }
body.ps-popup-store .ps-page .ps-three-head .ps-wrap{ display:flex; justify-content:space-between; align-items:center; gap:1rem; }
body.ps-popup-store .ps-page .ps-three-head h2{ font-size:clamp(.95rem,2vw,1.2rem); font-weight:600; letter-spacing:.06em; color:var(--muted); }
body.ps-popup-store .ps-page .ps-dots{ display:flex; gap:.45rem; flex:none; }
body.ps-popup-store .ps-page .ps-dot{ height:3px; width:2.4rem; background:var(--line); position:relative; overflow:hidden; }
body.ps-popup-store .ps-page .ps-dot::after{ content:""; position:absolute; inset:0; background:var(--accent-light); transform-origin:left; scale:0 1; }
body.ps-popup-store .ps-page .ps-dot:nth-child(1)::after{ animation:fill auto linear both; animation-timeline:--t1; animation-range:contain 0% exit 100%; }
body.ps-popup-store .ps-page .ps-dot:nth-child(2)::after{ animation:fill auto linear both; animation-timeline:--t2; animation-range:contain 0% exit 100%; }
body.ps-popup-store .ps-page .ps-dot:nth-child(3)::after{ animation:fill auto linear both; animation-timeline:--t3; animation-range:contain 0% exit 100%; }
@keyframes fill{ from{ scale:0 1 } to{ scale:1 1 } }

body.ps-popup-store .ps-page .ps-panel{ position:absolute; inset:0; padding-top:4.5rem; padding-bottom:1rem; opacity:0; visibility:hidden; }
body.ps-popup-store .ps-page .ps-panel-1{ visibility:visible; }
body.ps-popup-store .ps-page .ps-panel .ps-wrap{ display:grid; gap:1.1rem; align-content:start; }
body.ps-popup-store .ps-page .ps-visual{ position:relative; height:32dvh; display:grid; place-items:center; min-width:0; }
@media (min-width:900px){
  body.ps-popup-store .ps-page .ps-panel .ps-wrap{ grid-template-columns:.85fr 1.15fr; gap:4rem; align-items:center; height:100%; }
  body.ps-popup-store .ps-page .ps-panel .ps-text{ order:-1; }
  body.ps-popup-store .ps-page .ps-visual{ height:min(64dvh, 620px); }
}
@media (max-height:720px) and (max-width:899px){ body.ps-popup-store .ps-page .ps-panel .ps-text .ps-label{ display:none; } body.ps-popup-store .ps-page .ps-panel .ps-text p{ font-size:.92rem; } }
body.ps-popup-store .ps-page .ps-panel .ps-text h3{ margin-top:.5rem; }
body.ps-popup-store .ps-page .ps-panel .ps-text p{ color:var(--muted); margin-top:.9rem; font-size:clamp(.95rem,1.5vw,1.08rem); }
body.ps-popup-store .ps-page .ps-panel .ps-text .ps-label{ margin-top:1.1rem; }
body.ps-popup-store .ps-page .ps-fit{ position:relative; width:100%; } /* JS calcola width = min(larghezza, altezza × ratio) */

@keyframes panel-in{ from{ opacity:0; translate:0 3vh; visibility:hidden } to{ opacity:1; translate:0 0; visibility:visible } }
@keyframes panel-out{ from{ opacity:1; translate:0 0; visibility:visible } to{ opacity:0; translate:0 -3vh; visibility:hidden } }
body.ps-popup-store .ps-page .ps-panel-1{ animation:panel-out auto linear forwards; animation-timeline:--t1; animation-range:exit 70% exit 100%; opacity:1; }
body.ps-popup-store .ps-page .ps-panel-2{ animation:panel-in auto linear both, panel-out auto linear forwards; animation-timeline:--t2,--t2; animation-range:entry 70% entry 100%, exit 70% exit 100%; }
body.ps-popup-store .ps-page .ps-panel-3{ animation:panel-in auto linear both; animation-timeline:--t3; animation-range:entry 70% entry 100%; }

/* 1 · REGIA: planimetria, percorso, inquadratura che si chiude */
body.ps-popup-store .ps-page .ps-regia svg{ position:absolute; inset:0; width:100%; height:100%; }
body.ps-popup-store .ps-page .ps-regia .ps-path{ stroke-dasharray:1; stroke-dashoffset:1; animation:draw auto linear both; animation-timeline:--t1; animation-range:contain 0% exit 15%; }
@keyframes draw{ from{ stroke-dashoffset:1 } to{ stroke-dashoffset:0 } }
body.ps-popup-store .ps-page .ps-regia .ps-focus{ opacity:0; transform-box:fill-box; transform-origin:center; animation:pop auto linear both; animation-timeline:--t1; animation-range:exit 10% exit 22%; }
@keyframes pop{ from{ opacity:0; scale:.4 } to{ opacity:1; scale:1 } }
body.ps-popup-store .ps-page .ps-finder{ position:absolute; inset:0; pointer-events:none; scale:1.45; animation:frame auto linear both; animation-timeline:--t1; animation-range:contain 0% exit 25%; }
@keyframes frame{ from{ scale:1.45 } to{ scale:1 } }
body.ps-popup-store .ps-page .ps-finder i{ position:absolute; width:12%; height:12%; border:2px solid var(--accent-light); }
body.ps-popup-store .ps-page .ps-finder i:nth-child(1){ left:0; top:0; border-right:0; border-bottom:0; } body.ps-popup-store .ps-page .ps-finder i:nth-child(2){ right:0; top:0; border-left:0; border-bottom:0; }
body.ps-popup-store .ps-page .ps-finder i:nth-child(3){ left:0; bottom:0; border-right:0; border-top:0; } body.ps-popup-store .ps-page .ps-finder i:nth-child(4){ right:0; bottom:0; border-left:0; border-top:0; }
body.ps-popup-store .ps-page .ps-finder b{ position:absolute; left:50%; bottom:6%; translate:-50% 0; font-family:var(--head); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-light); font-weight:600; white-space:nowrap; }

/* 2 · TECNOLOGIA: LED wall */
body.ps-popup-store .ps-page .ps-wall{ background:#000; border:1px solid var(--line); overflow:hidden; }
body.ps-popup-store .ps-page .ps-wall canvas{ position:absolute; inset:0; width:100%; height:100%; touch-action:none; }
body.ps-popup-store .ps-page .ps-wall .ps-hint{ position:absolute; left:.8rem; bottom:.6rem; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--grey); pointer-events:none; font-family:var(--head); }
body.ps-popup-store .ps-page .ps-wall .ps-fallback{ position:absolute; inset:0; background:radial-gradient(60% 80% at 30% 40%, rgba(106,77,255,.7), transparent 70%), radial-gradient(50% 60% at 75% 65%, rgba(255,255,255,.35), transparent 70%); -webkit-mask:radial-gradient(circle, #000 0 30%, transparent 34%) 0 0/ 12px 12px; mask:radial-gradient(circle, #000 0 30%, transparent 34%) 0 0/ 12px 12px; }
body.ps-popup-store .ps-page .ps-wall.ps-live .ps-fallback{ display:none; }

/* 3 · MACCHINA OPERATIVA: il cantiere si monta in 48 ore */
body.ps-popup-store .ps-page .ps-build svg{ position:absolute; left:0; right:0; top:0; width:100%; height:72%; }
body.ps-popup-store .ps-page .ps-build .ps-st{ opacity:0; transform-box:fill-box; transform-origin:bottom center; animation:erect auto linear both; animation-timeline:--t3; }
body.ps-popup-store .ps-page .ps-build .ps-st1{ animation-range:contain 10% contain 70%; }
body.ps-popup-store .ps-page .ps-build .ps-st2{ animation-range:contain 75% exit 5%; }
body.ps-popup-store .ps-page .ps-build .ps-st3{ animation-range:exit 8% exit 22%; }
body.ps-popup-store .ps-page .ps-build .ps-st4{ animation-range:exit 24% exit 30%; animation-name:pop; }
@keyframes erect{ from{ opacity:0; translate:0 6% } to{ opacity:1; translate:0 0 } }
body.ps-popup-store .ps-page .ps-build .ps-clock{ font-family:var(--head); font-weight:800; }
body.ps-popup-store .ps-page .ps-hours{ position:absolute; left:0; right:0; bottom:0; }
body.ps-popup-store .ps-page .ps-hours .ps-bar{ position:relative; height:4px; margin-inline:12.5%; background:var(--line); }
body.ps-popup-store .ps-page .ps-hours .ps-fillbar{ position:absolute; inset:0; background:var(--accent-light); transform-origin:left; scale:0 1; animation:fill auto linear both; animation-timeline:--t3; animation-range:contain 0% exit 30%; }
body.ps-popup-store .ps-page .ps-hours ol{ list-style:none; margin:.9rem 0 0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:.4rem; }
body.ps-popup-store .ps-page .ps-hours li{ position:relative; text-align:center; font-size:clamp(.66rem,1.2vw,.82rem); color:var(--grey); line-height:1.25; }
body.ps-popup-store .ps-page .ps-hours li b{ display:block; color:#fff; font-family:var(--head); font-weight:800; font-size:clamp(1rem,2.2vw,1.35rem); }
body.ps-popup-store .ps-page .ps-hours li::before{ content:""; position:absolute; top:-1.15rem; left:50%; translate:-50% 0; width:9px; height:9px; border-radius:50%; background:var(--grey-2); animation:lit auto linear both; animation-timeline:--t3; }
body.ps-popup-store .ps-page .ps-hours li:nth-child(1)::before{ animation-range:contain 0% contain 3%; } body.ps-popup-store .ps-page .ps-hours li:nth-child(2)::before{ animation-range:contain 52% contain 55%; }
body.ps-popup-store .ps-page .ps-hours li:nth-child(3)::before{ animation-range:exit 3% exit 5%; } body.ps-popup-store .ps-page .ps-hours li:nth-child(4)::before{ animation-range:exit 28% exit 30%; }
@keyframes lit{ to{ background:var(--accent-light); box-shadow:0 0 0 4px rgba(106,77,255,.25); } }

/* ------------------------------------------------------------ DAL FIERISTICO AL POP-UP (bianca) */
body.ps-popup-store .ps-page .ps-morph-sec{ padding:clamp(3.5rem,8vw,6.5rem) 0; }
body.ps-popup-store .ps-page .ps-morph-sec .ps-wrap{ display:grid; gap:2rem; }
@media (min-width:900px){ body.ps-popup-store .ps-page .ps-morph-sec .ps-wrap{ grid-template-columns:.85fr 1.15fr; gap:4rem; align-items:center; } }
body.ps-popup-store .ps-page .ps-morph-sec p{ margin-top:1.1rem; color:var(--muted); }
body.ps-popup-store .ps-page .ps-switch{ margin-top:1.6rem; display:inline-grid; grid-template-columns:1fr 1fr; border:1px solid var(--black); }
body.ps-popup-store .ps-page .ps-switch button{ background:transparent; border:0; padding:.85rem 1.2rem; font-family:var(--head); font-weight:700; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }
body.ps-popup-store .ps-page .ps-switch button[aria-pressed="true"]{ background:var(--black); color:#fff; }
body.ps-popup-store .ps-page .ps-switch button:focus-visible{ outline-offset:-3px; }

body.ps-popup-store .ps-page .ps-stage{ position:relative; aspect-ratio:4/3; background:#EDEDED; overflow:hidden; }
body.ps-popup-store .ps-page .ps-stage > div{ position:absolute; }
body.ps-popup-store .ps-page .ps-ctx{ inset:0; transition:opacity .7s; pointer-events:none; }
body.ps-popup-store .ps-page .ps-ctx-fair{ opacity:1; } body.ps-popup-store .ps-page .ps-ctx-popup{ opacity:0; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-ctx-fair{ opacity:0; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-ctx-popup{ opacity:1; }
body.ps-popup-store .ps-page .ps-ctx svg{ position:absolute; inset:0; width:100%; height:100%; }

body.ps-popup-store .ps-page .ps-m-floor{ view-transition-name:m-floor; background:#D8D8D8; }
body.ps-popup-store .ps-page .ps-m-wall{ view-transition-name:m-wall; background:var(--black); }
body.ps-popup-store .ps-page .ps-m-screen{ view-transition-name:m-screen; background:radial-gradient(circle, #fff 0 28%, transparent 32%) 0 0/6px 6px, var(--accent); }
body.ps-popup-store .ps-page .ps-m-counter{ view-transition-name:m-counter; background:#fff; border:1.5px solid var(--black); }
body.ps-popup-store .ps-page .ps-m-sign{ view-transition-name:m-sign; font-family:var(--head); font-weight:800; font-size:clamp(.8rem,1.8vw,1.1rem); letter-spacing:.06em; color:#fff; background:var(--black); padding:.2rem .5rem; width:max-content; }
body.ps-popup-store .ps-page .ps-m-p{ width:4.6%; aspect-ratio:1/2.5; background:var(--black); border-radius:40% 40% 8% 8% / 30% 30% 4% 4%; }
body.ps-popup-store .ps-page .ps-m-p::before{ content:""; position:absolute; left:14%; right:14%; top:-34%; aspect-ratio:1; border-radius:50%; background:var(--black); }
body.ps-popup-store .ps-page .ps-m-p::after{ content:""; position:absolute; right:-40%; top:10%; width:36%; height:24%; background:var(--accent-light); opacity:0; transition:opacity .6s; } /* il telefono */
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-p::after{ opacity:1; }
body.ps-popup-store .ps-page .ps-m-p1{ view-transition-name:m-p1 } body.ps-popup-store .ps-page .ps-m-p2{ view-transition-name:m-p2 } body.ps-popup-store .ps-page .ps-m-p3{ view-transition-name:m-p3 } body.ps-popup-store .ps-page .ps-m-p4{ view-transition-name:m-p4 } body.ps-popup-store .ps-page .ps-m-p5{ view-transition-name:m-p5 }
body.ps-popup-store .ps-page .ps-m-p4, body.ps-popup-store .ps-page .ps-m-p5{ opacity:0; }

/* A — stand in padiglione */
body.ps-popup-store .ps-page .ps-stage .ps-m-floor{ left:8%; right:8%; bottom:0; height:20%; }
body.ps-popup-store .ps-page .ps-stage .ps-m-wall{ left:12%; right:12%; top:20%; height:60%; }
body.ps-popup-store .ps-page .ps-stage .ps-m-screen{ left:18%; width:38%; top:28%; height:34%; }
body.ps-popup-store .ps-page .ps-stage .ps-m-counter{ left:58%; width:24%; top:60%; height:13%; }
body.ps-popup-store .ps-page .ps-stage .ps-m-sign{ left:12%; top:13%; }
body.ps-popup-store .ps-page .ps-stage .ps-m-p1{ left:30%; bottom:12%; } body.ps-popup-store .ps-page .ps-stage .ps-m-p2{ left:41%; bottom:10%; } body.ps-popup-store .ps-page .ps-stage .ps-m-p3{ left:66%; bottom:8%; }
body.ps-popup-store .ps-page .ps-stage .ps-m-p4{ left:90%; bottom:8%; } body.ps-popup-store .ps-page .ps-stage .ps-m-p5{ left:2%; bottom:8%; }
/* B — pop-up in piazza */
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-floor{ left:0; right:0; height:13%; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-wall{ left:36%; right:12%; top:24%; height:63%; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-screen{ left:42%; width:24%; top:32%; height:30%; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-counter{ left:70%; width:12%; top:50%; height:37%; background:#fff; border-color:#fff; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-sign{ left:36%; top:17%; background:var(--accent); }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-p1{ left:62%; bottom:5%; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-p2{ left:54%; bottom:5%; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-p3{ left:46%; bottom:5%; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-p4{ left:38%; bottom:5%; opacity:1; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-p5{ left:30%; bottom:5%; opacity:1; }

body.ps-popup-store .ps-page .ps-stage .ps-cap{ left:0; bottom:0; margin:0; background:#fff; }
@media (max-width:759px){ body.ps-popup-store .ps-page .ps-stage .ps-cap{ font-size:.68rem; } body.ps-popup-store .ps-page .ps-stage .ps-cap > *{ padding:.26rem .45rem; } }
body.ps-popup-store .ps-page .ps-stage .ps-cap.ps-a{ view-transition-name:cap-a; } body.ps-popup-store .ps-page .ps-stage .ps-cap.ps-b{ view-transition-name:cap-b; display:none; }
body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-cap.ps-a{ display:none; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-cap.ps-b{ display:grid; }

::view-transition-group(*){ animation-duration:.95s; animation-timing-function:cubic-bezier(.2,.7,.2,1); }
::view-transition-old(m-wall), ::view-transition-new(m-wall), ::view-transition-old(m-screen), ::view-transition-new(m-screen), ::view-transition-old(m-counter), ::view-transition-new(m-counter), ::view-transition-old(m-floor), ::view-transition-new(m-floor){ height:100%; }
::view-transition-group(m-p1), ::view-transition-group(m-p2), ::view-transition-group(m-p3), ::view-transition-group(m-p4), ::view-transition-group(m-p5){ animation-duration:1.15s; }

/* ------------------------------------------------------------ MEDIA (foto o video al posto della grafica, gestiti da ACF) */
body.ps-popup-store .ps-page .ps-media{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
body.ps-popup-store .ps-page .ps-fit.ps-has-media{ background:#000; overflow:hidden; border:1px solid var(--line); }
body.ps-popup-store .ps-page .ps-fit.ps-has-media .ps-hours{ padding:1.2rem .8rem .6rem; background:linear-gradient(transparent, rgba(0,0,0,.88) 45%); }
body.ps-popup-store .ps-page .ps-card .ps-media-box{ position:relative; aspect-ratio:1; overflow:hidden; background:#111; }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg{ min-height:min(88dvh, 920px); display:grid; align-items:end; }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg .ps-bg{ position:absolute; inset:0; }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg .ps-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,calc(var(--ov,.55) * .7)) 0%, rgba(0,0,0,var(--ov,.55)) 60%, rgba(0,0,0,calc(var(--ov,.55) + .15)) 100%); }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg .ps-wrap{ position:relative; grid-template-columns:1fr; padding-bottom:clamp(2.5rem,6vw,5rem); }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg .ps-copy{ max-width:46rem; padding-bottom:0; }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg .ps-scene{ display:none; }
body.ps-popup-store .ps-page .ps-hero.ps-has-bg .ps-lede{ color:#E6E6E6; }
body.ps-popup-store .ps-page .ps-stage .ps-m-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; view-transition-name:m-photo; }
body.ps-popup-store .ps-page .ps-stage .ps-m-photo.ps-b{ display:none; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-photo.ps-a{ display:none; } body.ps-popup-store .ps-page .ps-stage.ps-popup .ps-m-photo.ps-b{ display:block; }
body.ps-popup-store .ps-page .ps-stage.ps-has-photos > :not(.ps-m-photo):not(.ps-cap){ display:none; }

/* ------------------------------------------------------------ SETTORI */
body.ps-popup-store .ps-page .ps-sectors{ padding:clamp(3.5rem,8vw,6.5rem) 0; border-top:1px solid var(--line); }
body.ps-popup-store .ps-page .ps-sectors .ps-intro{ display:grid; gap:1rem; margin-bottom:2rem; }
@media (min-width:900px){ body.ps-popup-store .ps-page .ps-sectors .ps-intro{ grid-template-columns:1fr 1fr; align-items:end; } }
body.ps-popup-store .ps-page .ps-sectors .ps-intro p{ color:var(--muted); }
body.ps-popup-store .ps-page .ps-strip{ display:grid; grid-auto-flow:column; grid-auto-columns:min(78vw,300px); gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:.5rem; margin-inline:-1.25rem; padding-inline:1.25rem; scrollbar-width:none; }
body.ps-popup-store .ps-page .ps-strip::-webkit-scrollbar{ display:none; }
@media (min-width:900px){ body.ps-popup-store .ps-page .ps-strip{ grid-auto-flow:row; grid-template-columns:repeat(5,1fr); grid-auto-columns:auto; overflow:visible; margin-inline:0; padding-inline:0; } }
body.ps-popup-store .ps-page .ps-card{ scroll-snap-align:start; border:1px solid var(--line); padding:1rem; display:grid; gap:.9rem; align-content:start; }
body.ps-popup-store .ps-page .ps-card svg{ width:100%; height:auto; aspect-ratio:1; }
body.ps-popup-store .ps-page .ps-card h3{ font-size:1.05rem; letter-spacing:.04em; }
body.ps-popup-store .ps-page .ps-card p{ font-size:.9rem; color:var(--muted); }

/* ------------------------------------------------------------ CTA */
body.ps-popup-store .ps-page .ps-cta-sec{ padding:clamp(4rem,10vw,8rem) 0; border-top:1px solid var(--line); }
body.ps-popup-store .ps-page .ps-cta-sec .ps-wrap{ display:grid; gap:2rem; }
body.ps-popup-store .ps-page .ps-cta-sec h2{ font-size:clamp(2.1rem,5.5vw,4.4rem); }
body.ps-popup-store .ps-page .ps-cta-sec p{ color:var(--muted); margin-top:1.25rem; }
body.ps-popup-store .ps-page .ps-cta-sec .ps-row{ margin-top:2rem; display:flex; gap:.9rem; flex-wrap:wrap; }

body.ps-popup-store .ps-page .ps-sticky-cta{ position:fixed; left:0; right:0; bottom:0; z-index:60; padding:.85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom,0px)); background:var(--accent); color:#fff; display:flex; justify-content:space-between; align-items:center; gap:1rem; text-decoration:none; font-family:var(--head); font-weight:700; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; translate:0 110%; animation:slide auto linear both; animation-timeline:scroll(root); animation-range:30% 34%; }
body.ps-popup-store .ps-page .ps-sticky-cta span:last-child{ font-family:var(--body); font-weight:400; text-transform:none; letter-spacing:0; font-size:.85rem; opacity:.9; }
@keyframes slide{ to{ translate:0 0 } }
@media (min-width:760px){ body.ps-popup-store .ps-page .ps-sticky-cta{ display:none; } }

body.ps-popup-store .ps-page .ps-foot{ padding:2.5rem 0 calc(5rem + env(safe-area-inset-bottom,0px)); border-top:1px solid var(--line); color:var(--grey); font-size:.85rem; }
body.ps-popup-store .ps-page .ps-foot h2{ font-size:.8rem; letter-spacing:.14em; font-weight:600; color:#fff; margin-bottom:.9rem; }
body.ps-popup-store .ps-page .ps-foot ul{ margin:0; padding-left:1.1rem; max-width:64em; } body.ps-popup-store .ps-page .ps-foot li{ margin:.35rem 0; }

/* ------------------------------------------------------------ FALLBACK senza scroll-driven animations */
@supports not ((animation-timeline: scroll()) and (animation-range: 0% 100%)){
  body.ps-popup-store .ps-page .ps-dot::after, body.ps-popup-store .ps-page .ps-panel, body.ps-popup-store .ps-page .ps-regia .ps-path, body.ps-popup-store .ps-page .ps-regia .ps-focus, body.ps-popup-store .ps-page .ps-finder, body.ps-popup-store .ps-page .ps-hours .ps-fillbar, body.ps-popup-store .ps-page .ps-hours li::before, body.ps-popup-store .ps-page .ps-build .ps-st, body.ps-popup-store .ps-page .ps-sticky-cta{ animation:none !important; }
  body.ps-popup-store .ps-page .ps-panel{ opacity:0; visibility:hidden; } body.ps-popup-store .ps-page .ps-panel-1{ opacity:1; visibility:visible; }
  body.ps-popup-store .ps-page .ps-sticky-cta{ transition:translate .4s; } body.ps-popup-store .ps-page .ps-sticky-cta.ps-show{ translate:0 0; }
}

/* ------------------------------------------------------------ SCHERMI BASSI (telefono in orizzontale): niente pin, tutto in colonna */
@media (max-height:520px){
  body.ps-popup-store .ps-page .ps-three-sticky{ position:static; height:auto; } body.ps-popup-store .ps-page .ps-three-tracks{ display:none; }
  body.ps-popup-store .ps-page .ps-panel{ position:static; opacity:1 !important; visibility:visible !important; translate:0 !important; padding-top:2rem; animation:none !important; }
  body.ps-popup-store .ps-page .ps-three-head{ position:static; padding:1.25rem 0 0; } body.ps-popup-store .ps-page .ps-dot::after{ scale:1 1; animation:none !important; }
  body.ps-popup-store .ps-page .ps-visual{ height:60vh; }
  body.ps-popup-store .ps-page .ps-regia .ps-path{ stroke-dashoffset:0; animation:none !important; } body.ps-popup-store .ps-page .ps-regia .ps-focus{ opacity:1; animation:none !important; } body.ps-popup-store .ps-page .ps-finder{ scale:1; animation:none !important; }
  body.ps-popup-store .ps-page .ps-build .ps-st{ opacity:1; translate:0; animation:none !important; } body.ps-popup-store .ps-page .ps-hours .ps-fillbar{ scale:1 1; animation:none !important; } body.ps-popup-store .ps-page .ps-hours li::before{ background:var(--accent-light); animation:none !important; }
}
/* ------------------------------------------------------------ RIDUCI MOVIMENTO */
@media (prefers-reduced-motion: reduce){
  body.ps-popup-store .ps-page *, body.ps-popup-store .ps-page *::before, body.ps-popup-store .ps-page *::after{ animation:none !important; transition:none !important; }
  html:has(.ps-popup-store){ scroll-behavior:auto; }
  body.ps-popup-store .ps-page .ps-scene .ps-facade-led, body.ps-popup-store .ps-page .ps-scene .ps-glow, body.ps-popup-store .ps-page .ps-scene .ps-pool, body.ps-popup-store .ps-page .ps-scene .ps-phone, body.ps-popup-store .ps-page .ps-hero .ps-copy > *{ opacity:1 !important; scale:1 !important; }
  body.ps-popup-store .ps-page .ps-three-sticky{ position:static; height:auto; } body.ps-popup-store .ps-page .ps-three-tracks{ display:none; }
  body.ps-popup-store .ps-page .ps-panel{ position:static; opacity:1 !important; visibility:visible !important; translate:0 !important; padding-top:2rem; }
  body.ps-popup-store .ps-page .ps-three-head{ position:static; padding:1.25rem 0 0; } body.ps-popup-store .ps-page .ps-dot::after{ scale:1 1; }
  body.ps-popup-store .ps-page .ps-regia .ps-path{ stroke-dashoffset:0; } body.ps-popup-store .ps-page .ps-regia .ps-focus{ opacity:1; } body.ps-popup-store .ps-page .ps-finder{ scale:1; }
  body.ps-popup-store .ps-page .ps-build .ps-st{ opacity:1; translate:0; } body.ps-popup-store .ps-page .ps-hours .ps-fillbar{ scale:1 1; } body.ps-popup-store .ps-page .ps-hours li::before{ background:var(--accent-light); }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*){ animation:none !important; }
  body.ps-popup-store .ps-page .ps-sticky-cta{ translate:0 0; }
}

/* Hello Elementor: niente contenitore boxed su questo template */
body.ps-popup-store:not([class*=elementor-page-]) .site-main,
body.ps-popup-store .site-main{ max-width:none; width:100%; margin:0; padding:0; }

/* WordPress: barra admin */
body.admin-bar.ps-popup-store{ --hdr:calc(var(--ps-header-offset,0px) + 32px); }
@media (max-width:782px){ body.admin-bar.ps-popup-store{ --hdr:calc(var(--ps-header-offset,0px) + 46px); } }
/* immagine hero reale (featured image) */
body.ps-popup-store .ps-page .ps-hero-img{ width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }

/* Testo ricco (campi WYSIWYG) */
body.ps-popup-store .ps-page .ps-rich > * + *{ margin-top:.8em; }
body.ps-popup-store .ps-page .ps-lede p{ font-size:inherit; line-height:inherit; color:inherit; max-width:none; }
body.ps-popup-store .ps-page .ps-rich ul{ margin:.8em 0 0; padding-left:1.15em; max-width:36em; }
body.ps-popup-store .ps-page .ps-rich li + li{ margin-top:.3em; }
body.ps-popup-store .ps-page .ps-rich strong{ font-weight:700; color:inherit; }
body.ps-popup-store .ps-page .ps-rich em{ font-style:italic; }
body.ps-popup-store .ps-page .ps-rich a{ color:inherit; text-decoration:underline; text-underline-offset:.2em; text-decoration-thickness:1px; }
body.ps-popup-store .ps-page .ps-rich a:hover{ color:var(--accent-light); }
body.ps-popup-store .ps-page .ps-light .ps-rich a:hover{ color:var(--accent); }
