/* /about/about.css */

:root{
  --nav-h: 64px;
  --frame: clamp(18px, 3.2vw, 48px);
  --max: 1220px;

  --accent: #ff3b2f;

  --text: #111;
  --muted: rgba(0,0,0,0.60);
  --muted2: rgba(0,0,0,0.45);
  --line: rgba(0,0,0,0.08);

  --card-h: clamp(320px, 30vw, 410px);
}

/* 1) HARD PAGE OVERRIDES (style.css has body overflow:hidden) */
html, body.page-about{
  background:#fff !important;
  color: var(--text) !important;
}

body.page-about{
  /* sblocca scroll (style.css blocca body) */
  overflow-y: auto !important;
  overflow-x: hidden !important;

  /* difese contro wrapper / trasformazioni */
  transform: none !important;
  filter: none !important;

  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

/* se esiste scroll-container da altre pagine, disinnescalo su About */
body.page-about .scroll-container{
  height: auto !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  padding-top: 0 !important;
}

/* 2) NAV */

/* 3) ABOUT LAYOUT (scoped selectors to beat style.css) */
body.page-about main.about{
  /* stacca dalla nav */
  padding-top: calc(var(--nav-h) + clamp(26px, 5vw, 72px));
  padding-bottom: clamp(56px, 7vw, 120px);
  background:#fff !important;

  display: block !important;
}

body.page-about .about__inner{
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--frame);
}

/* 4) HERO */
body.page-about .about__hero{
  text-align: center;
  margin-bottom: clamp(34px, 5.5vw, 86px);
}

body.page-about .about__title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
  font-size: clamp(56px, 6.8vw, 104px);
  color: var(--text);

  /* difese contro reveal/blur della landing */
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* ATTENZIONE: style.css ha anche ".about__lead { white-space: nowrap; font-size enorme; }"
   quindi qui lo neutralizziamo esplicitamente */
body.page-about .about__lead{
  margin: clamp(16px, 2vw, 26px) auto 0;
  max-width: 58ch;

  white-space: normal !important;
  font-size: initial !important;
  font-weight: initial !important;
  letter-spacing: normal !important;
  line-height: normal !important;
}

body.page-about .about__leadStrong{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 600;
  color: rgba(0,0,0,0.86);

  white-space: normal !important;
}

body.page-about .about__leadSoft{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);

  white-space: normal !important;
}

/* 5) TEAM STRIP — 4 columns */
body.page-about .team-strip{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  align-items: start;
  margin-bottom: clamp(44px, 6.5vw, 110px);

  overflow: visible !important;
}

body.page-about .team-strip > *{
  min-width: 0;
}

/* JOIN CARD */
body.page-about .join-card{
  border: 1px solid var(--line);
  border-radius: 0px;
  background:#fff;

  padding: clamp(18px, 2vw, 26px);
  min-height: var(--card-h);
  position: relative;
}

body.page-about .join-card__brand{
  font-size: 11px;
  letter-spacing: 0.10em;
  font-weight: 700;
  opacity: 0.9;
}

body.page-about .join-card__corner{
  position:absolute;
  top:18px;
  right:18px;
  width:10px; height:10px;
  border-right:2px solid var(--accent);
  border-top:2px solid var(--accent);
  border-radius:0;
}

body.page-about .join-card__title{
  margin: clamp(22px, 2.6vw, 38px) 0 10px;
  font-size: clamp(32px, 3.6vw, 50px);
  letter-spacing: -0.055em;
  font-weight: 900;
  line-height: 1.02;
}

