/* CRModel — Homepage restyle
   Scoped under body.home-body so it never leaks into other pages.
   Uses tokens.css variables (--brand-gradient, --sec-*, --ink-*, etc.)
   --------------------------------------------------------------- */

body.home-body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset eventuali stili residui di Flatly che entrano in conflitto */
body.home-body .navbar.navbar-custom { display: none !important; }

/* ─── Top bar ─────────────────────────────────────────── */
body.home-body .h-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 244, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
body.home-body .h-topbar-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
body.home-body .h-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
body.home-body .h-brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-gradient);
  position: relative; flex-shrink: 0;
}
body.home-body .h-brand-mark::after {
  content: ""; position: absolute; inset: 7px;
  background: white; border-radius: 50%;
}
body.home-body .h-brand-mark::before {
  content: ""; position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-gradient);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
}
body.home-body .h-brand-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: var(--ink-1);
}
body.home-body .h-brand-text small {
  color: var(--ink-3); font-weight: 500; font-size: 12px; margin-left: 4px;
}
body.home-body .h-nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
body.home-body .h-nav-links a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: all .15s;
}
body.home-body .h-nav-links a:hover { background: rgba(0,0,0,0.04); color: var(--ink-1); }
body.home-body .h-nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Buttons ─────────────────────────────────────────── */
body.home-body .h-btn {
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; border: 1px solid transparent;
  transition: all .15s; text-decoration: none;
  line-height: 1;
}
body.home-body .h-btn-grad {
  background: var(--brand-gradient); color: white;
  box-shadow: 0 4px 12px rgba(233, 75, 124, 0.25);
}
body.home-body .h-btn-grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 75, 124, 0.32);
  color: white;
}
body.home-body .h-btn-outline {
  background: white; color: var(--ink-1);
  border-color: var(--border-strong);
}
body.home-body .h-btn-outline:hover { background: var(--surface-soft); color: var(--ink-1); }
body.home-body .h-btn-ghost {
  background: transparent; color: var(--ink-2);
  height: 38px; padding: 0 14px;
  border: 0; font-weight: 500; font-size: 13.5px;
  border-radius: 8px;
}
body.home-body .h-btn-ghost:hover { background: rgba(0,0,0,0.04); color: var(--ink-1); }
body.home-body .h-btn-sm {
  height: 38px; padding: 0 18px; font-size: 13.5px;
}

/* ─── Containers ──────────────────────────────────────── */
body.home-body .h-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
body.home-body .h-section { padding: 80px 0; position: relative; }
body.home-body .h-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2);
}
body.home-body .h-eyebrow .gdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
}
body.home-body .h-grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Hero ────────────────────────────────────────────── */
body.home-body .h-hero {
  padding: 64px 0 80px;
  position: relative; overflow: hidden;
}
body.home-body .h-hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center;
}
body.home-body .h-hero h1 {
  font-family: var(--font-display);
  font-size: 60px; line-height: 1.05; letter-spacing: -0.035em;
  margin: 18px 0 20px;
  font-weight: 700;
  color: var(--ink-1);
}
body.home-body .h-hero p.h-lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 520px; margin: 0 0 28px;
}
body.home-body .h-hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.home-body .h-hero-meta {
  margin-top: 24px;
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-3); font-size: 12.5px;
  flex-wrap: wrap;
}
body.home-body .h-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
body.home-body .h-hero-meta .check { color: var(--green); flex-shrink: 0; }

