
/* STILE BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  color: var(--black);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 2;
}

hr {
  margin: 3rem auto;
}

ul, ol, nav {
  list-style: none;
}

.center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 142rem;
  padding: 0 2%;
  margin: 0 auto;
}

.hidden {
  opacity: 0;
}

.visible {
  opacity: 1;
}


/* SLIDE */
.splide__arrow {
  position: absolute;
  z-index: 9;
  top: 50%;
}
.splide__arrow svg {
  fill: var(--white);
}

.splide__arrow--prev {
  left: 0;
  translate: 0 -7px;
  rotate: 180deg;
}

.splide__arrow--next {
  right: 0;
}

.splide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
}

.truncate-vert {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;

  &.due {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  &.tre {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}


/* FORM */
.form_bg {
  background: var(--dark_blu);
}

form {
  padding: 5rem 3rem;
  margin: 0 auto;
  border-radius: 1rem;
  color: var(--white);

  @media screen and (min-width: 769px) {
    padding: 7rem;
  }

  .flex {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin: 5rem 0 0;

    & div[class^=box-] {
      padding: 0;
      text-align: left;
      display: flex;
      align-items: center;
      margin: 0 0 1rem;
      flex-wrap: wrap;
      flex-direction: column-reverse;
      border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    .box-50 {
      width: 100%;

      @media screen and (min-width: 581px) {
        width: 48%;
      }
    }

    .box-100 {
      width: 100%;
    }

    label {
      width: 100%;
      font-size: 1.5rem;
      text-transform: uppercase;
      opacity: 0.8;
      display: block;
      margin: 0;
      font-weight: 400;
      color: var(--white);
    }

    .input__text {
      width: 100%;
      border: none;
      background-color: transparent;
      font-size: 1.6rem;
      padding: 1rem;
      color: var(--white);

      &:focus {
        outline: none;
      }
    }

    textarea.input__text {
      resize: vertical;
      min-height: 12rem;
    }

  }
}

.txt-small {
  font-size: 1.2rem;
  margin: 1rem 0 0;
  color: var(--white);

  a {
    color: var(--green);
  }
}

.privacy h2, .privacy h3, .privacy h4, .privacy h5 {
  margin: 2.5rem 0 1rem;
}
.privacy h2 {
  font-size: 3rem;
}
.privacy h3, .privacy h4, .privacy h5 {
  font-size: 2rem;
}



/*SITEMAP*/
ul.sitemap {
  margin: 5rem auto 10rem;

  & li {
    font-size: 1.8rem;
    text-transform: uppercase;
    padding: 5px 0;

    & a {
      color: var(--black);

      &:hover {
        color: var(--black);
      }
    }

    &.sublink {
      font-size: 1.6rem;
      text-transform: none;
    }
  }
}

p.errore {
  font-size: 27vw;
  line-height: 1;
  margin: 0 auto 2rem;

  @media screen and (min-width: 401px) {
    font-size: 12rem;
  }
}

/* FINE STILE BASE */

.bg_image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.hero {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column-reverse;
    height: 98vh;
    min-height: 80rem;

    @media screen and (min-width: 1140px) {
      flex-direction: row;
    }

    .hero_left, .hero_right {
      width: 100%;
      height: 50%;
      transition: all .3s;
      display: flex;
      align-items: center;
      justify-content: center;

      &:hover {
        height: 65%;
      }

      @media screen and (min-width: 1140px) {
        width: 50%;
        height: 100%;

        &:hover {
          width: 65%;
          height: 100%;
        }
      }

      .wrap {
        width: 98%;
        max-width: 71rem;
      }

      a:not(.btn) {
        color: var(--white);
      }
    }

    .hero_left {
      .wrap {
        margin: 0 auto;

        @media screen and (min-width: 1140px) {
          margin: 0 0 0 auto;
          padding: 0 4% 0 0;
        }
      }
    }

    .hero_right {
      .wrap {
        margin: 0 auto;

        @media screen and (min-width: 1140px) {
          margin: 0 auto 0 0;
          padding: 0 0 0 4%;
        }
      }
    }

    .eyebrow {
      color: var(--white);
    }
}


.slide_servizi {
  overflow: hidden;
  padding: 7rem 0;

  .splide {
    padding: 0 2%;
    position: relative;
    margin: 4rem 0 0;

    @media screen and (min-width: 1421px) {
      padding: 0 0 0 5%;
    }

    &::before {
      display: none;
      content: '';
      width: 5%;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      background-color: var(--white);
      z-index: 1;

      @media screen and (min-width: 1421px) {
        display: block;
      }
    }

    .splide__arrow--prev {
      left: 5px;

      svg {
        @media screen and (min-width: 1421px) {
          fill: var(--black);
        }
      }
    }
    .splide__arrow--next {right: 5px;}

    .splide__track {
      overflow: visible;

      .content {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;

        @media screen and (min-width: 769px) {
          aspect-ratio: 1 / 1;
        }

        &.trasporti, &.spurghi {
          &::after {
            content: '';
            display: block;
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            opacity: 60%;
            z-index: 1;
            border-radius: 1rem;
          }
        }

        &.trasporti {
          &::after {
            background: var(--green);
          }
        }
        &.spurghi {
          &::after {
            background: var(--dark_blu);
          }
        }

        .txt {
          position: relative;
          z-index: 3;
          padding: 4rem 4%;
          color: var(--white);

          @media screen and (min-width: 769px) {
            padding: 4rem;
          }
          
        }
      }

    }
    
  }
}

ul.splide__pagination {
  gap: 1.5rem;
  margin: 6rem auto 0;

  button {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 3rem;
    background-color: var(--grey);

    &.is-active {
      background-color: var(--green);
    }
  }
}



.title {
  padding: 3rem 0;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;

  & > div {
    width: 100%;

    @media screen and (min-width: 769px) {
      width: calc(100% - 20rem);
    }
  }

  .btn {
    @media screen and (min-width: 769px) {
      margin: 0;
    }
  }
}


.split {
  padding: 7rem 0;

  .container {
    display: flex;
    gap: 0 8rem;
    flex-wrap: wrap;

    .bl {
      width: 100%;

      @media screen and (min-width: 850px) {
        width: calc(50% - 4rem);
      }

      &.txt {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 0 0 6rem;

        @media screen and (min-width: 850px) {
          padding: 6rem 0;
        }
      }

      &.img {
        img {
          border-radius: 1rem;
          width: 100%;
          aspect-ratio: 3 / 4;
          height: 100%;
          object-fit: cover;

          @media screen and (min-width: 850px) {
            aspect-ratio: inherit;
          }
        }
      }
    }
  }

  &.reverse {
    .container {
      flex-direction: row-reverse;
    }
  }
}


.icone {
  padding: 7rem 0;
  text-align: center;

  .flex {
    display: flex;
    gap: 6rem 0;
    flex-wrap: wrap;
    justify-content: center;
    margin: 5rem auto 0;

    .bl {
      width: 100%;
      max-width: 53rem;
      padding: 0 2rem;

      @media screen and (min-width: 500px) {
        width: 50%;
      }
      @media screen and (min-width: 800px) {
        width: 33.3%;
      }
      @media screen and (min-width: 1200px) {
        width: 25%;
      }
    }
  }
}

.ico {
  width: 20rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 100%;
  margin: 0 auto 1rem;
}

#slide-blog {
  .splide__track {
    padding: 3rem 1.5rem!important;
  }

  .link {color: var(--green);}

  .splide__slide {
        padding: 3rem;
    box-shadow: 0 0 1rem rgba(25, 25, 25, 0.1);
    border-radius: 1rem;
  }

  .img_blog_box {
    margin: 0 0 1.5rem;
  }
}


.esperienze {
  text-align: center;
  padding: 7rem 0;

  .stelle {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;

    img {
      width:2rem;
      height:2rem;
    }
  }

  #slide-esperienze {
    margin: 5rem 0 0;

    .splide__slide {
      text-align: left;
      display: flex;
      flex-direction: column;
      gap: 2.4rem;
      padding: 4rem 2rem;
      background-color: var(--light);
      border-radius: 1rem;

      @media screen and (min-width:769px) {
        padding: 4rem;
      }

      .firma {
        p {
          font-family: "Agdasima", sans-serif;
          font-weight: 600;
          line-height: 1.4;
          font-size: 2rem;
        }
        span {
          display: block;
          font-size: 1.3rem;
          line-height: 1.4;
          color: var(--grey);
        }
      }
    }
  }
}


.pf {
  padding: 15rem 0;
  text-align: center;
  color: var(--white);

  p {
    max-width: 100rem;
    margin: 0 auto;
  }

  .btn {
    font-size: 1.8rem;
  }
}


.cert {
  background-color: var(--black);
  color: var(--white);
  padding: 7rem 0;
  text-align: center;

  h5 {
    margin: 0 0 3rem;
  }

  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;

    .bl {
      width: 100%;
      text-align: center;
      padding: 2rem;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 1rem;

      @media screen and (min-width:450px) {
        width: calc(50% - 1.5rem);
      }
      @media screen and (min-width:800px) {
        width: calc(25% - 2.25rem);
      }

      p {
        color: var(--grey);
      }

      .ico {
        width: 15rem;
        height: auto;
        aspect-ratio: 2 / 1;
        object-fit: contain;
      }
    }
  }
}

