
/* ── la card da post ───────────────────────────────────────────────────────── */
.dpi360-velo.dpi360m{background:rgba(8,10,16,.74)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:16px;box-sizing:border-box}
.dpi360m-box{background:#fff;color:#111;border-radius:12px;box-shadow:0 30px 80px rgba(0,0,0,.45);display:flex;flex-direction:column;
  width:min(468px,100%,calc((100vh - 210px) * .8));max-height:calc(100vh - 32px);overflow:hidden;font:14px/1.4 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.dpi360m-testa{display:flex;align-items:center;gap:10px;padding:10px 6px 10px 12px;flex:0 0 auto}
.dpi360m-av{flex:0 0 36px;width:36px;height:36px;border-radius:50%;padding:2px;box-sizing:border-box;background:conic-gradient(#1B44AB,#4d8dff,#1B44AB)}
.dpi360m-av span{display:flex;width:100%;height:100%;border-radius:50%;background:#fff;padding:2px;box-sizing:border-box}
.dpi360m-av b{display:flex;width:100%;height:100%;border-radius:50%;background:#1B44AB;color:#fff;align-items:center;justify-content:center;font:800 9.5px/1 inherit;letter-spacing:.02em}
.dpi360m-tit{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.dpi360m-tit strong{font-size:14px;font-weight:600}
.dpi360m-tit small{font-size:12px;color:#737373;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dpi360m-ic{all:unset;cursor:pointer;flex:0 0 40px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#262626}
.dpi360m-ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dpi360m-ic:hover{color:#737373}
.dpi360m-ic:focus-visible{outline:2px solid #1B44AB;outline-offset:1px}
.dpi360m-ic.on{color:#1B44AB}
.dpi360m-ic[hidden]{display:none}
.dpi360m-corpo{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column}
.dpi360m-corpo .dpi360-palco{width:100%!important;max-width:none;aspect-ratio:4/5;border-radius:0;box-shadow:none;background:#f3f4f6;flex:0 0 auto}
.dpi360m-box .dpi360-palco .dpi360-chiudi{display:none!important}
.dpi360m-azioni{display:flex;align-items:center;gap:2px;padding:4px 6px 0;flex:0 0 auto}
.dpi360m-azioni .spazio{flex:1}
.dpi360m-dida{padding:2px 14px 4px;font-size:14px;line-height:1.4;color:#262626}
.dpi360m-dida b{font-weight:600;margin-right:4px}
.dpi360m-dida .dpi360-dice{display:inline;color:#262626!important;opacity:1!important;margin:0;font-size:14px;text-align:left}
.dpi360m-piede{padding:0 14px 12px;display:flex;flex-direction:column;gap:6px}
.dpi360m-piede .dpi360-nota{color:#737373!important;opacity:1!important;font-size:10.5px!important;letter-spacing:.04em;text-transform:uppercase;text-align:left!important;margin:0}
.dpi360m-piede .dpi-cond-out{font-size:12.5px}
/* la barra dei posti (dpi-360-posto) vive nel pannello « Sposta il logo », non sotto la foto */
.dpi360m-box .dpi360-posti{display:none!important}
.dpi360m-box .dpi360s-pan .dpi360-posti{display:flex!important;background:none;padding:0;margin:0;border-radius:0;gap:6px;justify-content:flex-start}
.dpi360m-box .dpi360s-pan .dpi360-posti .eti,.dpi360m-box .dpi360s-pan .dpi360-posti .dpi-cond,.dpi360m-box .dpi360s-pan .dpi360-posti .dpi-cond-out{display:none}
.dpi360m-box .dpi360s-pan .dpi360-posto{padding:6px 12px;font-size:12.5px}
.dpi360m-box .dpi360s-pan .dpi360-gr{justify-content:flex-start;margin-top:4px}
/* ── 04/10 larga sul computer (Ale: « la allarghiamo? ») ────────────────────────────────────────────
   Da 900 px: la foto a sinistra, alta quanto lo schermo e 4:5 (la cornice .dpi360z di dpi-360-scena), i comandi
   in colonna a destra: colori, Sposta il logo, viste, testo, Ambienta stanno tutti in vista, senza scorrere. */
@media (min-width:900px){
.dpi360m-box{width:min(1120px,100%)!important;height:calc(100vh - 32px);max-height:calc(100vh - 32px)}
.dpi360m-corpo{display:grid!important;grid-template-columns:auto minmax(340px,1fr);grid-auto-rows:min-content;align-content:start;overflow:hidden!important}
.dpi360m-corpo>.dpi360z{grid-column:1;grid-row:1/span 30;height:calc(100vh - 32px - 56px);width:auto;aspect-ratio:4/5;max-width:calc(1120px - 360px)}
.dpi360m-corpo>:not(.dpi360z){grid-column:2;min-width:0;overflow-wrap:anywhere}
.dpi360m-corpo>.dpi360m-azioni{padding:14px 14px 0}
}
/* ── sposta il logo ────────────────────────────────────────────────────────── */
.dpi360s-leva{position:absolute;inset:0;z-index:7;touch-action:none;cursor:default}
.dpi360s-box{position:absolute;outline:1.5px dashed #1B44AB;outline-offset:2px;cursor:move;touch-action:none;background:center/contain no-repeat}
.dpi360s-box .h{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #1B44AB;cursor:nwse-resize;touch-action:none}
.dpi360s-pan{display:flex;flex-direction:column;gap:8px;padding:10px 14px 6px;border-top:1px solid #efefef}
.dpi360s-pan .ti{font-size:13px;color:#262626}
.dpi360s-pan .ti b{font-weight:600}
.dpi360s-pan .bt{display:flex;gap:8px;justify-content:flex-end}
.dpi360s-pan .bt button{all:unset;cursor:pointer;height:34px;padding:0 14px;border-radius:8px;font-weight:600;font-size:13px}
.dpi360s-pan .bt .si{background:#1B44AB;color:#fff}
.dpi360s-pan .bt .no{color:#262626;background:#efefef}
.dpi360s-pan .viste{display:flex;gap:6px;flex-wrap:wrap}
.dpi360s-pan .viste button{all:unset;cursor:pointer;height:32px;padding:0 12px;border-radius:8px;background:#efefef;color:#262626;font-weight:600;font-size:12.5px;position:relative}
.dpi360s-pan .viste button.on{background:#1B44AB;color:#fff}
.dpi360s-pan .viste button.ha::after{content:'';position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:#f5b301}
.dpi360s-pan .az{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.dpi360s-pan .az button{all:unset;cursor:pointer;font-size:13px;color:#1B44AB;font-weight:600}
.dpi360s-pan .az button[hidden]{display:none}
.dpi360s-pan .az .tol{color:#737373;font-weight:500;text-decoration:underline}
/* ── ambienta ─────────────────────────────────────────────────────────────── */
.dpi360a{display:none;flex-direction:column;gap:8px;padding:8px 14px 4px;border-top:1px solid #efefef}
.dpi360a.aperto{display:flex}
.dpi360a .chip{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.dpi360a .chip button{all:unset;cursor:pointer;flex:0 0 auto;height:30px;padding:0 11px;border-radius:8px;background:#efefef;font:600 12.5px/30px -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#262626}
.dpi360a .chip button:hover,.dpi360a .chip button.on{background:#1B44AB;color:#fff}
.dpi360a form{display:flex;gap:6px}
.dpi360a input{flex:1;min-width:0;height:34px;border:1px solid #dbdbdb;border-radius:8px;padding:0 10px;font:inherit;font-size:13px;outline:none;background:#fafafa}
.dpi360a input:focus{border-color:#1B44AB;background:#fff}
.dpi360a form button{all:unset;cursor:pointer;height:34px;padding:0 12px;border-radius:8px;background:#1B44AB;color:#fff;font-weight:600;font-size:13px}
.dpi360a .scene{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.dpi360a .scene button{all:unset;cursor:pointer;flex:0 0 84px;height:58px;border-radius:6px;background:#efefef center/cover no-repeat}
.dpi360a .scene button:hover,.dpi360a .scene button.on{box-shadow:0 0 0 2px #1B44AB}
.dpi360a .nota{font-size:11.5px;color:#737373;min-height:15px}
.dpi360-palco.dpi360-trasp{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
/* ── il cantiere ───────────────────────────────────────────────────────────── */
.dpi360c{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  background:radial-gradient(circle at 50% 42%,#ffffff 0,#f2f5fd 62%,#e6ecfa 100%);transition:opacity .5s ease;font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.dpi360c.via{opacity:0;pointer-events:none}
.dpi360c svg{width:min(62%,300px);height:auto;overflow:visible}
.dpi360c .fr{min-height:22px;margin:0 16px;font-size:15px;font-weight:650;color:#1B2B5C;text-align:center;transition:opacity .35s}
.dpi360c .fr.cambia{opacity:0}
.dpi360c .co{font-size:12.5px;color:#5b6a8f;letter-spacing:.02em}
.dpi360c .co b{color:#1B44AB;font-variant-numeric:tabular-nums}
.dpi360c .sagoma{fill:#1B44AB;fill-opacity:0;stroke:#1B44AB;stroke-width:3;stroke-linejoin:round;stroke-dasharray:640;stroke-dashoffset:640;
  animation:dpi360cDisegna 3.4s ease-in-out infinite,dpi360cRiempi 3.4s ease-in-out infinite}
.dpi360c .colletto{fill:none;stroke:#ffffff;stroke-width:3;opacity:0;animation:dpi360cColletto 3.4s ease-in-out infinite}
.dpi360c .stampa{clip-path:inset(0 100% 0 0);animation:dpi360cStampa 3.4s ease-in-out infinite}
.dpi360c .testina{animation:dpi360cTestina 3.4s ease-in-out infinite}
.dpi360c .anello{transform-origin:120px 112px;animation:dpi360cGira 2.2s linear infinite}
.dpi360c .scintilla{transform-box:fill-box;transform-origin:center;opacity:0;animation:dpi360cScintilla 3.4s ease-in-out infinite}
.dpi360c .scintilla.s2{animation-delay:.25s}
.dpi360c .scintilla.s3{animation-delay:.5s}
@keyframes dpi360cDisegna{0%{stroke-dashoffset:640}38%,100%{stroke-dashoffset:0}}
@keyframes dpi360cRiempi{0%,34%{fill-opacity:0}52%,100%{fill-opacity:1}}
@keyframes dpi360cColletto{0%,48%{opacity:0}58%,100%{opacity:.9}}
@keyframes dpi360cStampa{0%,56%{clip-path:inset(0 100% 0 0)}82%,100%{clip-path:inset(0 0 0 0)}}
@keyframes dpi360cTestina{0%,54%{transform:translateX(0);opacity:0}57%{opacity:1}82%{transform:translateX(52px);opacity:1}86%,100%{transform:translateX(52px);opacity:0}}
@keyframes dpi360cGira{to{transform:rotate(360deg)}}
@keyframes dpi360cScintilla{0%,80%{opacity:0;transform:scale(.3)}88%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(.6)}}
@media (prefers-reduced-motion:reduce){
  .dpi360c .sagoma{animation:none;stroke-dashoffset:0;fill-opacity:1}
  .dpi360c .colletto{animation:none;opacity:.9}
  .dpi360c .stampa{animation:none;clip-path:none}
  .dpi360c .testina,.dpi360c .scintilla{display:none}
  .dpi360c .anello{animation:none}
}
