/* VSA Consulting FZE — design system
   Palette: deep navy + warm gold on ivory. Typography: Cormorant Garamond (display) + Manrope (text). */

:root {
  --navy: #0a1b2e;
  --navy-2: #12283f;
  --navy-3: #1c3a58;
  --gold: #c6a15b;
  --gold-2: #e3c78a;
  --gold-soft: rgba(198, 161, 91, 0.16);
  --ivory: #f6f3ec;
  --ivory-2: #efeae0;
  --white: #ffffff;
  --ink: #14202b;
  --slate: #56677a;
  --mist: #8d9aa8;
  --line: #e2dccf;
  --line-dark: rgba(255, 255, 255, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-text: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(10, 27, 46, 0.12);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.container > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.muted { color: var(--slate); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 27, 46, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-text); font-size: 0.62rem; letter-spacing: 0.32em; font-weight: 600; color: var(--gold-2); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255,255,255,.78); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--gold-2); }
.nav .btn { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: var(--white); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(1200px 600px at 85% -10%, #24466a 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #1b3552 0%, transparent 60%),
              var(--navy);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 64px 64px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: var(--white); margin: 22px 0 22px; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .lead { color: rgba(255,255,255,.76); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.hero-visual .panel {
  position: absolute; border-radius: 22px; border: 1px solid rgba(227,199,138,.28);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-visual .p1 { inset: 10% 8% 30% 18%; }
.hero-visual .p2 { inset: 26% 0 12% 34%; border-color: rgba(227,199,138,.5); }
.hero-visual .glow { position: absolute; inset: 18% 6% 0 14%; border-radius: 50% 50% 22px 22px; background: radial-gradient(60% 60% at 50% 40%, rgba(198,161,91,.35), rgba(198,161,91,0) 70%); }
.hero-visual .photo {
  position: absolute; left: 4%; bottom: 0; width: 92%; height: auto; z-index: 1;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
.hero-visual .stat { z-index: 2; }
.hero-visual .stat {
  position: absolute; padding: 14px 18px; border-radius: 14px; background: var(--white); color: var(--navy);
  box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 600;
}
.hero-visual .stat span { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.hero-visual .s1 { left: 0; top: 18%; }
.hero-visual .s2 { right: 0; bottom: 8%; }

/* Trust strip */
.strip { background: var(--navy-2); color: rgba(255,255,255,.75); border-top: 1px solid var(--line-dark); }
.strip .container { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }
.strip span::before { content: "◆"; color: var(--gold); font-size: 0.6rem; margin-right: 10px; vertical-align: middle; }

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin: 18px 0 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 0; }

/* About */
.about-card {
  background: var(--white); border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-card h3 { margin-bottom: 10px; }
.about-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.about-card li { display: flex; gap: 14px; align-items: flex-start; color: var(--slate); }
.about-card li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--gold); }

/* Expertise grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(198,161,91,.55); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; margin-bottom: 22px; color: var(--navy); }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--slate); margin: 0; font-size: 0.98rem; }

/* Approach */
.dark { background: var(--navy); color: var(--white); }
.dark .section-head p, .dark .lead { color: rgba(255,255,255,.72); }
.dark h2, .dark h3 { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 34px 30px 30px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-2); line-height: 1; display: block; margin-bottom: 16px; }
.step p { color: rgba(255,255,255,.7); margin: 8px 0 0; font-size: 0.98rem; }

/* Founder */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--navy-3), var(--navy)); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold-2);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.archive { margin: 18px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; }
.archive img { width: 100%; height: auto; }
.archive figcaption { font-size: 0.82rem; color: var(--slate); margin-top: 8px; line-height: 1.5; }
.portrait .caption { position: absolute; left: 22px; right: 22px; bottom: 22px; background: rgba(255,255,255,.96); color: var(--navy); border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; }
.portrait .caption strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.founder-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.fact { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font-size: 0.95rem; }
.fact strong { display: block; color: var(--navy); margin-bottom: 4px; }
blockquote { margin: 26px 0 0; padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--navy); }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { padding: 28px 24px; border-top: 2px solid var(--gold); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.value h3 { font-size: 1.3rem; margin-bottom: 8px; }
.value p { color: var(--slate); margin: 0; font-size: 0.95rem; }

/* Contact */
.contact { background: var(--ivory-2); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; margin-top: 24px; }
.contact-info div { padding: 18px 20px; background: var(--white); border-radius: 14px; border: 1px solid var(--line); }
.contact-info strong { display: block; font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-info a:hover { color: var(--gold); }
form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory);
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--mist); margin: 14px 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 64px 0 28px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { font-family: var(--font-text); font-size: 0.78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer p { font-size: 0.93rem; margin: 0 0 8px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.footer-company { font-size: 0.9rem; line-height: 1.75; }
.footer-company strong { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; padding-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,.5); }

/* Legal pages */
.legal-hero { background: var(--navy); color: var(--white); padding: 72px 0 56px; }
.legal-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 18px; }
.legal-hero p { color: rgba(255,255,255,.7); margin: 12px 0 0; }
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--slate); font-size: 1rem; }
.legal ul { padding-left: 22px; }
.legal .box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 32px; color: var(--ink); }
.legal .box p { color: var(--ink); margin: 0 0 6px; }

/* Reveal */
/* Solo con JS attivo (classe js sul body) gli elementi partono nascosti */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; padding: 72px 0 80px; }
  /* width esplicita: in una griglia, margin auto da solo farebbe collassare
     l'elemento (ha solo figli assoluti) a larghezza zero */
  .hero-visual { width: 100%; max-width: 460px; margin: 0 auto; }
  .grid-3, .steps, .values { grid-template-columns: 1fr 1fr; }
  .split, .founder, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-dark); padding: 10px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .steps, .values, .form-row, .founder-facts, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .stat { display: none; }
  form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