footer {
  background-color: var(--black);
  color: var(--white);
  padding: 5rem 0 10rem;
  font-size: 1.4rem;

  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;

    @media screen and (min-width:1200px) {
        gap: 3rem 9rem;
      }

    .bl {
      width: 100%;

      @media screen and (min-width:500px) {
        width: calc(50% - 1.5rem);
      }
      @media screen and (min-width:800px) {
        width: calc(25% - 2.25rem);
      }
      @media screen and (min-width:1200px) {
        width: calc(25% - 6.75rem);
      }

    }
  }

  .logo_ft {
    margin: 0 0 1.5rem;
  }

  ul {
    margin: 1rem 0;

    &.social_ft {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;

      img {
        width: 2rem;
        height: 2rem;
        transition: all .3s;

        &:hover {
          translate: 0 -8px;
        }
      }
    }
  }

  .tit_ft {
    font-family: "Agdasima", sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
  }

  a {
    color: var(--white);

    &:hover {
      color: var(--green);
    }
  }

  .logo_ft {
    width: 28rem;
    height: auto;
    aspect-ratio: 280 / 73;
    object-fit: contain;
    max-width: 100%;
  }
}

.credits {
  color: var(--grey);
  font-size: 1.3rem;
  text-align: center;
  padding: 2.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 6rem auto 0;

  a {
    color: var(--grey);

    &:hover {
      color: var(--white);
    }
  }
}


