/* ============================================================
LEGATUM — Scena hero (orb + anelli + testo).
Animazioni a TEMPO (durata fissa) attivate dalla posizione di
scroll: appaiono entrando, spariscono tornando su. Il globo
scende e svanisce in modo smooth. Codice originale.
============================================================ */
/* Display: Marcellus (Google Fonts) come sostituto di Mahameru finché non si ha il font ufficiale. */

:root {
  --indigo: #352f5a;
  --indigo-dark: #221f3a;
  --sand: #d9d3c9;
  --sand-light: #e8e5de;
  --cream: #f4f1ea;
  --ink: #211e33;
  --terra: #b66a48;
  --terra-light: #d3a691;
  --terra-dark: #a35c3f;
  --sec-pad: clamp(5.5rem, 11vw, 10rem);
  /* ----- type scale (unificato) ----- */
  --fs-h1: clamp(2.6rem, 6.6vw, 5.6rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-lead: clamp(1.6rem, 3.4vw, 2.7rem);
  --fs-body: clamp(1.02rem, 1.3vw, 1.18rem);
  --fs-small: clamp(.92rem, 1vw, 1rem);
  --fs-eyebrow: 13px;
  --fs-nav: 18px;
  --fs-btn: 15px;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Marcellus", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

html {
  background: #d9d3c9;
}

/* riempie l'area sotto la barra di Safari/Chrome su iOS */
html {
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  font-family: var(--sans);
  background: #d9d3c9;
  color: #352f5a;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- background "madre": NON fisso, alto quanto tutta la pagina ----------
Le sezioni vivono dentro questo fondo; scendendo si attraversano aloni in
punti diversi (terracotta/indaco) che scorrono insieme al contenuto. */
.bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #e2dcd1 0%, #d9d3c9 38%, #d2ccbe 70%, #ddd7cc 100%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bg__orb--a {
  top: 3%;
  left: -14vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(182, 106, 72, .14) 0%, transparent 66%);
  filter: blur(55px);
  animation: orbDriftA 28s ease-in-out infinite alternate;
}

.bg__orb--b {
  top: 26%;
  right: -16vw;
  width: 66vw;
  height: 66vw;
  background: radial-gradient(circle, rgba(99, 93, 128, .16) 0%, transparent 70%);
  filter: blur(60px);
  animation: orbDriftB 34s ease-in-out infinite alternate;
}

.bg__orb--c {
  top: 52%;
  left: -12vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(182, 106, 72, .10) 0%, transparent 70%);
  filter: blur(55px);
  animation: orbDriftA 31s ease-in-out infinite alternate;
}

.bg__orb--d {
  top: 74%;
  right: -14vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(99, 93, 128, .13) 0%, transparent 70%);
  filter: blur(60px);
  animation: orbDriftB 27s ease-in-out infinite alternate;
}

.bg__orb--e {
  top: 92%;
  left: -10vw;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(182, 106, 72, .10) 0%, transparent 70%);
  filter: blur(55px);
  animation: orbDriftA 33s ease-in-out infinite alternate;
}

@keyframes orbDriftA {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(7vw, 4vh) scale(1.1);
  }
}

@keyframes orbDriftB {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-6vw, -3vh) scale(1.12);
  }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* scrim FISSO: gradiente verticale del blu brand, dal 30% di opacità a 0 (nessun cambio allo scroll) */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(226, 220, 209, .75) 0%, rgba(226, 220, 209, 0) 100%);
  transition: opacity .3s ease;
}

body.menu-open .site-header::before {
  opacity: 0;
}

/* niente sfumatura sopra il popup */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.8rem);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  font-family: var(--sans);
  font-size: var(--fs-nav);
  letter-spacing: .01em;
  color: #352f5a;
  opacity: .85;
  transition: color .25s ease, opacity .2s ease;
}

.nav__menu a:hover,
.nav__menu a.is-active {
  color: var(--terra-dark);
  opacity: 1;
}

@media(max-width:1199px) {
  .nav__menu {
    display: none;
  }
}

.nav__logo img {
  height: 86px;
  width: auto;
  transition: filter .35s ease;
}

.nav__logo-img--menu {
  display: none;
}

body.menu-open .nav__logo-img--base {
  display: none;
}

body.menu-open .nav__logo-img--menu {
  display: block;
}

/* logo tutto bianco sul popup terracotta */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #352f5a;
  color: #f4f1ea;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-btn);
  transition: background .25s;
}

.nav__cta i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 13px;
  transition: transform .3s;
}

.nav__cta:hover {
  background: #221f3a;
}

.nav__cta:hover i {
  transform: translateX(2px);
}

/* ---------- selettore lingue ---------- */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.nav__lang button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 5px;
  color: rgba(53, 47, 90, .55);
  font: inherit;
  letter-spacing: inherit;
  transition: color .25s;
  -webkit-tap-highlight-color: transparent;
}

.nav__lang button:hover {
  color: #352f5a;
}

.nav__lang button.is-active {
  color: var(--terra-dark);
}

.nav__lang span {
  color: rgba(53, 47, 90, .28);
  font-weight: 400;
}

@media(max-width:1199px) {
  .nav__lang--header {
    display: none;
  }
}

/* variante dentro il popup terracotta */
.menu-overlay__lang {
  margin: 0 0 2.2rem -5px;
  font-size: 13px;
  position: relative;
  opacity: 0;
  transition: opacity .8s ease 0s;
}

