@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --night: #18283d;
  --blue: #244466;
  --gold: #b08d57;
  --paper: #f8f7f3;
  --white: #ffffff;
  --ink: #1e2732;
  --muted: #66717d;
  --line: rgba(24,40,61,.14);
  --shadow: 0 24px 70px rgba(24,40,61,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.fc-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.fc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: .25s ease;
}
.fc-header.is-scrolled {
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 34px rgba(24,40,61,.08);
}
.fc-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 700;
}
.fc-brand img { width: 48px; height: 48px; object-fit: contain; }
.fc-nav { display: flex; gap: 26px; }
.fc-nav a {
  position: relative;
  text-decoration: none;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.fc-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right .2s ease;
}
.fc-nav a:hover::after { right: 0; }
.fc-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--night);
}

/* Hero */
.fc-hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 12% 14%, rgba(176,141,87,.12), transparent 27%),
    linear-gradient(135deg, #fbfaf7 0%, #f3f4f5 100%);
}
.fc-hero-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  padding: 72px 0;
}
.fc-eyebrow,.fc-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.fc-hero h1,
.fc-chapter-head h2,
.fc-portrait figcaption,
.fc-path-intro blockquote,
.fc-method-card h3,
.fc-skill-list h3,
.fc-case h3,
.fc-library h3,
.fc-business-card h3,
.fc-footer p {
  font-family: "Cormorant Garamond", serif;
}
.fc-hero h1 {
  margin: 0;
  color: var(--night);
  font-size: clamp(4.3rem, 8vw, 8.7rem);
  font-weight: 600;
  line-height: .77;
  letter-spacing: -.055em;
}
.fc-hero-line {
  width: min(220px, 42vw);
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.fc-role {
  margin: 30px 0 18px;
  color: var(--blue);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem,2.4vw,2.1rem);
  font-weight: 600;
  line-height: 1.25;
}
.fc-lead { max-width: 640px; margin: 0; color: var(--muted); }
.fc-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.fc-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.fc-btn-primary { background: var(--night); color: #fff; }
.fc-btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--night); }
.fc-portrait {
  position: relative;
  margin: 0;
  box-shadow: var(--shadow);
}
.fc-portrait::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  z-index: -1;
  border: 1px solid rgba(176,141,87,.55);
}
.fc-portrait img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  filter: grayscale(100%);
}
.fc-portrait figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 20px 24px;
  background: rgba(24,40,61,.88);
  color: #fff;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Capitoli */
.fc-chapter { padding: clamp(90px, 10vw, 140px) 0; }
.fc-chapter-head {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 62px;
}
.fc-chapter-no {
  padding-top: 8px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.fc-chapter-head h2 {
  max-width: 840px;
  margin: 0;
  color: var(--night);
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}

/* Percorso */
.fc-path { background: var(--white); }
.fc-path-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(50px, 8vw, 110px);
}
.fc-path-intro { color: var(--muted); font-size: 1.04rem; }
.fc-path-intro blockquote {
  margin: 38px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
  color: var(--night);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.25;
}
.fc-timeline {
  position: relative;
  padding-left: 38px;
}
.fc-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 6%, var(--gold) 94%, transparent);
}
.fc-timeline article {
  position: relative;
  padding: 0 0 34px;
}
.fc-timeline article::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(176,141,87,.24);
}
.fc-timeline span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.fc-timeline h3 {
  margin: 8px 0 8px;
  color: var(--night);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
}
.fc-timeline p { margin: 0; color: var(--muted); }

