:root{
  --vp-blue:#1666a8;
  --vp-blue2:#0f5e9c;
  --vp-cyan:#28cdd2;
  --vp-bg:#f4f7fb;
  --vp-text:#213547;
  --vp-green:#177443;
}
*{box-sizing:border-box}
body{background:var(--vp-bg);color:var(--vp-text);min-height:100vh;font-family:"Segoe UI",Arial,sans-serif}
.navbar-vp{background:linear-gradient(90deg,#0f5e9c,#1878bf)}
.brand-dot{width:10px;height:10px;border-radius:50%;background:var(--vp-cyan);display:inline-block;margin-right:.45rem}
.hero{background:linear-gradient(135deg,#0f5e9c,#1e8bc3);color:#fff;border-radius:1.5rem;box-shadow:0 1rem 2.5rem rgba(28,90,140,.12)}
.service-card{border:0;border-radius:1.25rem;transition:.2s ease;box-shadow:0 .45rem 1.4rem rgba(34,62,86,.07);height:100%;background:#fff}
.service-card:hover{transform:translateY(-3px);box-shadow:0 .9rem 1.8rem rgba(34,62,86,.11)}
.service-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#e8f4fb;color:var(--vp-blue);font-size:1.55rem;flex:0 0 auto}
.access-free{background:#e9f8ef;color:#177443;border:1px solid #cdebd8}
.access-book{background:#e9f2fb;color:#0f5e9c;border:1px solid #d0e5f7}
.access-full{background:#fff5e8;color:#9b5a08;border:1px solid #f5d8aa}
.mini-stat{background:white;border-radius:1rem;box-shadow:0 .35rem 1.2rem rgba(34,62,86,.06)}
.sidebar-card{background:#fff;border-radius:1rem;box-shadow:0 .35rem 1.2rem rgba(34,62,86,.06)}
.sidebar-link{text-decoration:none;color:#335;display:flex;gap:.6rem;align-items:center;padding:.7rem .85rem;border-radius:.8rem}
.sidebar-link:hover,.sidebar-link.active{background:#eaf3fa;color:#0f5e9c}
.login-card{border:0;border-radius:1.5rem;box-shadow:0 1rem 3rem rgba(26,55,81,.13);overflow:hidden;background:#fff}
.login-hero{background:linear-gradient(135deg,#0f5e9c,#22a6b3);color:#fff}
.auth-card{border:1px solid #e4ebf1;border-radius:1rem;background:#fff;height:100%}
.slot-btn{min-width:128px}
.table thead th{white-space:nowrap}
.section-title{font-weight:800;letter-spacing:-.02em}
.soft-box,.soft-card{background:#fff;border:1px solid #e6edf3;border-radius:1rem;box-shadow:0 .35rem 1.2rem rgba(34,62,86,.05)}
.event-pill{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.23);border-radius:999px;padding:.55rem .9rem;display:inline-flex;align-items:center;gap:.45rem}
.sim-banner{background:#fff3cd;border:1px solid #ffe69c;color:#664d03;border-radius:1rem}
.env-badge{font-size:.72rem;letter-spacing:.08em}
.slot-card{border:1px solid #e4eaf0;border-radius:.9rem;background:#fff}
.slot-card.disabled{background:#f7f8fa;color:#7b8791}
.capacity-bar{height:8px;border-radius:999px;background:#e9eef3;overflow:hidden}
.capacity-bar>span{display:block;height:100%;background:#0d6efd}
.modal-content{border:0;border-radius:1.2rem}
.code-pill{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#eef4f8;border-radius:.55rem;padding:.25rem .5rem}
@media(max-width:991.98px){.position-sticky{position:static!important}.sidebar-card{margin-bottom:1rem}}


.booking-calendar-head{
    display:flex;
    align-items:center;
    gap:1rem;
    padding:1rem;
    border:1px solid #e4eaf0;
    border-radius:1rem;
    background:#f8fbfe;
}
.booking-day{
    width:82px;
    min-width:82px;
    border:1px solid #d9e5ef;
    border-radius:1rem;
    background:#fff;
    text-align:center;
    overflow:hidden;
    box-shadow:0 .25rem .8rem rgba(34,62,86,.05);
}
.booking-day.active{
    border-color:#1671b8;
    box-shadow:0 0 0 2px rgba(22,113,184,.08);
}
.booking-day-week{
    background:#1671b8;
    color:#fff;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    padding:.28rem .35rem;
}
.booking-day-number{
    color:#164d73;
    font-size:2rem;
    line-height:1.1;
    font-weight:800;
    padding-top:.45rem;
}
.booking-day-month{
    color:#697b88;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    padding:.1rem .35rem .5rem;
}
.booking-slots-title{
    font-weight:800;
    margin:1rem 0 .75rem;
    color:#23435a;
}
.calendar-empty{
    border:1px dashed #cfdbe5;
    border-radius:1rem;
    background:#f8fafc;
}
.slot-card{
    min-height:86px;
}
@media (max-width:575.98px){
    .booking-calendar-head{align-items:flex-start}
    .booking-day{width:72px;min-width:72px}
}

/* v0.8.5.0 - header fisso unico: barra blu + barra lingue senza spazi */
.vp-fixed-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    width:100%;
    z-index:1050;
    margin:0;
    padding:0;
    background:#fff;
    box-shadow:0 2px 8px rgba(31,55,76,.08);
}
.vp-fixed-header .navbar-vp{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%;
    margin:0!important;
    z-index:2;
}
.vp-fixed-header-spacer{
    width:100%;
    height:var(--vp-fixed-header-height,104px);
    min-height:0;
    margin:0;
    padding:0;
    pointer-events:none;
}
.vp-language-bar{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%;
    margin:0!important;
    padding:0!important;
    z-index:1;
    background:#fff;
    border:0;
    border-bottom:1px solid rgba(13,110,253,.12);
    box-shadow:none;
}
.vp-language-inner{
    min-height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.32rem;
    overflow-x:auto;
    white-space:nowrap;
    padding:.24rem 0;
    scrollbar-width:thin;
}
.vp-language-caption{font-size:.8rem;font-weight:700;color:#5f6b76;margin-right:.2rem}
.vp-language-choice{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:26px!important;min-height:26px!important;max-height:26px!important;padding:2px!important;border:1px solid #d9e3ec;border-radius:6px;text-decoration:none;background:#fff;transition:.15s ease;overflow:hidden;line-height:1}
.vp-language-choice:hover{border-color:#0d6efd;background:#eef6ff;transform:translateY(-1px)}
.vp-language-choice.active{border-color:#0d6efd;box-shadow:0 0 0 2px rgba(13,110,253,.15)}
.vp-language-choice .vp-language-flag-img{display:block!important;flex:0 0 26px!important;width:26px!important;min-width:26px!important;max-width:26px!important;height:18px!important;min-height:18px!important;max-height:18px!important;object-fit:cover!important;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.12);margin:0!important;padding:0!important}
@media(max-width:575.98px){
    .vp-language-inner{min-height:34px;justify-content:center;padding:.2rem .1rem;gap:.24rem}
    .vp-language-caption{display:none!important}
    .vp-language-choice{flex-basis:32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:24px!important;min-height:24px!important;max-height:24px!important}
    .vp-language-choice .vp-language-flag-img{flex-basis:24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:16px!important;min-height:16px!important;max-height:16px!important}
}

/* v0.7.8 - hero inclusivo homepage */
.hero-tagline{color:#fff;opacity:.96;letter-spacing:-.01em}
.hero-access-message{
  display:flex;align-items:flex-start;gap:.9rem;max-width:860px;
  padding:1rem 1.1rem;border-radius:1rem;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);
  color:#fff;box-shadow:0 .5rem 1.25rem rgba(5,44,76,.10);
  backdrop-filter:blur(2px);
}
.hero-access-message>div:last-child{font-size:1.04rem;line-height:1.5}
.hero-access-icon{
  flex:0 0 auto;width:2.35rem;height:2.35rem;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);color:#126ca6;font-size:1.35rem;
}
@media (max-width:575.98px){
  .hero-access-message{padding:.9rem;gap:.7rem}
  .hero-access-message>div:last-child{font-size:.98rem}
  .hero-access-icon{width:2rem;height:2rem;font-size:1.15rem}
}


/* v0.8.0 - vetrina pubblica, loghi istituzionali e footer */
.vp-home-logos{background:#fff;border:1px solid #e5edf4;border-radius:1rem;padding:.8rem 1rem;box-shadow:0 .25rem .9rem rgba(34,62,86,.05)}
.vp-home-logo{display:block;max-height:58px;width:auto;max-width:min(330px,42vw);object-fit:contain}
.vp-home-logo-asl{max-height:62px}.vp-home-logo-regione{max-height:62px}
.vp-footer{background:#fff;border-top:1px solid #dfe8ef;color:#334b5d}
.vp-footer-logo{height:46px;width:auto;max-width:190px;object-fit:contain}
.vp-footer a{color:#0f5e9c;text-decoration:none}.vp-footer a:hover{text-decoration:underline}
@media(max-width:575.98px){.vp-home-logo{max-height:44px;max-width:43vw}.vp-footer-logo{height:38px;max-width:145px}}

/* v0.8.2 - metadati servizio più leggibili e nota accesso libero */
.vp-service-meta-row{margin-top:.35rem}
.vp-service-meta-badge{font-size:1rem!important;font-weight:700;padding:.62rem .9rem!important;line-height:1.15;white-space:normal;text-align:left}
.vp-walkin-note{line-height:1.45}
.vp-walkin-note .badge{font-size:.76rem;vertical-align:baseline}
@media(max-width:575.98px){.vp-service-meta-badge{font-size:.94rem!important;padding:.55rem .78rem!important}}


/* v0.8.4.9 - pittogrammi screening personalizzati */
.vp-screening-ribbon{
    display:inline-block!important;
    width:1.35em!important;
    height:1.35em!important;
    min-width:1.35em;
    background-image:url('icons/screening-mammografia-ribbon.svg')!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:contain!important;
    vertical-align:-0.22em;
    line-height:1!important;
}
.vp-screening-ribbon::before{content:""!important;display:none!important;}
.vp-screening-intestino{
    display:inline-block!important;
    width:1.42em!important;
    height:1.42em!important;
    min-width:1.42em;
    background-image:url('icons/screening-intestino.png')!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
    background-size:contain!important;
    vertical-align:-0.25em;
    line-height:1!important;
}
.vp-screening-intestino::before{content:""!important;display:none!important;}