/* sopra alle voci; solo dissolvenza */
body.menu-open .menu-overlay__lang {
  opacity: 1;
  transition-delay: .58s;
}

.menu-overlay__lang button {
  color: rgba(244, 241, 234, .6);
}

.menu-overlay__lang button:hover {
  color: #fff;
}

.menu-overlay__lang button.is-active {
  color: var(--terra);
}

.menu-overlay__lang span {
  color: rgba(244, 241, 234, .3);
}

/* ---------- menu mobile (popup) ---------- */
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #352f5a;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .35s ease;
}

body.menu-open .nav__burger span {
  background: var(--cream);
}

body.menu-open .nav__burger span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .nav__burger span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media(max-width:1199px) {
  .nav__burger {
    display: block;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(28px, 9vw, 72px);
  overflow: hidden;
  background: linear-gradient(180deg, #352f5a 0%, #2b2749 55%, #221f3a 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* logo filigrana: laterale, grande, tagliato sul bordo destro */
.menu-overlay__logo {
  position: absolute;
  right: -42vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(140vw, 660px);
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: .13;
  pointer-events: none;
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: clamp(.9rem, 2.8vh, 1.5rem);
  position: relative;
}

.menu-overlay__nav a {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--cream);
  width: max-content;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .65s cubic-bezier(.16, 1, .3, 1), color .25s;
  transition-delay: 0s;
}

body.menu-open .menu-overlay__nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(.08s + var(--i)*.06s);
}

.menu-overlay__nav a:hover,
.menu-overlay__nav a:active {
  color: var(--terra);
}

.menu-overlay__cta {
  margin-top: 2.4rem;
  position: relative;
  opacity: 0;
  transition: opacity .8s ease 0s;
}

/* solo dissolvenza: nessun saltello */
body.menu-open .menu-overlay__cta {
  opacity: 1;
  transition-delay: .45s;
}

@media(prefers-reduced-motion:reduce) {

  .menu-overlay,
  .menu-overlay__nav a,
  .menu-overlay__cta {
    transition: none;
  }
}

/* ---------- scena ---------- */
.scene {
  position: relative;
  z-index: 1;
}

@media(min-width:1024px) {
  .scene {
    height: 380vh;
  }
}

.scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* gruppo grafico: globo + anelli + puntini, si muovono e scalano INSIEME */
.scene__graphic {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
  transform-origin: center center;
}

.scene__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene__rings svg {
  width: min(125vh, 125vw);
  height: min(125vh, 125vw);
  overflow: visible;
}

.scene__rings .ring {
  fill: none;
  stroke: rgba(53, 47, 90, .16);
}

.scene__rings .ring-dot {
  fill: var(--terra);
  opacity: 1;
}

@media(prefers-reduced-motion:reduce) {
  .scene__rings .ring-dot {
    display: none;
  }
}

/* sottolineatura delle parole evidenziate nei titoli (larga quanto la parola) */

.scene__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46vw, 440px);
  aspect-ratio: 1;
  z-index: 2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  background: var(--terra);
  box-shadow: 0 0 90px 14px rgba(182, 106, 72, .26);
}


.scene__layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  padding: 0 28px;
  text-align: center;
}

.scene__inner {
  max-width: 1120px;
  margin-inline: auto;
}

/* sopratitoli: stile unico (come "I PARTNER"), tutti color terracotta */
.eyebrow,
.tag,
.team__eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
}

/* Titolo (fase 1) — le parole salgono dal basso (a tempo) */
.scene__hero {
  opacity: 1;
}

.scene__hero h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  font-size: var(--fs-h1);
  line-height: 1.06;
  color: #352f5a;
  margin: 0;
}

.scene__hero h1 .grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* "significato" bianco, spicca sul rombo terracotta */
/* entra dal basso e esce verso l'alto, sempre con maschera (come gli altri titoli) */
.scene__hero h1 .w {
  transform: translateY(125%);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}

.scene.ready .scene__hero h1 .w {
  transform: translateY(0);
}

.scene.ready.title-out .scene__hero h1 .w {
  transform: translateY(-130%);
}

/* Manifesto (fase 2) — appare a tempo, parola per parola */
.scene__mani {
  opacity: 0;
  transition: opacity .6s ease;
}

.scene.mani-in .scene__mani {
  opacity: 1;
}

.scene__mani-big {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.18;
  max-width: 38rem;
  margin: 0 auto;
  color: #352f5a;
}

.w-mask {
  display: inline-block;
  overflow: hidden;
  padding: .08em .04em .26em;
  margin: -.08em -.04em -.26em;
  vertical-align: top;
}

.w {
  display: inline-block;
  transform: translateY(130%);
  transition: transform 1.05s cubic-bezier(.16, 1, .3, 1);
}

.scene.mani-in .scene__mani-big .w {
  transform: translateY(0);
}

.scene__mani-body {
  margin: 1.7rem auto 0;
  max-width: 38rem;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: rgba(53, 47, 90, .78);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease .35s, transform .8s ease .35s;
}

.scene.mani-in .scene__mani-body {
  opacity: 1;
  transform: none;
}

.scene__cue {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  z-index: 3;
  background: linear-gradient(var(--terra), rgba(182, 106, 72, 0));
  animation: cuePulse 2.4s ease-in-out infinite;
}

