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

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

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 2.4;
}

hr {
  margin: 3rem auto;
}

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

.center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 152rem;
  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(--black);
}

.splide__arrow--prev {
  left: 0;
}

.splide__arrow--next {
  right: 0;
  rotate: 180deg;
  translate: 0 -5px;
}

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

.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;
  }
}






/*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 */






/* SITO */
.hero {
  width: 100%;
  height: auto;
  min-height: 70rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;

  @media screen and (min-width: 1025px) {
    min-height: inherit;
  }
  @media screen and (min-width: 1150px) {
    flex-direction: row;
    height: calc(100vh - 13.7rem);
    max-height: 100%;
    width: auto;
  }
  @media screen and (max-height: 700px) {
    min-height: 70rem;
  }

  & .animation {
    width: 100%;
    height: auto;
    max-width: 80rem;

    @media screen and (min-width: 1150px) {
      max-width: 60%;
      position: absolute;
      right: 0;
    }
  }
  /* .video {
    width: 100%;
    mix-blend-mode: multiply;
    
    @media screen and (min-width: 1150px) {
      max-width: 60%;
      position: absolute;
      right: 0;
      height: 100%;
      object-fit: cover;
      object-position: left top;
    }
  } */

  .txt_home {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 4rem 0 8rem;

    @media screen and (min-width: 1150px) {
      max-width: 72rem;
      width: 50%;
      padding: 0;
    }

    .btn {
      background: var(--azz);
    }
  }
}

.animated-gradient {
  position: relative;
  background: linear-gradient(-45deg, #FFFFFF 0%, #b3dfed 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease alternate infinite;
  overflow: hidden;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.intro {
  padding: 7.5rem 0;

  .pad {
    width: 100%;
    margin: 0 auto;

    @media screen and (min-width: 850px) {
      width: calc(100% - 20rem);
      margin: 0 0 0 auto;
    }
  }
}

.soluzioni {
  padding: 0 0 7rem;
  
  .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6rem 2rem;
    padding: 0 2%;

    .box {
      width: 100%;
      height: auto;
      aspect-ratio: 1/1;
      border-radius: 1rem;
      transition: all .3s;
      background: linear-gradient(135deg, rgba(0, 182, 237, 0.40) 0.07%, rgba(243, 146, 0, 0.40) 99.93%), 
              var(--bg-image) lightgray 50% / cover no-repeat;

      @media screen and (min-width: 769px) {
        width: calc(50% - 1rem)
      }
      @media screen and (min-width: 1250px) {
        width: calc(33.33% - 1.33rem)
      }

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

      a {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        height: 100%;
      }

      .tit {
        display: flex;
        padding: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        align-self: stretch;
        color: var(--white);

        p {
          line-height: 1.5;
        }
      }

      .ftr {
        display: flex;
        padding: 2.5rem;
        align-items: center;
        gap: 0.5rem;
        align-self: stretch;

        .cta {
          margin: 0;
          background: var(--grad2);
          padding: 3px 2rem;
          text-transform: none;
        }
      }

    }
  }
}

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

    .bl {
      width: 100%;

      &.txt {
        padding: 4rem 0;

        .btn {
          background: var(--azz);
        }
      }
      &.ico_wrap {
        padding: 4rem 0;
      }

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

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

      .row {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
        flex-direction: column;
        margin: 0 0 4rem;

        & > div {
          width: 100%;
          text-align: center;

          .stit {
            margin: 0;
          }

          p {
            line-height: 1.6;
          }
        }

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

          & > div {
            width: calc(100% - 20rem);
            text-align: left;
            margin: 0 0 3rem;
          }
        }
      }
    }

  }
}

.ico {
  width: 18rem;
  height: 18rem;
  object-fit: contain;
  aspect-ratio: 1/1;
  border-radius: 1.5rem;
}


