/* SLIDE MY SLIDE  - 2*/
/*
 -webkit- (Chrome, Safari, versioni più recenti di Opera.).
-moz- (Firefox).
-o- (Vecchie versioni di Opera).
-ms- (Internet Explorer).
Per ultima sempre quella normale

Per verifiche : shouldiprefix.com
 */
#slider2 {
    margin: 30px;
}
 
#wrapper {
    border: 1px solid #ccc;
    height: 320px;
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 480px;
}
.slider2 {
    position: absolute;
    top: 0;
    left: 0;
    height: 320px;
    width: 1920px; /* larghezza totale */
}
.slider2 li {
    float: left;
    height: 320px;
    width: 480px;
}
.slider2 img {
    display: block;
}
 
/* link di navigazione */
.navigation {
    overflow: hidden;
    width: 100%;
 
}
.navigation a {
    background: #ccc;
    color: #333;
    font: bold 14px arial, helvetica, sans-serif;
    display: block;
    float: left;
    padding: 4px 10px;
    margin-right: 5px;
    text-decoration: none;
}
.navigation a:active {
    background-color: #999; 
}
 
.js-shown {
    display: none !important;
}

.hasjs .js-shown {
    display: block;
}
.hasjs #wrapper {
    overflow: hidden;
}

/* SLIDE MY SLIDE*/

.slider{
   width: 1320px;
   position: relative;
   padding-top: 400px;
   padding-bottom: 20px;
   box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.65);
   overflow:auto ;
   margin-left: auto;
   margin-right: auto;
}
.slider>img{
   position: absolute;
   left: 0;
   top: 0;
   transition: all 0.5s; 
}

input[name='slide_switch']{
display: none;   
}
.slider label{
   margin: 18px 0 0 10px;
   cursor: pointer;
   opacity: 0.6;
   float: left;
   width: 200px;
   height: 120px;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center;
}

.slider label img{
   display: block;
}
.sl1{
    width: 100%;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 0 6px 6px;
    margin-top: 95px;
}
/* Time add the clicck effects*/
.slider input[name='slide_switch']:checked + label{
   opacity:1;
}

.slider input[name='slide_switch']:hover + label{
   opacity:1;
}
.slider input[name='slide_switch'] ~ img{
   opacity:0;
   transform: scale3d(1.1);
}
.slider input[name='slide_switch']:checked + label + img{
   opacity: 1;
}




/* SLIDE IMMAGINI*/

.sliderheader{
    width:inherit;
    height:inherit;
    padding-bottom: 0%;
    overflow:hidden;
    position:absolute;
    z-index: 1;
    }

@media only screen and (min-width: 320px){
.sliderheader img{
    position:absolute;
    animation:sliderheader 24s infinite;
    width: 100%;
    height: inherit;}

@keyframes sliderheader {99%{z-index:-1} 1%{z-index:1}} 
.sliderheader img:nth-child(6){animation-delay:0s;}
.sliderheader img:nth-child(5){animation-delay:4s;}
.sliderheader img:nth-child(4){animation-delay:8s;}
.sliderheader img:nth-child(3){animation-delay:12s;}
.sliderheader img:nth-child(2){animation-delay:16s;}
.sliderheader img:nth-child(1){animation-delay:20s;}

.sliderheaderP {
    width:inherit;
    height:inherit;
    padding-bottom: 0%;
    overflow:hidden;
    position:absolute;
    z-index: 1;
    }
.sliderheaderP img{
    position:absolute;
    animation:sliderheaderP 32s infinite;
    width: 100%;
    height: inherit;}

@keyframes sliderheaderP {99%{z-index:-1} 1%{z-index:1}}
.sliderheaderP img:nth-child(8){animation-delay:0s;}
.sliderheaderP img:nth-child(7){animation-delay:4s;}
.sliderheaderP img:nth-child(6){animation-delay:8s;}
.sliderheaderP img:nth-child(5){animation-delay:12s;}
.sliderheaderP img:nth-child(4){animation-delay:16s;}
.sliderheaderP img:nth-child(3){animation-delay:20s;}
.sliderheaderP img:nth-child(2){animation-delay:24s;}
.sliderheaderP img:nth-child(1){animation-delay:28s;}

}

