/* Scena: ScaiNet. La postazione, l'interfaccia vera ricostruita, l'autoclave in 3D, il livello brevettato, i PLC, la ricetta notturna. */
.ap-scainet2 { --ap-acc: #E3B24A; --ap-dim: 8,11,16; --ap-bg: #080B10; --ap-soft: #DCE2EA; height: 1500vh; }
.s2-studio { position: absolute; inset: 0; background:
  radial-gradient(46% 60% at 62% 42%, rgba(60,90,160,.32), rgba(60,90,160,0) 70%),
  radial-gradient(90% 40% at 50% 100%, rgba(40,52,70,.5), rgba(40,52,70,0) 70%),
  linear-gradient(180deg, #0A0E14 0%, #0E131B 60%, #080B10 100%); }
.ap-scainet2 .ap-c0 { left: max(6vw, calc((100vw - 1240px) / 2)); right: auto; top: 50%; text-align: left; align-items: flex-start; width: min(520px, 44vw);
  transform: translateY(calc(-50% + (1 - var(--o)) * -20px)); }
/* postazione: spazio della foto 1113 x 2600 */
.s2-ws { position: absolute; left: 0; top: 0; width: 1113px; height: 2600px; transform-origin: 0 0; }
.s2-ws > * { position: absolute; }
.s2-totem { left: 0; top: 0; width: 1113px; height: 2600px; }
.s2-floor { left: -300px; top: 2480px; width: 1713px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.8), rgba(0,0,0,.35) 55%, rgba(0,0,0,0)); }
.s2-mod { left: 115.93px; top: 242.69px; width: 874.87px; height: 709.74px; max-width: none; opacity: 0; }
/* schermo: le schermate vere di ScaiNet, nello spazio dello schermo (sempre nitide) */
.s2-ui { position: absolute; left: 0; top: 0; width: 100px; height: 80px; opacity: 0; overflow: hidden; pointer-events: none; background: #2B3BD8; }
.s2-pg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.s2-pg-a, .s2-pg-g { opacity: 0; }
.s2-fan { position: absolute; left: 43.9%; top: 48.44%; width: 4.06%; height: auto; aspect-ratio: 1; margin: -2.03% 0 0 -2.03%; opacity: 0; }
.s2-glass { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 28%, rgba(255,255,255,0) 40%), radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,10,.18) 100%); }
.s2-tap { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none;
  box-shadow: 0 0 14px rgba(255,255,255,.6), inset 0 0 12px rgba(255,255,255,.35); }
