body {
    /*margin:20px 0; padding:0 1%;*/
    color: #555555;
    background: #0388bb;
    /*background-image: linear-gradient(271deg,#003951 0%,#008abb 100%)!important;*/
    font-family: 'Roboto', Verdana, Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.grid-highlight {
    margin-bottom: 5px;
}

.grid-highlight [class^="grid_"] {
    line-height: 30px;
    text-align: center;
}

.header {
    padding: 0 5%;
    margin: 0;
    width: 100%;
    background-repeat: repeat-x;
    background-color: #ffffff;
    box-shadow: 0px 1px 5px rgba(81, 80, 80, 0.51);
    z-index: 4;
    position: fixed;
    top: -1px;
    height: 76px;
    padding-top: 1px;
}

img#logoheader {
    padding: 5px;
    height: 100%;
    max-width: 100%;
}

div#menu {
    text-align: center;
    position: fixed;
    top: 0px;
    left: 22%;
}

div#menu a {
    margin-left: 10px;
    padding: 27px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    color: #666;
}

div#menu a i {
    font-size: 125%;
}

.header div#accountmenu {
    float: right;
    max-height: 75px;
    max-width: 200px;
}

.header div#accountmenu a {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    color: #666;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.header div#accountmenu a span {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 120%;
}

.header div#accountmenu a i {
    font-size: 200%;
}


div#menu a:hover, .header div#accountmenu a:hover {
    color: #3b3b3b;
}

a.btnsupporto {
    padding: 12px 15px;
    margin: 5px;
    display: flow-root;
    text-align: center;
    text-decoration: none;
    color: #666;
    border-radius: 10px;
    background: #b7cf3c;
    border: 1.5px solid #d3d6d7;
    color: #626262;
}

a.btnsupporto i {
    float: left;
    font-size: 250%;
}

a.btnsupporto span {
    font-size: 125%;
}

a.btnsupporto:hover {
    background: #fcfcfc;
}

#foglio2 {
    --supporto-faq-bg: #eef5f8;
    --supporto-faq-border: #c9dce4;
    --supporto-faq-text: #2f5968;
    --supporto-ticket-bg: #0c8bb8;
    --supporto-ticket-border: #08739b;
    --supporto-ticket-text: #ffffff;
    --supporto-reclamo-bg: #fff2ef;
    --supporto-reclamo-border: #efb6ac;
    --supporto-reclamo-text: #9a3526;
}

#foglio2 .supporto-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
    align-items: start;
}

#foglio2 .supporto-grid h1 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

#foglio2 .supporto-grid>.supporto-card {
    float: none;
    width: auto;
    margin: 0;
}

#foglio2 .supporto-card .btnsupporto {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    margin: 0;
    padding: 16px 18px;
    border-width: 1px;
    box-shadow: 0 10px 22px rgba(12, 53, 74, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#foglio2 .supporto-card .btnsupporto:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(12, 53, 74, 0.12);
}

#foglio2 .supporto-card .btnsupporto i {
    float: none;
    flex: 0 0 auto;
    font-size: 34px;
}

#foglio2 .supporto-card__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#foglio2 .supporto-card__eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.84;
}

#foglio2 .supporto-card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

#foglio2 .supporto-card__text {
    padding: 12px 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4d4d4d;
}

#foglio2 .supporto-card--faq .btnsupporto {
    background: var(--supporto-faq-bg);
    border-color: var(--supporto-faq-border);
    color: var(--supporto-faq-text);
}

#foglio2 .supporto-card--faq .btnsupporto:hover {
    background: #e5f0f4;
}

#foglio2 .supporto-card--ticket .btnsupporto {
    background: var(--supporto-ticket-bg);
    border-color: var(--supporto-ticket-border);
    color: var(--supporto-ticket-text);
}

#foglio2 .supporto-card--ticket .btnsupporto:hover {
    background: #0a7ba4;
}