@keyframes cuePulse {

  0%,
  100% {
    opacity: .35;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- sezione "Il valore che resta" ---------- */
.valore {
  position: relative;
  z-index: 1;
  padding: var(--sec-pad) 0;
  color: #352f5a;
}

.valore__icon {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(96vw, 1520px);
  z-index: 0;
  filter: brightness(0);
  opacity: 0;
  transform: translateY(-50%) translateX(40px) scale(.9) rotate(-8deg);
  transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1);
}

.valore.in .valore__icon {
  opacity: .1;
  transform: translateY(-50%) translateX(0) scale(1) rotate(0);
}

.valore__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.valore__col {
  max-width: 640px;
}

.valore .eyebrow {
  color: var(--terra);
}

.valore__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.05;
  margin: 1rem 0 2.2rem;
}

.valore__title .w {
  transform: translateY(120%);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}

.valore.in .valore__title .w {
  transform: translateY(0);
}

.valore__body p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(53, 47, 90, .82);
  margin: 0 0 1.1rem;
  max-width: 48ch;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.15s ease, transform 1.15s cubic-bezier(.16, 1, .3, 1);
}

.valore.in .valore__body p {
  opacity: 1;
  transform: none;
}

.valore.in .valore__body p:nth-child(1) {
  transition-delay: .20s;
}

.valore.in .valore__body p:nth-child(2) {
  transition-delay: .34s;
}

.valore.in .valore__body p:nth-child(3) {
  transition-delay: .48s;
}

.valore__strong {
  color: #352f5a !important;
  font-weight: 500;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #352f5a;
  color: #f4f1ea;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-btn);
  transition: background .25s, transform .25s;
}

.btn-pill i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  transition: transform .3s;
}

.btn-pill:hover {
  background: #221f3a;
  transform: translateY(-2px);
}

.btn-pill:hover i {
  transform: translateX(2px);
}

.valore__cta {
  margin-top: 2.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease .6s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .6s;
}

.valore.in .valore__cta {
  opacity: 1;
  transform: none;
}

@media(max-width:1023px) {
  .valore__icon {
    right: -30%;
    width: 115vw;
  }

  .valore.in .valore__icon {
    opacity: .1;
  }

  .valore__col {
    max-width: none;
  }
}

/* ---------- sezione "I Partner" (team) — trasparente sul fondo continuo ---------- */
.team {
  position: relative;
  z-index: 2;
  background: transparent;
  color: #352f5a;
  padding: var(--sec-pad) 0;
  overflow: hidden;
}

/* aloni indaco morbidi: continuità col "fade" del fondo */
.team::before {
  content: "";
  position: absolute;
  top: 16%;
  right: -6%;
  width: min(70vw, 1020px);
  height: min(64vw, 920px);
  background: radial-gradient(closest-side, rgba(53, 47, 90, .10), rgba(53, 47, 90, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.team::after {
  content: "";
  position: absolute;
  bottom: 6%;
  left: -10%;
  width: min(56vw, 800px);
  height: min(54vw, 740px);
  background: radial-gradient(closest-side, rgba(53, 47, 90, .08), rgba(53, 47, 90, 0) 72%);
  pointer-events: none;
  z-index: 0;
}

.team__wrap {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.team__eyebrow {
  margin-bottom: 20px;
}

.team__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: end;
}

.team__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #352f5a;
  margin: 0;
  max-width: 20ch;
}

.team__body {
  justify-self: end;
  max-width: 38ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #352f5a;
  margin: 0 0 .4rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1) .15s, transform 1.2s cubic-bezier(.22, 1, .36, 1) .15s;
}

.team.in .team__body {
  opacity: 1;
  transform: none;
}

@media(max-width:860px) {
  .team__layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-items: start;
  }

  .team__title {
    max-width: none;
  }

  .team__body {
    justify-self: start;
    font-size: var(--fs-body);
  }
}

/* reveal parole (usa la maschera .w globale) */
.team.in .team__eyebrow .w,
.team.in .team__title .w,
.team.in .team-row__name .w {
  transform: translateY(0);
}

.team__list {
  list-style: none;
  width: 100%;
  margin: clamp(3.5rem, 8vw, 6rem) 0 0;
  padding: 0;
  border-top: 1px solid rgba(53, 47, 90, .18);
}

.team-row {
  opacity: 0;
  transition: opacity 1.1s ease;
}

/* la riga interattiva è un <button> vero (ruolo corretto per l'albero di accessibilità) */
.team-row__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.4rem, 2.8vw, 2.2rem) 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(53, 47, 90, .18);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.team.in .team-row {
  opacity: 1;
}

.team.in .team-row:nth-child(1) {
  transition-delay: .18s;
}

.team.in .team-row:nth-child(2) {
  transition-delay: .32s;
}

.team-row__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: rgba(53, 47, 90, .45);
  transition: color .4s ease;
}

.team-row__role {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(53, 47, 90, .45);
  transition: color .4s ease;
  white-space: nowrap;
}

.team-row__plus {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s ease, transform .3s ease;
}

.team-row__plus path {
  stroke: currentColor;
  stroke-width: 1.5;
}

.team-row__btn:hover .team-row__name,
.team-row__btn:focus-visible .team-row__name {
  color: #352f5a;
}

.team-row__btn:hover .team-row__role,
.team-row__btn:focus-visible .team-row__role {
  color: var(--terra-dark);
}

.team-row__btn:hover .team-row__plus,
.team-row__btn:focus-visible .team-row__plus {
  opacity: 1;
  transform: scale(1);
}

