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

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

body {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  color: var(--black);
  background: var(--body);
  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: 142rem;
  padding: 0 2%;
  margin: 0 auto;
}

.hidden {
  opacity: 0;
}

.visible {
  opacity: 1;
}


/* SLIDE */
.splide__arrows {
  margin: 3rem 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.splide__pagination {
  gap: 1rem;
  margin: 4rem 0 0;

  li {
    button {
      width: 1.5rem;
      height: 1.5rem;
      border-radius: 3rem;
      background-color: var(--body);
      border: 1px solid var(--grey);

      &.is-active {
        background-color: var(--red);
        border: 1px solid var(--red);
      }
    }
  }
}


.splide__arrow {
  position: relative;
  z-index: 9;
}
/* .splide__arrow svg {
  fill: var(--black);
} */

.splide__arrow--prev {
  left: 0;
}

.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_wrap {
  background: var(--grey);
  margin: 0 0 -2rem;
}

form {
  padding: 5rem 2%;
  margin: 0 auto 2rem;
  border-radius: 1rem;

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

  .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 2rem;
      flex-wrap: wrap;
      flex-direction: column-reverse;
      border-bottom: 1px solid rgba(25, 25, 25, 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(--black);
    }

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

      &:focus {
        outline: none;
      }
    }

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

  }
}

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

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

.ico-down {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.ico-s {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* FINE STILE BASE */











/* SITO */

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

.logo {
    width: 10rem;
    height: auto;
    aspect-ratio: 13 / 15;
    object-fit: contain;
}

.img_bg_wrap {
  width: 100%;
  position: relative;
  z-index: 3;
  margin: 5rem 0 0;

  @media screen and (min-width:1025px) {
    position: absolute;
    top: 60%;
    translate: 0 -60%;
  }
  @media screen and (min-width:1540px) {
    margin: 0;
  }

  .flex {
      .bl {
        width: 100%;
        padding: 0 2% 0 0;

        @media screen and (min-width:1025px) {
          width: 50%;
          max-width: 81rem;
        }
      }
    }
}

.img_bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 60%;
}



#header_home {
  height: auto;
  position: relative;
  min-height: 100vh;
  background: #DADADA;
  background: -webkit-linear-gradient(200deg, rgba(218, 218, 218, 1) 0%, rgba(252, 252, 252, 1) 100%);
  background: -moz-linear-gradient(200deg, rgba(218, 218, 218, 1) 0%, rgba(252, 252, 252, 1) 100%);
  background: linear-gradient(200deg, rgba(218, 218, 218, 1) 0%, rgba(252, 252, 252, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#DADADA", endColorstr="#FCFCFC", GradientType=0);

  @media screen and (min-width:1025px) {
    min-height: 98vh;
  }

  .sfumatura {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #FBFBFB;
background: -webkit-linear-gradient(0deg, rgba(251, 251, 251, 1) 0%, rgba(251, 251, 251, 0) 100%);
background: -moz-linear-gradient(0deg, rgba(251, 251, 251, 1) 0%, rgba(251, 251, 251, 0) 100%);
background: linear-gradient(0deg, rgba(251, 251, 251, 1) 0%, rgba(251, 251, 251, 0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FBFBFB", endColorstr="#FBFBFB", GradientType=0);
    height: 20rem;
    width: 100%;
    z-index: 2;
  }
}

.animazione_intro {
    position: relative;
    width: 100%;
    z-index: 3;

    @media screen and (min-width:1025px) {
      width: 50%;
      max-width: 81rem;
      position: absolute;
      top: 0;
      right: 0;
    }
    @media screen and (min-width:1350px) {
      top: -25%;
    }
}

.float {
    position: relative;
    right: -2%;
    margin: 3rem 0 0;
    width: 100%;
    height: auto;
    aspect-ratio: 137 / 117;
    object-fit: contain;

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

.ombra {
    position: absolute;
    width: 100%;
    right: 20%;
    top: 20%;
    z-index: -1;
}

/* animazione gsap */
.anim_allarme {
  padding: 8rem 0;

  .flex {
    align-items: center;

    .bl {
      width: 100%;

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

      &.due {
        text-align: center;
        margin: 5rem 0;

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

        img {
          width: 85%;
          height: auto;
          aspect-ratio: 9 / 14;
          object-fit: contain;
          max-width: 60rem;

          @media screen and (min-width:1025px) {
            max-width: inherit;
          }
        }
      }
    }
  }
}



/* card sicurezza */
.fascia_sicurezza {
  padding: 5rem 0 8rem;

  .flex {
    margin: 3rem 0 0
  }
}

.services-grid {
    margin-inline: auto;

    display: grid;
    gap: 1rem;

    grid-template-columns: 1fr;

    grid-template-areas:
        "left"
        "top"
        "bottom"
        "right";

  
    @media screen and (min-width:769px) {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: auto;

      grid-template-areas:
          "left top"
          "bottom right";
    }
    @media screen and (min-width:1025px) {
      grid-template-columns: 1fr 1.5fr 1fr;
      grid-template-rows: repeat(2, 280px);

      grid-template-areas:
        "left top right"
        "left bottom right";
    }

    .antifurto {
        grid-area: left;
    }

    .antincendio {
        grid-area: top;
    }

    .videosorveglianza {
        grid-area: bottom;
    }

    .analisi-video {
        grid-area: right;
    }
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    color: var(--white);
    aspect-ratio: 3 / 4;

    @media screen and (min-width:769px) {
      aspect-ratio: 4 / 3;
    }
    @media screen and (min-width:1025px) {
      aspect-ratio: inherit;
    }

    img:not(.chevron) {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .4s ease;
    }

    &:hover img {
        transform: scale(1.05);
    }

    .service-card__overlay {
        position: absolute;
        inset: 0;
        background: 1F2937;
        background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(207, 24, 11, 0.55) 100%);
        background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(207, 24, 11, 0.55) 100%);
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(207, 24, 11, 0.55) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#CF180B", GradientType=0);
    }

    .service-card__content {
        position: absolute;
        inset-inline: 1.5rem;
        bottom: 1.5rem;

        display: flex;
        align-items: center;
        justify-content: space-between;

        h3 {
          margin: 0;
        }

    }

  }

.fascia_tecnologia {
  .service-card {
      .service-card__overlay {
        background: 1F2937;
        background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.3) 100%);
        background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.3) 100%);
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.3) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#1F2937", GradientType=0);
      }
  }
}
  
  .chevron {
      width: 3.5rem;
      height: 3.5rem;

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


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

  div {
    width: 100%;
    margin: 0 0 1rem;

    @media screen and (min-width:769px) {
      width: calc(100% - 25rem);
      margin: 0 1rem 0 0;
    }
  }
}

