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

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

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

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:not(.ico_s) {
  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 {
  padding: 5rem 3rem;
  background: var(--black);
  margin: 0 auto 2rem;
  border-radius: 1rem;

  @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(--verde-acceso);

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



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

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

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

      &:hover {
        color: var(--verde-acceso);
      }
    }

    &.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 */
.sfumatura_animata {
	background: linear-gradient(-45deg, var(--verde-scuro), var(--verde), var(--verde-scuro), var(--verde));
	background-size: 400% 400%;
	-webkit-animation: gradient 15s ease infinite;
	        animation: gradient 15s ease infinite;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 100vh;
  position: relative;
	
  @media screen and (min-width:1025px) {
    aspect-ratio: 16 / 9;
  }
  @media screen and (max-height:700px) {
    min-height: 70rem;
  }
  @media screen and (max-width:330px) {
    min-height: 70rem;
  }

  .home_img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 40%;
    z-index: 1;
  }

  .sfumatura {
    position: absolute;
    width: 100%;
    padding: 20% 0 0;
    background: linear-gradient(180deg, transparent, var(--black) 80%);
    z-index: 2;
    bottom: 0;
    left: 0;
    margin: 0 auto;
  }

  .box_txt {
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2rem 5rem;
    text-align: center;

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  transition: all .3s;

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

.line {
    width: 100%;
    height: 1px;
    background: var(--verde);
    margin: 1.5rem 0;
    max-width: 40rem;
}

.first_home {
  padding: 0 0 8rem;

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

.fascia_tit_1 {
  padding: 10rem 0 3rem;

  @media screen and (min-width: 1025px) {
    padding: 15rem 0 10rem;
  }
  
  & h1, & h2, & h3 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 3rem 6rem;

    @media screen and (min-width:1025px) {
      flex-direction: row;
      align-items: flex-start;
    }
    @media screen and (min-width:1231px) {
      gap: 3rem 12rem;
    }

    & span {
      width: 100%;

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

      &.bl_1 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding: 0 0 3rem;
      }

      &.bl_2 {
        color: var(--verde);
        line-height: 1;
        margin: 0;

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

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

.wrap_txt_s {
  max-width: 80rem;
  margin: 0 auto;

  & strong {
    color: var(--verde-acceso);
  }
}



/* ─── SCROLL-ANIMATED SECTIONS ────────────────────────────── */

/* ═══════════════════════════════════════════════════
   CLASSI BASE / GLOBALI
════════════════════════════════════════════════════ */

.anim-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: center;

  /* Modifiche Mobile: Svincolo dei 100vh e layout verticale */
  @media (max-width: 768px) {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 4rem;
  }
}

.anim-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  will-change: transform, width, height, top, left;
  overflow: hidden;

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

  &.rounded {
    border-radius: 1.2rem;
  }

  /* Modifiche Mobile: Inserito nel flusso naturale e senza margini assoluti */
  @media (max-width: 768px) {
    position: relative;
    margin: 0 auto;
  }
}

.anim-content {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;

  /* Modifiche Mobile: Ripristino nel flusso (sotto l'immagine) */
  @media (max-width: 768px) {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 2rem 1.5rem;
    margin-top: 1rem;
  }
}

.anim-body {
  width: 130%;
  background: var(--black);
  padding: 1rem;
  border-radius: 1rem;

  @media (max-width: 768px) {
    width: 100%;
    margin: 2rem 0 0 0;
  }
}


/* ═══════════════════════════════════════════════════
   SPECIFICHE: MISSION
════════════════════════════════════════════════════ */

#mission {

  .anim-img-wrap {
    /* Target Desktop */
    --final-w: 42%;
    --final-h: 72%;
    --final-t: 14%;
    --final-l: 4%;

    /* Target Mobile (letti dal JS) */
    @media (max-width: 768px) {
      --final-w: 92;
      --final-h: 45;
    }
  }

  .anim-content {
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    text-align: left;
    padding: 0;
    
    @media (max-width: 768px) {
      position: relative;
      right: 0;
      top: 0;
      transform: none;
      width: 96%;
      padding: 4rem 0 0;
      margin: 0 auto; /* Aggiunto per centrare il blocco largo 96% */
    }

    .box {
      max-width: 71rem;
      margin: 0 auto 0 0;
      padding: 0 0 0 4%;

      @media (max-width: 768px) {
        margin: 0 auto;
        padding: 0;
      }

      .anim-body {
        margin: 4rem auto 0 -30%;

        @media (max-width: 768px) {
          margin: 2rem 0 0 0; /* Reset margini negativi per mobile */
        }
      }
    }
  }
}


/* ═══════════════════════════════════════════════════
   SPECIFICHE: VISION
════════════════════════════════════════════════════ */

#vision {

  .anim-img-wrap {
    /* Target Desktop */
    --final-w: 38%;
    --final-h: 55%;
    --final-t: 22%;
    --final-l: 57%;

    img {
      object-fit: contain;
    }

    /* Target Mobile (letti dal JS) */
    @media (max-width: 768px) {
      --final-w: 92;
      --final-h: 45;
    }
  }

  .anim-content {
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    width: 50%;
    padding: 0;

    @media (max-width: 768px) {
      position: relative;
      left: 0;
      top: 0;
      transform: none;
      width: 96%;
      padding: 4rem 0 0;
      margin: 0 auto; /* Aggiunto per centrare il blocco largo 96% */
    }

    .box {
      max-width: 71rem;
      margin: 0 0 0 auto;

      @media (max-width: 768px) {
        margin: 0 auto;
        padding: 0;
      }

      .anim-body {
        margin: 4rem -30% 0 auto;

        @media (max-width: 768px) {
          margin: 2rem 0 0 0; /* Reset margini negativi per mobile */
        }
      }
    }
  }
}




    /* slider verticali */
/* Base e Variabili Locali */
.wrap_slide_verticale {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--black);

    /* Mobile-First setup */
    aspect-ratio: 9 / 16;
    min-height: 100vh;
    height: auto;
    max-height: 100vh;

    /* Fix per schermi landscape o molto bassi */
    @media screen and (max-height: 700px) {
        min-height: 80rem;
        max-height: none;
    }

    /* Desktop overrides */
    @media screen and (min-width: 769px) {
        aspect-ratio: 16 / 9;
        height: 100vh;
        min-height: auto;
    }

    .slider_vert {
        position: relative;
        width: 100%;
        height: 100%;

        .slide {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            overflow: hidden;
            will-change: transform;

            /* Z-index stacking inverso: la prima è sopra */
            &.slide-1 { z-index: 3; }
            &.slide-2 { z-index: 2; }
            &.slide-3 { z-index: 1; }

            picture, .bg_slide {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
                z-index: 0;
            }

            /* Overlay per leggibilità del testo */
            &::after {
                content: '';
                position: absolute;
                inset: 0;
                background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
                z-index: 1;

                @media screen and (min-width: 1024px) {
                    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%);
                }
            }

            .txt_abs {
                position: absolute;
                bottom: 8%;
                z-index: 2;
                padding: 0 1.5rem;
                color: var(--white);
                width: 100%;

                @media screen and (min-width: 769px) {
                    position: relative;
                    padding: 0 10%;
                    max-width: 100rem;
                    bottom: inherit;
                }


                .btn_group {
                    display: flex;
                    gap: 1rem;
                    align-items: center;

                    .btn {
                      &.js-next, &.js-prev {
                        border: 1px solid var(--white);
                        background-color: transparent;
                        color: var(--white);
                      }

                      svg {
                        path {
                          fill: var(--white);
                        }
                      }

                      &.btn-prev {
                        padding: 1.4rem 1.6rem;
                      }
                    }
                }

                
            }
        }
    }
}

