/* icons: https://www.svgrepo.com/collection/radix-interface-icons/ */

* {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}
@media (max-width: 2048px) {
    * {
        font-size: 12px;
    }
}
@media (max-width: 1024px) {
    * {
        font-size: 10px;
    }
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    margin-block: 0;
}
h1 {
    margin-bottom: 2vh;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    /*overflow: hidden;*/
}
#app {
    height: 100vh;
}
.loader-overlay {
    position: fixed; /* Posizionamento fisso rispetto alla viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); /* Sfondo semitrasparente */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Assicurati che sia sopra gli altri elementi */
}

.loader {
    border: 5px solid #f3f3f3; /* Cerchio esterno */
    border-radius: 50%;
    border-top: 5px solid #575656; /* Colore bordo superiore */
    width: 120px;
    height: 120px;
    padding: 0 !important;
    animation: spin 2s linear infinite;
}
.loader::after {
    display: none !important;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.sidebar-menu {
    display: none;
}
.options-menu__content {
    padding-top: 45px;
    margin-top: 2vh;
}

.options-menu__content h1{
    position: absolute;
    top: 3vh;
}

.options-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25vw;
    max-width: 350px;
    min-width: 350px;
    background-color: #ffffff;
    padding: 1vh 1vw;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
.product-selection {
    margin-bottom: 2vh;
}

h3 {
    margin-bottom: 1vh;
    text-transform: uppercase;
    font-weight: bold;
}

.main-viewer {
    width: 100vw;
    background-color: #ffffff;
    padding: 1vh 1vw;
}

.tab-container {
    display: flex;
    margin-bottom: -1px;
    background-color: #808080;
    border-top-left-radius: 5px; /* Rounded corners for the top */
    border-top-right-radius: 5px;
}
.tab-container__label {
    flex-grow: 1;
    padding: 10px;
    cursor: pointer;
    background-color: #808080;
    border-top-left-radius: 5px; /* Rounded corners for the top */
    border-top-right-radius: 5px;
    transition: background-color 0.3s; /* Smooth transition for hover effect */
    text-align: center;
}
.tab-container__label:hover {
    background-color: #808080;
}
.tab-container__label.active {
    background-color: white;
    border: 1px solid #ccc;
    border-bottom: none;
    /*border-color: #ccc;*/
    /*border-bottom: 1px solid white; !* Hide the border where the tab meets the content *!*/
}
#tabs-content {
    padding: 5px;
    border: 1px solid #ccc;
    border-top: none; /* Align content top with the bottom of the tabs */
}
.tab-content {
    display: none;
    overflow-y: scroll;
    height: 60vh;
}
.tab-content.active {
    display: block;
}

/* radio button */
.product-finish__options {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.product-finish__options .form-group {
    flex: 0 0 33.333%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    transition: background-color 0.2s;
}
.product-finish input[type="radio"] {
    display: none;
}
.product-finish__options .form-group  span {
    width: 100%;
    display: block;
    margin-top: 3px;
}
span.product-finish__name {
    text-transform: capitalize;
}
span.product-finish__cod {
    font-size: 70%;
    font-weight: bold;
}

iframe {
    height: 98vh;
    width: 100%;
    border: none; /* Rimuove il bordo dell'iframe */
    margin: 0; /* Rimuove eventuali margini */
    padding: 0; /* Rimuove eventuali padding */
    overflow: hidden; /* Impedisce lo scorrimento all'interno dell'iframe */
}

/* Stilizza le etichette */
.product-finish .radio-selector {
    display: inline-block;
    cursor: pointer;
    background-size: cover;
    width: 80px; /* Imposta la larghezza dell'immagine */
    height: 80px; /* Imposta l'altezza dell'immagine */
    border: 1px black solid;
    /*box-shadow: 0 0 0 4px transparent inset; !* Usa un'ombra interna bianca per simulare il bordo *!*/
    transition: box-shadow 0.2s; /* Rende la transizione dell'ombra più fluida */
}

/* Quando il radio button è selezionato, cambia la texture o lo stile */
.product-finish input[type="radio"]:checked + .radio-selector {
    /*box-shadow: 0 0 0 4px black inset; !* Cambia l'ombra in nero per l'elemento selezionato *!*/
}
.product-finish__options .form-group:has(input[type="radio"]:checked) {
    background-color: rgb(87 86 86 / 45%);
}
/* END radio button */

.options-menu__footer {
    /*position: absolute;*/
    bottom: 1vh;
    left: 1vw;
    z-index: 1000;
}

.options-menu__footer span {
    font-size: 80%;
}

/* Menù navigazione */
.nav-menu {
    position: absolute;
    top: 1vh;
    right: 1vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 98vh;
}
.nav-menu .logo {
    max-height: 80px;
    z-index: 1000;
    position: relative;
}
.nav-menu .nav-menu__burger {
    cursor: pointer;
    position: fixed;
    top: 100px;
    right: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1000;
}
.nav-menu .nav-menu__burger.change {
    right: 190px;
    top: 10px;
}
.nav-menu .nav-menu__burger .bar {
    background-color: #333;
    height: 3px;
    width: 100%;
    transition: 0.4s;
}
/* Trasformazione in X */
.nav-menu .nav-menu__burger.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-7px, 6px);
    transform: rotate(-45deg) translate(-7px, 6px);
}

