/* CONDIVIDO CORE CSS - estratto da includes/header.php
   Fase 2 ottimizzazione CSS globale.
   Ordine dei blocchi preservato per evitare modifiche UI. */


/* === HEADER INLINE STYLE BLOCK 1 === */
.cv-header{
  position:sticky!important;
  top:0!important;
  z-index:9999!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid #e5e7eb!important;
  box-shadow:0 4px 18px rgba(15,23,42,.05)!important;
  backdrop-filter:blur(12px)!important;
}

.cv-header *{
  box-sizing:border-box!important;
}
body.cv-theme-scuro{
  background:#0f172a!important;
  color:#e5e7eb!important;
}
body.cv-theme-scuro .cv-header{
  background:rgba(15,23,42,.98)!important;
  border-bottom-color:#334155!important;
}
body.cv-theme-scuro .cv-construction-banner{
  background:#3b1115!important;
  color:#fecdd3!important;
  border-bottom-color:#7f1d1d!important;
}
body.cv-theme-scuro .header-nav.cv-nav a,
body.cv-theme-scuro .header-nav.cv-nav summary,
body.cv-theme-scuro .cv-user-chip,
body.cv-theme-scuro .cv-more-panel,
html.cv-theme-scuro .header-nav.cv-nav a,
html.cv-theme-scuro .header-nav.cv-nav summary,
html.cv-theme-scuro .cv-user-chip,
html.cv-theme-scuro .cv-more-panel,
html.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav a,
html.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav summary,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-chip,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-more-panel,
body.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav a,
body.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav summary,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-chip,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-more-panel{
  background:#111827!important;
  color:#f8fafc!important;
  border-color:#475569!important;
}
body.cv-theme-scuro .cv-brand-title,
body.cv-theme-scuro .cv-brand-subtitle,
html.cv-theme-scuro .cv-brand-title,
html.cv-theme-scuro .cv-brand-subtitle,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-brand-title,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-brand-subtitle,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-brand-title,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-brand-subtitle{color:#f8fafc!important;}

.cv-construction-banner{
  width:100%!important;
  padding:7px 10px!important;
  background:#fff1f2!important;
  color:#b91c1c!important;
  border-bottom:1px solid #fecdd3!important;
  text-align:center!important;
  font-size:.90rem!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}

.cv-header-inner{
  max-width:1180px!important;
  margin:0 auto!important;
  padding:8px 10px 7px!important;
}

.cv-header-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:7px!important;
}

.cv-brand{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  text-decoration:none!important;
  color:#111827!important;
}

.cv-brand img{
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
  object-fit:cover!important;
  flex:0 0 auto!important;
  display:block!important;
}

.cv-brand-text{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}

.cv-brand-title{
  font-size:1.20rem!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
  color:#111827!important;
}

.cv-brand-subtitle{
  display:none!important;
  margin-top:2px!important;
  font-size:.70rem!important;
  color:#6b7280!important;
  font-weight:700!important;
}

.cv-user-area{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  max-width:min(62vw,520px)!important;
  min-width:0!important;
  flex:0 1 auto!important;
}

.cv-user-chip{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:30px!important;
  padding:4px 8px!important;
  border-radius:999px!important;
  background:#f3f4f6!important;
  border:1px solid #e5e7eb!important;
  color:#374151!important;
  font-size:.64rem!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  flex:1 1 auto!important;
}

.cv-user-name{
  --cv-user-name-slot:88px;
  width:var(--cv-user-name-slot)!important;
  max-width:var(--cv-user-name-slot)!important;
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
}
.cv-user-name .cv-user-name-inner{
  display:inline-block!important;
  min-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  vertical-align:bottom!important;
  will-change:transform!important;
}
.cv-user-name.cv-user-name--overflow:hover .cv-user-name-inner,
.cv-user-name.cv-user-name--overflow:focus .cv-user-name-inner,
.cv-user-chip:focus .cv-user-name.cv-user-name--overflow .cv-user-name-inner{
  animation:cvHeaderNameSlide 7s linear infinite!important;
  text-overflow:clip!important;
}
@keyframes cvHeaderNameSlide{
  0%,15%{transform:translateX(0)}
  85%,100%{transform:translateX(calc(-100% + var(--cv-user-name-slot)))}
}

.cv-user-name-link{
  color:inherit!important;
  text-decoration:none!important;
  display:inline-block!important;
}

.cv-user-name-link:hover{
  text-decoration:underline!important;
}

