@charset "UTF-8";
body {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  margin: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

h1 {
  color: #009640;
  font-weight: 900;
  font-family: "Barlow Condensed", serif;
  font-size: 50px;
  margin-top: 0;
  margin-bottom: 0;
}

h2 {
  color: #009640;
  font-weight: 700;
  font-family: "Barlow Condensed", serif;
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 10px;
}

.contained {
  max-width: 1400px;
  width: 100%;
  padding: 10px 25px;
}

header {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 10px;
}
header .contained {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}
header .contained .logo img {
  height: 90px;
}
header .contained .small-logos img {
  height: 40px;
}

.text-box {
  margin-top: 60px;
  margin-bottom: 60px;
  font-family: "Barlow Condensed", serif;
}

.text-box-1 {
  margin-top: 40px;
  margin-bottom: 40px;
}

.text-box-1 > div {
  margin-top: 40px;
}

.text-box-3 h2 {
  margin-top: 20px;
}

.slider {
  display: flex;
  width: 100%;
}
.slider img {
  width: 100%;
}

.boxes {
  width: 100%;
  display: flex;
  flex-direction: row;
}
.boxes .box {
  width: calc(100% / 3);
  height: 0;
  padding-bottom: calc(100% / 3);
  position: relative;
  perspective: 1000px;
}
.boxes .box .inner {
  transition: transform 0.5s;
  transform-style: preserve-3d;
}
.boxes .box .inner .title {
  font-weight: 900;
  font-family: "Barlow Condensed", serif;
  font-size: 50px;
  padding-top: 10px;
}
.boxes .box .front {
  color: white;
  background-position-y: center;
  height: 100%;
}
.boxes .box .back {
  display: flex;
  flex-direction: column;
}
.boxes .box .back .content {
  padding: 6%;
  min-height: 0;
  display: flex;
}
.boxes .box:hover .inner {
  transform: rotateY(180deg);
}
.boxes .box.ambientale {
  color: #4a7635;
}
.boxes .box.ambientale .back {
  background: #CFE2C1;
}
.boxes .box.ambientale .front {
  background-image: url("assets/blocchi/ambientale.jpg");
  background-size: cover;
}
.boxes .box.sociale {
  color: #65401A;
}
.boxes .box.sociale .back {
  background: #D6C9BA;
}
.boxes .box.sociale .front {
  background-image: url("assets/blocchi/sociale.jpg");
  background-size: cover;
}
.boxes .box.economico {
  color: #29528A;
}
.boxes .box.economico .back {
  background: #BFD2EE;
}
.boxes .box.economico .front {
  background-image: url("assets/blocchi/economico.jpg");
  background-size: cover;
}
.boxes .box .inner,
.boxes .box .back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backface-visibility: hidden;
}
.boxes .box .back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: rotateY(180deg);
}

.download-box {
  background: #E6DED1;
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 500px;
  font-family: "Barlow Condensed", serif;
  overflow: hidden;
}
.download-box .contained {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.download-box .left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.download-box .left .buttons {
  display: grid;
  row-gap: 50px;
}
.download-box .left .button {
  padding: 25px 40px;
  background: #69A83D;
  color: white;
  font-size: 30px;
  text-decoration: none;
  border-radius: 15px;
  font-weight: 500;
}
.download-box .right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 40px;
  margin-right: -40px;
}

footer {
  width: 100%;
  background: #4E6E3E;
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
  padding-top: 10px;
}
footer .contained {
  padding: 25px;
  color: white;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  font-family: "Barlow Condensed", serif;
  font-size: 22px;
  text-align: left;
}
footer .contained a {
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1500px;
}
.images-grid a {
  color: white;
  text-decoration: none;
  display: block;
  position: relative;
}
.images-grid a .desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  font-size: 21px;
  padding: 12px;
}
.images-grid a:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background: #009640;
  transition: 0.2s all linear;
}
.images-grid a:hover:after {
  opacity: 0.2;
}
.images-grid a img {
  width: 100%;
}

a {
  color: #8CBC3A;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.galleries {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.galleries a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile {
  display: none;
}

@media screen and (max-width: 1050px) {
  header .contained {
    gap: 20px;
    justify-content: center;
  }

  .images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 1250px) {
  .images-grid a .desc {
    font-size: 19px;
  }
}
@media screen and (max-width: 850px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  header .contained {
    justify-content: center;
  }
  header .contained .small-logos {
    display: none;
  }

  .logo img {
    width: 100%;
    height: unset !important;
  }

  .boxes {
    display: flex;
    flex-direction: column;
  }
  .boxes .box {
    width: 100%;
    height: unset;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
  }
  .boxes .box .inner {
    transition: none;
    background-size: contain;
    position: relative;
    transform-style: unset;
  }
  .boxes .box .front {
    height: 50vw;
  }
  .boxes .box:hover .inner {
    transform: none;
  }
  .boxes .box .front .title {
    font-size: 16vw;
    padding-top: 30px;
  }
  .boxes .box .front .title::after {
    content: "Scopri di più";
    position: absolute;
    top: 25vw;
    left: 0;
    right: 0;
    font-size: 5vw;
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: 700;
  }
  .boxes .box .back {
    padding-top: 20px;
    z-index: 10;
    transform: none;
    opacity: 1;
    position: relative;
    display: none;
    user-select: none;
    padding-top: 0;
  }
  .boxes .box .back .title {
    display: none;
  }
  .boxes .box.shown-mobile .front {
    margin-bottom: -10vw;
  }
  .boxes .box.shown-mobile .front .title::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid black;
    margin: 0 auto;
    top: 30vw;
  }
  .boxes .box.shown-mobile .back {
    display: flex;
  }
  .boxes .box.ambientale .front {
    background-image: url("assets/blocchi/ambientale-mobile.jpg");
    background-size: cover;
  }
  .boxes .box.sociale .front {
    background-image: url("assets/blocchi/sociale-mobile.jpg");
    background-size: cover;
  }
  .boxes .box.economico .front {
    background-image: url("assets/blocchi/economico-mobile.jpg");
    background-size: cover;
  }

  .download-box {
    padding-bottom: 30px;
  }
  .download-box .contained {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .download-box .left .buttons {
    row-gap: 30px;
    padding: 80px 0 70px 0;
  }
  .download-box .right img {
    width: 100%;
  }

  footer .contained {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 20px;
  }

  .images-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*# sourceMappingURL=style.css.map */