#foglio2 .supporto-card--reclamo .btnsupporto {
    background: var(--supporto-reclamo-bg);
    border-color: var(--supporto-reclamo-border);
    color: var(--supporto-reclamo-text);
}

#foglio2 .supporto-card--reclamo .btnsupporto:hover {
    background: #ffe7e1;
}

@media (max-width: 980px) {
    #foglio2 .supporto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #foglio2 .supporto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #foglio2 .supporto-card .btnsupporto {
        min-height: 76px;
        padding: 14px 16px;
    }

    #foglio2 .supporto-card .btnsupporto i {
        font-size: 30px;
    }

    #foglio2 .supporto-card__title {
        font-size: 20px;
    }
}

div#contenitore {
    position: fixed;
    z-index: 0;
    padding: 20px 5%;
    top: 75px;
    width: 100%;
    height: 100%;
    float: left;
    background: #eff2ef;
    overflow-y: auto;
    overflow-x: hidden;

}

div#footer {
    background: #939393;
    margin: -20px -6%;
    margin-top: 20px;
    color: #e5e5e5;
    padding: 20px 5%;
    display: flex;
}

div#footer div {
    width: 50%;
}

div#footer a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

div#benvenuto span {
    font-weight: bold;
    font-size: 110%;
}

div#benvenuto {
    font-size: 20px;
    margin-bottom: 20px;
    margin-left: 0.5%;
    padding-left: 0px;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 999;
    display: none;
    margin-top: 8px;
    margin-left: -180px;
}

/*.tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}*/

/*.box_servizio {
     border-top: 3px solid; 
     border-bottom: 1px dashed;
}*/

.box_servizio .title_service {
    padding: 0px 10px;
    margin-bottom: 15px;
    width: fit-content;
    border-radius: 15px;
}

.box_servizio .stato_servizio {
    width: fit-content;
    float: right;
    color: #5e5e5e;
    font-size: 110%;
    padding: 1px 5px;
    border-radius: 5px;
}

.box_servizio .stato_servizio a {
    text-decoration: none;
    color: #5e5e5e;
}

.box_servizio .stato_servizio i {
    font-size: 145%;
    padding-top: 5px;
}

.box_servizio .stato_conn {
    border-radius: 4px;
    color: #494949;
    width: fit-content;
    padding-top: 1px;
}

.box_servizio .stato_conn span {
    padding: 4px;
}

.parental_ctrl {
    width: 100%;
    display: inline-flex;
    padding-top: 14px;
}

.parental_ctrl a {
    padding: 4px 15px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    background: #eee;
    border: 1px solid #222;
    color: #626262;
}

.parental_ctrl a:hover {
    background: #fff;
    color: #000000;
    border-color: #BBDEFB;
}

.parental_ctrl a i {
    font-size: 230%;
}


#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 15%);
    z-index: 10;
}

#popup {
    display: none;
    position: fixed;
    background-color: white;
    padding: 20px;
    z-index: 11;
    width: 1000px;
    /* Imposta la larghezza fissa */
    max-height: 80%;
    /* Imposta un'altezza massima per evitare che la finestra esca dallo schermo */
    overflow-y: auto;
    /* Aggiunge una barra di scorrimento se il contenuto è troppo lungo */
    border-radius: 4px;
    /*box-shadow: 0 0 18px #cecece96;*/
}

#popup .boxpctrl {
    border-radius: 4px;
    border: 1px dashed #ccc;
    padding: 4px;
    margin-bottom: 20px;
    cursor: pointer;
}

#popup .boxpctrl:hover {
    background: #e2e2e2;
    border-color: #3F51B5;
}

#popup .boxpctrl.selected {
    background: #DCEDC8;
    border-color: #3F51B5;
}

#boxnewreclamo {
    display: none;
}

#formeditreferente {
    margin-left: 0.5%;
    padding: 0 0.5%;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
}