/* ANIMAZIONE TESTO*/
.sliderText{
	z-index: 2;
	position:relative;
    padding-left: 5%;
}
/* Fade del titolo H1 - apparizzione lenta */
.sliderText h1{
	font-weight: 900;
	text-shadow: 5px -2px rgba(0, 0, 0, 0.6);
	text-align: left;
    color: #ffffff;
    opacity:1;
    animation:sliderText_h1 24s infinite;
}
.sliderText h2{
    font-weight: 700;
	text-shadow: 5px -2px rgba(0, 0, 0, 0.6);
	text-align: left;
    color: #ffffff;
    opacity:1;
}
@keyframes sliderText_h1
{99%{opacity: -1} 1%{opacity: 1}}
/*{0%{opacity: 1} 10%{opacity: 1} 100%{opacity: 1}}*/
.sliderText h1{animation-delay:0s;}
/* Fade del p (paragrafo) - apparizzione lenta in po' dopo h1*/
.sliderText div{
    
	font-weight: 700;
	text-align: left;
	margin-top: 1%;
    width: 80%;
    padding: 0.5% 2%;
    background: -ms-linear-gradient(90deg, rgba(0, 0, 0, 0.5)10%, rgba(0, 0, 0, 0.2)30%, rgba(0, 0, 0, 0)40%, rgba(0, 0, 0, 0) 100%);
    background: -webkit-linea-gradient(90deg, rgba(0, 0, 0, 0.5)10%, rgba(0, 0, 0, 0.2)30%, rgba(0, 0, 0, 0)40%, rgba(0, 0, 0, 0) 100%);
    background:  -moz- linear-gradient(90deg, rgba(0, 0, 0, 0.5)10%, rgba(0, 0, 0, 0.2)30%, rgba(0, 0, 0, 0)40%, rgba(0, 0, 0, 0) 100%);
    background: -o-linear-gradient(90deg, rgba(0, 0, 0, 0.5)10%, rgba(0, 0, 0, 0.2)30%, rgba(0, 0, 0, 0)40%, rgba(0, 0, 0, 0) 100%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5)10%, rgba(0, 0, 0, 0.2)30%, rgba(0, 0, 0, 0)40%, rgba(0, 0, 0, 0) 100%);
   /* box-shadow: 5px 0px 18px rgba(255, 255, 255, 0.7);*/
    color: rgba(255, 255, 255, 0.9);
}
#p_1, #p_2, #p_3, #p_4, #p_5, #p_6,
#psub_1, #psub_2, #psub_3, #psub_4, #psub_5, #psub_6
{
    position: absolute;
    opacity: 0;
    z-index: -1;
    animation:sliderText_p 24s infinite; 
}

@keyframes sliderText_p {0%, 17.5%, 100%	{ opacity: 0; z-index: 0; }
			5%, 15%{ opacity: 1; z-index: 1; }}

/*@keyframes sliderText_p {0% {opacity:1; color:#ffffff} 50% {opacity:0; color: rgba(0, 0, 0, 0.5);}  100%{opacity:0; color: rgba(0, 0, 0, 0.5);}} */
#p_6 {animation-delay:1s;}
#p_5 {animation-delay:5s;}
#p_4 {animation-delay:9s;}
#p_3 {animation-delay:13s;}
#p_2 {animation-delay:17s;}
#p_1 {animation-delay:21s;} 

#psub_6 {animation-delay:1s;}
#psub_5 {animation-delay:5s;}
#psub_4 {animation-delay:9s;}
#psub_3 {animation-delay:13s;}
#psub_2 {animation-delay:17s;}
#psub_1 {animation-delay:21s;} 
/* Nascondere Lista voci tempo pari all'inizio dell'animazione delle singole voci */
.sliderText ul{
	list-style: none;
    animation: hidd 4s 1;
}
@keyframes hidd {
    0%{opacity: 0;}
    100%{opacity: 0;}
}
.sliderText ul{animation-delay: 0s;}
/* singola voce che pulsa*/
.sliderText li{
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0);
    padding: 3px 15px;
	font-weight: 700;
	text-align: left;
	margin-top: 1%;
    animation:pulse 3s 1 ease-in-out; 
}

@keyframes pulse {
    0% {opacity: 0; }
    10%{opacity: 1; }
    20% {opacity:0; }
    30%{opacity: 1; }
     }
.sliderText li:nth-child(1){animation-delay:4s;}
.sliderText li:nth-child(2){animation-delay:5s;}
.sliderText li:nth-child(3){animation-delay:6s;}


