/* =========================================================
   Connexio — sito web
   Palette dai PDF: blu primario #022ADE, accento #022FF7
   ========================================================= */

:root {
  --c-blue: #022ADE;
  --c-blue-bright: #022FF7;
  --c-blue-deep: #001A8A;
  --c-navy: #07103B;
  --c-black: #0A0A12;
  --c-text: #1B1F2A;
  --c-muted: #5A6172;
  --c-line: #E4E8F1;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F4F6FA;
  --c-bg-card: #EEF1F7;
  --c-pill-bg: #E9ECF6;

  --radius-card: 28px;
  --radius-pill: 999px;
  --radius-btn: 999px;

  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 12px 30px -12px rgba(7, 16, 59, 0.18);

  --container: 1200px;
  --gutter: clamp(26px, 4vw, 56px);
  --section-radius: 56px;
  --hero-h: 640px;
  --hero-h-mobile: 600px;

  --t-fast: 200ms ease;
  --t-med: 360ms cubic-bezier(.2, .8, .2, 1);
  --t-slow: 700ms cubic-bezier(.2, .8, .2, 1);

  --font-sans: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip: rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ====================================================
   Header / Nav
   ==================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 22px 0;
  color: #fff;
  pointer-events: none; /* lasciamo passare i click sul contenuto, riabilitiamo sui figli */
}
.site-header > * { pointer-events: auto; }
.site-header.is-internal { color: #fff; }

/* .nav-row resta come wrapper vuoto (i suoi contenuti sono stati spostati a body level) */
.nav-row { display: none; }
/* .brand viene spostato fuori dall'header come figlio diretto di body
   per fare in modo che mix-blend-mode trovi il contenuto della pagina come backdrop */
body > .brand {
  position: fixed;
  top: 22px;
  /* allineato al bordo sinistro del container 1200, non al viewport */
  left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  z-index: 31;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 600;
  flex-shrink: 0;
  color: #fff;
}
/* il .brand nel footer rimane come testo normale, non fixed */
.site-footer .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
  position: static;
  mix-blend-mode: normal;
  color: #fff;
}
.brand-logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-logo .ix { font-style: italic; font-weight: 500; }
img.brand-logo {
  /* wordmark senza payoff: 29px rende le lettere alte come col vecchio logo a 42px */
  height: 29px;
  width: auto;
  display: block;
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: .85;
  font-weight: 300;
  text-transform: lowercase;
}

/* nav-primary fixed body-level, centrato in alto */
body > .nav-primary {
  display: none;
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 31;
  gap: 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  align-items: stretch;
  white-space: nowrap;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
}
.nav-primary a {
  position: relative;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color var(--t-fast);
  z-index: 1;
  isolation: isolate;
}
/* oval per hover/active inset rispetto ai dividers */
.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  z-index: -1;
  transition: background var(--t-fast);
}
.nav-primary a[aria-current="page"]::after {
  background: rgba(255,255,255,0.22);
}
/* divisori | sempre visibili tra le voci */
.nav-primary a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px; bottom: 9px;
  width: 1px;
  background: rgba(255,255,255,0.22);
}

