/* =============================================================
   RADAR-HOME.CSS — Home pubblica del Radar (magnete aste, freemium)
   Identità "Casa d'Aste": crema / bordeaux / oro · Fraunces + Hanken Grotesk.
   Tono: strumento proptech serio. Niente stilemi guru.
   Token coerenti con home.css (affiliazione, ora /npl-expert).
   ============================================================= */
:root {
  --rh-bg: #FFFFFF;
  --rh-bg-2: #F7F3EC;
  --rh-bg-3: #EFE9DD;
  --rh-bg-dark: #2A2520;
  --rh-text: #1A1714;
  --rh-text-2: #5A4F45;
  --rh-text-dim: #9A8F80;
  --rh-text-light: #E8E0D5;
  --rh-border: #E4DCCD;
  --rh-border-2: #D4C9B7;
  --rh-bord: #6B2C39;          /* accento primario bordeaux */
  --rh-bord-dark: #531F2A;
  --rh-bord-light: #F2E7E5;
  --rh-gold: #9A7B3F;
  --rh-amber: #BA7517;         /* layer pre-asta */
  --rh-blue: #2C5B8A;          /* layer mercato libero */
  --rh-green: #1D7D52;         /* segnale positivo / sconto */
  --rh-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --rh-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --rh-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --rh-radius: 10px;
  --rh-radius-lg: 16px;
  --rh-shadow-sm: 0 2px 10px rgba(42,37,32,0.05);
  --rh-shadow: 0 10px 36px rgba(42,37,32,0.09);
  --rh-t: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rh-sans);
  color: var(--rh-text);
  background: var(--rh-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.rh-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Bottoni ---------- */
.rh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rh-sans); font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: var(--rh-radius);
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s var(--rh-t);
  white-space: nowrap; line-height: 1;
}
.rh-btn-primary { background: var(--rh-bord); color: #fff; }
.rh-btn-primary:hover { background: var(--rh-bord-dark); transform: translateY(-1px); }
.rh-btn-outline { background: transparent; color: var(--rh-text); border-color: var(--rh-border-2); }
.rh-btn-outline:hover { border-color: var(--rh-bord); color: var(--rh-bord); }
.rh-btn-ghost { background: transparent; color: var(--rh-text-2); padding: 10px 14px; }
.rh-btn-ghost:hover { color: var(--rh-bord); }
.rh-btn-lg { font-size: 16px; padding: 15px 28px; }
.rh-btn-full { width: 100%; justify-content: center; }

/* ---------- Header sticky ---------- */
.rh-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rh-border);
}
.rh-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.rh-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.rh-brand i { color: var(--rh-bord); font-size: 24px; }
.rh-brand img { height: 30px; width: 30px; display: block; }
.rh-brand .rh-word { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--rh-bord); }
.rh-brand .rh-brand-accent { color: #9A7B3F; font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.rh-nav { display: flex; align-items: center; gap: 26px; }
.rh-nav a { font-size: 14.5px; color: var(--rh-text-2); font-weight: 500; transition: color .2s; }
.rh-nav a:hover { color: var(--rh-bord); }
.rh-header-cta { display: flex; align-items: center; gap: 10px; }
.rh-burger { display: none; background: none; border: none; font-size: 26px; color: var(--rh-text); cursor: pointer; }

/* ---------- Hero ---------- */
.rh-hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--rh-bg-2) 100%); padding: 64px 0 56px; }
.rh-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.rh-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--rh-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rh-bord); font-weight: 500; margin-bottom: 18px;
}
.rh-kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--rh-bord); }
.rh-h1 { font-family: var(--rh-serif); font-size: 46px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--rh-text); }
.rh-h1 em { font-style: italic; color: var(--rh-bord); }
.rh-lede { font-size: 18px; color: var(--rh-text-2); line-height: 1.6; margin: 22px 0 28px; max-width: 30em; }
.rh-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.rh-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.rh-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--rh-text-2);
  border: 1px solid var(--rh-border); background: #fff; border-radius: 999px; padding: 6px 13px;
}
.rh-trust i { color: var(--rh-green); font-size: 15px; }

