/* [v] 1.0 - 01/11/2023 [/v] */

*,
::after,
::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: inherit;
}

pre {
    font-family: revert;
}

body {
    width: 100%;
    height: 100%;
    background-color: var(--background);
    margin: 0px;
    padding: 0px;
    font-family: 'Inter', sans-serif;
    color: var(--testo);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    overflow-x: hidden;
    float: left;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

a[name] {
    height: 0px;
    width: 100%;
    float: left;
}

h1,
h2,
h3,
h4,
h5 {
    width: 100%;
    font-family: 'Titillium Web', sans-serif;
    margin: 0px 0px 20px 0px;
    float: left;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


h1 {
    color: var(--titolo_h1);
}

h2 {
    color: var(--titolo_h2);
}

h3 {
    color: var(--titolo_h3);
}

h4 {
    color: var(--titolo_h4);
}

h5 {
    color: var(--titolo_h5);
}

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

    /* Mobile */
    h1 {
        /*font-size: 10px;*/
    }

    h2 {
        /*font-size: 10px;*/
    }

    h3 {
        /*font-size: 10px;*/
    }

    h4 {
        /*font-size: 10px;*/
    }

    h5 {
        /*font-size: 10px;*/
    }
}

@media only screen and (min-width: 951px) {

    /* Desktop */
    h1 {
        color: var(--titolo_h1);
        font-size: 32px;
        font-weight: 400;
    }

    h2 {
        color: var(--titolo_h2);
        font-size: 32px;
        font-weight: 200;
    }

    h3 {
        color: var(--titolo_h3);
        font-size: 26px;
        font-weight: 200;
    }

    h4 {
        color: var(--titolo_h4);
        font-size: 22px;
        font-weight: 200;
    }

    h5 {
        color: var(--titolo_h5);
        /*font-size: 10px;*/
    }
}

/* ---------------------------------------------------------- */
/* Dashboard GUI */
/* ---------------------------------------------------------- */

#menu_laterale {
    background-color: var(--secondario);
    width: auto;
    height: auto;
    border-right: 1px solid var(--secondario_accent);
    padding: var(--header_padding_v) 15px 20px 15px;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 3;
    /* Disabilita selezione testo */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#menu_laterale_logo {
    height: var(--header_altezza);
    width: 100%;
    padding: 0px 10px 0px 10px;
    margin-bottom: var(--header_padding_v);
    float: left;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

#menu_laterale_logo>#logomark {
    width: 50px;
    height: var(--header_altezza);
    line-height: var(--header_altezza);
    text-align: center;
    float: left;
}

#menu_laterale_logo>#logotype {
    height: var(--header_altezza);
    line-height: var(--header_altezza);
    text-align: left;
    font-size: 26px;
    text-overflow: ellipsis;
    color: #ffffff;
    white-space: nowrap;
    padding-left: 10px;
    overflow: hidden;
    float: left;
}

#menu_laterale[stato="aperto"]>#menu_laterale_logo>#logotype {
    width: calc(100% - var(--header_altezza));
}

#menu_laterale[stato="chiuso"]>#menu_laterale_logo>#logotype {
    width: 0px;
    transition: all 0.3s;
}

#menu_laterale_switch {
    width: 25px;
    height: 25px;
    float: right;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: -15px;
}

#menu_laterale_switch::before {
    background-color: var(--secondario_accent);
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 25px;
    height: 25px;
    line-height: 23px;
    color: #ffffff;
    border-radius: 50%;
    float: left;
    transition: all 0.3s ease-in-out;
}

#menu_laterale[stato="aperto"]>#menu_laterale_switch::before {
    content: '\f053' !important;
}

#menu_laterale[stato="chiuso"]>#menu_laterale_switch::before {
    content: '\f053' !important;
    rotate: 180deg;
}

#menu_laterale[stato="aperto"] {
    width: var(--menu_laterale_larghezza);
    transition: width 0.3s, font-size 0.3s;
}

#menu_laterale[stato="chiuso"] {
    width: 100px;
    font-size: 0px;
    transition: width 0.3s, font-size 0.1s;
}

#menu_laterale>ul {
    width: 100%;
    height: auto;
    list-style-type: none;
    padding: 0px;
    margin: 25px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    float: left;
}

#menu_laterale>ul>li {
    width: 100%;
    height: auto;
    list-style-type: none;
    padding: 0px;
    margin: 0px 0px 10px 0px;
    float: left;
}

#menu_laterale>ul>li:last-child {
    margin-bottom: 0px;
}

