:root {
    --primary: #1675d1
}


html, body {
    width:100%;
    overflow-x:clip;
}

body {
    background: #F3E1CE;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    color: #26374a
}

h1 {
    font-family: "Baloo Bhai 2", sans-serif;
    font-size: 45px;
}

h2 {
    font-family: "Baloo Bhai 2", sans-serif;
    font-size: 40px;
}

.booking {
    max-width: 900px;
    margin: -20px auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 35px #19344b14;
    padding: 28px
}

.booking h2 {
    color: #DCAB78;
    font-size: 40px;
}

.unbooking {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 35px #19344b14;
    padding: 28px
}

.unbooking h2 {
    color: #DCAB78;
    font-size: 40px;
}

.data p {

    width: 100%;
    border: 1px solid #dcab78;
    background: #f3e1ce82;
    color: #dcab78;
    border-radius: 9px;
    padding: 12px 5px;
    font-weight: 600;

}

.week {
    display: grid;
    grid-template-columns: 42px repeat(7, minmax(0, 1fr)) 42px;
    gap: 7px;
    align-items: stretch
}

.day {
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: white;
    padding: 11px 2px;
    min-width: 0
}

.day.active {
    border: 2px solid #dcab78;
    background: #f3e1ce82
}

.day .name {
    font-size: .85rem
}

.day .date {
    font-size: .76rem;
    color: #65758a
}

.day .dot {
    display: block;
    margin: 7px auto 0;
    background: #2c9b6c;
    border-radius: 50%;
    width: 6px;
    height: 6px
}

.navday {
    border: 0;
    background: #e9edf2;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    align-self: center
}

.slot {
    width: 100%;
    border: 1px solid #dcab78;
    background: #f3e1ce82;
    color: #dcab78;
    border-radius: 9px;
    padding: 12px 5px;
    font-weight: 600
}

.slot:hover:not(:disabled), .slot.selected {
    background: #dcab78;
    color: white
}

.slot:disabled {
    background: #f0f1f3;
    color: #9aa3ad;
    border-color: #e3e6e9;
    cursor: not-allowed;
    text-decoration: line-through
}

.legend {
    font-size: .85rem;
    color: #667589
}

.pill {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    background: #dcab78
}

.pill.busy {
    background: #aab2bd
}