/* PAGINE */

#header_pag .header {
    width: 100%;
    height: 30rem;

    @media screen and (min-width:769px) {
      height: 40rem;
    }
  }

ul.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  padding: 1rem 0 7rem;
}


.intro {
  padding: 0 0 7rem;
}


.foto_center {
  text-align: center;
  padding: 4rem 0;
  display: flex;
  gap: 6rem 0;
  flex-direction: column-reverse;

  @media screen and (min-width:769px) {
      flex-direction: column;
      padding: 7rem 0;
    }

  .img_100 {
    width: 98%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1rem;
    margin: 0 auto 3rem;

    @media screen and (min-width:769px) {
      aspect-ratio: 16 / 7;
    }
  }
}


.fascia_soa {
  margin: 7rem auto 0;
  background-color: var(--dark_green);

  .flex {
    display: flex;
    flex-wrap: wrap;

    .bl {
      width: 100%;
      position: relative;

      @media screen and (min-width:769px) {
        width: 50%;
      }

      &.txt {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 3%;
        max-width: 71rem;
        margin: 0 auto 0 0;
        color: var(--white);

        @media screen and (min-width:769px) {
            padding: 6rem;
          }
      }

      &.img {
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        &::after {
          display: none;
          content: '';
          position: absolute;
          top: 0;
          right: 0;
          width: 50%;
          height: 100%;
          background: #3A8859;
          background: -webkit-linear-gradient(90deg, rgba(58, 136, 89, 0) 0%, rgba(58, 136, 89, 1) 100%);
          background: -moz-linear-gradient(90deg, rgba(58, 136, 89, 0) 0%, rgba(58, 136, 89, 1) 100%);
          background: linear-gradient(90deg, rgba(58, 136, 89, 0) 0%, rgba(58, 136, 89, 1) 100%);
          filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#3A8859", endColorstr="#3A8859", GradientType=1);

          @media screen and (min-width:769px) {
            display: block;
          }
        }
      }
    }
  }
}

