/* ═══════════════════════════════════════════════════════
   CHI SONO — Fixed hero + scroll-over + modern animations
   Coerente con il sito: bianco/nero, Montserrat
   ═══════════════════════════════════════════════════════ */

:root {
  --cs-bg:         #ffffff;
  --cs-bg-alt:     #f8f8f8;
  --cs-ink:        #000;
  --cs-ink-body:   #333;
  --cs-ink-soft:   #555;
  --cs-ink-muted:  #999;
  --cs-rule:       #e0e0e0;
  --cs-rule-light: #f0f0f0;
  --cs-font:       'Montserrat', sans-serif;
  --cs-page-x:     clamp(20px, 5vw, 80px);
  --cs-ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

body { background-color: #000; /* Nero dietro l'hero fisso */ }


/* ─── Shared: Eyebrow label ─── */
.cs-eyebrow {
  display: block;
  font-family: var(--cs-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cs-ink-muted);
}


/* ═══════════════════════════════════════════
   HERO — Fixed in background (come la home)
   ═══════════════════════════════════════════ */
.cs-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background: url('https://res.cloudinary.com/dwcqqyaym/image/upload/f_auto,q_auto/v1741904867/cv_e6zhpr.jpg')
              no-repeat center 20% / cover;
  transform: scale(1.04);
  will-change: transform, filter;
  transition: transform 0.15s ease-out, filter 0.15s ease-out;
  display: flex;
  align-items: flex-end;
}

/* Dark gradient overlay for text readability */
.cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

/* Hero caption */
.cs-hero__caption {
  position: relative;
  z-index: 2;
  padding: 0 var(--cs-page-x) clamp(50px, 10vh, 100px);
  color: #fff;
  max-width: 700px;
}

/* Hero text entrance animation */
.cs-hero__name {
  font-family: var(--cs-font);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s var(--cs-ease), transform 0.8s var(--cs-ease);
}

.cs-hero__name.is-entered {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.cs-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 1.4rem;
  animation: csBounce 2s infinite;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cs-scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes csBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}


/* ═══════════════════════════════════════════
    WRAPPER — Scrolls over the fixed hero
    ═══════════════════════════════════════════ */
.cs-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 100vh;
}


/* ═══════════════════════════════════════════
    BIO — Asymmetric two-column
    ═══════════════════════════════════════════ */
.cs-bio {
  padding: clamp(80px, 12vh, 140px) var(--cs-page-x);
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.65) 100%);
  color: #fff;
}

.cs-bio__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.cs-bio__left {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 18px;
}

.cs-bio__left .cs-eyebrow {
  color: rgba(255,255,255,0.5);
}

.cs-bio__right p {
  font-family: var(--cs-font);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0 0 1.2em 0;
}

.cs-bio__right p:last-child { margin-bottom: 0; }

.cs-bio__lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem) !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.65 !important;
}


/* ═══════════════════════════════════════════
    STATEMENT — Pull-quote
    ═══════════════════════════════════════════ */
.cs-statement {
  padding: clamp(60px, 10vh, 120px) var(--cs-page-x);
  background-color: #fff;
}

.cs-statement__inner {
  max-width: 780px;
  margin: 0 auto;
  border-left: 2px solid var(--cs-ink);
  padding-left: clamp(20px, 3vw, 36px);
}

.cs-statement__text {
  font-family: var(--cs-font);
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--cs-ink-body);
  margin: 0 0 1.3em 0;
}

.cs-statement__text--secondary { color: var(--cs-ink-soft); }
.cs-statement__text:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════
   PORTFOLIO — PDF viewer
   ═══════════════════════════════════════════ */
.cs-portfolio {
  padding: clamp(80px, 12vh, 140px) var(--cs-page-x);
  background-color: #fff;
}

.cs-portfolio__inner {
  max-width: 900px;
  margin: 0 auto;
}

.cs-portfolio__header {
  margin-bottom: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--cs-ink);
  padding-top: 18px;
}

.cs-portfolio__desc {
  font-family: var(--cs-font);
  font-size: 0.84rem;
  color: var(--cs-ink-muted);
  margin-top: 10px;
}

/* Buttons */
.cs-portfolio__actions {
  display: flex;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--cs-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s var(--cs-ease);
  cursor: pointer;
}

.cs-btn i { font-size: 0.78rem; }