/* btn-contatti header (desktop) — body-level fixed top-right */
body > .btn-contatti {
  position: fixed;
  top: 22px;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  z-index: 31;
}
.btn-contatti {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 22px;
  background: #fff;
  color: var(--c-black);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.btn-contatti:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-contatti .arr {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-black);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.btn-contatti .arr svg { width: 12px; height: 12px; }

/* burger spostato fuori dall'header come figlio diretto di body */
body > .burger {
  position: fixed;
  top: 22px;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 60;
  color: #fff;
  border-radius: 50%;
  transition: background var(--t-fast);
}
body > .burger:hover { background: rgba(255,255,255,0.08); }
@media (hover: none) {
  body > .burger { background: rgba(255,255,255,0.08); }
}
body.menu-open > .burger { mix-blend-mode: normal; color: #fff; }

/* a menu mobile aperto: nascondi gli elementi body-level del nav fixed
   (rimane visibile solo il burger come X di chiusura) */
body.menu-open > .brand,
body.menu-open > .nav-primary,
body.menu-open > .btn-contatti {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

/* ====================================================
   Mix-blend "negativo" — si attiva solo allo scroll
   Brand, burger e nav-primary invertono colore in base allo sfondo
   ==================================================== */
body.is-scrolled > .brand,
body.is-scrolled > .burger,
body.is-scrolled > .nav-primary {
  mix-blend-mode: difference;
}
/* a menu aperto disabilita il blend su burger (sfondo blu uniforme) */
body.is-scrolled.menu-open > .burger { mix-blend-mode: normal; }
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-med), top var(--t-med), opacity var(--t-fast);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile fullscreen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  color: #fff;
  z-index: 50;
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path var(--t-slow), opacity 220ms ease;
  overflow-y: auto;
}

/* logo dentro al menu mobile (allineato verticalmente con la X) */
.mm-brand {
  position: absolute;
  top: 22px;
  left: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--t-med), transform var(--t-med);
  transition-delay: 220ms;
}
.mm-brand .brand-logo { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.mm-brand .brand-logo .ix { font-style: italic; font-weight: 500; }
.mm-brand img.brand-logo { height: 30px; width: auto; display: block; }
.mm-brand .brand-tagline { font-size: 10px; letter-spacing: 0.04em; opacity: .85; font-weight: 300; }
body.menu-open .mm-brand { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu {
  pointer-events: auto;
  opacity: 1;
  clip-path: circle(160% at calc(100% - 42px) 42px);
}
.mobile-menu a:not(.mm-brand) {
  font-size: clamp(28px, 7.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--t-med), opacity var(--t-med);
}
body.menu-open .mobile-menu a:not(.mm-brand) {
  transform: translateY(0);
  opacity: 1;
}
/* stagger sui link (mm-brand è il primo figlio, i link partono da nth-child(2)) */
body.menu-open .mobile-menu a:not(.mm-brand):nth-child(2) { transition-delay: 280ms; }
body.menu-open .mobile-menu a:not(.mm-brand):nth-child(3) { transition-delay: 340ms; }
body.menu-open .mobile-menu a:not(.mm-brand):nth-child(4) { transition-delay: 400ms; }
body.menu-open .mobile-menu a:not(.mm-brand):nth-child(5) { transition-delay: 460ms; }
body.menu-open .mobile-menu a:not(.mm-brand):nth-child(6) { transition-delay: 520ms; }
body.menu-open .mobile-menu a:not(.mm-brand):nth-child(7) { transition-delay: 580ms; }
.mobile-menu a .num {
  font-size: 14px;
  font-weight: 400;
  opacity: .55;
  letter-spacing: 0.04em;
  min-width: 28px;
}
.mobile-menu .mm-foot {
  margin-top: auto;
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; opacity: .8;
  padding-top: 28px;
}
.mobile-menu .mm-foot a {
  font-size: 13px; padding: 0; border: 0;
  transform: none; opacity: .9;
}
.mobile-menu .mm-socials { display: flex; gap: 14px; margin-left: auto; }
.mobile-menu .mm-socials img { width: 18px; filter: brightness(0) invert(1); }

@media (max-width: 1023px) {
  body > .btn-contatti { display: none; }
}

@media (min-width: 1024px) {
  body > .nav-primary { display: inline-flex; }
  body > .burger { display: none; }
  .mobile-menu { display: none; }
}

/* ====================================================
   Floating Contact FAB (solo mobile/tablet)
   ==================================================== */
.contact-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 22px;
  background: var(--c-black);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.5), 0 4px 14px -4px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition: transform var(--t-med), opacity var(--t-med), box-shadow var(--t-med);
}
.contact-fab .arr {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-black);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-fab .arr svg { width: 12px; height: 12px; }
.contact-fab:hover { transform: translateY(-2px); }
@media (max-width: 1023px) {
  .contact-fab { display: inline-flex; }
}
body.menu-open .contact-fab { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* ====================================================
   Hero
   ==================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  /* blocco titolo allineato verso il basso, non centrato (rev. 07/2026);
     su mobile resta centrato (override nella media query) */
  align-items: flex-end;
  padding-top: 100px;
  padding-bottom: clamp(110px, 15vh, 170px);
  /* --hero-p (0..1) impostata da JS in base allo scroll: la hero si rimpicciolisce */
  transform: scale(calc(1 - var(--hero-p, 0) * 0.12));
  transform-origin: center top;
  border-radius: calc(var(--hero-p, 0) * 40px);
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/wp-content/uploads/2026/05/hero-desktop.png");
  background-size: cover;
  background-position: center;
  z-index: -3;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
  z-index: -1;
}
.hero-inner {
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.hero h1 span { display: block; }
.hero-sub {
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* prima sezione dopo l'hero: a filo, senza angoli arrotondati (rev. 07/2026) */
section[data-rounded-top] {
  position: relative !important;
  background: #fff !important;
  padding-top: clamp(56px, 7vw, 100px) !important;
  scroll-margin-top: 80px;
}
.btn-scopri {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 26px;
  background: #fff; color: var(--c-black);
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: transform var(--t-med), background var(--t-med);
}
.btn-scopri:hover { transform: translateY(-2px); background: #f1f3fb; }
.btn-scopri .arr {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #E1E5F0;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-scopri .arr svg { width: 14px; height: 14px; color: var(--c-black); }

@media (max-width: 768px) {
  .hero::before {
    background-image: url("/wp-content/uploads/2026/05/hero-mobile.jpg");
    background-position: center 30%;
  }
  .hero {
    height: 100vh;
    height: 100dvh;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .hero h1 { font-size: clamp(27px, 7.4vw, 36px); max-width: 22ch; line-height: 1.1; }
  .hero-sub { font-size: 15.5px; }
}

/* ====================================================
   Sezioni generali
   ==================================================== */
section { position: relative; }

.section-pad {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--c-black);
  color: #fff;
  font-weight: 500;
  font-size: 14.5px;
  transition: background var(--t-med), transform var(--t-med);
}
.btn-pill:hover { background: #23232E; transform: translateY(-2px); }
.btn-pill.is-ghost { background: transparent; color: var(--c-black); border: 1.5px solid var(--c-black); }
.btn-pill.is-ghost:hover { background: var(--c-black); color:#fff; }

/* ====================================================
   Come Nasce
   ==================================================== */
.come-nasce {
  position: relative;
  background: #fff;
  overflow: hidden;
  /* blocco "quasi full screen" (rev. 07/2026): il bianco respira sopra
     e sotto e il contenuto resta centrato — i -140px lasciano spuntare
     il bordo del blocco scuro successivo */
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(56px, 7vw, 100px);
}
.come-nasce::before {
  content:"";
  position: absolute;
  width: 320px; height: 540px;
  left: -80px; top: 120px;
  background: url("/wp-content/uploads/2026/05/decor-c-grey.png") no-repeat center / contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.come-nasce__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.come-nasce h2 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}
.come-nasce h2 .accent { color: var(--c-black); display: block; }
.come-nasce__copy p {
  color: var(--c-text);
  font-size: 15.5px;
  max-width: 520px;
  margin-bottom: 18px;
}
.come-nasce__right p {
  color: var(--c-text);
  font-size: 15.5px;
  margin-bottom: 24px;
}
.come-nasce__cta { margin-top: 8px; }

.pills-art {
  display: none;
  position: relative;
  width: 100%;
  max-width: 640px;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 0;
  pointer-events: none;
  z-index: 1;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-black);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.5);
  text-align: center;
}
@media (max-width: 720px) {
  .pills-art { gap: 12px; max-width: 100%; }
  .pill { font-size: 14px; padding: 12px 20px; }
}
@media (min-width: 720px) {
  .pills-art { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
}

@media (min-width: 900px) {
  .come-nasce__grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
  }
}

/* ====================================================
   Aree di Intervento
   ==================================================== */
.aree {
  position: relative;
  /* respiro dalla sezione precedente */
  margin-top: clamp(28px, 3.5vw, 56px);
  /* da espansa copre esattamente lo schermo, con il contenuto centrato:
     lo scatto guidato ferma lo scroll proprio in questa posizione */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(80px, 10vw, 140px);
  /* sezione scura nero-blu (mockup 07/2026) */
  background: #02030A url("/wp-content/uploads/2026/05/aree-bg.jpg") center / cover no-repeat;
  /* --aree-p (0..1) da JS: la sezione parte inset (allineata al container,
     angoli arrotondati) e si allarga fino a full width mentre entra nel
     viewport. Senza JS / reduced-motion resta full-bleed (default 1). */
  margin-inline: calc((1 - var(--aree-p, 1)) * var(--aree-max, 0px));
  border-radius: calc((1 - var(--aree-p, 1)) * 28px);
}
.aree__panel {
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: clamp(20px, 3vw, 40px) 0;
  overflow: visible;
  box-shadow: none;
}
.aree__head {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}
.aree__head h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.aree__head h2 .accent { color: #fff; }
.aree__head p {
  margin: 18px auto 28px;
  max-width: 760px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
.aree__head .btn-pill { background: #fff; color: var(--c-navy); }
.aree__head .btn-pill:hover { background: #E9ECF6; }
.aree-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 720px) { .aree-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .aree-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 22px 56px 22px 24px;
  min-height: 86px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-navy);
  text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,0.5);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(0,0,0,0.5); }
.area-card .arr {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-black);
}
.area-card .arr svg { width: 18px; height: 18px; stroke-width: 2; }

/* logo divider */
.brand-divider {
  display: flex; justify-content: center; align-items: center;
  padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 4vw, 40px);
}
.brand-divider img { width: 100px; opacity: .6; }

/* ====================================================
   Collaboratori (carosello)
   ==================================================== */
.collab {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.collab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.collab__head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
}
/* su mobile il titolo divide la riga con la pill "entra": più piccolo,
   così "I Professionisti" resta su una riga; sugli schermi strettissimi
   è la pill a scendere sotto, mai il titolo a spezzarsi */
@media (max-width: 600px) {
  .collab__head { flex-wrap: wrap; }
  .collab__head h2 { font-size: 25px; white-space: nowrap; }
}
.collab__head h2 .accent { color: var(--c-black); }
.collab__head .btn-pill { background: var(--c-black); }
.collab__head .btn-pill:hover { background: #23232E; }

.collab__overflow {
  position: relative;
  overflow: hidden;
  /* sfora a destra fino al bordo del viewport */
  margin-right: calc(50% - 50vw);
}
.collab__viewport { position: relative; overflow: visible; }
.collab__track {
  display: flex;
  gap: 18px;
  transition: transform var(--t-slow);
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.collab__track.is-dragging { cursor: grabbing; transition: none; }
.team-card {
  flex: 0 0 calc(70% - 9px);
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--c-bg-card);
  isolation: isolate;
}
@media (min-width: 600px) { .team-card { flex: 0 0 calc(45% - 9px); } }
@media (min-width: 900px) { .team-card { flex: 0 0 calc(31% - 12px); } }
@media (min-width: 1200px) { .team-card { flex: 0 0 calc(24% - 14px); } }

.team-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transform: scale(1.04);
  transition: transform var(--t-slow);
  -webkit-user-drag: none;
  user-select: none;
}
.team-card:hover img { transform: scale(1.04); }
.team-card__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(70px, 22%, 110px) 22px 22px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.92) 80%,
    #000 100%
  );
  border-radius: 0;
}
.team-card__info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.team-card__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.team-card__links a {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity var(--t-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-card__links a:hover { opacity: 1; }
.team-card__links i { display: block; }
.team-card__info p {
  font-size: 12.5px;
  opacity: 0.95;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-card__info.is-expanded p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.team-card__toggle {
  display: none;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.92;
  transition: opacity var(--t-fast);
}
.team-card__toggle:hover { opacity: 1; }
.team-card__toggle.is-needed { display: inline-block; }

.collab__nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.collab__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-black);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.collab__nav button:hover { background: #23232E; color: #fff; }
.collab__nav button:disabled { opacity: .35; cursor: not-allowed; }
.collab__nav svg { width: 16px; height: 16px; }

/* ====================================================
   Unisciti
   ==================================================== */
.unisciti {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.unisciti__panel {
  display: grid;
  grid-template-columns: 1fr;
  background: #050505;
  /* --uni-p (0..1) impostata da JS: il pannello si espande fino a full width
     perdendo il raggio man mano che entra nel viewport */
  border-radius: calc((1 - var(--uni-p, 0)) * 28px);
  margin-inline: calc(var(--uni-p, 0) * -1 * var(--uni-max, 0px));
  overflow: hidden;
}
@media (min-width: 900px) { .unisciti__panel { grid-template-columns: 1.05fr 1fr; } }

.unisciti__copy {
  /* il padding verticale cresce con l'espansione (--uni-p): il pannello
     si allarga anche in altezza, la foto resta a filo dei bordi */
  padding: calc(clamp(28px, 4vw, 48px) + var(--uni-p, 0) * 80px) clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
  /* il gruppo di testo è centrato nella colonna nera,
     al suo interno resta a bandiera sinistra */
  align-items: center;
}
.unisciti__copy-inner { max-width: 44ch; }
.unisciti__copy h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.05;
}
.unisciti__copy p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 44ch;
  font-size: 15px;
}
.unisciti__copy .btn-pill { background: #fff; color: var(--c-black); }
.unisciti__copy .btn-pill:hover { background: #E9ECF6; }
.unisciti__media {
  position: relative;
  /* cresce con l'espansione, così l'aumento di altezza si vede anche
     quando è la foto a dominare l'altezza della riga */
  min-height: calc(520px + var(--uni-p, 0) * 160px);
  background: #050505;
}
.unisciti__media img,
.unisciti__media video {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  /* ancora il ritaglio alla parte alta: le teste non vanno mai tagliate */
  object-position: 50% 12%;
}
/* il video ha il soggetto al centro: gli effetti sopra/sotto si tagliano */
.unisciti__media video { object-position: 50% 50%; }

/* ====================================================
   News in home (griglia fittizia — su WP: ultime 6 dal feed)
   ==================================================== */
.home-news {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.home-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.home-news__head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  color: var(--c-navy);
}
@media (min-width: 1024px) {
  .home-news .rss-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====================================================
   Social
   ==================================================== */
.social {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(60px, 8vw, 100px);
}
.social__head {
  text-align: center;
  margin-bottom: 32px;
}
.social__head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  color: var(--c-navy);
}
.social__head .icons {
  display: inline-flex; gap: 18px; margin-top: 14px; align-items: center;
}
.social__head .icons a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-black);
  font-size: 24px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.social__head .icons a:hover { transform: translateY(-2px); }
.social__head .icons img { max-height: 22px; width:auto; }

.social-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px) { .social-wall { grid-template-columns: repeat(4, 1fr); } }
.social-wall .tile {
  background: #050505;
  border-radius: 18px;
  aspect-ratio: 1 / 1.05;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med);
}
.social-wall .tile:hover { transform: translateY(-3px); }
.social-wall .tile::after {
  content: "Social Wall";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ====================================================
   Footer
   ==================================================== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 0;
}
.site-footer .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) { .site-footer .row { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .brand {
  font-size: 30px;
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.site-footer .brand-tagline { color: #cdd0db; }
.site-footer img.brand-logo { height: 29px; width: auto; display: block; }
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b0b3c4;
  font-weight: 500;
  margin-bottom: 14px;
}
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: #e3e5ee; transition: color var(--t-fast); }
.site-footer ul a:hover { color: #fff; }
.site-footer .legal-info {
  margin-top: 18px;
  font-style: normal;
  color: #9aa0b3;
  font-size: 13px;
  line-height: 1.6;
  max-width: 34ch;
}
.site-footer .legal-info strong {
  color: #e3e5ee;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-footer .copy {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; color: #9aa0b3;
}
.site-footer .socials { display: flex; gap: 14px; }
.site-footer .socials img { height: 18px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer .socials a:hover img { opacity: 1; }
.site-footer .copy .powered {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: #9aa0b3;
}
.site-footer .copy .powered a { color: inherit; transition: color var(--t-fast); }
.site-footer .copy .powered a:hover { color: #fff; }

/* ====================================================
   Pagine interne
   ==================================================== */
.page-hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  padding: 160px 0 110px;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content:""; position:absolute; inset:0; z-index:-3;
  /* fallback sotto il video (rev. 07/2026) */
  background: #0A0A0A url("/wp-content/uploads/2026/05/gradient-internal-dark.png") center / cover no-repeat;
}
.page-hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.08) 60%, rgba(0,0,0,0.30) 100%);
}
.page-hero .crumbs {
  font-size: 13px; opacity: .8; margin-bottom: 18px; letter-spacing: 0.06em;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero p {
  margin: 0 auto;
}

/* I Professionisti: foto di gruppo al posto dell'header interno.
   La foto arriva al bordo alto; la sfumatura tiene leggibili logo e menu. */
.team-photo-hero {
  position: relative;
  background: #0A0A12;
}
.team-photo-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.team-photo-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(110px, 16vw, 170px);
  background: linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.team-intro {
  max-width: 720px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.team-intro h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.team-intro p {
  font-size: 17px;
  max-width: 58ch;
  color: #4c5163;
}

/* pagina dedicata Aree */
.aree-page {
  position: relative;
  padding-left: 0;
}
.aree-page::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 0;
  width: 280px;
  height: min(70%, 760px);
  background: url("/wp-content/uploads/2026/05/decor-c-grey.png") no-repeat top left;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .aree-page::before { left: -160px; width: 240px; opacity: .5; }
}
@media (max-width: 600px) {
  .aree-page::before { display: none; }
}

.aree-intro {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 20px;
  padding-left: clamp(0px, 12vw, 140px);
  font-size: 15.5px;
  color: var(--c-text);
}

.aree-list {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 0;
}
.aree-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  background: transparent;
  border-radius: 0;
  padding: 22px 0;
  box-shadow: none;
  border: 0;
  border-top: 1px solid rgba(10,10,18,0.14);
  align-items: center;
}
.aree-item:last-child { border-bottom: 1px solid rgba(10,10,18,0.14); }
.aree-item .num {
  width: 76px; height: 76px;
  border-radius: 14px;
  background: #ECEEF4;
  color: var(--c-black);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.aree-item .num::after { content: "."; margin-left: 1px; }
.aree-item h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--c-black);
}
.aree-item p { font-size: 14.5px; color: var(--c-text); margin: 0; line-height: 1.55; }

/* highlight blink quando si atterra da home con hash */
.aree-item {
  scroll-margin-top: 110px;
  border-radius: 14px;
  transition: background-color 600ms ease, box-shadow 600ms ease;
}
.aree-item.is-flash {
  animation: aree-flash 1600ms ease;
}
@keyframes aree-flash {
  0%   { background-color: transparent;             box-shadow: 0 0 0 0 rgba(10,10,18,0); }
  20%  { background-color: rgba(10,10,18,0.08);     box-shadow: 0 0 0 10px rgba(10,10,18,0.04); }
  60%  { background-color: rgba(10,10,18,0.04);     box-shadow: 0 0 0 6px rgba(10,10,18,0.02); }
  100% { background-color: transparent;             box-shadow: 0 0 0 0 rgba(10,10,18,0); }
}
@media (prefers-reduced-motion: reduce) {
  .aree-item.is-flash { animation: none; }
}

@media (max-width: 600px) {
  .aree-item { grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; }
  .aree-item .num { width: 50px; height: 50px; font-size: 22px; border-radius: 10px; }
  .aree-item h3 { font-size: 17px; }
  .aree-intro { padding-left: 0; }
}

/* griglia collaboratori (pagina dedicata) */
.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* su desktop sfalsa la colonna centrale per ottenere il "wave" del PDF */
@media (min-width: 900px) {
  .team-grid > .team-card:nth-child(3n+2) {
    margin-top: 90px;
  }
}


/* generic content (come-nasce, unisciti pagina, news, contatti) */
.content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
}
.content p { margin-bottom: 20px; color: var(--c-text); }
.content p + p { margin-top: 0; }

