/*
  Arcalis Legal — ricostruzione statica (HTML/CSS/JS, no build step) del sito
  già live, portato 1:1 nei contenuti dal bundle React precedente (vedi
  archivio-bundle-react/index.html), con l'aggiunta di micro-interazioni
  (reveal on scroll, hover) per l'impatto visivo richiesto da Giacomo il
  2026-07-06 ("costruiteci il wow" sopra la base esistente, non al posto suo).
  Palette da brand/brand_kit_arcalis.md: navy dominante, oro generoso, teal
  minimo/di supporto per il verticale Legal.
*/
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #031E41;
  --navy-deep: #020F24;
  --navy-soft: rgba(255,255,255,0.06);
  --gold: #C6A85A;
  --gold-hover: #D4BC80;
  --teal: #0D7377;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FA;
  --border: #E5E7EB;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: #111827;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 72px; display: flex; align-items: center;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header .logo img { height: 34px; object-fit: contain; display: block; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-cta {
  padding: 9px 20px; background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: background 0.15s;
}
.header-cta:hover { background: var(--gold-hover); }

main { padding-top: 72px; }

/* ── Eyebrow (— LABEL —) ────────────────────────────────── */
.eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow-row.center { justify-content: center; }
.eyebrow-row .dash { color: var(--gold); }
.eyebrow-row .label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ── Hero (home) ────────────────────────────────────────── */
.hero {
  position: relative; background: var(--navy); padding: 148px 0 96px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(198,168,90,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: flex; gap: 48px; align-items: center; }
.hero-main { flex: 1; }
.hero h1 {
  font-family: var(--font-display); font-size: 58px; font-weight: 700; text-transform: uppercase;
  color: #fff; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 24px; max-width: 640px;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.75; max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.hero-actions .note { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; }
.hero-trust { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(198,168,90,0.2); padding-top: 28px; }
.hero-trust .item { display: flex; align-items: center; gap: 10px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-trust span.text { font-size: 14px; color: rgba(255,255,255,0.75); }

.hero-stat-card {
  flex-shrink: 0; width: 300px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(198,168,90,0.2); border-radius: 4px; padding: 28px;
}
.hero-stat-card .title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero-stat-card .rule { height: 1px; background: rgba(198,168,90,0.3); margin-bottom: 20px; }
.hero-stat-card .stat { margin-bottom: 20px; }
.hero-stat-card .num { font-family: var(--font-display); font-size: 38px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-card .label { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; margin-top: 3px; }
.hero-stat-card .source { font-size: 9px; color: rgba(255,255,255,0.25); line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 14px 32px; background: var(--gold); color: var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 2px; border: none; cursor: pointer; transition: background 0.15s;
}
.btn:hover { background: var(--gold-hover); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #042259; }
.btn-block { width: 100%; text-align: center; }

/* ── Section shells ─────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display); font-size: 44px; font-weight: 700; text-transform: uppercase;
  color: var(--navy); letter-spacing: -0.01em; line-height: 1.05; margin-bottom: 14px;
}
.section-head p { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ── Metodo (4 cards) ───────────────────────────────────── */
.metodo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metodo-card {
  background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 28px 24px;
  border-top: 3px solid var(--gold); transition: transform 0.2s, box-shadow 0.2s;
}
.metodo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(3,30,65,0.08); }
.metodo-card .area { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.metodo-card .body { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Servizi (aree) ─────────────────────────────────────── */
.aree-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.area-card {
  background: #fff; padding: 28px 24px; transition: all 200ms; border-top: 3px solid transparent;
}
.area-card:hover { background: #F9FAFB; border-top-color: var(--gold); }
.area-card .num { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.area-card .tag { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; color: var(--navy); line-height: 1.1; margin-bottom: 12px; }
.area-card .body { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Pacchetti ──────────────────────────────────────────── */
.pacchetti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pacchetto {
  background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 32px 28px;
  position: relative; transition: transform 0.2s, box-shadow 0.2s;
}
.pacchetto:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(3,30,65,0.10); }
.pacchetto.highlight { background: var(--navy); border-color: var(--navy); }
.pacchetto.highlight:hover { box-shadow: 0 16px 40px rgba(3,30,65,0.35); }
.badge-top {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 14px; border-radius: 2px; white-space: nowrap;
}
.pacchetto .name { font-family: var(--font-display); font-size: 32px; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.pacchetto.highlight .name { color: #fff; }
.pacchetto .subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; min-height: 60px; }
.pacchetto.highlight .subtitle { color: rgba(255,255,255,0.6); }
.pacchetto .rule { height: 1px; background: rgba(198,168,90,0.3); margin-bottom: 20px; }
.pacchetto .item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13px; }
.pacchetto .item .check { color: var(--navy); font-weight: 700; flex-shrink: 0; }
.pacchetto.highlight .item .check { color: var(--gold); }
.pacchetto .item .text { color: #374151; line-height: 1.5; }
.pacchetto.highlight .item .text { color: rgba(255,255,255,0.8); }
.pacchetto .ideale { font-size: 11px; color: var(--text-faint); line-height: 1.5; margin-top: 20px; border-top: 1px solid var(--bg-soft); padding-top: 14px; }
.pacchetto.highlight .ideale { color: rgba(255,255,255,0.4); border-top-color: rgba(198,168,90,0.2); }
.pacchetto .ideale strong { font-weight: 600; }
.pacchetto .btn { margin-top: 20px; }
.pacchetti-note { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 24px; line-height: 1.6; }

/* ── Garanzie ───────────────────────────────────────────── */
.garanzie-section { background: var(--navy); padding: 72px 0; }
.garanzie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.garanzia { display: flex; gap: 10px; align-items: flex-start; }
.garanzia .check-box {
  width: 20px; height: 20px; background: rgba(198,168,90,0.15); border: 1px solid rgba(198,168,90,0.3);
  border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.garanzia .check-box span { color: var(--gold); font-size: 11px; font-weight: 700; }
.garanzia .text { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.garanzie-cta { margin-top: 48px; text-align: center; }
.garanzie-cta .note { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* ── CTA banner (oro) ───────────────────────────────────── */
.cta-banner { background: var(--gold); padding: 72px 0; }
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-banner h3 { font-family: var(--font-display); font-size: 42px; font-weight: 700; text-transform: uppercase; color: var(--navy); line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px; }
.cta-banner p { font-size: 15px; color: rgba(3,30,65,0.65); line-height: 1.6; }
.cta-banner .btn { white-space: nowrap; flex-shrink: 0; padding: 16px 40px; }

/* ── Page hero (interne) ────────────────────────────────── */
.page-hero { background: var(--navy); padding: 148px 0 96px; }
.page-hero h1 {
  font-family: var(--font-display); font-size: 64px; font-weight: 700; text-transform: uppercase;
  color: #fff; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 24px;
}
.page-hero h1 .accent { color: var(--gold); }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.75; max-width: 560px; }

/* ── Chi siamo ──────────────────────────────────────────── */
.chi-siamo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.chi-siamo-grid h2 { font-family: var(--font-display); font-size: 40px; font-weight: 700; text-transform: uppercase; color: var(--navy); line-height: 1.05; margin-bottom: 32px; }
.metodo-step { display: flex; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--bg-soft); }
.metodo-step:last-child { border-bottom: none; }
.metodo-step .num-box {
  width: 32px; height: 32px; background: var(--navy); border-radius: 2px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.metodo-step .num-box span { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--gold); }
.metodo-step .title { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.metodo-step .body { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.valori-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.valore { background: #F9FAFB; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 4px; padding: 24px 20px; transition: transform 0.2s; }
.valore:hover { transform: translateY(-3px); }
.valore .num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: rgba(198,168,90,0.35); margin-bottom: 8px; }
.valore .title { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.valore .body { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ── Case study ─────────────────────────────────────────── */
.disclaimer-banner {
  background: rgba(198,168,90,0.08); border: 1px solid rgba(198,168,90,0.3); border-radius: 4px;
  padding: 16px 24px; margin-bottom: 40px; font-size: 13px; color: var(--navy); line-height: 1.6;
}
.disclaimer-banner strong { color: var(--gold); }
.case-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 4px; overflow: hidden; }
.case-row { background: #fff; padding: 40px 36px; display: grid; grid-template-columns: 200px 1fr 1fr; gap: 40px; align-items: center; }
.case-row .area { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.case-row .studio { font-size: 13px; color: var(--text-muted); }
.case-row .result { font-family: var(--font-display); font-size: 56px; font-weight: 700; color: var(--navy); line-height: 1; }
.case-row .metric { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.case-row .desc { font-size: 13px; color: #374151; line-height: 1.65; border-left: 1px solid rgba(198,168,90,0.3); padding-left: 32px; }

/* ── Blog ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 4px; overflow: hidden; }
.blog-card { background: #fff; padding: 32px 28px; cursor: pointer; border-top: 3px solid transparent; transition: all 150ms; }
.blog-card:hover { border-top-color: var(--gold); background: #F9FAFB; }
.blog-card .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.blog-card .cat { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(198,168,90,0.1); padding: 3px 8px; border-radius: 2px; }
.blog-card .date { font-size: 11px; color: var(--text-faint); }
.blog-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--navy); line-height: 1.15; margin-bottom: 10px; }
.blog-card .excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.blog-card .read { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

/* ── Contatti ───────────────────────────────────────────── */
.contatti-hero { background: var(--navy); min-height: 60vh; padding: 148px 0 96px; }
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contatti-grid h1 { font-family: var(--font-display); font-size: 52px; font-weight: 700; text-transform: uppercase; color: #fff; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 20px; }
.contatti-grid h1 .accent { color: var(--gold); }
.contatti-grid p.intro { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 40px; }
.contatti-list .item { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.contatti-list .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.contatti-list .text { font-size: 14px; color: rgba(255,255,255,0.7); }
.contatti-email { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(198,168,90,0.2); }
.contatti-email .label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 4px; letter-spacing: 0.08em; text-transform: uppercase; }
.contatti-email .value { font-size: 16px; color: var(--gold); }

.contact-form-card { background: #fff; border-radius: 4px; padding: 40px; box-shadow: 0 16px 64px rgba(3,30,65,0.4); }
.contact-form-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 24px; letter-spacing: -0.01em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 5px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 2px;
  font-family: var(--font-body); font-size: 14px; color: #111827; outline: none; resize: none;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.form-note { font-size: 11px; color: var(--text-faint); text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 32px 0; }
.form-success.show { display: block; }
.form-success h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.form-success p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); }
.footer-top-rule { height: 1px; background: rgba(198,168,90,0.35); }
.footer-cols { max-width: 1280px; margin: 0 auto; padding: 56px 48px 0; display: flex; gap: 48px; flex-wrap: wrap; }
.footer-brand { flex: 2; min-width: 240px; }
.footer-brand img { height: 34px; object-fit: contain; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-brand .email { font-size: 12px; color: var(--gold); }
.footer-col { flex: 1; min-width: 140px; }
.footer-col .title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0; padding: 24px 48px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom .copy { font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a { font-size: 11px; color: rgba(255,255,255,0.25); transition: color 0.15s; }
.footer-bottom .links a:hover { color: #fff; }

/* ── Legal doc (privacy/cookie policy) ──────────────────── */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc .updated { font-size: 13px; color: var(--text-faint); margin-bottom: 40px; }
.legal-doc h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700; text-transform: uppercase;
  color: var(--navy); margin-top: 40px; margin-bottom: 14px; letter-spacing: -0.01em;
}
.legal-doc h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 20px; margin-bottom: 8px; }
.legal-doc p { font-size: 14px; color: #374151; line-height: 1.75; margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 14px 20px; }
.legal-doc li { font-size: 14px; color: #374151; line-height: 1.75; margin-bottom: 6px; }
.legal-doc a { color: var(--teal); text-decoration: underline; }
.legal-doc .footer-note { font-size: 12px; color: var(--text-faint); border-top: 1px solid var(--border); margin-top: 40px; padding-top: 20px; }

/* ── Reveal on scroll ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero .wrap { flex-direction: column; }
  .hero h1 { font-size: 40px; }
  .hero-stat-card { width: 100%; }
  .metodo-grid, .aree-grid, .pacchetti-grid, .garanzie-grid, .blog-grid { grid-template-columns: 1fr; }
  .chi-siamo-grid, .valori-grid, .contatti-grid, .field-row { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; }
  .case-row .desc { border-left: none; padding-left: 0; }
  .cta-banner .wrap { flex-direction: column; text-align: center; }
  .site-header nav { display: none; }
  .page-hero h1, .contatti-grid h1 { font-size: 40px; }
}