.fascia_tecnologia {
  padding: 8rem 0;
  overflow: hidden;
}

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

  .splide__track {
    overflow: visible;
  }

  &::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    top: -1px;
    left: -100%;
    z-index: 3;
  }

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

  .overlay {
    background: 1F2937;
    background: -webkit-linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.3) 100%);
    background: -moz-linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.3) 100%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(31, 41, 55, 0.3) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#1F2937", GradientType=0);

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
  }

  .txt {
    position: absolute;
    inset-inline: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    h3 {
      color: var(--white);
    }
  }
}



.split {
  padding: 8rem 0 5rem;

  .flex {
    align-items: center;

    .bl {
      width: 100%;

      &.img {
        margin: 5rem 0 0;

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

          @media screen and (min-width: 1361px) {
            aspect-ratio: 13 / 14;
          }
        }
      }

      @media screen and (min-width: 1025px) {
        width: 50%;
        
        &.img {
          margin: 0;
        }

        &.txt {
          padding: 5rem 5rem 5rem 0;
        }
      }

    }
  }

  &.reverse {
    padding: 0 0 12rem;

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

        .bl.txt {
          padding: 5rem 0 5rem 5rem;
        }
      }
    }
  }
}


#slide-news {
  .flex {
    & picture {
      width: 100%;

      & img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 2rem 2rem 0 0;
      }

      @media screen and (min-width:769px) {
        width: 50%;
        
        & img {
          border-radius: 2rem 0 0 2rem;
        }
      }

      @media screen and (min-width:1025px) {
        & img {
          aspect-ratio: 16 / 9;
        }
      }
    }

    .txt {
      width: 100%;
      background-color: var(--black);
      color: var(--white);
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 5rem 1.5rem;
      border-radius: 0 0 2rem 2rem;

      @media screen and (min-width:769px) {
        width: 50%;
        padding: 0 5rem;
        border-radius: 0 2rem 2rem 0;
      }

      & h3 {
        font-size: 3rem;
        font-weight: 400;
      }

      .btn {
        background-color: transparent;
        border: 1px solid var(--white);
      }
    }
  }
}

.fascia_blog {
  .title {
    margin: 0 0 5rem;
  }
}


.fascia_marchi {
  padding: 8rem 0;

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

  .center {
    margin: 0 0 5rem;
  }
}


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

  padding: 13rem 0;
  position: relative;

  .container {
    max-width: 100rem;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 2;

    & p {
      line-height: 1.8;
      margin: 2rem auto;
    }
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 41, 55, 0.8);
    z-index: 1;
  }
}

