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

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

body {
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  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(--white);
}

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

.splide__arrow--next {
  right: 0;
}

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


/* FORM */
.form_bg {
  padding: 7rem 0;
  background: var(--blu);
  color: var(--white);
}

form {
  margin: 0 auto 2rem;

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

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

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

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











/* SITO */

.anim_home {
  animation:
  kf_5_2_opacity_0 5.5s linear,
  kf_5_2_translate_0 5.5s linear;
  animation-iteration-count: infinite;

  width: 100%;
  height: auto;
  aspect-ratio: ;
}

@keyframes kf_5_2_opacity_0 {
  0% { animation-timing-function: ease-out; opacity: 0; }
  9.091% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes kf_5_2_translate_0 {
  0% { animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); translate: -1100px 0px; }
  45.455% { translate: 0px 0px; }
  100% { translate: 0px 0px; }
}


#header_home {
  background-color: var(--blu);
}


.wrap_hero {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 5rem 0 0;

    @media screen and (min-width: 450px) {
      padding: 0;
    }
    @media screen and (min-width: 1280px) {
      height: 91vh;
      min-height: 75rem;
    }

    .bl {
        width: 100%;

        @media screen and (min-width: 1280px) {
            width: 50%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        &.txt {
          color: var(--white);
          display: flex;
          flex-direction: column;
          justify-content: center;
          gap: 2rem;
          padding: 0 2% 10rem;
          margin: 0 auto 0 0;

          @media screen and (min-width: 1280px) {
            padding: 0 2% 0 6rem;
            max-width: 76rem;
          }

          .ctas {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2.5rem;

            .btn {
              margin: 0;
            }
          }
        }
    }
}

.center_par {
  text-align: center;
  padding: 10rem 0;

  .container {
    max-width: 100rem;

    .titolino {
      justify-content: center;
    }
  }
}

.numeri_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  margin: 3rem auto;

  .numero {
    margin: 0;
  }
}