/* form contatti */
.form-card {
  margin-top: 30px;
  background: #fff;
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-line);
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 720px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display:block; font-size: 13px; color: var(--c-muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfcff;
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-black);
  box-shadow: 0 0 0 4px rgba(10,10,18,0.10);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* messaggio post-invio form */
.form-success {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,10,18,0.06), rgba(10,10,18,0.03));
  border: 1px solid rgba(10,10,18,0.16);
  color: var(--c-black);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med), transform var(--t-med);
}
.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.form-success svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--c-black);
}
.form-success strong { font-weight: 600; }

/* news placeholder */
.news-grid {
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
  transition: transform var(--t-med);
}
.news-card:hover { transform: translateY(-3px); }
.news-card .date { font-size: 12px; color: var(--c-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.news-card h3 { font-size: 18px; }
.news-card p { font-size: 14px; color: var(--c-muted); margin: 0; }

/* unisciti pagina dedicata */
.unisciti-hero-cta {
  display: inline-flex; gap: 12px; margin-top: 24px;
}

/* ====================================================
   Anim utility (apply only when JS is active)
   ==================================================== */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
html.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.has-js .reveal { opacity: 1; transform: none; transition: none; }
}

/* prevent horizontal scroll bug on small */
html, body { overflow-x: hidden; }
body.menu-open { overflow: hidden; }

/* Cookieyes "revisit consent" floating button: alza sopra altri elementi sticky */
.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
  z-index: 30 !important;
}

