/*
CSS altri elementi 
*/

/* 
    Created on : 16-giu-2016, 9.17.57
    Author     : manmasel
*/

/*****************************************************************************
* Generale
*****************************************************************************/


body{
    min-width: 1000px;
}

 a {
      text-decoration:none;
      color: whitesmoke;
   }

 .PageHeaderSubMenuButton a {
      text-decoration:none;
      color: black;
   }
  
a span {
      text-decoration:none;
      color: #444;
   }

.pageTitle{
    font-weight: bold;
}

.bigText {
    font-size:3em;
}

/*simula click bottone*/
.downloadButton:active {
    transform: scale(0.9);
}

#divloader
{
    position:fixed;
    left: 0;
    top: 0;
    width:100%;
    height: 100%;
    z-index: 999;
    background-color:Black;
    opacity:0.6;
    text-align: center;
}
#divloader img{
    display: block;
    margin-top: 20%;
    margin-left: 50%;
}
#divloader p{
    position: absolute;
    width: 300px;
    height: 50px;
    top: 50%;
    left: 50%;
    margin-left: -120px;
    /*margin-top: -2px;*/
}



.image {
    padding: 0 3em 0 3em;
    max-height: 40%;
    max-width: 20%;
    opacity: 0.8;
    width: auto;
}

.imageBackgroundPage {
    position: static;
    width: 100%;
    height: 500px;
    background-color: transparent;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size:cover ;
    z-index: -1;
    opacity: 0.3;
}
.imageRoundBorders {
    padding: 3em 3em 3em 3em;
    max-height: 40%;
    max-width: 22%;
    opacity: 0.8;
    width: auto;
    -webkit-border-radius: 80px;
    -moz-border-radius: 80px;
    border-radius: 80px;
}

.imageRoundBorders:hover {
    transform: scale(1.5);
}

.imageRoundBordersAnimated {
    padding: 0 3em 0 3em;
    max-height: 40%;
    max-width: 20%;
    opacity: 0.8;
    width: auto;
/*    -webkit-border-radius: 80px;
    -moz-border-radius: 80px;
    border-radius: 80px;*/
}

.imageRoundBordersAnimated:active {
    /*    position:absolute;
    
        padding: 0 3em 0 3em;  
        max-height: 70%;
        max-width: 100%;
        left: 15%;
        top:50%;
        opacity:1;
        ;
        border: 40px solid whitesmoke;
        background-color:whitesmoke;
        -webkit-border-radius: 80px;
        -moz-border-radius: 80px;
        border-radius: 80px;
          background-color: rgb(0,0,0);  Fallback color 
            background-color: rgba(0,0,0,0.4);  Black w/ opacity 
        z-index: 999999;*/
    transform: scale(1.5);
}

.imageRoundBordersSmall {
    padding: 0 3em 0 3em;
    max-height: 30%;
    max-width: 15%;
    opacity: 0.8;
    width: auto;
    -webkit-border-radius: 80px;
    -moz-border-radius: 80px;
    border-radius: 80px;
}

.imageSmall {
    padding: 0 3em 0 3em;
    max-height: 30%;
    max-width: 15%;
    opacity: 0.8;
    width: auto;
}

/* Overlay immagini hover */
.img-wrap {
    position: relative;
    /*display: inline-block;*/
    /*border-radius: 10px;*/
    overflow: hidden;
    cursor: pointer;
}
.img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.img-wrap:hover img {
    transform: scale(1.05);
}
.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: background 0.3s ease;
    max-width: max-content;
    margin-left: 30px;
}
.img-wrap:hover .img-overlay {
    background: rgba(0, 0, 0, 0.6);
}
.img-overlay p {
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0;
    line-height: 1.5;
}
.img-wrap:hover .img-overlay p {
    opacity: 1;
    transform: translateY(0);
}


.hrCenterScreen
{
    max-width: 50%;
    margin-left: 25%;

}

