@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

* {
    vertical-align: baseline;
    font-weight: inherit;
    font-family: inherit;
    font-style: inherit;
    font-size: 100%;
    border: 0 none;
    outline: 0;
    padding: 0;
    margin: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
  }

:root {
  --rosso: #F01E28 ;
  --nero: #000000;
  --grigio: #3C3C3C;
  --beige: #CDC8BE;
  --bianco: #FFFFFF;
  --font-tesio: "Onest", sans-serif;
  --spaziatura: 2%;
  --raggio-bordo: 1.3em;
}

/* TIPOGRAFIA ED ELEMENTI GLOBALI */

body {
  font-family: var(--font-tesio);
  font-weight: 400;
  color: var(--nero);
  font-size: 1vw;
  line-height: 1.3em;
  letter-spacing: var(--spaziatura);
}

h1 {
  font-family: var(--font-tesio);
  color: var(--nero);
  font-size: 5vw;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-family: var(--font-tesio);
  color: var(--nero);
  font-size: 3.7em;
  text-wrap: balance;
  margin: 0;
}

h3 {
  font-family: var(--font-tesio);
  color: var(--nero);
  font-size: 2.5vw;
  line-height: 1.2em;
  text-wrap: balance;
  font-weight: 500;
  margin: 0;
}

h4 {
  font-family: var(--font-tesio);
  color: var(--nero);
  font-size: 2em;
  text-wrap: balance;
  margin: 0;
}

h5 {
  font-family: var(--font-tesio);
  color: var(--nero);
  font-size: 1.5vw;
  line-height: 1.3em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  font-size: 1.5vw;
  line-height: 1.3em;
  letter-spacing: var(--spaziatura);
}

a:hover {
  text-decoration: none;
}

.font-weight-bold {
  font-weight: 800!important;
  color: var(--nero);
}

.outline-text {
  -webkit-text-stroke-width: 2.3px;
  -webkit-text-stroke-color: #000000;
  color: transparent;
}

small {
  font-size: 85%;
  font-weight: 400;
  letter-spacing: var(--spaziatura);
  text-transform: uppercase;
}

/* CURSORE PERSONALIZZATO */
.outline {
  width: 0;
  height: 0;
  border-radius: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99998;
  transform: translate(-50px, -50px);
  transition: all .2s cubic-bezier(.215, .61, .355, 1);
  pointer-events: none;
}

.outline.hover {
  width: auto;
  height: auto;
  content: url('../img/Discover.svg');
  border: 0;
  border-radius: 0!important;
}

a.curs {
  cursor: none;
}

.linea {
  width: 100%;
  display: block;
  height: 1px;
  background: var(--nero);
  margin: 50px 0 0;
}



/* PADDING - MARGINI */
.pd-top-200 {
  padding-top: 200px;
}

.pd-top-100 {
  padding-top: 100px;
}

.pd-top-50 {
  padding-top: 50px;
}

.pd-top-25 {
  padding-top: 25px;
}

.pd-top-10 {
  padding-top: 10px;
}

.pd-top-btm-100 {
  padding: 100px 0;
}

.pd-btm-50 {
  padding-bottom: 50px;
}

.pd-btm-25 {
  padding-bottom: 25px;
}

.pd-btm-10 {
  padding-bottom: 10px;
}

.mg-top-100 {
  margin-top: 100px;
}


/* ------------------------------------------------ CTA ------------------------------------------------ */

a.cta-std {
  background: var(--rosso);
  color: var(--bianco);
  margin: 0;
  line-height: auto;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 15px;
  transition: all 1s cubic-bezier(.215, .61, .355, 1);
  font-size: 1.5vw;
  display: block;
  width: fit-content;
  margin: 0 auto;

    &:hover {
    text-decoration: none;
    border-radius: 30px;
    background: var(--nero);
    color: var(--rosso);
    }
}


/* ------------------------------------------------ HOME PAGE ------------------------------------------------ */

#heroHome {
  height: 100vh;
  position: relative;
  background-image: url('../img/Home.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  .container-fluid {
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    height: 100vh;
  }

  h1 {
    text-align: center;
    color: var(--bianco);
    text-transform: uppercase;
    font-size: 3.5vw;
    letter-spacing: .2em;

    .outline-text {
      -webkit-text-stroke-width: 1.5px;
      -webkit-text-stroke-color: var(--bianco)
    }
  }

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

  .layer-scuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    background-color: rgba(0,0,0,0.5);
  }

  .cont-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

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

