:root{
    --blue:#075dcc;
    --blue-dark:#063f8d;
    --navy:#082d5a;
    --ink:#13233a;
    --muted:#6f7f93;
    --line:#e5ebf3;
    --bg:#f6f8fc;
    --green:#159447;
}

*{box-sizing:border-box}

html,body{
    margin:0;
    min-height:100%;
}

body{
    font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--bg);
}

/* =========================================================
   LAYOUT PRINCIPALE
   ========================================================= */

.sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:245px;
    background:#fff;
    border-right:1px solid var(--line);
    padding:28px 18px;
    display:flex;
    flex-direction:column
}

.brand{
    display:flex;
    gap:11px;
    align-items:center;
    color:var(--navy);
    padding:0 10px 30px
}

.brandmark{
    font-size:28px;
    color:var(--blue)
}

.brand b{
    display:block;
    letter-spacing:.06em
}

.brand small{
    display:block;
    font-size:9px;
    letter-spacing:.18em;
    color:var(--muted)
}

nav{
    display:grid;
    gap:7px
}

nav a{
    display:flex;
    gap:12px;
    text-decoration:none;
    color:#64758a;
    padding:13px 14px;
    border-radius:11px;
    font-weight:600;
    font-size:14px
}

nav a.active,
nav a:hover{
    background:#eaf3ff;
    color:var(--blue)
}

.sidebar-foot{
    margin-top:auto;
    border-top:1px solid var(--line);
    padding:18px 10px 0;
    display:flex;
    justify-content:space-between;
    font-size:13px
}

.sidebar-foot a{
    color:var(--blue);
    text-decoration:none
}

.content{
    margin-left:245px;
    padding:42px 48px;
    max-width:1400px
}

.page-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:30px
}

.eyebrow{
    color:var(--blue);
    font-size:12px;
    font-weight:800;
    letter-spacing:.1em
}

.page-head h1{
    font-size:32px;
    margin:7px 0 7px
}

.page-head p{
    color:var(--muted);
    margin:0
}

.btn-primary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    background:var(--blue);
    border:0;
    color:#fff;
    text-decoration:none;
    padding:13px 20px;
    border-radius:10px;
    font-weight:750;
    cursor:pointer;
    transition:.18s ease;
}

.btn-primary:hover{
    background:var(--blue-dark);
    transform:translateY(-1px);
}

.btn-full{width:100%}

.metric-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}

.metric,.search-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:0 8px 28px rgba(26,54,93,.05)
}

.metric{padding:24px}

.metric span,.metric small{
    display:block;
    color:var(--muted)
}

.metric strong{
    display:block;
    font-size:24px;
    margin:10px 0
}

.search-card{
    padding:28px;
    max-width:900px
}

.search-card>label{
    font-size:15px;
    font-weight:800;
    display:block;
    margin-bottom:12px
}

.search-box{
    display:grid;
    grid-template-columns:38px 1fr auto;
    align-items:center;
    border:2px solid #b9d4fb;
    border-radius:12px;
    overflow:hidden;
    background:#fff
}

.search-box>span{
    text-align:center;
    color:var(--blue);
    font-size:21px
}

.search-box input{
    border:0;
    outline:0;
    padding:16px 6px;
    font-size:16px
}

.search-box button{
    align-self:stretch;
    border:0;
    background:var(--blue);
    color:#fff;
    padding:0 24px;
    font-weight:700
}

.hint{
    font-size:12px;
    color:var(--muted);
    margin:10px 2px
}

.results{
    display:grid;
    gap:8px;
    margin-top:14px
}

.result-item{
    width:100%;
    display:grid;
    grid-template-columns:42px 1fr 20px;
    align-items:center;
    text-align:left;
    background:#fff;
    border:1px solid var(--line);
    border-radius:11px;
    padding:13px;
    cursor:pointer;
    color:var(--ink)
}

.result-item:hover{
    border-color:#a7c8f7;
    background:#f9fbff
}

.result-item small{
    display:block;
    color:var(--muted);
    margin-top:4px
}

.result-item i{
    font-size:24px;
    color:var(--blue)
}

.result-icon{
    width:34px;
    height:34px;
    border-radius:9px;
    background:#eef4ff;
    color:#655ee8;
    display:grid;
    place-items:center
}

/* =========================================================
   LOGIN SOVRACUP
   ========================================================= */

.login-body{
    margin:0;
    min-height:100vh;
    background:#fff;
}

.login-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(520px, 48%) 1fr;
    background:#fff;
}

.login-brand-side{
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    padding:70px clamp(50px,7vw,120px);
    background:
        radial-gradient(circle at 18% 16%, rgba(90,151,224,.18), transparent 33%),
        linear-gradient(135deg,#f4f8fd 0%,#edf5fb 55%,#effafa 100%);
    border-right:1px solid #e4ebf3;
}

.login-brand-content{
    position:relative;
    z-index:2;
    width:min(520px,100%);
}

.login-brand-lockup{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.login-brand-symbol{
    width:92px;
    height:92px;
    object-fit:contain;
    display:block;
    margin-bottom:18px;
}

.login-brand-wordmark{
    display:block;
    width:min(370px,90%);
    height:auto;
}

.login-product-label{
    margin-top:22px;
    color:var(--blue);
    font-size:15px;
    font-weight:850;
    letter-spacing:.24em;
    text-transform:uppercase;
}

.login-brand-content h1{
    margin:35px 0 14px;
    max-width:500px;
    color:var(--navy);
    font-size:clamp(34px,3.1vw,52px);
    line-height:1.08;
    letter-spacing:-.035em;
}

.login-brand-content p{
    max-width:480px;
    margin:0;
    color:#61738b;
    font-size:17px;
    line-height:1.65;
}

.login-shape{
    position:absolute;
    border-radius:50%;
    pointer-events:none;
}

.login-shape-top{
    width:310px;
    height:310px;
    top:-180px;
    right:-105px;
    background:rgba(44,176,184,.18);
}

.login-shape-bottom{
    width:320px;
    height:320px;
    left:-175px;
    bottom:-185px;
    background:rgba(50,112,203,.16);
}

.login-form-side{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:60px;
    background:#fff;
}

.login-card{
    width:min(430px,100%);
}

.login-mobile-brand{
    display:none;
}

.role-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:4px;
    width:100%;
    margin-bottom:34px;
    padding:4px;
    background:#f2f5f9;
    border-radius:12px;
}

.role-tabs button{
    border:0;
    padding:12px 16px;
    border-radius:9px;
    background:transparent;
    color:#728095;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.role-tabs button.selected{
    background:#fff;
    color:var(--blue);
    box-shadow:0 3px 12px rgba(28,54,90,.08);
}

.login-card-heading{
    margin-bottom:28px;
}

.login-card-eyebrow{
    display:block;
    margin-bottom:8px;
    color:var(--blue);
    font-size:12px;
    font-weight:850;
    letter-spacing:.17em;
    text-transform:uppercase;
}

.login-card h2{
    margin:0;
    color:var(--navy);
    font-size:38px;
    line-height:1.1;
    letter-spacing:-.025em;
}

.login-card-heading p{
    margin:10px 0 0;
    color:var(--muted);
    font-size:15px;
    line-height:1.5;
}

.login-form .form-group{
    margin:0 0 20px;
}

.login-form .form-group label{
    display:block;
    margin-bottom:7px;
    color:#23354d;
    font-size:13px;
    font-weight:750;
}

.login-form .form-control{
    width:100%;
    min-height:50px;
    margin:0;
    padding:13px 14px;
    border:1px solid #d8e1ec;
    border-radius:10px;
    outline:0;
    background:#fff;
    color:var(--ink);
    font-size:15px;
    transition:.18s ease;
}

.login-form .form-control:focus{
    border-color:#8dbaf1;
    box-shadow:0 0 0 4px rgba(7,93,204,.08);
}

.help-block{
    min-height:16px;
    margin-top:5px;
    color:#b42318;
    font-size:12px;
}

.login-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:-2px 0 22px;
}

