body {background-color: white;
   text-align:justify-all;
   }


/*banner*/
.banner-area {
    width: 100%;
    height: 27em;
    position:relative;
    background-image: url(../immagini/Welcome-to-Edinburgh.gif);
    background-size: cover ;
    background-position:center; }

/*menu*/
nav {background-color: #05438e;
           padding: 2px;}

nav ul li {display:inline-block;
                padding: 0.5em;
                }

nav ul li a {color: #ffff;
                    padding:inherit;
                    text-decoration: none;
                    font-family: serif;
                    font-size: 1.5em;}


li a.active {
    background-color:white;
    color: #05438e;
    padding: 2% 0;
}

li a:hover:not(.active) {
    background-color: #DBE2EA;
    color: #05438e;
    padding: inherit;
}


/*descrizione sito*/
.incipit{
    text-align: justify;
    font-family: sans-serif;
    color: #05438e;
    font-weight: bold;
    border-color: #ffff;
    border-style:groove;
    border-radius: 2em;
    background-color: #DBE2EA;}

/*dentro il sito*/
.contenuto{
    width: 100%;
    position: relative;
    background: white;
    text-align: center;
}


.contenuto h3{
    font-family: sans-serif;
    letter-spacing: 0.5em;
    padding-top: 3%;
    font-size: 2em;
    margin: 0;
    text-align: center;
    color: cornflowerblue;
    text-decoration: underline;
}

.contenuto h4 {
    font-family: sans-serif;
    font-size: 1.5em;
    text-align: center;
    color: #05438e;
}

.contenuto p{
    padding: 2% 0;
    font-family: sans-serif;
    line-height: 2em;
    text-align: justify;
    margin-top: 2%;
    padding-bottom: 3%;

}


.dentro{
    width: 90%;
    margin: 0 auto;
    position: relative;
}

/*3 foto*/

.table {
    display: table;
    width: 100%;
    margin-top: 5%;
}
.row {
    display: table-row;
    width: 80%;
    margin: auto;
}
.cell {
    display: table-cell;
    width: 33%;
    text-align: center;
    padding: 2%;
    font-size: 0.8em;
    padding-top: 6%;
    padding-bottom: 7%;
}

#chart_div {
    width: 60%;
    margin: auto;
    
}



.imghome {
    width: 100%;
    border-radius: 0.8em;
}
.imghome:hover {
    transform: scale(0.9);
    transition: all ease 0.5s;
    filter: brightness(1.5);
}

/*footer*/
footer {
    
    height: 20%;
    background: #05438e;
    width: 100%;
    margin: auto;
    color: white;
    text-align-last: center;
    
}

#contatti { font-size: 1em;
font-family: sans-serif;
padding-top: 1em;}



#logo{
    width: 4%;
   
}

#logo2 {
    width: 2%;
}


/*da scoprie*/

.attivita {
    width: 55%;
    margin-right: 33%;
}

/*curiosità*/

.curiosita{
    width: 25%;
    float: right;
    margin-top: 15%;
    margin-bottom: 15%;
    position: relative;
    background-color: #05438e;
    padding: 4em;
    padding-bottom: 1em;
    padding-top: 1em;
    color: white;
   
    
}


/*eventi*/
#tableContainer {
    width: 100%;
    position: relative;
    height: auto;
    display: table;
    border-spacing: 1.5em;
}
#tablerow{
    display: table-row;
}


#main{
    display: table-cell;
    background: #DBE2EA ;
    font-size: 1em;
    padding: 2%;
    vertical-align: top;
    height:  1000px;
    width:66%;
}



.video {
   
    padding-bottom: 2em;
    width: 100%
}

#calendario {
    padding-top: 2em;
    padding-right:6em;
}



#sidebar {
display: table-cell;
  background:#DBE2EA;
  padding: 4%;
width: 33%;
  }

#sidebar h2 {
    color: darkblue;
}




#box {
    
    margin-top: 8em;
}


.trefoto {
    width: 55%;
    margin-top: 2%;
    border-style: solid;
    border-radius: 2em;
    padding: 2em;
    border-color: darkblue;
   
}




.immagine{
        width: 55%;
    margin-top: 2%;
    border-style: solid;
    border-radius: 2em;
    padding: 2em;
    border-color: darkblue;
   
     }
#prima {
    width: 35%;
    border-style: solid;
    border-radius: 2em;
    padding: 2em;
    border-color: darkblue;
    margin-bottom: 2em;
    
}