.menu_laterale_pulsante {
    background-color: transparent;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: left;
    color: var(--secondario_testo);
    border: none;
    cursor: pointer;
    padding: 0px 20px 0px 20px;
    position: relative;
    border-radius: 7px;
    box-shadow: none;
    float: left;
    transition: all 0.2s ease-in-out;
}

.menu_laterale_pulsante:disabled {
    opacity: 0.2;
    cursor: default;
}

.menu_laterale_pulsante:enabled:hover {
    background-color: var(--secondario_accent);
    color: var(--secondario_testo);
}

.menu_laterale_pulsante[selezionato="true"] {
    background-color: var(--secondario_accent);
    color: #ffffff;
    opacity: 1;
}

.menu_laterale_pulsante[notifica="on"] i,
.menu_laterale_pulsante[notifica="on"] span,
.menu_laterale_pulsante[notifica="on"]::after {
    color: var(--primario);
}

.menu_laterale_pulsante i {
    width: 30px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    margin: 0px 0px 0px 0px;
    border: none;
    float: left;
    overflow: hidden;
}

.menu_laterale_pulsante span {
    width: calc(100% - 73px);
    height: 50px;
    line-height: 50px;
    margin-left: 10px;
    float: left;
}

.menu_laterale_pulsante::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 8px;
    height: 50px;
    line-height: 50px;
    color: #ffffff;
    margin-left: 20px;
    float: right;
}

#menu_laterale[stato="aperto"]>ul>li>.menu_laterale_pulsante span {
    font-size: 16px;
    transition: font-size 0.3s;
}

#menu_laterale[stato="chiuso"]>ul>li>.menu_laterale_pulsante span {
    font-size: 0px;
    transition: font-size 0.1s;
}

#menu_laterale[stato="aperto"]>ul>li>.menu_laterale_pulsante::after {
    display: inherit;
}

#menu_laterale[stato="chiuso"]>ul>li>.menu_laterale_pulsante::after {
    display: none;
}

#menu_laterale[stato="chiuso"]>ul>li>.menu_laterale_pulsante:before {
    content: '' attr(titolo) '';
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px;
    color: var(--sottotesto);
    font-weight: 400;
    text-align: center;
    text-transform: none;
    width: 190px;
    height: 50px;
    line-height: 50px;
    padding: 0px 10px 0px 10px;
    border: 1px solid var(--colore_bordi);
    border-radius: var(--border_radius);
    box-shadow: var(--ombra);
    top: 0px;
    left: 0px;
    z-index: 1;
    position: absolute;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    display: none;
}

#menu_laterale[stato="chiuso"]>ul>li>.menu_laterale_pulsante:hover:before {
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    display: inherit;
    left: 95px;
}

#menu_laterale_logo_firtec {
    height: var(--header_altezza);
    width: calc(100% - 30px);
    padding: 0px 10px 0px 10px;
    margin-top: var(--header_padding_v);
    overflow: hidden;
    position: absolute;
    bottom: var(--header_padding_v);
    left: 15px;
    opacity: 0.04;
    transition: all 0.3s ease-in-out;
}

#menu_laterale_logo_firtec>#logomark {
    width: 30px;
    height: 30px;
    line-height: var(--header_altezza);
    margin: 10px;
    text-align: center;
    float: left;
}

#menu_laterale_logo_firtec>#logotype {
    width: auto;
    height: 20px;
    text-align: center;
    padding-left: 10px;
    margin: 15px 0px 0px 20px;
    float: left;
}

#menu_laterale[stato="aperto"]>#menu_laterale_logo_firtec>#logotype {
    width: auto;
}

#menu_laterale[stato="chiuso"]>#menu_laterale_logo_firtec>#logotype {
    width: 0px;
    transition: all 0.3s;
}

#header {
    background-color: #ffffff;
    width: auto;
    height: auto;
    border-bottom: 1px solid var(--colore_bordi);
    padding: 0px var(--pagina_padding_h) 0px var(--pagina_padding_h);
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 2;
    box-shadow: var(--ombra);
    /* Disabilita selezione testo */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#menu_laterale[stato="aperto"]~#header {
    left: var(--menu_laterale_larghezza);
    transition: all 0.1s ease-in-out;
}

#menu_laterale[stato="chiuso"]~#header {
    left: 100px;
    transition: all 0.2s ease-in-out;
}

#path_titolo {
    width: auto;
    min-width: 40px;
    height: var(--header_altezza);
    margin: var(--header_padding_v) 0px var(--header_padding_v) 0px;
    float: left;
}

#path_titolo div {
    height: var(--header_altezza);
    overflow: hidden;
    float: left;
}

