

/* ------------------------------------------------------------------------------- */
/*  6. Overlay 

BUTTON CONTAINER
senza classe posizione: è fisso
posizione ii: più basso (supporta l'animazione)
posizione iii: è fisso
posizione iv: più alto (supporta l'animazione)
/* ------------------------------------------------------------------------------- */


.container {
  position: absolute;
  width: 100%;
  heigh: 100%;
  text-align: center;
  top: 40%;
  left: 0;
  margin: 0 auto;
  font-family: 'Roboto', sans-serif;
}
.container p {
  font-size: 20px;
}
.container a {
  display: inline-block;
  position: relative;
  text-align: center;
  color: #FF5252;
  text-decoration: none;
  font-size: 20px;
  overflow: hidden;
  top: 5px;
}
.container a:after {
  content: '';
  position: absolute;
  background: #FF5252;
  height: 2px;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  left: 50%;
  bottom: 0;
  -webkit-transition: .35s ease;
  transition: .35s ease;
}
.container a:hover:after, .container a:focus:after, .container a:active:after {
  width: 100%;
}

h1 {
  position: relative;
/*  text-align: center;
  font-family: 'Vollkorn', serif;*/
}

.button_container {
  position: fixed;
  top: 5%;
  right: 2%;
  height: 27px;
  width: 35px;
  cursor: pointer;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
/*  display:none;*/
  z-index:1002;
}
.button_container.active {
  position: fixed;

  right: 2.9%;
  height: 27px;
  width: 35px;
  cursor: pointer;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
/*  display:none;*/
  z-index:1002;
}
.button_container:hover {
  opacity: .7;
}
.button_container.active .top {
  -webkit-transform: translateY(11px) translateX(0) rotate(45deg);
          transform: translateY(11px) translateX(0) rotate(45deg);
  background:#196f9c;
}
.button_container.active .middle {
  opacity: 0;
  background: #196f9c;
}
.button_container.active .bottom {
  -webkit-transform: translateY(-11px) translateX(0) rotate(-45deg);
          transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: #196f9c;
}
.button_container span {
  background: #196f9c;
  border: none;
  height: 5px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all .35s ease;
  transition: all .35s ease;
  cursor: pointer;
}

.button_container span.tipo2 {
  background: #1c5471;
  border: none;
  height: 2px;
  border-radius: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all .35s ease;
  transition: all .35s ease;
  cursor: pointer;
}

.button_container span:nth-of-type(2) {
  top: 11px;
}
.button_container span:nth-of-type(3) {
  top: 22px;
}


.button_container.posizione-ii {
    display: block;
	right:24px;
	top: 34px;
	-webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    transition: top 0.3s;
}



.button_container.posizione-iii {
    display: block;
	right:70px;
	top: 70px;
	-webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    transition: top 0.3s;
}

.button_container.posizione-iv {
    display: block;
	right:150px;
	top: 50px;
	-webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    transition: top 0.3s;
}

.button_container.posizione-v {
    display: block;
	right:150px;
	top: 45px;
	-webkit-transition: top 0.3s;
    -moz-transition: top 0.3s;
    transition: top 0.3s;
}


.button_container.posizione-ii.shrink {top:50px;}
.button_container.posizione-iii.shrink {top:50px;}
.button_container.posizione-iv.shrink {top:30px;}
.button_container.posizione-iv.shrink {top:21px;}
/*personalizzazioni */ 


@media only screen and (max-width:850px) {
.button_container.headinvi {
    right: 25px;
}
.button_container.posizione-ii {
    right: 10px!important;
}
	.button_container.posizione-iii {
    right: 5px;
}
		.button_container.posizione-iv {
    right: 15px;
}


}




.txt-pre-pulsante-container { position: fixed;
top: 3%;
right: 72px;
color: #bbb;
z-index: 9999;}

.minerva .button_container span {
  background: #666;
  border: none;
  height: 1px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all .35s ease;
  transition: all .35s ease;
  cursor: pointer;
}
.minerva .button_container span:nth-of-type(2) {
  top: 11px;
}
.minerva .button_container span:nth-of-type(3) {
  top: 22px;
}


.phoiniks .button_container {
  position: fixed;
  top: 3%;
  right: 12px;
  height: 27px;
  width: 35px;
  cursor: pointer;
  z-index: 100;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
/*  display:none;*/
  z-index:99999;
}