#contenutoLink {
  position: relative;
  top: -100px;

  .container-fluid {
    display: flex;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;
  }

  h5 {
    text-transform: uppercase;
    font-size: 100%;
    margin-top: 10px;
  }

  .cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min-content;
  }

  .cont-icona {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    .texture {
      position: absolute;
      top: 40%;
      left: 50%;
      height: 125%;
      aspect-ratio: 208 / 278;
      background: url('../img/Texture Icone.svg') no-repeat center / contain;
      transform: translate(-50%, -50%) scale(0.85);
      opacity: 0;
      transition: opacity .4s ease, transform .4s ease;
      pointer-events: none;
      z-index: 0;
    }

    img {
      position: relative;
      z-index: 1;
    }
  }

  .cont:hover .texture {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#homeTesio {
  padding: 50px 0 100px;

  .container-fluid {
    width: 65%;

    p {
      text-align: center!important;
      padding-bottom: 50px;
    }
  }
}

#prodottiHome {
  background: var(--nero);
  padding: 150px 50px;
  position: relative;

  h2 {
    text-align: center;
    padding-bottom: 100px;
    text-transform: uppercase;
    color: white;

    .outline-text {
      -webkit-text-stroke-width: 2.5px;
      -webkit-text-stroke-color: var(--bianco);
    }
  }

  .contenuto {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: end;
  }

  .cont-img {
    border-radius: 30px;
    width: 100%;
    height: 60vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;

    img {
      border-radius: 30px;
      width: 100%;
      height: 120%;
      object-fit: cover;
    }
  }

  .cont {
    position: relative;
    z-index: 1;
    padding: 30px;
    color: var(--bianco);

    h3 {
      color: var(--bianco);
      padding-top: 10px;
    }
  }
}

#trusted {
  padding: 150px 0;
  text-align: center;
  position: relative;

  h2 {
    text-transform: uppercase;
    padding-bottom: 100px;
  }

  #trama {
    position: absolute;
    top: -75px;
    right: 100px;
  }
}

#counter {
  background-image: url('../img/Fondo_Rosso.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 150px 50px;

  .cont {
    text-align: center;

    p {
      text-transform: uppercase;
    }

    p.numero {
      font-size: 11vw;
      font-weight: 600;
      letter-spacing: -5px;
      -webkit-text-stroke-width: 3.5px;
      -webkit-text-stroke-color: #000000;
      color: transparent;
      text-transform: none;
      display: inline-flex;
      justify-content: center;
      line-height: 1;

      .digit {
        display: inline-block;
        height: 1em;
        overflow: hidden;
      }

      .roll {
        display: flex;
        flex-direction: column;
      }

      .roll span,
      .static {
        height: 1em;
        display: flex;
        align-items: flex-end;
        justify-content: center;
      }
    }
  }

  .bordi {
    border-left: solid 2px var(--nero);
    border-right: solid 2px var(--nero);
  }
}

#sliderLinkedin {
  padding: 150px 0 0;
  overflow: hidden;

  .slider-linkedin {
    width: 100%;
    padding-bottom: 60px;
  }

  .swiper-slide {
    width: 480px;
    max-width: 85vw;
    height: auto;

    img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 20px;
    }
  }
}

.slider-generico {
  width: 100%;
  padding-bottom: 60px;
}

.swiper-slide {
  width: 480px;
  max-width: 85vw;
  height: auto;

  img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }
}

.swiper-pagination-bullet {
  background: transparent!important;
  border: solid 1px var(--nero)!important;
  opacity: 1!important;
  width: 12px!important;
  height: 12px!important;
  margin: 1px!important;
}

.swiper-pagination-bullet-active {
  opacity: 1!important;
  background: var(--nero)!important;
}

#trama {
  overflow: hidden;

  .riga {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 35px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .trama-el {
    height: auto;
    flex-shrink: 0;
    will-change: transform;
  }
}

#ctaFinale, #heroContacts {
  background-image: url('../img/Fondo_Bianco.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 150px 0;
  margin: 150px 0;

  .container-fluid {
    text-align: center;

    h2 {
      text-align: center;
      padding-bottom: 50px;
    }
  }
}

