/* JMC Consulting — foglio di stile principale */
:root {
  --navy: #0f1b2d;
  --navy-2: #17263d;
  --ink: #1c2433;
  --muted: #5d6676;
  --line: #e4e0d6;
  --bg: #faf8f4;
  --card: #ffffff;
  --accent: #c4a265;
  --accent-dark: #9a7b42;
  --accent-soft: #f4ecdd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08);
  --max: 1160px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1b1305; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(15, 27, 45, .96); box-shadow: 0 4px 20px rgba(0,0,0,.15); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}
.logo-text { font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; line-height: 1.1; }
.logo-text small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 20px; color: #1b1305; }
.nav .nav-bro { display: inline-flex; align-items: center; gap: 6px; }
.nav .nav-bro span {
  font-size: .65rem; font-weight: 800; background: #2f6bff; color: #fff;
  padding: 2px 6px; border-radius: 6px; letter-spacing: .05em;
}
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(196,162,101,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(47,107,255,.12), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; color: rgba(255,255,255,.65); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--accent); }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-family: var(--font); font-size: 1rem; margin-bottom: 18px; opacity: .9; }
.metric { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.metric:first-of-type { border-top: 0; }
.metric-label { color: rgba(255,255,255,.7); font-size: .92rem; }
.metric-value { font-weight: 800; font-size: 1.05rem; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #e3cc9c); }
.metric-block { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.metric-block .row { display: flex; justify-content: space-between; font-size: .92rem; color: rgba(255,255,255,.8); }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 20px;
}
.service p { color: var(--muted); margin: 0; font-size: .98rem; }
.service ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink); }
.service li { padding-left: 20px; position: relative; margin-top: 6px; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--accent); }

/* Metodo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--accent);
  display: block; margin-bottom: 8px; line-height: 1;
}
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Banner Bro */
.bro-banner {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0a1a4a 0%, #1440c9 55%, #2f8bff 100%);
  color: #fff;
  padding: 56px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
}
.bro-banner::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,200,255,.45), transparent 65%);
}
.bro-banner h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.bro-banner p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 560px; }
.bro-banner .eyebrow { color: #9fd0ff; }
.bro-banner .btn-white { background: #fff; color: #0d2a8a; }
.bro-banner .btn-white:hover { background: #e6f0ff; }
.bro-chat { position: relative; z-index: 1; display: grid; gap: 10px; }
.bubble { padding: 12px 16px; border-radius: 16px; font-size: .92rem; max-width: 95%; line-height: 1.45; }
.bubble.user { background: rgba(255,255,255,.15); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.bot { background: #fff; color: #10225c; border-bottom-left-radius: 4px; }

/* Perché noi */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-list { display: grid; gap: 22px; }
.why-item { display: flex; gap: 18px; }
.why-item .icon { flex: none; margin: 0; width: 46px; height: 46px; }
.why-item p { color: var(--muted); margin: 0; font-size: .97rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.stat { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1.1; }
.stat span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* Contatti */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.contact-info p { color: var(--muted); }
.contact-line { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-weight: 600; }
.contact-line .icon { margin: 0; width: 44px; height: 44px; }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--accent-dark); }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid #d8d4ca; background: #fdfcfa; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(196,162,101,.18);
}
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: .95rem; font-weight: 600; min-height: 1em; }
.form-status.ok { color: #1d7a46; }
.form-status.err { color: #b4321f; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: .84rem; }

/* Pagine di testo (privacy) */
.page { padding: 150px 0 90px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }
.page p, .page li { color: #3b4454; }
.page-header { background: var(--navy); }

/* Animazioni */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .why, .contact, .bro-banner { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-card { max-width: 520px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 10px 24px 24px;
    display: none; box-shadow: 0 12px 24px rgba(0,0,0,.2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; border: 0; justify-content: center; }
  .site-header { background: rgba(15, 27, 45, .96); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 130px 0 80px; }
  .services, .steps, .stats { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .bro-banner { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Tipografia elegante (Cormorant Garamond + Jost) ===== */
body { font-weight: 400; font-size: 17.5px; line-height: 1.75; letter-spacing: .005em; }
h1, h2 { font-weight: 500; letter-spacing: 0; line-height: 1.08; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .005em; line-height: 1.2; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 4.8rem); font-weight: 500; }
.hero h1 em { font-weight: 500; }
.section-head h2, .why h2, .contact h2 { font-size: clamp(2.4rem, 4.6vw, 3.3rem) !important; }
.bro-banner h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.eyebrow { font-weight: 500; font-size: .76rem; letter-spacing: .28em; }
.btn { font-weight: 500; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px; padding: 16px 30px; }
.nav a { font-weight: 400; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.nav .btn { font-size: .76rem; padding: 11px 20px; }
.nav .nav-bro span { font-family: var(--font); letter-spacing: .08em; }
.logo-text { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; }
.logo-text small { font-family: var(--font); font-weight: 400; font-size: .62rem; letter-spacing: .32em; margin-top: 3px; }
.logo-mark { border-radius: 2px; font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
.hero .lead { font-weight: 300; font-size: 1.22rem; }
.hero-badges { font-weight: 300; letter-spacing: .02em; }
.hero-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.metric-value, .metric-block strong { font-weight: 500; }
.section-head p, .service p, .step p, .why-item p, .contact-info p { font-weight: 400; }
.service li { font-weight: 400; }
.step::before { font-size: 3rem; font-weight: 500; }
.step h3 { margin-top: 4px; }
.stat strong { font-size: 2.8rem; font-weight: 500; }
.field label { font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.field input, .field select, .field textarea { border-radius: 2px; font-weight: 400; }
.service, .form, .hero-card, .stat, .bro-banner { border-radius: 4px; }
.icon { border-radius: 50%; }
.contact-line { font-weight: 400; }
.site-footer h4 { font-weight: 500; letter-spacing: .26em; font-size: .74rem; }
.page h2 { font-size: 1.8rem; }
