/* ============================================================
   Clima House Energia — MVP landing
   Palette derivata dal logo: arancione / nero caldo / bianco
   ============================================================ */

:root {
  --orange:      #E2701E;
  --orange-bri:  #F4882F;
  --orange-deep: #C75E13;
  --ink:         #16130F;
  --ink-2:       #1E1A14;
  --ink-soft:    #2A241C;
  --paper:       #F4EEE3;
  --paper-2:     #EBE3D3;
  --card:        #FBF8F1;
  --text:        #1B1712;
  --text-mut:    #6C6356;
  --on-dark:     #EFE8DA;
  --on-dark-mut: #A79C88;
  --line-light:  #DDD3BF;
  --line-dark:   rgba(239,232,218,.14);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  --wrap: 1180px;
  --r: 18px;
  --r-sm: 12px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.62;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---------- accent helpers ---------- */
.hl { color: var(--orange); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--orange-bri); }
.eyebrow__dot {
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 3px;
  transform: rotate(45deg);
  flex: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 100px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 17px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn__ico { display: inline-flex; }
.btn__ico svg { width: 19px; height: 19px; fill: currentColor; }

.btn--call {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(226,112,30,.85);
}
.btn--call:hover { background: var(--orange-bri); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(226,112,30,.9); }

.btn--wa {
  background: #1EA952;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(30,169,82,.9);
}
.btn--wa:hover { background: #25BE5D; transform: translateY(-2px); }

.btn--ghost-light {
  background: transparent;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 2px var(--line-dark);
}
.btn--ghost-light:hover { box-shadow: inset 0 0 0 2px var(--orange); color: #fff; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22,19,15,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark { width: 44px; height: 44px; flex: none; color: var(--on-dark); }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.brand__name em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--orange-bri);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--on-dark-mut);
  padding: 6px 0;
  position: relative;
  transition: color .16s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); }

.header__call { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--on-dark);
  border-radius: 3px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(239,232,218,.10) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  color: var(--on-dark);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(226,112,30,.30), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 56px;
  align-items: center;
  padding: 84px 24px 96px;
}

.hero h1 {
  color: var(--on-dark);
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  margin-bottom: 22px;
}
.hero__lead {
  font-size: 1.18rem;
  color: var(--on-dark-mut);
  max-width: 33ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
}
.hero__trust li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__trust li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex: none;
}

/* hero badge / mark */
.hero__badge {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 62px 50px;
  background-color: var(--ink-2);
  background-image: radial-gradient(rgba(239,232,218,.11) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border: 1.5px solid var(--line-dark);
  border-radius: 28px;
}
.hero__mark {
  width: 100%;
  max-width: 296px;
  height: auto;
  color: var(--on-dark);
}
.stamp {
  position: absolute;
  right: 22px;
  bottom: -34px;
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-13deg);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.7);
}
.stamp__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  color: var(--orange);
  line-height: 1;
}
.stamp__small {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-top: 3px;
  max-width: 78px;
  line-height: 1.22;
  text-align: center;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--orange);
  overflow: hidden;
  border-block: 3px solid var(--ink);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__set {
  display: flex;
  flex: none;
}
.marquee__set em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 13px 0;
  display: flex;
  align-items: center;
}
.marquee__set em::after {
  content: "";
  width: 9px; height: 9px;
  background: var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
  margin-inline: 28px;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   SECTIONS — base
   ============================================================ */
.section { padding: 92px 0; }
.section--paper { background: var(--paper); }
.section--ink {
  background-color: var(--ink);
  background-image: radial-gradient(rgba(239,232,218,.085) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  color: var(--on-dark);
}
.section--ink h2, .section--ink h3 { color: var(--on-dark); }

.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.section__intro {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--text-mut);
}
.section--ink .section__intro { color: var(--on-dark-mut); }

/* ============================================================
   SERVIZI — cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1.5px solid var(--line-light);
  border-radius: var(--r);
  padding: 28px 24px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 22px 40px -24px rgba(22,19,15,.5);
}
.card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  color: var(--orange);
  letter-spacing: .08em;
}
.card h3 { font-size: 1.32rem; margin: 14px 0 10px; }
.card p { color: var(--text-mut); font-size: 1rem; }

/* spotlight — caldaie a gasolio */
.spotlight {
  margin-top: 26px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r);
  padding: 36px 38px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background-image: radial-gradient(rgba(239,232,218,.09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.spotlight__tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--orange);
  padding: 7px 14px;
  border-radius: 100px;
  flex: none;
}
.spotlight__body { flex: 1 1 320px; }
.spotlight__body h3 { color: var(--on-dark); font-size: 1.5rem; margin-bottom: 8px; }
.spotlight__body p { color: var(--on-dark-mut); }
.spotlight__cta { flex: none; }

/* ============================================================
   PRONTO INTERVENTO
   ============================================================ */
.emergency { position: relative; overflow: hidden; }
.emergency__watermark {
  position: absolute;
  right: -90px; top: 50%;
  width: 460px;
  transform: translateY(-50%);
  opacity: .07;
  pointer-events: none;
}
.emergency__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 48px;
  align-items: center;
}
.emergency h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 20px; }
.emergency__lead {
  font-size: 1.16rem;
  color: var(--on-dark-mut);
  margin-bottom: 30px;
  max-width: 46ch;
}
.emergency__list { display: flex; flex-direction: column; gap: 14px; }
.emergency__list li {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-left: 5px solid var(--orange);
  border-radius: var(--r-sm);
  padding: 18px 22px;
}
.emergency__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange-bri);
}
.emergency__list span { color: var(--on-dark-mut); font-size: .98rem; }