.team-row__btn:focus {
  outline: none;
}

/* overlay scheda partner: l'anteprima (hover) diventa scheda al click */
.team-overlay {
  --content-w: clamp(470px, 53vw, 730px);
  --img-h: clamp(320px, 59vh, 496px);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s;
}

.team-overlay.is-preview,
.team-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.team-overlay.is-open {
  pointer-events: auto;
}

.team-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 30, .62);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s ease;
}

.team-overlay.is-open .team-overlay__bg {
  opacity: 1;
}

.team-card {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: min(1200px, 100%);
  background: var(--sand-light);
  overflow: hidden;
  transform: scale(.98);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.team-overlay.is-preview .team-card,
.team-overlay.is-open .team-card {
  transform: scale(1);
}

.team-card__img {
  flex: 0 0 auto;
  background: var(--sand);
}

.team-card__img img {
  display: block;
  height: var(--img-h);
  width: auto;
}

.team-card__content {
  position: relative;
  flex: 0 0 auto;
  width: var(--content-w);
  max-width: 0;
  overflow: hidden;
  transition: max-width .55s cubic-bezier(.22, 1, .36, 1);
}

.team-overlay.is-open .team-card__content {
  max-width: var(--content-w);
}

/* sfumatura in fondo: le ultime righe della bio svaniscono nel colore della card (effetto ampio, stile riferimento) */
.team-card__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: linear-gradient(to bottom, rgba(232, 229, 222, 0) 0%, rgba(232, 229, 222, .85) 62%, var(--sand-light) 100%);
}

/* opacità pilotata da JS: 1 quando c'è testo sotto, 0 a fine scroll (via --cardfade) */
.team-overlay.is-open .team-card__content::after {
  opacity: var(--cardfade, 1);
}

.team-card__inner {
  width: var(--content-w);
  height: var(--img-h);
  overflow-y: auto;
  padding: clamp(2.5rem, 4.2vw, 3.6rem) clamp(2.2rem, 3.4vw, 3.2rem);
  scrollbar-gutter: stable;
  opacity: 0;
  transition: opacity .4s ease .18s;
  scrollbar-width: thin;
  scrollbar-color: var(--terra) rgba(53, 47, 90, .12);
}

/* scrollbar brand: sottile, terracotta */
.team-card__inner::-webkit-scrollbar {
  width: 6px;
}

.team-card__inner::-webkit-scrollbar-track {
  background: rgba(53, 47, 90, .10);
  border-radius: 3px;
}

.team-card__inner::-webkit-scrollbar-thumb {
  background: var(--terra);
  border-radius: 3px;
}

.team-card__inner::-webkit-scrollbar-thumb:hover {
  background: #a35c3f;
}

.team-overlay.is-open .team-card__inner {
  opacity: 1;
}

.team-card__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: #352f5a;
  margin: 0 0 .35rem;
}

.team-card__role {
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1.5rem;
}

.team-card__bio p {
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #352f5a;
  margin: 0 0 .9rem;
}

.team-card__bio p:last-child {
  margin-bottom: 0;
}

/* pulsante chiudi: quadrato terracotta (stile bottoni) */
.team-card__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--terra);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--cream);
  z-index: 4;
  transition: background .25s, transform .25s;
}

.team-overlay.is-open .team-card__close {
  display: flex;
}

.team-card__close:hover {
  background: #a35c3f;
  transform: translateY(-1px);
}

.team-card__close svg {
  width: 14px;
  height: 14px;
}

.team-card__close path {
  stroke: currentColor;
  stroke-width: 1.8;
}

@media(max-width:1023px) {
  .team-overlay {
    --content-w: 100%;
  }

  .team-overlay.is-preview {
    opacity: 0;
    visibility: hidden;
  }

  .team-card {
    flex-direction: column;
    width: min(560px, 100%);
    max-height: 88vh;
    overflow: hidden;
  }

  .team-card__img {
    flex: 0 0 auto;
    width: 100%;
  }

  .team-card__img img {
    width: 100%;
    height: 45vh;
    object-fit: cover;
    object-position: center top;
    max-width: none;
  }

  .team-card__content {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .team-card__inner {
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
}

@media(prefers-reduced-motion:reduce) {

  .team-overlay,
  .team-overlay__bg,
  .team-card,
  .team-card__content,
  .team-card__inner {
    transition: none;
  }
}

/* ---------- sezioni "Chi siamo": Fiducia + Advisory (sul fondo continuo) ---------- */
.hl {
  color: var(--terra);
}

.tag {
  display: inline-block;
  margin: 0;
}

/* stessa resa di .eyebrow (sopra); niente più pallino */

/* testo corpo CONDIVISO: stesso font, dimensione e colore in tutte le "Chi siamo" */
.fiducia__lead,
.advisory__lead,
.fiducia__col p:not(.tag),
.cosa__text,
.cosa__item-desc p {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.78;
  color: #352f5a;
  margin: 0;
  max-width: 46ch;
}

/* — Fiducia e filantropia — */
.fiducia {
  position: relative;
  z-index: 2;
  padding: var(--sec-pad) 0;
  overflow: hidden;
}

.fiducia__wrap {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.fiducia__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.fiducia__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #352f5a;
  margin: 1rem 0 0;
  max-width: 15ch;
}

.fiducia__lead {
  align-self: end;
  justify-self: end;
}

.advisory__lead {
  justify-self: end;
}

/* parola centrale: in FLUSSO, centrata, con spazio sopra e sotto (mai sul testo) */
.fiducia__mark {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 18vw, 17rem);
  line-height: 1;
  color: rgba(53, 47, 90, .09);
  pointer-events: none;
  margin: clamp(3.5rem, 8vw, 7rem) 0;
}

.fiducia__cols {
  display: flex;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 6rem);
  flex-wrap: wrap;
}