footer {
  background: var(--nero);
  padding: 50px 0 0;
  color: var(--bianco);
  position: relative;
  z-index: 9999;

  .pd {
    padding-left: 50px;
    padding-right: 50px;
  }

  h3 {
    color: var(--bianco);
    transition: all 1s cubic-bezier(.215, .61, .355, 1);

    &:hover {
      color: var(--beige)!important;
    }
  }

  p {
    white-space: pre-line;
  }

  a {
    color: var(--bianco)!important;
    transition: all 1s cubic-bezier(.215, .61, .355, 1)!important;

    &:hover {
      color: var(--beige)!important;
    }
  }

  .cont-img {
    width: 100%;
    height: 100%;
    margin: 100px 0;

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

  .footer-due {
    display: flex;
    justify-content: space-between;
    padding: 0;
    background: var(--rosso);
    padding: 25px 50px;
  }

  a.cta-std {
    width: 100%;
    font-size: 1.1vw;
    text-align: center;
    margin-bottom: 10px;

    &:hover {
      background: var(--beige);
      color: var(--nero)!important;
    }
  }
}

#hero {

  .cont-img {
    width: 100%;
    height: 100%;

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

#certified {
  padding: 50px 0;

  h1 {
    text-align: center;
    white-space: pre-line;
    padding-bottom: 50px;
  }

  p {
    width: 65%;
    text-align: center;
    margin: 0 auto;
    padding: 25px 0;
  }
}

#prodottiHome.certificazioni {
  background: var(--rosso);

  .outline-text {
    -webkit-text-stroke-width: 2px;
  }

  h3 {
    font-size: 2.3vw;
    padding-bottom: 20px;
  }
}

#quality {
  background-image: url('../img/Fondo_Bianco.svg');
  background-repeat: no-repeat;
  background-size: 100%;
  background-color: #dfdfdf;
  background-blend-mode: multiply;

  .col-12.col-lg-6.offset-lg-1 {
    background: #dfdfdf;
    padding: 150px 0;
  }

  .col-12.col-lg-5 {
    padding: 150px 50px;
  }

  .cert {
    padding-left: 100px;
    padding-right: 200px;

    .cont {
      display: flex;
      justify-content: space-between;

      img {
        width: 10px;
      }
    }

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

#primaProd {
  padding: 150px 0;

  .container-fluid {
    padding: 0 50px;
  }
}

#prodotti {

  .container-fluid {
    padding: 0 50px;
  }

  small {
    color: var(--rosso);
  }

  h2 {
    text-transform: uppercase;
    padding-bottom: 25px;
  }

  p {
    padding-bottom: 25px;
    font-size: 1.3em;
  }

  .cont-cta {
    margin-top: 25px;

    a {
      margin: 0;
    }
  }

  .swiper-slide {
    width: 100%;
    height: 100%;

    img {
      width: 80%;
      height: 80%;
      object-fit: contain;
    }
  }

  .swiper-pagination {
    height: 50px;
    position: relative;
    top: 25px;
    bottom: unset;
  }

  .row {
    padding-bottom: 150px;
  }

  .row:last-child {
    padding-bottom: 0;
  }

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

#company {
  padding: 100px 0 200px;
  position: relative;

  #trama {
    position: absolute;
    bottom: 20vh;
    right: 0;
  }

  h2 {
    text-align: center;
  }

  .cont-pin {
    padding-top: 20vh
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col-12.col-lg-5 {
    position: relative;
    border-left: solid 1px var(--nero);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .pallino {
      position: absolute;
      top: 0;
      left: -6px;
      display: block;
      height: 10px;
      width: 10px;
      background: var(--nero);
      border-radius: 100%;
    }
  }

  .contenuto {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;

    h3 {
      font-size: 3.5vw;
    }

    .data {
      transition: color .4s ease, -webkit-text-stroke-width .4s ease;
    }

    .data.attivo {
      -webkit-text-stroke-width: 0;
      color: var(--nero);
    }

    .cont {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 100vh;
      padding-left: 25px;
      padding-top: 10px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: opacity .4s ease, transform .4s ease, visibility .4s;
      pointer-events: none;
      background: white;
      z-index: 1;
        p {
          font-size: 1.5vw;
        }
    }

    .cont.attivo {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }
  }

  .immagini {
    position: relative;
    width: 100%;
    height: 60vh;

    .cont-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity .6s ease;

      &.attivo {
        opacity: 1;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 30px;
        object-position: bottom;
      }
    }
  }
}