/* ============================================================
   PERCHÉ NOI
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r);
  padding: 30px 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--orange-bri);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--on-dark-mut);
  font-size: .96rem;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  overflow: hidden;
}
.reason {
  background: var(--paper);
  padding: 28px 26px;
}
.reason h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.reason h3::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}
.reason p { color: var(--text-mut); font-size: 1rem; }

/* ============================================================
   COME FUNZIONA — steps
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: s;
}
.step {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: 30px 26px 32px;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
  line-height: .9;
  display: block;
  margin-bottom: 14px;
}
.step h3 { color: var(--on-dark); font-size: 1.24rem; margin-bottom: 8px; }
.step p { color: var(--on-dark-mut); font-size: 1rem; }

/* ============================================================
   ZONA
   ============================================================ */
.zona__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: center;
}
.zona__note {
  margin-top: 14px;
  color: var(--text-mut);
  font-size: 1rem;
}
.zona__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.zona__chips li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--card);
  border: 1.5px solid var(--line-light);
  border-radius: 100px;
  padding: 11px 20px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.zona__chips li:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: start;
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.contact__lead {
  margin: 16px 0 28px;
  font-size: 1.1rem;
  color: var(--on-dark-mut);
}
.contact__list { display: flex; flex-direction: column; gap: 4px; }
.contact__list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.contact__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact__k {
  display: block;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  font-weight: 600;
}
.contact__v {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  color: var(--on-dark);
  margin-top: 3px;
}
a.contact__v:hover { color: var(--orange-bri); }

/* form */
.form {
  background: var(--card);
  border-radius: var(--r);
  padding: 32px 30px;
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.7);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: 7px;
}
.field__opt { color: var(--text-mut); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line-light);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #aaa19a; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(226,112,30,.16);
}
.field input.invalid,
.field select.invalid {
  border-color: #d23b2a;
  box-shadow: 0 0 0 4px rgba(210,59,42,.13);
}
.form__note {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--text-mut);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #100E0B;
  color: var(--on-dark-mut);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.brand--footer { align-items: flex-start; }
.footer__legal {
  margin-top: 18px;
  font-size: .94rem;
  line-height: 1.8;
}
.footer__col h4 {
  color: var(--on-dark);
  font-size: 1rem;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col a {
  font-size: .98rem;
  transition: color .15s ease;
  width: fit-content;
}
.footer__col a:hover { color: var(--orange-bri); }
.footer__col p { font-size: .94rem; line-height: 1.7; margin-top: 4px; }
.footer__phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--on-dark) !important;
}
.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: .86rem;
}

/* ============================================================
   FAB — WhatsApp flottante (solo mobile)
   ============================================================ */
.fab {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 58px; height: 58px;
  background: #1EA952;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(30,169,82,.85);
  z-index: 45;
}
.fab svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================================
   REVEAL on scroll
   ============================================================ */
/* lo stato nascosto si applica solo se il JS è attivo:
   senza JavaScript tutti i contenuti restano visibili */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__badge { order: -1; max-width: 400px; padding: 50px 40px; }
  .hero__mark { max-width: 240px; }
  .stamp { width: 104px; height: 104px; }
  .stamp__big { font-size: 1.9rem; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
  .nav a:last-child { border-bottom: none; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header__call { display: none; }
  .brand__name em { display: none; }

  .emergency__grid,
  .zona__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .emergency__watermark { display: none; }
  .fab { display: flex; }
  .stamp {
    left: 50%; right: auto;
    bottom: -30px;
    transform: translateX(-50%) rotate(-10deg);
  }
  .section { padding: 70px 0; }
  .hero__grid { padding: 56px 24px 70px; }
}

@media (max-width: 540px) {
  body { font-size: 1rem; }
  .cards, .steps, .reasons, .stats { grid-template-columns: 1fr; }
  .reasons { gap: 1px; }
  .spotlight { padding: 28px 24px; }
  .form { padding: 26px 20px; }
  .btn--lg { width: 100%; }
  .hero__cta { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .stamp { width: 96px; height: 96px; bottom: -26px; }
}

/* ============================================================
   MOTION OFF
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}