.video_full {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;

  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;

  & > div {
    width: 100%;

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

  .btn {
    margin: 1rem 0 0;

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

.fascia_servizi {
  padding: 7rem 0;

  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6rem 3rem;
    margin: 6rem 0 0;

    .bl {
      width: 100%;
      border: 1px solid rgba(25, 36, 46, 20%);
      transition: all .3s;

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

      &:nth-of-type(1), &:nth-of-type(2) {
        @media screen and (min-width:1280px) {
          width: calc(50% - 1.5rem);
        }
      }

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

      .img_box_servizi {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: contain;
      }

      .txt {
        padding: 0 1.5rem 1.5rem;

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

.icone {
  margin: 7rem auto 0;
    padding: 7rem 0;
    text-align: center;
    background-color: var(--light);

    .titolino {
      justify-content: center;
    }

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

      .bl {
        padding: 2rem;
        width: 100%;
        transition: all .3s;

        @media screen and (min-width:500px) {
          width: calc(50% - 1rem);
        }
        @media screen and (min-width:840px) {
          width: calc(33.33% - 1.4rem);
        }
        @media screen and (min-width:1420px) {
          width: calc(20% - 1.6rem);
        }

        p {
          line-height: 1.6;
        }
      }
    }

    &.six {
      margin: 0;
      background-color: var(--white);

      .flex {
        .bl {
          @media screen and (min-width:1420px) {
            width: calc(33.33% - 1.4rem);
          }
        }
      }
    }
    
    &.four {
      .flex {
        .bl {
          @media screen and (min-width:1420px) {
            width: calc(25% - 1.5rem);
          }
        }
      }
    }
}

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

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

.pf {
  padding: 10rem 0;

  .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6rem 0;

    .bl.txt {
      width: 100%;
      color: var(--white);

      @media screen and (min-width:1025px) {
        width: calc(100% - 60rem);
        padding: 0 6rem 0 0;
      }
    }

    .bl.contact {
      width: 100%;
      padding: 4rem 2rem;
      background: var(--white);
      border-radius: 1rem;
      max-width: 60rem;

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

      .btn {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;

        &.giallo {
          margin: 0;
        }

        &.whats {
          background-color: var(--whats);
          color: var(--white);
          border: none;
          margin: 2rem 0 0;

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

  .cta_pf_tel {
    padding: 3rem 0 0;
    border-top: 1px solid rgba(25, 36, 46, 20%);
    margin: 3rem 0 0;
    
    .flex {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      text-align: center;

      @media screen and (min-width:1025px) {
        text-align: left;
      }

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

      p {
        font-family: "Archivo", sans-serif;
        text-transform: uppercase;
        line-height: 1.4;

        &.num {
          font-size: clamp(1.8rem, 2.6vw, 2.6rem);
          font-weight: 700;
        }
      }
    }
  }

}

footer {
  background-color: var(--footer);
  padding: 8rem 0 10rem;
  color: rgba(255, 255, 255, 0.7);

  .yellow {
    color: var(--giallo);
  }

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

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

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

    .bl {
      width: 100%;

      @media screen and (min-width:1025px) {
        width: calc(33.3% - 2.66rem);
      }
    }

    .contatti_ft {
      li {
        padding: 1rem 0;

        a {
          display: flex;
          align-items: center;
          gap: 5px;

          p {
            line-height: 1.2;
          }

          img {
            width: 1.8rem;
            height: 1.8rem;
            object-fit: contain;
          }
        }
      }
    }
  }
}

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


/* PAGINE */
.bg_top {
  width: 100%;
  height: 40rem;

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

ul.breadcrumbs {
  padding: 3rem 0 5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  text-transform: uppercase;
}

.intro {
  padding: 0 0 7rem;
}


.split {
  padding: 7rem 0;

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

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

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

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

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

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

.desc {
  padding: 0 0 5rem;

  h2 {
    font-size: clamp(3.2rem, 4vw, 4rem);
  }

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

  ul, ol {
    padding: 1rem 0 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;

    li {
      width: 100%;
      padding: 2rem;
      font-weight: 600;
      line-height: 1.8;
      border-radius: 5px;

      @media screen and (min-width:650px) {
        width: calc(50% - 1.5rem);
      }
      @media screen and (min-width:850px) {
        width: calc(33.3% - 2rem);
      }
      @media screen and (min-width:1024px) {
        width: calc(25% - 2.25rem);
      }
    }

    li::marker {
      color: var(--giallo_dark);
      font-size: 2rem;
    }
  }

  ul {
    list-style: inside disc;
    
    li {
      background-color: rgba(0, 136, 255, 0.5);
      color: var(--white);
    }
  }
  ol {
    list-style: inside decimal;

    li {
      background-color: var(--light);
    }
  }

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


#slide-servizi {
  margin: 5rem auto 0;

  .splide__slide {
      border: 1px solid rgba(25, 36, 46, 20%);
      transition: all .3s;

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

      .img_box_servizi {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: contain;
      }

      .txt {
        padding: 0 1.5rem 1.5rem;

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

    .splide__pagination {
      margin: 4rem auto 0;

      li {
        button {
          width: 1.8rem;
          height: 1.8rem;
          background-color: var(--grey);

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

.split.contatti {
  padding: 0 0 7rem;

  .flex {
    padding: 0;
  }

  .txt {
    padding: 0!important;

    ul {
      li {
        padding: 1rem 0;
      }

      li, li a {
        display: flex;
        flex-wrap: wrap;
        gap: 0 5px;
        align-items: center;

        img {
          width: 2rem;
          height: 2rem;
          object-fit: contain;
        }

        p {
          width: calc(100% - 2rem - 5px);
          font-size: 2rem;
          line-height: 1.4;
        }
      }
    }
  }

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


.fascia_risorse {
  padding: 0 0 12rem;

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

    .bl {
      width: 100%;
      padding: 3rem 2rem;
      border: 1px solid rgba(25, 36, 46, 20%);

      @media screen and (min-width:769px) {
        width: calc(50% - 1.5rem);
      }
      @media screen and (min-width:1024px) {
        width: calc(33.3% - 2rem);
      }

      .img_risorsa {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 1;
        object-fit: cover;
        margin: 0 0 2rem;
      }
    }
  }
}