/* ============================================================
   Landing "Analisi gratuita del portafoglio" / Francesco Rossi PB
   Brand source: clienti/rox/brand-identity (locale, confermato 2026-06-03)
   Mobile-first. Stack: HTML + CSS custom + JS vanilla. No framework.
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --c-primary: #6B6F3D;
  --c-primary-dark: #565939;
  --c-secondary: #C05530;
  --c-secondary-dark: #A8451F;
  --c-accent: #627D47;
  --c-cta: #6FA83F;
  --c-cta-dark: #5C8F33;
  --c-alert: #B20000;
  --c-text: #313131;
  --c-text-soft: #5C5C54;
  --c-deep: #2C2E1C;
  --c-neutral: #EDEAE0;
  --c-bg: #FCFBF7;
  --c-border: #E2DECF;
  --c-wa: #25D366;

  /* Spacing scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 8px 30px rgba(44, 46, 28, 0.08);
  --shadow-card: 0 4px 18px rgba(44, 46, 28, 0.06);
  --shadow-lift: 0 12px 34px rgba(44, 46, 28, 0.14);
  --maxw: 1140px;
  --maxw-narrow: 820px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Lato", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 var(--sp-2); color: var(--c-text); font-weight: 900; }
p { margin: 0 0 var(--sp-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-3); }
.container.narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--sp-6) 0; }
.alt-bg { background: var(--c-neutral); }
.section-head { text-align: center; margin-bottom: var(--sp-5); }
.section-head .lead { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--c-text-soft); font-size: 1.08rem; }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -0.3px; }
h3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.eyebrow-light { color: #cdd0a8; }
.lead { font-size: 1.1rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 15px 28px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  line-height: 1.2;
}
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--c-cta);
  color: #FCFBF7;
  box-shadow: 0 6px 18px rgba(111, 168, 63, 0.28);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--c-cta-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(111, 168, 63, 0.36);
}
.btn-primary:active { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(111, 168, 63, 0.3); }
.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--c-primary);
  color: #FCFBF7;
  transform: translateY(-2px);
}
.ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 900; font-size: 1.15rem; color: var(--c-primary); letter-spacing: 0.3px; }
.brand-role { font-size: 0.72rem; color: var(--c-text-soft); letter-spacing: 0.5px; text-transform: uppercase; }
.header-cta { display: none; }

/* ---------- HERO ---------- */
.hero { padding: var(--sp-5) 0 var(--sp-6); background: linear-gradient(180deg, var(--c-bg) 0%, #F6F3EA 100%); overflow: hidden; }
.hero-grid { display: grid; gap: var(--sp-5); align-items: center; }
.hero-sub { font-size: 1.12rem; color: var(--c-text-soft); margin-bottom: var(--sp-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.hero-note { font-size: 0.92rem; color: var(--c-text-soft); margin: 0; }
.hero-visual { display: flex; justify-content: center; }
.portrait-wrap { position: relative; max-width: 340px; width: 100%; }
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background: radial-gradient(ellipse at center bottom, rgba(107,111,61,0.14), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.portrait-wrap img { position: relative; z-index: 1; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(44,46,28,0.18)); }
.portrait-badge {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.portrait-badge strong { display: block; color: var(--c-primary); font-size: 1rem; }
.portrait-badge span { font-size: 0.8rem; color: var(--c-text-soft); }

/* ---------- TRUST BAR ---------- */
.trustbar { background: var(--c-deep); color: #EDEAE0; padding: var(--sp-3) 0; }
.trustbar-inner { display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; text-align: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.trust-item .ico { width: 22px; height: 22px; fill: #C7B68A; flex: none; }
.trust-divider { display: none; width: 1px; height: 26px; background: rgba(255,255,255,0.18); }

/* ---------- PAIN ---------- */
.pain-list { display: grid; gap: var(--sp-2); }
.pain-list li {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pain-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pain-mark {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-neutral);
  color: var(--c-primary);
  font-weight: 900;
  font-size: 1.2rem;
  display: grid; place-items: center;
}
.pain-list strong { display: block; margin-bottom: 4px; color: var(--c-text); }
.pain-list div { color: var(--c-text-soft); }

/* ---------- OFFER CARDS ---------- */
.cards-grid { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-ico { width: 40px; height: 40px; fill: var(--c-accent); margin-bottom: var(--sp-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--c-text-soft); margin: 0; }
.offer-cta { text-align: center; }

/* ---------- METHOD ---------- */
.method-steps { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.method-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  box-shadow: var(--shadow-card);
}
.method-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--c-neutral);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.method-card h3 { color: var(--c-primary); }
.method-card p { color: var(--c-text-soft); margin: 0; }

.howto { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-3); box-shadow: var(--shadow-card); }
.howto-title { text-align: center; margin-bottom: var(--sp-4); }
.howto-steps { display: grid; gap: var(--sp-3); }
.howto-steps li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.howto-step-num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-secondary);
  color: #fff;
  font-weight: 900;
  display: grid; place-items: center;
}
.howto-steps strong { display: block; color: var(--c-text); }
.howto-steps p { color: var(--c-text-soft); margin: 4px 0 0; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; gap: var(--sp-5); align-items: center; }
.about-visual { display: flex; justify-content: center; }
.about-visual img {
  max-width: 320px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #F2EFE4);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
}
.about-points { display: grid; gap: 10px; margin-top: var(--sp-3); }
.about-points li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.ico-check { width: 22px; height: 22px; fill: var(--c-accent); flex: none; }

/* ---------- WHY ---------- */
.why-grid { display: grid; gap: var(--sp-4); align-items: center; }
.stat-card {
  background: var(--c-deep);
  color: #EDEAE0;
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat-num { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 900; color: #C7B68A; display: block; line-height: 1; }
.stat-label { font-size: 1.05rem; margin: var(--sp-2) 0 8px; }
.stat-source { font-size: 0.82rem; color: #b6b6a4; margin: 0; }
.why-text p { color: var(--c-text-soft); }
.why-note { font-weight: 700; color: var(--c-text); }

/* ---------- PROOF ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-3);
  box-shadow: var(--shadow-card);
}
.testimonial blockquote { margin: 0 0 var(--sp-2); }
.testimonial blockquote p { font-size: 1.1rem; color: var(--c-text); }
.testimonial figcaption strong { color: var(--c-primary); display: block; }
.testimonial figcaption span { font-size: 0.85rem; color: var(--c-text-soft); }
.testimonial-placeholder {
  text-align: center;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  color: var(--c-text-soft);
  font-size: 0.92rem;
}

/* ---------- RISK ---------- */
.risk-box {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #FCFBF7;
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.risk-box h2 { color: #fff; }
.risk-box p { color: rgba(255,255,255,0.9); max-width: 560px; margin-left: auto; margin-right: auto; }
.risk-ico { width: 54px; height: 54px; fill: #C7B68A; margin-bottom: var(--sp-2); }
.risk-box .btn-primary { margin-top: var(--sp-2); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  background: none;
  border: none;
  padding: 18px var(--sp-3);
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-text);
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--c-primary);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a p { padding: 0 var(--sp-3) 18px; margin: 0; color: var(--c-text-soft); }

/* ---------- FORM ---------- */
.section-form { background: var(--c-deep); color: #EDEAE0; }
.section-form h2 { color: #fff; }
.form-grid { display: grid; gap: var(--sp-5); align-items: start; }
.form-copy p { color: rgba(237,234,224,0.82); }
.form-reassure { display: grid; gap: 10px; margin: var(--sp-3) 0; }
.form-reassure li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #EDEAE0; }
.form-reassure .ico-check { fill: #9DBE7A; }
.btn-whatsapp-inline {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-wa); color: #073d23; font-weight: 700;
  text-decoration: none; border-radius: var(--radius-sm);
  padding: 12px 22px; margin-top: 8px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-whatsapp-inline:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,211,102,0.3); }

.form-card { background: var(--c-bg); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow-soft); }
.field { margin-bottom: var(--sp-2); }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--c-text); }
.optional { font-weight: 400; color: var(--c-text-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(107,111,61,0.14);
}
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--c-alert); }
.field-error { display: none; color: var(--c-alert); font-size: 0.82rem; margin-top: 4px; font-weight: 700; }
.field.invalid .field-error { display: block; }
.field-check { margin-top: var(--sp-2); }
.check-label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; cursor: pointer; }
.check-label input { width: auto; margin-top: 3px; flex: none; }
.check-label a { color: var(--c-secondary); font-weight: 700; }
.form-foot-note { font-size: 0.8rem; color: var(--c-text-soft); margin: var(--sp-2) 0 0; }

.form-success { text-align: center; padding: var(--sp-4) var(--sp-2); }
.ico-check-big { width: 64px; height: 64px; fill: var(--c-accent); margin: 0 auto var(--sp-2); }
.form-success h3 { color: var(--c-primary); }
.form-success p { color: var(--c-text-soft); }

/* ---------- FOOTER ---------- */
.site-footer { background: #20210F; color: #c9c8ba; padding: var(--sp-6) 0 var(--sp-4); font-size: 0.92rem; }
.footer-grid { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.brand-name-light { color: #EDEAE0; }
.footer-role { color: #9d9c8e; margin: 6px 0 0; }
.footer-col h4 { color: #EDEAE0; font-size: 0.95rem; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: #c9c8ba; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-3); color: #84847a; font-size: 0.8rem; }
.footer-legal .disclaimer { line-height: 1.55; }
.copyright { margin-top: var(--sp-2); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-wa);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.4);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- STICKY CTA MOBILE ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  background: rgba(252,251,247,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-border);
  padding: 10px var(--sp-3);
  transform: translateY(120%);
  transition: transform 0.3s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Stagger: ritardo progressivo applicato via --d (settato in JS) */
.reveal[style*="--d"] { transition-delay: var(--d); }

/* Hover-lift generico su card interattive (servizi, why, tabella) */
.lift { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

/* Method card: hover-lift + leggero risalto bordo */
.method-card { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.method-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

/* Float lieve del ritratto hero */
@keyframes floatPortrait {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.portrait-wrap img { animation: floatPortrait 6s ease-in-out infinite; }

/* ---------- SERVIZI ("Di cosa mi occupo") ---------- */
.services-grid { display: grid; gap: var(--sp-3); }
.service-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.service-ico-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(98, 125, 71, 0.12);
  display: grid; place-items: center;
  margin-bottom: var(--sp-2);
}
.service-ico { width: 28px; height: 28px; stroke: var(--c-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { color: var(--c-primary); margin-bottom: 8px; }
.service-card p { color: var(--c-text-soft); margin: 0; }

/* ---------- TABELLA COMPARATIVA ---------- */
.compare-intro { color: var(--c-text-soft); }
.compare-wrap { margin-top: var(--sp-4); max-width: 100%; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.compare-table th, .compare-table td { overflow-wrap: anywhere; word-break: break-word; }
.compare-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare-table th, .compare-table td {
  padding: 14px var(--sp-2);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.96rem;
}
.compare-table thead th {
  font-weight: 900;
  color: var(--c-text);
  background: var(--c-neutral);
  border-bottom: 2px solid var(--c-border);
}
.compare-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-sm); }
.compare-table tbody th {
  font-weight: 700;
  color: var(--c-text);
  background: #fff;
  width: 26%;
}
.compare-table td { color: var(--c-text-soft); background: #fff; }
/* Colonna Francesco evidenziata verde CTA */
.compare-table .col-fra { color: var(--c-text); }
.compare-table thead .col-fra {
  background: var(--c-cta);
  color: #FCFBF7;
}
.compare-table tbody .col-fra {
  background: rgba(111, 168, 63, 0.09);
  font-weight: 700;
  border-left: 2px solid var(--c-cta);
  border-right: 2px solid var(--c-cta);
}
.compare-table tbody tr:last-child .col-fra { border-bottom: 2px solid var(--c-cta); border-bottom-left-radius: 0; }
.compare-mobile-label { display: none; }

/* ---------- COUNT-UP STAT ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ============================================================
   RESPONSIVE / TABLET (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .container { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-7) 0; }

  .header-cta { display: inline-flex; }

  .hero { padding: var(--sp-6) 0 var(--sp-7); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-actions { flex-wrap: nowrap; }

  .trustbar-inner { flex-direction: row; justify-content: center; gap: var(--sp-4); }
  .trust-divider { display: block; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(3, 1fr); }
  .howto-steps { grid-template-columns: repeat(3, 1fr); }

  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
  .why-grid { grid-template-columns: 0.9fr 1.1fr; }
  .form-grid { grid-template-columns: 1fr 1.1fr; }

  .pain-list { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  /* sticky CTA mobile e wa-float spacing non più necessari su tablet+ */
  .sticky-cta { display: none; }
}

/* ============================================================
   TABELLA COMPARATIVA - responsive
   Mobile (< 720px): la tabella diventa blocchi impilati per riga,
   ogni cella mostra l'etichetta di colonna. Niente overflow.
   ============================================================ */
@media (max-width: 719px) {
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--sp-3);
    overflow: hidden;
  }
  .compare-table tbody th {
    width: 100%;
    background: var(--c-neutral);
    font-size: 1rem;
    padding: 14px var(--sp-3);
    border-bottom: 1px solid var(--c-border);
  }
  .compare-table td {
    border-bottom: 1px solid var(--c-border);
    padding: 12px var(--sp-3) 12px calc(var(--sp-3) + 6px);
  }
  .compare-table tr td:last-child { border-bottom: none; }
  .compare-table .compare-mobile-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--c-text-soft);
    margin-bottom: 3px;
  }
  .compare-table tbody .col-fra {
    background: rgba(111, 168, 63, 0.1);
    border-left: 4px solid var(--c-cta);
    border-right: none;
  }
  .compare-table tbody .col-fra .compare-mobile-label { color: var(--c-cta-dark); }
}
@media (min-width: 720px) {
  .compare-mobile-label { display: none; }
}

/* ============================================================
   RESPONSIVE / DESKTOP (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .portrait-wrap { max-width: 380px; }
  .wa-float { right: 28px; bottom: 28px; }
}

/* ============================================================
   ACCESSIBILITY / reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s !important; }
  .portrait-wrap img { animation: none !important; }
  .lift:hover, .method-card:hover, .card:hover, .service-card:hover, .pain-list li:hover { transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   THANK YOU PAGE (grazie.html)
   ============================================================ */
.thankyou { padding: var(--sp-7) 0; min-height: 60vh; display: flex; align-items: center; }
.thankyou-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
.thankyou-check {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-3);
  border-radius: 50%;
  background: var(--c-cta);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(111, 168, 63, 0.32);
}
.thankyou-check svg { width: 40px; height: 40px; fill: #fff; }
.thankyou h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.thankyou .lead { max-width: 560px; margin: 0 auto var(--sp-4); color: var(--c-text-soft); }
.thankyou-steps {
  text-align: left;
  max-width: 520px;
  margin: 0 auto var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}
.thankyou-steps li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.thankyou-steps .ty-num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-neutral);
  color: var(--c-primary);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.thankyou-steps strong { display: block; }
.thankyou-note {
  max-width: 560px;
  margin: 0 auto var(--sp-4);
  font-size: 0.98rem;
  color: var(--c-text-soft);
}
.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
}
@media (max-width: 560px) {
  .thankyou-card { padding: var(--sp-5) var(--sp-3); }
  .thankyou-actions .btn { width: 100%; }
}

/* ============================================================
   FORM ERROR (invio non riuscito)
   ============================================================ */
.form-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #FBEDE8;
  border: 1px solid var(--color-secondary, #C05530);
  color: #8A2E12;
  font-size: 0.95rem;
}