.float {
    width: 60%;
    border-radius: 2em;
    
}
.visite img {
    text-align: center;
}
span{
    font-weight: bold;
}

/*tabella dintorni*/
table {
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    border: thin solid blue;
    color: darkblue;
    width: 90%;
}

td, th {
    
    text-align: justify;
    padding: 1.5em;
}

#citta {
    width: 100%;
}

#verde {
    width: 100%;
}


#andrea {
    width: 100%;
}
#map {
    
    margin-bottom: 5%;
}


/*castello*/
#elenco {
    text-align: left;
    font-family: sans-serif;
    padding-bottom: 2em;
   
}




@media screen and (max-width: 767px) {
    
    
    .banner-area {
    width: 100%;;
    height: 9em;
    position:relative; 
    background-image: url(../immagini/Welcome-to-Edinburgh.gif);
    background-size: cover ;
    background-position:center; 
   
    }
    
    /*menu*/
nav {background-color: #05438e;

    }

nav ul li {display:grid;
                
                }

nav ul li a {color: #ffff;
                    padding: inherit;
                    text-decoration: none;
                    font-family: serif;
                    font-size: 1em;
   }


li a.active {
    background-color:white;
    color: #05438e;
    padding: 2% 0;
}

li a:hover:not(.active) {
    background-color: #DBE2EA;
    color: #05438e;
    
}
    
   
    
 /*descrizione sito*/
.incipit{
    font-size: 0.8em;
    text-align: justify;
    font-family: sans-serif;
    color: #05438e;
    font-weight: bold;
    border-color: white;
    border-style: groove;
    border-radius: 2em;
    background-color: #DBE2EA;}
    
    .contenuto h3{
    font-family: sans-serif;
    letter-spacing: 0.5em;
    padding-top: 3%;
    font-size: 1em;
    margin: 0;
    text-align: center;
    color: cornflowerblue;
    text-decoration: underline;
}
    .contenuto h4 {
    font-family: sans-serif;
    font-size: 0.8em;
    text-align: center;
    color: #05438e;
}
    .contenuto p{
    font-size: 0.8em;
    padding: 2% 0;
    font-family: sans-serif;
    line-height: 2em;
    text-align: justify;
    margin-top: 2%;
    padding-bottom: 3%;

}
    
    
    
    #prima {
        width: 70%;
    }
    
    
    #chart_div {
        width: 90%;
       
        
        
    }
    
    /*da scoprire*/

.attivita {
    width: 100%;
}
    
    .immagine {
        width: 80%;
    }
    


    .curiosita{
    width: 70%;
    margin-top: 15%;
    margin-bottom: 15%;
    position: relative;
    background-color: #05438e;
    padding: 4em;
    padding-bottom: 1em;
    padding-top: 1em;
    color: white;
}

   footer {
    
    height: 20%;
    background: #05438e;
    width: 100%;
    bottom: 0;
    left: 0;
    position: relative;
    color: white;
    text-align-last: center;
    line-height: 2em;
    float: inherit;
} 
    
    #logo {
        width: 10%;
        
        
    }
    
    #logo2 {
        width: 5%;
    }
    
   /*eventi*/

   #main{ 
    width: 90%;
    margin: auto;
    background: #DBE2EA ;
    font-size: 1em;
    vertical-align: top;
    height:  auto;
    display: block;
    padding-bottom: 2em;
}
    
    #tableContainer {
        border-spacing: 0.5em;
    }
    
#sidebar { 
   display: block;
   width: 86%;
   margin-left: 0.8em;

    } 

 .video {
        width: 100%;}
    
    
 #calendario {
        width: 100%;
        margin: auto;}

    
 /*castello*/
#elenco {
    text-align: left;
    font-family: sans-serif;
    padding-bottom: 2em;
    font-size: 0.8em;
}
    
/*tabella dintorni*/
 
    th {display: none;}

    .none {display: none;}
    
    td {display: grid;}
    
    
/*3foto*/
.table {
    
    width: 100%;
    margin-top: 5%;
    margin-left: 20%;
   
    
}
    .row{
        display: grid;
    }

    
.cell {
    display: grid;
    width: 45%;
    text-align: center;
    padding: 2%;
    font-size: 0.8em;
    padding-top: 6%;
    padding-bottom: 7%;
}

  .trefoto {
    width: 80%;
    margin-top: 2%;
    border-style: solid;
    border-radius: 2em;
    padding: 2em;
    border-color: darkblue;
   
}  
    
} 
 



   
 