.fc-transition {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 70px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.fc-transition::before,
.fc-transition::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.fc-transition::before { width: 70px; }
.fc-transition::after { flex: 1; }

/* Metodo su sfondo chiaro */
.fc-method { background: var(--paper); }
.fc-method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fc-method-card {
  min-height: 330px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  background: #fff;
  transition: .22s ease;
}
.fc-method-card:hover {
  background: var(--night);
  color: #fff;
  transform: translateY(-4px);
}
.fc-method-card > span {
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.fc-method-card svg {
  width: 34px;
  height: 34px;
  margin: 48px 0 26px;
  color: var(--gold);
}
.fc-method-card h3 {
  margin: 0 0 14px;
  color: var(--night);
  font-size: 2rem;
}
.fc-method-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.fc-method-card:hover h3,
.fc-method-card:hover p { color: #fff; }

/* Competenze come dashboard */
.fc-skills { background: #fff; }
.fc-skill-list { border-top: 1px solid var(--line); }
.fc-skill-list article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.fc-skill-list article > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.fc-skill-list span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
}
.fc-skill-list h3 {
  margin: 0;
  color: var(--night);
  font-size: 1.75rem;
}
.fc-skill-list p { margin: 0; color: var(--muted); }

.fc-quote {
  position: relative;
  padding: 96px 0 86px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f3ee 44%, #eef1f4 100%);
  color: var(--night);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fc-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(176,141,87,.16), transparent 27%),
    linear-gradient(90deg, rgba(24,40,61,.025), transparent 38%);
  pointer-events: none;
}
.fc-quote .fc-container {
  position: relative;
  z-index: 1;
}
.fc-quote-mark {
  margin-bottom: -18px;
  color: rgba(176,141,87,.35);
  font-family: "Cormorant Garamond", serif;
  font-size: 7rem;
  line-height: .65;
  text-align: center;
}
.fc-quote p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
}
.fc-quote-line {
  display: block;
  width: 86px;
  height: 2px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Casi */
.fc-cases { background: var(--white); }
.fc-case-list { display: grid; gap: 28px; }
.fc-case {
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.fc-case header {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.fc-case header span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.fc-case h3 {
  margin: 0;
  color: var(--night);
  font-size: 2rem;
}
.fc-case-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
}
.fc-case-flow div {
  min-height: 170px;
  padding: 22px;
  background: #fff;
}
.fc-case-flow strong {
  color: var(--gold);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.fc-case-flow p { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }

/* Pubblicazioni */
.fc-publications { background: var(--paper); }
.fc-library {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fc-library article {
  min-height: 320px;
  padding: 32px 28px;
  background: #fff;
}
.fc-library span {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.fc-library h3 {
  margin: 44px 0 14px;
  color: var(--night);
  font-size: 2rem;
}
.fc-library p { margin: 0; color: var(--muted); }
.fc-library a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

/* Contatti */
.fc-contact {
  padding: clamp(90px, 10vw, 140px) 0;
  background: #fff;
}
.fc-business-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px,5vw,56px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.fc-card-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.fc-card-brand img { width: 78px; height: 78px; object-fit: contain; }
.fc-card-brand h3 {
  margin: 0 0 4px;
  color: var(--night);
  font-size: 2rem;
}
.fc-card-brand p { margin: 1px 0; color: var(--muted); font-size: .9rem; }
.fc-card-data {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 28px 0;
}
.fc-card-data a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.fc-card-data svg { width: 18px; color: var(--gold); }
.fc-card-actions {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.fc-card-actions a {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}
.fc-card-actions svg { color: var(--gold); }
.fc-card-actions span { font-weight: 700; color: var(--night); }
.fc-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 20px;
  background: var(--night);
  color: #fff;
  text-decoration: none;
}
.fc-channel > svg:first-child { color: var(--gold); }

/* Footer e torna su */
.fc-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  box-shadow: 0 14px 34px rgba(24,40,61,.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .25s ease;
}
.fc-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.fc-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}
.fc-footer .fc-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.fc-footer img { width: 52px; height: 52px; object-fit: contain; }
.fc-footer p { margin: 0; color: var(--night); font-size: 1.5rem; }
.fc-footer span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

/* Animazioni */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .fc-hero { min-height: auto; }
  .fc-hero-grid,
  .fc-path-grid { grid-template-columns: 1fr; }
  .fc-method-grid { grid-template-columns: repeat(2,1fr); }
  .fc-case-flow { grid-template-columns: repeat(2,1fr); }
  .fc-library,
  .fc-card-actions { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .fc-container { width: min(100% - 28px, 1180px); }
  .fc-header-inner { min-height: 68px; }
  .fc-brand img { width: 42px; height: 42px; }
  .fc-brand span { font-size: .9rem; }
  .fc-menu-toggle { display: inline-grid; place-items: center; }
  .fc-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
  }
  .fc-nav.is-open { display: flex; }
  .fc-nav a { padding: 12px 10px; }
  .fc-nav a::after { display: none; }

  .fc-hero-grid { padding: 58px 0 72px; }
  .fc-hero h1 { font-size: clamp(4.1rem,22vw,6.5rem); }
  .fc-portrait::before { inset: -10px 10px 10px -10px; }
  .fc-portrait img { aspect-ratio: .92 / 1; }

  .fc-chapter-head {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 44px;
  }

  .fc-method-grid,
  .fc-case-flow,
  .fc-library,
  .fc-card-actions,
  .fc-skill-list article {
    grid-template-columns: 1fr;
  }

  .fc-skill-list article { gap: 10px; }

  .fc-case header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .fc-card-data { flex-direction: column; }

  .fc-channel { grid-template-columns: auto 1fr; }
  .fc-channel > svg:last-child { display: none; }

  .fc-back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  .fc-quote {
    padding: 72px 0 66px;
  }
  .fc-quote-mark {
    font-size: 5rem;
    margin-bottom: -10px;
  }
  .fc-quote p {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