footer {
  background-color: var(--black);
  color: var(--white);
  padding: 10rem 0 13rem;

  .flex {
    justify-content: center;
    margin: 0 0 8rem;
  }

  .bl {
    width: 100%;
    padding: 0;
    margin: 0 0 3rem;
    text-align: center;

    @media screen and (min-width:581px) {
      width: 33.3%;
      padding: 0 1rem;
      text-align: left;
    }
    
      @media screen and (min-width:1025px) {
      width: 20%;
      max-width: 20rem;
      padding: 0 2rem;
      margin: 0;
    }

    & p {
      line-height: 1.8;
      font-size: 1.4rem;

      &.red {
        color: var(--red);
        font-weight: 700;
        line-height: 1.5;
        margin: 0 0 1.5rem;
      }
    }

    & a {
      color: var(--white);
      line-height: 1.4;
      display: block;
      margin: 5px 0;

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

    .cert {
      width: 10rem;
      max-width: 100%;
    }
  }

  .credits {
    padding: 3.5rem 0 0;
    text-align: center;
    color: rgba(252, 252, 252, 0.7);
    font-size: 1.25rem;
    border-top: 1px solid rgba(252, 252, 252, 0.2);

    & a {
      color: rgba(252, 252, 252, 0.7);

      &:hover {
        color: rgba(252, 252, 252, 1);
      }
    }
  }
}

ul.social {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
    justify-content: center;

    @media screen and (min-width:581px) {
      justify-content: flex-start;
    }

    & li {
      & img {
        width: 2.6rem;
        height: 2.6rem;
        object-fit: contain;
      }
    }
}


#header_pag {
  .header {
    width: 96%;
    margin: 0 2%;
    height: 18rem;
    border-radius: 1rem;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    @media screen and (min-width:1025px) {
      height: 53rem;
      border-radius: 2rem;
      width: calc(100% - 6rem);
      margin: 0 3rem;
    }
  }
}


.percorso {
  padding: 1rem 2%;

  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
}


.first {
  padding: 3rem 0 8rem;

  .flex {
    align-items: flex-start;

    .bl {
      width: 100%;

      &.img {
        margin: 4rem 0 0;

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

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

        &.img {
          margin: 0;
        }

        &.txt {
          padding: 0 5rem 5rem 0;
        }
      }

    }
  }
}

.fascia_icone {
  text-align: center;
  padding: 2rem 0 8rem;
  
  .flex {
    justify-content: center;
    margin: 4rem 0 0;

    .bl {
      width: 100%;
      padding: 0 2rem;
      margin: 0 0 4rem;

      @media screen and (min-width: 451px) {
        width: 50%;
      }
      @media screen and (min-width: 851px) {
        width: 33.3%;
      }
      @media screen and (min-width: 1025px) {
        width: 20%;
      }
    }
  }
}

.ico {
  width: 20rem;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 2rem;
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.15);
}

.marchio {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
}

.fascia_box {
  .flex {
    margin: 4rem 0 0;
    gap: 8rem 6rem;

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

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

      & img:not(.ico-s) {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 1rem;
      }

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

.link {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--red);
}

.btn.altro {
  margin: 5rem auto 0;
  color: var(--grey);
  background-color: transparent;
  border: 2px solid var(--grey);
}

.fascia_box.lavori {
  .flex {
    .bl {
      @media screen and (min-width:1281px) {
        width: calc(33.3% - 4rem);
      }
    }
  }

  &.risorse {
    .bl {
      & img:not(.ico-s) {
        aspect-ratio: 3 / 1;
      }
    }
  }
}

.fascia_box.news {
  .flex {
    margin: 0;

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

      .flex {
        gap: 0;
      }

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

        @media screen and (min-width:769px) {
          width: 50%;
          border-radius: 2rem 0 0 2rem;
        }

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

      .txt {
        width: 100%;
        background-color: var(--black);
        color: var(--white);
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 5rem 1.5rem;
        border-radius: 0 0 2rem 2rem;

        @media screen and (min-width:769px) {
          width: 50%;
          padding: 0 5rem;
          border-radius: 0 2rem 2rem 0;
        }

        & h3 {
          font-size: 3rem;
          font-weight: 400;
        }

        .btn {
          background-color: transparent;
          border: 1px solid var(--white);
        }
      }
    }
  }
}

.riga_header {
  width:100%;
  height:5px;
  background-color: var(--red);
}

.img_principale {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 2rem;
  object-fit: cover;
  margin: 4rem 0;
  
  @media screen and (min-width:1025px) {
    aspect-ratio: 16 / 9;
  }
}

.desc {
  margin: 0 0 6rem;

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

  p {
    margin: 0 0 2rem;
  }

  ul, ol {
    margin: 1rem 0;

    li {
      &::marker {
        color: var(--red);
      }
    }
  }

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

#slide-gallery {
  margin: 0 0 12rem;

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

.mappa {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 1rem;
  margin: 3rem 0 0;

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

.contacts {
  p {
    font-size: 2rem;

    &.red {
      font-weight: 800;
      color: var(--red);
      margin: 1.5rem 0 0;
    }
  }
    
}


#slide-recensioni {
  li.splide__slide {
    padding: 3rem;
    background-color: var(--light);
    border-radius: 1rem;
  }
}


.stars {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0 0 1rem;

  .star {
    width: 2.3rem;
    height: 2.3rem;
    object-fit: contain;
  }
}