/* PAS Cloud v3.5.2 - menu laterale piu' agevole. Solo presentazione, limitato a html.ui-v330
   (con "Aspetto classico" il menu resta com'era). Stessa grafica PAS: blu notte, rosso logo come accento, punti colore per area. */

/* barra fissa: Home + ricerca */
html.ui-v330 .sidebar,html.ui-v330 .sidebar.sidebar-v78{padding-top:0;scroll-padding-top:60px}
html.ui-v330 .sidebar .menu-user-card-v78{margin:12px 0 0;padding:7px 12px}
html.ui-v330 #navTopV352{position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:6px;margin:0 -10px 6px;padding:10px 10px 8px;background:#fff;box-shadow:0 8px 8px -8px rgba(16,32,56,.14)}
html.ui-v330 #navTopV352 #navFilterV330{flex:1 1 auto;width:auto;min-width:0;margin:0;height:36px;padding:0 10px 0 34px;border-radius:8px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238593a6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50%}
html.ui-v330 #navTopV352 #navFilterV330:focus{border-color:var(--focus);outline:0;box-shadow:0 0 0 3px rgba(31,79,122,.16)}
html.ui-v330 #navTopV352 .nav-home-v78:not([hidden]){flex:0 0 auto;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;margin:0;justify-content:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
html.ui-v330 #navTopV352 .nav-home-v78 .nav-main-v78,html.ui-v330 #navTopV352 .nav-home-v78 small{display:none!important}
html.ui-v330 #navTopV352 .nav-home-v78::before,html.ui-v330 #navTopV352 .nav-home-v78.active::before{content:"";flex:none;position:static;display:block;width:18px;height:18px;border-radius:0;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E") center/contain no-repeat}
html.ui-v330 #navTopV352 .nav-home-v78:hover{background:var(--soft)}
html.ui-v330 #navTopV352 .nav-home-v78.active{background:rgba(181,18,42,.08);border-color:rgba(181,18,42,.35);color:var(--primary)}

/* Preferiti e Recenti */
html.ui-v330 #navQuickV352{margin:2px 0 10px;padding:2px 0 8px;border-bottom:1px solid var(--line)}
html.ui-v330 #navQuickV352[hidden]{display:none}
html.ui-v330 #navQuickV352 .nq-title{padding:6px 10px 3px;font-size:11.5px;font-weight:650;color:#7a889a;letter-spacing:.01em}
html.ui-v330 #navQuickV352 .nq-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px}
html.ui-v330 #navQuickV352 .nq-item{position:relative;display:block;width:100%;min-width:0;height:30px;padding:0 8px 0 22px;border:0;border-radius:6px;background:transparent;color:#2b394d;font-family:inherit;font-size:12.5px;font-weight:500;line-height:30px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;box-shadow:none}
html.ui-v330 #navQuickV352 .nq-item::before{content:"";position:absolute;left:9px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:2px;background:var(--dot,#64748b)}
html.ui-v330 #navQuickV352 .nq-item:hover{background:var(--soft);color:var(--ink)}
html.ui-v330 #navQuickV352 .nq-item.on{background:rgba(181,18,42,.08);color:#8c0f21;font-weight:650}

/* stella preferiti */
html.ui-v330 #navStarV352{position:absolute;right:12px;z-index:4;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:#fff;color:#9aa6b6;font-size:15px;line-height:24px;text-align:center;cursor:pointer;box-shadow:0 0 0 1px var(--line)}
html.ui-v330 #navStarV352[hidden]{display:none}
html.ui-v330 #navStarV352:hover{color:#c47d0e;background:#fff8e8}
html.ui-v330 #navStarV352.on{color:#c47d0e}

/* sezioni: indicatore "sei qui" */
html.ui-v330 .sidebar details.nav-section-card-v78>summary{position:relative;min-height:38px!important}
html.ui-v330 .sidebar details.nav-section-card-v78.has-active-v352>summary .section-title-v78{color:#8c0f21!important}
html.ui-v330 .sidebar details.nav-section-card-v78.has-active-v352>summary::before{box-shadow:0 0 0 3px rgba(181,18,42,.16)}
html.ui-v330 .sidebar details.nav-section-card-v78.has-active-v352:not([open])>summary{background:rgba(181,18,42,.06)!important}
html.ui-v330 .sidebar details.nav-section-card-v78[open]>summary{background:var(--soft)!important;box-shadow:inset 3px 0 0 var(--dot,#64748b)!important}

/* voci piu' compatte e titoli di blocco leggibili */
html.ui-v330 .sidebar details.nav-section-card-v78 .nav:not([hidden]){min-height:32px;padding-top:5px;padding-bottom:5px;font-size:13.5px}
html.ui-v330 .sidebar details.nav-section-card-v78 .nav-subtitle-v76{margin:9px 0 1px;padding:0 10px 0 29px;font-size:11.5px;font-weight:650;color:#7a889a;border:0}
html.ui-v330 .sidebar details.nav-section-card-v78 .nav-subtitle-v76:first-of-type{margin-top:4px}
html.ui-v330 .sidebar .st-empty-v352{display:none!important}
html.ui-v330 .sidebar .nav:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}

/* nessun risultato */
html.ui-v330 #navEmptyV352{margin:10px 6px;padding:12px;border:1px dashed var(--line);border-radius:8px;background:#fafbfd;color:var(--muted);font-size:13px;text-align:center}
html.ui-v330 #navEmptyV352[hidden]{display:none}

/* avviso breve (pressione lunga su telefono) */
#navToastV352{position:fixed;left:50%;top:calc(var(--tb-h,56px) + 12px);z-index:99;max-width:min(88vw,360px);padding:9px 14px;border-radius:8px;background:#14223a;color:#fff;font:600 13px/1.3 system-ui,sans-serif;transform:translate(-50%,-8px);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}
#navToastV352.show{opacity:1;transform:translate(-50%,0)}

/* telefono: aree di tocco piu' ampie */
@media (max-width:1050px){
  html.ui-v330 .sidebar,html.ui-v330 .sidebar.sidebar-v78{padding-top:0}
  html.ui-v330 .sidebar details.nav-section-card-v78 .nav:not([hidden]){min-height:40px;font-size:14.5px}
  html.ui-v330 .sidebar details.nav-section-card-v78>summary{min-height:44px!important}
  html.ui-v330 #navTopV352 #navFilterV330,html.ui-v330 #navTopV352 .nav-home-v78:not([hidden]){height:40px;min-height:40px}
  html.ui-v330 #navQuickV352 .nq-item{height:36px;line-height:36px;font-size:13.5px}
  html.ui-v330 #navStarV352{display:none}
}
@media print{#navToastV352,#navStarV352{display:none!important}}