#thermalExpertise {
  background-color: var(--rosso);
  padding: 100px 50px;
  position: relative;
  background-image: url('../img/Fondo_Bianco.svg');
  background-repeat: repeat-y;
  background-size: 100%;
  background-position-x: 50vw;

  h2 {
    text-align: center;
    padding-bottom: 100px;
  }

  .contenuto {
    display: flex;
    align-items: center;
    margin-bottom: 100px;

    .box-img {
      position: relative;

      img.texture {
        position: absolute;
        top: -35px;
        left: 0;
      }

      img.thermal {
        position: relative;
        padding-left: 65%;
      }
    }

    .box-testo {
      padding-left: 15%;
      width: 60%;

      p {
        text-transform: uppercase;
        font-size: 1.1vw;
      }
    }
  }
}

#excellence {
  padding: 150px 0;
  text-align: center;

  p {
    width: 65%;
    margin: 0 auto;
    padding-top: 100px;
  }
}

#telemaGroup {
  position: relative;

  .cont-img {
    width: 100%;
    height: 100%;

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

  .cont-cta {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%);

    a {

      &:hover {
        background: var(--beige);
        color: var(--neo);
      }
    }
  }
}

#contatti {
  padding: 0 0 50px;

  .container-fluid {
    padding: 0 50px;
  }

  .cont {
    margin-bottom: 35px;
  }

  img {
    border-radius: 30px;
  }
}

#formcontatti {
  padding: 100px 50px;
  background-image: url('../img/Fondo_Bianco.svg');
  background-repeat: repeat-y;
  background-size: 100%;
  background-position-x: -100vh;
}

.form {
  text-transform: uppercase!important;
  font-size: 1vw!important;
  border-bottom: solid 1px var(--nero);
  padding-bottom: 15px!important;
  margin-bottom: 50px!important;
}

input.form,
textarea.form {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: solid 1px var(--nero);
  border-radius: 0;
  background: transparent;
  color: var(--nero);
  font-family: inherit;
  letter-spacing: inherit;
  outline: none;
  resize: none;

  &::placeholder {
    color: var(--nero);
    opacity: 1;
  }

  &:focus {
    border-bottom-color: var(--rosso);
  }
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-errore {
  color: var(--rosso);
  text-transform: uppercase;
  margin-top: 30px;

  a {
    color: var(--rosso);
    text-decoration: underline;
  }
}

.accetta {
  text-transform: uppercase!important;
  font-size: .7vw!important;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;

  input {
    margin-top: .2em;
    accent-color: var(--nero);
    flex-shrink: 0;
  }

  a {
    color: var(--nero)!important;
    text-decoration: underline!important;
  }
}

.cta-invio {
  border: 0!important;
  cursor: pointer;
  background: var(--nero)!important;
  color: var(--bianco)!important;
  line-height: auto!important;
  text-transform: uppercase!important;
  padding: 15px 30px!important;
  border-radius: 15px!important;
  transition: all 1s cubic-bezier(.215, .61, .355, 1)!important;
  font-size: 1.5vw!important;
  display: block!important;
  width: fit-content!important;
  float: right!important;
  margin-top: 50px!important;

    &:hover {
    text-decoration: none!important;
    border-radius: 30px!important;
    background: var(--rosso)!important;
    color: var(--nero)!important;
    }
}

.key {

  margin-bottom: 150px;

  .flex {
    display: flex;
    justify-content: end;
    align-items: center;
  }

  h2 {
    text-align: right;
  }

  .cont {
    display: flex;
    align-items: center;
    margin: 5px 0;

    p {
      padding-bottom: 0!important;
    }

    p.cont {
      border: solid 1px var(--nero);
      border-radius: 10em;
      padding: 5px 20px 5px!important;
      line-height: normal!important;
      margin-left: 10px;
    }
  }
}

.lista {

  ul {
    font-size: 1.3em;
    padding-left: 50px;

    li {
      margin: 10px 0;
    }
  }
}

#carosello {
  padding: 200px 0 0;

  .swiper-slide {
    width: 45%;
    cursor: grab;
  }
}

.informative {

  

  a {
    display: block;
    margin: 5px 0;
    width: fit-content;
  }
}
/* THANK YOU PAGE */
#typ {
  padding: 250px 0 150px;

  .divisore {
    display: block;
    width: 100px;
    height: 1px;
    background: var(--nero);
    margin: 40px 0;
  }

  .cta-std {
    margin-top: 50px;
  }
}
