#bg_head{
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  filter: brightness(0.9);
  -webkit-mask-image: -webkit-gradient(linear, left 70%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)))
}
#targa{
  display:flex;
  flex-direction:column;
  margin-left:2vw;
  margin-top:5vh;
  position: absolute;
  top:0;
  max-width: 580px;
}
#titoli{
  font-family: Garamond;
  font-weight: bold;
  backdrop-filter:brightness(0.9);
  border-radius: 7px;
  padding-right: 5px;
}
#titolo{
  height:60%;
  line-height:100%;
  font-size:70px;
}
#sottotitolo{
  color:white;
  height:30%;
  line-height:100%;
  font-size:30px;
}
#divSlogan{
  display: flex;
  align-items: center;
  justify-content: center;
  position:absolute;
  bottom:0;
  width:100%;
}
#slogan{
  background-color: rgb(184, 252, 172, 0.5);
  font-family: Cabin sketch;
  border-radius: 15px;
  color: forestgreen;
  font-size: 26px;
  width: auto;
  display: inline-flex;
  text-align: center;
  padding: 5px;
  padding-bottom: 70px;
  -webkit-mask-image: -webkit-gradient(linear, left 40%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)))
}
#slogan2{
  visibility: hidden;
  background-color: rgb(184, 252, 172, 0.8);
  font-family: Cabin sketch;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  color: forestgreen;
  font-size: 16px;
  width: auto;
  display: inline-flex;
  text-align: center;
  padding: 5px;
}
#videoFrame{
  top: 30%;
  right: 0;
  position: absolute;
  margin-right: 6vw;
  margin-bottom: 15vh;
  padding: 5px;
  backdrop-filter: brightness(0.9);
}
#videoFrame2{
  visibility: hidden;
  left: 0;
  right: 0;
  margin: auto;
  margin-top: 20px;
  padding: 5px;
  backdrop-filter: brightness(0.9);
}
@keyframes arrow {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-10px, -10px);
  }
}
.arrow, .arrow:before {
  position: absolute;
  left: 50%;
}
.arrow {
  width: 40px;
  height: 40px;
  bottom: 25px;
  cursor: pointer;
  margin: -20px 0 0 -20px;
  -webkit-transform: rotate(45deg);
  border-left: none;
  border-top: none;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
}
.arrow:before {
  content: '';
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -10px 0 0 -10px;
  border-left: none;
  border-top: none;
  border-right: 1px #fff solid;
  border-bottom: 1px #fff solid;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

.sottotitoli{
  font-size: 40px;
}

.paragrafi{
  font-family:Helvetica;
  margin-top: 50px;
  width:100%;
  padding-left:20vw;
  padding-right:20vw;
}
#marsiaFaggeta{
  padding-top: 20px;
  padding-bottom: 20px;
}
#centroTuristico{
  margin-top: 0px;
  padding-top: 5%;
  padding-bottom: 50px;
  background-color: white;
  -webkit-mask-image: -webkit-gradient(linear, left 25%, left top, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)))
}
#centroTuristico h2{
  text-align:right;
  margin-top:20px;
}
#textCentroTuristico{
  display:flex;
  align-items:center;
}
#imgCentroTuristico2{
  visibility: hidden;
  width: 0px;
}
#attività{
  text-align:center;
  background-color:white;
  margin-top: 0px;
  padding-bottom: 20px;
  padding-top: 20px;
  filter:brightness(0.98);
}
#progettoPetronilla {
  text-align: center;
  font-family: Helvetica;
  width: 100%;
  padding-left: 20vw;
  padding-right: 20vw;
  padding-bottom: 50px;
  padding-top: 50px;
  justify-content: center;
  background-color: rgb(252, 217, 177, 0.5);
  -webkit-mask-image: -webkit-gradient(linear, left 25%, left top, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)))
}
#endPage{
  padding-bottom: 50px;
}


/*gestione header in altezza*/
@media only screen and (max-height: 750px) {
  #player{
    height: 215px;
    width: 460px;
  }
}
@media only screen and (max-height: 650px) {
  #videoFrame{
    top: 10%;
  }
  #slogan{
    font-size: 20px;
  }
}
@media only screen and (max-height: 410px) {
  #divSlogan{
    visibility: hidden;
  }
  #slogan2{
    visibility: visible;
  }
  #videoFrame{
    top: auto;
    bottom: 5px;
  }
}
@media only screen and (max-height: 500px) {
  .arrow{
    visibility: hidden;
  }
}
@media only screen and (max-height: 410px) and (max-width: 1150px) {
  #targa{
    margin-left:0px;
    left: 0;
    right: 0;
    top: 20px;
    margin: auto;
  }
  #videoFrame2{
    visibility: visible;
  }
  #videoFrame{
    visibility: hidden;
  }
}