.calendar-btn {
    height: 54px;
    background: #DCAB78 !important;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #fff !important;
    font-weight: 600;
    opacity: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.calendar-btn:hover {
    background: transparent !important;
    color: #dcab78 !important;
    border: solid 1px #dcab78 !;

}

.calendar-btn-2 {
    background: #DCAB78 !important;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #fff !important;
    font-weight: 600;
    opacity: 100%;
}

.calendar-btn-2:hover {
    background: white !important;
    color: #dcab78 !important;
    border: solid 1px #dcab78 !;

}

.tab_generale {
    background: #dcab78;
    border-radius: 0px 20px 20px 0px;
    padding: 0px;
    min-height: 92vh;
}

.tab_generale h3 {
    font-family: "Baloo Bhai 2", sans-serif;
    font-size: 40px;
    color: white;
}

.titolo{
    font-family: "Baloo Bhai 2", sans-serif;
    font-size: 40px;
    color:#dcab78 !important;
}

.list-group-item {
    background: #F9F0E6;
    border-bottom: none;
    color: #dcab78;
    text-decoration: none;
  font-weight: 600;
}

.list-group-item:hover{
    background-color: #f0f1f3;
    border: white;
}

.list-group-item.active {
    background-color:#916639;
    color:white;
    border: none;
}

.list-group a {
    text-decoration: none !important;
}

.mediatica  {
    background:#68421a;
    margin-top: 30px;
}

.mediatica a {
    color:white;
    text-decoration: none;
}

/*grafica form */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 15px;
    background: #F3E1CE;
    font-family: 'Poppins', sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

.auth-container {
    position: relative;
    width: 950px;
    max-width: 100%;
    height: 760px;
    background: #fff;
    margin: 20px auto;
    padding: 0;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.auth-container h1 {
    font-weight: 700;
    margin: 0 0 20px;
}

.auth-container p {
    font-size: 20px;
    margin: 15px 0;
}

.auth-container form {
    width: 100%;
}

.auth-container .form-box {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-align: center;
    padding: 35px;
    z-index: 1;
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}

.auth-container.active .form-box {
    right: 50%;
}

.auth-container .form-box.register {
    visibility: hidden;
    overflow-y: auto;
}

.auth-container.active .form-box.register {
    visibility: visible;
}

/* INPUT */

.auth-container .input-box {
    position: relative;
    margin: 10px 0;
}

.auth-container .input-box input {
    width: 100%;
    height: auto;
    padding: 13px 48px 13px 18px;
    background: #F3E1CE;
    border-radius: 8px;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.auth-container .input-box input:focus {
    background: #f4f6ff;
    box-shadow: 0 0 0 2px #7494ec;
}

.auth-container .input-box input::placeholder {
    color: #888;
    font-weight: 400;
}

.auth-container .input-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #555;
}

.auth-container .input-box .toggle-password {
    cursor: pointer;
}

/* PASSWORD DIMENTICATA */

.auth-container .forgot-link {
    margin: 0 0 20px;
    text-align: right;
}

.auth-container .forgot-link a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.auth-container .forgot-link a:hover {
    color: #7494ec;
}

/* PULSANTI */

.auth-container .auth-btn {
    width: 100%;
    height: 48px;
    background: #dcab78;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.auth-container .auth-btn:hover {
    background: transparent;
    color: #dcab78;
    border: solid 1px #dcab78;

}

/* REGISTRAZIONE */

.auth-container .form_registrazione {
    margin-left: -6px;
    margin-right: -6px;
}

.auth-container .form_registrazione > div {
    padding-left: 6px;
    padding-right: 6px;
}

.auth-container .password-info {
    display: block;
    font-size: 13px;
    color: #777;
    text-align: left;
    line-height: 1.5;
}

.auth-container .required-info {
    font-size: 13px;
    color: #777;
    text-align: left;
}

.auth-container .privacy-box {
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0;
}

.auth-container .privacy-box label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-container .privacy-box input {
    margin-top: 4px;
    flex-shrink: 0;
}

.auth-container .privacy-box a {
    color: #7494ec;
    text-decoration: underline;
    display: inline-block;
    margin-top: 5px;
}

.alert {
    font-size: 16px;
}

    /* ANIMAZIONE */

.auth-container .toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-container .toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    width: 300%;
    height: 100%;
    background: #DCAB78;
    border-radius: 150px;
    z-index: 2;
    transition: 1.8s ease-in-out;
}

.auth-container.active .toggle-box::before {
    left: 50%;
}

.auth-container .toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    z-index: 2;
    transition: .6s ease-in-out;
    pointer-events: none;
}

form h1 {
    color: #dcab78;
}

.auth-container .toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
}

.auth-container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: .6s;
}

.auth-container .toggle-panel.toggle-right {
    right: -50%;
    transition-delay: .6s;
}

.auth-container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
}

.auth-container .toggle-panel p {
    margin-bottom: 20px;
}

.auth-container .toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: white;
    border-radius: 8px;
    box-shadow: none;
    color: #DCAB78;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
}

.auth-container .toggle-panel .btn:hover {
    background: transparent;
    color: white;
    border: 2px solid #fff;
}

.auth-container .form-box {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Vecchi browser Microsoft */
}

.auth-container .form-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}

#feedback:not(:empty) {
    background: #7bc985;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

#feedback_disdetta:not(:empty) {
    background: #db0000;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

#feedback_disdetta {
    margin-bottom: 15px;
}

.note-area {
    width: 100%;
}


/*admin*/
.auth-page .auth-container.admin {
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    min-height: 450px;
    height: auto;
    margin: 50px auto;
    padding: 30px;
}

/* Centra il form e annulla il posizionamento del login animato */
.auth-container.admin .form-box.login {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    padding: 20px;
    margin: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
}

.auth-container.admin .form-box.login form {
    width: 100%;
    max-width: 100%;
}