.remember-field{
    margin:0;
}

.remember-field label{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
    margin:0 !important;
    color:#4f6076 !important;
    cursor:pointer;
}

.remember-field input{
    width:16px;
    height:16px;
    accent-color:var(--blue);
}

.login-submit{
    font-size:15px;
}

.login-support{
    margin-top:22px;
    text-align:center;
    color:#8a97a8;
    font-size:12px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1000px){
    .login-shell{
        grid-template-columns:1fr;
    }

    .login-brand-side{
        display:none;
    }

    .login-form-side{
        min-height:100vh;
        padding:42px 24px;
        background:
            linear-gradient(180deg,#f5f9fe 0,#fff 36%);
    }

    .login-mobile-brand{
        display:flex;
        flex-direction:column;
        align-items:center;
        margin-bottom:34px;
    }

    .login-mobile-symbol{
        width:72px;
        height:72px;
        object-fit:contain;
        margin-bottom:12px;
    }

    .login-mobile-wordmark{
        width:250px;
        max-width:82%;
        height:auto;
    }

    .sidebar{
        width:76px
    }

    .sidebar nav span,
    .brand div,
    .sidebar-foot span{
        display:none
    }

    .content{
        margin-left:76px;
        padding:28px 20px
    }

    .metric-grid{
        grid-template-columns:1fr
    }

    .page-head{
        gap:20px
    }

    .page-head h1{
        font-size:27px
    }
}

@media(max-width:520px){
    .login-form-side{
        padding:28px 18px;
    }

    .login-card{
        width:100%;
    }

    .login-card h2{
        font-size:32px;
    }

    .role-tabs{
        margin-bottom:28px;
    }
}


/* =========================================================
   BOOKING V0.2
   Ricerca prestazione + strutture
   ========================================================= */

.booking-page-head{
    margin-bottom:24px;
}

.booking-flow{
    display:grid;
    gap:22px;
    max-width:1080px;
}

.booking-step-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:26px;
    box-shadow:0 10px 34px rgba(20,49,86,.055);
}

.booking-step-card.is-hidden{
    display:none;
}

.booking-step-heading{
    display:flex;
    gap:15px;
    align-items:flex-start;
    margin-bottom:22px;
}

.booking-step-number{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#eaf3ff;
    color:var(--blue);
    font-size:14px;
    font-weight:850;
}

.booking-step-heading h2{
    margin:1px 0 4px;
    color:var(--navy);
    font-size:20px;
    line-height:1.25;
}

.booking-step-heading p{
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
}

.service-search-shell{
    max-width:880px;
}

.service-search-control{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 42px auto;
    align-items:center;
    min-height:58px;
    overflow:hidden;
    border:2px solid #b8d3f8;
    border-radius:13px;
    background:#fff;
    transition:.16s ease;
}

.service-search-control:focus-within{
    border-color:#75a9ec;
    box-shadow:0 0 0 4px rgba(7,93,204,.07);
}

.service-search-icon{
    text-align:center;
    color:var(--blue);
    font-size:24px;
}

.service-search-control input{
    min-width:0;
    height:54px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--ink);
    font-size:16px;
}

.service-search-control input::placeholder{
    color:#97a4b5;
}

.service-search-clear{
    width:32px;
    height:32px;
    margin:auto;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#7e8b9c;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}

.service-search-clear:hover{
    background:#f0f4f8;
    color:#3c4c61;
}

.service-search-button{
    align-self:stretch;
    min-width:104px;
    border:0;
    background:var(--blue);
    color:#fff;
    padding:0 22px;
    font-weight:800;
    cursor:pointer;
}

.service-search-button:hover{
    background:var(--blue-dark);
}

.booking-helper{
    min-height:20px;
    margin:9px 2px 0;
    color:var(--muted);
    font-size:12px;
}

.booking-helper.is-error{
    color:#b42318;
}

.service-results{
    display:grid;
    gap:8px;
    max-width:880px;
    margin-top:14px;
}

.service-result-item{
    width:100%;
    display:grid;
    grid-template-columns:40px minmax(0,1fr) 24px;
    align-items:center;
    gap:12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
    padding:13px 14px;
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    transition:.14s ease;
}

.service-result-item:hover{
    border-color:#acd0fb;
    background:#f9fbff;
    transform:translateY(-1px);
}

.service-result-item.is-selected{
    border-color:#77acef;
    background:#f2f7ff;
    box-shadow:0 0 0 3px rgba(7,93,204,.06);
}

.service-result-symbol{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#eef3ff;
    color:#655ee8;
}

.service-result-copy{
    min-width:0;
}

.service-result-copy strong{
    display:block;
    color:#1d3049;
    font-size:14px;
    line-height:1.35;
}

.service-result-copy small{
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:12px;
}

.service-result-arrow{
    color:#8190a3;
    font-size:24px;
    text-align:right;
}

.booking-loading-row{
    display:flex;
    gap:6px;
    align-items:center;
    justify-content:center;
    height:52px;
}

.booking-loading-row span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#9cbbe3;
    animation:sovracup-dot 1s infinite ease-in-out;
}

.booking-loading-row span:nth-child(2){
    animation-delay:.12s;
}

.booking-loading-row span:nth-child(3){
    animation-delay:.24s;
}

@keyframes sovracup-dot{
    0%,80%,100%{opacity:.35;transform:scale(.75)}
    40%{opacity:1;transform:scale(1)}
}

.structure-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-top:14px;
}

.structure-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    padding:18px;
    transition:.16s ease;
}

.structure-card:hover{
    border-color:#c4d9f4;
    box-shadow:0 8px 24px rgba(20,49,86,.06);
}

