/* =========================================================
   MF Digital — LeadGenPro
   Palette: Arancione + Verde Acqua
   Stile: consulenza digitale moderna (clean, premium)
   ========================================================= */

:root{
  --bg: #F7FAFB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --line: rgba(15, 23, 42, .10);

  --orange: #FF6A00;
  --orange-2: #FF8A3D;

  --aqua: #16C7B7;
  --aqua-2: #60E3D6;

  --shadow: 0 18px 50px rgba(2, 6, 23, .08);
  --shadow-soft: 0 12px 30px rgba(2, 6, 23, .07);

  --radius-lg: 20px;
  --radius-md: 14px;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 12%, rgba(22,199,183,.20), transparent 55%),
    radial-gradient(900px 500px at 85% 18%, rgba(255,106,0,.18), transparent 55%),
    var(--bg);
  line-height: 1.5;
}

/* Layout */
header, section, footer{ padding: 34px 18px; }
.wrap{ max-width: var(--max); margin: 0 auto; }
.grid{ display:grid; gap: 18px; }
.grid-2{ grid-template-columns: 1fr; }
@media (min-width: 980px){
  .grid-2{ grid-template-columns: 1.25fr .85fr; align-items: start; }
}

/* Typography */
.h1{
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
  line-height: 1.05;
}
.lead{
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  margin: 0 0 14px;
}
.muted{ color: var(--muted); font-size: 14px; }
h2{ font-size: 22px; margin: 0 0 12px; letter-spacing:-0.01em; }
h3{ font-size: 16px; margin: 0 0 8px; }

/* Badges + Pills */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}
.badge::before{
  content:"";
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(135deg, var(--orange), var(--aqua));
}

.pillgrid{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 12px; }
.pill{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #0b1220;
}

/* Cards */
.card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.card.card-solid{
  background: var(--surface);
  backdrop-filter: none;
}

.hr{ height:1px; background: rgba(15,23,42,.10); margin: 18px 0; }

/* KPI blocks */
.kpis{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 980px){
  .kpis{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.kpi{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.70));
}
.kpi .v{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi .muted{ margin-top: 3px; }

/* Form */
form { margin-top: 10px; }
label{
  display:block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(15,23,42,.78);
  margin: 12px 0 6px;
}
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.90);
  outline: none;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
input::placeholder{ color: rgba(71,85,105,.65); }
input:focus, select:focus, textarea:focus{
  border-color: rgba(22,199,183,.60);
  box-shadow: 0 0 0 4px rgba(22,199,183,.20);
}
textarea{ resize: vertical; min-height: 96px; }

.row{ display:grid; gap: 10px; }
@media (min-width: 600px){
  .row-2{ grid-template-columns: 1fr 1fr; }
}

/* Primary CTA button */
.btn{
  width: 100%;
  border: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--aqua));
  box-shadow: 0 16px 40px rgba(255,106,0,.18), 0 10px 30px rgba(22,199,183,.18);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: saturate(1.04); }
.btn:active{ transform: translateY(0px); filter: saturate(1.0); }
.btn:disabled{ opacity: .65; cursor: not-allowed; }

/* Checkbox row */
.consent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 12px;
}
.consent input{ width: auto; margin-top: 3px; }

/* Details / FAQ */
details{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(2,6,23,.05);
}
details + details{ margin-top: 10px; }
summary{
  cursor: pointer;
  font-weight: 800;
  color: rgba(15,23,42,.90);
}
details p{ margin: 10px 0 0; }

.ok{ color: #0A7A2F; font-weight: 700; }
.err{ color: #B30000; font-weight: 700; }

/* Footer links */
a{ color: var(--text); }
a:hover{ color: var(--orange); }

/* Small tweak for hero spacing */
.hero{ padding-top: 46px; padding-bottom: 18px; }