.icone.big {
  .flex {
    max-width: 182rem;
  }
}


/*  Needed for filters */

.hide { /* You can play with the seconds to change the "animation" */
  display: none;
}
.show { /* You can play with the seconds to change the "animation" */
    display: block;
}

/*  // Needed for filters */

.box_servizi {
  .filters {
    padding: 0 0 6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1rem;

    .filter {
      background-color: var(--grey);

      &.active {
        background-color: var(--azz);
      }
    }
  }

  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6rem 3rem;
    max-width: 182rem;
    margin: 0 auto 10rem;
    padding: 0 2%;

    @media screen and (min-width:1025px) {
      gap: 6rem;
    }

    .bl {
      width: 100%;

      @media screen and (min-width:600px) {
        width: calc(50% - 1.5rem);
      }
      @media screen and (min-width:1025px) {
        width: calc(33.3% - 4rem);
      }

      .content {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;

        @media screen and (min-width: 600px) {
          aspect-ratio: 1 / 1;
        }

        &.trasporti, &.spurghi {
          &::after {
            content: '';
            display: block;
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            opacity: 60%;
            z-index: 1;
            border-radius: 1rem;
          }
        }

        &.trasporti {
          &::after {
            background: var(--green);
          }
        }
        &.spurghi {
          &::after {
            background: var(--dark_blu);
          }
        }

        .txt {
          position: relative;
          z-index: 3;
          padding: 4rem 4%;
          color: var(--white);

          @media screen and (min-width: 769px) {
            padding: 4rem;
          }
          
        }
      }
    }
  }
}


.desc {
  padding: 0 0 5rem;

  h2, h3, h4, h5 {
    padding: 2rem 0 0;
  }

  ul, ol {
    padding: 1rem 0;

    li::marker {
      color: var(--green)
    }
  }

  ul {
    list-style: inside disc;
  }
  ol {
    list-style: inside decimal;
  }

  a:not(.btn) {
    text-decoration: underline;
    color: var(--green);
  }
}


.box_blog {
  .bl {
    img {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: 1rem;
      margin: 0 0 5px;
    }

    .link {
      color: var(--green);
    }
  }

  .center {
    text-align: center;
    display: block;
    width: 100%;
  }
}


.box_documenti {
  .block {
    padding: 0 0 6rem;
    
    .tit_documenti {
      padding: 1rem 2rem;
      background-color: var(--light);
      border-radius: 1rem;
    }
    
    .flex {
      display: flex;
      flex-wrap: wrap;
      gap: 4rem;

      .row {
        max-width: 20rem;
        text-align: center;
        transition: all .3s;

        &:hover {
          translate: 0 -8px;
        }
      }
    }
  }
}

.mappa {
  width: 100%;
  height: 100%;
  min-height: 40rem;
  border: none;
  border-radius: 1rem;
}

.box_risorse {
  .bl {
    img {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 2;
      object-fit: cover;
      border-radius: 1rem;
      margin: 0 0 5px;
    }

    .link {
      color: var(--green);
    }
  }
}