.fiducia__col {
  flex: 0 1 clamp(260px, 42%, 44ch);
  border-left: 1px solid rgba(53, 47, 90, .22);
  padding-left: clamp(1.2rem, 2vw, 2rem);
}

.fiducia__col p:not(.tag) {
  margin-top: 1.1rem;
  max-width: 42ch;
}

/* — Philanthropy advisory — */
.advisory {
  position: relative;
  z-index: 2;
  padding: var(--sec-pad) 0;
}

.advisory__wrap {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.advisory__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}

.advisory__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #352f5a;
  margin: 1rem 0 0;
  max-width: 15ch;
}

.advisory__feats {
  list-style: none;
  margin: clamp(4.5rem, 10vw, 8rem) 0 0;
  padding: clamp(3rem, 5vw, 4.5rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(53, 47, 90, .18);
}

/* icona a SINISTRA del testo */
.feat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
}

.feat__txt {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.24;
  color: #352f5a;
  max-width: 16ch;
}

.feat__txt em {
  font-style: normal;
  color: var(--terra);
}

.feat__ico {
  flex: 0 0 clamp(54px, 5vw, 70px);
  width: clamp(54px, 5vw, 70px);
  height: clamp(54px, 5vw, 70px);
  color: #352f5a;
}

.feat__ico svg,
.feat__ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* reveal "Chi siamo" — più morbide e smooth (fade-up; preserva l'evidenziatura) */
.fiducia__lead,
.fiducia__col,
.advisory__lead,
.feat {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1.3s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1);
}

.fiducia.in .fiducia__lead,
.fiducia.in .fiducia__col,
.advisory.in .advisory__lead,
.advisory.in .feat {
  opacity: 1;
  transform: none;
}

/* titoli "Chi siamo": stessa risalita mascherata parola-per-parola di "Il valore che resta" */
.fiducia.in .fiducia__title .w,
.advisory.in .advisory__title .w {
  transform: translateY(0);
}

/* FIDUCIA: stessa risalita mascherata (alpha finale resta .07) */
.fiducia__mark .w {
  transition-duration: 1.6s;
}

/* FIDUCIA più lenta */
.fiducia.in .fiducia__mark .w {
  transform: translateY(0);
}

/* ...e in lieve ritardo (delay per-lettera inline) */
.fiducia.in .fiducia__lead {
  transition-delay: .16s;
}

.fiducia.in .fiducia__col:nth-child(1) {
  transition-delay: .55s;
}

/* prima la colonna sinistra */
.fiducia.in .fiducia__col:nth-child(2) {
  transition-delay: .95s;
}

/* poi la destra (scalate) */
.advisory.in .advisory__lead {
  transition-delay: .16s;
}

.advisory.in .feat:nth-child(1) {
  transition-delay: .24s;
}

.advisory.in .feat:nth-child(2) {
  transition-delay: .40s;
}

.advisory.in .feat:nth-child(3) {
  transition-delay: .56s;
}

@media(max-width:860px) {

  .fiducia__top,
  .advisory__top {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .fiducia__cols {
    flex-direction: column;
    gap: 2.4rem;
  }

  .fiducia__col {
    flex-basis: auto;
  }

  .fiducia__title,
  .advisory__title {
    max-width: none;
  }

  .fiducia__lead,
  .advisory__lead {
    align-self: start;
    justify-self: start;
  }

  .fiducia__mark {
    font-size: 14vw;
    margin: 2.5rem 0;
  }

  .advisory__feats {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
}

@media(prefers-reduced-motion:reduce) {

  .fiducia__title,
  .advisory__title,
  .fiducia__lead,
  .fiducia__col,
  .advisory__lead,
  .feat,
  .fiducia__mark {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- sezione "Cosa facciamo" (stile expertise/fableco: pin + colonne che salgono) ---------- */
.cosa {
  position: relative;
  z-index: 2;
  color: #352f5a;
}

.cosa__sticky {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--sec-pad) 40px;
}

.cosa__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 5rem);
}

@media(min-width:1024px) {
  .cosa {
    height: 250vh;
  }

  .cosa__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
}

/* intro: occhiello sopra, titolo a sinistra e testo a destra (come le altre sezioni) */
.cosa__intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.1rem, 2.2vw, 1.8rem) clamp(2.5rem, 6vw, 6rem);
  align-items: end;
  padding-left: 1.5rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.cosa__intro .tag {
  grid-column: 1/-1;
}

.cosa__text {
  justify-self: end;
  align-self: end;
}

.cosa.in .cosa__intro {
  opacity: 1;
  transform: none;
}

.cosa__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #352f5a;
  margin: 0;
  max-width: 24ch;
}

.cosa.in .cosa__title .w {
  transform: translateY(0);
}

.cosa__text {
  max-width: 52ch;
}

/* card stile "colonne": titolo in alto, icona al centro, numero + testo in basso (sempre visibile) */
.cosa__items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cosa__item {
  will-change: transform, opacity;
}