@media only screen and (min-height: 410px) and (max-width: 1150px) {
  #targa{
    margin-left:0px;
    left: 0;
    right: 0;
    top: 20px;
    margin: auto;
  }
  #videoFrame2{
    visibility: visible;
  }
  #videoFrame{
    visibility: hidden;
  }
}
@media only screen and (max-height: 650px) and (max-width: 1150px) {
  #divSlogan{
    visibility: hidden;
  }
  #slogan2{
    visibility: visible;
  }
}


@media only screen and (max-width: 1500px) {
  #player{
    height: 215px;
    width: 360px;
  }
  .paragrafi{
    padding-left:15vw;
    padding-right:15vw;
  }
}
@media only screen and (max-width: 1200px) {
  #slogan{
    font-size: 2.4vw;
  }
  .sottotitoli{
    font-size: 40px;
  }
  #marsiaFaggeta{
    text-align: center;
  }
  #textMarsiaFaggeta{
    flex-direction: column;
    align-items: center;
  }

}
@media only screen and (max-width: 970px) {
  #centroTuristico h2{
    text-align: center;
  }
  #centroTuristico{
    align-items: center;
    text-align: center;
    padding-top: 90px;
  }
  #textCentroTuristico{
    margin-top: -20px;
    flex-direction: column;
  }
  #naturaIncontaminata{
    padding-bottom: 0px;
  }
  #imgCentroTuristico{
    visibility: hidden;
    height: 0px;
  }
  #imgCentroTuristico2{
    visibility: visible;
    width: 400px;
  }
}
@media only screen and (max-width: 700px) {
  #targa{
    margin-left:0px;
    left: 0;
    right: 0;
    margin: auto;
  }

}
@media only screen and (max-width: 650px) {
  #targa{
    top:20px;
    width: 90vw;
  }
  #titolo{
    height:60%;
    font-size:11vw;
  }
  #sottotitolo{
    height:30%;
    font-size:5vw;
  }
  #slogan{
    font-size: 3vw;
  }
}
@media only screen and (max-width: 500px) {
  #titoli img{
    width: 30vw;
  }
  #slogan2{
    font-size: 4vw;
  }
  #slogan{
    font-size: 4vw;
  }
  #imgMarsiaFaggeta{
    width: 80vw;
  }
  #imgCentroTuristico2{
    width: 80vw;
  }
}
@media only screen and (max-width: 400px) {
  #titoli img{
    width: 30vw;
  }
  #slogan2{
    font-size: 4vw;
  }
  #videoFrame2{
    width: 90vw;
  }
  #player2{
    width: 87vw;
    height: auto;
  }
  .sottotitoli{
    font-size: 9vw;
  }
}
@media only screen and (max-width: 350px) {
  #slogan{
    font-size: 5vw;
  }
}


/*Progetto Petronilla*/
#bodyPetronilla{
  background-color: rgb(184, 252, 172, 0.5);
  padding:2vh 2vw 2vw 2vh;
}
.imgInvito{
  margin-left:10px;
  margin-bottom:10px;
  width: 270px;
  max-height: 240px;
}
.imgsLaVita{
  top:0;
  bottom:0;
  margin: auto;
  margin-right:10px;
  margin-left:10px;
  max-height:300px;
}
#imm2-2{
  visibility: hidden;
  height: 0px;
  margin: 0px;
}

@media only screen and (max-width: 1100px) {
  #bodyPetronilla{
    padding-left: 0px;
    padding-right: 0px;
  }
  .textRow_Column{
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  .sottotitoliPetronilla{
    text-align: center;
  }
}
@media only screen and (max-width: 900px) {
  .textRow_Column_LaVita{
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  .imgsLaVita{
    margin: 0px;
    margin-bottom: 20px;
  }
  #imm2-1{
    visibility: hidden;
    height: 0px;
    margin: 0px;
  }
  #imm2-2{
    visibility: visible;
    max-height:300px;
    height: auto;
  }
}
@media only screen and (max-width: 400px) {
  .imgInvito{
    width: 70vw;
  }
  .imgsLaVita{
    width: 60vw;
  }
}
