@font-face{
  font-family:"Neue Haas Grotesk Text Pro";
  src:url("../fonts/roman.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Neue Haas Grotesk Text Pro";
  src:url("../fonts/bold.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

:root{
  --yellow:#E1CB00;   /* prima mattonella + menu */
  --orange:#DD8D10;   /* seconda mattonella */
  --black:#0a0a0a;
  --radius:20px;
  --content-col-left: 520px; /* larghezza colonna sinistra card costo */
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Neue Haas Grotesk Text Pro", system-ui, Arial, sans-serif;
  background:#fff;
  color:var(--black);
}

/* ================== WRAP ================== */
.heroWrap,
.sectionWrap{
  padding:0 clamp(16px,6vw,100px);
}

/* ================== CARD BASE ================== */
.heroCard,
.card{
  max-width:1400px;
  margin:0 auto;
  border-radius:var(--radius);
  overflow:hidden;
}

/* prima mattonella + menu */
.heroCard{
  background-color:var(--yellow);
}

/* ================== TOPBAR ================== */
.topbar{
  background-color:var(--yellow);
  display:grid;
  grid-template-columns:200px 1fr auto auto; /* logo | menu | social | hamburger */
  align-items:center;
  padding:22px 34px;
  column-gap:18px;
}

.brand img{ height:44px; width:auto; display:block; }

/* menu desktop */
.menu{
  display:flex;
  justify-content:center;
  gap:44px;
  font-size:15px;
  letter-spacing:.6px;
  text-transform:uppercase;
  font-weight:400;
}
.menu a{
  color:#000;
  text-decoration:none;
}
.menu a.is-active{
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:2px;
}

/* social desktop */
.social-links{ justify-self:end; }
.social-links ul{
  display:flex;
  gap:14px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:flex-end;
}
.social-links a{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none; /* niente underline */
  font-size:14px;
}

/* linea bianca sotto menu */
.topbarLine{
  height:2px;
  background:#fff;
  width:100%;
}

/* ================== HAMBURGER ================== */
.navToggle{
  display:none; /* visibile solo mobile */
  justify-self:end;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
}
.navToggleBar{
  display:block;
  width:24px;
  height:2px;
  background:#000;
  border-radius:2px;
  margin:6px auto;
  transition: transform .18s ease, opacity .18s ease;
}

/* ================== MENU MOBILE (tendina) ================== */
.mobileNav{
  display:none;
  padding:18px 34px 22px 34px;
  background:var(--yellow);
}
.mobileMenu{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.mobileMenu a{
  color:#000;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.6px;
  font-size:15px;
  font-weight:400;
}
.mobileMenu a.is-active{
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:2px;
}
.mobileSocial{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.15);
  display:flex;
  gap:14px;
}

.mobileSocial a{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:15px;
}


/* stato aperto */
.heroCard.nav-open .mobileNav{ display:block; }
.heroCard.nav-open .navToggleBar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.heroCard.nav-open .navToggleBar:nth-child(2){ opacity:0; }
.heroCard.nav-open .navToggleBar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ================== HERO BASE ================== */
.hero{
  min-height:640px;
  display:flex;
  position:relative;
  background-size:cover;
  background-repeat:no-repeat;
}

.hero--first{
  background-color:var(--yellow);
  background-image:url("../img/insufflaggio-sottotetto-tipologie.png");
  background-position:right bottom;
}

.card--orange{ background-color:var(--orange); }

.hero--second{
  background-color:var(--orange);
  background-image:url("../img/card-01.png");
  background-position:left center;
}

/* ================== CONTENUTI ================== */
.heroLeft{
  padding:40px 0 40px 120px;
  max-width:760px;
}
.heroRight{
  margin-left:auto;
  padding:80px 80px 60px 60px;
  max-width:520px;
}

.heroTitle{
  margin:0 0 16px;
  font-size:58px;
  line-height:.8;
  font-weight:400;
}
.heroTitle strong{ font-weight:700; }

.heroText{
  font-size:20px;
  max-width:620px;
  line-height:1.1;
  margin-bottom:26px;
}

.infoList{
  list-style:none;
  padding:0;
  margin:0;
}

.infoList li{
  position:relative;
  padding-left:28px;
  margin-bottom:4px;

  font-size:20px;        /* identico a heroText */
  line-height:1.4;
  font-weight:400;
}

.infoList li::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  width:16px;     /* più piccola */
  height:16px;    /* più piccola */
  background:url("../img/arrow.svg") no-repeat center / contain;
  transform: rotate(-180deg); /* stessa direzione della hero */
}



.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 34px;
  height:40px;
  background:#000;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
  font-size:13px;
  letter-spacing:1.2px;
  font-weight:700;
}

/* ================== DIVISORE TRA CARD ================== */
.whiteDivider{
  height:18px;
  background:#fff;
}

/* ================== RESPONSIVE ================== */
@media(max-width:980px){

  /* menu desktop off, hamburger on */
  .menu{ display:none; }
  .social-links{ display:none; }
  .navToggle{ display:block; }

  /* logo a sinistra, hamburger a destra */
  .topbar{
    grid-template-columns:1fr auto auto;
    padding:16px 18px;
    column-gap:12px;
  }

  .brand img{ height:38px; }

  /* tendina più stretta */
  .mobileNav{ padding:18px 18px 20px 18px; }

  .hero{ min-height:600px; }

  .heroLeft,
  .heroRight{ padding:26px 22px; }

  .heroTitle{ font-size:44px; }
}



.heroArrow{
  margin-left:-20px;
  margin-top:0;
  margin-bottom:-10px; /* la avvicina al testo sotto */
}

.hero--second .cta{
  margin-top:18px;   /* aumenta o diminuisci a gusto */
}

.topWhiteBar{
  height:18px;      /* regola: 8–24px */
  background:#fff;
}

/* ================== CARD BIANCA (terza) ================== */
.card--white{ background:#fff; }
.hero--white{ background:#fff; }

/* layout: tondo a sinistra, testo a destra */
.whiteInner{
  min-height:640px;                 /* come le altre card */
  display:grid;
  grid-template-columns: 520px 1fr; /* area media | area testo */
  align-items:center;
  gap:60px;
  padding:80px;
}

/* media: freccetta + immagine tonda */
.whiteMedia{
  width:420px;
  height:420px;
  border-radius:0;
  overflow:hidden;
}

.whiteCircleImg{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}



/* testo: allineamento differente (più “editoriale”) */
.whiteContent{
  text-align:left;
  max-width:620px;
}

/* titoli: NON usiamo heroTitle perché lì hai line-height molto aggressiva */
.whiteTitle{
  margin:0 0 22px;
  font-size:54px;
  line-height:0.8;  /* regolabile */
  font-weight:400;
}
.whiteTitle strong{ font-weight:700; }

/* corpo testo: più leggibile rispetto a heroText (che ora è troppo stretto) */
.whiteBody{
  margin:0 0 14px;
  font-size:20px;
  line-height:1.1;  /* regolabile */
  font-weight:400;   /* Roman fisso */
}

/* bottone un po’ più giù */
.hero--white .cta{ margin-top:26px; }

/* ================== RESPONSIVE ================== */
@media(max-width:980px){
  .whiteInner{
    grid-template-columns:1fr;
    gap:28px;
    padding:32px 22px;
    min-height:auto;
  }

  .whiteMedia{
    width:280px;
    height:280px;
  }

  .whiteTitle{
    font-size:40px;
  }
}

/* ================== CARD GIALLA CON DIMENSIONI ARANCIONI ================== */

/* variante heroLeft con dimensioni tipo card arancione */
.heroLeft--small{
  padding:80px 80px 60px 60px; /* come heroRight */
  max-width:520px;            /* come heroRight */
}

.card--yellowSmall{
  background-color:var(--yellow);
}

.hero--yellowSmall{
  background-color:var(--yellow);
  background-image:url("../img/50percento.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:right bottom; /* o come ti serve */
}

.card--yellowClone{
  background-color:var(--yellow);
}

.hero--yellowClone{
  background-color:var(--yellow);
  background-image:url("../img/50percento.png"); /* cambia nome file */
  background-repeat:no-repeat;
  background-size:cover;
  background-position:right bottom; /* come la prima */
}

/* ===== CARD ARANCIONE CON TESTI ALLINEATI COME LA BIANCA ===== */

.hero--secondAlt{
  background-image:url("../img/card-02.png"); /* nuova immagine */
  background-size:cover;
  background-position:left center;
}

.orangeInner{
  min-height:640px;
  padding:80px;
  max-width:760px;          /* come whiteContent + respiro */
  display:flex;
  flex-direction:column;
  justify-content:center;
}



/* ====== ARANCIONE con contenuto spostabile (manopola unica) ====== */
.hero--secondWhiteText{
  --content-left: 660px;   /* <<< REGOLA QUI: 80, 120, 160... */
}

/* NON combattere heroRight: rendilo un contenitore normale */
.hero--secondWhiteText .heroRight{
  margin-left: 0 !important;
  max-width: 760px;
  padding: 0 !important;              /* azzera padding che ti frega */
  position: relative;
  left: var(--content-left);          /* <<< spostamento pulito */
  top: 0;
}

/* Rimetti il padding interno (come vuoi tu) */
.hero--secondWhiteText .heroRight > *{
  /* niente */
}

/* Applica padding al blocco, non al layout */
.hero--secondWhiteText .heroRight{
  padding: 80px 0 60px 0 !important;  /* verticale */
}


/* ====== FIX RESPONSIVE: non far uscire il contenuto dallo schermo ====== */
@media (max-width:980px){
  .hero--secondWhiteText{ --content-left: 0px; }  /* oppure 22px se vuoi margine */
  .hero--secondWhiteText .heroRight{
    left: 0;                    /* sicurezza */
    padding: 26px 22px !important; /* come le altre card in mobile */
    max-width: 100%;
  }
}

/* Desktop */
.hero--secondWhiteText{
  background-image: url("../img/costo.png");
  background-size: cover;
  background-position: right center;
}

/* Mobile */
@media (max-width:980px){
  .hero--secondWhiteText{
    background-image: url("../img/costo.png");
    background-position: center top;
  }
}

/* CTA nelle card bianche */
.card--white .cta{
  background-color: var(--yellow);
  color: #000;
}

/* hover coerente */
.card--white .cta:hover{
  background-color: #e6d600; /* o una variante leggermente più scura */
  color: #000;
}





/* ================== CARD FORM ================== */

.hero--form{
  background:#fff;
}

.formInner{
  min-height:640px;
  display:grid;
  grid-template-columns: 1fr 520px;
  gap:80px;
  padding:80px;
  align-items:flex-end;
}

.formIntro{
  max-width:560px;
}

.formTitle{
  margin:0 0 22px;
  font-size:54px;
  line-height:0.9;
  font-weight:400;
}
.formTitle strong{ font-weight:700; }

.formText{
  font-size:18px;
  line-height:1.25;
  margin-bottom:14px;
}

/* FORM */
.formBox{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.formRow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.formRow input:not([type="checkbox"]),
.formRow select{
  width:100%;
  height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid #ccc;
  font-family:inherit;
  font-size:15px;
  outline:none;
}


.formRow input:not([type="checkbox"]):focus,
.formRow select:focus{
  border-color:#000;
}



.formSubmit{
  margin-top:10px;
  height:44px;
  border-radius:999px;
  border:none;
  background:#000;
  color:#fff;
  font-size:14px;
  letter-spacing:1.2px;
  font-weight:700;
  cursor:pointer;
}

/* ================== RESPONSIVE ================== */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

@media(max-width:980px){
  .formInner{
    grid-template-columns:1fr;
    padding:32px 22px;
    gap:32px;
    min-height:auto;
  }
}
.formRow--privacy{
  display:block;
}

.gdprRow{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:1.2;
  cursor:pointer;
  white-space:nowrap; /* se vuoi forzare UNA riga */
}

.gdprRow input[type="checkbox"]{
  width:16px;
  height:16px;
  padding:0;
  margin:0;
  border-radius:0;
}


/* ================== FOOTER CARD (bassa) ================== */
.card--footer{ background: var(--yellow); }

.footerInner{
  height:72px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 34px;
  transform: translateX(40px);
}


.footerLogo{
  height:34px;
  width:auto;
  display:block;
}

.footerCopy{
  font-size:16px;
  line-height:1.1;
  margin-top: 26px;   /* prova 4px, 6px, 8px */
}

/* XXX Mobile */
@media(max-width:980px){

  .footerInner{
    height:auto;
    padding:14px 18px;
    flex-direction:column;
    align-items:center;
    gap:6px;

    transform:none;        /* <<< QUESTO è IL FIX */
    text-align:center;
    width:100%;
  }

  .footerCopy{
    text-align:center;
    margin-top:0;          /* (opzionale) toglie quel margine strano */
  }

}



.footerBrand img{
  height:48px;   /* prova 24px, 28px o 32px */
  width:auto;
  display:block;
}

/* ================== CARD COSTO GRIGIA (come mockup) ================== */
:root{
  --costGrey:#f2f2f2;     /* grigio chiaro pieno */
  --costPink:#f3d9dd;     /* evidenziatore rosa */
  --costLine:#bdbdbd;     /* linee tabella */
}

/* wrapper card */
.card--costGrey{
  background: var(--costGrey);
}

/* layout interno */
.costInner{
  min-height:640px;
  display:grid;
  grid-template-columns: 520px 1fr; /* sinistra fissa, destra fluida */
  gap:70px;
  padding:80px;
  align-items:end;
}

/* SINISTRA */
.costLeft{ position:relative; }
.costArrow{
  margin-left:-10px;
  margin-bottom:10px;
}
.costArrow svg{ transform: rotate(-90deg); }

.costTitle{
  margin:0 0 26px;
  font-size:58px;
  line-height:.85;
  font-weight:400;
  letter-spacing:-0.5px;
}

/* cerchio immagine */
.costCircle{
  width:420px;
  height:420px;
  border-radius:50%;
  overflow:hidden;
}
.costCircle img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* DESTRA: contenuto allineato in basso all'immagine */
.card--costGrey .costRight{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;  /* <<< chiave */
  max-width:820px;
  padding-top:0;             /* via l'hack */
}


.costP{
  margin:0 0 18px;
  font-size:20px;
  line-height:1.1;
  font-weight:400;
}

/* “tabella” */
.costTable{ margin-top:26px; }

.costTableHead{
  display:grid;
  grid-template-columns: 1fr 280px;
  align-items:end;
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
  padding-bottom:12px;
  border-bottom:2px solid var(--costLine);
}

.costTableHead > div{
  display:inline-block;
  padding:0;
  background:none;
}


.costTableRow{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap:16px;
  padding:12px 0;
  border-bottom:0;
  font-size:18px;
  line-height:1.2;
}

.costTableRow > div:first-child{
  background:none;
  padding:0;
}


.costVal{
  justify-self:end;
  background:none;
  padding:0;
}


/* ================== RESPONSIVE ================== */
@media(max-width:980px){
  .costInner{
    grid-template-columns:1fr;
    gap:26px;
    padding:32px 22px;
    min-height:auto;
  }

  .costTitle{ font-size:44px; }
  .costCircle{ width:280px; height:280px; }

  .costRight{ padding-top:0; max-width:100%; }

  .costTableHead,
  .costTableRow{
    grid-template-columns: 1fr;
  }

  .costVal{
    justify-self:start;
  }
}
/* ================== CTA CHECK ================== */

.card--ctaCheck{
  background:#fff;
}

.ctaCheckInner{
  min-height:360px;
  display:grid;
  grid-template-columns: var(--content-col-left) 1fr;
  gap:70px;
  padding:80px;
  align-items:center;
}


/* freccia */
.ctaArrow svg{
  transform: rotate(0deg);
}

/* testo */
.ctaContent{
  max-width:760px;
}

.ctaTitle{
  margin:0 0 12px;
  font-size:40px;
  line-height:1.05;
  font-weight:700;
}

.ctaText{
  margin:0 0 26px;
  font-size:20px;
  line-height:1.1;
}

/* bottone giallo */
.cta--yellow{
  background: var(--yellow);
  color:#000;
}

.cta--yellow:hover{
  background:#e6d600;
  color:#000;
}

/* ================== RESPONSIVE ================== */
@media(max-width:980px){
  .ctaCheckInner{
    grid-template-columns:1fr;
    gap:22px;
    padding:32px 22px;
    min-height:auto;
  }

  .ctaArrow{
    margin-bottom:6px;
  }

  .ctaTitle{
    font-size:26px;
  }
}

/* ================== CARD COSTO GIALLA ================== */
.card--costYellow{
  background: var(--yellow);
}

/* ===== TABELLA COSTI A 3 COLONNE ===== */
.costTable--3col .costTableHead,
.costTable--3col .costTableRow{
  grid-template-columns: 1fr 260px 220px;
}

/* allineamento valori economici */
.costTable--3col .costVal{
  justify-self:end;
}

.costList{
  margin: 0 0 18px;
  padding-left: 18px;
}
.costList li{
  margin: 6px 0;
  font-size:20px;     /* uguale ai tuoi costP */
  line-height:1.1;
}

.costLeft{
  align-self:start;
}

.costRight .ctaTitle{
  margin-bottom:3px;   /* prova 4–8px */
}


/* ================== XXX MOBILE: POSIZIONE IMMAGINI DI SFONDO ================== */
@media (max-width:980px){

  /* HERO 1 (gialla) */
  .hero--first{
    background-image: url("../img/insufflaggio-sottotetto-tipologie-mobile.png");
    background-position: 90% 0%;
  }

}

/* ================== TESTO SOLO MOBILE ================== */
.mobileOnly{
  display:none;
}

@media (max-width:980px){
  .mobileOnly{
    display:block;
  }

  .whiteBody:not(.mobileOnly){
    display:none;
  }
}


/* ================== BOTTONI CONTATTO – COME CAMPI FORM ================== */

.contactButtons{
  display:grid;
  grid-template-columns: 1fr 1fr; /* 50% + 50% */
  gap:12px;

  width:100%;
  max-width:520px; /* stessa larghezza colonna form */
  margin-top:26px;
}

.contactBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  width:100%;
  height:44px;          /* identica ai campi */
  padding:0 18px;

  background: var(--yellow);
  color:#000;

  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;

  transition: background .2s ease, transform .15s ease;
}

.contactBtn i{
  font-size:16px;
  color:#000;
}

.contactBtn:hover{
  background:#e6d600;
  transform: translateY(-1px);
}


.modalOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modalOverlay.is-open{
  display:flex;
}

.modalBox{
  background:#fff;
  border-radius:20px;
  padding:32px 34px;
  max-width:420px;
  width:90%;
  font-family:"Neue Haas Grotesk Text Pro", system-ui, sans-serif;
  position:relative;
}

.modalTitle{
  margin:0 0 12px;
  font-size:28px;
  line-height:1;
  font-weight:400;
}

.modalTitle strong{
  font-weight:700;
}

.modalText{
  font-size:17px;
  line-height:1.3;
}

.modalClose{
  position:absolute;
  top:14px;
  right:18px;
  background:none;
  border:0;
  font-size:28px;
  cursor:pointer;
  line-height:1;
}

/* ================== BOTTONI CTA T E S T O   C E N T R A T O ================== */
.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