.phoiniks .button_container span {
  background: #666;
  border: none;
  height: 2px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-transition: all .35s ease;
  transition: all .35s ease;
  cursor: pointer;
}
.phoiniks .button_container span:nth-of-type(2) {
  top: 11px;
}
.phoiniks .button_container span:nth-of-type(3) {
  top: 22px;
}

/* fine personalizzazioni */

body.stopscroll {overflow-y: hidden !important ; padding-right:18px}
.overlay {
  position: fixed;
  background: #eee;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
  z-index:99;
}
.overlay.open {
  opacity: .9;
  visibility: visible;
  height: 100%;
}
.overlay.chiusa {
  opacity: 0;
  visibility: hidden;
  height: 100%;
}
.overlay.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}
.overlay nav {
  position: relative;
  height: 70%;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  
}
.overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}
.overlay ul li {
  display: block;
  height: 10%;
  height: calc(100% / 8);
  min-height: 20px;
  position: relative;
  opacity: 0;
}
.overlay ul li a {
  display: inline;
  position: relative;
 color:#000;
  text-decoration: none;
  overflow: hidden;
}

.overlay ul li a img {
height:30px; margin:32px 5px;
}

.overlay ul li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
  width: 100%;
}
.overlay ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  height: 3px;
  background: #FFF;
  -webkit-transition: .35s;
  transition: .35s;
}


/* overlay singolo */

.overlay-sing {
  position: fixed;
  background: #222;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
  z-index:99;
}
.overlay-sing.open {
  opacity: 1;
  visibility: visible;
  height: 100%;
}

.testos {}
.ooverlay-sing.chiusa {
  opacity: 0;
  visibility: hidden;
  height: 100%;
}
.overlay-sing.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay-sing.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay-sing.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay-sing.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}


/*bottoni per overlay singolo*/

.button_container-2 {
}
.button_container-2 {
    margin-top: 10px;
    width: auto;
    cursor: pointer;
    z-index: 100000;
    -webkit-transition: opacity .25s ease;
    transition: opacity .25s ease;
    position: relative;
    display: inline-block;
    font-size: 15px;
   
    color: #000;
/*    padding: 4px 16px;*/
    border-radius: 4px;
}
.button_container-2.active {
    position: fixed;
    bottom: 12px;
    right: 10px;
    background: #ccc;
    color: #000;
    padding: 12px;
    border-radius: 12px;font-size:16px;
}



/* overlay 2 */

.overlay2 {
  position: fixed;
  background: #eee;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: scroll;
  z-index: 1001;
}
.overlay2.open {
  opacity: .97;
  visibility: visible;
/* min-height: 120%;*/
height: 100%;
margin-bottom: 85px;
}
.overlay2.chiusa {
  opacity: 0;
  visibility: hidden;
  height: 100%;
}
.overlay2.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay2.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay2.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay2.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}
.overlay2 nav {
  position: relative;
/*  height: 100%;*/
  top: 60%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 42px;
  font-weight: 400;
  text-align: right;
  margin-right:15vw;
  
  
}
.overlay2 ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}
.overlay2 ul li {
  display: block;
  height: 10%;
  height: calc(100% / 8);
  min-height: 20px;
  position: relative;
  opacity: 0;
}
.overlay2 ul li a {
  display: inline;
  position: relative;
 color:#000;
 color:#486759;
  text-decoration: none;
  overflow: hidden;
}

.overlay2 ul li a img {
height:30px; margin:32px 5px;
}

.overlay2 ul li a:hover:after, .overlay2 ul li a:focus:after, .overlay2 ul li a:active:after {
  width: 100%;
}
.overlay2 ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  height: 3px;
  background: #FFF;
   background:#486759;
  -webkit-transition: .35s;
  transition: .35s;
}


/* submenu*/

.overlay2 ul li ul {
display: block;
}

.overlay2 ul li ul li  {
margin-bottom: 0px;
	display: inline-block;
}

.overlay2 ul li ul li a {
  display: inline;
  position: relative;
 color:#000;
 color:#486759;
  text-decoration: none;
  overflow: hidden;
	font-size:18px;
	font-weight: normal;
}

/* fine overlay 2 */