@media only screen and (max-width: 1024px) {
    .header {
        padding: 0;
    }

    div#contenitore {
        padding: 20px;
    }

    div#footer {
        margin: -20px;
        margin-top: 20px;
        padding: 20px;
    }

    .header div#accountmenu {
        max-width: 140px;
    }

    .header div#accountmenu a {
        padding: 12px 20px;
    }

    img#logoheader {
        padding: 5px 20px;
    }
}



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

    #popup {
        width: 100%;
        /* Imposta la larghezza al 100% per dispositivi con larghezza massima di 768px (dispositivi mobili) */
        max-width: none;
        /* Rimuove il limite massimo di larghezza */
    }

    body {
        color: #555555;
        font-size: 11px;
    }

    .header {
        background-color: #f7fdff;
        box-shadow: none;
    }

    div#menu {
        top: unset;
        bottom: 0px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0px 0px 4px rgb(6 136 187 / 12%);
        height: 55px;
        display: inline-flex;
    }

    div#menu a {
        top: unset;
        bottom: 0px;
        left: 0;
        width: 100%;
        padding: 6px 0px;
        margin-left: 0px;
        margin-left: 0px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        text-decoration: none;
    }

    div#menu a i {
        font-size: 150%;
    }

    div#menu a span {
        font-size: 75%;
    }

    .header div#accountmenu {
        max-width: 40%;
        max-height: 55px;
    }

    .header div#accountmenu a {
        padding: 8px 25px 4px;
        font-size: 9px;
    }

    .header div#accountmenu a i {
        font-size: 250%;
    }

    .header {
        height: 56px;
    }

    div#contenitore {
        top: 55px;
    }

    div#footer {
        display: block;
    }

    div#footer div {
        width: 100%;
        text-align: center;
    }

}

div.pagine {
    display: none;
}

#errorconnection {
    position: fixed;
    top: 22px;
    right: 150px;
    z-index: 10;
    color: #ffed00;
    font-size: 20px;
}

.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.nomob {
    display: block;
}

.simob {
    display: none;
}


.errorbox {
    min-height: 45px !important;
    text-align: center;
    border: 1px dashed #f00;
    color: #f00;
    font-weight: bold;
    padding: 10px !important;
    background: #FFD9D9;
    margin-bottom: 20px !important;
}

.boxinfo {
    min-height: 45px !important;
    background: #fff;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0 1px 1px rgba(204, 204, 204, 0.35);
    margin-bottom: 10px;
    float: left;
    width: 100%;
}

div#errbox {
    text-align: center;
    color: #f00;
    background: rgba(255, 0, 0, 0.16);
    padding: 8px 10px;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 20px 0;
    /* border-radius: 4px; */
    min-height: 40px;
    border: 1px solid #f00;
}


div.box-login {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    margin-top: 100px;
    width: 480px;
    padding: 0px 10px;
}

div#headlogin {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-bottom: 2px;
    background: #ffffff;
}

div.box-login div#headlogin img {
    position: relative;
    transform: translate(-50%, 0);
    left: 50%;
}

div#bodylogin {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 30px 15px 0 15px;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}

div.box-login form {
    margin: 0 10% 16px;
    width: 80%;
}

.box-login button {
    width: 100%;
    background: #0388bb;
    font-weight: bold;
    font-size: 24px;
    border-color: #0388bb;
    color: #fff;
}


#tggmenu {
    display: none;
    padding: 14px 0;
    height: 50px;
    width: 60px;
}

#tggmenu a {
    padding: 16px;
    font-size: 19px;
    color: #b8ce50;
}

.btnlogin {
    text-decoration: none;
    font-size: 120%;
    border-radius: 10px;
    background: #cccccc;
    padding: 10px;
    color: #808080;
    width: 100%;
    display: block;
    text-align: center;
    font-weight: bold;
}

.btnlogin2 {
    font-size: 120%;
    color: #464646;
    float: right;
    text-align: center;
}