.structure-card-top{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.structure-pin{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#edf5ff;
    color:var(--blue);
    font-size:20px;
}

.structure-copy{
    min-width:0;
}

.structure-network{
    display:block;
    margin-bottom:3px;
    color:var(--blue);
    font-size:9px;
    font-weight:850;
    letter-spacing:.12em;
}

.structure-copy h3{
    margin:0;
    color:var(--navy);
    font-size:16px;
    line-height:1.3;
}

.structure-copy p{
    margin:5px 0 0;
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.structure-card-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid #edf1f6;
    color:#718095;
    font-size:12px;
}

.structure-card-meta strong{
    color:#1c3554;
    font-size:13px;
}

.structure-availability-button{
    width:100%;
    min-height:43px;
    margin-top:14px;
    border:0;
    border-radius:9px;
    background:#0b61cc;
    color:#fff;
    font-weight:750;
}

.structure-availability-button:disabled{
    background:#dbe6f3;
    color:#718095;
    cursor:not-allowed;
}

.structure-loading-card{
    height:175px;
    border-radius:15px;
    background:linear-gradient(
        90deg,
        #f1f4f8 25%,
        #f8fafc 37%,
        #f1f4f8 63%
    );
    background-size:400% 100%;
    animation:structure-shimmer 1.25s infinite;
}

@keyframes structure-shimmer{
    0%{background-position:100% 0}
    100%{background-position:0 0}
}

@media(max-width:780px){
    .booking-step-card{
        padding:20px;
    }

    .service-search-control{
        grid-template-columns:40px minmax(0,1fr) 36px;
    }

    .service-search-button{
        grid-column:1/-1;
        min-height:46px;
    }

    .structure-grid{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   BOOKING V0.3 - SLOT REALI
   ========================================================= */

.structure-card.is-selected{
    border-color:#78adef;
    box-shadow:0 0 0 3px rgba(7,93,204,.06);
}

.structure-availability-button:not(:disabled){
    cursor:pointer;
    background:var(--blue);
    color:#fff;
}

.structure-availability-button:not(:disabled):hover{
    background:var(--blue-dark);
}

.availability-list{
    display:grid;
    gap:9px;
    margin-top:15px;
}

.availability-row{
    width:100%;
    display:grid;
    grid-template-columns:130px 90px minmax(180px,1fr) 100px 190px;
    gap:16px;
    align-items:center;
    padding:14px 16px;
    border:1px solid var(--line);
    border-radius:13px;
    background:#fff;
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    transition:.14s ease;
}

.availability-row:hover{
    border-color:#a9caf4;
    background:#f9fbff;
    transform:translateY(-1px);
}

.availability-row.is-first{
    border-color:#9fd5b4;
    background:#f8fdf9;
}

.availability-row.is-selected{
    border-color:#5f9fe9;
    box-shadow:0 0 0 3px rgba(7,93,204,.07);
    background:#f5f9ff;
}

.availability-date{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.availability-date small{
    color:var(--blue);
    font-size:10px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.10em;
}

.availability-date strong{
    color:var(--navy);
    font-size:14px;
}

.availability-time{
    color:var(--navy);
    font-size:20px;
    font-weight:850;
}

.availability-doctor{
    display:flex;
    flex-direction:column;
    min-width:0;
    color:#31445c;
    font-size:13px;
    font-weight:700;
}

.availability-doctor small{
    margin-top:3px;
    color:var(--muted);
    font-size:11px;
    font-weight:500;
}

.availability-price{
    color:#203a58;
    font-size:13px;
    font-weight:800;
    text-align:right;
}

.availability-choose{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
}

.availability-choose em{
    font-style:normal;
    color:#16844a;
    font-size:10px;
    font-weight:800;
}

.availability-choose b{
    color:var(--blue);
    font-size:12px;
}

.availability-loading{
    height:68px;
    border-radius:13px;
    background:linear-gradient(90deg,#f1f4f8 25%,#f8fafc 37%,#f1f4f8 63%);
    background-size:400% 100%;
    animation:structure-shimmer 1.25s infinite;
}

@media(max-width:900px){
    .availability-row{
        grid-template-columns:100px 70px minmax(140px,1fr) 80px;
    }

    .availability-choose{
        grid-column:1/-1;
        flex-direction:row;
        justify-content:flex-end;
    }
}

@media(max-width:620px){
    .availability-row{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .availability-doctor,
    .availability-price,
    .availability-choose{
        grid-column:1/-1;
    }

    .availability-price{
        text-align:left;
    }

    .availability-choose{
        justify-content:space-between;
        align-items:center;
    }
}


/* =========================================================
   BOOKING V0.3.2 - DISPONIBILITA UX/UI
   Hero prima disponibilità + date strip + slot grid
   ========================================================= */

.availability-step-card{
    overflow:hidden;
}

.first-availability-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin:18px 0 26px;
    padding:20px 22px;
    border:1px solid #a9ddbc;
    border-radius:16px;
    background:
        linear-gradient(135deg,#f7fdf9 0%,#ffffff 58%);
    box-shadow:0 10px 28px rgba(22,132,74,.07);
}

.first-availability-card.is-hidden{
    display:none;
}

.first-availability-copy{
    min-width:0;
}

.first-availability-badge{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:4px 9px;
    border-radius:999px;
    background:#e6f7ec;
    color:#16844a;
    font-size:10px;
    font-weight:850;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.first-availability-main{
    display:flex;
    align-items:center;
    gap:18px;
    margin-top:12px;
}

.first-availability-date{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.first-availability-date small{
    color:#16844a;
    font-size:10px;
    font-weight:850;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.first-availability-date strong{
    color:var(--navy);
    font-size:16px;
}

.first-availability-time{
    color:var(--navy);
    font-size:30px;
    line-height:1;
    font-weight:900;
    letter-spacing:-.03em;
}

.first-availability-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px 14px;
    margin-top:12px;
    color:#627289;
    font-size:12px;
}

.first-availability-meta strong{
    color:#1d3b5e;
}

.first-availability-cta{
    flex:0 0 auto;
    min-height:46px;
    border:0;
    border-radius:10px;
    padding:0 18px;
    background:#16844a;
    color:#fff;
    font-weight:800;
    cursor:pointer;
    transition:.15s ease;
}

.first-availability-cta:hover{
    background:#116f3e;
    transform:translateY(-1px);
}

.availability-days-wrap,
.availability-slots-wrap{
    margin-top:20px;
}

.availability-days-wrap.is-hidden,
.availability-slots-wrap.is-hidden{
    display:none;
}

.availability-days-head,
.availability-slots-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}

.availability-days-head > div:first-child,
.availability-slots-head > div:first-child{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.availability-section-label{
    color:#8694a6;
    font-size:10px;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.availability-days-head strong,
.availability-slots-head strong{
    color:var(--navy);
    font-size:15px;
}

.availability-days-actions{
    display:flex;
    gap:6px;
}

.days-nav-btn{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border:1px solid #d9e3ef;
    border-radius:9px;
    background:#fff;
    color:#49617d;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    transition:.16s ease;
}

.days-nav-btn:hover:not(:disabled){
    border-color:#abcaf1;
    color:var(--blue);
    background:#f7fbff;
}

.days-nav-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
}

.availability-month-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:14px;
}

.availability-month-chip{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    min-width:170px;
    padding:11px 13px;
    border:1px solid #dce6f0;
    border-radius:14px;
    background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    text-align:left;
    cursor:pointer;
    transition:.16s ease;
}

.availability-month-chip:hover{
    border-color:#a8c8f0;
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(15,53,102,.06);
}

.availability-month-chip.is-active{
    border-color:#6ba5e8;
    background:linear-gradient(180deg,#eff6ff 0%, #f8fbff 100%);
    box-shadow:0 0 0 3px rgba(7,93,204,.06);
}

.availability-month-name{
    color:var(--navy);
    font-size:13px;
    font-weight:850;
    text-transform:capitalize;
}

.availability-month-meta{
    color:#75859a;
    font-size:11px;
}

.availability-days-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(165px, 1fr));
    gap:12px;
}

.availability-day-card{
    min-height:138px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    padding:14px;
    border:1px solid #dfe7f1;
    border-radius:16px;
    background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    transition:.16s ease;
    position:relative;
    overflow:hidden;
}

.availability-day-card::after{
    content:'';
    position:absolute;
    inset:auto -28px -28px auto;
    width:84px;
    height:84px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(7,93,204,.10) 0%, rgba(7,93,204,0) 68%);
}

.availability-day-card:hover{
    border-color:#a7c7ef;
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(15,53,102,.08);
}

.availability-day-card.is-active{
    border-color:#6aa4e9;
    background:linear-gradient(180deg,#eef6ff 0%, #f8fbff 100%);
    box-shadow:0 0 0 3px rgba(7,93,204,.055), 0 12px 26px rgba(15,53,102,.08);
}

.availability-day-weekday{
    color:var(--blue);
    font-size:10px;
    font-weight:850;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.availability-day-main{
    display:flex;
    align-items:flex-end;
    gap:8px;
}

.availability-day-daynum{
    color:var(--navy);
    font-size:34px;
    line-height:1;
}

.availability-day-month{
    color:#76879a;
    font-size:13px;
    font-weight:700;
    text-transform:capitalize;
    margin-bottom:3px;
}

.availability-day-footer{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.availability-day-count{
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    padding:4px 8px;
    border-radius:999px;
    background:#edf4ff;
    color:#2b66b0;
    font-size:10px;
    font-weight:800;
}

.availability-day-firsttime{
    color:#6f8095;
    font-size:11px;
    font-weight:700;
}

.availability-slot-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.availability-slot-card{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:14px;
    border:1px solid #dfe7f1;
    border-radius:12px;
    background:#fff;
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    transition:.14s ease;
}

.availability-slot-card:hover{
    border-color:#9ec2ef;
    background:#f9fbff;
    transform:translateY(-1px);
}

.availability-slot-card.is-selected{
    border-color:#4d92df;
    background:#eef6ff;
    box-shadow:0 0 0 3px rgba(7,93,204,.06);
}

.availability-slot-card.is-first-day-slot{
    border-color:#b8dfc6;
}

.availability-slot-time{
    color:var(--navy);
    font-size:22px;
    line-height:1;
    font-weight:900;
}

.availability-slot-doctor{
    min-height:34px;
    color:#34475f;
    font-size:12px;
    font-weight:750;
    line-height:1.35;
}

.availability-slot-meta{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    color:#7b899b;
    font-size:10px;
}

.availability-slot-meta strong{
    color:#27425f;
    font-size:11px;
}

.availability-slot-select{
    width:100%;
    margin-top:3px;
    padding-top:8px;
    border-top:1px solid #edf1f6;
    color:var(--blue);
    font-size:11px;
    font-weight:800;
}

@media(max-width:980px){
    .availability-slot-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:760px){
    .first-availability-card{
        align-items:flex-start;
        flex-direction:column;
    }

    .first-availability-cta{
        width:100%;
    }

    .availability-slot-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:520px){
    .availability-slot-grid{
        grid-template-columns:1fr 1fr;
    }

    .availability-day-card{
        flex-basis:125px;
    }

    .first-availability-main{
        gap:12px;
    }

    .first-availability-time{
        font-size:26px;
    }
}


/* =========================================================
   BOOKING V0.4 - PAZIENTE / MINI CRM
   ========================================================= */

.patient-step-card{
    overflow:hidden;
}

.selected-slot-summary{
    display:flex;
    align-items:center;
    gap:14px;
    margin:4px 0 22px;
    padding:14px 16px;
    border:1px solid #cfe0f5;
    border-radius:13px;
    background:#f7fbff;
}

.selected-slot-icon{
    width:36px;
    height:36px;
    flex:0 0 36px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#e7f3ff;
    color:var(--blue);
    font-size:16px;
    font-weight:900;
}

.selected-slot-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.selected-slot-copy span{
    color:#7a899b;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.selected-slot-copy strong{
    color:var(--navy);
    font-size:14px;
}

.selected-slot-copy small{
    color:#61728a;
    font-size:11px;
}

.selected-slot-change{
    margin-left:auto;
    border:0;
    background:transparent;
    color:var(--blue);
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

.patient-search-layout{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
    gap:20px;
    align-items:start;
}

.patient-search-column,
.patient-selected-column{
    min-width:0;
}

.patient-search-control{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 38px;
    align-items:center;
    min-height:54px;
    overflow:hidden;
    border:2px solid #bed5f4;
    border-radius:12px;
    background:#fff;
    transition:.15s ease;
}

.patient-search-control:focus-within{
    border-color:#75a9ec;
    box-shadow:0 0 0 4px rgba(7,93,204,.065);
}

.patient-search-icon{
    color:var(--blue);
    text-align:center;
    font-size:22px;
}

.patient-search-control input{
    min-width:0;
    height:50px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--ink);
    font-size:14px;
}

.patient-search-clear{
    width:30px;
    height:30px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#7d8999;
    font-size:20px;
    cursor:pointer;
}

.patient-results{
    display:grid;
    gap:8px;
    margin-top:12px;
}

.patient-result-card{
    width:100%;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto 18px;
    gap:11px;
    align-items:center;
    padding:12px 13px;
    border:1px solid #e0e7f0;
    border-radius:12px;
    background:#fff;
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    transition:.14s ease;
}

.patient-result-card:hover{
    border-color:#a8c8f0;
    background:#f9fbff;
    transform:translateY(-1px);
}

.patient-result-card.is-selected{
    border-color:#6ca3e6;
    background:#eff6ff;
}

.patient-avatar{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#edf4ff;
    color:var(--blue);
    font-size:12px;
    font-weight:900;
}

.patient-result-main{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.patient-result-main strong{
    color:var(--navy);
    font-size:13px;
}

.patient-result-main small{
    color:#718096;
    font-size:10px;
}

.patient-result-main em{
    overflow:hidden;
    color:#52657d;
    font-size:10px;
    font-style:normal;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.patient-result-contact{
    color:#61748c;
    font-size:11px;
    white-space:nowrap;
}

.patient-result-arrow{
    color:#8190a3;
    font-size:20px;
}

.patient-selected-empty{
    min-height:220px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:26px;
    border:1px dashed #cad7e6;
    border-radius:14px;
    background:#fafcff;
    text-align:center;
}

.patient-selected-empty.is-hidden,
.patient-card.is-hidden{
    display:none;
}

.patient-empty-icon{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    margin-bottom:10px;
    border-radius:50%;
    background:#edf4ff;
    color:var(--blue);
    font-size:22px;
}

.patient-selected-empty strong{
    color:var(--navy);
    font-size:14px;
}

.patient-selected-empty p{
    max-width:260px;
    margin:7px 0 0;
    color:#7b899b;
    font-size:11px;
    line-height:1.45;
}

.patient-card{
    padding:18px;
    border:1px solid #dfe7f1;
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 26px rgba(20,49,86,.045);
}

.patient-card-head{
    display:flex;
    gap:12px;
    align-items:center;
}

.patient-card-avatar{
    width:48px;
    height:48px;
    flex:0 0 48px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#eaf3ff;
    color:var(--blue);
    font-size:13px;
    font-weight:900;
}

.patient-card-title{
    min-width:0;
}

.patient-card-title > span{
    color:var(--blue);
    font-size:9px;
    font-weight:850;
    letter-spacing:.12em;
}

.patient-card-title h3{
    margin:2px 0;
    color:var(--navy);
    font-size:17px;
}

.patient-card-title p{
    margin:0;
    color:#718096;
    font-size:10px;
}

.patient-contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:16px;
}

.patient-contact-grid > div,
.patient-crm-stats > div{
    min-width:0;
    padding:10px 11px;
    border-radius:10px;
    background:#f7f9fc;
}

.patient-contact-grid span,
.patient-crm-stats span{
    display:block;
    color:#8996a7;
    font-size:9px;
    font-weight:750;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.patient-contact-grid strong{
    display:block;
    overflow:hidden;
    margin-top:3px;
    color:#324860;
    font-size:11px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.patient-residence-box{
    display:flex;
    gap:10px;
    align-items:flex-start;
    margin-top:12px;
    padding:12px;
    border:1px solid #dce8f5;
    border-radius:11px;
    background:#f8fbff;
}

.patient-residence-box.is-warning{
    border-color:#f0d49b;
    background:#fffaf0;
}

.patient-residence-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#e9f3ff;
    color:var(--blue);
}

.patient-residence-box span{
    display:block;
    color:#8190a1;
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
}

.patient-residence-box strong{
    display:block;
    margin-top:2px;
    color:var(--navy);
    font-size:12px;
    line-height:1.4;
}

.patient-residence-box small{
    display:block;
    margin-top:5px;
    color:#748397;
    font-size:9px;
    line-height:1.4;
}

.patient-crm-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin-top:12px;
}

.patient-crm-stats strong{
    display:block;
    margin-top:3px;
    color:var(--navy);
    font-size:15px;
}

.patient-continue-button{
    width:100%;
    min-height:44px;
    margin-top:14px;
    border:0;
    border-radius:10px;
    background:var(--blue);
    color:#fff;
    font-weight:800;
    cursor:pointer;
}

.patient-continue-button:hover{
    background:var(--blue-dark);
}

.patient-continue-button:disabled{
    background:#78a8df;
}

.patient-loading-card,
.patient-card-loading{
    height:70px;
    border-radius:12px;
    background:linear-gradient(90deg,#f1f4f8 25%,#f8fafc 37%,#f1f4f8 63%);
    background-size:400% 100%;
    animation:structure-shimmer 1.25s infinite;
}

.patient-card-loading{
    height:260px;
}

.patient-card-error{
    padding:20px;
    color:#a73a32;
    font-size:12px;
    text-align:center;
}

@media(max-width:900px){
    .patient-search-layout{
        grid-template-columns:1fr;
    }

    .patient-selected-column{
        order:-1;
    }
}

@media(max-width:560px){
    .selected-slot-summary{
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .selected-slot-change{
        width:100%;
        margin-left:50px;
        text-align:left;
    }

    .patient-result-card{
        grid-template-columns:42px minmax(0,1fr) 18px;
    }

    .patient-result-contact{
        display:none;
    }

    .patient-contact-grid,
    .patient-crm-stats{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   V0.4.1 - Anteprima paziente / cambio sede
   ========================================================= */

.patient-preview-loading,
.patient-preview-warning{
    margin-top:12px;
    padding:10px 11px;
    border-radius:9px;
    font-size:10px;
    line-height:1.45;
}

.patient-preview-loading{
    background:#f4f7fb;
    color:#708096;
}

.patient-preview-warning{
    background:#fff8e8;
    color:#8a6519;
    border:1px solid #f2d99f;
}


/* =========================================================
   V0.4.4 - CARD SOLO CON DISPONIBILITA REALE
   ========================================================= */

.structure-first-availability{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:10px;
    padding:9px 10px;
    border-radius:9px;
    background:#f4f9ff;
}

.structure-first-availability span{
    color:#71849a;
    font-size:10px;
    font-weight:700;
}

.structure-first-availability strong{
    color:#0b5fc6;
    font-size:11px;
    text-align:right;
}


@media(max-width: 900px){
    .availability-days-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 560px){
    .availability-month-tabs{
        display:grid;
        grid-template-columns:1fr;
    }

    .availability-days-grid{
        grid-template-columns:1fr;
    }

    .availability-day-card{
        min-height:120px;
    }

    .availability-day-daynum{
        font-size:30px;
    }
}


/* =========================================================
   V0.5.3 - PRESTAZIONE SPECIFICA
   ========================================================= */

.service-detail-step{
    overflow:hidden;
}

.specific-services-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}

.specific-service-card{
    width:100%;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:14px;
    border:1px solid #dfe7f1;
    border-radius:14px;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
    color:var(--ink);
    text-align:left;
    cursor:pointer;
    transition:.16s ease;
}

.specific-service-card:hover{
    border-color:#9fc4ef;
    background:#f8fbff;
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(15,53,102,.06);
}

.specific-service-card.is-selected{
    border-color:#5f9fe9;
    background:#eef6ff;
    box-shadow:0 0 0 3px rgba(7,93,204,.06);
}

.specific-service-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:#edf4ff;
    color:var(--blue);
    font-size:19px;
    font-weight:700;
}

.specific-service-copy{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.specific-service-copy strong{
    color:var(--navy);
    font-size:13px;
    line-height:1.35;
}

.specific-service-copy small{
    color:#748398;
    font-size:10px;
}

.specific-service-action{
    color:var(--blue);
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}

.specific-service-loading{
    height:68px;
    border-radius:13px;
    background:linear-gradient(90deg,#f1f4f8 25%,#f8fafc 37%,#f1f4f8 63%);
    background-size:400% 100%;
    animation:structure-shimmer 1.25s infinite;
}

@media(max-width:780px){
    .specific-services-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:520px){
    .specific-service-card{
        grid-template-columns:38px minmax(0,1fr);
    }

    .specific-service-action{
        grid-column:2;
    }
}


/* =========================================================
   V0.5.5 - DIAGNOSTIC PICKER
   ========================================================= */

.diagnostic-step-heading{
    margin-bottom:18px;
}

.diagnostic-kicker{
    display:block;
    margin-bottom:4px;
    color:#7357df;
    font-size:9px;
    font-weight:900;
    letter-spacing:.16em;
}

.diagnostic-picker{
    display:grid;
    gap:18px;
}

.diagnostic-search-panel{
    position:relative;
    padding:18px;
    border:1px solid #d9e8f8;
    border-radius:18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(119,89,222,.10), transparent 30%),
        linear-gradient(135deg,#f7fbff 0%,#ffffff 65%);
}

.diagnostic-search-box{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) 38px;
    align-items:center;
    min-height:58px;
    border:2px solid #a9ccef;
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 24px rgba(17,68,126,.055);
    transition:.16s ease;
}

.diagnostic-search-box:focus-within{
    border-color:#5d9ee7;
    box-shadow:0 0 0 5px rgba(7,93,204,.07), 0 12px 30px rgba(17,68,126,.07);
}

.diagnostic-search-symbol{
    color:var(--blue);
    text-align:center;
    font-size:24px;
}

.diagnostic-search-box input{
    min-width:0;
    height:54px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--navy);
    font-size:15px;
    font-weight:650;
}

.diagnostic-search-box input::placeholder{
    color:#8e9bad;
    font-weight:500;
}

.diagnostic-search-clear{
    width:30px;
    height:30px;
    border:0;
    border-radius:8px;
    background:#f2f5f9;
    color:#718095;
    font-size:20px;
    cursor:pointer;
}

.diagnostic-search-hint{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    margin-top:11px;
    color:#8090a4;
    font-size:10px;
}

.diagnostic-search-hint > span{
    font-weight:750;
}

.diagnostic-suggestion{
    border:0;
    border-radius:999px;
    padding:5px 9px;
    background:#eaf3ff;
    color:#316cae;
    font-size:10px;
    font-weight:750;
    cursor:pointer;
}

.diagnostic-suggestion:hover{
    background:#dcecff;
}

.diagnostic-filter-zone{
    padding:14px 16px 16px;
    border:1px solid #e2e9f2;
    border-radius:16px;
    background:#fff;
}

.diagnostic-filter-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}

.diagnostic-filter-head > div:first-child{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.diagnostic-filter-head strong{
    color:var(--navy);
    font-size:14px;
}

.diagnostic-counter{
    min-width:72px;
    padding:8px 11px;
    border-radius:12px;
    background:#f2f6fb;
    color:#6d7d91;
    font-size:10px;
    text-align:center;
}

.diagnostic-counter strong{
    display:block;
    color:var(--navy);
    font-size:18px;
    line-height:1;
}

.diagnostic-filter-chips{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.diagnostic-filter-chip{
    min-height:34px;
    border:1px solid #dde6f0;
    border-radius:999px;
    padding:0 12px;
    background:#fff;
    color:#607289;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
    transition:.14s ease;
}

.diagnostic-filter-chip:hover{
    border-color:#a9c8ee;
    color:var(--blue);
    background:#f7fbff;
}

.diagnostic-filter-chip.is-active{
    border-color:#6da6e8;
    background:#eaf4ff;
    color:#075dcc;
    box-shadow:0 0 0 3px rgba(7,93,204,.05);
}

.diagnostic-results-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.diagnostic-exam-card{
    min-height:86px;
    position:relative;
}

.diagnostic-exam-card:hover .specific-service-icon{
    transform:scale(1.04);
}

.diagnostic-exam-category{
    display:inline-flex;
    align-self:flex-start;
    margin-bottom:1px;
    color:#725bd0;
    font-size:8px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.diagnostic-more-wrap{
    display:flex;
    justify-content:center;
}

.diagnostic-more-button{
    min-height:43px;
    border:1px solid #bed4ef;
    border-radius:11px;
    padding:0 20px;
    background:#f7fbff;
    color:var(--blue);
    font-size:11px;
    font-weight:850;
    cursor:pointer;
    transition:.15s ease;
}

.diagnostic-more-button:hover{
    border-color:#82b2ea;
    background:#eef6ff;
    transform:translateY(-1px);
}

.diagnostic-more-button.is-hidden{
    display:none;
}

@media(max-width:780px){
    .diagnostic-results-grid{
        grid-template-columns:1fr;
    }

    .diagnostic-filter-head{
        align-items:flex-start;
    }
}

@media(max-width:520px){
    .diagnostic-search-panel{
        padding:13px;
    }

    .diagnostic-filter-chips{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .diagnostic-filter-chip{
        border-radius:10px;
    }
}


/* =========================================================
   V0.5.8 - STEP RIEPILOGO / CONFERMA
   ========================================================= */

.booking-summary-step{
    overflow:hidden;
}

.summary-kicker{
    display:block;
    margin-bottom:3px;
    color:#138a4c;
    font-size:9px;
    font-weight:900;
    letter-spacing:.16em;
}

.booking-summary-shell{
    display:grid;
    gap:16px;
}

.booking-summary-hero{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:15px;
    align-items:center;
    padding:18px 20px;
    border:1px solid #afe0c1;
    border-radius:17px;
    background:
        radial-gradient(circle at 100% 0%, rgba(27,150,83,.09), transparent 30%),
        linear-gradient(135deg,#f8fdf9 0%,#ffffff 68%);
    box-shadow:0 10px 28px rgba(22,132,74,.055);
}

.booking-summary-check{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#e5f7eb;
    color:#16844a;
    font-size:20px;
    font-weight:900;
}

.booking-summary-hero-copy{
    min-width:0;
}

.booking-summary-hero-copy > span{
    display:block;
    color:#16844a;
    font-size:9px;
    font-weight:900;
    letter-spacing:.12em;
}

.booking-summary-hero-copy strong{
    display:block;
    margin-top:3px;
    color:var(--navy);
    font-size:18px;
    line-height:1.25;
}

.booking-summary-hero-copy p{
    margin:4px 0 0;
    color:#63758b;
    font-size:11px;
}

.booking-summary-price{
    min-width:100px;
    padding-left:18px;
    border-left:1px solid #dce9e1;
    text-align:right;
}

.booking-summary-price span{
    display:block;
    color:#819086;
    font-size:9px;
    font-weight:750;
    text-transform:uppercase;
}

.booking-summary-price strong{
    display:block;
    margin-top:3px;
    color:#12395b;
    font-size:22px;
}

.booking-summary-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.summary-card{
    display:grid;
    grid-template-columns:40px minmax(0,1fr) auto;
    gap:11px;
    align-items:center;
    min-height:94px;
    padding:14px;
    border:1px solid #dfe7f1;
    border-radius:14px;
    background:#fff;
    transition:.14s ease;
}

.summary-card:hover{
    border-color:#c2d5eb;
    box-shadow:0 8px 22px rgba(19,54,95,.045);
}

.summary-card-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:#edf4ff;
    color:var(--blue);
    font-size:18px;
    font-weight:800;
}

.summary-card-body{
    min-width:0;
}

.summary-card-label{
    display:block;
    color:#8895a6;
    font-size:8px;
    font-weight:850;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.summary-card-body strong{
    display:block;
    margin-top:3px;
    overflow:hidden;
    color:var(--navy);
    font-size:13px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.summary-card-body p{
    margin:4px 0 0;
    overflow:hidden;
    color:#6f7f93;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.summary-edit-button{
    border:0;
    border-radius:8px;
    padding:7px 9px;
    background:#f2f6fb;
    color:#4c6d93;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
}

.summary-edit-button:hover{
    background:#e7f1fc;
    color:var(--blue);
}

.booking-summary-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:16px;
    border-radius:14px;
    background:#f6f9fc;
}

.summary-security-note{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.summary-security-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e6f7ec;
    color:#16844a;
    font-size:13px;
    font-weight:900;
}

.summary-security-note strong{
    color:#31465e;
    font-size:11px;
}

.summary-security-note p{
    margin:2px 0 0;
    color:#7a899b;
    font-size:9px;
}

.final-confirm-booking{
    min-width:230px;
    min-height:52px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:12px;
    background:#168a4c;
    color:#fff;
    cursor:pointer;
    transition:.16s ease;
}

.final-confirm-booking:hover:not(:disabled){
    background:#11753f;
    transform:translateY(-1px);
    box-shadow:0 9px 22px rgba(22,138,76,.18);
}

.final-confirm-booking span{
    font-size:12px;
    font-weight:900;
}

.final-confirm-booking small{
    margin-top:2px;
    color:rgba(255,255,255,.78);
    font-size:9px;
}

.final-confirm-booking.is-done{
    background:#6d8298;
}

.booking-confirmation-status{
    display:flex;
    gap:11px;
    align-items:flex-start;
    padding:13px 14px;
    border:1px solid #b9dbc6;
    border-radius:12px;
    background:#f7fcf8;
}

.booking-confirmation-status.is-hidden{
    display:none;
}

.booking-confirmation-status-icon{
    width:30px;
    height:30px;
    flex:0 0 30px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#e4f6ea;
    color:#16844a;
    font-weight:900;
}

.booking-confirmation-status strong{
    color:#1e6540;
    font-size:11px;
}

.booking-confirmation-status p{
    margin:3px 0 0;
    color:#687a6f;
    font-size:9px;
    line-height:1.45;
}

@media(max-width:760px){
    .booking-summary-grid{
        grid-template-columns:1fr;
    }

    .booking-summary-footer{
        align-items:stretch;
        flex-direction:column;
    }

    .final-confirm-booking{
        width:100%;
    }
}

@media(max-width:520px){
    .booking-summary-hero{
        grid-template-columns:42px minmax(0,1fr);
    }

    .booking-summary-price{
        grid-column:1/-1;
        padding:11px 0 0;
        border-top:1px solid #dce9e1;
        border-left:0;
        text-align:left;
    }

    .summary-card{
        grid-template-columns:38px minmax(0,1fr);
    }

    .summary-edit-button{
        grid-column:2;
        justify-self:start;
    }
}

/* V0.8.0 CALL CENTER CRM */
.sidebar-profile-badge{margin:0 12px 14px;display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #d8e7f7;border-radius:12px;background:#f5f9ff}.sidebar-profile-dot{width:9px;height:9px;border-radius:50%;background:#17a35a;box-shadow:0 0 0 4px rgba(23,163,90,.1)}.sidebar-profile-badge small{display:block;color:#8996a7;font-size:7px;font-weight:900;letter-spacing:.11em}.sidebar-profile-badge strong{display:block;color:var(--navy);font-size:10px}.sidebar-user-meta{display:flex;flex-direction:column}.sidebar-user-meta small{color:#94a0af;font-size:8px}.crm-patient-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;margin-bottom:12px}.crm-patient-title>span{display:block;color:#075dcc;font-size:8px;font-weight:900;letter-spacing:.12em}.crm-patient-title h3{margin:2px 0 0;color:var(--navy);font-size:15px}.crm-patient-title p{margin:2px 0 0;color:#8090a2;font-size:9px}.crm-segment-badge{padding:7px 9px;border-radius:999px;background:#eaf4ff;color:#2769b7;font-size:8px;font-weight:850}.crm-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:12px;padding:4px;border-radius:11px;background:#f1f5f9}.crm-tab{min-height:32px;border:0;border-radius:8px;background:transparent;color:#77869a;font-size:9px;font-weight:800}.crm-tab.is-active{background:#fff;color:var(--blue);box-shadow:0 2px 8px rgba(22,61,106,.08)}.crm-tab-panel{display:none}.crm-tab-panel.is-active{display:block}.crm-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.crm-kpi-grid>div{padding:9px;border:1px solid #e2e9f1;border-radius:10px;background:#fbfdff}.crm-kpi-grid span{display:block;color:#8794a5;font-size:7px}.crm-kpi-grid strong{display:block;margin-top:4px;color:var(--navy);font-size:16px}.crm-insight-box,.crm-profile-block{margin-top:10px;padding:11px;border:1px solid #d9e7f5;border-radius:11px;background:#fff}.crm-section-label{display:block;margin-bottom:8px;color:#8290a2;font-size:7px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.crm-insight-row,.crm-ranking-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #edf2f6}.crm-insight-row:last-child,.crm-ranking-row:last-child{border-bottom:0}.crm-insight-row span,.crm-ranking-row span{color:#6f8093;font-size:8px}.crm-insight-row strong{max-width:58%;color:#233c57;font-size:8px;text-align:right}.crm-ranking-row strong{color:var(--blue);font-size:8px}.crm-history-list{display:grid;gap:7px}.crm-history-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:9px;padding:9px;border:1px solid #e1e9f2;border-radius:10px;background:#fff}.crm-history-date strong,.crm-history-main strong{display:block;color:var(--navy);font-size:9px}.crm-history-date span,.crm-history-main span{display:block;margin-top:2px;color:#8190a2;font-size:8px}.crm-profile-disclaimer{padding:9px 10px;border-radius:9px;background:#fff8e8;color:#936a21;font-size:7px}.crm-empty-mini{padding:10px 0;color:#95a0ad;font-size:8px;text-align:center}@media(max-width:560px){.crm-patient-head{grid-template-columns:42px minmax(0,1fr)}.crm-segment-badge{grid-column:2;justify-self:start}.crm-kpi-grid{grid-template-columns:1fr}}


/* =========================================================
   V0.8.1 - FIX SEARCH BUTTON + CRM STANDALONE
   ========================================================= */

/* La X nascosta non deve far slittare il pulsante Cerca nella colonna da 42px. */
.service-search-icon{grid-column:1;}
.service-search-control input{grid-column:2;}
.service-search-clear{grid-column:3;}
.service-search-button{grid-column:4;min-width:104px;white-space:nowrap;}

.crm-page{
    max-width:1280px;
    margin:0 auto;
    padding:28px 30px 48px;
}

.crm-page-head{
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:flex-end;
    margin-bottom:18px;
}

.crm-page-head h1{
    margin:4px 0 0;
    color:var(--navy);
    font-size:29px;
}

.crm-page-head p{
    margin:5px 0 0;
    color:#738399;
    font-size:12px;
}

.crm-page-badge{
    padding:9px 12px;
    border:1px solid #cce2f7;
    border-radius:999px;
    background:#f4f9ff;
    color:#1765bc;
    font-size:9px;
    font-weight:900;
}

.crm-workspace{
    display:grid;
    grid-template-columns:minmax(340px,.78fr) minmax(520px,1.22fr);
    gap:16px;
    align-items:start;
}

.crm-search-card,
.crm-detail-card{
    border:1px solid #dde6f0;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 34px rgba(24,54,91,.045);
}

.crm-search-card{
    padding:18px;
    position:sticky;
    top:18px;
}

.crm-search-card h2,
.crm-detail-card h2{
    margin:0;
    color:var(--navy);
    font-size:17px;
}

.crm-search-card > p{
    margin:4px 0 14px;
    color:#8190a3;
    font-size:10px;
}

.crm-standalone-search{
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 38px;
    align-items:center;
    min-height:52px;
    border:2px solid #b7d2f4;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}

.crm-standalone-search:focus-within{
    border-color:#6ea7e9;
    box-shadow:0 0 0 4px rgba(7,93,204,.06);
}

.crm-standalone-search .icon{
    text-align:center;
    color:var(--blue);
    font-size:20px;
}

.crm-standalone-search input{
    min-width:0;
    height:48px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--navy);
    font-size:13px;
}

.crm-standalone-clear{
    width:30px;
    height:30px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#7c8a9d;
    font-size:19px;
    cursor:pointer;
}

.crm-search-status{
    min-height:18px;
    margin:8px 2px 0;
    color:#8592a3;
    font-size:9px;
}

.crm-search-results{
    display:grid;
    gap:7px;
    margin-top:10px;
    max-height:calc(100vh - 280px);
    overflow:auto;
    padding-right:3px;
}

.crm-search-result{
    width:100%;
    display:grid;
    grid-template-columns:36px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    padding:10px;
    border:1px solid #e0e7ef;
    border-radius:11px;
    background:#fff;
    text-align:left;
    cursor:pointer;
}

.crm-search-result:hover,
.crm-search-result.is-selected{
    border-color:#8ab8ed;
    background:#f4f9ff;
}

.crm-search-result-avatar{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#eaf3ff;
    color:#1766bd;
    font-size:9px;
    font-weight:900;
}

.crm-search-result-copy{
    min-width:0;
}

.crm-search-result-copy strong{
    display:block;
    overflow:hidden;
    color:#263c57;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.crm-search-result-copy small{
    display:block;
    margin-top:3px;
    overflow:hidden;
    color:#8a97a7;
    font-size:8px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.crm-search-result-arrow{
    color:#90a0b2;
    font-size:15px;
}

.crm-detail-card{
    min-height:460px;
    padding:18px;
}

.crm-detail-empty{
    min-height:420px;
    display:grid;
    place-items:center;
    text-align:center;
    color:#8a98a8;
}

.crm-detail-empty .big-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    margin:0 auto 11px;
    border-radius:18px;
    background:#eef5ff;
    color:#1766bd;
    font-size:25px;
}

.crm-detail-empty strong{
    display:block;
    color:#334b67;
    font-size:13px;
}

.crm-detail-empty p{
    max-width:350px;
    margin:5px auto 0;
    font-size:9px;
    line-height:1.5;
}

.crm-standalone-actions{
    display:flex;
    gap:8px;
    margin-top:13px;
}

.crm-start-booking{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 13px;
    border:0;
    border-radius:10px;
    background:var(--blue);
    color:#fff;
    text-decoration:none;
    font-size:9px;
    font-weight:850;
}

@media(max-width:980px){
    .crm-workspace{grid-template-columns:1fr;}
    .crm-search-card{position:static;}
    .crm-search-results{max-height:360px;}
}

@media(max-width:780px){
    .service-search-control{
        grid-template-columns:40px minmax(0,1fr) 36px 94px;
    }
    .service-search-button{
        grid-column:4;
        min-width:94px;
        min-height:auto;
    }
}

/* =========================================================
   V0.8.3 - CRM EMPTY STATE VISIBILITY FIX
   ========================================================= */
.crm-detail-empty.is-hidden,
#crm-detail-content.is-hidden{
    display:none !important;
}


/* V0.8.4 - CRM -> booking con paziente preselezionato */
.booking-patient-context{max-width:1180px;margin:0 auto 14px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 14px;border:1px solid #bcd9f7;border-radius:14px;background:linear-gradient(135deg,#f6faff,#fff);box-shadow:0 7px 20px rgba(25,73,128,.04)}
.booking-patient-context.is-hidden{display:none}
.booking-patient-context-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e7f2ff;color:#075dcc;font-size:18px;font-weight:900}
.booking-patient-context-copy{min-width:0}.booking-patient-context-copy span{display:block;color:#075dcc;font-size:7px;font-weight:900;letter-spacing:.12em}.booking-patient-context-copy strong{display:block;margin-top:2px;overflow:hidden;color:var(--navy);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.booking-patient-context-copy small{display:block;margin-top:2px;color:#77879a;font-size:8px}.booking-patient-context-change{padding:7px 10px;border-radius:9px;background:#eef5fd;color:#326da9;font-size:8px;font-weight:850;text-decoration:none}.booking-patient-context-change:hover{background:#e2effc;color:#075dcc}@media(max-width:560px){.booking-patient-context{grid-template-columns:38px minmax(0,1fr)}.booking-patient-context-change{grid-column:2;justify-self:start}}
\n\n/* =========================================================\n   V0.8.6 - BRAND SIDEBAR COMPATTO\n   ========================================================= */\n\n.brand.brand--compact{\n    display:block;\n    padding:0 7px 20px;\n}\n\n.brand--compact .brand-box{\n    display:flex;\n    align-items:center;\n    justify-content:flex-start;\n    min-height:70px;\n}\n\n.brand--compact .brand-logo{\n    display:block;\n    width:190px;\n    max-width:100%;\n    height:auto;\n    object-fit:contain;\n    object-position:left center;\n}\n\n.brand--compact .brand-subline{\n    display:flex;\n    align-items:center;\n    margin-top:7px;\n}\n\n.brand-product-pill{\n    display:inline-flex;\n    align-items:center;\n    min-height:24px;\n    padding:0 9px;\n    border:1px solid #d5e5f7;\n    border-radius:999px;\n    background:#f5f9ff;\n    color:#075dcc;\n    font-size:9px;\n    font-weight:900;\n    letter-spacing:.12em;\n    text-transform:uppercase;\n}\n\n@media(max-width:900px){\n    .brand.brand--compact{\n        padding:0 0 20px;\n    }\n\n    .brand--compact .brand-logo{\n        width:48px;\n    }\n\n    .brand--compact .brand-subline{\n        display:none;\n    }\n}\n

/* =========================================================
   V0.8.7 - RIPRISTINO LOGO SIDEBAR
   ========================================================= */

.sidebar .brand{
    display:block;
    padding:0 8px 24px;
}

.sidebar .brand-box--sidebar{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
    min-height:0;
}

.sidebar .brand-logo--sidebar{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:190px;
    max-width:100%;
    height:auto;
    object-fit:contain;
    object-position:left center;
}

.sidebar .brand-text--sidebar{
    display:block;
}

.sidebar .brand-product-sidebar{
    color:#0b2f55;
    font-size:14px;
    font-weight:700;
    letter-spacing:.01em;
}

@media(max-width:900px){
    .sidebar .brand-box--sidebar{
        display:flex !important;
    }

    .sidebar .brand-logo--sidebar{
        width:48px;
    }

    .sidebar .brand-text--sidebar{
        display:none !important;
    }
}