/* Hero visual — stylized product mock */
body.home-body .h-hero-visual {
  position: relative;
  aspect-ratio: 1.05 / 1;
  display: flex; align-items: center; justify-content: center;
}
body.home-body .h-visual-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(233,75,124,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107,79,187,0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245,158,66,0.12) 0%, transparent 60%);
  filter: blur(40px);
}
body.home-body .h-mock-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(20,20,30,0.10), 0 4px 12px rgba(20,20,30,0.04);
}
body.home-body .h-mock-main {
  width: 78%; height: 76%;
  top: 12%; left: 11%;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
body.home-body .h-mock-hd { display: flex; align-items: center; justify-content: space-between; }
body.home-body .h-mock-pill {
  font-size: 9.5px; letter-spacing: 0.07em;
  padding: 4px 8px; border-radius: 999px;
  background: var(--sec-dashboard-50); color: var(--sec-dashboard);
  font-weight: 700;
}
body.home-body .h-mock-row { display: flex; align-items: center; gap: 10px; }
body.home-body .h-mock-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; }
body.home-body .h-mock-bar > span { display: block; height: 100%; background: var(--brand-gradient); }
body.home-body .h-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.home-body .h-mock-stat {
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface-soft);
}
body.home-body .h-mock-stat .v {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
}
body.home-body .h-mock-stat .l {
  font-size: 9.5px; color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
body.home-body .h-mock-rate {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: color-mix(in oklab, var(--rate-2) 12%, white);
  border: 1px solid color-mix(in oklab, var(--rate-2) 25%, white);
  font-size: 11px; color: var(--ink-2);
}
body.home-body .h-mock-rate b { font-family: var(--font-display); color: var(--rate-2); font-size: 16px; }
body.home-body .h-mock-float-1 {
  width: 40%; padding: 14px 16px;
  top: 4%; right: -2%;
  display: flex; align-items: center; gap: 10px;
}
body.home-body .h-mock-float-2 {
  width: 44%; padding: 14px 16px;
  bottom: 4%; left: -4%;
}
body.home-body .h-mock-tile {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.home-body .h-mock-spark {
  display: flex; align-items: flex-end; gap: 4px; height: 32px; margin-top: 6px;
}
body.home-body .h-mock-spark > span {
  flex: 1; background: var(--brand-purple); border-radius: 2px; opacity: 0.85;
}

/* ─── Trust strip ─────────────────────────────────────── */
body.home-body .h-trust {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
body.home-body .h-trust-inner {
  display: flex; align-items: center; justify-content: center; gap: 36px;
  flex-wrap: wrap;
  color: var(--ink-3); font-size: 12.5px;
}
body.home-body .h-trust-item { display: flex; align-items: center; gap: 8px; }
body.home-body .h-trust-item b {
  color: var(--ink-1); font-weight: 600;
  font-family: var(--font-display); font-size: 16px;
}

/* ─── Section heads ───────────────────────────────────── */
body.home-body .h-sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
body.home-body .h-sec-head h2 {
  font-family: var(--font-display);
  font-size: 40px; line-height: 1.1; letter-spacing: -0.025em;
  margin: 14px 0 12px; font-weight: 700;
  color: var(--ink-1);
}
body.home-body .h-sec-head p {
  color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0;
}

/* ─── Why grid (4 pillars) ────────────────────────────── */
body.home-body .h-why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
body.home-body .h-why-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all .2s;
  position: relative; overflow: hidden;
}
body.home-body .h-why-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
body.home-body .h-why-card .icn {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
body.home-body .h-why-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin: 0 0 8px; letter-spacing: -0.01em;
  color: var(--ink-1);
}
body.home-body .h-why-card p {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0;
}

/* ─── Audience strip (Chi/Cosa/Perché) ────────────────── */
body.home-body .h-who-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
body.home-body .h-who-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
body.home-body .h-who-card {
  background: white; border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
body.home-body .h-who-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 14px; letter-spacing: 0.05em;
  color: var(--brand-purple);
  display: inline-flex; align-items: center; gap: 8px;
}
body.home-body .h-who-num::before {
  content: ""; width: 24px; height: 1.5px; background: var(--brand-gradient);
}
body.home-body .h-who-card h3 {
  font-family: var(--font-display); font-size: 22px;
  margin: 0; letter-spacing: -0.02em; font-weight: 700;
  color: var(--ink-1);
}
body.home-body .h-who-card p {
  font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0;
}

/* ─── How it works ────────────────────────────────────── */
body.home-body .h-how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  position: relative;
}
body.home-body .h-how-step {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  position: relative;
}
body.home-body .h-how-step .num {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--brand-gradient); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(233,75,124,0.2);
}
body.home-body .h-how-step h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  margin: 0 0 8px; letter-spacing: -0.01em;
  color: var(--ink-1);
}
body.home-body .h-how-step p {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 14px;
}
body.home-body .h-how-step .preview {
  height: 80px; border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
body.home-body .h-how-step .pv-row { display: flex; align-items: center; gap: 8px; }
body.home-body .h-how-step .pv-tile {
  width: 18px; height: 18px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.home-body .h-how-step .pv-line {
  flex: 1; height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--border-strong) 0%, transparent 100%);
}