/* autoclave: spazio dell'immagine 1120 x 2150, asse x 560, pavimento y 2060 */
.s2-tk { position: absolute; left: 0; top: 0; width: 1120px; height: 2150px; transform-origin: 0 0; opacity: 0; }
.s2-tk > * { position: absolute; }
.s2-tk-img, .s2-tk-x { left: 0; top: 0; width: 1120px; height: 2150px; }
.s2-tk-refl { left: 0; top: 1970px; width: 1120px; height: 2150px; transform: scaleY(-1); transform-origin: 50% 0; opacity: .16; filter: blur(3px);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 80%, rgba(0,0,0,.9) 100%); mask-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 80%, rgba(0,0,0,.9) 100%); }
.s2-tk-contact { left: 60px; top: 1990px; width: 1000px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.85), rgba(0,0,0,.4) 55%, rgba(0,0,0,0)); }
.s2-tk-glow { left: 60px; top: 160px; width: 1000px; height: 1900px; border-radius: 45%; opacity: 0; background: radial-gradient(closest-side, rgba(255,70,50,.55), rgba(255,70,50,.18) 55%, rgba(255,70,50,0)); filter: blur(20px); }
.s2-tk-x { overflow: visible; }
.s2-tk-x > * { opacity: 0; }
.s2-shell { fill: rgba(130,190,255,.06); stroke: rgba(170,220,255,.95); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.s2-liq-m { fill: none; stroke: rgba(255,246,210,.75); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.s2-ref { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.s2-bub circle { fill: rgba(255,250,225,.7); }
.s2-tk-temp { left: 699.3px; top: 557.9px; width: 23.4px; height: 10.3px; display: flex; align-items: center; justify-content: center; }
.s2-tk-temp span { font: 500 8.6px/1 "IBM Plex Mono", ui-monospace, monospace; color: #15181a; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
/* valore */
.s2-val { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; opacity: 0; pointer-events: none; text-align: left; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.s2-val-l { font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.s2-val-a { font: 500 1.15rem var(--f-mono); color: rgba(255,255,255,.88); }
.s2-val-a b { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; color: #F4DC8E; }
.s2-val-b { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.s2-val-b b { font-weight: 600; }
.s2-val.alarm .s2-val-a b { color: #FF7A62; }
.s2-lead { position: absolute; left: 0; top: 0; height: 1px; opacity: 0; transform-origin: 0 50%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 4px, rgba(255,255,255,0) 4px 8px); pointer-events: none; }
/* telefono con l'SMS */
.s2-phone { position: absolute; left: 0; top: 0; width: 270px; height: 540px; border-radius: 40px; padding: 12px; opacity: 0; pointer-events: none;
  background: linear-gradient(160deg, #2a2f38, #111419 60%); box-shadow: 0 0 0 1.5px #4a515c, 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 6px #07090c; }
.s2-phone::before { content: ""; position: absolute; inset: 12px; border-radius: 30px; background: radial-gradient(120% 80% at 30% 0%, #233a66, #0b1326 70%); }
.s2-phone::after { content: ""; position: absolute; left: 50%; top: 22px; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #000; }
.s2-ph-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 64px; color: #fff; }
.s2-ph-clock { font-family: var(--f-display); font-weight: 500; font-size: 3.6rem; line-height: 1; letter-spacing: -.02em; }
.s2-ph-date { font: 500 .78rem var(--f-body); opacity: .75; margin-top: 6px; }
.s2-sms { position: relative; z-index: 1; margin: 40px 6px 0; padding: 12px 14px; border-radius: 18px; background: rgba(245,247,250,.92); color: #11151c; transform-origin: 50% 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.s2-sms-h { display: flex; align-items: center; gap: 8px; font: 500 .68rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #5b6472; }
.s2-sms-h i { width: 18px; height: 18px; border-radius: 5px; background: #2DB84C; }
.s2-sms-h b { font-weight: 600; color: #11151c; }
.s2-sms-h span { margin-left: auto; text-transform: none; letter-spacing: 0; }
.s2-sms p { margin: 8px 0 0; font: 400 .86rem/1.35 var(--f-body); }
/* il quadro vero: foto 1201 x 1560, tre schede PLC nella colonna di sinistra */
.s2-q { position: absolute; left: 0; top: 0; width: 1201px; height: 1560px; transform-origin: 0 0; opacity: 0; }
.s2-q > * { position: absolute; }
.s2-q-img { left: 0; top: 0; width: 1201px; height: 1560px; -webkit-mask-image: radial-gradient(75% 60% at 50% 48%, #000 60%, rgba(0,0,0,0) 100%); mask-image: radial-gradient(75% 60% at 50% 48%, #000 60%, rgba(0,0,0,0) 100%); }
.s2-q-b { left: 176px; width: 198px; border-radius: 6px; box-shadow: 0 0 0 2px rgba(75,224,106,.0); opacity: 0; }
.s2-q-b[data-b="0"] { top: 446px; height: 352px; } .s2-q-b[data-b="1"] { top: 802px; height: 342px; } .s2-q-b[data-b="2"] { top: 1142px; height: 332px; }
.s2-q-b.on { opacity: 1; box-shadow: 0 0 0 2px rgba(75,224,106,.85), 0 0 24px rgba(75,224,106,.35); }
.s2-q-b.off { opacity: 1; background: rgba(8,10,14,.62); box-shadow: 0 0 0 2px rgba(255,90,70,.95), 0 0 28px rgba(255,70,50,.45); }
.s2-qt { position: absolute; left: 0; top: 0; z-index: 3; display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 12px; opacity: 0; pointer-events: none;
  background: rgba(14,20,30,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.45); color: #fff; white-space: nowrap; }
.s2-qt::before { content: ""; position: absolute; right: 100%; top: 50%; width: var(--lead, 40px); height: 1px; background: rgba(255,255,255,.55); }
.s2-qt b { font: 600 1rem var(--f-display); }
.s2-qt span { grid-column: 1; font: 400 .76rem var(--f-body); color: rgba(255,255,255,.62); }
.s2-qt em { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; align-items: center; gap: 7px; font: 500 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #8BF29B; }
.s2-qt em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4BE06A; box-shadow: 0 0 8px #4BE06A; opacity: var(--led, 1); }
.s2-qt.off em { color: #FF8A73; } .s2-qt.off em::before { background: #FF4A3A; box-shadow: 0 0 8px #FF4A3A; }
.s2-qnote { position: absolute; left: 0; top: 0; z-index: 3; margin: 0; display: flex; align-items: center; gap: 10px; opacity: 0; font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap; pointer-events: none; }
.s2-qnote i { width: 8px; height: 8px; border-radius: 50%; background: #4BE06A; box-shadow: 0 0 8px #4BE06A; }
/* notte e ricetta */
.s2-night { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(60% 70% at 30% 40%, rgba(20,40,110,.0), rgba(4,8,30,.55) 80%), linear-gradient(180deg, rgba(10,20,70,.35), rgba(2,4,14,.25)); mix-blend-mode: normal; }
.s2-rec { position: absolute; left: 0; top: 0; width: 300px; padding: 16px 18px; border-radius: 16px; opacity: 0; pointer-events: none; color: #fff;
  background: rgba(16,22,40,.78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.s2-rec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.s2-rec-h span { font: 500 .66rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.s2-rec-h b { font: 600 1.3rem var(--f-display); font-variant-numeric: tabular-nums; color: #CFE0FF; }
.s2-rec ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.s2-rec li { position: relative; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); overflow: hidden; }
.s2-rec li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--f-mono); background: rgba(255,255,255,.1); }
.s2-rec li span { display: flex; justify-content: space-between; font: 500 .86rem var(--f-body); }
.s2-rec li span em { font-style: normal; font-family: var(--f-mono); font-size: .78rem; color: rgba(255,255,255,.6); }
.s2-rec li i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--f, 0) * 100%); background: #E3B24A; }
.s2-rec li.done b { background: #2DB84C; }
.s2-rec li.run { background: rgba(227,178,74,.14); box-shadow: inset 0 0 0 1px rgba(227,178,74,.5); }
.s2-rec li.run b { background: #E3B24A; color: #1a1406; }
@media (max-width: 760px) {
  .ap-scainet2 { height: 1400vh; }
  .ap-scainet2 .ap-c0 { left: 0; right: 0; top: clamp(84px, 11vh, 120px); width: auto; text-align: center; align-items: center; transform: translateY(calc((1 - var(--o)) * -20px)); }
  .s2-phone { width: 200px; height: 400px; border-radius: 32px; }
  .s2-ph-top { margin-top: 44px; } .s2-ph-clock { font-size: 2.6rem; } .s2-sms { margin-top: 22px; } .s2-sms p { font-size: .78rem; }
  .s2-qt { padding: 7px 10px; } .s2-qt b { font-size: .86rem; } .s2-qnote { font-size: .6rem; white-space: normal; width: 80vw; }
  .s2-rec { width: 250px; }
}

.s2-val, .s2-phone, .s2-rec, .s2-tap, .s2-ui { z-index: 3; }