.nav-menu .nav-menu__burger.change .bar2 {
    opacity: 0;
}

.nav-menu .nav-menu__burger.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-7px, -6px);
    transform: rotate(45deg) translate(-7px, -6px);
}

/* Stile del menu */
.nav-menu .nav-menu__main-menu {
    position: fixed;
    top: 0;
    right: -1000px; /* Inizialmente fuori dallo schermo */
    width: 200px;
    transition: right 0.4s;
    padding: 140px 20px 0; /* Spazio per il burger menu */
    z-index: 900;
}
/* Mostra il menu */
.margin-t {
    margin-top: 15px;
}
.nav-menu .nav-menu__main-menu.show {
    right: 0; /* Muove il menu nella vista */
}

#main-menu h3 {
    padding-top: 2vh;
    padding-bottom: 1vh;
}
#main-menu ul {
    padding: 0;
    margin: 0;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    list-style: none;
}
#main-menu ul li {
    padding: 1vh 0;
    margin-bottom: 10px;
    border: 1px solid black;
    background: white;
}
#main-menu ul.nav-menu__main-menu__actions li {
    background-image: url("../img/chevron-right.svg");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
}
#main-menu ul.nav-menu__main-menu__actions li:has(.txt_chiusura-tavolo) {
    display: none;
}

#main-menu ul li a {
    padding: 0 10px;
    text-decoration: none;
    color: black;
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-menu__bottom {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    width: 100%;
}
.nav-menu__bottom h3 {
    background-color: rgb(87 86 86 / 45%);
    text-align: center;
    padding-top: 10px;
    margin: 0;
}
.nav-menu__bottom .option-selected {
    padding: 1vh 1vw;
    background-color: rgb(87 86 86 / 45%);
    display: flex;
    justify-content: space-around;
    gap: 5px;
}

.nav-menu__bottom .option-selected .option-selected__col,
.nav-menu__bottom .option-selected .option-selected__col .option-selected__posizione {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.nav-menu__bottom .help__container {
    padding: 1vh 1vw;
    background-color: rgba(150, 150, 150, 60%);
    display: flex;
    flex-direction: column;
}

.nav-menu__bottom .help__container a {
    color: black;
    text-decoration: none;
}

.nav-menu__bottom .help__container .help__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #575656;
    padding: 1vh 1vw;
    font-size: 90%;
}
.nav-menu__bottom .help__container .help__button span {
    color: white;
}
.help__container img {
    filter: brightness(0) invert(1);
}
.nav-menu__bottom .help__container .help__button.info_request {
    margin-top: 1vh;
}

.copyright__container {
    text-align: right;
}

.show-mobile {
    display: none;
}
.show-desktop {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 0px;
    position: relative;
}
.modal-content .close {
    font-size: 30px;
    position: absolute;
    right: 20px;
    cursor: pointer;
}
.modal-content h2 {
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
}
.modal-content p,
.modal-content strong {
    font-size: 14px;
}
@media (max-width: 2048px) {

    .options-menu {
        min-width: 200px;
    }

    .product-finish__options .form-group {
        padding: 7px 5px;
    }

    .nav-menu .logo {
        max-height: 60px;
    }
    .option-selected__col img,
    .product-finish .radio-selector {
        width: 45px;
        height: 45px;
    }
    .copyright__container img {
        width: 50px;
    }
}
@media (max-width: 1024px) {

    .sidebar.nav-menu {
        left: 1vw;
        width: 0;
    }
    .sidebar.nav-menu .nav-menu__burger {
        left: 3vw;
        top: 3vh;
        transition: left 0.4s;
    }
    .sidebar.nav-menu .nav-menu__burger.change {
        left: 180px;
        top: 10px;
    }
    .nav-menu {
        align-items: flex-end;
        height: calc(95vh - 30px);
    }
    .nav-menu .logo {
        max-height: 30px;
    }
    .nav-menu .nav-menu__main-menu {
        background-color: #fff;
        box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
        padding: 50px 20px;
        height: 100vh;
    }
    .nav-menu .nav-menu__burger {
        display: flex;
        top: 50px;
        transition: 0.4s;
    }

    .options-menu {
        min-width: 200px;
        position: absolute;
        left: -1000px;
        height: 100vh;
        transition: left 0.4s;
    }
    #options-menu.show {
        left: 0;
    }
    .tab-content {
        height: 50vh;
    }
    .product-finish__options .form-group {
        padding: 5px 2px;
    }
    .option-selected__col span.product-finish__name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1; /* Numero di linee dopo cui troncare il testo */
        overflow: hidden;
        font-size: 8px;
    }
    .show-mobile {
        display: block;
    }
    .show-desktop {
        display: none;
    }
}
@media (orientation: portrait) {
    .options-menu,
    .nav-menu {
        display: none;
    }
}