.auth-container.admin .titolo-login {
    text-align: center;
    margin-bottom: 25px;
    color: #dcab78;
}

.auth-container.admin .input-box {
    width: 100%;
}

.auth-container.admin .auth-btn {
    width: 100%;
}

.disdici_appuntamento {
    background-color: #d30000 !important;
}

.disdici_appuntamento:hover {
    color: #d30000 !important;
}

.vedi_storico {
    background-color: #eba40c !important;
}

.vedi_storico:hover {
   color: #eba40c !important;
}

.referto-page {
    max-width: 950px;
    margin: 0 auto;
}

/* referto*/

.referto-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.referto-header-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    background: #DCAB78;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 6px 20px rgba(220,171,120,.2);
}

.referto-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #C49664;
    margin-bottom: 5px;
}

.referto-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #292929;
    margin: 0 0 6px;
}

.referto-header p {
    color: #777;
    font-size: 14px;
    margin: 0;
}


.referto-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.045);
}


.referto-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 30px;
    background: #fcfaf7;
    border-bottom: 1px solid #eee8df;
}

.referto-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.referto-card-header h2 i {
    color: #DCAB78;
    font-size: 23px;
}

.referto-card-header span {
    color: #888;
    font-size: 13px;
}


.referto-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: #edf7f0;
    color: #328354;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.referto-status i {
    font-size: 16px;
}


.referto-card-body {
    padding: 35px 40px;
    color: #444;
    font-size: 15px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.referto-card-body p {
    margin-bottom: 15px;
}

.referto-card-body h2,
.referto-card-body h3,
.referto-card-body h4 {
    color: #333;
    font-weight: 700;
    margin: 20px 0 12px;
}

.referto-card-body ul {
    padding-left: 20px;
}

.referto-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 25px;
}

.referto-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    width: auto;
    text-decoration: none;
}

.referto-back i {
    font-size: 20px;
}
 /*dati paziente*/
.patient-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.045);
    margin-bottom: 30px;
}


.patient-card-body {
    padding: 30px;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.patient-info-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #faf5ef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C49664;
    font-size: 19px;
}

.patient-info > div:last-child {
    min-width: 0;
}

.patient-info span {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
}

