section {
  padding: 3.5em 0;
}

.hero {
  min-height: 65vh;
  display: flex;
  align-items: center;
  position: relative;
  background: #f7f7f7 url(../images/sky.jpg) no-repeat center;
  background-size: cover;
  overflow: hidden;
}
p.recapito {
  display: block;
  padding: 10px 0;
  margin-top: 20px;
  color: #000;
}

.hero .row {
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #222;
  text-transform: uppercase;
  font-size: 50px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 0;
  line-height: 1;
}
.hero h4 {
  font-size: 28px;
  color: #18a79d;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  letter-spacing: 1px;
  margin: 0;
}
.hero img {
  position: absolute;
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  right: -250px;
  bottom: 0;
}
.hero a.btn_hero {
  padding: 20px 30px;
  margin-top: 20px;
  display: inline-block;
}
.hero a.btn-ebook {
  background-color: #333;
  color: #fff;
  text-transform: uppercase;
}
.hero a.btn-ebook:hover {
  color: #fff;
  background-color: #c59d5f;
}
.hero a.btn-chiamaci {
  background-color: #18a79d;
  color: #fff;
}
.hero a.btn-chiamaci:hover {
  opacity: 0.8;
}

/**
 *
 * INTRO
 *
 */
.intro-gemini {
  background-color: #fff;
  padding-bottom: 0;
}
.intro-gemini h2 strong {
  text-transform: uppercase;
  color: #18a79d;
  font-size: 60px;
}

/**
 *
 * GALLERY
 *
 */

.galleria {
  padding: 5em 0;
}
.galleria h2 {
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 30px;
}
.gallery-grid,
.gallery-grid .gallery-grid-affiancate {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.gallery-grid .gallery-grid-singola,
.gallery-grid .gallery-grid-affiancate {
  width: 100%;
}
.gallery-grid .gallery-grid-affiancate img {
  width: 49%;
}
.gallery-grid .gallery-grid-affiancate img:nth-child(1),
.gallery-grid .gallery-grid-affiancate img:nth-child(2) {
  margin-bottom: 2%;
}

#galleria-home {
  float: left;
  width: 100%;
}
#galleria-home .owl-item.active .items {
  filter: none;
  opacity: 1;
}
#galleria-home .items {
  height: 350px;
  overflow: hidden;
  position: relative;
  filter: grayscale(1);
  opacity: 0.2;
}
#galleria-home .items img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  outline: 2px solid #fff;
  outline-offset: -15px;
}
.galleria-carousel .owl-nav {
  position: absolute;
  top: 45%;
  width: 90%;
  transform: translate(-50%, -50%);
  left: 50%;
}

/**
 *
 * CARATTERISTICHE
 *
 */
.caratteristiche-gemini {
  padding-top: 0;
}
.caratteristiche-gemini h4 {
  color: #18a79d;
  margin-top: 0;
}
.caratteristiche-gemini ul li {
  margin-bottom: 10px;
}
.caratteristiche-gemini img {
  max-width: 450px;
}

/**
 *
 * LOCATION
 *
 */
.location-gemini {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background: #f7f7f7;
}
.location-gemini .desc-location {
  padding: 100px 50px;
}
.location-gemini .map div {
  width: 100%;
  height: 100%;
}
.location-gemini iframe {
  width: 100%;
  height: 100%;
}

/**
 *
 * APPUNTAMENTO
 *
 */

.appuntamento-gemini form {
  background: #18a79d;
  padding: 50px 50px;
  border-radius: 10px;
}
.appuntamento-gemini form label,
.appuntamento-gemini form label span,
.appuntamento-gemini form label a {
  color: #fff;
}
.appuntamento-gemini input[type="submit"] {
  margin-top: 20px;
}

/**
 *
 * TY PUPUP APPUNTAMENTO
 *
 */
.ty-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  z-index: 9999995;
}
.ty-popup a.chiudi-popup {
  padding: 10px 20px;
  display: inline-block;
  background: #18a79d;
  color: #fff;
  cursor: pointer;
}
.ty-popup .popup_content {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 100;
}
.ty-popup .contenuto-popup {
  background: #fff;
  padding: 50px 50px;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  z-index: 200;
}

@media only screen and (min-width: 2800px) {
  .home .hero img {
    right: -150px;
    max-width: 1500px;
  }
}
@media only screen and (min-width: 2200px) {
  .home .hero img {
    right: -300px;
    max-width: 1500px;
  }
}

@media only screen and (max-width: 1440px) {
  .home .hero img {
    right: -200px;
    max-width: 1000px;
  }
  .hero h1 {
    font-size: 46px;
  }
}

@media only screen and (max-width: 1024px) {
  .hero {
    min-height: 50vh;
  }
  .hero h1 {
    font-size: 40px;
  }
  .home .hero img {
    right: -120px;
    max-width: 720px;
  }
}

@media only screen and (max-width: 960px) {
  .home .hero {
    min-height: 45vh;
  }
  .home .hero img {
    right: -190px;
    max-width: 720px;
  }

  /* .home .medium-8 {
    flex: 0 0 90%;
    max-width: 90%;
  } */
  .home .caratteristiche-gemini img {
    max-width: 370px;
  }
}

@media only screen and (max-width: 812px) {
  .home .hero {
    text-align: center;
  }
  .home .hero img {
    right: 0;
    max-width: 720px;
    opacity: 0.25;
  }

  .home .medium-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .home .caratteristiche-gemini .medium-6,
  .home .location-gemini .medium-6 {
    flex: 0 0 90%;
    max-width: 90%;
    flex-direction: column;
    margin: 0 auto;
  }
  .home .location-gemini .map {
    min-height: 400px;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .home .gallery-grid {
    display: block;
  }
  .home .gallery-grid .gallery-grid-singola,
  .home .gallery-grid .gallery-grid-affiancate {
    width: 100%;
  }
  .home .gallery-grid img {
    margin-bottom: 2%;
  }
  .home .gallery-grid .img1 {
    width: 100%;
  }
  .home .gallery-grid .img2,
  .home .gallery-grid .img4 {
    width: 49%;
    float: left;
  }
  .home .gallery-grid .img3,
  .home .gallery-grid .img5 {
    width: 49%;
    float: right;
  }
}

@media only screen and (max-width: 640px) {
  .home h2 strong {
    font-size: 48px;
  }
}

@media only screen and (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero h4 {
    font-size: 22px;
    margin: 10px 0 0 0;
  }

  .home h2 strong {
    font-size: 36px;
  }
}

@media only screen and (max-width: 414px) {
  .hero h1 {
    font-size: 30px;
  }
  p.recapito {
    display: block;
    padding: 0;
    margin-top: 20px;
  }
  .hero a.btn_hero {
    padding: 10px 10px;
    font-size: 17px;
    width: 100%;
  }

  .home .location-gemini .desc-location {
    padding: 40px 10px;
  }

  .home .gallery-grid .gallery-grid-affiancate img {
    width: 100%;
  }
  .home .caratteristiche-gemini img {
    max-width: 300px;
  }
  .home .appuntamento-gemini form {
    padding: 30px 30px;
  }
}

@media only screen and (max-width: 375px) {
  .home .medium-8,
  .home .caratteristiche-gemini .medium-6,
  .home .location-gemini .medium-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