.cv-user-role{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  padding:2px 6px!important;
  border-radius:999px!important;
  border:1px solid #c7d2fe!important;
  background:#eef2ff!important;
  color:#3730a3!important;
  font-size:.54rem!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.03em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.cv-user-role--utente{
  background:#ecfdf5!important;
  border-color:#bbf7d0!important;
  color:#166534!important;
}
.cv-user-role--admin{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#be123c!important;
}
.cv-user-role--super_admin{
  background:#f5f3ff!important;
  border-color:#ddd6fe!important;
  color:#6d28d9!important;
}
body.cv-theme-scuro .cv-user-role,
html.cv-theme-scuro .cv-user-role,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role{
  background:#1e1b4b!important;
  border-color:#818cf8!important;
  color:#eef2ff!important;
}
body.cv-theme-scuro .cv-user-role--utente,
html.cv-theme-scuro .cv-user-role--utente,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role--utente,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role--utente{
  background:#052e1a!important;
  border-color:#22c55e!important;
  color:#dcfce7!important;
}
body.cv-theme-scuro .cv-user-role--admin,
html.cv-theme-scuro .cv-user-role--admin,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role--admin,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role--admin{
  background:#450a0a!important;
  border-color:#f87171!important;
  color:#fff1f2!important;
}
body.cv-theme-scuro .cv-user-role--super_admin,
html.cv-theme-scuro .cv-user-role--super_admin,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role--super_admin,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-role--super_admin{
  background:#2e1065!important;
  border-color:#c084fc!important;
  color:#faf5ff!important;
}
body.cv-theme-scuro .cv-user-name,
html.cv-theme-scuro .cv-user-name,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-name,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-name{
  color:#f8fafc!important;
}

.cv-user-credits{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#ecfdf5!important;
  border:1px solid #bbf7d0!important;
  color:#166534!important;
  font-weight:900!important;
  font-size:.76rem!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.cv-user-credits:hover{
  text-decoration:underline!important;
}
body.cv-theme-scuro .cv-user-credits,
html.cv-theme-scuro .cv-user-credits,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-credits,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-user-credits{
  background:#06281a!important;
  border-color:#22c55e!important;
  color:#dcfce7!important;
}

/* Compatibilità: il selettore resta header-nav, ma cambia sistema. */
.header-nav.cv-nav{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:5px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  align-items:stretch!important;
}

.header-nav.cv-nav a,
.header-nav.cv-nav summary{
  position:relative!important;
  min-width:0!important;
  min-height:34px!important;
  padding:5px 4px!important;
  border-radius:11px!important;
  border:1px solid #e5e7eb!important;
  background:#f9fafb!important;
  color:#1f2937!important;
  text-decoration:none!important;
  font-size:.60rem!important;
  font-weight:900!important;
  line-height:1.05!important;
  text-align:center!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  box-shadow:none!important;
  white-space:normal!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}

.header-nav.cv-nav a:hover,
.header-nav.cv-nav summary:hover{
  transform:none!important;
}

.header-nav.cv-nav a:active,
.header-nav.cv-nav summary:active{
  transform:scale(.98)!important;
}

.cv-main-action{
  background:#ecfdf5!important;
  border-color:#bbf7d0!important;
  color:#166534!important;
}

.header-nav.cv-nav a.cv-nav-active,
.header-nav.cv-nav summary.cv-nav-active,
.header-nav.cv-nav .cv-more-panel a.cv-nav-active{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
  box-shadow:inset 0 0 0 1px rgba(22,101,52,.10)!important;
}

.header-nav.cv-nav a.cv-nav-active.cv-publish-action{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}

.cv-publish-action{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#ffffff!important;
}

.cv-danger-action{
  background:#991b1b!important;
  border-color:#991b1b!important;
  color:#ffffff!important;
}

.cv-admin-action{
  background:#fff1f2!important;
  border-color:#fecdd3!important;
  color:#be123c!important;
}

.cv-more{
  position:relative!important;
  min-width:0!important;
}

.cv-more summary{
  list-style:none!important;
}

.cv-more summary::-webkit-details-marker{
  display:none!important;
}

.cv-more-panel{
  display:none!important;
  position:absolute!important;
  right:0!important;
  top:41px!important;
  width:min(94vw,360px)!important;
  padding:10px!important;
  border-radius:18px!important;
  border:1px solid #e5e7eb!important;
  background:#ffffff!important;
  box-shadow:0 18px 45px rgba(15,23,42,.18)!important;
  z-index:10000!important;
}

.cv-more[open] .cv-more-panel{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
}

.header-nav.cv-nav .cv-more-panel a{
  min-height:42px!important;
  padding:9px 10px!important;
  border-radius:13px!important;
  font-size:.76rem!important;
  justify-content:flex-start!important;
  text-align:left!important;
  background:#ffffff!important;
}

.cv-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:16px!important;
  height:16px!important;
  padding:0 4px!important;
  border-radius:999px!important;
  background:#dc2626!important;
  color:#ffffff!important;
  font-size:.54rem!important;
  font-weight:900!important;
  margin-left:1px!important;
}


.cv-more-badge{
  position:absolute!important;
  top:-5px!important;
  right:-5px!important;
  margin-left:0!important;
  z-index:2!important;
}

@media(max-width:991px){
  .header-nav.cv-nav a > .cv-badge,
  .header-nav.cv-nav summary > .cv-badge{
    position:absolute!important;
    top:-6px!important;
    right:-6px!important;
    margin-left:0!important;
    z-index:5!important;
    pointer-events:none!important;
  }

  .header-nav.cv-nav .cv-more-panel a > .cv-badge{
    top:-5px!important;
    right:-5px!important;
  }
}

.cv-more.cv-more-empty{
  display:none!important;
}

@media(max-width:640px){
  .cv-header-top{gap:6px!important;}
  .cv-brand{flex:0 1 auto!important;min-width:92px!important;}
  .cv-user-area{max-width:66vw!important;gap:4px!important;}
  .cv-user-chip{max-width:100%!important;min-width:0!important;gap:4px!important;}
  .cv-user-name{--cv-user-name-slot:clamp(46px,18vw,82px);width:var(--cv-user-name-slot)!important;max-width:var(--cv-user-name-slot)!important;}
  .cv-user-name .cv-user-name-inner{animation:none!important;text-overflow:ellipsis!important;}
  .cv-user-credits{font-size:.66rem!important;padding:4px 8px!important;flex:0 0 auto!important;}
  .cv-user-role{font-size:.48rem!important;padding:2px 5px!important;flex:0 0 auto!important;}
}

@media(max-width:390px){

  .cv-header-inner{
    padding:7px 8px 6px!important;
  }

  .header-nav.cv-nav{
    gap:4px!important;
  }

  .header-nav.cv-nav a,
  .header-nav.cv-nav summary{
    min-height:32px!important;
    font-size:.56rem!important;
    padding:4px 3px!important;
    border-radius:10px!important;
  }

  .cv-user-chip{
    max-width:58vw!important;
    font-size:.58rem!important;
    padding:4px 7px!important;
  }

  .cv-brand-title{
    font-size:1.02rem!important;
  }
}

@media(min-width:820px){
  .cv-header-inner{
    padding:12px 18px!important;
  }

  .cv-header-top{
    margin-bottom:10px!important;
  }

  .cv-brand img{
    width:52px!important;
    height:52px!important;
    border-radius:16px!important;
  }

  .cv-brand-title{
    font-size:1.38rem!important;
  }

  .cv-brand-subtitle{
    display:block!important;
  }

  .cv-user-chip{
    max-width:none!important;
    min-height:34px!important;
    font-size:.78rem!important;
    padding:6px 11px!important;
  }

  .cv-user-name{
    --cv-user-name-slot:190px;
    width:var(--cv-user-name-slot)!important;
    max-width:var(--cv-user-name-slot)!important;
  }

  .header-nav.cv-nav{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }

  .header-nav.cv-nav a,
  .header-nav.cv-nav summary{
    min-height:38px!important;
    padding:8px 13px!important;
    border-radius:999px!important;
    font-size:.82rem!important;
    white-space:nowrap!important;
  }

  .cv-more{
    display:contents!important;
  }

  .cv-more summary{
    display:none!important;
  }

  .cv-more-panel{
    position:static!important;
    display:flex!important;
    width:auto!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
    gap:8px!important;
  }

  .header-nav.cv-nav .cv-more-panel a{
    min-height:38px!important;
    padding:8px 13px!important;
    border-radius:999px!important;
    font-size:.82rem!important;
    justify-content:center!important;
    background:#f9fafb!important;
  }
}


/* V12: da tablet/web mostra tutti i tasti disponibili.
   Mobile stretto: resta il sistema compatto con "Altro".
   Da 641px in su: "Altro" sparisce e i link interni diventano normali pulsanti visibili. */
@media(min-width:641px){
  .header-nav.cv-nav{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
  }

  .header-nav.cv-nav a,
  .header-nav.cv-nav summary{
    min-height:36px!important;
    padding:7px 11px!important;
    border-radius:999px!important;
    font-size:.76rem!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  .cv-more{
    display:contents!important;
  }

  .cv-more summary{
    display:none!important;
  }

  .cv-more-panel{
    position:static!important;
    display:flex!important;
    flex-wrap:wrap!important;
    width:auto!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
    gap:7px!important;
  }

  .header-nav.cv-nav .cv-more-panel a{
    min-height:36px!important;
    padding:7px 11px!important;
    border-radius:999px!important;
    font-size:.76rem!important;
    justify-content:center!important;
    text-align:center!important;
    background:#f9fafb!important;
  }
}

@media(min-width:980px){
  .cv-header-inner{
    max-width:none!important;
    width:100%!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }

  .cv-header-top{
    margin-bottom:8px!important;
  }

  .header-nav.cv-nav{
    gap:8px!important;
  }

  .header-nav.cv-nav a,
  .header-nav.cv-nav summary,
  .header-nav.cv-nav .cv-more-panel a{
    min-height:38px!important;
    padding:8px 13px!important;
    font-size:.82rem!important;
  }
}

@media(min-width:1220px){
  .cv-header-inner{
    max-width:1380px!important;
    margin:0 auto!important;
  }

  .header-nav.cv-nav{
    flex-wrap:nowrap!important;
  }

  .cv-brand-subtitle{
    display:block!important;
  }
}








/* CONDIVIDO HEADER ADAPTIVE MOBILE RESTORED V55 */
.header-nav.cv-nav{
  width:100%!important;
}

.header-nav.cv-nav > .cv-nav-home{
  order:-9999!important;
}

.header-nav.cv-nav > .cv-more{
  order:9998!important;
}

.header-nav.cv-nav > .cv-nav-logout{
  order:9999!important;
}

/* Portrait mobile */
body.cv-nav-mode-portrait .header-nav.cv-nav{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:6px!important;
}

body.cv-nav-mode-portrait .header-nav.cv-nav > a,
body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more > summary{
  min-height:42px!important;
  padding:5px 3px!important;
  border-radius:12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  font-size:.53rem!important;
  line-height:1.05!important;
  white-space:normal!important;
  text-align:center!important;
}

/* Landscape mobile */
body.cv-nav-mode-landscape .header-nav.cv-nav{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:6px!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > a,
body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
  width:100%!important;
  min-height:40px!important;
  padding:5px 3px!important;
  border-radius:12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  font-size:.52rem!important;
  line-height:1.05!important;
  white-space:normal!important;
  text-align:center!important;
}

/* Web */
body.cv-nav-mode-web .header-nav.cv-nav{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
}

body.cv-nav-mode-web .header-nav.cv-nav > a,
body.cv-nav-mode-web .header-nav.cv-nav > .cv-more > summary{
  min-height:38px!important;
  padding:8px 13px!important;
  border-radius:999px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:.82rem!important;
  white-space:nowrap!important;
}

body.cv-nav-mode-web .cv-more.cv-more-empty{
  display:none!important;
}

.cv-more{
  position:relative!important;
}


/* CONDIVIDO LANDSCAPE SINGLE ROW V56 */
body.cv-nav-mode-landscape .header-nav.cv-nav{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  grid-auto-flow:column!important;
  grid-auto-rows:1fr!important;
  gap:5px!important;
  align-items:stretch!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > a,
body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
  min-height:38px!important;
  max-height:42px!important;
  padding:4px 2px!important;
  font-size:.50rem!important;
  line-height:1!important;
  overflow:hidden!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > a span,
body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary span{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}


/* CONDIVIDO LANDSCAPE WEB OGGETTI INLINE V57 */
body.cv-nav-mode-landscape .header-nav.cv-nav{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
}

body.cv-nav-mode-landscape .cv-nav-oggetti{
  display:flex!important;
}

body.cv-nav-mode-web .cv-nav-oggetti{
  display:flex!important;
}


/* CONDIVIDO ALTRO LANDSCAPE READABLE V58 */
body.cv-nav-mode-landscape .cv-more-panel{
  position:absolute!important;
  right:0!important;
  top:46px!important;
  width:min(96vw,520px)!important;
  max-height:calc(100vh - 70px)!important;
  overflow-y:auto!important;
  display:none!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  padding:10px!important;
  border-radius:18px!important;
  background:#ffffff!important;
  border:1px solid #e5e7eb!important;
  box-shadow:0 18px 45px rgba(15,23,42,.22)!important;
  z-index:10000!important;
}

body.cv-nav-mode-landscape .cv-more[open] .cv-more-panel{
  display:grid!important;
}

body.cv-nav-mode-landscape .cv-more-panel a{
  min-height:42px!important;
  padding:9px 10px!important;
  border-radius:13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  font-size:.76rem!important;
  line-height:1.15!important;
  white-space:normal!important;
  text-align:left!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

@media (max-height:430px) and (orientation:landscape){
  body.cv-nav-mode-landscape .cv-more-panel{
    top:42px!important;
    width:min(96vw,640px)!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    max-height:calc(100vh - 54px)!important;
  }

  body.cv-nav-mode-landscape .cv-more-panel a{
    min-height:38px!important;
    padding:7px 9px!important;
    font-size:.70rem!important;
  }
}


/* CONDIVIDO WEB SINGLE ROW AUTO V59 */

/* SOLO WEB */
body.cv-nav-mode-web .header-nav.cv-nav{
  display:flex!important;
  flex-wrap:nowrap!important;
  overflow:hidden!important;
  width:100%!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:flex-start!important;
}

body.cv-nav-mode-web .header-nav.cv-nav > a,
body.cv-nav-mode-web .header-nav.cv-nav > .cv-more > summary{
  flex:0 0 auto!important;
  min-width:max-content!important;
  min-height:38px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font-size:.78rem!important;
  line-height:1!important;
  white-space:nowrap!important;
}

body.cv-nav-mode-web .header-nav.cv-nav > a span,
body.cv-nav-mode-web .header-nav.cv-nav > .cv-more > summary span{
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}

body.cv-nav-mode-web .cv-more{
  flex:0 0 auto!important;
  margin-left:auto!important;
}

body.cv-nav-mode-web .cv-nav-logout{
  flex:0 0 auto!important;
  margin-left:0!important;
}

body.cv-nav-mode-web .cv-more.cv-more-empty + .cv-nav-logout{
  margin-left:auto!important;
}

/* Menu Altro web leggibile */
body.cv-nav-mode-web .cv-more-panel{
  position:absolute!important;
  right:0!important;
  top:46px!important;
  width:min(92vw,420px)!important;
  max-height:calc(100vh - 80px)!important;
  overflow-y:auto!important;
  display:none!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  padding:10px!important;
  border-radius:18px!important;
  background:#fff!important;
  border:1px solid #e5e7eb!important;
  box-shadow:0 18px 45px rgba(15,23,42,.20)!important;
  z-index:10000!important;
}

body.cv-nav-mode-web .cv-more[open] .cv-more-panel{
  display:grid!important;
}

body.cv-nav-mode-web .cv-more-panel a{
  min-height:40px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  font-size:.78rem!important;
  line-height:1.1!important;
  white-space:normal!important;
}


/* HEADER GUEST RIGHT ACTIONS V99 */
.cv-header-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
}

.cv-guest-actions-v99{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}

.cv-guest-actions-v99 a{
  min-height:36px!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  font-size:.78rem!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}

.cv-guest-actions-v99 .cv-login-btn{
  background:#ecfdf5!important;
  border:1px solid #bbf7d0!important;
  color:#166534!important;
  font-weight:900!important;
}

.cv-guest-actions-v99 .cv-register-btn{
  background:#16a34a!important;
  border:1px solid #16a34a!important;
  color:#fff!important;
  font-weight:900!important;
}

body.cv-guest-header-v99 .header-nav.cv-nav{
  display:none!important;
}

@media(max-width:420px){
  .cv-guest-actions-v99 a{
    padding:7px 9px!important;
    font-size:.72rem!important;
  }
}


/* HEADER GUEST RIGHT ACTIONS V100 */
.cv-guest-actions-v100{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

.cv-guest-actions-v100 a{
  min-height:36px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  font-size:.78rem!important;
  line-height:1!important;
  text-decoration:none!important;
  font-weight:900!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.cv-guest-actions-v100 .cv-login-btn{
  background:#ecfdf5!important;
  border:1px solid #bbf7d0!important;
  color:#166534!important;
}

.cv-guest-actions-v100 .cv-register-btn{
  background:#16a34a!important;
  border:1px solid #16a34a!important;
  color:#ffffff!important;
}

body.cv-guest-header-v100 .header-nav.cv-nav{
  display:none!important;
}

@media(max-width:430px){
  .cv-guest-actions-v100{
    gap:5px!important;
  }

  .cv-guest-actions-v100 a{
    min-height:34px!important;
    padding:7px 9px!important;
    font-size:.70rem!important;
  }

  .cv-brand-subtitle{
    display:none!important;
  }
}



/* CONDIVIDO WEB FULL-WIDTH HEADER V130 */
@media (min-width: 641px){
  .cv-header-inner,
  .header-condivido-inner{
    max-width:none!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:18px!important;
  }

  .cv-header-top{
    padding-left:0!important;
  }

  .cv-brand{
    margin-left:0!important;
    padding-left:8px!important;
  }

  body.cv-nav-mode-web .header-nav.cv-nav{
    padding-left:0!important;
    margin-left:0!important;
    justify-content:flex-start!important;
  }
}


/* CONDIVIDO WEB LEFT OFFSET + ACTIVE STATE FIX V131 */
@media (min-width: 992px){
  .cv-header-inner,
  .header-condivido-inner{
    max-width:none!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  body.cv-nav-mode-web .header-nav.cv-nav{
    justify-content:flex-start!important;
    padding-left:54px!important; /* spazio tecnico pari a una icona header */
    padding-right:18px!important;
    box-sizing:border-box!important;
  }
}

.header-nav.cv-nav a.cv-nav-active,
.header-nav.cv-nav summary.cv-nav-active,
.header-nav.cv-nav .cv-more-panel a.cv-nav-active,
body.cv-nav-mode-portrait .header-nav.cv-nav > a.cv-nav-active,
body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more > summary.cv-nav-active,
body.cv-nav-mode-landscape .header-nav.cv-nav > a.cv-nav-active,
body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary.cv-nav-active,
body.cv-nav-mode-web .header-nav.cv-nav > a.cv-nav-active,
body.cv-nav-mode-web .header-nav.cv-nav > .cv-more > summary.cv-nav-active,
body.cv-nav-mode-web .cv-more-panel a.cv-nav-active,
body.cv-nav-mode-landscape .cv-more-panel a.cv-nav-active{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
  box-shadow:inset 0 0 0 1px rgba(22,101,52,.14)!important;
}

.cv-more.cv-more-has-active > summary{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}


/* CONDIVIDO ALTRO CLICK FIX V132 */
.cv-header,
.header-condivido,
.cv-header-inner,
.header-condivido-inner,
.header-nav.cv-nav{
  overflow:visible!important;
}

.header-nav.cv-nav > .cv-more{
  position:relative!important;
  overflow:visible!important;
  z-index:10050!important;
}

.header-nav.cv-nav > .cv-more[open]{
  z-index:10080!important;
}

.header-nav.cv-nav > .cv-more[open] > .cv-more-panel{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

.header-nav.cv-nav > .cv-more > summary{
  user-select:none!important;
  -webkit-user-select:none!important;
}



/* CONDIVIDO THEME GLOBAL OVERRIDE V2
   Deve stare alla fine dello stile dell'header: sovrascrive i CSS locali delle singole pagine. */
body.cv-theme-scuro{
  --bg:#0f172a!important;
  --surface:#111827!important;
  --card:#111827!important;
  --text:#e5e7eb!important;
  --muted:#cbd5e1!important;
  --line:#334155!important;
  --primary:#e5e7eb!important;
  --green:#2f855a!important;
  --accent:#2f855a!important;
  --accent-light:#163225!important;
  background:#0f172a!important;
  color:#e5e7eb!important;
}
body.cv-theme-scuro main,
body.cv-theme-scuro .page,
body.cv-theme-scuro .content,
body.cv-theme-scuro .container{
  color:#e5e7eb!important;
}
body.cv-theme-scuro :is(
  .card,.panel,.box,.stat,.insight,.meta,.notice,.note,.message,.empty,
  .table-wrap,.wrap,.filters,.chat-view,.chat-line,.profile-card,.profile-panel,
  .settings-card,.notification-card,.time-slot-card,.orari-card,.fasce-card,
  .admin-actions-grid > div,.cv-more-panel,.zone-table td,
  table,thead,tbody,tr,td,th
){
  background:#111827!important;
  color:#e5e7eb!important;
  border-color:#334155!important;
  box-shadow:none!important;
}
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background:#fff"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background: #fff"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background:white"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background: white"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background:#fbfdfc"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background: #fbfdfc"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background:#f8"],
body.cv-theme-scuro :is(
  section,article,aside,div
)[style*="background: #f8"]{
  background:#111827!important;
  color:#e5e7eb!important;
  border-color:#334155!important;
}
body.cv-theme-scuro :is(h1,h2,h3,h4,h5,h6,strong,label,legend,.title,.section-title){
  color:#f8fafc!important;
}
body.cv-theme-scuro :is(p,span,small,li,td,th,div,.muted,.small,.meta,.note){
  border-color:#334155!important;
}
body.cv-theme-scuro :is(.muted,.small,.meta,small,.subtitle,.description,.hint-text,.help-text){
  color:#cbd5e1!important;
}
body.cv-theme-scuro :is(input,select,textarea){
  background:#0f172a!important;
  color:#e5e7eb!important;
  border-color:#475569!important;
}
body.cv-theme-scuro :is(input,select,textarea)::placeholder{
  color:#94a3b8!important;
}
body.cv-theme-scuro :is(.badge,.tag,.chip):not(.cv-badge){
  background:#1e293b!important;
  color:#e5e7eb!important;
  border-color:#334155!important;
}
body.cv-theme-scuro :is(.btn,.button,button,a.btn){
  border-color:#334155!important;
}
body.cv-theme-scuro :is(.btn-light,.secondary,.btn-secondary){
  background:#1e293b!important;
  color:#e5e7eb!important;
}
body.cv-theme-scuro :is(.success,.ok,.msg-ok){
  background:#052e1a!important;
  color:#bbf7d0!important;
  border-color:#166534!important;
}
body.cv-theme-scuro :is(.error,.err,.danger,.msg-error){
  background:#450a0a!important;
  color:#fecaca!important;
  border-color:#991b1b!important;
}
body.cv-theme-scuro :is(.warning,.warn){
  background:#451a03!important;
  color:#fed7aa!important;
  border-color:#9a3412!important;
}
body.cv-theme-scuro .cv-more-panel{
  background:#111827!important;
  border-color:#334155!important;
  box-shadow:0 18px 45px rgba(0,0,0,.45)!important;
}
body.cv-theme-scuro .cv-more-panel a{
  background:#0f172a!important;
  color:#e5e7eb!important;
  border-color:#334155!important;
}
body.cv-theme-scuro .leaflet-container,
body.cv-theme-scuro .map,
body.cv-theme-scuro #districtMap{
  background:#0f172a!important;
  border-color:#334155!important;
}



/* CONDIVIDO DARK THEME FINAL HARD OVERRIDE
   Ultimo livello: corregge i box definiti con CSS locale o variabili pagina. */
body.cv-theme-scuro{
  --bg:#0f172a!important;
  --surface:#111827!important;
  --card:#111827!important;
  --panel:#111827!important;
  --box:#111827!important;
  --text:#f8fafc!important;
  --muted:#cbd5e1!important;
  --line:#334155!important;
  --border:#334155!important;
  --primary:#2f855a!important;
  --accent:#2f855a!important;
  background:#0f172a!important;
  color:#f8fafc!important;
}
body.cv-theme-scuro main,
body.cv-theme-scuro .main,
body.cv-theme-scuro .page,
body.cv-theme-scuro .content,
body.cv-theme-scuro .container,
body.cv-theme-scuro .wrap-page{
  background:#0f172a!important;
  color:#f8fafc!important;
}
body.cv-theme-scuro :is(
  .card,.panel,.box,.section,.section-box,.widget,.tile,.stat,.stats-card,.stat-card,
  .quick-card,.insight,.request-card,.object-card,.user-card,.result-card,.profile-card,
  .profile-panel,.admin-card,.admin-panel,.permissions-card,.special-feature-card,
  .settings-card,.notification-card,.time-slot-card,.orari-card,.fasce-card,.preference-card,
  .table-wrap,.filters,.search-box,.search-panel,.list-box,.list-card,.empty,.notice,.note,.message,
  .chat-view,.chat-line,.meta-card,.diff-table-v117 tr,.cv-dark-surface
){
  background:#111827!important;
  background-color:#111827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
  box-shadow:none!important;
}
body.cv-theme-scuro :is(
  [class*="card"],[class*="Card"],[class*="panel"],[class*="Panel"],
  [class*="box"],[class*="Box"],[class*="tile"],[class*="Tile"],
  [class*="stat"],[class*="Stat"],[class*="item"],[class*="Item"]
):not(.cv-header):not(.cv-header *):not(.cv-more-panel):not(.cv-more-panel *):not(.btn):not(.button):not(button):not(a){
  border-color:#334155!important;
}
body.cv-theme-scuro :is(
  .card,.panel,.box,.section,.widget,.tile,.stat,.stats-card,.stat-card,
  .request-card,.object-card,.user-card,.result-card,.profile-card,.admin-card,
  .permissions-card,.settings-card,.time-slot-card,.orari-card,.fasce-card,.preference-card,
  .table-wrap,.filters,.search-box,.search-panel,.list-box,.empty,.notice,.note,.message,
  .chat-view,.chat-line,.meta-card,.special-feature-card,.cv-dark-surface,
  [class*="card"],[class*="Card"],[class*="panel"],[class*="Panel"],[class*="box"],[class*="Box"]
) :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,p,span,small,li,td,th,div){
  color:inherit!important;
  border-color:#334155!important;
}
body.cv-theme-scuro :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,.title,.section-title,.card-title){color:#f8fafc!important;}
body.cv-theme-scuro :is(p,span,small,li,td,th,div,.muted,.small,.meta,.note,.subtitle,.description,.hint-text,.help-text){border-color:#334155!important;}
body.cv-theme-scuro :is(.muted,.small,.meta,small,.subtitle,.description,.hint-text,.help-text){color:#cbd5e1!important;}
body.cv-theme-scuro :is(input,select,textarea){background:#0f172a!important;color:#f8fafc!important;border-color:#475569!important;}
body.cv-theme-scuro :is(input,select,textarea)::placeholder{color:#94a3b8!important;opacity:1!important;}
body.cv-theme-scuro :is(table,thead,tbody,tr,td,th){background:#111827!important;color:#f8fafc!important;border-color:#334155!important;}
body.cv-theme-scuro :is(.badge,.tag,.chip):not(.cv-badge){background:#1e293b!important;color:#f8fafc!important;border-color:#334155!important;}
body.cv-theme-scuro :is(.btn-light,.secondary,.btn-secondary,.filter-btn):not(.active){background:#1e293b!important;color:#f8fafc!important;border-color:#334155!important;}
body.cv-theme-scuro .cv-more-panel{background:#111827!important;border-color:#334155!important;box-shadow:0 18px 45px rgba(0,0,0,.45)!important;}
body.cv-theme-scuro .cv-more-panel a{background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important;}
body.cv-theme-scuro .cv-theme-force-dark{background:#111827!important;background-color:#111827!important;color:#f8fafc!important;border-color:#334155!important;}
body.cv-theme-scuro .cv-theme-force-dark :is(h1,h2,h3,h4,h5,h6,strong,b,label,legend,p,span,small,li,td,th,div){color:inherit!important;}



/* CONDIVIDO DARK THEME TARGETED FIXES - movimenti/home/status */
body.cv-theme-scuro .step,
body.cv-theme-scuro .steps .step{
  background:#111827!important;
  background-color:#111827!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
body.cv-theme-scuro .step .step-num,
body.cv-theme-scuro .steps .step-num,
body.cv-theme-scuro .step-num{
  background:#dff7ea!important;
  background-color:#dff7ea!important;
  color:#14532d!important;
  border:1px solid #bbf7d0!important;
  text-shadow:none!important;
}
body.cv-theme-scuro .badge-status.badge-approved,
body.cv-theme-scuro .badge.badge-approved,
body.cv-theme-scuro span.badge-approved{
  background:#14532d!important;
  color:#dcfce7!important;
  border-color:#22c55e!important;
}
body.cv-theme-scuro .badge-status.badge-completed,
body.cv-theme-scuro .badge.badge-completed,
body.cv-theme-scuro span.badge-completed{
  background:#1e3a8a!important;
  color:#dbeafe!important;
  border-color:#3b82f6!important;
}
body.cv-theme-scuro .badge-status.badge-pending,
body.cv-theme-scuro .badge.badge-pending,
body.cv-theme-scuro span.badge-pending{
  background:#78350f!important;
  color:#ffedd5!important;
  border-color:#f59e0b!important;
}
body.cv-theme-scuro .badge-status.badge-rejected,
body.cv-theme-scuro .badge.badge-rejected,
body.cv-theme-scuro span.badge-rejected{
  background:#7f1d1d!important;
  color:#fee2e2!important;
  border-color:#ef4444!important;
}
body.cv-theme-scuro .badge-status.badge-neutral,
body.cv-theme-scuro .badge.badge-neutral,
body.cv-theme-scuro span.badge-neutral{
  background:#1e293b!important;
  color:#e5e7eb!important;
  border-color:#475569!important;
}


html.cv-theme-scuro,
html.cv-theme-sistema.cv-theme-resolved-scuro{
  background:#0f172a!important;
  color:#f8fafc!important;
  color-scheme:dark;
}
html.cv-theme-chiaro,
html.cv-theme-sistema.cv-theme-resolved-chiaro{
  background:#f6f8f7!important;
  color:#1f2937!important;
  color-scheme:light;
}
body.cv-theme-sistema.cv-theme-resolved-scuro{
  background:#0f172a!important;
  color:#f8fafc!important;
  color-scheme:dark;
}
body.cv-theme-sistema.cv-theme-resolved-chiaro{
  color-scheme:light;
}

/* CONDIVIDO HEADER ROLE FIX V101
   Regole finali mirate: ruolo sempre leggibile e colori funzionali.
   UTENTE = verde. ADMIN/SUPER ADMIN = rosso.
   Il nome scorre solo quando il testo supera lo spazio disponibile. */
.cv-user-chip{
  min-width:0!important;
  overflow:hidden!important;
}

.cv-user-name{
  width:auto!important;
  max-width:min(220px,34vw)!important;
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}

.cv-user-name .cv-user-name-inner{
  max-width:none!important;
  animation:none!important;
  text-overflow:ellipsis!important;
}

.cv-user-name.cv-user-name--overflow .cv-user-name-inner{
  text-overflow:clip!important;
}

.cv-user-role,
.cv-user-role--utente,
.cv-user-role--admin,
.cv-user-role--super_admin{
  color-scheme:light!important;
  opacity:1!important;
  text-shadow:none!important;
  box-shadow:none!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
  border-width:1px!important;
  border-style:solid!important;
}

.cv-user-role--utente{
  background:#dcfce7!important;
  background-color:#dcfce7!important;
  color:#14532d!important;
  border-color:#22c55e!important;
}

.cv-user-role--admin,
.cv-user-role--super_admin{
  background:#fee2e2!important;
  background-color:#fee2e2!important;
  color:#991b1b!important;
  border-color:#ef4444!important;
}

html.cv-theme-scuro .cv-header .cv-user-role--utente,
body.cv-theme-scuro .cv-header .cv-user-role--utente,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--utente,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--utente,
.cv-header .cv-user-role--utente{
  background:#dcfce7!important;
  background-color:#dcfce7!important;
  color:#14532d!important;
  border-color:#22c55e!important;
}

html.cv-theme-scuro .cv-header .cv-user-role--admin,
body.cv-theme-scuro .cv-header .cv-user-role--admin,
html.cv-theme-scuro .cv-header .cv-user-role--super_admin,
body.cv-theme-scuro .cv-header .cv-user-role--super_admin,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--admin,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--admin,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--super_admin,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--super_admin,
.cv-header .cv-user-role--admin,
.cv-header .cv-user-role--super_admin{
  background:#fee2e2!important;
  background-color:#fee2e2!important;
  color:#991b1b!important;
  border-color:#ef4444!important;
}

@media(max-width:767px){
  .cv-user-area{
    min-width:0!important;
    max-width:68vw!important;
  }

  .cv-user-chip{
    min-width:0!important;
    flex:1 1 auto!important;
  }

  .cv-user-name{
    max-width:none!important;
    flex:1 1 auto!important;
  }

  .cv-user-name.cv-user-name--overflow .cv-user-name-inner{
    animation:cvHeaderNameSlide 8s linear infinite!important;
  }
}

@media(min-width:768px){
  .cv-user-name.cv-user-name--overflow:hover .cv-user-name-inner,
  .cv-user-name.cv-user-name--overflow:focus .cv-user-name-inner,
  .cv-user-chip:focus .cv-user-name.cv-user-name--overflow .cv-user-name-inner{
    animation:cvHeaderNameSlide 7s linear infinite!important;
  }
}


/* CONDIVIDO HEADER ROLE FIX V102 - finale
   Corregge la causa reale: .cv-user-name-link sovrascriveva display:flex di .cv-user-chip.
   Ruolo sempre leggibile: UTENTE verde, ADMIN/SUPER ADMIN rosso.
   Nome mobile: scorre solo se il testo supera davvero lo spazio disponibile. */
.cv-header .cv-user-area{
  min-width:0!important;
}

.cv-header .cv-user-chip.cv-user-name-link{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  overflow:hidden!important;
  text-decoration:none!important;
}

.cv-header .cv-user-chip.cv-user-name-link:hover{
  text-decoration:none!important;
}

.cv-header .cv-user-name{
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  flex:1 1 auto!important;
}

.cv-header .cv-user-name .cv-user-name-inner{
  display:inline-block!important;
  max-width:none!important;
  animation:none!important;
  transform:translateX(0)!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

.cv-header .cv-user-name.cv-user-name--overflow .cv-user-name-inner{
  text-overflow:clip!important;
}

.cv-header .cv-user-role{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
  opacity:1!important;
  visibility:visible!important;
  min-width:max-content!important;
  padding:3px 7px!important;
  border-radius:999px!important;
  border:1px solid transparent!important;
  font-size:.56rem!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
  text-shadow:none!important;
  box-shadow:none!important;
  color-scheme:light!important;
}

.cv-header .cv-user-role--utente,
html.cv-theme-scuro .cv-header .cv-user-role--utente,
body.cv-theme-scuro .cv-header .cv-user-role--utente,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--utente,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--utente{
  background:#15803d!important;
  background-color:#15803d!important;
  border-color:#22c55e!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

.cv-header .cv-user-role--admin,
.cv-header .cv-user-role--super_admin,
html.cv-theme-scuro .cv-header .cv-user-role--admin,
body.cv-theme-scuro .cv-header .cv-user-role--admin,
html.cv-theme-scuro .cv-header .cv-user-role--super_admin,
body.cv-theme-scuro .cv-header .cv-user-role--super_admin,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--admin,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--admin,
html.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--super_admin,
body.cv-theme-sistema.cv-theme-resolved-scuro .cv-header .cv-user-role--super_admin{
  background:#dc2626!important;
  background-color:#dc2626!important;
  border-color:#f87171!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}

@media(max-width:767px){
  .cv-header .cv-user-area{
    max-width:68vw!important;
  }

  .cv-header .cv-user-chip.cv-user-name-link{
    flex:1 1 auto!important;
  }

  .cv-header .cv-user-name{
    max-width:none!important;
  }

  .cv-header .cv-user-name.cv-user-name--overflow .cv-user-name-inner{
    animation:cvHeaderNameSlide 8s linear infinite!important;
  }
}

@media(min-width:768px){
  .cv-header .cv-user-name{
    max-width:220px!important;
  }

  .cv-header .cv-user-name.cv-user-name--overflow:hover .cv-user-name-inner,
  .cv-header .cv-user-chip:focus .cv-user-name.cv-user-name--overflow .cv-user-name-inner{
    animation:cvHeaderNameSlide 7s linear infinite!important;
  }
}





/* CONDIVIDO ALTRO MOBILE RIGHT PANEL V178 - FIX DEFINITIVO
   Il pannello ALTRO mobile viene agganciato al viewport, lato destro.
   Non dipende più dalla posizione del pulsante ALTRO nella griglia.
   Non modifica l'allineamento interno dei pulsanti. */
@media (max-width: 991px){
  .cv-header,
  .header-condivido,
  .cv-header-inner,
  .header-condivido-inner,
  .header-nav.cv-nav{
    overflow:visible!important;
  }

  .cv-header .header-nav.cv-nav > .cv-more{
    position:static!important;
    overflow:visible!important;
  }

  .cv-header .header-nav.cv-nav > .cv-more > .cv-more-panel{
    position:fixed!important;
    left:auto!important;
    right:10px!important;
    top:var(--cv-more-panel-top, 122px)!important;
    transform:none!important;
    margin:0!important;
    width:min(94vw,360px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100vh - var(--cv-more-panel-top, 122px) - 12px)!important;
    overflow-y:auto!important;
    z-index:10080!important;
  }

  .cv-header .header-nav.cv-nav > .cv-more[open] > .cv-more-panel{
    display:grid!important;
  }
}

/* CONDIVIDO FIDUCIA DIRECT BUTTON FIX V214 */
.header-nav.cv-nav > .cv-nav-fiducia{
  display:flex!important;
}

body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-nav-fiducia,
body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-nav-fiducia,
body.cv-nav-mode-web .header-nav.cv-nav > .cv-nav-fiducia{
  display:flex!important;
}



/* CONDIVIDO LANDSCAPE MOBILE ALTRO + BADGE FIX V215 */
body.cv-nav-mode-landscape .header-nav.cv-nav{
  grid-auto-columns:minmax(0,1fr)!important;
  overflow:visible!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > a{
  overflow:visible!important;
}

body.cv-nav-mode-landscape .header-nav.cv-nav > a > .cv-badge,
body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary > .cv-badge{
  position:absolute!important;
  top:-7px!important;
  right:-7px!important;
  z-index:30!important;
  margin:0!important;
  pointer-events:none!important;
}

/* === HEADER INLINE STYLE BLOCK 2 === */
.cv-construction-banner{animation:cvConstructionBlink 1.05s ease-in-out infinite!important;}
@keyframes cvConstructionBlink{0%,100%{opacity:1}50%{opacity:.25}}
.cv-confirm-overlay{position:fixed;inset:0;z-index:99999;background:rgba(15,23,42,.48);display:none;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(6px)}
.cv-confirm-overlay.is-open{display:flex}.cv-confirm-box{width:min(420px,100%);background:var(--cv-card,#fff);color:var(--cv-text,#102033);border:1px solid var(--cv-line,#e5e7eb);border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.25);padding:22px}.cv-confirm-box h3{margin:0 0 8px;font-size:1.25rem}.cv-confirm-box p{margin:0 0 18px;color:var(--cv-muted,#64748b)}.cv-confirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.cv-confirm-actions a,.cv-confirm-actions button{border:0;border-radius:999px;padding:12px 16px;font-weight:900;text-decoration:none;cursor:pointer}.cv-confirm-cancel{background:#eef2f7;color:#0f172a}.cv-confirm-exit{background:#dc2626;color:white}.cv-loading-overlay{position:fixed;inset:0;z-index:99998;display:none;align-items:center;justify-content:center;background:rgba(15,23,42,.35);backdrop-filter:blur(4px)}.cv-loading-overlay.is-open{display:flex}.cv-loading-card{background:var(--cv-card,#fff);color:var(--cv-text,#0f172a);border:1px solid var(--cv-line,#e5e7eb);border-radius:22px;padding:18px 22px;font-weight:900;box-shadow:0 18px 50px rgba(0,0,0,.2);display:flex;align-items:center;gap:12px}.cv-spinner{width:24px;height:24px;border-radius:50%;background:conic-gradient(#0f172a 0deg,#475569 95deg,#cbd5e1 190deg,#f8fafc 285deg,#0f172a 360deg);animation:cvSpin .75s linear infinite;position:relative;box-shadow:0 0 0 1px rgba(15,23,42,.12)}.cv-spinner::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--cv-card,#fff)}.cv-loading-text{white-space:nowrap}.cv-loading-dots{display:inline-flex;gap:3px;min-width:22px;margin-left:-7px}.cv-loading-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.25;animation:cvDotsChase .9s ease-in-out infinite}.cv-loading-dots i:nth-child(2){animation-delay:.15s}.cv-loading-dots i:nth-child(3){animation-delay:.30s}@keyframes cvDotsChase{0%,80%,100%{opacity:.25;transform:translateY(0) scale(.8)}40%{opacity:1;transform:translateY(-3px) scale(1)}}@keyframes cvSpin{to{transform:rotate(360deg)}}
.cv-pull-refresh{position:fixed;top:8px;left:50%;transform:translateX(-50%) translateY(-80px);z-index:99997;background:var(--cv-card,#fff);color:var(--cv-text,#0f172a);border:1px solid var(--cv-line,#e5e7eb);border-radius:999px;padding:10px 14px;font-weight:900;box-shadow:0 12px 30px rgba(0,0,0,.16);transition:transform .18s ease}.cv-pull-refresh.show{transform:translateX(-50%) translateY(0)}

/* CONDIVIDO UI COERENZA V172 - tab, card e tabelle mobile */
.notification-page-tabs,
.requests-page-tabs,
.prestiti-page-tabs,
.tabs-ricerca,
.cv-trust-tabs,
.profile-tabs-nav{
  gap:8px!important;
  border-bottom:1px solid #22c55e!important;
}

.notification-page-tabs a,
.requests-page-tabs a,
.prestiti-page-tabs a,
.tabs-ricerca .tab-btn,
.cv-trust-tabs a,
.cv-trust-tab,
.profile-tab-button{
  min-height:44px!important;
  height:44px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:4px 8px!important;
  border-radius:10px 10px 0 0!important;
  font-weight:950!important;
  line-height:1!important;
}

.notification-page-tabs a.active,
.requests-page-tabs a.active,
.prestiti-page-tabs a.active,
.tabs-ricerca .tab-btn.active,
.cv-trust-tabs a.active,
.cv-trust-tab.active,
.profile-tab-button.is-active{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
  box-shadow:0 14px 30px rgba(22,163,74,.22)!important;
}

.notification-read-tabs a,
.requests-state-tabs a,
.prestiti-role-tabs a,
.filter-tabs a{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  font-weight:900!important;
}

@media(max-width:640px){
  .notification-page-tabs a,
  .requests-page-tabs a,
  .prestiti-page-tabs a,
  .tabs-ricerca .tab-btn,
  .cv-trust-tabs a,
  .cv-trust-tab,
  .profile-tab-button{
    min-height:42px!important;
    height:42px!important;
    font-size:.9rem!important;
  }
}




/* CONDIVIDO V442 - tab pieni sempre orizzontali con scroll interno */
html.cv-tab-style-segmenti .notification-page-tabs,
html.cv-tab-style-segmenti .requests-page-tabs,
html.cv-tab-style-segmenti .prestiti-page-tabs,
html.cv-tab-style-segmenti .tabs-ricerca,
html.cv-tab-style-segmenti .cv-trust-tabs,
html.cv-tab-style-segmenti .profile-tabs-nav,
html.cv-tab-style-segmenti .notification-read-tabs,
html.cv-tab-style-segmenti .requests-state-tabs,
html.cv-tab-style-segmenti .prestiti-role-tabs,
html.cv-tab-style-segmenti .filter-tabs,
body.cv-tab-style-segmenti .notification-page-tabs,
body.cv-tab-style-segmenti .requests-page-tabs,
body.cv-tab-style-segmenti .prestiti-page-tabs,
body.cv-tab-style-segmenti .tabs-ricerca,
body.cv-tab-style-segmenti .cv-trust-tabs,
body.cv-tab-style-segmenti .profile-tabs-nav,
body.cv-tab-style-segmenti .notification-read-tabs,
body.cv-tab-style-segmenti .requests-state-tabs,
body.cv-tab-style-segmenti .prestiti-role-tabs,
body.cv-tab-style-segmenti .filter-tabs{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
  max-width:100%!important;
}
html.cv-tab-style-segmenti .notification-page-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .requests-page-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .prestiti-page-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .tabs-ricerca::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-trust-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .profile-tabs-nav::-webkit-scrollbar,
html.cv-tab-style-segmenti .notification-read-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .requests-state-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .prestiti-role-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .filter-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .notification-page-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .requests-page-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .prestiti-page-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .tabs-ricerca::-webkit-scrollbar,
body.cv-tab-style-segmenti .cv-trust-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .profile-tabs-nav::-webkit-scrollbar,
body.cv-tab-style-segmenti .notification-read-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .requests-state-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .prestiti-role-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .filter-tabs::-webkit-scrollbar{display:none!important}
html.cv-tab-style-segmenti .notification-page-tabs a,
html.cv-tab-style-segmenti .requests-page-tabs a,
html.cv-tab-style-segmenti .prestiti-page-tabs a,
html.cv-tab-style-segmenti .tabs-ricerca .tab-btn,
html.cv-tab-style-segmenti .cv-trust-tabs a,
html.cv-tab-style-segmenti .cv-trust-tab,
html.cv-tab-style-segmenti .profile-tab-button,
html.cv-tab-style-segmenti .notification-read-tabs a,
html.cv-tab-style-segmenti .requests-state-tabs a,
html.cv-tab-style-segmenti .prestiti-role-tabs a,
html.cv-tab-style-segmenti .filter-tabs a,
body.cv-tab-style-segmenti .notification-page-tabs a,
body.cv-tab-style-segmenti .requests-page-tabs a,
body.cv-tab-style-segmenti .prestiti-page-tabs a,
body.cv-tab-style-segmenti .tabs-ricerca .tab-btn,
body.cv-tab-style-segmenti .cv-trust-tabs a,
body.cv-tab-style-segmenti .cv-trust-tab,
body.cv-tab-style-segmenti .profile-tab-button,
body.cv-tab-style-segmenti .notification-read-tabs a,
body.cv-tab-style-segmenti .requests-state-tabs a,
body.cv-tab-style-segmenti .prestiti-role-tabs a,
body.cv-tab-style-segmenti .filter-tabs a{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  width:auto!important;
  max-width:none!important;
}
@media (min-width:761px){
  html.cv-tab-style-segmenti .notification-page-tabs a,
  html.cv-tab-style-segmenti .requests-page-tabs a,
  html.cv-tab-style-segmenti .prestiti-page-tabs a,
  html.cv-tab-style-segmenti .tabs-ricerca .tab-btn,
  html.cv-tab-style-segmenti .cv-trust-tabs a,
  html.cv-tab-style-segmenti .cv-trust-tab,
  html.cv-tab-style-segmenti .profile-tab-button,
  body.cv-tab-style-segmenti .notification-page-tabs a,
  body.cv-tab-style-segmenti .requests-page-tabs a,
  body.cv-tab-style-segmenti .prestiti-page-tabs a,
  body.cv-tab-style-segmenti .tabs-ricerca .tab-btn,
  body.cv-tab-style-segmenti .cv-trust-tabs a,
  body.cv-tab-style-segmenti .cv-trust-tab,
  body.cv-tab-style-segmenti .profile-tab-button{
    min-height:38px!important;
    height:38px!important;
    padding:3px 12px!important;
    font-size:.94rem!important;
    line-height:1!important;
  }
}

/* Preferenza profilo TAB: "pieno" (segmenti) oppure "sottolineato" (linea).
   Le regole sono centralizzate qui per tutte le pagine che includono l'header. */
html.cv-tab-style-linea .notification-page-tabs,
html.cv-tab-style-linea .requests-page-tabs,
html.cv-tab-style-linea .prestiti-page-tabs,
html.cv-tab-style-linea .tabs-ricerca,
html.cv-tab-style-linea .cv-trust-tabs,
html.cv-tab-style-linea .profile-tabs-nav,
html.cv-tab-style-linea .notification-read-tabs,
html.cv-tab-style-linea .requests-state-tabs,
html.cv-tab-style-linea .prestiti-role-tabs,
html.cv-tab-style-linea .filter-tabs,
body.cv-tab-style-linea .notification-page-tabs,
body.cv-tab-style-linea .requests-page-tabs,
body.cv-tab-style-linea .prestiti-page-tabs,
body.cv-tab-style-linea .tabs-ricerca,
body.cv-tab-style-linea .cv-trust-tabs,
body.cv-tab-style-linea .profile-tabs-nav{
  display:flex!important;
  gap:0!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
  border-bottom:1px solid var(--cv-line,#dbe4dd)!important;
  scrollbar-width:none!important;
}
html.cv-tab-style-linea .notification-page-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .requests-page-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .prestiti-page-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .tabs-ricerca::-webkit-scrollbar,
html.cv-tab-style-linea .cv-trust-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .profile-tabs-nav::-webkit-scrollbar,
html.cv-tab-style-linea .notification-read-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .requests-state-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .prestiti-role-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .filter-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .notification-page-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .requests-page-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .prestiti-page-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .tabs-ricerca::-webkit-scrollbar,
body.cv-tab-style-linea .cv-trust-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .profile-tabs-nav::-webkit-scrollbar{display:none!important}
html.cv-tab-style-linea .notification-page-tabs a,
html.cv-tab-style-linea .requests-page-tabs a,
html.cv-tab-style-linea .prestiti-page-tabs a,
html.cv-tab-style-linea .tabs-ricerca .tab-btn,
html.cv-tab-style-linea .cv-trust-tabs a,
html.cv-tab-style-linea .cv-trust-tab,
html.cv-tab-style-linea .profile-tab-button,
html.cv-tab-style-linea .notification-read-tabs a,
html.cv-tab-style-linea .requests-state-tabs a,
html.cv-tab-style-linea .prestiti-role-tabs a,
html.cv-tab-style-linea .filter-tabs a,
body.cv-tab-style-linea .notification-page-tabs a,
body.cv-tab-style-linea .requests-page-tabs a,
body.cv-tab-style-linea .prestiti-page-tabs a,
body.cv-tab-style-linea .tabs-ricerca .tab-btn,
body.cv-tab-style-linea .cv-trust-tabs a,
body.cv-tab-style-linea .cv-trust-tab,
body.cv-tab-style-linea .profile-tab-button{
  flex:0 0 auto!important;
  min-height:44px!important;
  height:44px!important;
  padding:0 16px 8px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--cv-muted,#64748b)!important;
  box-shadow:none!important;
}
html.cv-tab-style-linea .notification-page-tabs a.active,
html.cv-tab-style-linea .requests-page-tabs a.active,
html.cv-tab-style-linea .prestiti-page-tabs a.active,
html.cv-tab-style-linea .tabs-ricerca .tab-btn.active,
html.cv-tab-style-linea .cv-trust-tabs a.active,
html.cv-tab-style-linea .cv-trust-tab.active,
html.cv-tab-style-linea .profile-tab-button.is-active,
html.cv-tab-style-linea .notification-read-tabs a.active,
html.cv-tab-style-linea .requests-state-tabs a.active,
html.cv-tab-style-linea .prestiti-role-tabs a.active,
html.cv-tab-style-linea .filter-tabs a.active,
body.cv-tab-style-linea .notification-page-tabs a.active,
body.cv-tab-style-linea .requests-page-tabs a.active,
body.cv-tab-style-linea .prestiti-page-tabs a.active,
body.cv-tab-style-linea .tabs-ricerca .tab-btn.active,
body.cv-tab-style-linea .cv-trust-tabs a.active,
body.cv-tab-style-linea .cv-trust-tab.active,
body.cv-tab-style-linea .profile-tab-button.is-active{
  background:transparent!important;
  color:var(--cv-green-dark,#166534)!important;
  border-color:var(--cv-green,#16a34a)!important;
  box-shadow:none!important;
}
html.cv-theme-scuro.cv-tab-style-linea .notification-page-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .requests-page-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-page-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .tabs-ricerca .tab-btn,
html.cv-theme-scuro.cv-tab-style-linea .cv-trust-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .cv-trust-tab,
html.cv-theme-scuro.cv-tab-style-linea .profile-tab-button,
html.cv-theme-scuro.cv-tab-style-linea .notification-read-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .requests-state-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-role-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .filter-tabs a,
body.cv-theme-scuro.cv-tab-style-linea .notification-page-tabs a,
body.cv-theme-scuro.cv-tab-style-linea .requests-page-tabs a,
body.cv-theme-scuro.cv-tab-style-linea .prestiti-page-tabs a,
body.cv-theme-scuro.cv-tab-style-linea .tabs-ricerca .tab-btn,
body.cv-theme-scuro.cv-tab-style-linea .cv-trust-tabs a,
body.cv-theme-scuro.cv-tab-style-linea .cv-trust-tab,
body.cv-theme-scuro.cv-tab-style-linea .profile-tab-button{
  background:transparent!important;
  color:#94a3b8!important;
  border-color:transparent!important;
}
html.cv-theme-scuro.cv-tab-style-linea .notification-page-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .requests-page-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-page-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .tabs-ricerca .tab-btn.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-trust-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-trust-tab.active,
html.cv-theme-scuro.cv-tab-style-linea .profile-tab-button.is-active,
html.cv-theme-scuro.cv-tab-style-linea .notification-read-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .requests-state-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-role-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .filter-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .notification-page-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .requests-page-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .prestiti-page-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .tabs-ricerca .tab-btn.active,
body.cv-theme-scuro.cv-tab-style-linea .cv-trust-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .cv-trust-tab.active,
body.cv-theme-scuro.cv-tab-style-linea .profile-tab-button.is-active{
  background:transparent!important;
  color:#bbf7d0!important;
  border-bottom-color:#22c55e!important;
}
html.cv-tab-style-linea .tab-count,
body.cv-tab-style-linea .tab-count{margin-left:4px!important}

/* Tabelle: su mobile diventano card leggibili, senza cambiare il markup PHP */
@media(max-width:760px){
  .cv-table-cards{
    min-width:0!important;
    width:100%!important;
    border-collapse:separate!important;
    border-spacing:0 12px!important;
  }
  .cv-table-cards thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    white-space:nowrap!important;
  }
  .cv-table-cards tbody,
  .cv-table-cards tr,
  .cv-table-cards td{
    display:block!important;
    width:100%!important;
  }
  .cv-table-cards tr{
    background:var(--surface,var(--card,#fff))!important;
    border:1px solid var(--line,#e1e7e3)!important;
    border-radius:18px!important;
    padding:10px!important;
    box-shadow:0 10px 24px rgba(20,35,27,.06)!important;
    overflow:hidden!important;
  }
  .cv-table-cards td{
    border-bottom:1px solid var(--line,#e1e7e3)!important;
    padding:9px 4px!important;
    text-align:left!important;
    vertical-align:top!important;
  }
  .cv-table-cards td:last-child{
    border-bottom:0!important;
  }
  .cv-table-cards td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:3px;
    color:var(--muted,#66736b);
    font-size:.72rem;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .cv-table-cards td[data-label=""]::before{
    display:none;
  }
  .table-wrap,
  .table-responsive,
  .admin-table-wrap{
    overflow-x:visible!important;
  }
  html.cv-theme-scuro .cv-table-cards tr,
  html.cv-theme-sistema.cv-theme-resolved-scuro .cv-table-cards tr,
  body.cv-theme-scuro .cv-table-cards tr{
    background:#111827!important;
    border-color:#334155!important;
    color:#e5e7eb!important;
  }
  html.cv-theme-scuro .cv-table-cards td,
  html.cv-theme-sistema.cv-theme-resolved-scuro .cv-table-cards td,
  body.cv-theme-scuro .cv-table-cards td{
    border-bottom-color:#334155!important;
  }
  html.cv-theme-scuro .cv-table-cards td::before,
  html.cv-theme-sistema.cv-theme-resolved-scuro .cv-table-cards td::before,
  body.cv-theme-scuro .cv-table-cards td::before{
    color:#cbd5e1!important;
  }
}


/* CONDIVIDO V228: barra pulsanti mobile separata dall header */
@media (max-width:991px){
  body.cv-mobile-nav-basso-active{
    padding-bottom:calc(var(--cv-mobile-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 12px)!important;
  }

  .cv-header{
    position:sticky!important;
    top:0!important;
    z-index:10060!important;
  }

  .cv-header .header-nav.cv-nav{
    display:none!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached{
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
    padding:7px!important;
    border-radius:20px!important;
    background:rgba(15,23,42,.96)!important;
    border:1px solid rgba(148,163,184,.35)!important;
    box-shadow:0 18px 46px rgba(0,0,0,.34)!important;
    z-index:10050!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    overflow:visible!important;
  }

  html.cv-theme-chiaro .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-theme-chiaro .header-nav.cv-nav.cv-mobile-nav-detached,
  html.cv-theme-sistema.cv-theme-resolved-chiaro .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-theme-sistema.cv-theme-resolved-chiaro .header-nav.cv-nav.cv-mobile-nav-detached{
    background:rgba(255,255,255,.96)!important;
    border-color:#dbe4dd!important;
    box-shadow:0 18px 46px rgba(15,23,42,.16)!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    position:fixed!important;
    top:auto!important;
    bottom:calc(8px + env(safe-area-inset-bottom, 0px))!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto{
    position:sticky!important;
    top:var(--cv-header-height, 86px)!important;
    bottom:auto!important;
    margin:0 10px 8px!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso .cv-more-panel{
    position:fixed!important;
    top:auto!important;
    bottom:calc(var(--cv-mobile-nav-height, 72px) + env(safe-area-inset-bottom, 0px) + 18px)!important;
    right:10px!important;
    left:auto!important;
    width:min(94vw, 360px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100vh - var(--cv-mobile-nav-height, 72px) - var(--cv-header-height, 86px) - 34px)!important;
    overflow-y:auto!important;
    z-index:10080!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto .cv-more-panel{
    position:fixed!important;
    top:calc(var(--cv-header-height, 86px) + var(--cv-mobile-nav-height, 72px) + 8px)!important;
    bottom:auto!important;
    right:10px!important;
    left:auto!important;
    width:min(94vw, 360px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100vh - var(--cv-header-height, 86px) - var(--cv-mobile-nav-height, 72px) - 20px)!important;
    overflow-y:auto!important;
    z-index:10080!important;
  }
}

@media (min-width:992px){
  .header-nav.cv-nav.cv-mobile-nav-detached{
    position:sticky!important;
    top:var(--cv-header-height, 78px)!important;
    z-index:10040!important;
    width:100%!important;
    padding:8px 18px!important;
    margin:0!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid #e5e7eb!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 4px 18px rgba(15,23,42,.04)!important;
    overflow:visible!important;
  }

  html.cv-theme-scuro .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-theme-scuro .header-nav.cv-nav.cv-mobile-nav-detached,
  html.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-mobile-nav-detached{
    background:rgba(15,23,42,.98)!important;
    border-bottom-color:#334155!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 3 === */
/* CONDIVIDO V318 - FIX LANDSCAPE MOBILE SCROLL CONTAINED
   La barra mobile in modalita scorrevole resta dentro il proprio box anche in landscape.
   Non tocca la modalita classica con ALTRO. */
@media (max-width:991px) and (orientation:landscape){
  html.cv-mobile-nav-scroll-active,
  body.cv-mobile-nav-scroll-active{
    overflow-x:hidden!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll,
  html.cv-mobile-nav-scroll-active body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll[data-cv-mobile-scroll="1"]{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    grid-template-columns:none!important;
    grid-auto-flow:initial!important;
    gap:5px!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x!important;
    scrollbar-width:none!important;
    max-width:calc(100dvw - 12px)!important;
    min-width:0!important;
    padding:6px!important;
    contain:paint!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto.cv-mobile-nav-scroll,
  html.cv-mobile-nav-scroll-active body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto.cv-mobile-nav-scroll{
    position:sticky!important;
    left:auto!important;
    right:auto!important;
    width:calc(100dvw - 12px)!important;
    margin-left:6px!important;
    margin-right:6px!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso.cv-mobile-nav-scroll,
  html.cv-mobile-nav-scroll-active body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso.cv-mobile-nav-scroll{
    position:fixed!important;
    left:6px!important;
    right:6px!important;
    width:auto!important;
    max-width:calc(100dvw - 12px)!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll::-webkit-scrollbar,
  html.cv-mobile-nav-scroll-active body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:68px!important;
    max-width:82px!important;
    box-sizing:border-box!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    padding:4px 6px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 4 === */
/* CONDIVIDO V232 - WEB NAV DINAMICA DEFINITIVA
   Solo desktop/web. Mobile alto/basso resta gestito dalle regole precedenti. */
@media (min-width:992px){
  .header-nav.cv-nav.cv-web-nav-v232{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
  }

  .header-nav.cv-nav.cv-web-nav-v232 > a,
  .header-nav.cv-nav.cv-web-nav-v232 > .cv-more > summary{
    display:inline-flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:max-content!important;
    max-width:none!important;
    white-space:nowrap!important;
  }

  .header-nav.cv-nav.cv-web-nav-v232 > .cv-more{
    display:block!important;
    flex:0 0 auto!important;
    margin-left:0!important;
    position:relative!important;
  }

  .header-nav.cv-nav.cv-web-nav-v232 > .cv-more.cv-more-empty{
    display:none!important;
  }

  .header-nav.cv-nav.cv-web-nav-v232 > .cv-nav-logout{
    flex:0 0 auto!important;
    margin-left:0!important;
    order:9999!important;
  }

  .header-nav.cv-nav.cv-web-nav-v232 > .cv-more > .cv-more-panel{
    position:absolute!important;
    right:0!important;
    left:auto!important;
    top:46px!important;
    bottom:auto!important;
    width:min(92vw,440px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100vh - var(--cv-header-height,78px) - 72px)!important;
    overflow-y:auto!important;
    z-index:10080!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 5 === */
/* CONDIVIDO V234 - FIX FINALE SOLO WEB: overflow ALTRO senza limite 8 */
@media (min-width:992px){
  .header-nav.cv-nav.cv-web-nav-v234{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .header-nav.cv-nav.cv-web-nav-v234 > a,
  .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > summary{
    display:inline-flex!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:max-content!important;
    max-width:none!important;
    white-space:nowrap!important;
  }
  .header-nav.cv-nav.cv-web-nav-v234 > .cv-more{
    flex:0 0 auto!important;
    margin-left:0!important;
    position:relative!important;
  }
  .header-nav.cv-nav.cv-web-nav-v234 > .cv-more.cv-more-empty{
    display:none!important;
  }
  .header-nav.cv-nav.cv-web-nav-v234 > .cv-more:not(.cv-more-empty){
    display:block!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 6 === */
/* CONDIVIDO V233 - WEB NAV HEIGHT -2PX SOPRA/SOTTO */
@media (min-width:992px){
  .header-nav.cv-nav.cv-web-nav-v234 > a,
  .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > summary{
    min-height:34px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }

  .header-nav.cv-nav.cv-web-nav-v234 .cv-more-panel a{
    min-height:36px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 7 === */
/* CONDIVIDO V246 - DESKTOP HEADER/NAV RESET
   Solo web: nuova gestione stabile di identità + navigazione.
   Mobile escluso: max-width 991px resta governato dalle regole già presenti. */
@media (min-width:992px){
  .cv-header.header-condivido{
    position:sticky!important;
    top:0!important;
    z-index:10060!important;
    overflow:visible!important;
  }

  .cv-header .cv-header-inner,
  .cv-header .header-condivido-inner{
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding:10px 18px 9px!important;
  }

  .cv-header .cv-header-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .cv-header .cv-brand{
    flex:0 1 auto!important;
    min-width:190px!important;
    max-width:42vw!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  .cv-header .cv-brand img{
    width:48px!important;
    height:48px!important;
    flex:0 0 48px!important;
  }

  .cv-header .cv-brand-text,
  .cv-header .cv-brand-title,
  .cv-header .cv-brand-subtitle{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .cv-header .cv-user-area{
    margin-left:auto!important;
    flex:1 1 auto!important;
    min-width:260px!important;
    max-width:58vw!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    overflow:hidden!important;
  }

  .cv-header .cv-user-chip.cv-user-name-link{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:calc(100% - 92px)!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
  }

  .cv-header .cv-user-name{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:240px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .cv-header .cv-user-role,
  .cv-header .cv-user-credits{
    flex:0 0 auto!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-web-nav-v246,
  body.cv-nav-mode-web .header-nav.cv-nav.cv-web-nav-v246{
    position:sticky!important;
    top:var(--cv-header-height,78px)!important;
    z-index:10045!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:8px 18px!important;
    border-radius:0!important;
    border:0!important;
    border-bottom:1px solid #e5e7eb!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 4px 18px rgba(15,23,42,.04)!important;
    overflow:visible!important;
  }

  html.cv-theme-scuro .header-nav.cv-nav.cv-web-nav-v246,
  body.cv-theme-scuro .header-nav.cv-nav.cv-web-nav-v246,
  html.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-web-nav-v246,
  body.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-web-nav-v246{
    background:rgba(15,23,42,.98)!important;
    border-bottom-color:#334155!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 > a,
  .header-nav.cv-nav.cv-web-nav-v246 > .cv-more > summary{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:max-content!important;
    max-width:none!important;
    min-height:34px!important;
    padding:6px 11px!important;
    border-radius:999px!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    font-size:.78rem!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 > a span,
  .header-nav.cv-nav.cv-web-nav-v246 > .cv-more > summary span{
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 > .cv-more{
    flex:0 0 auto!important;
    margin-left:0!important;
    position:relative!important;
    overflow:visible!important;
    z-index:10070!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 > .cv-more.cv-more-empty{
    display:none!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 > .cv-more:not(.cv-more-empty){
    display:block!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 .cv-more-panel{
    position:absolute!important;
    right:0!important;
    left:auto!important;
    top:44px!important;
    width:min(92vw,430px)!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100vh - var(--cv-header-height,78px) - 78px)!important;
    overflow-y:auto!important;
    display:none!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:10px!important;
    border-radius:18px!important;
    border:1px solid #e5e7eb!important;
    background:#ffffff!important;
    box-shadow:0 18px 45px rgba(15,23,42,.22)!important;
    z-index:10090!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 .cv-more[open] > .cv-more-panel{
    display:grid!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 .cv-more-panel a{
    min-height:36px!important;
    padding:7px 10px!important;
    border-radius:12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    font-size:.76rem!important;
    line-height:1.1!important;
    white-space:normal!important;
    text-align:left!important;
  }

  .header-nav.cv-nav.cv-web-nav-v246 .cv-nav-logout{
    display:none!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 8 === */
/* CONDIVIDO V292 - mobile nav leggibile con badge interni.
   Portrait: 5 elementi totali compreso ALTRO.
   Landscape: 8 elementi totali compreso ALTRO.
   Non modifica il motore web. */
@media (max-width:991px){
  .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-nav-mode-portrait .header-nav.cv-nav,
  body.cv-nav-mode-landscape .header-nav.cv-nav{
    overflow:visible!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:7px!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav > a,
  body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more > summary{
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    padding:4px 3px!important;
    border-radius:13px!important;
    font-size:.72rem!important;
    line-height:1.04!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    text-align:center!important;
    white-space:normal!important;
    position:relative!important;
    overflow:visible!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav > a span,
  body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more > summary span{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:.72rem!important;
    line-height:1!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav{
    grid-template-columns:repeat(8,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:6px!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
    height:38px!important;
    min-height:38px!important;
    max-height:42px!important;
    padding:4px 3px!important;
    border-radius:12px!important;
    font-size:.68rem!important;
    line-height:1.02!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    text-align:center!important;
    white-space:normal!important;
    position:relative!important;
    overflow:visible!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a span,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary span{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:.68rem!important;
    line-height:1!important;
  }

  .header-nav.cv-nav > a > .cv-badge,
  .header-nav.cv-nav > .cv-more > summary > .cv-badge,
  .header-nav.cv-nav > .cv-more > summary > .cv-more-badge{
    position:absolute!important;
    top:4px!important;
    right:5px!important;
    transform:none!important;
    min-width:14px!important;
    height:14px!important;
    padding:0 4px!important;
    border-radius:999px!important;
    font-size:.54rem!important;
    line-height:14px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:8!important;
    margin:0!important;
    pointer-events:none!important;
    box-shadow:0 1px 0 rgba(0,0,0,.16)!important;
  }

  .header-nav.cv-nav .cv-more-panel a > .cv-badge{
    position:absolute!important;
    top:5px!important;
    right:6px!important;
    min-width:14px!important;
    height:14px!important;
    padding:0 4px!important;
    line-height:14px!important;
    font-size:.54rem!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 9 === */
/* CONDIVIDO V294 - landscape mobile: tasti leggermente più corti dentro il box.
   Non modifica portrait, web, altezza tasti, font, emoji o badge. */
@media (max-width:991px) and (orientation:landscape){
  body.cv-nav-mode-landscape .header-nav.cv-nav{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    padding-left:7px!important;
    padding-right:7px!important;
    gap:4px!important;
    overflow:visible!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
    width:calc(100% - 4px)!important;
    justify-self:center!important;
    padding-left:2px!important;
    padding-right:2px!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more{
    justify-self:center!important;
    width:100%!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 10 === */
/* CONDIVIDO V297 - centratura perfetta numeri nei badge rossi.
   Non modifica dimensione, posizione, contenuto o logica dei tasti. */
.header-nav.cv-nav .cv-badge,
.cv-header .cv-badge,
.cv-badge{
  box-sizing:border-box!important;
  display:inline-grid!important;
  place-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
}

.header-nav.cv-nav > a > .cv-badge,
.header-nav.cv-nav > .cv-more > summary > .cv-badge,
.header-nav.cv-nav > .cv-more > summary > .cv-more-badge,
.header-nav.cv-nav .cv-more-panel a > .cv-badge{
  align-items:center!important;
  justify-items:center!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

/* === HEADER INLINE STYLE BLOCK 11 === */
/* CONDIVIDO V298 - solo landscape: badge dentro i tasti.
   Non modifica portrait, web, dimensioni tasti, font, emoji o ordine. */
@media (max-width:991px) and (orientation:landscape){
  body.cv-nav-mode-landscape .header-nav.cv-nav > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
    position:relative!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a > .cv-badge,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary > .cv-badge,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary > .cv-more-badge{
    position:absolute!important;
    top:5px!important;
    right:7px!important;
    transform:none!important;
    margin:0!important;
    z-index:9!important;
    pointer-events:none!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 12 === */
/* CONDIVIDO V300 - solo barra mobile in basso.
   Richiesta: nessun cambio a web, barra alta, ordine, numero tasti, font, emoji o logica.
   Interviene solo quando l'utente ha scelto i pulsanti in basso. */
@media (max-width:991px){
  body.cv-mobile-nav-basso-active{
    padding-bottom:calc(var(--cv-mobile-nav-height, 76px) + env(safe-area-inset-bottom, 0px))!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
    box-sizing:border-box!important;
    border-radius:18px 18px 0 0!important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom, 0px))!important;
    overflow:visible!important;
    background:#0f172a!important;
    border-left:0!important;
    border-right:0!important;
    border-bottom:0!important;
    border-top:1px solid rgba(148,163,184,.35)!important;
    box-shadow:0 -12px 34px rgba(0,0,0,.34)!important;
  }

  html.cv-theme-chiaro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso,
  body.cv-theme-chiaro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso,
  html.cv-theme-sistema.cv-theme-resolved-chiaro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso,
  body.cv-theme-sistema.cv-theme-resolved-chiaro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    background:#ffffff!important;
    border-top-color:#dbe4dd!important;
    box-shadow:0 -12px 34px rgba(15,23,42,.16)!important;
  }

  html.cv-theme-scuro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso,
  body.cv-theme-scuro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso,
  html.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso,
  body.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    background:#0f172a!important;
    border-top-color:#334155!important;
    box-shadow:0 -12px 34px rgba(0,0,0,.42)!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-basso,
  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:5px!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-basso > a,
  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-basso > .cv-more > summary,
  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso > a,
  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso > .cv-more > summary{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    padding-top:5px!important;
    padding-bottom:5px!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-basso,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    gap:4px!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-basso > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-basso > .cv-more > summary,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso > .cv-more > summary{
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    padding-top:5px!important;
    padding-bottom:5px!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 13 === */
/* CONDIVIDO V302 - tasti mobile scorrevoli dentro il box contenitore.
   Solo mobile/tablet: in modalità scroll il contenitore resta chiuso, scorre solo sull'asse X e i badge restano interni. */
@media (max-width:991px){
  html.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll{
    display:flex!important;
    grid-template-columns:none!important;
    grid-auto-flow:initial!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:6px!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
    padding:8px 7px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    contain:layout paint!important;
  }

  html.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached::-webkit-scrollbar,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached::-webkit-scrollbar,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll::-webkit-scrollbar{
    display:none!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached > a,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached > .cv-more > summary,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:72px!important;
    max-width:none!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    padding:5px 8px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached > a > .cv-badge,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached > .cv-more > summary > .cv-badge,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a > .cv-badge,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary > .cv-badge{
    top:2px!important;
    right:2px!important;
    min-width:15px!important;
    height:15px!important;
    font-size:.50rem!important;
    z-index:3!important;
  }

  body.cv-nav-mode-landscape.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached > a,
  body.cv-nav-mode-landscape.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached > .cv-more > summary{
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    min-width:70px!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav .cv-more.cv-more-empty,
  .header-nav.cv-nav.cv-mobile-nav-scroll .cv-more.cv-more-empty{
    display:none!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 14 === */
/* CONDIVIDO V303 - FIX DEFINITIVO SCROLL TASTI MOBILE */
@media (max-width:991px){
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll,
  html.cv-mobile-nav-scroll-active body .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll{
    display:flex!important;
    grid-template-columns:none!important;
    grid-auto-flow:initial!important;
    grid-auto-columns:auto!important;
    grid-auto-rows:auto!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:6px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    touch-action:pan-x!important;
    scrollbar-width:none!important;
    box-sizing:border-box!important;
    contain:none!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso.cv-mobile-nav-scroll{
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
    border-radius:20px!important;
    padding:8px 7px calc(8px + env(safe-area-inset-bottom, 0px))!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto.cv-mobile-nav-scroll{
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-width:calc(100vw - 20px)!important;
    padding:8px 7px!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll::-webkit-scrollbar,
  html.cv-mobile-nav-scroll-active body .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:74px!important;
    max-width:none!important;
    box-sizing:border-box!important;
    justify-self:auto!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    min-width:72px!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    padding:5px 8px!important;
    border-radius:13px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-align:center!important;
    line-height:1.05!important;
  }

  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a,
  body.cv-mobile-nav-scroll-active.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary{
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > a > .cv-badge,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary > .cv-badge,
  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll > .cv-more > summary > .cv-more-badge{
    position:absolute!important;
    top:3px!important;
    right:4px!important;
    transform:none!important;
    margin:0!important;
    min-width:15px!important;
    height:15px!important;
    padding:0 4px!important;
    font-size:.50rem!important;
    z-index:5!important;
    pointer-events:none!important;
  }

  body.cv-mobile-nav-scroll-active .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-scroll .cv-more.cv-more-empty{
    display:none!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 15 === */
/* CONDIVIDO V304 - mobile compact fit.
   Interviene solo su mobile: stringe spazi, padding e contenitore, senza cambiare font.
   Portrait: 4 tasti reali + ALTRO = 5 visibili.
   Landscape: 7 tasti reali + ALTRO = 8 visibili, quando i permessi rendono disponibile il link extra. */
@media (max-width:991px){
  body.cv-nav-mode-portrait .header-nav.cv-nav,
  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-detached{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:4px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav > a,
  body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more,
  body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more > summary{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  body.cv-nav-mode-portrait .header-nav.cv-nav > a,
  body.cv-nav-mode-portrait .header-nav.cv-nav > .cv-more > summary{
    width:100%!important;
    padding-left:2px!important;
    padding-right:2px!important;
  }
}

@media (max-width:991px) and (orientation:landscape){
  body.cv-nav-mode-landscape .header-nav.cv-nav,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso{
    grid-template-columns:repeat(8,minmax(0,1fr))!important;
    gap:2px!important;
    left:4px!important;
    right:14px!important;
    width:auto!important;
    max-width:calc(100vw - 18px)!important;
    padding-left:4px!important;
    padding-right:4px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    box-sizing:border-box!important;
  }

  body.cv-nav-mode-landscape .header-nav.cv-nav > a,
  body.cv-nav-mode-landscape .header-nav.cv-nav > .cv-more > summary{
    width:calc(100% - 3px)!important;
    padding-left:1px!important;
    padding-right:1px!important;
    justify-self:center!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 16 === */
/* CONDIVIDO ALTRO MOBILE COMPACT ATTACHED V306
   Solo pannello ALTRO mobile: più compatto e agganciato al pulsante. */
@media (max-width:991px){
  .header-nav.cv-nav.cv-mobile-nav-detached .cv-more-panel{
    grid-template-columns:1fr 1fr!important;
    gap:5px!important;
    padding:6px!important;
    border-radius:15px!important;
    width:min(78vw,300px)!important;
    max-width:calc(100vw - 16px)!important;
    box-sizing:border-box!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached .cv-more[open] > .cv-more-panel{
    display:grid!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached .cv-more-panel a{
    min-height:34px!important;
    height:34px!important;
    padding:5px 8px!important;
    border-radius:12px!important;
    line-height:1.05!important;
    box-sizing:border-box!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto .cv-more-panel{
    position:fixed!important;
    top:var(--cv-more-attached-top, calc(var(--cv-header-height, 86px) + var(--cv-mobile-nav-height, 72px) + 3px))!important;
    bottom:auto!important;
    right:var(--cv-more-attached-right, 10px)!important;
    left:auto!important;
    max-height:calc(100vh - var(--cv-more-attached-top, 160px) - 8px)!important;
    overflow-y:auto!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso .cv-more-panel{
    right:var(--cv-more-attached-right, 10px)!important;
    width:min(78vw,300px)!important;
    max-width:calc(100vw - 16px)!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 17 === */
/* CONDIVIDO ALTRO MOBILE OVERLAP V308
   Solo barra mobile alta: il pannello ALTRO viene alzato in portrait e landscape
   e si sovrappone al contenuto sottostante, senza spingere la pagina. */
@media (max-width:991px){
  body.cv-nav-mode-portrait .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto .cv-more-panel,
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto .cv-more-panel,
  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto .cv-more-panel{
    position:fixed!important;
    top:var(--cv-more-attached-top-v307, var(--cv-more-attached-top, 140px))!important;
    bottom:auto!important;
    right:var(--cv-more-attached-right-v307, var(--cv-more-attached-right, 8px))!important;
    left:auto!important;
    margin:0!important;
    transform:none!important;
    z-index:10090!important;
    max-height:calc(100vh - var(--cv-more-attached-top-v307, var(--cv-more-attached-top, 140px)) - 8px)!important;
    overflow-y:auto!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 18 === */
/* CONDIVIDO ALTRO MOBILE LANDSCAPE FIX V310
   Solo landscape con barra mobile alta: pannello ALTRO indipendente dallo scroll,
   alzato nettamente verso il box dei tasti. Portrait non modificato. */
@media (max-width:991px) and (orientation:landscape){
  body.cv-nav-mode-landscape .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto .cv-more-panel{
    position:fixed!important;
    top:var(--cv-more-landscape-fixed-top-v309, var(--cv-more-attached-top-v307, 92px))!important;
    bottom:auto!important;
    right:var(--cv-more-landscape-fixed-right-v309, var(--cv-more-attached-right-v307, 8px))!important;
    left:auto!important;
    margin:0!important;
    transform:none!important;
    z-index:10120!important;
    max-height:calc(100vh - var(--cv-more-landscape-fixed-top-v309, 92px) - 6px)!important;
    overflow-y:auto!important;
  }
}

/* === HEADER INLINE STYLE BLOCK 19 === */
/* CONDIVIDO MOBILE NAV AUTO-HIDE V322
   Mobile only: la barra pulsanti scivola sotto header/footer senza cambiare il layout. */
@media (max-width:991px){
  .header-nav.cv-nav.cv-mobile-nav-detached{
    transition:transform .24s ease, opacity .18s ease!important;
    will-change:transform, opacity!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-auto-hidden{
    opacity:.08!important;
    pointer-events:none!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-alto.cv-mobile-nav-auto-hidden{
    transform:translateY(calc(-100% - 14px))!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-basso.cv-mobile-nav-auto-hidden{
    transform:translateY(calc(100% + 18px))!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-auto-hidden .cv-more-panel{
    display:none!important;
  }

  .header-nav.cv-nav.cv-mobile-nav-detached.cv-mobile-nav-user-touch,
  .header-nav.cv-nav.cv-mobile-nav-detached:focus-within,
  .header-nav.cv-nav.cv-mobile-nav-detached:has(.cv-more[open]){
    transform:translateY(0)!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  .cv-mobile-nav-reveal-handle{
    position:fixed!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    z-index:10049!important;
    width:62px!important;
    height:18px!important;
    border:1px solid rgba(148,163,184,.42)!important;
    border-radius:999px!important;
    background:rgba(15,23,42,.42)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.18)!important;
    backdrop-filter:blur(10px)!important;
    -webkit-backdrop-filter:blur(10px)!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .18s ease!important;
  }

  html.cv-theme-chiaro .cv-mobile-nav-reveal-handle,
  body.cv-theme-chiaro .cv-mobile-nav-reveal-handle,
  html.cv-theme-sistema.cv-theme-resolved-chiaro .cv-mobile-nav-reveal-handle,
  body.cv-theme-sistema.cv-theme-resolved-chiaro .cv-mobile-nav-reveal-handle{
    background:rgba(255,255,255,.72)!important;
    border-color:#dbe4dd!important;
  }

  .cv-mobile-nav-reveal-handle::before{
    content:""!important;
    display:block!important;
    width:34px!important;
    height:4px!important;
    border-radius:999px!important;
    background:rgba(148,163,184,.95)!important;
    margin:6px auto 0!important;
  }

  body.cv-mobile-nav-autohide-hidden .cv-mobile-nav-reveal-handle{
    opacity:1!important;
    pointer-events:auto!important;
  }

  body.cv-mobile-nav-alto-active .cv-mobile-nav-reveal-handle{
    top:calc(var(--cv-header-height, 86px) + 3px)!important;
    bottom:auto!important;
  }

  body.cv-mobile-nav-basso-active .cv-mobile-nav-reveal-handle{
    top:auto!important;
    bottom:calc(4px + env(safe-area-inset-bottom, 0px))!important;
  }
}

@media (min-width:992px){
  .cv-mobile-nav-reveal-handle{display:none!important;}
}


/* CONDIVIDO ALTRO WEB TEMA PROFILO V330
   Solo web: il contenitore ALTRO segue il tema scelto dall'utente.
   I pulsanti interni mantengono lo stile esistente. */
@media (min-width:992px){
  body.cv-nav-mode-web .cv-more-panel,
  .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > .cv-more-panel{
    background:var(--cv-card, var(--surface, #ffffff))!important;
    color:var(--cv-text, var(--text, #0f172a))!important;
    border-color:var(--cv-line, var(--line, #e5e7eb))!important;
    box-shadow:0 18px 45px rgba(15,23,42,.20)!important;
  }
  body.cv-theme-scuro.cv-nav-mode-web .cv-more-panel,
  html.cv-theme-scuro body.cv-nav-mode-web .cv-more-panel,
  body.cv-theme-sistema.cv-theme-resolved-scuro.cv-nav-mode-web .cv-more-panel,
  html.cv-theme-sistema.cv-theme-resolved-scuro body.cv-nav-mode-web .cv-more-panel,
  html.cv-theme-scuro .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > .cv-more-panel,
  body.cv-theme-scuro .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > .cv-more-panel,
  html.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > .cv-more-panel,
  body.cv-theme-sistema.cv-theme-resolved-scuro .header-nav.cv-nav.cv-web-nav-v234 > .cv-more > .cv-more-panel{
    background:#111827!important;
    color:#f8fafc!important;
    border-color:#334155!important;
    box-shadow:0 18px 45px rgba(0,0,0,.45)!important;
  }
}

/* CV_V556 - Sistema TAB condiviso esteso */
html.cv-tab-style-segmenti .cv-feature-tabs,
html.cv-tab-style-segmenti .cv-piani-tabs,
html.cv-tab-style-segmenti .cv-ap-tabs,
html.cv-tab-style-segmenti .perm-tabs,
html.cv-tab-style-segmenti .cv-community-tabs,
html.cv-tab-style-segmenti .cv-config-tabs,
html.cv-tab-style-segmenti .prestiti-status-tabs,
body.cv-tab-style-segmenti .cv-feature-tabs,
body.cv-tab-style-segmenti .cv-piani-tabs,
body.cv-tab-style-segmenti .cv-ap-tabs,
body.cv-tab-style-segmenti .perm-tabs,
body.cv-tab-style-segmenti .cv-community-tabs,
body.cv-tab-style-segmenti .cv-config-tabs,
body.cv-tab-style-segmenti .prestiti-status-tabs{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;max-width:100%!important;
}
html.cv-tab-style-segmenti .cv-feature-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-piani-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-ap-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .perm-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-community-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-config-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .prestiti-status-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .cv-feature-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .cv-piani-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .cv-ap-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .perm-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .cv-community-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .cv-config-tabs::-webkit-scrollbar,
body.cv-tab-style-segmenti .prestiti-status-tabs::-webkit-scrollbar{display:none!important}
html.cv-tab-style-segmenti .cv-feature-tabs a,
html.cv-tab-style-segmenti .cv-piani-tabs a,
html.cv-tab-style-segmenti .cv-ap-tabs a,
html.cv-tab-style-segmenti .perm-tab,
html.cv-tab-style-segmenti .cv-community-tab,
html.cv-tab-style-segmenti .cv-config-tab,
html.cv-tab-style-segmenti .prestiti-status-tabs a,
body.cv-tab-style-segmenti .cv-feature-tabs a,
body.cv-tab-style-segmenti .cv-piani-tabs a,
body.cv-tab-style-segmenti .cv-ap-tabs a,
body.cv-tab-style-segmenti .perm-tab,
body.cv-tab-style-segmenti .cv-community-tab,
body.cv-tab-style-segmenti .cv-config-tab,
body.cv-tab-style-segmenti .prestiti-status-tabs a{
  flex:0 0 auto!important;white-space:nowrap!important;width:auto!important;max-width:none!important;min-height:42px!important;padding:0 16px!important;border-radius:999px!important;border:1px solid var(--cv-line,#dbe4dd)!important;background:var(--cv-surface,#fff)!important;color:var(--cv-muted,#64748b)!important;font-weight:950!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;
}
html.cv-tab-style-segmenti .cv-feature-tabs a.active,
html.cv-tab-style-segmenti .cv-piani-tabs a.active,
html.cv-tab-style-segmenti .cv-ap-tabs a.active,
html.cv-tab-style-segmenti .perm-tab.is-active,
html.cv-tab-style-segmenti .cv-community-tab.active,
html.cv-tab-style-segmenti .cv-config-tab.active,
html.cv-tab-style-segmenti .prestiti-status-tabs a.active,
body.cv-tab-style-segmenti .cv-feature-tabs a.active,
body.cv-tab-style-segmenti .cv-piani-tabs a.active,
body.cv-tab-style-segmenti .cv-ap-tabs a.active,
body.cv-tab-style-segmenti .perm-tab.is-active,
body.cv-tab-style-segmenti .cv-community-tab.active,
body.cv-tab-style-segmenti .cv-config-tab.active,
body.cv-tab-style-segmenti .prestiti-status-tabs a.active{
  color:var(--cv-green-dark,#166534)!important;background:color-mix(in srgb,var(--cv-green,#22c55e) 14%,var(--cv-surface,#fff))!important;border-color:var(--cv-green,#22c55e)!important;box-shadow:inset 0 -3px 0 var(--cv-green,#22c55e)!important;
}
html.cv-tab-style-linea .cv-feature-tabs,
html.cv-tab-style-linea .cv-piani-tabs,
html.cv-tab-style-linea .cv-ap-tabs,
html.cv-tab-style-linea .perm-tabs,
html.cv-tab-style-linea .cv-community-tabs,
html.cv-tab-style-linea .cv-config-tabs,
html.cv-tab-style-linea .prestiti-status-tabs,
body.cv-tab-style-linea .cv-feature-tabs,
body.cv-tab-style-linea .cv-piani-tabs,
body.cv-tab-style-linea .cv-ap-tabs,
body.cv-tab-style-linea .perm-tabs,
body.cv-tab-style-linea .cv-community-tabs,
body.cv-tab-style-linea .cv-config-tabs,
body.cv-tab-style-linea .prestiti-status-tabs{
  display:flex!important;gap:0!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-bottom:1px solid var(--cv-line,#dbe4dd)!important;scrollbar-width:none!important;max-width:100%!important;
}
html.cv-tab-style-linea .cv-feature-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .cv-piani-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .cv-ap-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .perm-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .cv-community-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .cv-config-tabs::-webkit-scrollbar,
html.cv-tab-style-linea .prestiti-status-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .cv-feature-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .cv-piani-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .cv-ap-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .perm-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .cv-community-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .cv-config-tabs::-webkit-scrollbar,
body.cv-tab-style-linea .prestiti-status-tabs::-webkit-scrollbar{display:none!important}
html.cv-tab-style-linea .cv-feature-tabs a,
html.cv-tab-style-linea .cv-piani-tabs a,
html.cv-tab-style-linea .cv-ap-tabs a,
html.cv-tab-style-linea .perm-tab,
html.cv-tab-style-linea .cv-community-tab,
html.cv-tab-style-linea .cv-config-tab,
html.cv-tab-style-linea .prestiti-status-tabs a,
body.cv-tab-style-linea .cv-feature-tabs a,
body.cv-tab-style-linea .cv-piani-tabs a,
body.cv-tab-style-linea .cv-ap-tabs a,
body.cv-tab-style-linea .perm-tab,
body.cv-tab-style-linea .cv-community-tab,
body.cv-tab-style-linea .cv-config-tab,
body.cv-tab-style-linea .prestiti-status-tabs a{
  flex:0 0 auto!important;min-height:44px!important;height:44px!important;padding:0 16px 8px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--cv-muted,#64748b)!important;box-shadow:none!important;font-weight:950!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;
}
html.cv-tab-style-linea .cv-feature-tabs a.active,
html.cv-tab-style-linea .cv-piani-tabs a.active,
html.cv-tab-style-linea .cv-ap-tabs a.active,
html.cv-tab-style-linea .perm-tab.is-active,
html.cv-tab-style-linea .cv-community-tab.active,
html.cv-tab-style-linea .cv-config-tab.active,
html.cv-tab-style-linea .prestiti-status-tabs a.active,
body.cv-tab-style-linea .cv-feature-tabs a.active,
body.cv-tab-style-linea .cv-piani-tabs a.active,
body.cv-tab-style-linea .cv-ap-tabs a.active,
body.cv-tab-style-linea .perm-tab.is-active,
body.cv-tab-style-linea .cv-community-tab.active,
body.cv-tab-style-linea .cv-config-tab.active,
body.cv-tab-style-linea .prestiti-status-tabs a.active{
  background:transparent!important;color:var(--cv-green-dark,#166534)!important;border-bottom-color:var(--cv-green,#22c55e)!important;box-shadow:none!important;
}
html.cv-theme-scuro.cv-tab-style-linea .cv-feature-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-piani-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-ap-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .perm-tab.is-active,
html.cv-theme-scuro.cv-tab-style-linea .cv-community-tab.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-config-tab.active,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-status-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .cv-feature-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .cv-piani-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .cv-ap-tabs a.active,
body.cv-theme-scuro.cv-tab-style-linea .perm-tab.is-active,
body.cv-theme-scuro.cv-tab-style-linea .cv-community-tab.active,
body.cv-theme-scuro.cv-tab-style-linea .cv-config-tab.active,
body.cv-theme-scuro.cv-tab-style-linea .prestiti-status-tabs a.active{color:#bbf7d0!important;border-bottom-color:#22c55e!important;}

/* CONDIVIDO V537 - normalizzazione tab extra in base alla preferenza utente.
   Obiettivo: le pagine che usano classi tab proprie devono seguire linea/segmenti come il resto del sito. */
:root{--cv-tab-fix-green:#22c55e;--cv-tab-fix-green-soft:#dcfce7;--cv-tab-fix-muted:#94a3b8;}
html.cv-tab-style-segmenti .cv-piani-tabs,
html.cv-tab-style-segmenti .cv-community-tabs,
html.cv-tab-style-segmenti .cv-feature-tabs,
html.cv-tab-style-segmenti .cv-ap-tabs,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav,
html.cv-tab-style-segmenti .orari-tabs,
html.cv-tab-style-segmenti .prestiti-status-tabs,
html.cv-tab-style-segmenti .perm-tabs,
html.cv-tab-style-segmenti .cvn-tabs,
html.cv-tab-style-segmenti .cvn-read-tabs,
body.cv-tab-style-segmenti .cv-piani-tabs,
body.cv-tab-style-segmenti .cv-community-tabs,
body.cv-tab-style-segmenti .cv-feature-tabs,
body.cv-tab-style-segmenti .cv-ap-tabs,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav,
body.cv-tab-style-segmenti .orari-tabs,
body.cv-tab-style-segmenti .prestiti-status-tabs,
body.cv-tab-style-segmenti .perm-tabs,
body.cv-tab-style-segmenti .cvn-tabs,
body.cv-tab-style-segmenti .cvn-read-tabs{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;align-items:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;max-width:100%!important;border-bottom:0!important;
}
html.cv-tab-style-segmenti .cv-piani-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-community-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-feature-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cv-ap-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav::-webkit-scrollbar,
html.cv-tab-style-segmenti .orari-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .prestiti-status-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .perm-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cvn-tabs::-webkit-scrollbar,
html.cv-tab-style-segmenti .cvn-read-tabs::-webkit-scrollbar{display:none!important;}
html.cv-tab-style-segmenti .cv-piani-tabs a,
html.cv-tab-style-segmenti .cv-community-tabs a,
html.cv-tab-style-segmenti .cv-feature-tabs a,
html.cv-tab-style-segmenti .cv-ap-tabs a,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav a,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav button,
html.cv-tab-style-segmenti .orari-tabs a,
html.cv-tab-style-segmenti .orari-tabs button,
html.cv-tab-style-segmenti .prestiti-status-tabs a,
html.cv-tab-style-segmenti .perm-tabs a,
html.cv-tab-style-segmenti .perm-tabs button,
html.cv-tab-style-segmenti .cvn-tabs a,
html.cv-tab-style-segmenti .cvn-read-tabs a,
body.cv-tab-style-segmenti .cv-piani-tabs a,
body.cv-tab-style-segmenti .cv-community-tabs a,
body.cv-tab-style-segmenti .cv-feature-tabs a,
body.cv-tab-style-segmenti .cv-ap-tabs a,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav a,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav button,
body.cv-tab-style-segmenti .orari-tabs a,
body.cv-tab-style-segmenti .orari-tabs button,
body.cv-tab-style-segmenti .prestiti-status-tabs a,
body.cv-tab-style-segmenti .perm-tabs a,
body.cv-tab-style-segmenti .perm-tabs button,
body.cv-tab-style-segmenti .cvn-tabs a,
body.cv-tab-style-segmenti .cvn-read-tabs a{
  flex:0 0 auto!important;white-space:nowrap!important;width:auto!important;max-width:none!important;min-height:42px!important;height:42px!important;padding:0 16px!important;border:1px solid rgba(148,163,184,.28)!important;border-radius:999px!important;background:rgba(15,23,42,.04)!important;color:var(--cv-muted,#64748b)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;box-shadow:none!important;font-weight:800!important;
}
html.cv-theme-scuro.cv-tab-style-segmenti .cv-piani-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-community-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-feature-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-ap-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav a,
html.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav button,
html.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs button,
html.cv-theme-scuro.cv-tab-style-segmenti .prestiti-status-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs button,
html.cv-theme-scuro.cv-tab-style-segmenti .cvn-tabs a,
html.cv-theme-scuro.cv-tab-style-segmenti .cvn-read-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .cv-piani-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .cv-community-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .cv-feature-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .cv-ap-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav a,
body.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav button,
body.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs button,
body.cv-theme-scuro.cv-tab-style-segmenti .prestiti-status-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs button,
body.cv-theme-scuro.cv-tab-style-segmenti .cvn-tabs a,
body.cv-theme-scuro.cv-tab-style-segmenti .cvn-read-tabs a{
  background:rgba(15,23,42,.72)!important;color:#cbd5e1!important;border-color:rgba(148,163,184,.28)!important;
}
html.cv-tab-style-segmenti .cv-piani-tabs a.active,
html.cv-tab-style-segmenti .cv-piani-tabs a.is-active,
html.cv-tab-style-segmenti .cv-community-tabs a.active,
html.cv-tab-style-segmenti .cv-community-tabs a.is-active,
html.cv-tab-style-segmenti .cv-feature-tabs a.active,
html.cv-tab-style-segmenti .cv-feature-tabs a.is-active,
html.cv-tab-style-segmenti .cv-ap-tabs a.active,
html.cv-tab-style-segmenti .cv-ap-tabs a.is-active,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav a.active,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav a.is-active,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav button.active,
html.cv-tab-style-segmenti .profile-pref-subtabs-nav button.is-active,
html.cv-tab-style-segmenti .orari-tabs a.active,
html.cv-tab-style-segmenti .orari-tabs a.is-active,
html.cv-tab-style-segmenti .orari-tabs button.active,
html.cv-tab-style-segmenti .orari-tabs button.is-active,
html.cv-tab-style-segmenti .prestiti-status-tabs a.active,
html.cv-tab-style-segmenti .prestiti-status-tabs a.is-active,
html.cv-tab-style-segmenti .perm-tabs a.active,
html.cv-tab-style-segmenti .perm-tabs a.is-active,
html.cv-tab-style-segmenti .perm-tabs button.active,
html.cv-tab-style-segmenti .perm-tabs button.is-active,
html.cv-tab-style-segmenti .cvn-tabs a.active,
html.cv-tab-style-segmenti .cvn-tabs a.is-active,
html.cv-tab-style-segmenti .cvn-read-tabs a.active,
html.cv-tab-style-segmenti .cvn-read-tabs a.is-active,
body.cv-tab-style-segmenti .cv-piani-tabs a.active,
body.cv-tab-style-segmenti .cv-piani-tabs a.is-active,
body.cv-tab-style-segmenti .cv-community-tabs a.active,
body.cv-tab-style-segmenti .cv-community-tabs a.is-active,
body.cv-tab-style-segmenti .cv-feature-tabs a.active,
body.cv-tab-style-segmenti .cv-feature-tabs a.is-active,
body.cv-tab-style-segmenti .cv-ap-tabs a.active,
body.cv-tab-style-segmenti .cv-ap-tabs a.is-active,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav a.active,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav a.is-active,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav button.active,
body.cv-tab-style-segmenti .profile-pref-subtabs-nav button.is-active,
body.cv-tab-style-segmenti .orari-tabs a.active,
body.cv-tab-style-segmenti .orari-tabs a.is-active,
body.cv-tab-style-segmenti .orari-tabs button.active,
body.cv-tab-style-segmenti .orari-tabs button.is-active,
body.cv-tab-style-segmenti .prestiti-status-tabs a.active,
body.cv-tab-style-segmenti .prestiti-status-tabs a.is-active,
body.cv-tab-style-segmenti .perm-tabs a.active,
body.cv-tab-style-segmenti .perm-tabs a.is-active,
body.cv-tab-style-segmenti .perm-tabs button.active,
body.cv-tab-style-segmenti .perm-tabs button.is-active,
body.cv-tab-style-segmenti .cvn-tabs a.active,
body.cv-tab-style-segmenti .cvn-tabs a.is-active,
body.cv-tab-style-segmenti .cvn-read-tabs a.active,
body.cv-tab-style-segmenti .cvn-read-tabs a.is-active{
  background:var(--cv-tab-fix-green-soft,#dcfce7)!important;color:#166534!important;border-color:#86efac!important;box-shadow:0 10px 22px rgba(34,197,94,.18)!important;
}
html.cv-theme-scuro.cv-tab-style-segmenti .cv-piani-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-piani-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-community-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-community-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-feature-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-feature-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-ap-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .cv-ap-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav button.active,
html.cv-theme-scuro.cv-tab-style-segmenti .profile-pref-subtabs-nav button.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs button.active,
html.cv-theme-scuro.cv-tab-style-segmenti .orari-tabs button.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .prestiti-status-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .prestiti-status-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs button.active,
html.cv-theme-scuro.cv-tab-style-segmenti .perm-tabs button.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .cvn-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .cvn-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-segmenti .cvn-read-tabs a.active,
html.cv-theme-scuro.cv-tab-style-segmenti .cvn-read-tabs a.is-active{
  background:#bbf7d0!important;color:#14532d!important;border-color:#86efac!important;
}
html.cv-tab-style-linea .cv-piani-tabs,
html.cv-tab-style-linea .cv-community-tabs,
html.cv-tab-style-linea .cv-feature-tabs,
html.cv-tab-style-linea .cv-ap-tabs,
html.cv-tab-style-linea .profile-pref-subtabs-nav,
html.cv-tab-style-linea .orari-tabs,
html.cv-tab-style-linea .prestiti-status-tabs,
html.cv-tab-style-linea .perm-tabs,
html.cv-tab-style-linea .cvn-tabs,
html.cv-tab-style-linea .cvn-read-tabs,
body.cv-tab-style-linea .cv-piani-tabs,
body.cv-tab-style-linea .cv-community-tabs,
body.cv-tab-style-linea .cv-feature-tabs,
body.cv-tab-style-linea .cv-ap-tabs,
body.cv-tab-style-linea .profile-pref-subtabs-nav,
body.cv-tab-style-linea .orari-tabs,
body.cv-tab-style-linea .prestiti-status-tabs,
body.cv-tab-style-linea .perm-tabs,
body.cv-tab-style-linea .cvn-tabs,
body.cv-tab-style-linea .cvn-read-tabs{
  display:flex!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;border-bottom:1px solid var(--cv-line,#dbe4dd)!important;max-width:100%!important;
}
html.cv-tab-style-linea .cv-piani-tabs a,
html.cv-tab-style-linea .cv-community-tabs a,
html.cv-tab-style-linea .cv-feature-tabs a,
html.cv-tab-style-linea .cv-ap-tabs a,
html.cv-tab-style-linea .profile-pref-subtabs-nav a,
html.cv-tab-style-linea .profile-pref-subtabs-nav button,
html.cv-tab-style-linea .orari-tabs a,
html.cv-tab-style-linea .orari-tabs button,
html.cv-tab-style-linea .prestiti-status-tabs a,
html.cv-tab-style-linea .perm-tabs a,
html.cv-tab-style-linea .perm-tabs button,
html.cv-tab-style-linea .cvn-tabs a,
html.cv-tab-style-linea .cvn-read-tabs a,
body.cv-tab-style-linea .cv-piani-tabs a,
body.cv-tab-style-linea .cv-community-tabs a,
body.cv-tab-style-linea .cv-feature-tabs a,
body.cv-tab-style-linea .cv-ap-tabs a,
body.cv-tab-style-linea .profile-pref-subtabs-nav a,
body.cv-tab-style-linea .profile-pref-subtabs-nav button,
body.cv-tab-style-linea .orari-tabs a,
body.cv-tab-style-linea .orari-tabs button,
body.cv-tab-style-linea .prestiti-status-tabs a,
body.cv-tab-style-linea .perm-tabs a,
body.cv-tab-style-linea .perm-tabs button,
body.cv-tab-style-linea .cvn-tabs a,
body.cv-tab-style-linea .cvn-read-tabs a{
  flex:0 0 auto!important;white-space:nowrap!important;width:auto!important;max-width:none!important;min-height:44px!important;height:44px!important;padding:0 16px 8px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--cv-muted,#64748b)!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;font-weight:800!important;
}
html.cv-tab-style-linea .cv-piani-tabs a.active,
html.cv-tab-style-linea .cv-piani-tabs a.is-active,
html.cv-tab-style-linea .cv-community-tabs a.active,
html.cv-tab-style-linea .cv-community-tabs a.is-active,
html.cv-tab-style-linea .cv-feature-tabs a.active,
html.cv-tab-style-linea .cv-feature-tabs a.is-active,
html.cv-tab-style-linea .cv-ap-tabs a.active,
html.cv-tab-style-linea .cv-ap-tabs a.is-active,
html.cv-tab-style-linea .profile-pref-subtabs-nav a.active,
html.cv-tab-style-linea .profile-pref-subtabs-nav a.is-active,
html.cv-tab-style-linea .profile-pref-subtabs-nav button.active,
html.cv-tab-style-linea .profile-pref-subtabs-nav button.is-active,
html.cv-tab-style-linea .orari-tabs a.active,
html.cv-tab-style-linea .orari-tabs a.is-active,
html.cv-tab-style-linea .orari-tabs button.active,
html.cv-tab-style-linea .orari-tabs button.is-active,
html.cv-tab-style-linea .prestiti-status-tabs a.active,
html.cv-tab-style-linea .prestiti-status-tabs a.is-active,
html.cv-tab-style-linea .perm-tabs a.active,
html.cv-tab-style-linea .perm-tabs a.is-active,
html.cv-tab-style-linea .perm-tabs button.active,
html.cv-tab-style-linea .perm-tabs button.is-active,
html.cv-tab-style-linea .cvn-tabs a.active,
html.cv-tab-style-linea .cvn-tabs a.is-active,
html.cv-tab-style-linea .cvn-read-tabs a.active,
html.cv-tab-style-linea .cvn-read-tabs a.is-active{
  background:transparent!important;color:var(--cv-green-dark,#166534)!important;border-bottom-color:var(--cv-tab-fix-green,#22c55e)!important;box-shadow:none!important;
}
html.cv-theme-scuro.cv-tab-style-linea .cv-piani-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .cv-community-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .cv-feature-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .cv-ap-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .profile-pref-subtabs-nav a,
html.cv-theme-scuro.cv-tab-style-linea .profile-pref-subtabs-nav button,
html.cv-theme-scuro.cv-tab-style-linea .orari-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .orari-tabs button,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-status-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .perm-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .perm-tabs button,
html.cv-theme-scuro.cv-tab-style-linea .cvn-tabs a,
html.cv-theme-scuro.cv-tab-style-linea .cvn-read-tabs a{color:#94a3b8!important;}
html.cv-theme-scuro.cv-tab-style-linea .cv-piani-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-piani-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .cv-community-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-community-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .cv-feature-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-feature-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .cv-ap-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cv-ap-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .profile-pref-subtabs-nav a.active,
html.cv-theme-scuro.cv-tab-style-linea .profile-pref-subtabs-nav a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .profile-pref-subtabs-nav button.active,
html.cv-theme-scuro.cv-tab-style-linea .profile-pref-subtabs-nav button.is-active,
html.cv-theme-scuro.cv-tab-style-linea .orari-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .orari-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .orari-tabs button.active,
html.cv-theme-scuro.cv-tab-style-linea .orari-tabs button.is-active,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-status-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .prestiti-status-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .perm-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .perm-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .perm-tabs button.active,
html.cv-theme-scuro.cv-tab-style-linea .perm-tabs button.is-active,
html.cv-theme-scuro.cv-tab-style-linea .cvn-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cvn-tabs a.is-active,
html.cv-theme-scuro.cv-tab-style-linea .cvn-read-tabs a.active,
html.cv-theme-scuro.cv-tab-style-linea .cvn-read-tabs a.is-active{color:#bbf7d0!important;border-bottom-color:#22c55e!important;}

/* CONDIVIDO V538 - scelta TAB esclusiva: pieni oppure sottolineati.
   Correzione: i due stili non devono mai sovrapporsi.
   - cv-tab-style-segmenti: tab pieni come da UI ricerca, senza underline.
   - cv-tab-style-linea: solo testo + underline, senza pillola/sfondo. */
:root{
  --cv-tab-full-active-bg:#16a34a;
  --cv-tab-full-active-text:#ffffff;
  --cv-tab-full-inactive-bg:#4b5563;
  --cv-tab-full-inactive-text:#f8fafc;
  --cv-tab-full-line:rgba(148,163,184,.35);
}
html.cv-theme-scuro,
body.cv-theme-scuro,
html.cv-theme-sistema.cv-theme-resolved-scuro,
body.cv-theme-sistema.cv-theme-resolved-scuro{
  --cv-tab-full-inactive-bg:#4b5563;
  --cv-tab-full-inactive-text:#f8fafc;
  --cv-tab-full-line:#334155;
}
html.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs),
body.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs){
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:16px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
  max-width:100%!important;
  border-bottom:1px solid var(--cv-tab-full-line)!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
html.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs)::-webkit-scrollbar,
body.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs)::-webkit-scrollbar{display:none!important;}
html.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a,button,.tab-btn,.cv-trust-tab,.profile-tab-button,.perm-tab,.cv-community-tab,.cv-config-tab),
body.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a,button,.tab-btn,.cv-trust-tab,.profile-tab-button,.perm-tab,.cv-community-tab,.cv-config-tab){
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:52px!important;
  height:52px!important;
  padding:0 22px!important;
  border:1px solid transparent!important;
  border-bottom:0!important;
  border-radius:14px 14px 0 0!important;
  background:var(--cv-tab-full-inactive-bg)!important;
  color:var(--cv-tab-full-inactive-text)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-weight:900!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
html.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a.active,a.is-active,button.active,button.is-active,.tab-btn.active,.tab-btn.is-active,.cv-trust-tab.active,.cv-trust-tab.is-active,.profile-tab-button.is-active,.perm-tab.active,.perm-tab.is-active,.cv-community-tab.active,.cv-community-tab.is-active,.cv-config-tab.active,.cv-config-tab.is-active),
body.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a.active,a.is-active,button.active,button.is-active,.tab-btn.active,.tab-btn.is-active,.cv-trust-tab.active,.cv-trust-tab.is-active,.profile-tab-button.is-active,.perm-tab.active,.perm-tab.is-active,.cv-community-tab.active,.cv-community-tab.is-active,.cv-config-tab.active,.cv-config-tab.is-active){
  background:var(--cv-tab-full-active-bg)!important;
  color:var(--cv-tab-full-active-text)!important;
  border-color:var(--cv-tab-full-active-bg)!important;
  border-bottom:0!important;
  box-shadow:none!important;
}
html.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a,button,.tab-btn,.cv-trust-tab,.profile-tab-button,.perm-tab,.cv-community-tab,.cv-config-tab)::after,
body.cv-tab-style-segmenti :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a,button,.tab-btn,.cv-trust-tab,.profile-tab-button,.perm-tab,.cv-community-tab,.cv-config-tab)::after{
  content:none!important;
  display:none!important;
}
html.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs),
body.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs){
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
  max-width:100%!important;
  border-bottom:1px solid var(--cv-line,#dbe4dd)!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a,button,.tab-btn,.cv-trust-tab,.profile-tab-button,.perm-tab,.cv-community-tab,.cv-config-tab),
body.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a,button,.tab-btn,.cv-trust-tab,.profile-tab-button,.perm-tab,.cv-community-tab,.cv-config-tab){
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-height:44px!important;
  height:44px!important;
  padding:0 16px 8px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--cv-muted,#64748b)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-weight:900!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
html.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a.active,a.is-active,button.active,button.is-active,.tab-btn.active,.tab-btn.is-active,.cv-trust-tab.active,.cv-trust-tab.is-active,.profile-tab-button.is-active,.perm-tab.active,.perm-tab.is-active,.cv-community-tab.active,.cv-community-tab.is-active,.cv-config-tab.active,.cv-config-tab.is-active),
body.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a.active,a.is-active,button.active,button.is-active,.tab-btn.active,.tab-btn.is-active,.cv-trust-tab.active,.cv-trust-tab.is-active,.profile-tab-button.is-active,.perm-tab.active,.perm-tab.is-active,.cv-community-tab.active,.cv-community-tab.is-active,.cv-config-tab.active,.cv-config-tab.is-active){
  background:transparent!important;
  color:var(--cv-green-dark,#166534)!important;
  border-bottom-color:var(--cv-green,#22c55e)!important;
  box-shadow:none!important;
}
html.cv-theme-scuro.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a.active,a.is-active,button.active,button.is-active,.tab-btn.active,.tab-btn.is-active,.cv-trust-tab.active,.cv-trust-tab.is-active,.profile-tab-button.is-active,.perm-tab.active,.perm-tab.is-active,.cv-community-tab.active,.cv-community-tab.is-active,.cv-config-tab.active,.cv-config-tab.is-active),
body.cv-theme-scuro.cv-tab-style-linea :is(.notification-page-tabs,.requests-page-tabs,.prestiti-page-tabs,.tabs-ricerca,.cv-trust-tabs,.profile-tabs-nav,.notification-read-tabs,.requests-state-tabs,.prestiti-role-tabs,.prestiti-status-tabs,.filter-tabs,.cv-feature-tabs,.cv-piani-tabs,.cv-ap-tabs,.perm-tabs,.cv-community-tabs,.cv-config-tabs,.profile-pref-subtabs-nav,.orari-tabs,.cvn-tabs,.cvn-read-tabs,.admin-main-tabs) :is(a.active,a.is-active,button.active,button.is-active,.tab-btn.active,.tab-btn.is-active,.cv-trust-tab.active,.cv-trust-tab.is-active,.profile-tab-button.is-active,.perm-tab.active,.perm-tab.is-active,.cv-community-tab.active,.cv-community-tab.is-active,.cv-config-tab.active,.cv-config-tab.is-active){
  color:#bbf7d0!important;
  border-bottom-color:#22c55e!important;
}