body.page-about .join-card__text{
  margin:0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

body.page-about .join-card__cta{
  position:absolute;
  left: clamp(18px, 2vw, 26px);
  bottom: clamp(18px, 2vw, 26px);
  display:inline-flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color: var(--text);
  font-weight:600;
  font-size:12.5px;
}

body.page-about .join-card__ctaDot{
  width:14px; height:14px;
  display:grid;
  place-items:center;
  color: var(--accent);
  font-weight:900;
}

/* PERSON CARD */
body.page-about .person{
  display:block;
  text-decoration:none;
  color: inherit;
}

body.page-about .person__media{
  border-radius: 0px;
  overflow:hidden;
  background:#f3f3f3;
  border: 0;
}

body.page-about .person__media img{
  width:100%;
  height: var(--card-h);
  object-fit: cover;
  display:block;
}

body.page-about .person__meta{ padding-top: 12px; }

body.page-about .person__name{
  margin:0;
  font-size: 12px;
  font-weight: 700;
}

body.page-about .person__role{
  margin:4px 0 0;
  font-size: 10px;
  color: rgba(0,0,0,0.55);
}

/* 6) APPROACH */
body.page-about .approach{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(18px, 3vw, 64px);
  padding: clamp(6px, 1.6vw, 14px) 0 clamp(26px, 3.5vw, 58px);

  /* evita che style.css imponga flex su section */
  align-items: start;
}

body.page-about .approach__label{
  font-size: 11px;
  color: var(--muted2);
  padding-top: 6px;
}

body.page-about .approach__title{
  margin:0;
  max-width: 60ch;
  font-size: clamp(18px, 2.0vw, 24px);
  letter-spacing: -0.03em;
  line-height: 1.38;
  font-weight: 800;
}

body.page-about .approach__text{
  margin: 12px 0 0;
  max-width: 78ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.78;

  white-space: normal;
}

/* 7) LOGOS ROW */
body.page-about .logos{
  margin-top: clamp(18px, 3vw, 34px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background:#fff;
}

body.page-about .logo{
  min-height: 104px;
  display:grid;
  place-items:center;
  border-left: 1px solid var(--line);
  color: rgba(0,0,0,0.45);
  user-select:none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
}
body.page-about .logo:first-child{ border-left: 0; }

body.page-about .logo svg{
  width: 120px;
  height: 28px;
  opacity: 0.75;
}

body.page-about .logo img{
  max-width: 120px;
  max-height: 34px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
}

/* 9) MOBILE */
@media (max-width: 980px){
  :root{ --nav-h: 60px; --frame: 16px; }

  body.page-about .team-strip{
    grid-template-columns: 1fr !important;
  }

  body.page-about .join-card{
    min-height: auto;
    padding-bottom: 70px;
  }

  body.page-about .person__media img{
    height: 360px;
  }

  body.page-about .approach{
    grid-template-columns: 1fr;
  }
  body.page-about .approach__label{
    padding-top: 0;
  }

  body.page-about .logos{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* ONLY: force navbar background to black on About */
body.page-about header.nav,
body.page-about header.nav .nav__inner{
  background: #000 !important;
  background-color: #000 !important;
}

/* If global CSS draws the bg with pseudo-elements */
body.page-about header.nav::before,
body.page-about header.nav::after,
body.page-about header.nav .nav__inner::before,
body.page-about header.nav .nav__inner::after{
  background: #000 !important;
  background-color: #000 !important;
  opacity: 1 !important;
}
/* CARD ANIMATIONS — subtle, modern, no layout changes */

/* base easing */
body.page-about{
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-snap: cubic-bezier(.16, 1, .3, 1);
}

/* Reveal on load (soft rise + fade) */
@keyframes kb-rise-fade{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Apply reveal to cards */
body.page-about .join-card,
body.page-about .person{
  opacity: 0;
  animation: kb-rise-fade 520ms var(--ease-snap) forwards;
  will-change: transform, opacity;
}

/* Stagger (4 columns) */
body.page-about .team-strip > *:nth-child(1){ animation-delay: 40ms; }
body.page-about .team-strip > *:nth-child(2){ animation-delay: 110ms; }
body.page-about .team-strip > *:nth-child(3){ animation-delay: 180ms; }
body.page-about .team-strip > *:nth-child(4){ animation-delay: 250ms; }

/* Card hover: lift + soft shadow */
body.page-about .join-card,
body.page-about .person__media{
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    filter 220ms var(--ease-out);
}

body.page-about .join-card{
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

body.page-about .join-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.14);
}

/* Corner accent micro animation */
body.page-about .join-card__corner{
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
body.page-about .join-card:hover .join-card__corner{
  transform: translateY(-2px) translateX(2px);
  opacity: 0.95;
}

/* CTA dot “nudge” */
body.page-about .join-card__ctaDot{
  transition: transform 220ms var(--ease-out);
}
body.page-about .join-card:hover .join-card__ctaDot{
  transform: translateX(3px);
}

/* Person card: hover lift image + slight contrast */
body.page-about .person:hover .person__media{
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.12);
  filter: saturate(1.05) contrast(1.05);
}

/* Image micro zoom on hover */
body.page-about .person__media img{
  transition: transform 420ms var(--ease-out);
  will-change: transform;
}
body.page-about .person:hover .person__media img{
  transform: scale(1.03);
}

/* Text highlight on hover (very subtle) */
body.page-about .person__name,
body.page-about .person__role{
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
body.page-about .person:hover .person__name{
  transform: translateY(-1px);
}
body.page-about .person:hover .person__role{
  opacity: 0.75;
}

/* Tap / keyboard focus */
body.page-about .join-card:active,
body.page-about .person:active .person__media{
  transform: translateY(-2px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  body.page-about .join-card,
  body.page-about .person{
    animation: none !important;
    opacity: 1 !important;
  }
  body.page-about .join-card,
  body.page-about .person__media,
  body.page-about .person__media img,
  body.page-about .join-card__corner,
  body.page-about .join-card__ctaDot{
    transition: none !important;
  }
}
/* ABOUT — MOBILE: show burger, hide links (navbar design stays) */
@media (max-width: 900px){

  /* mostra burger */
  body.page-about .nav__burger{
    display: inline-flex !important;
    margin-left: auto;
    color: #fff;
  }
  body.page-about .nav__burgerIcon::before,
  body.page-about .nav__burgerIcon::after{
    background: #fff;
  }

  /* nascondi i link (lascia solo logo + burger) */
  body.page-about .nav__inner .nav__link{
    display: none !important;
  }
  body.page-about .nav__inner .nav__logo{
    display: inline-block !important;
  }
}