.cosa__item-inner {
  display: flex;
  flex-direction: column;
  min-height: min(26rem, 52vh);
  padding: 1.4rem 1.5rem 0;
  border-left: 1px solid rgba(53, 47, 90, .18);
}

.cosa__item-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0;
  color: #352f5a;
  max-width: 14ch;
  min-height: 2.5em;
}

/* icona a quota fissa; numero+testo ancorati al fondo della card */
.cosa__item-ico {
  margin: clamp(2rem, 5vh, 3.5rem) 0 auto;
  display: flex;
  justify-content: center;
  color: #352f5a;
}

.cosa__item-ico svg,
.cosa__item-ico img {
  width: clamp(54px, 5vw, 70px);
  height: auto;
  display: block;
}

.cosa__item-num {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1;
  color: rgba(53, 47, 90, .34);
  margin: 0 0 .7rem;
}

.cosa__item-desc {
  padding-bottom: .5rem;
}

.cosa__item-desc p {
  font-size: var(--fs-body);
  line-height: 1.6;
}

@media(max-width:1023px) {
  .cosa__sticky {
    padding: var(--sec-pad) 40px;
  }

  .cosa__intro {
    padding-left: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cosa__text {
    justify-self: start;
  }

  .cosa__items {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* card mobile come il riferimento: titolo in alto, icona grande al centro, numero+testo in basso */
  .cosa__item-inner {
    display: flex;
    flex-direction: column;
    min-height: min(108vw, 480px);
    padding: 1.5rem 1.4rem 1.6rem;
    border: 1px solid rgba(53, 47, 90, .16);
    background: linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(232, 229, 222, .18) 100%);
  }

  .cosa__item-ico {
    margin: auto 0;
    display: flex;
    justify-content: center;
  }

  .cosa__item-ico svg,
  .cosa__item-ico img {
    width: clamp(96px, 28vw, 120px);
  }

  .cosa__item-title {
    max-width: none;
    min-height: 0;
  }

  .cosa__item-num {
    margin: 0 0 .5rem;
    font-size: 2.1rem;
  }

  .cosa__item-desc {
    padding-bottom: 0;
    min-height: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .cosa__intro {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- sezione "Approccio" (percorso: linea che si disegna con lo scroll) ----------
Una curva SVG attraversa la sezione; lo scroll la "disegna" (stroke-dashoffset)
e accende le tappe man mano che la punta le raggiunge. Le tappe sono ancorate
al tracciato via JS (getPointAtLength), alternate a sinistra/destra. */
.percorso {
  position: relative;
  z-index: 2;
  color: #352f5a;
  padding: var(--sec-pad) 0;
}

.percorso__wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.percorso__head {
  max-width: 620px;
  margin-left: auto;
}

.percorso__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #352f5a;
  margin: 1rem 0 1.4rem;
}

.percorso__sub {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.78;
  color: #352f5a;
  margin: 0;
  max-width: 44ch;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(.16, 1, .3, 1) .2s, transform 1.2s cubic-bezier(.16, 1, .3, 1) .2s;
}

.percorso.in .percorso__sub {
  opacity: 1;
  transform: none;
}

.percorso.in .percorso__title .w {
  transform: translateY(0);
}

.percorso__track {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2.5rem);
}

.percorso__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.percorso__ghost {
  fill: none;
  stroke: rgba(53, 47, 90, .18);
  stroke-width: 1.2;
}

.percorso__path {
  fill: none;
  stroke: rgba(53, 47, 90, .55);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.percorso__tip {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #352f5a;
  box-shadow: 0 0 10px rgba(53, 47, 90, .5);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.percorso__svg--mob {
  display: none;
}

.pstop {
  position: absolute;
  width: 0;
  height: 0;
}

.pstop__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(53, 47, 90, .34);
  transform: translate(-50%, -50%) scale(.5);
  transition: background .5s ease, box-shadow .5s ease, transform .5s ease;
}

.pstop.on .pstop__dot {
  background: var(--terra);
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 0 0 6px rgba(182, 106, 72, .10), 0 0 20px rgba(182, 106, 72, .5);
}

/* testo centrato VERTICALMENTE sul punto (come il riferimento) */
.pstop__txt {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  width: max-content;
  max-width: 44ch;
  opacity: 0;
  translate: 0 16px;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), translate .9s cubic-bezier(.16, 1, .3, 1);
}

.pstop[data-side="left"] .pstop__txt {
  right: 26px;
}

.pstop[data-side="right"] .pstop__txt {
  left: 26px;
}

.pstop.on .pstop__txt {
  opacity: 1;
  translate: 0 0;
}

.pstop__h {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: #352f5a;
  margin: 0 0 .6rem;
}

.pstop__p {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #352f5a;
  margin: 0;
  max-width: 42ch;
}

@media(max-width:1023px) {
  .percorso__head {
    max-width: none;
    margin-left: 0;
  }

  .percorso__svg--desk {
    display: none;
  }

  .percorso__svg--mob {
    display: block;
  }

  .percorso__track {
    margin-top: 2.4rem;
  }

  /* su mobile il testo sta sempre a destra del punto, centrato su di esso */
  /* testo centrato SOTTO il punto: la linea scorre al centro e passa dietro ai testi */
  .pstop[data-side="left"] .pstop__txt,
  .pstop[data-side="right"] .pstop__txt {
    left: 0;
    right: auto;
  }

  .pstop__txt {
    top: 30px;
    transform: translateX(-50%);
    text-align: center;
    max-width: 78vw;
  }

  .pstop__txt::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -34px -44px;
    background: radial-gradient(ellipse closest-side, rgba(217, 211, 201, .95) 50%, rgba(217, 211, 201, 0) 100%);
  }

  .pstop__p {
    max-width: none;
    margin-inline: auto;
  }

  .pstop__dot {
    width: 14px;
    height: 14px;
  }

  .pstop.on .pstop__dot {
    box-shadow: 0 0 0 8px rgba(182, 106, 72, .15), 0 0 26px rgba(182, 106, 72, .6);
  }
}

@media(prefers-reduced-motion:reduce) {
  .percorso__sub {
    opacity: 1 !important;
    transform: none !important;
  }

  .pstop__txt {
    opacity: 1 !important;
    translate: none !important;
  }
}

/* ---------- sezione CTA: frase e bottone centrali, orbite che ruotano ---------- */
.cta {
  position: relative;
  z-index: 2;
  padding: var(--sec-pad) 0;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(80vw, 760px);
  height: min(80vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 106, 72, .15) 0%, transparent 65%);
  filter: blur(28px);
  pointer-events: none;
}