#path_titolo div:nth-child(2) {
    display: grid;
}

#path_titolo>div>i {
    width: 25px;
    height: var(--header_altezza);
    line-height: var(--header_altezza);
    color: var(--titolo);
    font-size: 25px;
    margin-right: 15px;
    float: left;
}

#path_pagina {
    height: calc(var(--header_altezza) / 3);
    line-height: calc(var(--header_altezza) / 3);
    color: var(--sottotesto);
    font-size: 14px;
    margin: 0px;
    float: left;
}

#path_pagina>span {
    color: var(--secondario_accent);
    margin: 0px 10px 0px 10px;
}

#titolo_pagina {
    height: calc(calc(var(--header_altezza) / 3) * 2);
    line-height: calc(calc(var(--header_altezza) / 3) * 2);
    font-size: 24px;
    margin: 0px;
    float: left;
}

#tab_utente {
    width: auto;
    height: var(--header_altezza);
    margin: var(--header_padding_v) 0px var(--header_padding_v) 25px;
    float: right;
    cursor: pointer;
}

#tab_utente::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    width: auto;
    height: var(--header_altezza);
    line-height: var(--header_altezza);
    color: var(--sottotesto);
    margin-left: 20px;
    float: left;
}

#tab_utente div {
    height: var(--header_altezza);
    overflow: hidden;
    float: left;
}

#utente_icona {
    height: var(--header_altezza);
    width: auto;
    margin: 0px 10px 0px 0px;
    float: left;
}

#utente_icona img {
    height: 100%;
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 15px;
    float: left;
}

#tab_utente div:nth-child(2) {
    display: grid;
}

#tab_utente div:nth-child(2) p {
    height: calc(var(--header_altezza) /2);
    line-height: calc(var(--header_altezza) /2);
    margin: 0px;
    float: left;
}

#utente_nome {
    font-weight: bold;
    font-size: 18px;
}

#utente_dettagli {
    color: var(--sottotesto);
    font-size: 14px;
}

#menu_utente {
    background-color: var(--secondario);
    width: auto;
    height: auto;
    padding: 0px;
    margin: 0px;
    list-style-type: none;
    position: absolute;
    top: calc(var(--header_altezza) + calc(var(--header_padding_v) * 2.5));
    z-index: 1;
    border: 1px solid var(--secondario_accent);
    border-radius: var(--border_radius);
    box-shadow: var(--ombra);
    overflow: hidden;
    transition: all 0.1s ease-in-out;
}

#tab_utente[stato="aperto"]~#menu_utente {
    right: var(--pagina_padding_h);
}

#tab_utente[stato="chiuso"]~#menu_utente {
    right: -500px;
}

#menu_utente>li {
    color: var(--secondario_testo);
    padding: 10px var(--header_padding_v) 10px var(--header_padding_v);
    border-bottom: 1px solid var(--secondario_accent);
    cursor: pointer;
}

#menu_utente>li:hover {
    background-color: var(--secondario_accent);
    color: var(--secondario_testo);
}

#menu_utente>li:last-child {
    border: none;
}

#menu_utente>li>a {
    color: inherit;
    text-decoration: none;
}

#menu_utente>li>a>i {
    width: auto;
    height: auto;
    margin-right: 10px;
}

#header_custom {
    width: auto;
    height: calc(var(--header_altezza) + calc(var(--header_padding_v) * 2));
    float: right;
}

#header_notifiche {
    width: auto;
    height: var(--header_altezza);
    margin: var(--header_padding_v) 0px var(--header_padding_v) 20px;
    float: right;
}

#footer {
    background-color: #ffffff;
    width: auto;
    height: auto;
    border-top: 1px solid var(--colore_bordi);
    padding: 0px 25px 0px 25px;
    position: absolute;
    bottom: 0px;
    right: 0px;
    z-index: 2;
    box-shadow: var(--ombra_alto);
    /* Disabilita selezione testo */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#footer_notifiche {
    width: auto;
    height: auto;
    float: left;
}

#menu_laterale[stato="aperto"]~#footer {
    left: var(--menu_laterale_larghezza);
    transition: all 0.1s ease-in-out;
}

#menu_laterale[stato="chiuso"]~#footer {
    left: 100px;
    transition: all 0.2s ease-in-out;
}

#footer span {
    width: auto;
    height: var(--footer_altezza);
    line-height: var(--footer_altezza);
    font-size: 13px;
    margin: var(--footer_padding_v) 15px var(--footer_padding_v) 0px;
    float: left;
}

