/* Restaurant OS — © 2026 NSAi Srl, Milano — nsai.eu. Codice proprietario. */
/* Restaurant OS · i popup del sito (e la loro anteprima nel gestionale).
   Tutto sotto .rst-pp: i temi (Flatsome compreso) non lo toccano e lui non tocca il tema. */
.rst-pp{--rst-pp-c:#566428;--rst-pp-testo:#16211F;--rst-pp-tenue:#5B6966;--rst-pp-fondo:#fff;--rst-pp-riga:#DBE3E1;--rst-pp-chiaro:#EEF3F2;
  position:fixed;z-index:2147483000;font-family:inherit;font-size:15px;line-height:1.5;color:var(--rst-pp-testo);text-align:left;letter-spacing:normal}
.rst-pp *,.rst-pp *::before,.rst-pp *::after{box-sizing:border-box}
html.rst-pp-bloccato,html.rst-pp-bloccato body{overflow:hidden!important}

/* Le forme */
.rst-pp--centro{inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(14,22,21,.45);animation:rst-pp-velo .2s ease}
.rst-pp--angolo{bottom:16px;right:16px;width:340px;max-width:calc(100vw - 32px)}
.rst-pp--angolo.lato-sx{right:auto;left:16px}
.rst-pp--basso{left:0;right:0;bottom:0}
.rst-pp.esce{opacity:0;transition:opacity .18s ease}

.rst-pp-card{position:relative;display:flex;flex-direction:column;width:100%;max-height:calc(100vh - 40px);overflow:auto;background:var(--rst-pp-fondo);border-radius:18px;box-shadow:0 22px 60px rgba(10,20,18,.32);animation:rst-pp-entra .32s cubic-bezier(.2,.9,.3,1.15)}
.rst-pp--centro .rst-pp-card.mis-piccolo{width:min(360px,100%)}
.rst-pp--centro .rst-pp-card.mis-medio{width:min(440px,100%)}
.rst-pp--centro .rst-pp-card.mis-grande{width:min(620px,100%)}
.rst-pp--angolo .rst-pp-card{border-radius:16px;box-shadow:0 14px 44px rgba(10,20,18,.28);max-height:calc(100vh - 32px)}
.rst-pp--basso .rst-pp-card{border-radius:18px 18px 0 0;max-height:85vh;padding-bottom:env(safe-area-inset-bottom,0px)}
@keyframes rst-pp-velo{from{opacity:0}to{opacity:1}}
@keyframes rst-pp-entra{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.rst-pp,.rst-pp-card{animation:none!important}}

/* La X: grande abbastanza per il dito, sempre sopra */
.rst-pp .rst-pp-x{position:absolute!important;top:10px!important;right:10px!important;left:auto!important;z-index:3!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;
  background:rgba(120,130,128,.18)!important;color:var(--rst-pp-testo)!important;display:flex!important;align-items:center;justify-content:center;cursor:pointer;box-shadow:none!important;line-height:1!important}
.rst-pp .rst-pp-x:hover{background:rgba(120,130,128,.3)!important}
.rst-pp .rst-pp-x:focus-visible{outline:2px solid var(--rst-pp-c)!important;outline-offset:2px}
.rst-pp .rst-pp-x svg{width:14px;height:14px}
.rst-pp .rst-pp-x::after{content:"";position:absolute;inset:-8px}

