/* ============================================================
   RE IMPIANTI — Preventivatore (stili wizard)
   Realize Group · 2026 · usa i token di style.css
   ============================================================ */

.pv-wrap { max-width: 760px; margin-inline: auto; }

/* Badge modo setter */
.pv-setter-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 22px; padding: 7px 15px;
  background: var(--amber-500); color: #2a1900; font-family: var(--font-head); font-weight: 800;
  font-size: .8rem; border-radius: 999px; letter-spacing: .02em;
}

/* ---- Stepper di avanzamento testuale ---- */
.pv-intro { text-align: center; margin-bottom: 30px; }
.pv-intro h2 { margin-bottom: 10px; }
.pv-intro p { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }

/* ---- 1. Griglia categorie ---- */
.pv-categorie { display: grid; gap: 14px; }
@media (min-width: 600px) { .pv-categorie { grid-template-columns: 1fr 1fr; } }
.pv-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pv-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-400); }
.pv-cat-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: 12px; }
.pv-cat-ic svg { width: 26px; height: 26px; }
.pv-cat-ic.sm { width: 38px; height: 38px; margin: 0 10px 0 0; border-radius: 11px; display: inline-grid; vertical-align: middle; }
.pv-cat-ic.sm svg { width: 20px; height: 20px; }
.pv-cat b { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); }
.pv-cat span { font-size: .9rem; color: var(--muted); }

/* ---- 2. Domande ---- */
.pv-step-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
#pv-cat-titolo { display: flex; align-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.pv-cambia { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--green-700); white-space: nowrap; }
.pv-cambia:hover { text-decoration: underline; }

.pv-q { margin-bottom: 22px; }
.pv-q > label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--ink); margin-bottom: 12px; }

.pv-chips { display: grid; gap: 10px; }
@media (min-width: 520px) { .pv-chips { grid-template-columns: 1fr 1fr; } }
.pv-chip {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 13px; padding: 15px 17px;
  transition: var(--t); position: relative;
}
.pv-chip:hover { border-color: var(--green-400); background: #fff; }
.pv-chip.on { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px var(--green-50); }
.pv-chip.on::after { content: "✓"; position: absolute; top: 10px; right: 13px; color: var(--green-600); font-weight: 800; }
.pv-chip b { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); }
.pv-chip span { font-size: .85rem; color: var(--muted); }

/* stepper numerico */
.pv-stepper { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pv-step-btn { width: 50px; height: 50px; font-size: 1.5rem; font-weight: 700; color: var(--green-700); background: var(--bg-soft); transition: var(--t); }
.pv-step-btn:hover { background: var(--green-50); }
.pv-step-val { min-width: 130px; text-align: center; font-size: .98rem; color: var(--ink-2); }
.pv-step-val b { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }

/* ---- 3. Risultato ---- */
.pv-price { text-align: center; padding: 14px 0 22px; }
.pv-price-lbl { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); margin-bottom: 8px; }
.pv-price-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 7vw, 3rem); color: var(--ink); line-height: 1.05; letter-spacing: -.02em; }
.pv-price-sub { display: block; font-size: .9rem; color: var(--muted); margin-top: 10px; }

.pv-break { background: var(--bg-soft); border-radius: 14px; padding: 18px 20px; margin: 8px 0 18px; }
.pv-break-h { display: block; font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.pv-break ul { display: grid; gap: 10px; }
.pv-break li { display: flex; justify-content: space-between; gap: 14px; font-size: .96rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.pv-break li:last-child { border-bottom: 0; padding-bottom: 0; }
.pv-break li b { font-family: var(--font-head); color: var(--ink); white-space: nowrap; }
.pv-break li em { color: var(--green-600); font-style: normal; font-size: .88rem; }

.pv-nota { font-size: .9rem; color: var(--muted); background: #fff8ee; border: 1px solid #f0d080; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; line-height: 1.5; }
.pv-setter { font-size: .9rem; color: var(--ink-2); background: #fff3cd; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.pv-setter b { color: var(--ink); }

.pv-cta-box { background: linear-gradient(150deg, #101312, #0a0c0b); border-radius: var(--radius); padding: 26px 24px; text-align: center; color: #fff; }
.pv-cta-q { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: 6px; }
.pv-cta-sub { color: #c0c9c2; font-size: .94rem; max-width: 46ch; margin: 0 auto 20px; }
.pv-cta-box .btn { margin-bottom: 6px; }
.pv-ricalcola { display: block; width: 100%; margin-top: 14px; color: #9aa39c; font-size: .9rem; font-weight: 600; transition: var(--t); }
.pv-ricalcola:hover { color: #fff; }

/* trust mini sotto al wizard */
.pv-reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 24px; }
.pv-reassure li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.pv-reassure svg { width: 17px; height: 17px; color: var(--green-500); }

/* ---- Form di cattura ---- */
.pv-cattura-head { text-align: center; margin-bottom: 26px; }

/* ---- Print: solo il risultato brandizzato ---- */
@media print {
  .lp-header, .pv-categorie, #pv-step, .pv-cta-box, .pv-ricalcola, .pv-reassure,
  #cattura, .lp-footer, .mobile-bar, .pv-intro, .pv-setter-badge, .page-hero { display: none !important; }
  body { background: #fff; padding: 0; }
  #pv-risultato { display: block !important; box-shadow: none; border: 2px solid var(--green-700); }
  .pv-price-big { color: #000; }
}
