/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/******************************************************************************************************
	AGGIUNTO Importato dal vecchio sito per rendere responsive il video nella pagina "Come funziona"
*******************************************************************************************************/
/* .videoWrapper { 	position: relative; 	padding-bottom: 56.25%; /* 16:9 */ 	/*padding-top: 25px; 	height: 0; } 
/*.videoWrapper iframe { 	position: absolute; 	top: 0; 	left: 0; 	width: 100%; 	height: 100%; }
*/


/* Correzione tema: Colore link header */
#header .header-nav .user-info a { color: #ffba00; text-decoration: underline; 
}
#header .header-nav .user-info a:hover {
    color: #ffffff; 
}


/* Correzione tema: Colore link prima colonna footer */
#ttcmsfooter-content > div> a {color: #fff}
#ttcmsfooter-content > div> a:hover {color: #ffba00}




.video-container {
  width: 100%;
  max-width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


footer .linklist .col-md-6.wrapper {
  width: 100%;
}




hr.style5 {
	background-color: #fff;
	border-top: 2px dashed #8c8b8b;
}


hr.style6 {
	background-color: #fff;
	border-top: 2px dotted #8c8b8b;
}

hr.style10 {
	border-top: 1px dotted #8c8b8b;
	border-bottom: 1px dotted #fff;
	padding: 5px;
}


h3.istruzioni { font-size:18px !important; }
.centrata {text-align:center;}

h3.testoistruzioni1 {font-size:1.3em !important; color:#666;  font-weight: normal;}
h3.titoloistruzioni2 {font-size:17px !important; }



@media only screen and (min-width: 768px) {
h3.testoistruzioni1 {
padding-top:36px !important;
}
}


ol.elencowoody li {margin-bottom: 10px;}

.fancybox-error {
    background: #ffcc00 !important;
}




 /* DIvido in 5 le colonne bootstrap */
@media (min-width: 1200px) {
  .col-lg-1-5 {
    width: 20%;
    float: left;
  }
}



    /* Regola CSS per allineare l'immagine a sinistra solo su desktop */
    @media (min-width: 992px) {
        .align-left-desktop {
            float: left;
            margin-right: 15px !important; /* Aggiunge spazio a destra dell'immagine per separarla dal testo */
            margin-bottom: 10px !important; /* Aggiunge spazio sotto l'immagine per separarla dagli elementi successivi */
        }
    }

    /* Regola CSS per allineare l'immagine a sinistra solo su mobile */
    @media (max-width: 991px) {
        .align-left-mobile {
            display: block;
            margin: 0 auto 10px; /* Centra l'immagine e aggiunge spazio sotto per separarla dagli elementi successivi */
        }
    }


/* tiro un po' su il blocco iscrizione newsletter nel footer */
#newslatter {padding-top:0;}



/* Parte per la pagina faq */
#accordion-container {
	font-size: 13px;
	background: #ffffff;
	padding: 5px 10px 10px 10px;
	border: 1px solid #cccccc;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow: 0 5px 15px #cccccc;
	-webkit-box-shadow: 0 5px 15px #cccccc;
	box-shadow: 0 5px 15px #cccccc;
}

.accordion-header {
	font-size: 1.5em;
	background: #ebebeb;
	margin: 5px 0 0 0;
	padding: 10px 20px;
	border: 1px solid #cccccc;
	cursor: pointer;
	color: #666666;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.active-header {
	-moz-border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
	background: url('/img/cms/active-header.png') #549C18 ;
	color: #fff;
	background-repeat: no-repeat;
	background-position: 99% 50%;
}

.active-header:hover {
	background: url('/img/cms/active-header.png') #ebebeb;
	color: #444;
	background-repeat: no-repeat;
	background-position: 99% 50%;
}

.inactive-header {
	background: url('/img/cms/inactive-header.png') #ebebeb;
	background-repeat: no-repeat;
	background-position: 99% 50%;
}

.inactive-header:hover {
	background: url('/img/cms/inactive-header.png') #f5f5f5;
	background-repeat: no-repeat;
	background-position: 99% 50%;
}

.accordion-content {
	display: none;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #cccccc;
	border-top: 0;
	-moz-border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
	border-radius: 0 0 5px 5px;
	font-size: 1.32em;
	line-height: normal;
}
.accordion-txtimg {padding-left: 80px; display: inline-block; min-height: 50px; padding-top: 10px;}

.istruzioni-01_bg {background: url('/img/cms/ISTRUZIONI_Tavola-disegno-1.png'); background-repeat: no-repeat; background-position: 0 0; }
.istruzioni-02_bg {background: url('/img/cms/ISTRUZIONI-02.png'); background-repeat: no-repeat; background-position: 0 0; }
.istruzioni-04_bg {background: url('/img/cms/ISTRUZIONI-04.png'); background-repeat: no-repeat; background-position: 0 0; }
.istruzioni-05_bg {background: url('/img/cms/ISTRUZIONI-05.png'); background-repeat: no-repeat; background-position: 0 0; }
.istruzioni-06_bg {background: url('/img/cms/ISTRUZIONI-06.png'); background-repeat: no-repeat; background-position: 0 0; }


/* Fine parte FAQ */





/* MENU */

.top-menu {
    position: relative; /* Assicura che il menu principale sia un punto di riferimento */
}

.top-menu .sub-menu {
    border: 4px solid #eeeeee;
	background: #f9f9f9 !important;
    left: 100%;
    top: 0;
    margin-left: 0;
    min-width: max-content;
    max-width: 100%;
    padding: 20px;
    position: absolute;
    width: auto;
    z-index: 18;
    background: white;
    overflow-y: auto; /* Scroll verticale se necessario */
    max-height: 90vh; /* Altezza massima del 90% della viewport */
    white-space: normal;
}

.top-menu .sub-menu ul[data-depth="1"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 20px;
}

.top-menu .sub-menu ul[data-depth="1"] > li {
    text-align: left;
    vertical-align: top;
    padding: 0 !important;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Posizionamento dinamico del submenu */
.top-menu > li:hover .sub-menu {
    display: block;
    top: 50%;
    transform: translateY(-30%);
    max-height: 80vh;
}

/* Responsività per dispositivi mobili */
@media (max-width: 768px) {
    .top-menu .sub-menu ul[data-depth="1"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .top-menu .sub-menu ul[data-depth="1"] {
        grid-template-columns: 1fr;
    }
}

#left-column ul {font-size:16px;}
#left-column ul a:link, #left-column ul a:visited {color:#444;}
#left-column ul a:hover, #left-column ul a:focus,  #left-column ul a:active {color:#549C18; background:#eee;}

#left-column ul li:hover > a, 
#left-column ul li:has(.sub-menu:hover) > a, 
#left-column ul li:has(.sub-menu:focus-within) > a {
    color: #549C18;
    background: #eee;
}

.top-menu a.dropdown-submenu {
    font-weight: bold;
    min-height:62px;
	line-height:15px;
	margin-bottom:15px;
}

@media (min-width: 992px) {
    .top-menu a.dropdown-submenu::after {
        background: #549c18 none repeat scroll 0 0;
        bottom: 0;
        content: "";
        height: 1px;
        left: 0;
        position: absolute;
        width: 100%;
    }
}

/* Colora la scrollbar nei browser WebKit (Chrome, Safari, Edge) */
.top-menu .sub-menu::-webkit-scrollbar {
    width: 12px; /* Imposta la larghezza della scrollbar */
}

.top-menu .sub-menu::-webkit-scrollbar-thumb {
    background-color: #549c18; /* Colore della parte mobile della scrollbar */
    border-radius: 10px; /* Rende la scrollbar arrotondata */
}

.top-menu .sub-menu::-webkit-scrollbar-track {
    background-color: #f0f0f0; /* Colore della traccia della scrollbar */
}

/* Colora la scrollbar in Firefox */
.top-menu .sub-menu {
    scrollbar-color: #549c18 #f0f0f0; /* Colore della parte mobile e traccia */
    scrollbar-width: thin; /* Larghezza della scrollbar */
}


/* FINE MENU */







/* Tre mini banner in home */
.ttsubbanner-img img {border: 1px solid #549C18;}
.ttsubbanner-img img:hover {border: 1px solid #333;}

/* Riduco il breadcrumb */
#left-column div h4 {
    font: 600 16px / 16px "Poppins", Helvetica, sans-serif !important;
    background: linear-gradient(to right, #eee 65%, rgba(238, 238, 238, 0) 100%); /* Sfumatura graduale dal 65% */
    margin-bottom: 20px !important;
}
#wrapper .breadcrumb li span {font: 400 14px / 16px "Poppins", Helvetica, sans-serif; color:#549C18;}
#wrapper .breadcrumb li a:hover {text-decoration:underline !important;}
#wrapper .breadcrumb {margin-bottom: 50px;}




