/**** GENERAL *****/
*{
  font-family: roboto;
}

a {
  text-decoration: none;
  color: #002358;
}

.container {
  max-width:1350px;   
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

main {
  padding-top: 120px;  
}

/**** HEADER *****/
header {
	padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
  background-color: white;

}


.logo-container {
	text-align: center;
	height: 64px;
	max-height: auto;
	width: auto;
	background:linear-gradient(to right, white 1% , #002358 50%, white 99%);
}

.mylogo{
	height: 64px;
	max-height: 100%;
	width: auto;
}

.navbar li a {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 0px 20px;
  font-size: 1.2em;
  color: #002358;
}

.navbar {
  text-align: center;
  border-bottom: solid 2px;
  color: #002358;
  background-color: white;
  margin
}

  .navbar ul li{
  display: inline-block;
  text-decoration: none;
}

.navbar ul li :hover{
  transition: .7s;
  border-radius: 8px;
  background-color: #EAE6E5;


}

.navbar ul li:hover > ul,
.drop  ul:hover {
  visibility: visible;
  transition: visibility  5s;
  opacity: 1;
  display: block;
  float: left;
  padding: 0;  
  }

.drop ul{
  visibility: hidden;
  position: absolute;
  z-index: 1;
  text-align: left;
  ;
}

.navbar ul li ul li {
  display: block;
  position: relative;
  text-align: left;
  padding: 15px 0;
  background-color: #EAE6E5;
  border: solid 1px;
  border-radius: 3%;
}


/****** INTRO PIC ******/
.page404-content {
  margin-top: 7.5%;
  margin-bottom: 7.5%;
  display: flex;
}

.page404 {
  padding: 0 50px;
  width: 50%;
}

.page404 img{
  max-width: 800px;
  height: auto;
}

.page404 p {
  font-size: 2em;
  text-align: center;
  margin: 20px 0 0 0 ;
}


/***** FOOTER *****/


#page-footer {
  margin-top: 0;
  background-color: #002378;
  
  color: white;
}

#mainfooter{
  margin: 0 auto;
}

#mainfooter ul{
  display: inline-block;
  
}

#mainfooter li {
  list-style: none;
}

#mainfooter i{
  color: white;
}

.myfooter{
  width: 450px;
  margin: 0 auto;
  background-color: #002378;
}

.social-icon{
  margin-left: 25px;
}

.social-icon li{
  padding-bottom: 9px;
}

#mainfooter .social-icon span i:hover{
  color: orange;
  font-weight: bold;
}

#mainfooter .social-icon span:hover{
  color: orange;
  font-weight: bold;
}


.social-icon i{
  margin-right: 10px;
}

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


/****** INTRO PIC ******/
#intro-pic{

}


#intro-pic .container {
  display: flex;
  flex-grow: 1;
  max-width: 100%;
  flex-grow: 1;
  margin: 50px auto 100px auto;
  height: auto;
  max-height: 350px;
}

.container img{
  width: 100%;
  height: auto;
  max-height: 300px;
}

#intro-pic .item1{
  max-height: 300px;
}

#intro-pic .item2{
  max-height: 300px;
}

#intro-pic .item3{
  width: 100%;
  height:auto;
  background-color: white;
  animation: change-background 1.5s 0.3s ease-out;
  max-height: 300px;
}

#intro-pic .caption h1{
font-size: 1em;
}

/**** CLASS PRODUCT ****/
#classproduct {
  flex-direction: column;
  justify-content: center;
}

#classproduct .item{
  margin: 2.5% auto 5% auto;
}

#classproduct .item p{  
  font-size: 1.2em;
  text-align: justify;
  padding-left: 2%;
  padding-right: 2%;
}

#classproduct .item h1{
padding-left: 0;
margin-top: 0;text-align: center;
}

}



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

}


/********* ANIMATION ***********/

@keyframes from-right {

0% {opacity: 0;
transform: translateX(500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes from-left {

0% {opacity: 0;
transform: translateX(-500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes from-top {

0% {opacity: 0;
transform: translateY(-500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes from-bottom {

0% {opacity: 0;
transform: translateY(500px);
}
  
100% {opacity: 1;
transform: translateX(0px);
}

}

@keyframes change-background {

0% {
  opacity: 0.25;
  background-color: black;

}

33% {
  opacity: 0.50;
  background-color: darkgrey;
}

66% {
  opacity: 0.75;
  background-color: lightgrey;
}

100% {
  opacity: 1;
  background-color: #F6F7F8;
}

}

@keyframes lampeggia {
0% {
  opacity: 1;
}
50% {
  opacity: 0;
}
100% {
  opacity: 1;
}

}