/* ─── HITL ────────────────────────────────────────────── */
body.home-body .h-hitl {
  background: var(--ink-1); color: white;
  border-radius: 24px; padding: 56px 48px;
  position: relative; overflow: hidden;
}
body.home-body .h-hitl::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: var(--brand-gradient);
  filter: blur(80px); opacity: 0.35;
}
body.home-body .h-hitl-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
body.home-body .h-hitl h2 {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15;
  margin: 14px 0 16px;
  color: white;
}
body.home-body .h-hitl p {
  font-size: 15px; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin: 0;
}
body.home-body .h-hitl .h-eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
body.home-body .h-hitl-loop {
  position: relative;
  aspect-ratio: 1; max-width: 380px; margin: 0 auto;
  width: 100%;
}
body.home-body .h-loop-circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.2);
}
body.home-body .h-loop-node {
  position: absolute;
  width: 110px; padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-align: center;
}
body.home-body .h-loop-node .ticn {
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
body.home-body .h-loop-node .lbl {
  font-size: 11px; font-weight: 600; color: white;
}
body.home-body .h-loop-node .sub {
  font-size: 9.5px; color: rgba(255,255,255,0.55);
  margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase;
}
body.home-body .h-loop-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
body.home-body .h-loop-node.n2 { bottom: 8%; left: 0; }
body.home-body .h-loop-node.n3 { bottom: 8%; right: 0; }
body.home-body .h-loop-arc { position: absolute; inset: 0; pointer-events: none; }

/* ─── Pricing ─────────────────────────────────────────── */
body.home-body .h-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
body.home-body .h-price-card {
  background: white; border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
}
body.home-body .h-price-card.featured {
  background: linear-gradient(180deg, #fef3e6 0%, #ece6f7 100%);
  border-color: color-mix(in oklab, var(--brand-purple) 14%, white);
}
body.home-body .h-price-card .tier {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
body.home-body .h-price-card.featured .tier {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.home-body .h-price-card .price {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  letter-spacing: -0.025em; margin: 6px 0;
  color: var(--ink-1);
}
body.home-body .h-price-card .price small {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
}
body.home-body .h-price-card .desc {
  font-size: 13.5px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.5;
}
body.home-body .h-price-card ul {
  margin: 0 0 22px; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
body.home-body .h-price-card li {
  font-size: 13.5px; color: var(--ink-1);
  display: flex; gap: 10px; align-items: flex-start;
}
body.home-body .h-price-card li svg {
  color: var(--green); flex-shrink: 0; margin-top: 2px;
}
body.home-body .h-price-card .cta { margin-top: auto; }
body.home-body .h-price-badge {
  position: absolute; top: -10px; right: 22px;
  background: var(--ink-1); color: white;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px;
}

/* ─── Studio (Business plan) ──────────────────────────── */
body.home-body .h-studio {
  background: white; border: 1px solid var(--border);
  border-radius: 24px; padding: 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
body.home-body .h-studio h2 {
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  letter-spacing: -0.022em; margin: 12px 0 14px; line-height: 1.15;
  color: var(--ink-1);
}
body.home-body .h-studio p {
  font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0 0 22px;
}
body.home-body .h-studio-feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px;
}
body.home-body .h-studio-feat {
  display: flex; gap: 10px; align-items: center;
  font-size: 13.5px; color: var(--ink-1);
}
body.home-body .h-studio-feat .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-purple);
}
body.home-body .h-studio-visual {
  aspect-ratio: 1.1/1; border-radius: 18px;
  background: linear-gradient(135deg, #f3f0fb 0%, #fdeaf1 100%);
  position: relative; overflow: hidden; padding: 28px;
}
body.home-body .h-studio-chart {
  position: absolute; inset: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
body.home-body .h-studio-chart .line {
  flex: 1; background: white; border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
body.home-body .h-studio-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 60px;
}
body.home-body .h-studio-bars > span {
  flex: 1; background: var(--brand-gradient);
  border-radius: 3px 3px 0 0; opacity: 0.9;
}
body.home-body .h-studio-meta {
  font-size: 11px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}

/* ─── Final CTA ───────────────────────────────────────── */
body.home-body .h-final-cta {
  text-align: center;
  padding: 80px 32px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-radius: 24px;
  border: 1px solid var(--border);
}
body.home-body .h-final-cta h2 {
  font-family: var(--font-display); font-size: 44px; font-weight: 700;
  letter-spacing: -0.025em; margin: 0 0 16px; line-height: 1.1;
  color: var(--ink-1);
}
body.home-body .h-final-cta p {
  font-size: 17px; color: var(--ink-2); margin: 0 0 28px;
}
body.home-body .h-final-cta .h-hero-cta { justify-content: center; }

/* ─── Footer ──────────────────────────────────────────── */
body.home-body .h-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: white;
  margin-top: 80px;
}
body.home-body .h-foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
}
body.home-body .h-foot-col h4 {
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 14px;
}
body.home-body .h-foot-col a {
  display: block; padding: 5px 0;
  color: var(--ink-2); text-decoration: none; font-size: 13.5px;
}
body.home-body .h-foot-col a:hover { color: var(--ink-1); }
body.home-body .h-foot-tag {
  color: var(--ink-3); font-size: 13px; line-height: 1.55;
  margin: 12px 0 16px; max-width: 280px;
}
body.home-body .h-foot-quote {
  font-style: italic; color: var(--ink-3);
  font-size: 13px; line-height: 1.5;
  padding-left: 14px; border-left: 2px solid var(--brand-purple);
  margin: 16px 0 0;
}
body.home-body .h-foot-bot {
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}
body.home-body .h-foot-bot ul.list-inline {
  display: flex; gap: 12px; list-style: none; margin: 0; padding: 0;
}
body.home-body .h-foot-bot ul.list-inline a { color: var(--ink-3); }
body.home-body .h-foot-bot ul.list-inline a:hover { color: var(--ink-1); }

/* ─── InfoModal restyle (light touch) ─────────────────── */
body.home-body .modal.custom-modal .modal-content {
  border-radius: 18px;
  border: 1px solid var(--border);
}
body.home-body .modal.custom-modal .modal-header {
  background-color: var(--surface);
  color: var(--ink-1);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
body.home-body .modal.custom-modal .modal-title {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink-1);
}
/* Reset btn-close: lo styles.css globale lo invertiva (icona bianca) per
   l'header viola; con header bianco serve l'icona scura nativa di Bootstrap. */
body.home-body .modal.custom-modal .modal-header .btn-close {
  filter: none;
  opacity: 0.6;
}
body.home-body .modal.custom-modal .modal-header .btn-close:hover {
  filter: none;
  opacity: 1;
}
body.home-body .modal.custom-modal .modal-body { padding: 22px 24px 24px; }
body.home-body .modal.custom-modal .form-control {
  border-radius: 10px; border: 1px solid var(--border-strong);
  font-family: var(--font-body); font-size: 14px;
  padding: 10px 12px;
}
body.home-body .modal.custom-modal .form-control:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(107, 79, 187, 0.12);
}
body.home-body .modal.custom-modal .form-label {
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px; color: var(--ink-2); margin-bottom: 6px;
}
body.home-body .modal.custom-modal .btn-primary {
  background: var(--brand-gradient); border: 0; color: white;
  border-radius: 10px; font-weight: 600;
  padding: 10px 22px;
  box-shadow: 0 4px 12px rgba(233, 75, 124, 0.25);
}
body.home-body .modal.custom-modal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 75, 124, 0.32);
}