.okbox {
    color: #434343;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px dashed #4CB747;
    /* color: #1b2100; */
    font-weight: bold;
    padding: 10px !important;
    background: #CBEACA;
}

span.description {
    display: inline-block;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: bold;
    width: 100%;
    padding-bottom: 10px;
}

/***********************************************
Screen Smaller than 1549px
***********************************************/

@media only screen and (min-width:1200px) and (max-width: 1549px) {}

/***********************************************
Screen Smaller than 1199px
***********************************************/

@media only screen and (min-width:960px) and (max-width: 1199px) {
    .boxselectitem div div.colapp {
        width: 80%;
    }

    .boxhover3 {
        padding-left: 1%;
    }

    div.boxhover3 div.bodyboxh3 {
        width: 98%;
    }

    /*div.rowlistaordini div 							{width: 100%!important;}*/
}

/***********************************************
Tablet (Smaller than 959px)
***********************************************/

@media only screen and (min-width:768px) and (max-width: 959px) {
    .boxselectitem div div.colapp {
        width: 80%;
    }

    div#boxappselect div {
        font-size: 20px;
        width: 100%;
    }

    div#boxappselect div i {
        font-size: 30px;
    }

    div.rowlistaordini div.sab {
        width: 48% !important;
        font-size: 14px;
        padding: 1px;
    }

    div.rowlistaordini div {
        width: 100% !important;
        font-size: 14px;
        padding: 1px;
        /*border-bottom: 1px dashed rgba(0, 0, 0, 0.26);*/
    }

    div.rowlistaordini {
        border-bottom: 3px solid #ccc;
    }

    div.rowlistaordini div.action i {
        font-size: 20px;
    }

    div.rowlistaordini div.action a {
        width: 35%;
        padding: 5px;
    }

    div.boxhover {
        top: 2%;
        left: 2%;
        width: 96%;
        height: 96%;
    }

    .boxhover3 {
        padding-left: 1%;
    }

    div.boxhover3 div.bodyboxh3 {
        width: 98%;
    }

    div.checkbox.ckboxbox label div {
        width: 100% !important;
    }
}

/***********************************************
Tablet (iPad)
***********************************************/

@media only screen and (min-width:768px) and (max-width: 1023px) {
    #nav_ruolo {
        display: none;
    }

    /* Ruolo attivo dell'utente */
}

/***********************************************
Mobile (portrait 300px)
***********************************************/

@media only screen and (max-width:767px) {
    .boxhover2 {
        margin-top: 11%;
        margin-left: 15%;
        background: #ffffff;
        width: 70%;
        min-height: 68px;
        max-height: 60%;
        overflow: auto;
        border-top: 3px solid #515050;
        border-radius: 2px;
        padding: 10px;
        box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
    }

    div#nenu0 {
        display: none;
    }

    .boxselectitem div div.colapp {
        width: 80%;
    }

    .modalboxbkg .modalbox {
        width: 90%;
        left: 5%
    }

    .boxinfo div.row div {
        border-bottom: 1px dashed #ccc;
    }

    .boxinfo div.row {
        margin-bottom: 0px;
        border-bottom: none;
    }

    div#boxappselect div {
        /*font-size:14px;*/
        width: 100%;
    }

    div#boxappselect div i {
        font-size: 30px;
    }

    .row-max.boxcli, .row-max.boxserv {
        max-height: 500px;
    }

    #tggmenu {
        display: block;
    }

    #nav_ruolo {
        display: none;
    }

    /* Ruolo attivo dell'utente */
    div.rowlistaordini div.sab {
        width: 48% !important;
        font-size: 14px;
        padding: 1px;
        min-height: 50px;
    }

    div.rowlistaordini div {
        width: 100% !important;
        font-size: 14px;
        padding: 1px;
        /*border-bottom: 1px dashed rgba(0, 0, 0, 0.26);*/
    }

    div.rowlistaordini {
        border-bottom: 1px solid #3498db;
    }

    div.rowlistaordini div.action i {
        font-size: 20px;
    }

    div.rowlistaordini div.action a {
        width: 45%;
        padding: 5px;
    }

    div.boxhover {
        top: 2%;
        left: 2%;
        width: 96%;
        height: 96%;
    }

    .bxlseldiv {
        width: 100%;
    }

    .boxhover3 {
        padding-left: 1%;
    }

    div.boxhover3 div.bodyboxh3 {
        width: 98%;
    }

    .ordinnomecli {
        font-size: 15px !important;
    }

    .cpcm {
        width: 100%;
    }

    .action2 {
        text-align: left;
    }

    .nomob {
        display: none;
    }

    .simob {
        display: block;
    }

    a.boxselectable {
        min-width: 318px;
    }

    div.checkbox.ckboxbox label div {
        width: 100% !important;
    }
}