#footer_versione {
    opacity: 0.6;
    float: right !important;
}

#footer_info_versione {
    width: auto;
    height: var(--footer_altezza);
    line-height: var(--footer_altezza);
    font-size: 18px;
    cursor: pointer;
    margin: var(--footer_padding_v) 0px var(--footer_padding_v) 0px;
    float: right !important;
}

#footer_info_versione[stato="off"] { 
    color: var(--blu_testo);
}

#footer_info_versione[stato="on"] { 
    color: var(--rosso_accent);
}

#pagina {
    width: auto;
    height: auto;
    padding: var(--pagina_padding_h);
    position: absolute;
    top: calc(var(--header_altezza) + calc(var(--header_padding_v) * 2));
    right: 0px;
    bottom: calc(var(--footer_altezza) + var(--pagina_padding_h) - 5px);
    z-index: 1;
    overflow-y: auto;
    transition: all 0.2s ease-in-out;
}

#menu_laterale[stato="aperto"]~#pagina {
    left: var(--menu_laterale_larghezza);
}

#menu_laterale[stato="chiuso"]~#pagina {
    left: 100px;
}

#caricamento_fullscreen {
    background-color: rgba(0, 0, 0, 0.8);
    width: auto;
    height: auto;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 9999999;
    display: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

#caricamento_fullscreen > i {
    width: 50px;
    height: 50px;
    font-size: 50px;
    color: #ffffff;
    position: fixed;
    top: 20%;
    right: 0px;
    bottom: 0px;
    left: calc(50% - 25px);
    z-index: 9999999;
    animation: spinner_caricamento 1.0s linear infinite;
}

#caricamento_fullscreen > span {
    width: 80%;
    height: 50px;
    font-size: 30px;
    color: #ffffff;
    text-align: center;
    position: fixed;
    top: calc(20% + 80px);
    right: 10%;
    bottom: 0px;
    left: 10%;
    z-index: 9999999;
}

#caricamento_fullscreen > .progressbar {
    width: 60%;
    position: fixed;
    top: calc(20% + 200px);
    right: 20%;
    left: 20%;
    z-index: 9999999;
    display: none;
}

.caricamento {
    background-color: var(--blu_background);
    width: auto;
    height: var(--input_altezza);
    line-height: var(--input_altezza);
    color: var(--blu_testo);
    text-transform: uppercase;
    font-weight: 400;
    border: 1px solid var(--blu_bordo);
    border-radius: var(--border_radius);
    padding: 0px 25px 0px 25px;
    float: left;
    display: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

.caricamento::before {
    content: '\f110';
    width: calc(var(--input_altezza) / 2);
    height: var(--input_altezza);
    line-height: var(--input_altezza);
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands';
    font-size: calc(var(--input_altezza) / 2);
    font-weight: 600;
    text-align: center;
    color: inherit;
    margin-right: 15px;
    float: left;
    animation: spinner_caricamento 1.0s linear infinite;
}

.caricamento[completato="true"]::before {
    content: '\f058' !important;
    /*color: var(--verde_testo) !important;*/
    animation: unset !important;
}

@keyframes spinner_caricamento{
    0%{ transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
}

/* ---------------------------------------------------------- */
/* Modal Credits */
/* ---------------------------------------------------------- */

#credit_modal {
    background-color: rgba(0, 0, 0, 0.8);
    width: auto;
    height: auto;
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 999999;
    display: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
}

#credit_modal_container {
    background-color: #ffffff;
    width: 50%;
    height: auto;
    border: 1px solid var(--colore_bordi);
    border-radius: var(--border_radius);
    position: relative;
    top: -100%;
    left: 25%;
    opacity: 0;
    display: inline-block;
    transition: top 0.1s, opacity 0.3s;
}

.credit_modal_on {
    top: 10% !important;
    opacity: 1 !important;
}

#credit_modal_header {
    width: 100%;
    height: auto;
    color: var(--titolo);
    border-bottom: 1px solid var(--colore_bordi);
    padding: 15px 25px 15px 25px;
    float: left;
}

#credit_modal_header > i {
    width: 30px;
    height: 25px;
    line-height: 25px;
    font-size: 25px;
    text-align: center;
    color: var(--rosso_accent);
    float: right;
    cursor: pointer;
}

#credit_modal_titolo {
    width: auto;
    height: 25px;
    line-height: 25px;
    color: inherit;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin: 0px;
    float: left; 
}

#credit_modal_body {
    width: 100%;
    height: auto;
    margin: 25px 0px 25px 0px;
    padding: 0px 25px 0px 25px;
    float: left;
}