﻿*, *::before, *::after {
    box-sizing: border-box;
}


body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #dddbdf;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-size: 14px;
    /*animation: fadeIn 1s ease-in;*/
}

h1, h2, h3 {
    overflow-wrap: break-word;
    word-wrap: break-word; /* per vecchi browser */
}

main {
    flex: 1;
    background: #fff;
    width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin: auto;
}


header {
    background-color: #fff;
    width: 100%;
    min-height: 50px;
    padding-bottom: 20px;

}

    header .menu_div {
        width: 1200px;
        margin: auto;
    }

    header .top {
        padding: 15px 0;
        height: 87px;
    }

    header .logo {
        display: block;
        float: left;
        width: 210px;
    }

    header .separatore_verticale {
        width: 1px;
        float: left;
        padding: 1px 15px;
    }
    
    header .direzione {
        width: 80%;
        text-align: center;        
    }

    header .boxaccount {
        margin-top: -50px;
        width: 300px;
        float: right;
    }

    header h1 {
        font-size: 14px;
        color: #006266;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        display: block;
    }

    

footer {
    background: #fff;
    color: #646464;
    font-size: 11px;
    vertical-align: bottom;
    min-height: 50px;
    margin-left: auto;
    margin-right: auto;
    /*width: 100%;
    padding-left: 10px;
    padding-right: 10px;*/
}

    footer a {
        color: #646464;
    }

    footer .main {
        background-color: #fff;
    }

    footer .left {
        float: left;
        text-align: left;
        background: url(../images/bg_footer.png) right top no-repeat;
        height: 80px;
        width: 890px;
        padding: 7px 0 10px 20px;
    }

    footer .right {
        float: right;
        text-align: right;
        background: url(../images/fs_logo.png) left top no-repeat;
        background-color: #ededf1;
        height: 80px;
        width: 310px;
        padding: 7px 0px 10px 20px;
    }

    footer p {
        color: #646464;
        font-family: Arial;
        font-size: 11px;
        background-color: transparent;
    }


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

    a img {
        border: none;
    }

p {
    font-weight: 300;
    color: #3b3b3b;
}

h1 {
    font-size: 20px;
    color: #dc0030;
    font-weight: 400;
    margin-top: 0;
}

h2 {
    color: #dc0030;
    font-weight: 700;
    font-size: 17px;
    margin: 0;
}

h3 {
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    color: #3b3b3b;
    margin: 15px 0;
}

h4 {
    font-weight: 700;
    font-size: 15px;
    color: #3b3b3b;
    margin: 8px 0;
}

textarea {
    border: none;
}

.clear {
    clear: both;
}