/* ---------- Hero map (placeholder; sostituibile con screenshot reale del prodotto) ---------- */
.rh-map { position: relative; z-index: 1; height: 380px; background: var(--rh-bg); border: 1px solid var(--rh-border); border-radius: var(--rh-radius-lg); box-shadow: var(--rh-shadow); overflow: hidden; }
.rh-map-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--rh-border) 1px, transparent 1px), linear-gradient(90deg, var(--rh-border) 1px, transparent 1px); background-size: 34px 34px; opacity: .45; }
.rh-mk { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.rh-mk.aste { background: var(--rh-bord); }
.rh-mk.pre { background: var(--rh-amber); }
.rh-mk.lib { background: var(--rh-blue); }
.rh-map-legend { position: absolute; top: 14px; left: 14px; display: flex; gap: 14px; background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius); padding: 8px 12px; box-shadow: var(--rh-shadow-sm); }
.rh-leg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rh-text-2); }
.rh-leg b { width: 10px; height: 10px; border-radius: 50%; }
.rh-map-badge { position: absolute; bottom: 14px; right: 14px; background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius); padding: 10px 13px; font-size: 12px; color: var(--rh-text-2); box-shadow: var(--rh-shadow-sm); line-height: 1.5; }
.rh-map-badge b { color: var(--rh-text); font-weight: 600; }
.rh-map-badge .disc { color: var(--rh-green); font-weight: 600; }
/* mappa interattiva Leaflet (hero) */
.rh-map-canvas { position: absolute; inset: 0; z-index: 1; border-radius: var(--rh-radius-lg); }
.rh-map .rh-map-legend { z-index: 1000; pointer-events: none; }
.rh-map-note { position: absolute; bottom: 14px; left: 14px; z-index: 1000; pointer-events: none; background: rgba(255,255,255,.94); border: 1px solid var(--rh-border); border-radius: var(--rh-radius); padding: 7px 11px; font-size: 11px; color: var(--rh-text-2); box-shadow: var(--rh-shadow-sm); }
.rh-map .leaflet-control-zoom { z-index: 1000; border: none; box-shadow: var(--rh-shadow-sm); }
.rh-map .leaflet-control-zoom a { color: var(--rh-text-2); }
.rh-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.7); }
.rh-map .leaflet-popup-content-wrapper { border-radius: var(--rh-radius); box-shadow: var(--rh-shadow); }
.rh-map .leaflet-popup-content { font-family: var(--rh-sans); margin: 12px 14px; line-height: 1.4; }
.rh-pop b { display: block; font-family: var(--rh-serif); font-size: 15px; font-weight: 600; color: var(--rh-text); }
.rh-pop span { display: block; color: var(--rh-text-2); font-size: 13px; margin: 2px 0 9px; }
.rh-pop a { color: var(--rh-bord); font-weight: 600; font-size: 13px; }

/* ---------- Barra numeri ---------- */
.rh-statbar-wrap { background: var(--rh-bg); border-top: 1px solid var(--rh-border); border-bottom: 1px solid var(--rh-border); }
.rh-stat-label { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-text-dim); padding: 14px 0 2px; }
.rh-statbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rh-border); }
.rh-stat { padding: 16px 22px 18px; background: var(--rh-bg); }
.rh-stat-value { font-family: var(--rh-serif); font-size: 30px; font-weight: 600; color: var(--rh-text); letter-spacing: -.01em; }
.rh-stat-unit { font-size: 13px; color: var(--rh-text-2); margin-top: 2px; }

/* ---------- Sezioni generiche ---------- */
.rh-section { padding: 64px 0; }
.rh-section.alt { background: var(--rh-bg-2); }
.rh-tag { font-family: var(--rh-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--rh-bord); font-weight: 500; margin-bottom: 12px; }
.rh-h2 { font-family: var(--rh-serif); font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--rh-text); }
.rh-intro { font-size: 17px; color: var(--rh-text-2); max-width: 46em; margin-top: 14px; }

/* ---------- Tre layer ---------- */
.rh-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.rh-layer { background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-lg); padding: 26px; box-shadow: var(--rh-shadow-sm); border-top: 4px solid var(--rh-border-2); }
.rh-layer.aste { border-top-color: var(--rh-bord); }
.rh-layer.pre { border-top-color: var(--rh-amber); }
.rh-layer.lib { border-top-color: var(--rh-blue); }
.rh-layer h3 { font-family: var(--rh-serif); font-size: 22px; font-weight: 600; }
.rh-layer .sub { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-text-dim); margin: 4px 0 14px; }
.rh-layer p { font-size: 15px; color: var(--rh-text-2); }
.rh-layer .note { font-size: 13px; color: var(--rh-text-dim); border-top: 1px solid var(--rh-border); margin-top: 14px; padding-top: 12px; line-height: 1.5; }
.rh-layer .note i { color: var(--rh-amber); }