/***********************************************
Mobile (landscape 420px)
***********************************************/

@media only screen and (min-width: 480px) and (max-width: 767px) {
    div#nenu0 {
        display: none;
    }

    div#boxappselect div {
        font-size: 20px;
        width: 100%;
    }

    div#boxappselect div i {
        font-size: 30px;
    }

    div.rowlistaordini div.sab {
        width: 48% !important;
        font-size: 14px;
        padding: 1px;
        min-height: 50px;
    }

    div.rowlistaordini div {
        width: 100% !important;
        font-size: 14px;
        padding: 1px;
        /*border-bottom: 1px dashed rgba(0, 0, 0, 0.26);*/
    }

    div.rowlistaordini {
        border-bottom: 2px solid #ccc;
    }

    div.rowlistaordini div.action i {
        font-size: 20px;
    }

    div.rowlistaordini div.action a {
        width: 45%;
        padding: 5px;
    }

    div.boxhover {
        top: 2%;
        left: 2%;
        width: 96%;
        height: 96%;
    }

    .boxhover3 {
        padding-left: 1%;
    }

    div.boxhover3 div.bodyboxh3 {
        width: 98%;
    }

    div.checkbox.ckboxbox label div {
        width: 100% !important;
    }
}


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

    div.box-login {
        position: absolute;
        top: 0%;
        left: 0%;
        transform: translate(0%, 0%);
        width: 100%;
    }

    .box-login #box-recaptcha {
        height: 90px;
    }

    .box-login .g-recaptcha {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        max-width: 100%;
        min-height: 90px;
        overflow: auto;
    }

}

/*       *********************** CUSTOM CODE **********************         */

.paginazione {
    margin: 0 0 0 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.paginazione ul {
    list-style-type: none !important;
    margin: 0 !important;
}

/*.paginazione ul li {float:left; padding:0.25em 0.5em; margin:0 0.5em 0.5em 0 !important; background-color:#eee; border:1px solid #ccc;border-radius:4px;}*/

.paginazione ul li {
    float: left;
    padding: 0;
    margin: 8px 0.5em 0.5em 0 !important;
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #fff;
    border-radius: 15px;
    box-shadow: 0px 2px 2px rgba(204, 204, 204, 0.46);
}

.paginazione ul li:hover {
    box-shadow: 0px 6px 6px rgba(204, 204, 204, 0.46);
}

.paginazione ul li:active {
    box-shadow: none;
}

.paginazione ul li a {
    text-decoration: none;
    color: #b8ce50;
    display: block;
    padding: 0.25em 0.75em;
}

.paginazione ul li a:hover {
    color: #0d4463;
}


.clear {
    clear: both;
}


.insttree {
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 10px;
    padding: 4px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    /*border-bottom: 0px; /*aggiunto per stile pagina "cambia vista"*/
}

#event_result {
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    display: none;
    border-radius: 4px;
    margin-bottom: 5px;
}

#assegna {
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
    display: none;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* *** *** *** */

h5 {
    padding-bottom: 15px !important;
}