/*** Dialog***/
.ui-dialog {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-size: small;
}

#dialog {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-size: small;
    /*white-space:pre-wrap;*/
}

#dialog img{
    max-width: 300px;
}

#dialog input {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    width: 100px;
}

/*Disabilita contorno e focus dal tasto X di chiusura del dialo jquery*/
.ui-button:focus {
    outline: none;
}





.back-to-top {
    background: none;
    margin: 0;
    position: fixed;
    bottom: 20px;
    right: 35px;
    width: 50px;
    height: 60px;
    z-index: 100;
    display: none;
    text-decoration: none;
    /*color: #ffffff;*/
    color : #ff9000;
    /*background-color: #ff9000;*/
    font-size:medium;

}


.back-to-top i {
    font-size: 60px;
}

.fa {
    padding-top: 15px;
    padding-bottom: 15px;
    width: 50px;
    text-align: center;
    text-decoration: none;
    margin: 5px 2px;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-twitter {
    background: #55ACEE;
    color: white;
}

.fa-google {
    background: #dd4b39;
    color: white;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.fa-youtube {
    background: #bb0000;
    color: white;
}

.fa-instagram {
    background: #f40083;
    color: white;
}

.fa-pinterest {
    background: #cb2027;
    color: white;
}

.fa-snapchat-ghost {
    background: #fffc00;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.fa-skype {
    background: #00aff0;
    color: white;
}

.fa-android {
    background: #a4c639;
    color: white;
}

.fa-dribbble {
    background: #ea4c89;
    color: white;
}

.fa-vimeo {
    background: #45bbff;
    color: white;
}

.fa-tumblr {
    background: #2c4762;
    color: white;
}

.fa-vine {
    background: #00b489;
    color: white;
}

.fa-foursquare {
    background: #45bbff;
    color: white;
}

.fa-stumbleupon {
    background: #eb4924;
    color: white;
}

.fa-flickr {
    background: #f40083;
    color: white;
}

.fa-yahoo {
    background: #430297;
    color: white;
}

.fa-soundcloud {
    background: #ff5500;
    color: white;
}

.fa-reddit {
    background: #ff5700;
    color: white;
}

.fa-rss {
    background: #ff6600;
    color: white;
}

.fa-whatsapp {
    background:limegreen;
    color: white;
}

.floating-button {
    background: none;
    margin: 0;
    position: fixed;
    bottom: 50%;
    width: 55px;
    height: auto;
    z-index: 100;
    display: none;
    text-decoration: none;
    font-size: x-large;
    background-color: #ff900059;
}

.PageContent{
    display:none;
}




@media only screen and (max-device-width: 480px) {

    body{
        font-size:80%;
        min-width: 10px;
    }
    img{
        max-width: 100%;
    }

    /*simula click bottone*/
    .downloadButton:active {
        transform: scale(0.9);
    }

    .downloadButton {
        width: 20vw;
    }
    
    .imageBackgroundPage{
        width: 100%;
        height:200px !important;
        /*background-size: 100% !important;*/
        background-position-y: center;
        background-size: contain;
    }
    .imageRoundBorders {
        padding: 3em 3em 3em 3em;
        max-height: 40%;
        max-width: 60%;
        opacity: 0.8;
        width: auto;
        -webkit-border-radius: 80px;
        -moz-border-radius: 80px;
        border-radius: 80px;
    }
    
    .imageRoundBordersAnimated {
    /*padding: 0 3em 0 3em;*/
/*    max-height: 40%;
    max-width: 20%;*/
    /*opacity: 0.8;*/
    width: 100%;
    height: 100%;
/*    -webkit-border-radius: 80px;
    -moz-border-radius: 80px;
    border-radius: 80px;*/
}
}

/*****************************************************************************
* Header pagina
*****************************************************************************/


/* Decommentare per avere la barra menù fissa. Vanno aggiustate però altre parti del css
/*
#PageHeaderMenu {
    position: fixed;
    width: 100%;
    z-index: 9999999;
}*/

#PageHeaderMenu {
    width:100%;
    display: flex;
    background: #333;
}

#PageHeaderMenu ul {

    list-style-type: none;
    margin: 10px;
    padding: 0px;
    overflow: hidden;
    background-color: #333;
    top: 0;
    width: 100%;
    height: 80px;
    /*min-width: 1300px;*/
}

