﻿body {

}


/*a:hover div {opacity:0.7;}*/


/*BANNER*/

.banner {
    width:90%;
    min-width:1004px;
    height:330px;
    display:block;
    margin-top:0px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:0px;
    background-color:#a6becf;
    border-top:solid 3px #c20d20;
    border-bottom:solid 3px #c20d20;
    box-shadow:0 5px 20px rgba(0, 0, 0, 0.33);
    border-radius:4px;
    overflow:hidden;
}

.img {
    height:390px;
    display:block;
    background-size:100% auto;
    background-position:bottom center;
    position:relative;
    top:0px;
    left:0px;
}
#bannerimagepanel {
    overflow:hidden;
}
#bannerimagepanel img {
    /*width:100%;*/
    position:absolute;
    left:0px;
    top:0px;


}

.frase {
    width:435px;
    /*height:95px;*/
    position:relative;
    top:-240px;
    display:block;
    right:0%;
    float:right;
    background-color:rgba(0, 0, 0, 0.4);
    color:white;
    padding:20px;
    font-size:20px;
    box-shadow:3px 3px 5px rgba(0, 0, 0, 0.33);
    border-radius:3px;
    display:none;
    font-weight:400;
    font-size:18px;
    padding-bottom:12px;
    background-color:rgba(255, 255, 255, 0.4);
    color:black;

    right:11%;
    margin-right:-100px;
    width:42%;
    top:-300px;
    font-weight:300;
    background-color:transparent;
    color:white;
    font-size:23px;
    box-shadow:none;
    color:#234857;
    /*font-family:"droid sans";*/
    /*color:white;
    text-shadow:1px 1px 2px black;*/
}

.frase:hover {background-color:rgba(0, 0, 0, 0.6); background-color:rgba(255, 255, 255, 0.6); background-color:rgba(35, 72, 87, 0.3);}
.frase span {display:block;}
.freccia {background-size:auto 100%; height:17px; margin-top:5px;}


#lbutton, #rbutton{
    width:48px;
    height:48px;
    display:block;
    background-color:rgba(0, 0, 0, 0.4);
    margin-top:151px;
    border-radius:5px;
}

.lbutton {background-image:url(../img/lbutton.png); position:relative; top:-100px; left:3%; float:left;margin-left:30px;}
.rbutton {background-image:url(../img/rbutton.png);position:relative; top:-20px; right:3%; float:right;margin-right:30px;}



/*LASTNEWS*/

.lastnew {
    width: 90%;
    margin: 0 auto;
    height: 50px;
    display: block;
    color: #234857;
    font-size: 22px;
    line-height: 50px;
    text-indent: 15px;
    overflow: hidden;
    font-weight: 300;
    font-size: 19px;
    min-width: 1004px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    font-family: "Oswald";
    font-weight: 200;
}
.lastnew b {
    font-family: "Oswald";
}

/*CORPO*/

/*BLOCCO1*/

.blocco1 {
    width: 100%;
    height: 163px;
    display: block;
    margin-top: 45px;
    margin-top: 25px;
}

.single_block {
    width: 300px;
    height: 100%;
    display: block;
    background-color: #f7f7f7;
    color: white;
    float: left;
    /*border-top:solid 2px #c20d20;
    border-bottom:solid 1px #c20d20;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.30);
    border-radius: 4px;
    overflow: hidden;
    width: 320px;
}
#a1, #a2, #a4, #a5 {
    margin-right: 52px;
    margin-right: 22px;
}

.blocco1 a:hover .single_block  {background-color:#f7f7f7; box-shadow:0 2px 15px rgba(0, 0, 0, 0.30);}
.blocco1 a:hover div span {opacity:1;}

.blocco1 div span {
    height: 120px;
    display: block;
    background-size: 100% auto;
    background-position: center top;
    opacity: 0.7;
}

#a1 span {background-image:url(../img/a1.jpg);}
#a2 span {background-image:url(../img/a2.jpg);}
#a3 span {background-image:url(../img/a3.jpg);}
#a4 span {background-image:url(../img/a4.png);}
#a5 span {background-image:url(../img/a5.jpg);}
#a6 span {background-image:url(../img/a6.jpg);}



.blocco1 div div { padding-left:10px; }

.title1 { font-size:25px; font-weight:400; color:white; }

.testoblock {
    display: block;
    height: 70px;
    text-align: left; 
}


.blocco1 .title1 {font-size:27px; font-weight:400; color:white; padding-top:0px;  padding-bottom:0px; color:#234857;}
.blocco1 .testoblock {
    display:block;height:50px; margin-top:5px; margin-right:8px; color:#234857;
    font-weight:300; font-size:15px;   font-weight:lighter;

    /*font-family:"Droid Sans";
    font-size:14px; line-height:18px;*/
    font-family: "Oswald";
    font-weight: 200;
}