.pad_0 {
  padding: 0;
}

.fascia_tit_2 {
  padding: 10rem 0 3rem;

  @media screen and (min-width: 1025px) {
    padding: 15rem 0 10rem;
  }
  
  .wrap {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 3rem 6rem;

    @media screen and (min-width:1025px) {
      flex-direction: row;
      align-items: flex-start;
    }
    @media screen and (min-width:1231px) {
      gap: 3rem 12rem;
    }

    h3, .bl_2 {
      width: 100%;

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

    h3 {
      border-bottom: 1px solid rgba(255, 255, 255, 0.4);
      padding: 0 0 3rem;
      color: var(--verde);

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

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

.three_bl {
  padding: 0 0 8rem;

  .container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

    .bl {
      width: 100%;
      padding: 0 2rem;
      text-align: center;
      transition: all .3s;

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

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

      h4 {
        color: var(--verde-acceso);
        margin: 0 0 1rem;
      }

      .link {
        color: var(--verde-acceso);
        margin: 2rem auto 0;
      }
    }
  }
}

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

.ico_s {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
}

.fascia_progetti {
  padding: 8rem 0;
}

.title {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: flex-end;
  margin: 0 0 8rem;

  @media screen and (min-width: 769px) {
      justify-content: space-between;
    }

  div {
    width: 100%;

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

  h3 {
    margin: 0;
  }

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

#slide-progetti {
  padding: 0;

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

  .splide__slide {
    img:not(.ico_s) {
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      margin: 0 0 2.5rem;
      border-radius: 1rem;
    }

    .txt {
      padding: 1.5rem 0 0;
      border-top: 1px solid rgba(51, 154, 63, 0.3);

      .tit_4 {
        margin: 0 0 1rem;
      }
    }

    .link {
      color: var(--verde-acceso);
      margin: 1rem 0 0;
    }
  }
}

.splide__pagination {
  padding: 4rem 0 0;
  gap: 8px;

  button {
    width: 1.7rem;
    height: 1.7rem;
    background: var(--white);
    border-radius: 5rem;

    &.is-active {
      background: var(--verde-acceso);
    }
  }
}

.prefooter {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 15rem 0 0;
  margin: 12rem auto 0;

  .fascia_tit_2 {
    padding: 0 0 30rem;
    margin: -20rem auto 0;

    .wrap {
      gap: 0 6rem;

      & h3 {
        padding: 0 0 1rem;
      }
    }
  }
}

footer {
  padding: 10rem 0;

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

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

    .bl {
      width: 100%;

      @media screen and (min-width:851px) {
        width: calc(33.33% - 5.33rem);
      }

      p {
        strong {
          color: var(--verde);
        }
      }

      a:hover {
        color: var(--verde-acceso);
      }
    }
  }

  .credits {
    color: var(--credits);
    font-size: 1.3rem;
    padding: 2rem 0 0;
    text-align: center;
    border-top: 1px solid rgba(51, 154, 63, 0.3);

    a {
      color: var(--credits);

      &:hover {
        color: var(--verde-acceso);
      }
    }
  }
}


/* AZIENDA */
.mappamondo {
  .mappamondo_img {
    width: 100%;
    height: auto;
    aspect-ratio: 2000 / 1333;
    object-fit: contain;
  }
}

#header_pag {
  height: 38rem;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

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

  .container.bc {
    position: relative;

    @media screen and (min-width: 1025px) {
      position: absolute;
      bottom: 1rem;
      left: 0;
      right: 0;
      margin: 0 auto;
    }
  }
}

.ico_bc {
  width: 12rem;
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--black);
  border-radius: 1rem;
  max-width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  text-transform: uppercase;
  padding: 3rem 0 0;

  &.mobile {
    position: relative;

    @media screen and (min-width: 1025px) {
      display: none;
    }

    .ico_bc {
      position: absolute;
      top: -10rem;
      left: 0;

      @media screen and (min-width: 1025px) {
        display: none;
      }
    }
  }
  &.desk {
    display: none; 

    @media screen and (min-width: 1025px) {
      display: flex;
    }

    .ico_bc {
      display: none;

      @media screen and (min-width: 1025px) {
        display: block;
        margin: -5rem 2rem -5rem 0;
      }
    }
  }
}

.first_pag {
  padding: 0 0 8rem;

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

  .fascia_tit_1 {
    padding: 6rem 0 5rem;

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

#slide-loghi {
  img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin: 0 0 1.5rem;
  }
}

.sponsor {
  padding: 6rem 0 8rem;
}


.foto_semplice {
  padding: 2rem 0 12rem;

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

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

  .fascia_tit_2 {
    padding: 4rem 0 0;
  }
}

.pag_superfici {
  display: flex;
  flex-direction: column;
  gap: 2rem 0; 
  overflow-x: clip; 
  overflow-y: visible;
  width: 100%;
  padding: 0 0 6rem;

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

  .row {
    width: 98%;
    max-width: 172rem;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 3rem 0 7rem;
    cursor: pointer;
    text-decoration: none;
    display: block; /* Essenziale ora che la .row è un tag <a> */
    transition: background-color 0.4s ease;
    will-change: transform, background-color; /* Ottimizza il rendering GPU per le animazioni */
    -webkit-tap-highlight-color: transparent; /* Rimuove il fastidioso flash grigio al tap su iOS/Android */

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

    .container {
      max-width: 100rem;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;

      .bl.img {

        .ico {
          transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
      }

      .bl.txt {
        width: 100%;
        padding: 0 2%;
        text-align: center;

        @media screen and (min-width: 769px) {
          width: calc(100% - 30rem);
          padding: 0 7rem;
          text-align: left;
        }
      }
    }

    /* Colori di sfondo statici pre-animazione */
    &:nth-child(1) {
      background-color: rgba(51, 154, 63, 0.15);
    }
    &:nth-child(2) {
      background-color: rgba(51, 154, 63, 0.10);
    }
    &:nth-child(3) {
      background-color: rgba(51, 154, 63, 0.05);
    }
  }
}


.fascia_icone {
  padding: 4rem 0;
  
  .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 5rem;
    justify-content: center;
    margin: 3rem auto 0;

    .bl {
      width: 100%;
      text-align: center;

      @media screen and (min-width:551px) {
        width: calc(50% - 2.5rem);
      }
      @media screen and (min-width:1025px) {
        width: calc(25% - 3.75rem);
      }

      .ico {
        width: 20rem;
      }

      h4 {
        color: var(--verde-acceso);
      }
    }
  }
}


.sistemi {
  .fascia_tit_2 {
    padding: 10rem 0 3rem;

    @media screen and (min-width:1025px) {
      padding: 15rem 0 3rem;
    }
  }
  .accordion {
    display: flex;
    flex-wrap: wrap;
    gap: 10rem 6rem;
    margin: 10rem auto 0;

    .toggle {
      .logo {
        width: 100%;
        height: auto;
        aspect-ratio: 628 / 125;
        object-fit: contain;
        max-width: 60rem;
      }
    }

    .mainbox {
      width: 100%;

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

      .stit {
        margin: 3rem 0 0;
      }

      .link {
        display: flex;
        justify-content: space-between;
        color: var(--verde-acceso);
        margin: 1rem 0 0;

        &::before {
          content: '';
          display: block;
          width: calc(100% - 13rem); 
          height: 1px;
          background-color: var(--verde-acceso);
        }
      }
    }
  }
}


.sistema_progetto {
  padding: 4rem 0;

  .fascia_tit_2 {
    h3 {
      color: var(--white);

      strong {
        color: var(--verde-acceso);
      }
    }
  }

  .row {
    margin: 5rem auto 0;

    p {
      font-weight: 600;
      max-width: 65rem;
      line-height: 1.1;
      position: relative;
      color: var(--verde);

      span {
        color: var(--verde-chiaro);
      }

      &::after {
        display: block;
        position: absolute;
        left: 0;
        top: -3rem;
        width: 17.7rem;
        height: 17.7rem;
        z-index: -1;
        -webkit-animation: rotate-center 2s linear infinite both;
	      animation: rotate-center 2s linear infinite both;
        scale: 0.7;

        @media screen and (min-width:551px) {
          scale: 1;
        }
      }

      &.tit_1 {
          font-size: clamp(3.5rem, 10vw, 8rem);
      }
    }

    &:nth-child(2) {
      display: flex;
      justify-content: flex-start;
      
      p {
        &::after {
          content: url(../images/circle.svg);
        }
      }
    }
    &:nth-child(3) {
      display: flex;
      
      @media screen and (min-width:769px) {
        justify-content: center;
      }

      p {
        &::after {
          content: url(../images/circle_2.svg);
        }
      }
    }
    &:last-of-type {
      display: flex;

      @media screen and (min-width:769px) {
        justify-content: flex-end;
      }
      
      p {
        &::after {
          content: url(../images/circle_3.svg);
        }
      }
    }
  }
}


.servizi_pag {
  padding: 8rem 0;

  .flex {
    max-width: 180rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7rem;
    padding: 0 2%;

    @media screen and (min-width:1025px) {
      gap: 10rem;
    }
    
    .bl {
      width: 100%;
      transition: all .3s;

      &:hover {
        translate: 0 -8px;
      }
      
      @media screen and (min-width:851px) {
        width: calc(50% - 3.5rem);
      }
      @media screen and (min-width:1025px) {
        width: calc(50% - 5rem);
      }

      .box {
        padding: 4rem 2rem;
        border-radius: 1rem;
        border: 1px solid #0000;
        background: linear-gradient(var(--black), var(--black)) padding-box, linear-gradient(
              var(--angle),
              var(--black),
              var(--verde-acceso)
            ) border-box;
        animation: 8s rotate linear infinite;

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

      .box_img {
        margin: 2rem 0;

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

      h3 {
        margin: 0 0 1rem;
      }

      h3, .link {
        color: var(--verde-acceso);
      }

    }
  }
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}


/* GALLERY GSAp */
.stadium-section {
  background-color: #0c1f14;
  /*
   * overflow: hidden — doppio ruolo:
   *  1. prima del pin: clippa lo .scaler scalato fuori dai
   *     bordi della sezione → invisibile quando off-screen
   *  2. durante il pin: sezione = viewport → .scaler copre
   *     esattamente lo schermo senza traboccare
   */
  overflow: hidden;
  & .content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2.5rem;
    box-sizing: border-box;
  }
  & .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 1400px;
    /*
     * Altezza esplicita — evita problemi con height:100%
     * in un flex container.
     */
    height: calc(100vh - 5rem); /* 5rem = padding top + bottom */
  }
  & .quadrant {
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .scaler {
    z-index: 10;
  }
  
  /* ── MOBILE ── */
  @media (max-width: 1023px) {
    overflow: visible; /* non serve il clip su mobile */
    & .content {
      height: auto;
      padding: 1.25rem;
    }
    & .grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      height: auto;
      gap: 1rem;
    }
    & .quadrant {
      aspect-ratio: 16 / 9;
    }
  }
}


.progetti_pag {
  padding: 0 0 8rem;

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

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

      @media screen and (min-width:851px) {
        width: calc(50% - 3rem);
      }
      @media screen and (min-width:1025px) {
        width: calc(33.33% - 4rem);
      }

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

      img:not(.ico_s) {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        margin: 0 0 2.5rem;
        border-radius: 1rem;
      }

      .txt {
        padding: 1.5rem 0 0;
        border-top: 1px solid rgba(51, 154, 63, 0.3);

        .tit_4 {
          margin: 0 0 1rem;
        }
      }

      .link {
        color: var(--verde-acceso);
        margin: 1rem 0 0;
      }
    }
  }

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

  &.blog_pag {
    .flex {
      gap: 8rem 10rem;

      .bl {
        @media screen and (min-width:851px) {
          width: calc(50% - 5rem);
        }
        @media screen and (min-width:1025px) {
          width: calc(50% - 5rem);
        }
      }
    }
  }
}


.img_progetto {
  margin: 4rem auto 0;

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

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

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

  .logo_squadra {
    position: absolute;
    top: -6rem;
    left: 2%;

    @media screen and (min-width:451px) {
      top: -8rem;
    }
    @media screen and (min-width:501px) {
      top: -5rem;
      left: 2.7%;
    }

    img {
      width: 8rem;
      height: auto;
      max-width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: contain;
      border-radius: 1rem;
      box-shadow: 0 0 3rem rgba(0, 0, 0, 0.3);

      @media screen and (min-width:451px) {
        width: 12rem;
      }
      @media screen and (min-width:769px) {
        width: 20rem;
      }
    }
  }
}

.desc {
  padding: 5rem 0;

  h2 {
    font-size: clamp(3.5rem, 8vw, 5rem);
  }

  h2, h3, h4, h5 {
    margin: 2rem 0 8px;
  }
  
  p {
    margin: 8px 0 2rem;
  }
  
  ul, ol {
    margin: 8px 0 2rem;
  }

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

  ul li, ol li {
    &::marker {
      color: var(--verde-acceso);
    }
  }

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

.gallery {
  padding: 6rem 2%;
  max-width: 180rem;
  margin: 0 auto;
}