#PageHeaderMenu li {
    float: right;
    height: 80px;
    /*margin: 10px;*/
    display: block;
    color: white;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
}

#PageHeaderMenu li:hover:not(.active) {
    background-color: #111;
}

#PageHeaderMenu .active {
    background-color: #ff9900;
}

#PageHeaderMenu .image {
    padding: 10px;
    /*position: absolute;*/
    height:70px;
}

.flag:active {
    transform: scale(0.9);
}

/* Sottomenu a tendina */
#PageHeaderMenu li.dropdown {
    display: inline-block;
}

#PageHeaderMenu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999999;
    font-size: small;
}

#PageHeaderMenu .dropdown-content p {
    color: black;
    padding: 5px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

#PageHeaderMenu .dropdown-content p:hover {
    background-color: #f1f1f1
}

#PageHeaderMenu .dropdown:hover .dropdown-content {
    display: block;
}



@media only screen and (max-device-width: 480px) {

    #PageHeaderMenu .image {
        position: relative;
        height:50px;
        /*padding: 3px;*/
        /*width: 100%;*/
        /*top: 60px;*/
    }
    #PageHeaderMenu {
        width:100%;
        display: flex;
        background: #333;
        flex-direction: row;
        align-content: center;
        flex-wrap: wrap;
    }

    #PageHeaderMenu ul {
        top: 20px;
        width: 100%;
        height: 80px;
        min-width: 20px;
    }

    #PageHeaderMenu li {
        float: left;
        height: 40px;
        display: block;
        color: white;
        text-align: center;
        /*padding: 14px 10px;*/
        text-decoration: none;
    }
}

/*@media only screen and (max-width: 1300px) {

   #PageHeaderMenu .PageHeaderMenuButton {
    display: none;
}

}*/

/******************************************************************************
 ** Mainpage 
 *****************************************************************************/
#BannerContainer {
    height: 600px;
    position: relative;
    background-color: transparent;

}

/*Prima versione, foto deformate
/*#bannerbackground {   
    height: 100%;
    max-height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;    
    margin-right: auto; margin-left: auto;
    background-color: #ff9900;
    z-index: -1;
 
}
#bannerbackground img{
   height:100%;
     min-height: 600px;
     min-width: 1000px;
   max-width:100%;
   max-height: 1000px;
   width:100%;
     background-color: transparent;
}*/

/*Versione per foto zoomate con proporzioni ok*/
#bannerbackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: -1;
}


#bannerbackground img{
    flex-shrink: 0;
/*    min-width: 100%;
    min-height: 100%;*/
width: 100%;
    background-color: transparent;
}


#BannerContent {
    height:300px;
    background-color: transparent;
    width: 600px;
    padding: 2em 0 2em 0;
    text-align: center;
    top: 10%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    opacity:0.7;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    border-radius: 60px;
}

#BannerContent h2 {
    border-style: double solid;
    border-width: 4px 1px;
    font-size: 2.4em;
    line-height: 1.35em;
    margin: 0 auto 1em;
    padding: 1.1em;
    position: relative;
    width: 40%;
}

#BannerContent p {
    font-size: 1.5em;
    text-transform: uppercase;
    color:white;
}


#mainmenu {
    color: #ffffff;
    text-align: center;
}