.cs-btn--filled {
  background: var(--cs-ink);
  color: #fff;
  border: 1px solid var(--cs-ink);
}
.cs-btn--filled:hover { background: #333; border-color: #333; }

.cs-btn--outline {
  background: transparent;
  color: var(--cs-ink);
  border: 1px solid var(--cs-rule);
}
.cs-btn--outline:hover { border-color: var(--cs-ink); }


/* ═══════════════════════════════════════════
     TIMELINE
     ═══════════════════════════════════════════ */
.cs-timeline {
  padding: clamp(80px, 12vh, 140px) var(--cs-page-x) clamp(60px, 8vh, 100px);
  background-color: #fff;
}

.cs-timeline__inner {
  max-width: 900px;
  margin: 0 auto;
}

.cs-timeline__heading {
  border-top: 1px solid var(--cs-ink);
  padding-top: 18px;
  margin-bottom: clamp(50px, 7vw, 80px);
}

.cs-timeline__heading .cs-eyebrow { margin-bottom: 8px; }

.cs-timeline__heading h2 {
  font-family: var(--cs-font);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 500;
  color: var(--cs-ink);
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* List reset */
.cs-tl { list-style: none; margin: 0; padding: 0; }

/* Year group */
.cs-tl__year-group {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 clamp(24px, 4vw, 50px);
  padding-bottom: clamp(36px, 4vw, 50px);
  margin-bottom: clamp(36px, 4vw, 50px);
  border-bottom: 1px solid var(--cs-rule-light);
}

.cs-tl__year-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Year label */
.cs-tl__year {
  font-family: var(--cs-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cs-ink);
  letter-spacing: 0.5px;
  padding-top: 2px;
  position: sticky;
  top: 145px;
  align-self: start;
}

/* Entries */
.cs-tl__entries { list-style: none; margin: 0; padding: 0; }

/* Single entry */
.cs-tl__entry {
  padding: 14px 0;
  border-top: 1px solid var(--cs-rule-light);
  position: relative;
}

.cs-tl__entry:first-child { border-top: none; padding-top: 0; }

/* Category label */
.cs-tl__entry::before {
  content: attr(data-type);
  font-family: var(--cs-font);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cs-ink-muted);
  display: block;
  margin-bottom: 4px;
}

.cs-tl__entry--press::before { content: none; }

.cs-tl__entry h3 {
  font-family: var(--cs-font);
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 500;
  color: var(--cs-ink);
  margin: 0 0 4px;
  line-height: 1.4;
}

.cs-tl__entry p {
  font-family: var(--cs-font);
  font-size: clamp(0.78rem, 0.85vw, 0.84rem);
  line-height: 1.55;
  color: var(--cs-ink-soft);
  margin: 0;
}

/* Press links */
.cs-press { list-style: none; padding: 0; margin: 6px 0 0; }
.cs-press li { margin-bottom: 5px; }
.cs-press li:last-child { margin-bottom: 0; }

.cs-press a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--cs-font);
  font-size: 0.8rem;
  color: var(--cs-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  background: #fafafa;
  border-radius: 2px;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.cs-press a::after {
  content: '\2197';
  font-size: 0.72rem;
  opacity: 0.75;
}

.cs-press a:hover {
  border-color: var(--cs-ink);
  background-color: #f2f2f2;
  transform: translateX(2px);
}

.cs-press a span {
  color: var(--cs-ink-muted);
  font-size: 0.78rem;
}


/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
footer {
  background-color: #ffffff !important;
  color: #000000 !important;
}


/* ═══════════════════════════════════════════
    RESPONSIVE — max-width: 768px
    ═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Bio - on top of hero image */
  .cs-bio {
    margin-top: -350px;
    padding: 10px 20px 60px;
  }

  .cs-bio__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cs-bio__left {
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 0 0 12px 0;
  }

  .cs-bio__right p {
    font-size: 0.92rem;
  }

  /* Hide hero title on mobile */
  .cs-hero__name {
    display: none;
  }

  /* Hide scroll indicator on mobile */
  .cs-scroll-indicator {
    display: none;
  }

  /* Hero */
  .cs-hero__caption { padding-bottom: clamp(200px, 40vh, 280px); }

  /* Portfolio */
  .cs-portfolio { padding: 60px 20px; }
  .cs-portfolio__actions { flex-direction: column; }
  .cs-btn { justify-content: center; padding: 14px 20px; }

  /* Timeline */
  .cs-timeline { padding: 60px 20px 40px; }
  .cs-tl__year-group { grid-template-columns: 1fr; gap: 8px; }
  .cs-tl__year {
    position: static;
    font-size: 0.78rem;
    color: var(--cs-ink-muted);
    border-bottom: 1px solid var(--cs-rule);
    padding-bottom: 8px;
  }
  .cs-tl__entry { padding: 12px 0; }
  .cs-tl__entry h3 { font-size: 0.92rem; }
  .cs-tl__entry p { font-size: 0.78rem; color: var(--cs-ink-soft); }
  .cs-press a { font-size: 0.76rem; }
  .cs-press a span { font-size: 0.74rem; }

  /* Header */
  header { top: 0; }
  header nav ul { margin: 0; padding: 0; display: flex; justify-content: center; }
  header nav ul li { margin: 0 8px; }
  header nav ul li a { padding: 8px 10px; font-size: 14px; }
}

/* ═══════════════════════════════
   RESPONSIVE — Tablet (769 – 1024)
   ═══════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  .cs-bio__inner { grid-template-columns: 140px 1fr; }
  .cs-tl__year-group { grid-template-columns: 80px 1fr; }
}