.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.logon {
    background-color: #f0f4f8;
    color: #1b1b1b;
    animation: fadeIn 1s ease-in;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

.card-content {
    flex: 1;
    text-align: left;
    padding: 0 1rem;
}

.card img {
    display: block;
    /*max-width: 100%;*/
    width: 400px;
    height: auto;
}

.card h2 {
    font-size: 1.5rem;
    color: #227d04; /*#005bac;*/
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1rem;
    color: #333;
}


.btn-login {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    background-color: #005bac;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

    .btn-login:hover {
        background-color: #004080;
    }


.box {
    border: 1px solid #f4f4f4;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: 0 0 5px #f4f4f4;
}

.box_scelta {
    width: 558px;
    float: left;
    padding: 10px;
    border: 1px solid #f4f4f4;
    margin: 10px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: 0 0 5px #f4f4f4;
    padding-left: 70px;
    padding-bottom: 30px;
    min-height: 58px;
}

    .box_scelta p {
        margin: 0;
    }

    .box_scelta.home_clienti {
        background: url(../images/home_clienti.png) 10px 10px no-repeat;
    }

    .box_scelta.home_dipendenti {
        background: url(../images/home_dipendenti.png) 10px 10px no-repeat;
    }

    .box_scelta.home_privati {
        background: url(../images/home_privati.png) 10px 10px no-repeat;
    }

    .box_scelta.profilo {
        background: url(../images/profilo_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.certificati {
        background: url(../images/certificati_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.contabilita {
        background: url(../images/contabilita_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.prenotazioni {
        background: url(../images/prenotazioni_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.anagrafica {
        background: url(../images/anagrafica_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.gestione_prestazioni {
        background: url(../images/gestione_prestazioni_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.reportistica {
        background: url(../images/reportistica_icon.png) 10px 10px no-repeat;
    }

    .box_scelta.pagamento {
        background: url(../images/pagamento_icon.png) 10px 10px no-repeat;
    }

    .box_scelta h2 {
        background: url(../images/arrow_right.jpg) right top no-repeat;
    }


h1.icon {
    padding: 18px 10px;
    border: 1px solid #f4f4f4;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    color: #de0032;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 0 5px #f4f4f4;
    -moz-box-shadow: 0 0 5px #f4f4f4;
    -webkit-box-shadow: 0 0 5px #f4f4f4;
    padding-left: 70px;
}

    h1.icon.anagrafica {
        background: url(../images/anagrafica_icon.png) 10px center no-repeat;
    }

    h1.icon.prenotazioni {
        background: url(../images/prenotazioni_icon.png) 10px center no-repeat;
    }

    h1.icon.profilo {
        background: url(../images/profilo_icon.png) 10px center no-repeat;
    }

    h1.icon.ust {
        background: url(../images/ust_icon.png) 10px center no-repeat;
    }

    h1.icon.certificati {
        background: url(../images/certificati_icon.png) 10px center no-repeat;
    }

    h1.icon.fatture {
        background: url(../images/contabilita_icon.png) 10px center no-repeat;
    }

    h1.icon.prestazioni {
        background: url(../images/gestione_prestazioni_icon.png) 10px center no-repeat;
    }

    h1.icon.reportistica {
        background: url(../images/reportistica_icon.png) 10px center no-repeat;
    }

    h1.icon.pagamento {
        background: url(../images/pagamento_icon.png) 10px center no-repeat;
    }

    h1.icon.carrello {
        background: url(../images/carrello.png) 10px center no-repeat;
    }

label {
    font-size: 14px;
    font-weight: 300;
}

.StandardDate .text-box.single-line {
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border: 1px solid #e1e1e1;
    padding: 5px 8px;
    vertical-align: middle;
    width: 120px !important;
    /*max-width: 80px !important;
    min-width: 80px !important;*/
    box-sizing: border-box;
}

.textfield {
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border: 1px solid #e1e1e1;
    padding: 5px 8px;
    vertical-align: middle;
}

.largefull {
    width: 100%;
    clear: both;
}

.fl {
    float: left;
}

.vac {
    padding: 5px 8px;
    vertical-align: middle
}

.har {
    text-align: right;
}

.large-auto {
    width: auto;
}

.large-40 {
    width: 40px;
}

.large-80 {
    width: 80px;
}

.large-100 {
    width: 100px;
}

.large-120 {
    width: 120px;
}

.large-150 {
    width: 150px;
}

.large-175 {
    width: 175px;
}

.large-200 {
    width: 200px;
}

.large-250 {
    width: 250px;
}

.large-300 {
    width: 300px;
}

.large-350 {
    width: 350px;
}

.large-400 {
    width: 400px;
}

.large-450 {
    width: 450px;
}

.large-500 {
    width: 500px;
}

.large-550 {
    width: 550px;
}

.text-box.single-line {
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border: 1px solid #e1e1e1;
    padding: 5px 8px;
    vertical-align: middle;
}

.submit_cerca {
    background: #eeeef2 url(../images/bg_submit.jpg) repeat-x;
    border: 1px solid #e1e1e1;   
    padding: 5px 8px;
    vertical-align: middle;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.scrollme {
    height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.main_sx {
    width: 50%;
    float: left;
}

.sidebar_dx {
    width: 48%;
    float: left;
    margin-left: 2%;
}

.sidebar_sx {
    width: 300px;
    float: left;
}


.bottone_no_pad {
    color: #fff !important;
    font-size: 13px;
    text-shadow: 1px 1px 1px #003f42;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
    border: none;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 700;
}


.bottone {
    padding: 6px 20px;
    color: #fff !important;
    font-size: 13px;
    text-shadow: 1px 1px 1px #003f42;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
    border: none;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 700;
}

.bottone_small {
    padding: 3px 12px;
    color: #fff !important;
    font-size: 13px;
    text-shadow: 1px 1px 1px #003f42;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
    border: none;
    text-transform: capitalize !important;
    text-decoration: none !important;
    font-weight: 400;
}

.btn-pdf {
    background: url('../images/pdf.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}

.btn-info {
    background: url('../images/info.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}

.btn-add {
    background: url('../images/add.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}

.btn-delete {
    background: url('../images/delete.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}

.btn-edit {
    background: url('../images/edit.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}

.btn-calendar {
    background: url('../images/calendar.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}

.btn-search {
    background: url('../images/cerca.png') no-repeat;
    background-size: contain;
    display: block;
    height: 20px;
    width: 20px;
}



.bottone_big {
    padding: 6px 10px;
    color: #fff !important;
    font-size: 13px;
    text-shadow: 1px 1px 1px #003f42;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
    border: none;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 700;
    text-align: center;
}

.bottone_big_xxx {
    padding: 6px 10px;
    color: #fff !important;
    font-size: 18px;
    text-shadow: 1px 1px 1px #003f42;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    cursor: pointer;
    border: none;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 900;
    text-align: center;
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.65;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
}


.verde {
    /* background:#006266 url(../images/bg_bottone_verde.jpg) right center repeat-x; */
    /*background-color: #006266;*/
    background: linear-gradient(to bottom, #006266, #01BCBC, #006266);
}

    .verde:hover {
        /* background:url(../images/bg_bottone_verde_hover.jpg) right center repeat-x; */
        background: linear-gradient(to bottom, #01BCBC, #01BCBC, #006266);
        text-decoration: none;
    }

.rosso {
    /*background: #960505 url(../images/bg_bottone_rosso.jpg) right center repeat-x;*/
    background: linear-gradient(to bottom, #960505, #E00707, #960505);
}

    .rosso:hover {
        /*background: url(../images/bg_bottone_rosso_hover.jpg) right center repeat-x;*/
        background: linear-gradient(to bottom, #E00707, #E00707, #960505);
        text-decoration: none;
    }

.giallo {
    /*background: #960505 url(../images/bg_bottone_rosso.jpg) right center repeat-x;*/
    background: linear-gradient(to bottom, #ffcc00, #e6b800, #ffcc00);
}

    .giallo:hover {
        /*background: url(../images/bg_bottone_rosso_hover.jpg) right center repeat-x;*/
        background: linear-gradient(to bottom, #e6b800, #e6b800, #ffcc00);
        text-decoration: none;
    }

.blu {
    /*background: #960505 url(../images/bg_bottone_rosso.jpg) right center repeat-x;*/
    background: linear-gradient(to bottom, #668cff, #1a53ff, #002db3);
}

    .blu:hover {
        /*background: url(../images/bg_bottone_rosso_hover.jpg) right center repeat-x;*/
        background: linear-gradient(to bottom, #002db3, #1a53ff, #668cff);
        text-decoration: none;
    }

.indietro {
    padding-left: 30px;
    background-color: #006266;
    background-image: url(../images/left_arrow.png), url(../images/bg_bottone_rosso.jpg);
    background-position: 10px center, right center;
    background-repeat: no-repeat, repeat-x;
}

    .indietro:hover {
        background-color: #006266;
        background-image: url(../images/left_arrow.png), url(../images/bg_bottone_rosso_hover.jpg);
        background-position: 10px center, right center;
        background-repeat: no-repeat, repeat-x;
    }

.avanti {
    padding-right: 30px;
    background-color: #006266;
    background-image: url(../images/right_arrow.png), url(../images/bg_bottone_verde.jpg);
    background-position: 73px center, right center;
    background-repeat: no-repeat, repeat-x;
}

    .avanti:hover {
        background-color: #006266;
        background-image: url(../images/right_arrow.png), url(../images/bg_bottone_verde_hover.jpg);
        background-position: 73px center, right center;
        background-repeat: no-repeat, repeat-x;
    }

.crea {
    padding-left: 30px;
    background-image: url(../images/plus.png), url(../images/bg_bottone_verde.jpg);
    background-position: 10px center, right center;
    background-repeat: no-repeat, repeat-x;
}

div.date {
    background: #ededf1;
    padding: 15px;
}

/*.login {*/
/*background-color: #003049;*/
/*width: 15%;*/
/*height: 500px;*/
/*margin-left: auto;*/
/*border: 5px solid #003049;*/
/*display: flex;
    flex-direction: column;*/
/* justify-content: flex-end; */
/*right align*/
/*align-items: flex-end;*/
/*left align*/
/* align-items: flex-start; */
/* justify-content: flex-end; */

/*flex-wrap: wrap;
}*/

.persona_model {
    width: 100%;
    margin: 0;
}

    .persona_model label {
        display: block;
        float: left;
        width: 340px;
        margin-right: 10px;
        text-align: right;
    }

    .persona_model .right {
        width: 350px;
        float: left;
        padding: 3px 0;
    }

        .persona_model .right span {
            color: #f00;
        }

        .persona_model .right .textfield, .persona_model .right .text-box.single-line {
            width: 280px;
            display: block;
        }

        .persona_model .right a {
            color: #e10b0b;
        }

.profilo {
}

    .profilo label {
        display: block;
        float: left;
        width: 240px;
        margin-right: 10px;
        text-align: left;
    }

    .profilo .right {
        width: 250px;
        float: left;
        padding: 3px 0;
        min-height: 24px;
    }

        .profilo .right span {
            color: #f00;
        }

        .profilo .right .textfield {
            width: 180px;
            display: block;
        }

        .profilo .right a {
            color: #e10b0b;
        }

.modifica_anagrafica {
    width: 500px;
    margin: 0;
}

    .modifica_anagrafica label {
        display: block;
        float: left;
        width: 240px;
        margin-right: 10px;
        text-align: right;
    }

    .modifica_anagrafica .right {
        width: 250px;
        float: left;
        padding: 3px 0;
    }

        .modifica_anagrafica .right span {
            color: #f00;
        }

        .modifica_anagrafica .right .textfield, .modifica_anagrafica .right .text-box.single-line {
            width: 180px;
            display: block;
        }

        .modifica_anagrafica .right a {
            color: #e10b0b;
        }

.modelli {
    background: #ededf1;
    padding: 15px;
}

    .modelli .left {
        float: left;
        width: 490px;
    }

    .modelli .right {
        float: right;
        width: 440px;
        text-align: right;
    }

.modellisave {
    margin: 20px 0;
}

.nome_azienda {
    background: #ededf1;
    padding: 10px 15px;
    color: #424242;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    width: 100%;
}

    .nome_azienda .left {
        float: left;
        width: 75%;
    }

    .nome_azienda .right {
        float: left;
        width: 25%;
    }


.select_popup {
    margin-bottom: 20px;
}

    .select_popup .left {
        float: left;
    }

    .select_popup .right {
        float: left;
    }



.gruppo_visita {
    background: #fff;
    padding: 10px;
}

    .gruppo_visita:not(:last-child) {
        margin-bottom: 10px;
    }

    .gruppo_visita a:not(.bottone_small) {
        color: #000;
    }

    .gruppo_visita .motivi {
        font-size: 12px;
        margin: 10px 0;
    }

.loading {
    background: url(../images/loading.gif) center center no-repeat;
    min-height: 32px;
}

.benvenuto {
    overflow: hidden;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    cursor: pointer;
    padding: 10px 0;
    background-color: white;
    margin-top: -12% !important;
    margin-left: 0% !important;
}

    .benvenuto #benvenuto {
        background: url(../images/arrow_down.png) 10px 8px no-repeat;
        padding: 0px 10px 0px 30px;
    }

    .benvenuto:hover {
        box-shadow: 0px 0px 6px #888;
        -moz-box-shadow: 0px 0px 6px #888;
        -webkit-box-shadow: 0px 0px 6px #888;
    }

    .benvenuto .info_box {
        display: none;
        margin-top: 5px;
        padding: 0 10px 0 10px;
    }

        .benvenuto .info_box .left {
            width: 57px;
            float: left;
        }

        .benvenuto .info_box .right {
            width: 121px;
            float: left;
        }

            .benvenuto .info_box .right a {
                color: #da053b;
                text-decoration: none;
            }

                .benvenuto .info_box .right a:hover {
                    text-decoration: underline;
                }

.spento {
    color: #999;
}

    .spento input {
        background: #d5d7db;
        color: #f0f0f3;
        text-shadow: none;
        margin: 0;
    }

.error {
    color: Red;
}

.info {
    color: Green;
}


.divShadow {
    padding: 18px 10px;
    border: 2px solid #f4f4f4;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    /*color:#de0032;
    font-weight:700;
    font-size:17px;*/
    box-shadow: 0 0 20px #f4f4f4;
    -moz-box-shadow: 0 0 20px #f4f4f4;
    -webkit-box-shadow: 0 0 20px #f4f4f4;
    /*padding-left:70px;*/
}

.advise {
    font-weight: bold;
    font-size: 16px;
}

    .advise a {
        color: navy !important;
    }

        .advise a:active {
            color: navy !important;
        }

        .advise a:focus {
            outline: 0
        }


.saltalafila {
    background-color: white;
    background-image: url(../images/saltalafila1.png);
    background-position: center;
    background-repeat: no-repeat;
}

.Calendar {
    width: auto;
    margin-right: 0px;
    font-weight: bold;
    font-size: 14px;
}

    .Calendar.selected {
        color: blue;
    }

    .Calendar.busy {
        color: red;
    }

    .Calendar.free {
        color: green;
    }


.logonmodel {
    width: 600px;
    height: auto;
    float: left
}

.mobile-hide-element {
    
}

.mobile-show-element {
    display: none;
}

/* ============================
   FONT SIZE (fs-1 … fs-6)
   ============================ */
.fs-1 {
    font-size: 2.5rem !important;
}

.fs-2 {
    font-size: 2rem !important;
}

.fs-3 {
    font-size: 1.75rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

/* ============================
   FONT WEIGHT (fw-*)
   ============================ */
.fw-light {
    font-weight: 300 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* ============================
   FONT STYLE (fst-italic / fst-normal)
   ============================ */
.fst-italic {
    font-style: italic !important;
}

.fst-normal {
    font-style: normal !important;
}

/* ============================
   TEXT COLORS (text-*)
   ============================ */
.text-primary {
    color: #0d6efd !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #198754 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-dark {
    color: #212529 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-white {
    color: #ffffff !important;
}


.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* le colonne possono andare a capo */
    margin-left: -10px; /* opzionale: effetto “gutter” */
    margin-right: -10px;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.row-between-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Colonne base */
.col {
    padding-left: 10px; /* gutter */
    padding-right: 10px;
    box-sizing: border-box;
}

.col-1 {
    width: 8.333333%;
}

.col-2 {
    width: 16.666667%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333333%;
}

.col-5 {
    width: 41.666667%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333333%;
}

.col-8 {
    width: 66.666667%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.333333%;
}

.col-11 {
    width: 91.666667%;
}

.col-12 {
    width: 100%;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 4px !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.mt-3 {
    margin-top: 12px !important;
}

.mt-4 {
    margin-top: 16px !important;
}

.mt-5 {
    margin-top: 20px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 4px !important;
}

.mb-2 {
    margin-bottom: 8px !important;
}

.mb-3 {
    margin-bottom: 12px !important;
}

.mb-4 {
    margin-bottom: 16px !important;
}

.mb-5 {
    margin-bottom: 20px !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: 4px !important;
}

.ml-2 {
    margin-left: 8px !important;
}

.ml-3 {
    margin-left: 12px !important;
}

.ml-4 {
    margin-left: 16px !important;
}

.ml-5 {
    margin-left: 20px !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-1 {
    margin-right: 4px !important;
}

.mr-2 {
    margin-right: 8px !important;
}

.mr-3 {
    margin-right: 12px !important;
}

.mr-4 {
    margin-right: 16px !important;
}

.mr-5 {
    margin-right: 20px !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

.float-left {
    float: left !important;
}
.float-right {
    float: right !important;
}
.float-none {
    float: none !important;
}

/* Bootstrap-like utility classes */

/* evita a capo */
.text-nowrap {
    white-space: nowrap !important;
}

.text-wrap {
    white-space: wrap !important;
    overflow-wrap: break-word;
    word-wrap: break-word; /* per vecchi browser */
}

/* min-width percentuali */
.min-w-0 {
    min-width: 0 !important;
}

.min-w-5 {
    min-width: 5% !important;
}

.min-w-10 {
    min-width: 10% !important;
}

.min-w-15 {
    min-width: 15% !important;
}

.min-w-20 {
    min-width: 20% !important;
}

.min-w-25 {
    min-width: 25% !important;
}

.min-w-50 {
    min-width: 50% !important;
}

.min-w-75 {
    min-width: 75% !important;
}

.min-w-100 {
    min-width: 100% !important;
}

/* width percentuali */
.w-auto {
    width: auto !important;
}

.w-5 {
    width: 5% !important;
}

.w-10 {
    width: 10% !important;
}

.w-15 {
    width: 15% !important;
}

.w-25 {
    width: 25% !important;
}

.w-30 {
    width: 30% !important;
}

.w-35 {
    width: 35% !important;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

.w-50 {
    width: 50% !important;
}

.w-75 {
    width: 75% !important;
}

.w-100 {
    width: 100% !important;
}


/* CONTENITORE DEL BLOCCO FILTRI */
.form-block {
    width: 100%;
}

/* RIGA FLEX GENERICA */
.row-flex {
    display: flex;
    /*flex-wrap: wrap;*/
    align-items: flex-start;
    /*gap: 8px;
    margin-bottom: 8px;*/
}

.row-flex-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.col-flex {
    flex: 1;
}

.align-right {
    margin-left: auto;
}

/* COLONNE "DI RUOLO" */
/* colonna label (Dal / Fino al) */
.col-label-date {
    flex: 0 0 80px; /* larghezza fissa, regola 70/80/90 a gusto */
    text-align: right;
    white-space: nowrap;
}

/* colonna input data (fissa) */
.col-date {
    flex: 0 0 80px; /* larghezza fissa, regola a gusto */    
}

.col-label-ricerca {
    flex: 0 0 220px; /* larghezza fissa, regola 70/80/90 a gusto */
    text-align: right;
    white-space: nowrap;    
}

/* colonna input data (fissa) */
.col-ricerca {
    flex: 0 0 220px; /* larghezza fissa, regola a gusto */
    /*width: 120px;
    min-width: 120px;
    max-width: 120px;*/
}


/* colonna errori (riempie lo spazio rimanente) */
.col-error {
    flex: 1 1 auto;
}

.col-icon {
    flex: 0 0 auto;
    width: 40px; /* spazio giusto per il bottone lente */
    text-align: left; /* evita che “tiri” a destra */
}

.col-check {
    flex: 0 0 auto;
    width: 40px; /* spazio giusto per il bottone lente */
    text-align: left; /* evita che “tiri” a destra */
}


/* colonna full width (per le righe solo label o solo input) */
.col-full {
    flex: 0 0 100%;
}

/* colonna metà (checkbox e bottone) */
.col-half {
    flex: 0 0 50%;
}

.col-auto {
    flex: 0 0 auto;
}

.btn-row {
    display: flex;
    justify-content: center; /* centrati */
    gap: 10px; /* spazio tra i bottoni */
}

.btn-right {
    text-align: right;
    margin-left: auto;
}

@media (max-width: 768px) {

    body {
        background-color: #fff;
    }

    header .menu_div {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    main {
        flex: 1;
        background: #fff;
        max-width: 100% !important;
        width: 100% !important;
        margin: auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .card {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

        /* Inverte solo dove l'immagine è dopo il testo */
        .card img {
            order: 1; /* di default */
            width: 100%;
            height: auto;
        }
            /* Se l’immagine è DOPO nella card → inverti */
            .card img:last-child {
                order: 0;
            }

        .card .card-content {
            order: 2; /* di default */
            padding: 1rem 0;
            text-align: center;
        }

        
    .form-block {
        width: 100%;
        max-width: 100%;
    }

    .row-flex {
        display: block !important; /* niente flex su mobile */
        flex-direction: column;
        align-items: stretch;
    }

    .col-flex {
        display: block !important;
        float: none !important; /* annulla eventuali float ereditati */
        width: 100% !important;
        clear: both !important; /* si assicura di iniziare su una nuova riga */
        margin-right: 0 !important;
        margin-left: 0 !important;
    }


    .col-label-date,
    .col-date,
    .col-label-ricerca,
    .col-ricerca,
    .col-check,
    .col-error,
    .col-full,
    .col-half {
        flex: 0 0 100%;
        width: 100%;
        text-align: left;
        margin-left: 0px !important;
        margin-top: 8px !important;
    }

    .col-icon {
        width: 100% !important;
        flex: 0 0 auto !important;
        text-align: center;
        margin-top: 8px;
        background: #eeeef2 url(../images/bg_submit.jpg) repeat-x;
        border: 1px solid #e1e1e1;
        border-radius: 3px;
        padding: 8px 0;
        box-sizing: border-box;
    }

        .col-icon .submit_cerca {
            background: none !important; /* togli lo sfondo dall’immagine */
            border: none !important;
            padding: 0 !important;
            margin: 0 auto; /* centrata */
            display: block; /* centra meglio */
        }

    /* ultima riga (checkbox + bottone) di nuovo in riga ma responsiva */
    .row-flex.row-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .row-flex.row-actions .col-half {
        flex: 0 0 48%;
    }

    .btn-row {
        justify-content: flex-start; /* a sinistra */
    }

    .row-between-top {
        flex-direction: column;
        align-items: stretch;
    }

    .row-between-top > .col,
    .row-between-top > .col-2 {
        width: 100%;
    }

    .mobile-hide-element {
        display: none !important;
    }

    .mobile-show-element {
        display: inherit !important;
    }

 
    .logonmodel {
        width: 100%;
        height: auto;
        float: left
    }

    footer {
        text-align: center;
    }

        footer .left,
        footer .right {
            float: none;
            width: 100%;
            height: auto;
            background: none; /* se le immagini di sfondo ti creano problemi */
            padding: 10px 10px;
            box-sizing: border-box;
        }

            footer .left > div,
            footer .right > div {
                margin: 0; /* togli i margin-left/right da 20px inline */
            }

        /* Fai sì che i link possano andare a capo e non creino scroll orizzontale */
        footer a {
            display: inline;
            white-space: normal;
        }

    .box_scelta {
        width: 100% !important;
        float: none !important;
        margin: 10px 0 !important;
        padding-left: 60px; /* se ti serve lasciare spazio per l’icona */
        box-sizing: border-box; /* così padding rientra nei 100% */
    }

    .benvenuto {
        /*overflow: hidden;
        border-radius: 6px;
        -moz-border-radius: 6px;
        -webkit-border-radius: 6px;
        cursor: pointer;
        padding: 10px 0;
        background-color: white;
        margin-top: -12% !important;*/
        margin-left: 15% !important;
    }

    .nome_azienda {
        width: 100%;
    }

        .nome_azienda .left {
            float: none;
            width: 100%;
            font-size: 18px;
        }

        .nome_azienda .right {
            text-align: right;
            width: 100%;
        }

    /* margin top minimo per mobile */
    .mobile-mt-min {
        margin-top: 15px;
    }

    .main_sx {
        width: 100%;
        float: none;
        box-sizing: border-box;
    }

    .sidebar_dx {
        width: 100%;
        float: none;
        box-sizing: border-box;
    }
    
}

