/* ============================================================
   chi-sono.css v3 — fix completo
   ============================================================ */

/* HERO */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--black);
  min-height: 60vh;
}

.about-hero__left {
  padding: 52px var(--padding-x);
  border-right: 1.5px solid var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.about-hero__title {
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--black);
  text-transform: uppercase;
}

.about-hero__title span { color: var(--red); }

.about-hero__intro {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 420px;
}

.about-hero__numbers {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.num-item__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}

.num-item__value span { color: var(--red); }

.num-item__label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-top: 4px;
  display: block;
}

.about-hero__right {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
  min-height: 420px;
}

.about-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero__photo-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,242,240,0.15);
}

.about-hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242,242,240,0.5);
}

/* ── BODY — sidebar sticky ── */
.about-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1.5px solid var(--black);
  /* Altezza minima per avere spazio allo sticky */
  align-items: start;
}

/* SIDEBAR — sticky che funziona:
   il genitore NON deve avere overflow:hidden
   e deve avere altezza definita */
.about-nav {
  border-right: 1.5px solid var(--black);
  padding: 48px 28px;
  position: sticky;
  top: var(--nav-height);
  /* altezza = viewport meno navbar */
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  /* scrollbar invisibile */
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* fondamentale: self-start per non stirarsi */
  align-self: start;
}

.about-nav::-webkit-scrollbar { display: none; }

.about-nav__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
  display: block;
}

.about-nav__item {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-light);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  text-align: left;
  width: 100%;
  line-height: 1.4;
}

.about-nav__item:hover { color: var(--black); border-left-color: #ccc; }
.about-nav__item.active { color: var(--black); border-left-color: var(--red); font-weight: 600; }

/* CONTENUTO */
.about-content {
  padding: 48px 56px;
  /* Importante: il contenuto deve poter scorrere liberamente */
  min-height: 100%;
}

.about-section {
  margin-bottom: 64px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.about-section:last-child { margin-bottom: 0; }

.about-h {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
}

.about-h span { color: var(--red); }

.about-p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 16px;
  max-width: 600px;
}

.about-p strong { color: var(--black); font-weight: 600; }

.pull-quote {
  border-left: 3px solid var(--red);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(244,64,64,0.04);
}

.pull-quote p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.6;
  font-style: italic;
}

/* CV download */
.cv-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-cta);
  font-size: 0.88rem;
  background: var(--black);
  color: var(--white);
  padding: 13px 24px;
  text-decoration: none;
  transition: background var(--transition);
  border: none;
}

.cv-inline:hover { background: var(--red); }

/* ── COSA NON SONO — sfondo nero ── */
/* Questa sezione è DENTRO .about-content ma deve avere sfondo nero */
/* Usiamo un wrapper speciale */
.nonson-wrap {
  background: var(--black);
  margin: 0 -56px;   /* compensa il padding del genitore */
  padding: 40px 56px;
}

.nonson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a2a2a;
  border: 1px solid #2a2a2a;
  margin-top: 16px;
}

.nonson-item {
  background: var(--black);
  padding: 22px 20px;
}

.nonson-cross {
  font-size: 0.9rem;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

.nonson-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.nonson-sub {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.65;
}

/* Titolo nella sezione nera */
.nonson-wrap .about-h {
  color: var(--white);
  margin-bottom: 0;
}

.nonson-wrap .about-h span { color: var(--red); }

/* SOCIAL */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  transition: all var(--transition);
}

.social-link:hover { border-color: var(--black); }
.social-link svg { color: var(--gray-light); flex-shrink: 0; }
.social-link__arrow { margin-left: auto; font-size: 0.75rem; color: var(--gray-light); }

/* CTA BOTTOM */
.bottom-cta {
  padding: 64px var(--padding-x);
  border-bottom: 1.5px solid var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.bottom-cta__text {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}

.bottom-cta__text span { color: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__right { min-height: 320px; }

  /* Su tablet: nav in orizzontale sopra il contenuto */
  .about-body { grid-template-columns: 1fr; }

  .about-nav {
    position: relative;
    top: 0;
    max-height: none;
    border-right: none;
    border-bottom: 1.5px solid var(--black);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 20px var(--padding-x);
    align-self: auto;
  }

  .about-nav__label { width: 100%; margin-bottom: 4px; }

  .about-nav__item {
    border-left: none;
    border-bottom: 2px solid var(--border);
    padding: 4px 4px 8px;
  }

  .about-nav__item.active {
    border-bottom-color: var(--red);
    border-left: none;
  }

  .about-content { padding: 40px var(--padding-x); }
  .nonson-wrap { margin: 0 calc(-1 * var(--padding-x)); padding: 40px var(--padding-x); }
  .nonson-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .about-hero__left { padding: 40px var(--padding-x-mobile); }
  .about-nav { padding: 16px var(--padding-x-mobile); }
  .about-content { padding: 32px var(--padding-x-mobile); }
  .nonson-wrap { margin: 0 calc(-1 * var(--padding-x-mobile)); padding: 32px var(--padding-x-mobile); }
  .nonson-grid { grid-template-columns: 1fr; }
  .bottom-cta {
    padding: 48px var(--padding-x-mobile);
    flex-direction: column;
    align-items: flex-start;
  }
}