/* Cookie warnings preserved (light visual) */
body.home-body .cookie-warning {
  background: var(--amber-50);
  border: 1px solid color-mix(in oklab, var(--amber) 25%, white);
  color: #92400e;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity .5s;
}

/* ─── Chat widget (CRCopilot floating bubble) ─────────
   Created at runtime by setChatBot() in static/js/index-page.js with
   inline styles + classes (.chat-widget-container, .chat-icon,
   .chat-iframe-container, .chat-header, ...).
   index-styles.css gives them !important `--bs-primary` colors —
   we re-override with the brand gradient under body.home-body. */
body.home-body #chatWidget.chat-widget-container {
  z-index: 1050 !important;
  font-family: var(--font-body) !important;
}
body.home-body #chatIcon {
  background: var(--brand-gradient) !important;
  box-shadow: 0 8px 22px rgba(233, 75, 124, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
body.home-body #chatIcon:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 12px 28px rgba(233, 75, 124, 0.42) !important;
}
body.home-body .chat-icon-inner {
  font-family: var(--font-body) !important;
}
body.home-body #chatIframeContainer {
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden !important;
}
body.home-body #chatIframeContainer .chat-header {
  background: var(--brand-gradient) !important;
  padding: 12px 16px !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.01em !important;
  border-radius: 0 !important;
}
body.home-body #chatIframeContainer .chat-header-icon,
body.home-body #chatIframeContainer .chat-header .bi-robot {
  font-size: 16px !important;
  margin-right: 8px !important;
}
body.home-body #chatIframeContainer .chat-header-btn {
  border-radius: 6px !important;
  padding: 4px 8px !important;
  transition: background 0.12s ease !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