/* grafica CTA: rombi contenuti coi quadratini che viaggiano (come la hero), senza tagli */
.cta__svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 92vw);
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.cta__svg .cta-ring {
  fill: none;
  stroke: rgba(53, 47, 90, .16);
}

.cta__svg .cta-dot {
  fill: var(--terra);
  opacity: 1;
}

@media(prefers-reduced-motion:reduce) {
  .cta__svg .cta-dot {
    display: none;
  }
}

.cta__inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

.cta__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.16;
  color: #352f5a;
  max-width: 26ch;
  margin: 1.4rem auto 2.6rem;
}

.cta.in .cta__title .w {
  transform: translateY(0);
}

.cta__btn {
  font-size: var(--fs-btn);
  padding: 11px 11px 11px 26px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease .35s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .35s, background .25s;
}

.cta__btn i {
  width: 38px;
  height: 38px;
}

.cta.in .cta__btn {
  opacity: 1;
  transform: none;
}

@media(prefers-reduced-motion:reduce) {
  .cta__btn {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- footer: full width, grande, sfumato verso il blu scuro ---------- */
.footer {
  position: relative;
  z-index: 2;
  color: #352f5a;
  background: linear-gradient(180deg, rgba(217, 211, 201, 0) 0%, rgba(206, 199, 187, .55) 42%, #cfc8ba 100%);
}

.footer__wrap {
  width: 100%;
  padding: var(--sec-pad) clamp(28px, 4vw, 64px) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(53, 47, 90, .18);
}

.footer__logo {
  height: clamp(80px, 6.6vw, 106px);
  width: auto;
  margin-bottom: 1.6rem;
}

.footer__desc {
  font-family: var(--sans);
  font-size: var(--fs-small);
  line-height: 1.75;
  color: #352f5a;
  margin: 0 0 1.4rem;
  max-width: 40ch;
}

.footer__col--menu {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  justify-content: flex-start;
}

.footer__col--menu a {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
  color: #352f5a;
  width: max-content;
  transition: color .25s;
}

.footer__col--menu a:hover {
  color: var(--terra-dark);
}

/* claim (CTA) a sinistra sotto il logo */
.footer__claim {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.65rem, 2.3vw, 2.45rem);
  line-height: 1.14;
  color: #352f5a;
  margin: 0 0 1.2rem;
  max-width: 15ch;
}

.footer.in .footer__claim .w {
  transform: translateY(0);
}

/* parole che salgono al reveal */
.footer__cta {
  margin-top: 1.3rem;
  font-size: var(--fs-btn);
  padding: 12px 12px 12px 28px;
}

.footer__cta i {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

/* colonna Contatti a destra */
.footer__col--contact {
  justify-self: end;
}

/* spinta a destra */
.footer__contact-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.1;
  color: #352f5a;
  margin: 0 0 1.5rem;
}

.footer__contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #352f5a;
}

.footer__contact-logo {
  display: inline-flex;
  margin-top: 1.4rem;
  color: #352f5a;
  transition: color .04s ease, transform .25s ease;
}

.footer__contact-logo svg {
  width: 30px;
  height: 30px;
  display: block;
}

.footer__contact-logo:hover {
  color: var(--terra-dark);
  transform: translateY(-2px);
}

.footer__contact a {
  color: #352f5a;
  width: max-content;
  transition: color .04s;
}

.footer__contact a:hover {
  color: var(--terra-dark);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.6rem 0 calc(2rem + env(safe-area-inset-bottom)) 0;
  border-top: 1px solid rgba(53, 47, 90, .18);
  font-family: var(--sans);
  font-size: var(--fs-small);
  letter-spacing: .02em;
  color: #352f5a;
}

.footer__legal {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.footer__legal a {
  color: #352f5a;
  transition: color .04s;
}

.footer__legal a:hover {
  color: var(--terra-dark);
}

/* reveal footer: testi e voci menu entrano in sequenza */
.footer__col--brand,
.footer__col--contact {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1);
}

.footer__col--menu a {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), color .04s;
}

.footer.in .footer__col--brand,
.footer.in .footer__col--contact,
.footer.in .footer__col--menu a {
  opacity: 1;
  transform: none;
}