/* overlay 3 */


.overlay3 {
  position: fixed;
/*  background: #eee;*/
 background: rgba(0,0,0,0.5);
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
  z-index:99;
}
.overlay3.open {
  opacity: .97;
  visibility: visible;
  height: 100%;
}
.overlay3.chiusa {
  opacity: 0;
  visibility: hidden;
  height: 100%;
}
.overlay3.open li {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay3.open li:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay3.open li:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay3.open li:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}
.overlay3 nav {
  position: relative;
  height: 70%;
  top: 45%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
  text-align: right;
  margin-right:15vw;
  
  
}
.overlay3 ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}
.overlay3 ul li {
  display: block;
  height: 10%;
  height: calc(100% / 6);
  min-height: 20px;
  position: relative;
  opacity: 0;
}
.overlay3 ul li a {
    display: inline;
    position: relative;
    color: #000;
    text-decoration: none;
    overflow: hidden;
    background: white;
    padding: 12px 22px;
    border-radius: 42px;
}


.overlay3 ul li a img {
height:30px; margin:32px 5px;
}

.overlay3 ul li a:hover:after, .overlay3 ul li a:focus:after, .overlay3 ul li a:active:after {
  width: 100%;
}
.overlay3 ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  height: 3px;
  background: #FFF;
   background:#486759;
  -webkit-transition: .35s;
  transition: .35s;
}

/* fine overlay 3 */




/* overlay 3 */
.nome-menu-ii-overlay {font-size:20px; color:white; display: block; margin-top:38px; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 4px solid #ddd; font-weight: 700;}
.nome-menu-overlay { font-size:18x; color:white; display: block; margin-top:38px; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 4px solid #ddd; font-weight: 700;}
.overlay4 {
  position: fixed;
/*  background: #eee;*/
/* background: rgba(0,0,0,0.7);*/
background:white;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity .35s, visibility .35s, height .35s;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow-y: scroll;
  z-index:99;
}
.overlay4.open {
  opacity: .97;
  visibility: visible;
  height: 100%;
}
.overlay4.chiusa {
  opacity: 0;
  visibility: hidden;
  height: 100%;
}
.overlay4.open li.overlay4 {
  -webkit-animation: fadeInRight .5s ease forwards;
          animation: fadeInRight .5s ease forwards;
  -webkit-animation-delay: .35s;
          animation-delay: .35s;
}
.overlay4.open li.overlay4:nth-of-type(2) {
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.overlay4.open li.overlay4:nth-of-type(3) {
  -webkit-animation-delay: .45s;
          animation-delay: .45s;
}
.overlay4.open li.overlay4:nth-of-type(4) {
  -webkit-animation-delay: .50s;
          animation-delay: .50s;
}

.overlay4 .contenitore {


margin-left: 32px;
  margin-right:38px;

  
  
}


.overlay4 nav {
  position: relative;
  height: 70%;
  top: 31%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
margin-left: 32px;
  margin-right:15vw;
  
  
}
.overlay4 ul.overlay4 {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;

}
.overlay4 ul.overlay4 li {
  display: block;
  height: calc(100% / 6);
	  height: 55px;
  min-height: 20px;
  position: relative;
  opacity: 0;
}
.overlay4 ul.overlay4 li a {
    display: inline;
    position: relative;
    color: #000;
    text-decoration: none;
    overflow: hidden;
    background: white;
    padding: 12px 22px;
    border-radius: 42px;
}


.overlay4 ul.overlay4 li a img {
height:30px; margin:32px 5px;
}

.overlay4 ul.overlay4 li a:hover:after, .overlay4 ul.overlay4 li a:focus:after, .overlay4 ul.overlay4 li a:active:after {
  width: 100%;
}
.overlay4 ul.overlay4 li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  height: 3px;
  background: #FFF;
   background:#486759;
  -webkit-transition: .35s;
  transition: .35s;
}


.overlay4.noafter ul.overlay4 li a:after {
  content: none;

}

/* fine overlay 3 */


















@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    left: 20%;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}

@media only screen and (max-width:800px) {
    .button_container {
        display:block;
    }
}

@media only screen and (max-width:660px) {
  .overlay2 nav {

  font-size: 32px;
 
}
	
	  .overlay3 nav {

  font-size: 16px;
 
}

}