/* ---------- Pilastri ---------- */
.rh-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; margin-top: 36px; }
@media (max-width: 980px) { .rh-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rh-pillars { grid-template-columns: 1fr; } }
.rh-pillars-cta { text-align: center; margin-top: 42px; }
.rh-pillars-cta-micro { font-family: var(--rh-mono); font-size: 12px; color: var(--rh-text-dim); margin-top: 12px; }
.rh-pillar i { font-size: 30px; color: var(--rh-bord); }
.rh-pillar h3 { font-family: var(--rh-serif); font-size: 21px; font-weight: 600; margin: 12px 0 8px; }
.rh-pillar p { font-size: 15px; color: var(--rh-text-2); }

/* ---------- Prezzi ---------- */
.rh-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: start; }
.rh-plan { background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-lg); padding: 28px; box-shadow: var(--rh-shadow-sm); position: relative; }
.rh-plan.featured { border: 2px solid var(--rh-bord); }
.rh-plan-badge { position: absolute; top: -12px; left: 28px; background: var(--rh-bord); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.rh-plan-name { font-weight: 700; font-size: 17px; }
.rh-plan-tag { font-size: 12px; color: var(--rh-text-dim); }
.rh-plan-price { font-family: var(--rh-serif); font-size: 38px; font-weight: 600; margin: 12px 0 4px; letter-spacing: -.01em; }
.rh-plan-price small { font-size: 15px; color: var(--rh-text-2); font-family: var(--rh-sans); font-weight: 400; }
.rh-plan-price.req { font-size: 26px; }
.rh-plan p.rh-plan-desc { font-size: 14px; color: var(--rh-text-2); margin: 6px 0 18px; min-height: 42px; }
.rh-plan-list { list-style: none; margin: 0 0 20px; }
.rh-plan-list li { font-size: 13.5px; color: var(--rh-text-2); padding: 5px 0 5px 22px; position: relative; }
.rh-plan-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--rh-green); font-weight: 700; }
.rh-plan-list li strong { font-weight: 600; color: var(--rh-text); }
.rh-plan-list .rh-tok { color: var(--rh-text-dim); font-weight: 400; }

/* ---------- Oltre la ricerca ---------- */
.rh-oltre { background: var(--rh-bg-3); border-radius: var(--rh-radius-lg); padding: 36px; }
.rh-oltre h2 { font-family: var(--rh-serif); font-size: 26px; font-weight: 600; }
.rh-oltre p.lead { font-size: 16px; color: var(--rh-text-2); margin: 8px 0 22px; max-width: 44em; }
.rh-oltre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rh-path { display: block; background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius); padding: 22px; transition: all .2s var(--rh-t); }
.rh-path:hover { border-color: var(--rh-bord); transform: translateY(-2px); box-shadow: var(--rh-shadow-sm); }
.rh-path h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rh-path h3 i { color: var(--rh-bord); transition: transform .2s; }
.rh-path:hover h3 i { transform: translateX(4px); }
.rh-path p { font-size: 14px; color: var(--rh-text-2); margin-top: 6px; }
.rh-oltre-foot { font-size: 13px; color: var(--rh-text-dim); margin-top: 18px; }