button {
    background-color: #ff9900;
    color: #fff !important;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border-radius: 0;
    border: 0;
    cursor: pointer;
    display: inline-block;
    height: 2.85em;
    line-height: 2.95em;
    padding: 0 1.5em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

button:hover {
    background-color: #00b4b5;
}
button:active {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}


@media only screen and (max-device-width: 480px) {

    #BannerContainer {
        height: 300px;
        position: relative;
    }

    #bannerbackground {
        /*height: 100%;*/
        max-height: 300px;
        position: absolute;
        top: 0;
        left: 0;
        text-align: center;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        background-color: transparent;
        z-index: -1;

    }



    #bannerbackground img{
        height:100%;
        min-height: 300px;
        max-height: 600px;
        min-width: 10px;
        width:100%;
        background-color: transparent;
    }



    #BannerContent {
        height: 150px;
        background-color: transparent;
        width: 200px;
        padding: 2em 0 2em 0;
        text-align: center;
        top: 10%;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        opacity:0.9;
    }
    #BannerContent {
        height: 150px;
        background-color: transparent;
        width: 200px;
        padding: 2em 0 2em 0;
        text-align: center;
        top: 10%;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        opacity:0.9;
    }

    #BannerContent img {
        /*max-height: 80%;*/
    }

    #BannerContent p {
        font-size: 1.5em;
        text-transform: uppercase;
    }



    #mainmenu {
        color: #ffffff;
        text-align: center;
    }

    button{
        border: white;
        border-style: solid;
        border-width: 5px;
    }
}


/*******************************************************************************
* Slideshow
*******************************************************************************/

#slideshow {
    text-align: center;
    width: 100%;
    height: 500px;
    margin-right: auto;
    margin-left: auto;
    background-color: #f7f7f7;
    padding: 4em 0 6em 0;

}
/*#slideshow img {
    padding: 0 3em 0 3em;  
    max-height: 40%;
    max-width: 20%;
    width: auto;
        -webkit-border-radius: 60px;
-moz-border-radius: 60px;
border-radius: 60px;
     
}*/


@media only screen and (max-device-width: 480px) {

    #slideshow {
        text-align: center;
        width: 100%;
        /*height: 300px;*/
        margin-right: auto;
        margin-left: auto;
        background-color: #f7f7f7;
    }
    #slideshow img {
        padding: 0 0 0 0;
        max-height: 13%;
        max-width: 20%;
    }
}


/******************************************************************************
* Contenuto pagina, News
*******************************************************************************/
.PageContent{
    text-align: center;
    display:none;
    background-color: transparent;
    width: 100%;
    vertical-align: middle;
    /*height: 1200px;*/
}

.PageContentNews{
    text-align: center;
    /*overflow: auto;*/
    /*height: 500px;*/
    /*display:none;*/
    background-color: white;
    width:50%;
    margin-left: 25%;
    margin-bottom: 30px;
    /*    margin-top: 30px;*/
    vertical-align: middle;
    /*height: 1200px;*/
}

.PageContent iframe{
    border: 2px;
    border-radius: 25px;
    background: #ff9900;
    padding: 3px;
    width: 70%;
    height: 350px;

}

.PageContent table {
    margin: 0 auto; /* or margin: 0 auto 0 auto */

}




/******************************************************************************
* Footer
*******************************************************************************/

#PageFooterBar{
    position: relative;
    width:100%;
    background-color:#333;
    height: 50px;

}

#PageFooter {
    font-size:50%;
}


#newsadmin{
    float: right;
    margin-right: 160px;
    width: 5%;
    font-size: 1em;
}


@media only screen and (max-device-width: 480px) {
    .PageContent{
        text-align: center;
        display:none;
        background-color: transparent;
        width: 100%;
        /*height: 800px;*/
    }
    #PageFooterBar{
        position: relative;
        width:100%;
        background-color:#333;
        height: 50px;
        margin-top: 20px;
    }
    
    
#PageFooter {
    font-size:60%;
}

#PageFooter p{
         display: flex;
        flex-direction: column;
}

#newsadmin{
    /*float: right;*/
    /*margin-right: 160px;*/
    width: 30%;
    /*font-size: 1em;*/
}

}