.blocco1 div div.freccia {margin:5px 30px 10px 10px; padding:0;}







/*BLOCCO2*/

#blocco2 {
    width:100%;
    height:65px;
    display:block;
    margin-top:46px;
    margin-bottom:65px;

    margin-top:35px;
    margin-bottom:43px;
}

#b1,#b2,#b3,#b4 {
    width:245px;
    height:100%;
    display:block;
    color:white;
    float:left;
    opacity:1;
    margin-right:30px;
}

#blocco2 div span {
    width: 65px;
    height: 65px;
    display: block;
    float: left;
}
#blocco2 h1 { font-weight:400;}


#b1 span {background-image: url(../img/b1.png);}
#b2 span {background-image: url(../img/b2.png);}
#b3 span {background-image: url(../img/b3.png);}
#b4 span {background-image: url(../img/b4.png);}

#blocco2 div div {
    max-width:170px;
    margin:29px 5px 0 7px;
    display:block;
    float:left;
    line-height:25px;
    color:#234857;
    font-size:14px;
}

#blocco2 a:hover div {opacity:0.6;}

b {font-size:19px; color:#0072bc; color:#c20d20; }


.banner-mobile {display:none;}

@media (max-width:1023px) {
    .lastnew { width:100% !important; min-width:80% !important; padding:0 0%; overflow:hidden; }

    #slider_cont {display:none;}

    .banner-mobile {
        display:block;
        width:100%;
        height:250px;
        background-image:url(../img/1.jpg);
        background-size:cover;
        background-position:center center;
    }

    .lastnew {
        font-size:14px; line-height:normal;
        padding:10px 20px; box-sizing:border-box; height:auto; text-indent:0;
    }
    .lastnew b {font-size:14px; }


    .blocco1{margin:5px 0 !important; height:190px; }
    .blocco1 a:hover .single_block{background-color:white;}
    .single_block {
        background-color:white;
        width:32.3%; margin:5px 0.5% !important; box-sizing:border-box;
        border-radius:0; box-shadow:none; position:relative;
    }
    .blocco1 div span {
        background-size:cover; background-position:center center;
        height:100px; width:100%; position:absolute; z-index:5; opacity:0.2;
    }
    #a5 span {opacity:0.15;}
    .blocco1 .title1 { position:absolute; z-index:10; line-height:25px; font-size: 22px; padding-top:38px; text-shadow:0 0 2px white;}
    .blocco1 .testoblock { margin:110px 0 8px 0; float:left; height:auto; }



    
    #blocco2 {overflow:hidden; height:auto;}
    #b1, #b2, #b3, #b4 {
        width:49% !important; display:block; box-sizing:border-box; margin:0.5% 0.5%;
        background-color:white;
    }
    #blocco2 h1 {line-height:65px;}
    #blocco2 div div {margin: 0px 5px 0 15px;}


    
}

@media (max-width:910px) {
    #a6 .title1 {padding:20px 20px 0 10px;}
}

@media (max-width:750px) {
    .banner-mobile {height:120px;}
    .single_block { }
}



@media (max-width:650px) {
    .single_block {
    width:100%; margin:1% 0 !important;
    min-height:160px; height:auto !important; overflow:hidden;
    }

    #b1, #b2, #b3, #b4 {width:100% !important; margin:0.5%; }

}