/* L'immagine */
.rst-pp-img{display:block;width:100%;max-height:220px;object-fit:cover;margin:0!important;border-radius:0!important}
.rst-pp--angolo .rst-pp-img{max-height:150px}
.rst-pp-card.img-lato{flex-direction:row}
.rst-pp-card.img-lato>.rst-pp-img{width:40%;max-height:none;flex:none;align-self:stretch}
.rst-pp-card.img-lato>.rst-pp-dentro{flex:1;min-width:0}
.rst-pp--centro .rst-pp-card.img-lato.mis-medio{width:min(560px,100%)}
.rst-pp-card.img-sfondo{background-size:cover;background-position:center;color:#fff}
.rst-pp-card.img-sfondo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.62));border-radius:inherit}
.rst-pp-card.img-sfondo>.rst-pp-dentro{position:relative;z-index:1;padding-top:64px}
.rst-pp-card.img-sfondo .rst-pp-tit,.rst-pp-card.img-sfondo .rst-pp-testo,.rst-pp-card.img-sfondo .rst-pp-marca{color:#fff!important}
.rst-pp-card.img-sfondo .rst-pp-x{background:rgba(255,255,255,.28)!important;color:#fff!important}

/* Il contenuto */
.rst-pp-dentro{display:flex;flex-direction:column;gap:10px;padding:22px 22px 20px}
.rst-pp--angolo .rst-pp-dentro{padding:16px 16px 16px;gap:8px}
.rst-pp-testa{display:flex;align-items:center;gap:10px;padding-right:36px}
.rst-pp-ic{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;color:var(--rst-pp-c);background:color-mix(in srgb,var(--rst-pp-c) 12%,#fff)}
.rst-pp-ic svg{width:18px;height:18px}
.rst-pp-marca{font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--rst-pp-tenue)}
.rst-pp .rst-pp-tit{margin:0!important;padding:0 36px 0 0!important;font-family:inherit!important;font-weight:700!important;font-size:21px!important;line-height:1.25!important;letter-spacing:-.01em;color:var(--rst-pp-testo);text-transform:none!important}
.rst-pp-testa+.rst-pp-tit{padding-right:0!important}
.rst-pp--angolo .rst-pp-tit{font-size:17px!important}
.rst-pp-testo{color:var(--rst-pp-tenue);font-size:15px}
.rst-pp--angolo .rst-pp-testo{font-size:14px}
.rst-pp-testo p{margin:0 0 .6em!important}.rst-pp-testo p:last-child{margin:0!important}
.rst-pp-testo strong{color:var(--rst-pp-testo)}
.rst-pp-card.img-sfondo .rst-pp-testo strong{color:#fff}
.rst-pp-corpo{min-width:0}
.rst-pp-card:focus{outline:none}
/* Il modulo contatti dentro il popup: il titolo è quello del popup */
.rst-pp .rst-pp-contatti .rst-c-testa{display:none!important}
.rst-pp .rst-pp-contatti .rst-c-corpo{padding:4px 2px 0!important}

/* I pulsanti: una famiglia sola, stessa misura */
.rst-pp-bot{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.rst-pp-bot.colonna{flex-direction:column}
.rst-pp-bot.colonna>*{width:100%}
.rst-pp .rst-pp-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0!important;padding:10px 18px!important;border:0!important;border-radius:12px!important;
  background:var(--rst-pp-c)!important;color:#fff!important;font-family:inherit!important;font-weight:600!important;font-size:15px!important;line-height:1.2!important;text-decoration:none!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer;box-shadow:none!important;white-space:nowrap}
.rst-pp .rst-pp-btn:hover{filter:brightness(.94)}
.rst-pp .rst-pp-btn:focus-visible{outline:2px solid var(--rst-pp-c)!important;outline-offset:2px}
.rst-pp .rst-pp-btn.chiaro{background:var(--rst-pp-chiaro)!important;color:var(--rst-pp-testo)!important}
.rst-pp .rst-pp-btn.wa{background:#1FAF55!important}
.rst-pp .rst-pp-btn.wa svg{width:18px;height:18px}
.rst-pp--angolo .rst-pp-bot .rst-pp-btn{flex:1 1 auto}

/* I posti liberi */
.rst-pp-liberi{display:flex;flex-direction:column;gap:6px}
.rst-pp .rst-pp-libero{display:flex!important;justify-content:space-between;align-items:center;gap:10px;width:100%;margin:0!important;padding:9px 12px!important;border:1px solid var(--rst-pp-riga)!important;border-radius:10px!important;background:#fff!important;color:var(--rst-pp-testo)!important;font-family:inherit!important;font-weight:500!important;font-size:14px!important;line-height:1.3!important;cursor:pointer;text-transform:none!important;box-shadow:none!important}
.rst-pp .rst-pp-libero:hover{border-color:var(--rst-pp-c)!important}
.rst-pp .rst-pp-libero span:first-letter{text-transform:uppercase}
.rst-pp .rst-pp-libero b{color:var(--rst-pp-c);font-variant-numeric:tabular-nums}

/* Moduli dentro: prenotazione, contatti, iscrizione — senza la loro cornice */
.rst-pp .rst-pp-prenota,.rst-pp .rst-pp-contatti{max-width:none!important;margin:0!important;box-shadow:none!important;border:0!important;background:transparent!important}
.rst-pp .rst-nl-iscr{max-width:none!important}
.rst-pp .rst-nl-iscr input:not([type=checkbox]){border:1px solid var(--rst-pp-riga);border-radius:10px;width:100%}
.rst-pp .rst-nl-iscr button{border:0;border-radius:12px;background:var(--rst-pp-c);color:#fff;font-weight:600;cursor:pointer}
.rst-pp .rst-nl-iscr strong:empty{display:none}
.rst-pp-nota{color:var(--rst-pp-tenue);font-size:14px;margin:0}

/* Nell'anteprima: al posto dei moduli veri, la loro sagoma */
.rst-pp-finto{display:flex;flex-direction:column;gap:6px}
.rst-pp-finto strong{font-size:14px}
.rst-pp-finto span{display:block;padding:9px 12px;border:1px dashed var(--rst-pp-riga);border-radius:10px;color:var(--rst-pp-tenue);font-size:13px}

/* Sul telefono (sul sito sotto i 600px; nel gestionale l'anteprima «Telefono») */
.rst-pp.tel.rst-pp--centro{padding:12px}
.rst-pp.tel.rst-pp--centro .rst-pp-card{max-height:calc(100% - 24px)}
.rst-pp.tel.rst-pp--angolo{left:12px!important;right:12px!important;bottom:12px;width:auto;max-width:none}
.rst-pp.tel .rst-pp-card.img-lato{flex-direction:column}
.rst-pp.tel .rst-pp-card.img-lato>.rst-pp-img{width:100%;max-height:180px}
.rst-pp.tel .rst-pp-tit{font-size:19px!important}
.rst-pp.tel .rst-pp-dentro{padding:18px 16px 16px}

/* L'anteprima del gestionale: dentro il suo riquadro, non sopra la pagina */
.rst-pp.anteprima{position:absolute;z-index:2}
.rst-pp.anteprima.rst-pp--centro{inset:0}
.rst-pp.anteprima.rst-pp--angolo{bottom:12px;right:12px;max-width:calc(100% - 24px)}
.rst-pp.anteprima.rst-pp--angolo.lato-sx{left:12px;right:auto}
.rst-pp.anteprima.rst-pp--basso{left:0;right:0;bottom:0}
.rst-pp.anteprima .rst-pp-card{max-height:calc(100% - 24px)}
.rst-pp.anteprima.rst-pp--angolo .rst-pp-card,.rst-pp.anteprima.rst-pp--basso .rst-pp-card{max-height:none}
