*{ box-sizing: border-box; }
    html{ scroll-behavior: smooth; }
    html, body{ height: 100%; }

    body{
      margin: 0;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: #fff;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .contenitore{
      display: grid;
      place-items: start center;
      gap: 15vh;
    }

    .box-testo{
      border: 1px solid #999;
      background: #f7f7f7;
      box-shadow: 0 2px 6px rgba(0,0,0,.15);
      padding: clamp(14px, 2vw, 22px);
      overflow: hidden;
      border-radius: 15px;

      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    h3{
      margin: 0;
      font-size: clamp(16px, 1.6vw, 22px);
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    p{
      margin: 0;
      font-size: clamp(13px, 1.2vw, 16px);
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .tul, .tdl, .tcl{
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.4em;
      text-align: left;
    }
    .tul{ justify-content: flex-start; }
    .tdl{ justify-content: flex-end; }
    .tcl{ justify-content: center; }

    .text-area{ max-width: 55%; }

    .bottoni{
      margin-top: auto;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: .65rem;
    }

    .btn-discover{
      display: inline-flex;
      align-items: center;
      gap: .5em;
      padding: .6em 1.2em;
      font-size: clamp(13px, 1vw, 15px);
      font-weight: 600;
      color: #444;
      background: #fff;
      border: 1px solid #c7c7c7;
      border-radius: 999px;
      text-decoration: none;
      line-height: 1;
      position: relative;
      overflow: hidden;
      isolation: isolate;
      transition: color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .2s ease;
      white-space: nowrap;
    }
    .btn-discover::before{
      content:"";
      position:absolute;
      inset:0;
      background:#111;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .45s ease;
      z-index:-1;
    }
    .btn-discover:hover{
      transform: translateY(-1px);
      color:#fff;
      box-shadow: 0 10px 24px rgba(0,0,0,.18);
    }
    .btn-discover:hover::before{ transform: scaleX(1); }
    .btn-discover .arrow{
      display:inline-block;
      transition: transform .28s ease;
    }
    .btn-discover:hover .arrow{ transform: translateX(3px); }

    .btn-buy{
      display: inline-flex;
      align-items: center;
      gap: .5em;
      padding: .62em 1.35em;
      font-size: clamp(13px, 1vw, 15px);
      font-weight: 700;
      color: #ffffff;
      background: rgba(1, 151, 206, 0.76);
      border-radius: 999px;
      text-decoration: none;
      line-height: 1;
      position: relative;
      overflow: hidden;
      isolation: isolate;
      transition: color .28s ease, box-shadow .28s ease, transform .2s ease, border-color .28s ease;
      white-space: nowrap;
    }
    .btn-buy::before{
      content:"";
      position:absolute;
      inset:0;
      background:rgba(101, 214, 97, 0.7);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .45s ease;
      z-index:-1;
    }
    .btn-buy:hover{
      transform: translateY(-1px);
      box-shadow: 0 12px 28px rgba(116, 255, 160, 0.35);
      border-color: #00b4f0;
    }
    .btn-buy:hover::before{ transform: scaleX(1); }
    .btn-buy:active{ transform: translateY(0); }

    .spazio{
        margin-bottom: 16vh;
    }

    @media (max-width: 800px){
      .text-area{ max-width: 100%; }
      .bottoni{ flex-wrap: wrap; }
    }
/* ============================================================
   REFINEMENT PUBBLICO ISO — override mirati
============================================================ */

body{
  color:#16202a;
  background:#ffffff;
}

main{
  width:100%;
}

a{
  color:inherit;
}

.modulo-txt__box-copy__title,
.service-title,
.obiettivi__title,
.obiettivi__cardTitle{
  letter-spacing:-0.02em;
}

.modulo-txt__box-copy__text,
.service-text,
.obiettivi__cardText,
.sf,
.sf p,
.sf li{
  line-height:1.55;
}

.modulo-txt__box-copy__title{
  max-width:16ch;
}

.modulo-txt__box-copy__text{
  max-width:62ch;
}

.services-inner,
.modulo-txt__inner,
.obiettivi__inner,
.sf__container{
  width:min(1200px, calc(100% - 48px));
  margin-inline:auto;
}

.service-item{
  text-decoration:none;
  color:inherit;
  border-radius:18px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.service-item:hover{
  transform:translateY(-2px);
}

.service-media img{
  object-fit:contain;
}

.sf-group__title,
.sf-brand__name{
  letter-spacing:-0.01em;
}

.sf-meta{
  margin-top:32px;
}

@media (max-width: 800px){
  .spazio{
    margin-bottom:12vh;
  }

  .services-inner,
  .modulo-txt__inner,
  .obiettivi__inner,
  .sf__container{
    width:min(100% - 24px, 1200px);
  }

  .modulo-txt__box-copy__title,
  .modulo-txt__box-copy__text{
    max-width:100%;
  }
}

/* Solo hero home con logo/banner largo */

/* Solo modulo aggiuntivo logo */






/* Gap dedicato tra header e modulo logo */
.home-hero-logo-gap{
  height: 22px;
}

@media (max-width: 900px){
  .home-hero-logo-gap{
    height: 14px;
  }
}


/* Hero logo dedicato */
#home-hero-logo.modulo-txt{
  min-height: auto !important;
  padding: 0 !important;
}

#home-hero-logo.modulo-txt--has-bg{
  background-size: 100% auto !important;
  background-repeat: no-repeat !important;
  background-position: center 108px !important;
  min-height: 320px !important;
  box-shadow: none !important;
}

#home-hero-logo .modulo-txt__overlay{
  display: none !important;
}

#home-hero-logo .modulo-txt__inner{
  min-height: 0 !important;
  padding: 0 !important;
}

#home-hero-logo .modulo-txt__box-copy{
  display: none !important;
}

#home-hero-logo + .spazio{
  margin-bottom: 4vh !important;
}

@media (max-width: 900px){
  #home-hero-logo + .spazio{
    margin-bottom: 2vh !important;
  }
}

/* Hero titolo sotto il logo */
#home-hero-iso.modulo-txt{
  min-height: 420px !important;
}

#home-hero-iso.modulo-txt--has-bg{
  background-size: 100% auto !important;
  background-repeat: no-repeat !important;
  background-position: center 104px !important;
}






#home-hero-iso .modulo-txt__inner{
  position: relative;
  z-index: 3;
}

#home-hero-iso .modulo-txt__box-copy{
  position: relative;
  z-index: 3;
  background: #f4f7fb;
}




#home-hero-iso .modulo-txt__inner{
  position: relative;
  z-index: 2;
}

#home-hero-iso .modulo-txt__box-copy{
  position: relative;
  z-index: 3;
  background:#f4f7fb;
}