/* ====================================================
   Scheda professionista — "Nome ed il suo team" (rev. 09/2026)
   Hero scuro a due colonne (testo + ritratto) e griglia collaboratori
   su fondo nero. Layout dal mockup connexio_studi_2.
   ==================================================== */
.prof-hero {
  position: relative;
  color: #fff;
  background: #000;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(120px, 12.5vw, 184px);
}
.prof-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: #0A0A0A url("/wp-content/uploads/2026/05/gradient-internal-dark.png") center / cover no-repeat;
}
.prof-hero .page-hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.prof-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.75) 100%);
}
.prof-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: clamp(24px, 2.6vw, 32px);
}
@media (min-width: 900px) {
  .prof-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 43%);
    column-gap: clamp(40px, 6vw, 96px);
  }
}
.prof-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 300;
  color: #fff;
  margin-bottom: clamp(44px, 5.5vw, 76px);
  transition: opacity var(--t-fast);
}
.prof-back__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.prof-back__icon svg { width: 15px; height: 15px; }
.prof-back:hover .prof-back__icon { background: #fff; color: #000; }
.prof-hero h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 22px;
}
/* titoli lunghi (nomi composti): riducono il corpo per restare su 2 righe a desktop */
.prof-hero--long h1  { font-size: clamp(36px, 4.1vw, 56px); }
.prof-hero--xlong h1 { font-size: clamp(32px, 3.3vw, 46px); }
/* scheda senza team (studio individuale): solo hero, respiro in basso prima del footer */
.prof-hero--solo { padding-bottom: clamp(72px, 8vw, 110px); }
.prof-hero--solo .prof-hero__grid { padding-bottom: 0; }
.prof-hero__desc {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.35;
  max-width: 46ch;
  margin: 0;
  color: #fff;
  opacity: 0.92;
}
.prof-hero__photo {
  margin: 0;
  background: #d3d3d3;
  aspect-ratio: 6 / 7;
  overflow: hidden;
  max-width: 420px;
}
@media (min-width: 900px) { .prof-hero__photo { max-width: none; } }
.prof-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

.prof-team {
  background: #000;
  color: #fff;
  padding-top: clamp(36px, 3.7vw, 44px);
  padding-bottom: clamp(72px, 8vw, 110px);
}
.prof-team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 36px;
}
@media (min-width: 600px) { .prof-team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .prof-team__grid { grid-template-columns: repeat(3, 1fr); gap: 72px 40px; } }
.prof-member figure {
  margin: 0 0 14px;
  background: #d3d3d3;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.prof-member img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(1); /* griglia sempre in B/N: uniforma foto di studi diversi (il ritratto hero resta a colori) */
}
.prof-member h3 {
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.prof-member p {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  padding: 0 0 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  color: #e6e8ef;
}