/* ---------- FAQ ---------- */
.rh-faq { max-width: 760px; margin: 32px auto 0; }
.rh-faq details { border-bottom: 1px solid var(--rh-border); padding: 6px 0; }
.rh-faq summary { font-size: 17px; font-weight: 600; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rh-faq summary::-webkit-details-marker { display: none; }
.rh-faq summary::after { content: "\002B"; color: var(--rh-bord); font-size: 22px; font-weight: 400; }
.rh-faq details[open] summary::after { content: "\2212"; }
.rh-faq p { font-size: 15px; color: var(--rh-text-2); padding: 0 0 18px; max-width: 64em; }

/* ---------- Compliance ---------- */
.rh-compliance { background: var(--rh-bg-2); border-top: 1px solid var(--rh-border); }
.rh-compliance .rh-container { padding-top: 22px; padding-bottom: 22px; }
.rh-compliance p { font-size: 12.5px; color: var(--rh-text-dim); line-height: 1.6; }
.rh-compliance b { color: var(--rh-text-2); font-weight: 600; }

/* ---------- Footer ---------- */
.rh-footer { background: var(--rh-bg-dark); color: var(--rh-text-light); padding: 48px 0 28px; }
.rh-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rh-footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.rh-footer-brand i { color: var(--rh-gold); font-size: 24px; }
.rh-footer-tag { font-size: 14px; color: var(--rh-text-dim); margin-top: 12px; max-width: 30em; }
.rh-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--rh-text-dim); margin-bottom: 12px; font-weight: 600; }
.rh-footer ul { list-style: none; }
.rh-footer ul li { margin-bottom: 8px; }
.rh-footer ul a { font-size: 14px; color: var(--rh-text-light); }
.rh-footer ul a:hover { color: #fff; }
.rh-footer-bottom { padding-top: 20px; font-size: 12px; color: var(--rh-text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .rh-nav, .rh-header-cta .rh-btn-ghost, .rh-header-cta .rh-btn-outline { display: none; }
  .rh-burger { display: block; }
  .rh-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rh-h1 { font-size: 34px; }
  .rh-map { height: 300px; }
  .rh-statbar { grid-template-columns: repeat(2, 1fr); }
  .rh-layers, .rh-pricing, .rh-oltre-grid, .rh-footer-top { grid-template-columns: 1fr; }
  .rh-h2 { font-size: 27px; }
  .rh-section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .rh-container { padding: 0 18px; }
  .rh-h1 { font-size: 29px; }
  .rh-hero-ctas .rh-btn { width: 100%; justify-content: center; }
}

/* menu mobile aperto */
.rh-mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 18px; background: #fff; border-bottom: 1px solid var(--rh-border); }
.rh-mobile-nav.open { display: flex; }
.rh-mobile-nav a { padding: 10px 0; font-size: 16px; color: var(--rh-text); border-bottom: 1px solid var(--rh-border); }

/* ---------- Pagine percorso (investire-aste / operativita-crediti) ---------- */
.rh-percorso-hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--rh-bg-2) 100%); padding: 54px 0 46px; }
.rh-proof { display: flex; gap: 30px; flex-wrap: wrap; margin: 22px 0 26px; }
.rh-proof .n { font-family: var(--rh-serif); font-size: 27px; font-weight: 600; line-height: 1; }
.rh-proof .l { font-size: 13px; color: var(--rh-text-2); margin-top: 4px; }
.rh-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rh-caplist { list-style: none; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.rh-caplist li { font-size: 15px; color: var(--rh-text-2); padding-left: 30px; position: relative; line-height: 1.55; }
.rh-caplist li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--rh-bord); font-weight: 700; font-size: 16px; }
.rh-caplist li b { color: var(--rh-text); font-weight: 600; }
.rh-sep { background: var(--rh-bg-3); border-radius: var(--rh-radius); padding: 16px 20px; font-size: 14px; color: var(--rh-text-2); line-height: 1.55; }
.rh-sep b { color: var(--rh-text); font-weight: 600; }
.rh-disclaimer-box { font-size: 12.5px; color: var(--rh-text-dim); line-height: 1.6; }
.rh-disclaimer-box b { color: var(--rh-text-2); font-weight: 600; }
/* form lead */
.rh-form-card { background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-lg); padding: 28px; box-shadow: var(--rh-shadow); max-width: 580px; }
.rh-form-row { margin-bottom: 14px; }
.rh-form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rh-form-row input, .rh-form-row select, .rh-form-row textarea { width: 100%; font-family: var(--rh-sans); font-size: 15px; padding: 11px 13px; border: 1px solid var(--rh-border-2); border-radius: var(--rh-radius); background: var(--rh-bg); color: var(--rh-text); }
.rh-form-row input:focus, .rh-form-row select:focus, .rh-form-row textarea:focus { outline: none; border-color: var(--rh-bord); box-shadow: 0 0 0 3px rgba(107,44,57,0.12); }
.rh-form-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--rh-text-2); line-height: 1.5; margin: 4px 0 16px; }
.rh-form-consent input { margin-top: 3px; flex-shrink: 0; }
.rh-form-consent a { color: var(--rh-bord); }
.rh-form-feedback { font-size: 14px; min-height: 1px; margin-bottom: 10px; }
.rh-form-feedback.success { color: var(--rh-green); font-weight: 600; }
.rh-form-feedback.error { color: var(--rh-bord); font-weight: 600; }
@media (max-width: 720px) { .rh-caplist { grid-template-columns: 1fr; } }
