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

:root {
  --paper: #FFFCF5;
  --ink: #14231E;
  --pine: #0E4C3E;
  --pine-deep: #0A3A30;
  --mint: #A9E8D2;
  --heat: #E4572E;
  --heat-hot: #C93F18;
  --sun: #F5A623;
  --muted: #4E5D57;
  --line: #E8E1D3;
  --wa: #1FA855;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

h1, h2 {
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
}
h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 28px; text-align: center; }
h3 { font-size: 21px; margin-bottom: 8px; font-weight: 700; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { display: block; height: 40px; width: auto; }
.logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; }
.logo em { font-style: normal; font-weight: 500; color: var(--pine); }
.nav-cta {
  background: var(--heat); color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 10px; font-size: 16px; font-weight: 700;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--heat-hot); }

/* hero */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(245, 166, 35, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(228, 87, 46, 0.10), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding-top: 64px; padding-bottom: 64px;
}
.hero-copy { text-align: left; }
.kicker {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
  font-weight: 700; color: var(--heat-hot);
  background: rgba(228, 87, 46, 0.08);
  border: 1px solid rgba(228, 87, 46, 0.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
  animation: rise 0.6s ease both;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  margin-bottom: 20px;
  animation: rise 0.6s 0.08s ease both;
}
.hero h1 em { font-style: normal; color: var(--heat); }
.sub {
  font-size: 21px; color: var(--muted); margin-bottom: 30px; max-width: 46ch;
  animation: rise 0.6s 0.16s ease both;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; animation: rise 0.6s 0.24s ease both; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); animation: rise 0.6s 0.3s ease both; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 17px 32px; border-radius: 12px; font-size: 18px;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--heat); color: #fff;
  box-shadow: 0 10px 24px rgba(228, 87, 46, 0.35);
}
.btn-primary:hover { background: var(--heat-hot); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-full { width: 100%; }

/* hero photo */
.hero-photo { position: relative; animation: rise 0.7s 0.2s ease both; }
.hero-photo img {
  width: 100%; height: auto; display: block; border-radius: 22px;
  box-shadow: 0 30px 70px rgba(20, 35, 30, 0.25);
  transform: rotate(1.5deg);
}

/* striscia temperatura: dal caldo al fresco */
.temp-strip {
  height: 10px;
  background: linear-gradient(90deg, var(--heat-hot), var(--sun) 35%, var(--mint) 75%, var(--pine));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-photo img { transform: none; }
}

/* badges: numeri grandi */
.badges { background: var(--ink); }
.badges-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 26px 24px; }
.badge-item { text-align: center; display: grid; gap: 2px; }
.badge-item strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 40px; font-weight: 800; color: var(--sun); line-height: 1;
}
.badge-item span { font-size: 14px; color: rgba(255, 252, 245, 0.75); }

