/* ============================================================
   LA FORMATRICE CINICA — Gabriella Femia
   Style sheet condiviso. Bianco/nero, editoriale, anti-coach.
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --ink-2: #1f1f1f;
  --paper: #ffffff;
  --bone: #f6f4f0;
  --line: #1f1f1f;
  --line-soft: rgba(20, 20, 20, 0.12);
  --muted: #6b6b6b;
  --accent: #b8945a; /* oro tenue, usato con parsimonia */
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- typography ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(44px, 7.5vw, 112px); }
h2 { font-size: clamp(34px, 5vw, 68px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: #2a2a2a; }
em.italic { font-style: italic; font-family: var(--serif); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 96px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: rgba(255,255,255,0.55); }
.section--ink .lead { color: rgba(255,255,255,0.78); }
.section--bone { background: var(--bone); }

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.section--ink .divider { background: rgba(255,255,255,0.14); }

.row { display: grid; gap: clamp(24px, 4vw, 64px); }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: repeat(3, 1fr); }
.row--12-7 { grid-template-columns: 5fr 7fr; }
.row--7-5 { grid-template-columns: 7fr 5fr; }
@media (max-width: 880px) {
  .row--2, .row--3, .row--12-7, .row--7-5 { grid-template-columns: 1fr; }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 44px; height: 44px; border-radius: 0; background: transparent; object-fit: contain; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-text .b1 { font-family: var(--serif); font-size: 17px; letter-spacing: 0.02em; }
.brand-text .b2 { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; padding: 6px 0; color: var(--ink);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px;
  width: 0; background: var(--ink); transition: width 0.35s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { font-weight: 600; }

.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  padding: 12px 22px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; border: 1px solid var(--ink);
  transition: all 0.25s ease;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta .arrow { transition: transform 0.25s ease; }
.nav-cta:hover .arrow { transform: translateX(4px); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-cta { display: none; }
  .nav-links.is-open .nav-cta { display: inline-flex; }
  .burger { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; cursor: pointer; border: 1px solid var(--ink);
  transition: all 0.28s ease; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 500;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: clamp(60px, 8vw, 120px) 0 clamp(60px, 8vw, 100px);
  background: var(--paper);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(48px, 8vw, 124px); line-height: 0.95; }
.hero h1 .it { font-style: italic; color: var(--muted); }
.hero-sub { max-width: 460px; margin-top: 36px; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--serif); font-size: 36px; line-height: 1; }
.hero-meta span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.hero-portrait {
  position: relative; aspect-ratio: 4/5; background: var(--ink);
  overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
}
.hero-portrait .sig {
  position: absolute; left: 28px; bottom: 28px; right: 28px;
  color: var(--paper); font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.3; z-index: 2;
}

/* ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 64px; padding: 22px 0;
  animation: tick 38s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 26px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 64px; }
.ticker-track .dot { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; display: inline-block; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- card grids ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 880px) { .programs { grid-template-columns: 1fr; } }
.program-card {
  background: var(--paper); padding: 44px 36px; min-height: 460px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.4s ease, color 0.4s ease;
  cursor: pointer; position: relative;
}
.program-card:hover { background: var(--ink); color: var(--paper); }
.program-card:hover .pc-num { color: rgba(255,255,255,0.4); }
.program-card:hover .pc-arrow { transform: translateX(6px); }
.pc-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.pc-title { font-family: var(--serif); font-size: 32px; line-height: 1.05; margin: 18px 0 14px; }
.pc-desc { font-size: 15px; line-height: 1.55; opacity: 0.85; }
.pc-meta { display: flex; gap: 18px; margin-top: 28px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.program-card:hover .pc-meta { color: rgba(255,255,255,0.6); }
.pc-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 28px; }
.pc-arrow { transition: transform 0.3s ease; }

/* ---------- pillars / quote / split ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 880px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
.pillar { padding: 36px 28px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.pillar h4 { font-family: var(--serif); font-size: 22px; margin: 12px 0 10px; line-height: 1.15; }
.pillar p { font-size: 14px; color: var(--muted); }

.bigquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(34px, 5.2vw, 78px); line-height: 1.05; max-width: 14ch;
}
.bigquote--center { margin: 0 auto; text-align: center; max-width: 22ch; }
.attrib { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 32px; }

/* ---------- testimonial ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 880px) { .test-grid { grid-template-columns: 1fr; } }
.test {
  border: 1px solid var(--line-soft); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.test .quote-mark { font-family: var(--serif); font-size: 64px; line-height: 0.4; color: var(--ink); }
.test p { font-size: 16px; line-height: 1.5; }
.test .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.foot-mark { display: flex; gap: 14px; align-items: center; }
.foot-mark img { width: 60px; height: 60px; border-radius: 0; object-fit: contain; }
.foot-mark .b1 { font-family: var(--serif); font-size: 22px; }
.foot-mark .b2 { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 4px; }
.foot-h { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-family: var(--serif); font-size: 19px; }
.site-footer ul a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 16px;
}
.foot-bottom a:hover { color: var(--paper); }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px;
  max-width: 520px; background: var(--ink); color: var(--paper);
  padding: 24px 28px; z-index: 200; transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.cookie.is-open { transform: translateY(0); }
.cookie h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.cookie p { font-size: 13px; color: rgba(255,255,255,0.72); margin-bottom: 18px; line-height: 1.5; }
.cookie p a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 12px 18px; font-size: 11px; }
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; padding: 12px 0;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  outline: none; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.field--inline { flex-direction: row; gap: 12px; align-items: flex-start; }
.field--inline input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.field--inline label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); line-height: 1.5; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- page hero (interna) ---------- */
.page-hero {
  background: var(--ink); color: var(--paper);
  padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 9vw, 110px);
  position: relative; overflow: hidden;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.55); }
.page-hero h1 { font-size: clamp(48px, 9vw, 140px); line-height: 0.95; max-width: 16ch; }
.page-hero .it { font-style: italic; color: rgba(255,255,255,0.5); }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 60ch; margin-top: 30px; }
.page-hero-mark {
  position: absolute; right: 5%; top: 50%;
  transform: translateY(-50%);
  width: 420px; opacity: 0.18; pointer-events: none;
  mix-blend-mode: screen;
}
@media (max-width: 880px) {
  .page-hero-mark { width: 220px; right: -20px; opacity: 0.12; }
}

/* misc */
.label-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.label-row .bar { width: 32px; height: 1px; background: currentColor; opacity: 0.5; }

.bullets { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.bullets li { padding-left: 24px; position: relative; font-size: 16px; line-height: 1.55; }
.bullets li::before {
  content: ""; width: 8px; height: 8px; background: var(--ink);
  position: absolute; left: 0; top: 10px;
}
.section--ink .bullets li::before { background: var(--accent); }

.crosslist li::before {
  content: "✕"; background: transparent; width: auto; height: auto;
  font-size: 14px; top: 0; color: var(--muted);
}

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.is-in { opacity: 1; transform: translateY(0); }