.percorso {
  padding: 0 0 7rem;

  .container {
    text-align: center;
    
    p:not(.txt_grad) {
      opacity: 60%;
      line-height: 1.8;
      margin: 2rem 0 0;
    }
  }

  #slide-vert {
    margin: 4rem 0 0;

    li {
      position: relative;

      .custom-arrow {
        img {
          width: 1.65rem;
          height: 1.65rem;
          aspect-ratio: 1/1;
          object-fit: contain;
        }

        &.custom-next {
          rotate: 180deg;
        }

        @media screen and (min-width: 901px) {
          position: absolute;
          top: 50%;
          translate: 0 -50%;

          &.custom-prev {
            left: 3%;
          }
          &.custom-next {
            right: 3%;
            
            img {
              translate: 0 -8px;
            }
          }
        
        }
      }

      .box {
        background: #fff;
        padding: 2rem;
        border-radius: 10rem;
        box-shadow: 0 0 1rem rgba(30, 30, 30, 0.1);
        width: 98%;
        margin: 5px auto 0;
        position: relative;

        .wrap {
          max-width: 100rem;
          margin: 0 auto;
          padding: 1rem 0;

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

.fascia_blog {
  padding: 7rem 0;
  background: #fff;

  .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    .bl {
      transition: all .3s;

      &.big {
        width: 100%;
        margin: 0 0 4rem;

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

        @media screen and (min-width: 769px) {
          width: 50%;
          padding: 0 3rem 0 0;
          margin: 0;
        }
        @media screen and (min-width: 1024px) {
          width: 65%;
        }

        .img_blog {
          width: 100%;
          aspect-ratio: 4 / 3;
          object-fit: cover;
          border-radius: 2rem;
          margin: 0 0 1rem;

          @media screen and (min-width: 1024px) {
            aspect-ratio: 4 / 2;
          }
        }
      }

      &.small {
        width: 100%;

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

        .row {
          background: var(--white);
          padding: 2rem 4%;
          border-radius: 1rem;
          margin: 0 0 3rem;
          transition: all .3s;

          @media screen and (min-width: 769px) {
            padding: 2rem;
          }
          
          &:hover {
            translate: 0 -8px;
          }
        }
      }

    }
  }
}

.link {
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--orange);
    margin: 1rem 0 0;
    transition: all .3s;
}

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

.pf {
  background: linear-gradient(135deg, rgba(0, 182, 237, 0.40) 0.07%, rgba(243, 146, 0, 0.40) 99.93%), 
              var(--bg-pf) lightgray 50% / cover no-repeat;

  .container {
    max-width: 100rem;
    text-align: center;
    padding: 16rem 0;
    color: #fff;
  }

  .stit {
    color: #fff;
  }
}

footer {
  background-color: #161616;
  color: rgba(255, 255, 255, 0.6);
  padding: 7rem 0;
  font-size: 1.4rem;

  a {
    color: rgba(255, 255, 255, 0.6);

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

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

  .bl {
    width: 100%;
    margin: 0 0 3rem;

    @media screen and (min-width:600px) {
      width: 50%;
      padding: 0 3rem;
    }
    @media screen and (min-width:800px) {
      width: 25%;
      margin: 0;
    }

    .titolino {
      color: #fff;
      font-weight: 600;
    }
  }

  .logo_ft {
    width: 18rem;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    max-width: 100%;
  }
}

.credits {
  font-size: 1.3rem;
  margin: 5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.4);

   @media screen and (min-width:600px) {
      padding: 2rem 3rem 0;
   }
}

/* pagine */
.banner {
  width: 100%;
    height: 30rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(0, 182, 237, 0.40) 0.07%, rgba(243, 146, 0, 0.40) 99.93%), 
              var(--top-pag) lightgray 50% / cover no-repeat;
}

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

    .bl {
      width: 100%;
      margin: 0 0 5rem;

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

      &.txt {
        padding: 0 0 4rem;
        display: flex;
        justify-content: center;
        flex-direction: column;

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

      &.img {
        position: relative;

        img {
          width: 100%;
          height: auto;
          object-fit: cover;
          border-radius: 2rem;
          aspect-ratio: 1 / 1;
          position: relative;
          z-index: 1;

          @media screen and (min-width: 800px) {
            height: 100%;
            aspect-ratio: inherit;
          }
        }
        .overlay {
          opacity: 80%;
          background: linear-gradient(135deg, rgba(0, 182, 237, 0.40) 0.07%, rgba(243, 146, 0, 0.40) 99.93%);
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          border-radius: 2rem;
          z-index: 2;
        }
      }
    }
  }

  &.reverse {
    padding: 7rem 0;

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

    .bl.txt {
      @media screen and (min-width: 800px) {
        padding: 0 5rem 0 0;
      }
    }
  }
}

.nostro_metodo {
  padding: 7rem 0;

  .container {
    text-align: center;    
  }

  .list {
    .row {
      background: #fff;
      padding: 3rem 2rem;
      border-radius: 2rem;
      box-shadow: 0 0 1rem rgba(30, 30, 30, 0.1);
      width: 98%;
      margin: 4rem auto;
      position: relative;
      text-align: center;

      @media screen and (min-width: 450px) {
        border-radius: 10rem;
      }

      p:not(.txt_grad) {
        opacity: 60%;
        line-height: 1.8;
        margin: 2rem 0 0;
      }

      &:first-of-type {
        margin: 5rem auto 4rem;
      }
      &:last-of-type {
        margin: 3rem auto 6rem;
      }
    }
  }
}

.blog_list {
  padding: 0 0 10rem;

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

    .bl {
      width: 100%;

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

      .img_blog {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 2rem;
        aspect-ratio: 4 / 3;
      }
      
      .img_risorse {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 2rem;
        aspect-ratio: 2 / 1;
        margin: 0 0 1rem;
      }
    }
  }

  .btn {
    margin: 7rem auto 0;
    background: var(--azz);
  }
}

ul.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;

  a:hover {
    color: var(--orange);
  }
}

.img_principale {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2rem;
  margin: 4rem 0 0;

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

.desc {
  padding: 0 0 10rem;
  
  h2, h3, h4, h5 {
    margin: 3.5rem 0 1rem;
  }
  p {
    margin: 0 0 1rem;
  }
  ul, ol {
    margin: 1rem 0;

    li::marker {
      color: var(--azz);
      font-size: 1.8rem;
    }
  }

  ul {
    li {
      list-style: inside disc;
    }
  }

  ol {
    li {
      list-style: inside decimal;
    }
  }

  a:not(.btn) {
    font-weight: 600;
    text-decoration: underline;
    color: var(--azz);

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

  ul.indice {
    margin: 0 0 5rem;
  }

  .box {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(25, 25, 25, 0.1);
    margin: 0;
  }
}

.mappa {
  width: 100%;
  height: 40rem;
  border: none;
}

.form_bg {
  background: var(--grad);
  padding: 7rem 0;
  color: var(--white);

  .btn {
    background: var(--black);
  }

  /* FORM */
  form {
    padding: 5rem 0;

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

    .flex {
      display: flex;
      flex-wrap: wrap;
      width: 100%;
      justify-content: space-between;

      & 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);
  }

  .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;
  }
}