/* pains: la sezione "fresca" scura */
.pains {
  padding: 72px 0 64px;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(169, 232, 210, 0.12), transparent 60%),
    var(--pine-deep);
  color: #fff;
}
.pains h2 { color: #fff; }
.pains-intro { text-align: center; color: rgba(255, 252, 245, 0.75); max-width: 52ch; margin: -8px auto 30px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips li {
  background: rgba(255, 252, 245, 0.07);
  border: 1px solid rgba(169, 232, 210, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 17px;
}

/* confronto con/senza */
.compare { padding: 64px 0 24px; }
.compare-grid { align-items: stretch; }
.compare-box svg { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 14px 36px rgba(20,35,30,0.08); }

/* cards */
.cards { padding: 64px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 35, 30, 0.1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(228, 87, 46, 0.1); color: var(--heat);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card:nth-child(2) .card-icon { background: rgba(245, 166, 35, 0.14); color: #B47008; }
.card:nth-child(3) .card-icon { background: rgba(14, 76, 62, 0.1); color: var(--pine); }
.card p { font-size: 17px; color: var(--muted); }

/* sezioni immagini */
.beforeafter { padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ba-box { text-align: center; }
.ba-img { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: 18px; }
.ba-box figcaption { margin-top: 12px; font-weight: 700; }
.ba-note { text-align: center; color: var(--muted); font-size: 16px; margin-top: 18px; }

/* steps */
.steps { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-intro { text-align: center; color: var(--muted); margin: -12px auto 34px; max-width: 46ch; font-size: 18px; }
.steps-list { list-style: none; max-width: 660px; margin: 0 auto; display: grid; gap: 28px; }
.steps-list li { display: flex; gap: 20px; align-items: flex-start; }
.step-n {
  flex: 0 0 48px; height: 48px; border-radius: 14px;
  background: var(--pine); color: var(--mint);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.steps-list p { color: var(--muted); font-size: 17px; }

/* system */
.system { padding: 64px 0; }
.system-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.system-text p { margin-bottom: 18px; font-size: 19px; }
.system-list { list-style: none; display: grid; gap: 10px; }
.system-list li { padding-left: 30px; position: relative; color: var(--muted); font-size: 17px; }
.system-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--heat); font-weight: 800;
}
.system-photo img, .system-photo svg {
  width: 100%; height: auto; border-radius: 18px; display: block;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(20, 35, 30, 0.1);
}

/* trust */
.trust { padding: 64px 0; text-align: center; }
.trust p { max-width: 56ch; margin: 0 auto; font-size: 20px; }
.commercial-note { margin-top: 18px; font-size: 17px; color: var(--muted); }
.commercial-note a { color: var(--heat-hot); font-weight: 700; }

/* faq */
.faq { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px; max-width: 700px;
  margin-left: auto; margin-right: auto;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--heat); }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; }
.faq details[open] summary { margin-bottom: 10px; color: var(--heat-hot); }
.faq details p { color: var(--muted); font-size: 17px; }

/* quote form: il "fresco" finale */
.quote {
  padding: 72px 0 80px;
  background:
    radial-gradient(800px 500px at 10% 0%, rgba(169, 232, 210, 0.14), transparent 55%),
    var(--pine-deep);
  color: #fff;
}
.quote h2 { color: #fff; }
.quote-sub { text-align: center; margin-bottom: 34px; color: rgba(255, 252, 245, 0.8); }
.offer-stack {
  list-style: none; max-width: 540px; margin: 0 auto 30px; display: grid; gap: 10px;
}
.offer-stack li {
  padding-left: 32px; position: relative; font-size: 17px;
  color: rgba(255, 252, 245, 0.92);
}
.offer-stack li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
#quoteForm { max-width: 540px; margin: 0 auto; display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 17px; }
.form-row input, .form-row select {
  padding: 15px 16px; border-radius: 12px; border: 2px solid transparent;
  font-size: 18px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--sun); }
.photo-note { font-size: 16px; color: rgba(255, 252, 245, 0.85); }
.photo-note a { color: var(--mint); font-weight: 700; }
.thanks { text-align: center; padding: 32px 0 0; }
.thanks h3 { font-size: 26px; margin-bottom: 8px; }

/* footer */
.footer { padding: 32px 0 100px; text-align: center; font-size: 16px; background: var(--ink); }
.footer p, .footer strong { color: rgba(255, 252, 245, 0.8); }
.footer a { color: var(--mint); }

/* sticky mobile cta */
.sticky-cta { display: none; }

@media (max-width: 780px) {
  body { font-size: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 44px; }
  .hero-photo img { transform: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .ba-img { height: 240px; }
  .badges-row { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .system-grid { grid-template-columns: 1fr; }
  .sticky-cta {
    display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 252, 245, 0.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); z-index: 60;
  }
  .sticky-cta .btn { flex: 1; text-align: center; padding: 14px 10px; font-size: 16px; }
}

/* etichette temperatura hero (regole pulite) */
.chip-t {
  position: absolute; width: max-content;
  font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(20, 35, 30, 0.25);
}
.chip-hot { top: 18px; right: 18px; background: #C93F18; color: #fff; }
.chip-cool { bottom: 18px; left: 18px; background: #0E4C3E; color: #fff; }
