/**
* 2007-2021 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2021 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
#threeDlightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Sfondo nero semi-trasparente per effetto ombra */
    backdrop-filter: blur(10px); /* Applica l'effetto blur agli elementi dietro la lightbox */
    -webkit-backdrop-filter: blur(10px); 
    z-index: 99999999;
    border: 2px solid #dadada;
    overflow: hidden;
    -webkit-box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 25%);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.25);
    box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 25%);
}

#threeDlightbox_inner {
	
    top: 10px;
    margin: auto;
    position: relative;
    overflow: hidden;
    cursor: grab;
}
#threeDlightbox.active {
  display: block;
}




@media only screen and (min-width: 220px) and (min-height: 220px) {
  #threeDlightbox_inner {
      width: 200px;
      height: 200px;
  }
}
@media only screen and (min-width: 320px) and (min-height: 320px) {
  #threeDlightbox_inner {
      width: 300px;
      height: 300px;
  }
}
@media only screen and (min-width: 420px) and (min-height: 420px) {
  #threeDlightbox_inner {
      width: 400px;
      height: 400px;
  }
}
@media only screen and (min-width: 520px) and (min-height: 520px) {
  #threeDlightbox_inner {
      width: 500px;
      height: 500px;
  }
}
@media only screen and (min-width: 620px) and (min-height: 620px) {
  #threeDlightbox_inner {
      width: 600px;
      height: 600px;
  }
}
@media only screen and (min-width: 720px) and (min-height: 720px) {
  #threeDlightbox_inner {
      width: 700px;
      height: 700px;
  }
}
@media only screen and (min-width: 820px) and (min-height: 820px) {
  #threeDlightbox_inner {
      width: 800px;
      height: 800px;
  }
}



#product3D {
    overflow: hidden;
    height: 100%;
}
#product3D canvas {
    width: 100%!important;
    height: 100%!important;

}


#close3dLightbox {
    background:#a3c800;
    color: #fff;
    z-index: 999999999;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px; /* Centratura verticale */
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%; /* Arrotondamento bordi (cerchio) */
    cursor: pointer;
    border: none;
    transition: opacity 0.3s;
}

#close3dLightbox:hover {
    opacity: 0.9; /* Effetto hover */
}
#start3D {
    background-color: #a3c800;
    color: white;
    text-align: center;
    display: inline-block;
    padding: 7px 22px;
    font-weight: bold;
    cursor: pointer;
	border-radius: 30px;
}
#start3D:hover {
    opacity: 0.8;
}




/* RANGE Slider */

input#range3d {
    -webkit-appearance: none;
    appearance: none;
    height: 5px; /* Spessore della barra */
    width: 300px; /* Lunghezza del range slider */
    background: #d3d3d3; /* Colore della barra */
    opacity: 0.9; /* Leggera trasparenza */
    transition: opacity 0.2s ease-in-out;
    position: absolute; /* Posizionamento assoluto per poterlo piazzare in basso al centro */
    bottom: 30px; /* Posizionato a 20px dal fondo del contenitore */
    left: 50%; /* Posizionato centralmente orizzontalmente */
    transform: translateX(-50%); /* Centro esatto orizzontale tramite traslazione */
    z-index: 999999; /* Assicurati che sia visibile sopra gli altri elementi */
	border-radius: 25%;
}
@media only screen and (max-width: 600px) {
input#range3d {
	  width: 50vw !important; }}
	
/* Posizionamento dA ELIMINARE SE + E - NON WORKANO*/

/* Stile comune per le etichette */
.range-label {
    position: absolute;
    font-size: 35px;
    font-weight: bold;
    color: #000000;
    user-select: none;
}

/* Stili per dispositivi mobili */
@media screen and (max-width: 768px) {
    .range-label.minus {
        left: 20px;
        top: 90%;
        transform: translateY(-50%);
    }

    .range-label.plus {
        right: 20px;
        top: 90%;
        transform: translateY(-50%);
    }
}

/* Stili per dispositivi desktop */
@media screen and (min-width: 769px) {
    .range-label.minus {
        left: 190px;
        top: 95.5%;
        transform: translateY(-50%);
    }

    .range-label.plus {
        right: 190px;
        top: 95.5%;
        transform: translateY(-50%);
    }
}



/* Thumb (maniglia) del range slider */
input#range3d::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px; /* Larghezza del thumb */
    height: 15px; /* Altezza del thumb */
    background: #a3c800; /* Colore del thumb */
    border-radius: 50%; /* Rende il thumb rotondo */
    cursor: pointer; /* Indicatore di interattività */
    transition: transform 0.2s ease, background 0.3s ease;
}

/* Thumb (maniglia) hover */
input#range3d::-webkit-slider-thumb:hover {
    transform: scale(1.2); /* Ingrandisce la maniglia al passaggio del mouse */
    background: #ff9900; /* Cambia colore al passaggio del mouse */
}

/* Stile per Firefox */
input#range3d::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #a3c800;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

input#range3d::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #ff9900;
}

/*elimina questo se esplode */
#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Sfondo semi-trasparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeout 8s forwards; /* Durata totale di 8 secondi */
    animation-delay: 3s; /* Ritardo di 2 secondi prima che inizi a sbiadire */
	 pointer-events: none; /* Rende il preloader "trasparente" agli eventi posso muoverlo anche prima*/
}

/* Spinner animato */
#preloader:before {
    content: '';
    border: 4px solid rgba(255, 255, 255, 0.3); /* Cerchio semitrasparente */
    border-left-color: #a3c800; /* Colore del caricamento */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite; /* Animazione di rotazione */
}

/* Animazione di rotazione */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animazione di dissolvenza del preloader */
@keyframes fadeout {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden; /* Nasconde il preloader alla fine */
    }
}

/* altro css*/
/* Modalità Full-Screen */
#threeDlightbox:fullscreen {
    display: block; /* Assicurati che il lightbox sia visibile */
    width: 100vw; /* Larghezza massima della viewport */
    height: 100vh; /* Altezza massima della viewport */
    background: #000; /* Sfondo nero per una visione migliore */
    overflow: hidden; /* Nascondi overflow */
}

/* Contenitore interno adattato */
#threeDlightbox_inner:fullscreen {
    width: 100vw;
    height: 100vh;
}

/* Pulsante Full-Screen nella modalità normale */
#fullscreenToggle {
    background: #a3c800; /* Colore di sfondo */
    cursor: pointer;
    z-index: 999999;
    border-radius: 20px; /* Arrotondamento */
    display: flex; /* Layout flessibile per centrare l'icona */
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente */
    width: 50px; /* Larghezza del pulsante */
    height: 50px; /* Altezza del pulsante */
    transition: opacity 0.3s;
}
#fullscreenToggle:hover {
    opacity: 1;
}
#fullscreenToggle svg {
    width: 30px; /* Dimensioni SVG */
    height: 30px;
	display : block;
}