.patient-info strong {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.table-dati {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.table-dati-paziente{
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    display: block;
}


/* MOBILE */

@media screen and (max-width: 650px) {

    .calendar-btn {
        line-height: 13px;
    }

    .lista-appuntamenti {
        border-bottom: 1px solid #DCAB78;
        padding-bottom: 24px;
        padding-top: 25px;
    }
    .data p {
        margin-bottom: 0px;
    }

    .unbooking h2 {
        color: #DCAB78;
        font-size: 25px;
    }

    .patient-card-header {
        padding: 0px;
    }

    .patient-card-body {
        padding: 0px 0px;
    }

    .patient-card-header h2 {
        font-size: 25px;
    }

    .patient-info strong {
        font-size: 13px;
    }

    .referto-header {
        align-items: flex-start;
        gap: 15px;
    }

    .referto-header-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 25px;
    }

    .referto-header h1 {
        font-size: 23px;
    }

    .referto-card-header {
        padding: 20px;
        flex-wrap: wrap;
    }

    .referto-card-body {
        padding: 25px 20px;
        font-size: 14px;
    }

    .referto-actions {
        justify-content: center;
    }

    .referto-back {
        width: 100%;
    }

    .auth-page {
        min-height: 100 dvh;
        padding: 15px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-container {
        width: 100%;
        max-width: 450px;
        height: 760px;
        max-height: none;
        min-height: 0;
        margin: 0 auto;
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
    }

    /* FORM LOGIN E REGISTRAZIONE */
    .auth-container .form-box {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 70%;
        padding: 20px 25px;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: center;
        justify-content: flex-start;
        transition: bottom .6s ease-in-out 1.2s,
        visibility 0s 1s;
    }

    .auth-container .form-box form {
        width: 100%;
        margin: auto 0;
    }

    .auth-container .form-box.register {
        visibility: hidden;
        align-items: flex-start;
    }

    .auth-container .form-box.register form {
        margin: 0;
        padding: 10px 0 20px;
    }

    .auth-container.active .form-box {
        right: 0;
        left: 0;
        bottom: 30%;
    }

    .auth-container.active .form-box.register {
        visibility: visible;
    }

    /* TITOLI */
    .auth-container h1 {
        font-size: 27px;
        margin-bottom: 18px;
    }

    /* CAMPI */
    .auth-container .form_registrazione {
        margin-left: -5px;
        margin-right: -5px;
    }

    .auth-container .form_registrazione > div {
        padding-left: 5px;
        padding-right: 5px;
    }

    .auth-container .input-box {
        margin: 10px 0;
    }

    .auth-container .input-box input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
        min-height: 46px;
        background: #f3e1ce !important;
    }

    .auth-container .input-box i {
        right: 15px;
        font-size: 19px;
    }

    /* PRIVACY */
    .auth-container .password-info {
        font-size: 11px;
        line-height: 1.4;
        margin-top: 8px;
    }

    .auth-container .required-info {
        font-size: 13px;
        margin: 10px 0;
    }

    .auth-container .privacy-box {
        margin: 10px 0 15px;
        font-size: 13px;
    }

    .auth-container .privacy-box label {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .auth-container .privacy-box input {
        flex-shrink: 0;
        margin-top: 3px;
    }

    /* BOTTONI */
    .auth-container .auth-btn {
        height: 46px;
        font-size: 14px;
    }

    /* ANIMAZIONE AZZURRA */
    .auth-container .toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .auth-container.active .toggle-box::before {
        left: 0;
        top: 70%;
    }

    .auth-container .toggle-panel {
        width: 100%;
        height: 30%;
        padding: 20px;
    }

    .auth-container .toggle-panel.toggle-left {
        left: 0;
        top: 0;
    }

    .auth-container.active .toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }

    .auth-container .toggle-panel.toggle-right {
        right: 0;
        bottom: -30%;
    }

    .auth-container.active .toggle-panel.toggle-right {
        right: 0;
        bottom: 0;
    }

    .auth-container .toggle-panel h1 {
        font-size: 25px;
        margin-bottom: 8px;
    }

    .auth-container .toggle-panel p {
        font-size: 13px;
        margin: 5px 0 15px;
    }

    .auth-container .toggle-panel .btn {
        width: 145px;
        height: 42px;
        font-size: 14px;
    }
}

/* SCHERMI MOLTO PICCOLI */

@media screen and (max-width: 400px) {

    .auth-page {
        padding: 10px;
    }

    .auth-container {
        height: 730px;
        border-radius: 16px;
    }

    .auth-container .form-box {
        padding: 15px 18px;
    }

    .auth-container h1 {
        font-size: 24px;
    }

    .auth-container .toggle-panel h1 {
        font-size: 23px;
    }

    .auth-container .input-box {
        margin: 8px 0;
    }

    .auth-container .input-box input {
        padding: 11px 42px 11px 14px;
        min-height: 44px;
        font-size: 13px;
    }
}

/* SCHERMI BASSI IN ALTEZZA */

@media screen and (max-width: 650px) and (max-height: 700px) {

    .auth-page {
        align-items: flex-start;
    }

    .auth-container {
        height: 700px;
    }

    .auth-container .form-box {
        overflow-y: auto;
    }
}

/*fine grafica form*/

@media (max-width: 650px) {
    .tab_generale {
        border-radius: 0px;
       min-height: 28vh;
    }

    .booking {
        margin: 10px;
        padding: 15px
    }

    .week {
        display: grid;
        grid-template-columns: 28px repeat(3, minmax(0, 1fr)) 28px;
        gap: 8px;
    }

    .week .day {
        min-height: 90px;
        padding: 12px 8px;
        font-size: 16px;
    }

    .week .day:nth-of-type(n+5) {
        display: none;
    }

    .navday {
        width: 28px;
        height: 28px
    }

    .day {
        padding: 9px 0
    }

    .day .name {
        font-size: .67rem
    }

    .day .date {
        font-size: .62rem
    }

    .day .dot {
        width: 5px;
        height: 5px
    }
}