body.home-body #chatIframeContainer .chat-header-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}
body.home-body #chatIframeContainer .chat-iframe {
  border-radius: 0 0 16px 16px !important;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  body.home-body .h-hero-grid,
  body.home-body .h-hitl-grid,
  body.home-body .h-studio { grid-template-columns: 1fr; gap: 36px; }
  body.home-body .h-why-grid { grid-template-columns: repeat(2, 1fr); }
  body.home-body .h-who-grid,
  body.home-body .h-how-grid,
  body.home-body .h-pricing-grid { grid-template-columns: 1fr; }
  body.home-body .h-foot-grid { grid-template-columns: 1fr 1fr; }
  body.home-body .h-hero h1 { font-size: 42px; }
  body.home-body .h-nav-links { display: none; }
  body.home-body .h-final-cta h2 { font-size: 32px; }
  body.home-body .h-sec-head h2 { font-size: 30px; }
  body.home-body .h-studio { padding: 32px; }
  body.home-body .h-hitl { padding: 40px 28px; }
  body.home-body .h-topbar-inner { padding: 12px 20px; }
  body.home-body .h-wrap { padding: 0 20px; }
}
@media (max-width: 600px) {
  body.home-body .h-why-grid { grid-template-columns: 1fr; }
  body.home-body .h-foot-grid { grid-template-columns: 1fr; }
  body.home-body .h-hero h1 { font-size: 34px; }
  body.home-body .h-section { padding: 56px 0; }
  body.home-body .h-hero { padding: 32px 0 48px; }
  body.home-body .h-hero-visual { display: none; }
  body.home-body .h-foot-bot { flex-direction: column; align-items: flex-start; }

  /* CTA group: centered + each button full-width-ish for mobile finger taps.
     Applies both to the hero (.h-hero-cta) and to inline groups inside the
     Studio section + Final CTA which reuse the same .h-hero-cta wrapper. */
  body.home-body .h-hero-cta {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
  }
  body.home-body .h-hero-cta > .h-btn,
  body.home-body .h-hero-cta > a.h-btn,
  body.home-body .h-hero-cta > button.h-btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero meta (3 check items) — stack and align with the CTAs */
  body.home-body .h-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Topbar brand: keep "Adeguati Assetti" only on tiny screens
     ("· by CRModel" is hidden so it doesn't wrap to 2-3 lines next
     to the brand mark + nav actions). */
  body.home-body .h-brand-text small { display: none; }
}