.footer.in .footer__col--brand {
  transition-delay: .12s;
}

.footer.in .footer__col--menu a:nth-child(1) {
  transition-delay: .18s;
}

.footer.in .footer__col--menu a:nth-child(2) {
  transition-delay: .28s;
}

.footer.in .footer__col--menu a:nth-child(3) {
  transition-delay: .38s;
}

.footer.in .footer__col--menu a:nth-child(4) {
  transition-delay: .48s;
}

.footer.in .footer__col--menu a:nth-child(5) {
  transition-delay: .58s;
}

.footer.in .footer__col--contact {
  transition-delay: .4s;
}

@media(prefers-reduced-motion:reduce) {

  .footer__col--brand,
  .footer__col--contact,
  .footer__col--menu a {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media(max-width:860px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .footer__col--menu {
    justify-content: flex-start;
  }

  .footer__col--contact {
    justify-self: start;
  }

  /* a sinistra come le altre su mobile */
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    padding-right: 0;
  }
}


/* ---------- responsive: hero con pin e scroll anche su mobile (come desktop, più corta) ---------- */
@media(max-width:1023px) {
  .scene {
    height: 320vh;
  }

  .scene__rings svg {
    width: 170vw;
    height: 170vw;
  }

  .scene__orb {
    width: 56vw;
    max-width: 320px;
  }

  /* cerchio: dimensione bilanciata su mobile */
  .scene__layer {
    padding: 0 24px;
  }

  .scene__mani-body {
    max-width: 36ch;
  }
}

/* schermi piccoli: margini più stretti e nav compatta */
@media(max-width:640px) {
  .nav {
    padding: 14px 20px;
  }

  .nav__logo img {
    height: 64px;
  }

  .nav__cta {
    display: none;
  }

  .valore__inner,
  .team__wrap,
  .fiducia__wrap,
  .advisory__wrap,
  .percorso__wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cosa__sticky {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer__wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media(prefers-reduced-motion:reduce) {

  .scene__hero,
  .scene__mani,
  .scene__mani-body {
    opacity: 1 !important;
  }

  .scene__hero .scene__inner,
  .w {
    transform: none !important;
  }

  .scene__cue {
    animation: none;
  }
}

/* ============================================================
   PRELOADER (intro): cerchio terra a tutto schermo -> logo
   (reveal mask verso il basso) -> il cerchio si stringe alla
   dimensione dell'orb -> entrano header, titolo e anelli
   (a cascata dall'interno verso l'esterno).
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

/* NIENTE cerchio separato: è lo STESSO orb del sito che parte enorme
   (riempie lo schermo di terra) e si stringe alla sua misura. Così non
   c'è nessun passaggio di consegne tra due cerchi -> niente saltino. */
.scene__orb {
  animation: orbIntro 2.1s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes orbIntro {

  0%,
  38% {
    transform: translate(-50%, -50%) scale(14);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.preloader__logo {
  position: relative;
  z-index: 2;
}

.preloader__logo img {
  height: clamp(60px, 8.5vw, 104px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  /* logo bianco sul cerchio terra */
  animation: preLogoIn .9s cubic-bezier(.16, 1, .3, 1) .2s both,
    preLogoOut .55s ease 1.15s forwards;
}

@keyframes preLogoIn {
  /* mask: si svela dall'alto verso il basso + leggera discesa */
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preLogoOut {
  to {
    opacity: 0;
  }
}

/* --- entrata degli elementi dopo il preloader --- */
.site-header {
  animation: introHeader .8s cubic-bezier(.16, 1, .3, 1) 2.15s both;
}

@keyframes introHeader {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.scene__rings .ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringIn .6s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes ringIn {
  from {
    opacity: 0;
    transform: scale(.45);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* a cascata: prima l'anello più vicino al cerchio centrale, poi verso l'esterno */
.scene__rings .ring:nth-child(1) {
  animation-delay: 2.2s;
}

.scene__rings .ring:nth-child(2) {
  animation-delay: 2.28s;
}

.scene__rings .ring:nth-child(3) {
  animation-delay: 2.36s;
}

.scene__rings .ring:nth-child(4) {
  animation-delay: 2.44s;
}

.scene__rings .ring:nth-child(5) {
  animation-delay: 2.52s;
}

.scene__rings .ring:nth-child(6) {
  animation-delay: 2.6s;
}

.scene__rings .ring-dot {
  animation: dotIn .5s ease 2.75s both;
}

@keyframes dotIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* accessibilità: niente intro con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #preloader {
    display: none !important;
  }

  .site-header,
  .scene__orb,
  .scene__rings .ring,
  .scene__rings .ring-dot {
    animation: none !important;
  }
}

/* Marcellus (display) un filo più "bold": leggero text-stroke solo sui titoli/testi display. */
.scene__hero h1,
.scene__mani-big,
.valore__title,
.team__title,
.fiducia__title,
.advisory__title,
.cosa__title,
.cosa__item-title,
.cosa__item-num,
.percorso__title,
.pstop__h,
.cta__title,
.team-card__name,
.team-row__name,
.footer__contact-title,
.footer__claim,
.footer__col--menu a,
.menu-overlay__nav a,
.feat__txt {
  -webkit-text-stroke: 1px currentColor;
}

/* Skip-link (accessibilità: salta al contenuto) — visibile solo al focus da tastiera */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10000;
  background: #352f5a;
  color: #f4f1ea;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}
