/* ==================================================================
   Gigi la giraffa infermiere APS — pagina dell'associazione

   Si appoggia a /css/style.css della home: da lì arrivano colori,
   font, barra di navigazione, menù mobile, pulsanti, cielo WebGL,
   nastro, footer smerlato e tasto "torna su". Qui c'è solo ciò che
   la home non ha.
   ================================================================== */

/* ---------------------------------------------------------------- NAVBAR */
/* Cinque voci più il pulsante «Associati»: il menù si spinge a destra
   invece di stare al centro fra logo e hamburger come nella home. */
.page-assoc .nav__inner { justify-content: flex-start; }
.page-assoc .nav__menu  { margin-left: auto; }

.page-assoc .nav__brand-text small {
  display: block;
  margin-top: 4px;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: .62em;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.nav__cta {
  flex: none;
  margin-left: 6px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: .95rem;
}

.mobile-menu__cta { align-self: flex-start; margin-top: 34px; }

/* con cinque voci il nome accanto al logo non ci sta prima */
@media (min-width: 901px) and (max-width: 1240px) {
  .page-assoc .nav__brand-text { display: none; }
  .page-assoc .nav__link { padding-inline: 14px; }
}
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .page-assoc .nav__burger { margin-left: auto; }
}

/* ---------------------------------------------------------------- APERTURA */
.assoc-hero {
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
}
.assoc-hero > .wrap { width: 100%; }

.assoc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(34px, 5vw, 80px);
}

.assoc-hero__title {
  font-size: clamp(2.5rem, 1.35rem + 4.7vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: 24px;
}
.assoc-hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; }
.assoc-hero__title .line > span { display: block; }

/* «da piccoli»: evidenziatore giallo che si stende dietro alle parole,
   come le parole chiave dell'apertura della home */
.assoc-mark {
  position: relative;
  z-index: 0;
  background: none;
  color: var(--navy);
  white-space: nowrap;
}
.assoc-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.08em; right: -.1em;
  bottom: .06em;
  height: .42em;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--yellow), rgba(255, 198, 39, .55));
  transform: scaleX(0);
  transform-origin: left center;
}
.assoc-hero__title.is-in .assoc-mark::before {
  transform: scaleX(1);
  transition: transform .9s var(--ease) .1s;
}

.assoc-hero__sub {
  max-width: 40ch;
  font-size: clamp(1.05rem, .98rem + .45vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink);
}
.assoc-hero__sub strong { color: var(--navy); font-weight: 800; }

.assoc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.assoc-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm), inset 0 0 0 1.5px rgba(20, 71, 110, .07);
  font-weight: 800;
  font-size: .92rem;
  color: var(--navy);
}

/* --- il laboratorio: una foto incorniciata, leggermente inclinata ---- */
.assoc-hero__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
}

.assoc-hero__halo {
  position: absolute;
  inset: -6% -4%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(220, 234, 242, .5) 60%, transparent),
    radial-gradient(60% 50% at 50% 100%, rgba(255, 198, 39, .28), transparent 70%);
  pointer-events: none;
}

.lab {
  position: relative;
  display: block;
  width: min(100%, 600px);
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--sky-soft);
  box-shadow:
    0 0 0 7px #fff,
    0 40px 80px -30px rgba(13, 49, 81, .45);
  transform: rotate(2deg);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  cursor: pointer;
}
.lab:hover,
.lab:focus-visible {
  transform: rotate(0deg) scale(1.02);
  box-shadow:
    0 0 0 7px var(--yellow),
    0 50px 90px -30px rgba(13, 49, 81, .5);
}

.lab__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .55s var(--ease), transform 1.2s var(--ease);
}
.lab__img--on { opacity: 0; }
.lab:hover .lab__img--on,
.lab:focus-visible .lab__img--on { opacity: 1; }
.lab:hover .lab__img { transform: scale(1.04); }

/* Il tasto play è disegnato dentro le due foto (grigio, e arancione in
   quella che compare al passaggio): qui c'è solo un anello che pulsa
   attorno a lui per invitare al clic. Posizione e misura sono quelle del
   play nell'immagine: centro al 50% e al 60%, largo un quarto. */
.lab__ring {
  position: absolute;
  left: 50%;
  top: 60.1%;
  width: 25%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.lab__ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 2px rgba(242, 168, 30, .35);
  animation: lab-pulse 2.2s var(--ease-soft) infinite;
}
.lab:hover .lab__ring::after { border-color: var(--yellow); }
/* segue lo zoom della foto al passaggio, così resta centrato sul play */
.lab:hover .lab__ring { top: 60.5%; transform: translate(-50%, -50%) scale(1.04); transition: transform 1.2s var(--ease), top 1.2s var(--ease); }

@keyframes lab-pulse {
  0%   { transform: scale(.94); opacity: .95; }
  100% { transform: scale(1.4); opacity: 0; }
}

.lab__hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .9rem;
  box-shadow: 0 10px 22px -10px rgba(13, 49, 81, .7);
}

.assoc-hero .float-badge--a { top: -2%;  right: 2%; }
.assoc-hero .float-badge--b { bottom: 2%; left: -2%; }

/* ---------------------------------------------------------------- SEZIONI */
.section__title strong,
.section__text strong,
.section__sub strong { color: var(--navy); font-weight: 800; }

/* fascia azzurrina che sfuma ai bordi: separa senza tagliare */
.section--tint {
  background: linear-gradient(180deg,
              transparent 0%,
              rgba(220, 234, 242, .62) 16%,
              rgba(220, 234, 242, .62) 84%,
              transparent 100%);
}

/* --- missione ----------------------------------------------------- */
.mission {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.mission__item {
  --c: var(--orange);
  --c-soft: rgba(232, 154, 56, .16);
  position: relative;
  padding: clamp(26px, 2.6vw, 34px) clamp(22px, 2.2vw, 28px) clamp(28px, 2.8vw, 36px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mission__item::after {
  /* filo colorato in basso che si allunga al passaggio */
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: 0;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: var(--c);
  transform: scaleX(.18);
  transform-origin: left center;
  transition: transform .6s var(--ease);
}
.mission__item:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.mission__item:hover::after { transform: scaleX(1); }

.mission__item--2 { --c: var(--blue);   --c-soft: rgba(30, 123, 196, .12); }
.mission__item--3 { --c: var(--brown);  --c-soft: rgba(123, 75, 42, .12); }
.mission__item--4 { --c: var(--pink);   --c-soft: rgba(232, 106, 130, .14); }

.mission__icon {
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 1;
  margin-bottom: 20px;
  border-radius: 20px;
  background: var(--c-soft);
  font-size: 1.8rem;
  transition: transform .5s var(--ease);
}
.mission__item:hover .mission__icon { transform: rotate(-8deg) scale(1.08); }

.mission__item h3 {
  font-size: clamp(1.2rem, 1.05rem + .4vw, 1.4rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.mission__item p { color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }

/* --- ambiti ------------------------------------------------------- */
.ambiti {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.ambito {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 168px;
  padding: 24px 16px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--sh-sm), inset 0 0 0 2px rgba(255, 255, 255, .9);
  text-align: center;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.ambito > span {
  display: grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sky-soft);
  font-size: 2rem;
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.ambito h3 {
  font-size: clamp(1rem, .94rem + .25vw, 1.15rem);
  line-height: 1.2;
}
.ambito:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--sh-md); }
.ambito:hover > span { background: var(--yellow); transform: rotate(-10deg) scale(1.08); }

/* --- soci fondatori ----------------------------------------------- */
.socio {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.socio:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }

.socio__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sky-soft);
}
.socio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* i volti stanno tutti in alto: il taglio quadrato li tiene dentro */
  object-position: 50% 18%;
  transition: transform 1s var(--ease);
}
.socio:hover .socio__photo img { transform: scale(1.05); }

.socio__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }

.socio__role {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.socio__name { font-size: clamp(1.25rem, 1.1rem + .4vw, 1.45rem); line-height: 1.15; }
.socio__title { margin-top: 4px; font-weight: 800; font-size: .92rem; color: var(--navy-soft); }

.socio__bio {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.65;
}
/* le biografie lunghe si aprono a richiesta: le schede restano allineate */
.socio__bio.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.socio__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: .85rem;
  transition: background-color .3s var(--ease);
}
.socio__more:hover { background: var(--yellow); }
.socio__more svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.socio__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* il Presidente in evidenza: scheda larga, foto a sinistra */
.socio--lead {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  margin-bottom: clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-xl);
}
.socio--lead .socio__photo { aspect-ratio: auto; min-height: 100%; }
.socio--lead .socio__photo img { position: absolute; inset: 0; }
.socio--lead .socio__body {
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 198, 39, .16), transparent 60%),
    linear-gradient(165deg, #fff 0%, var(--cream-soft) 100%);
}
.socio--lead .socio__name { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.socio--lead .socio__bio { font-size: 1rem; max-width: 62ch; }

.soci {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

/* --- consiglio direttivo: pannello blu arrotondato ---------------- */
.consiglio {
  position: relative;
  margin: clamp(10px, 3vw, 30px) clamp(8px, 2vw, 24px);
  padding: var(--sect-y) 0;
  border-radius: clamp(34px, 6vw, 80px);
  background:
    radial-gradient(60% 70% at 88% 0%, rgba(255, 198, 39, .22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(169, 199, 216, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: #fff;
  overflow: hidden;
}
.consiglio .section__title { color: #fff; }
.consiglio .eyebrow { color: var(--yellow); }
.consiglio .section__sub { color: rgba(255, 255, 255, .8); }

.consiglio__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 18px);
  max-width: 1040px;
  margin-inline: auto;
}

.membro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 24px 8px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.membro:hover { background: rgba(255, 255, 255, .15); transform: translateY(-4px); }
.membro img {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 0 0 3px var(--yellow);
}
.membro__role {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.membro__name { font-weight: 800; line-height: 1.3; color: #fff; }

/* --- tessere: vere tessere, in proporzione carta di credito ------- */
.tessere {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

.tessera {
  --t1: var(--navy-deep);
  --t2: #2060A8;
  --t-soft: rgba(32, 96, 168, .12);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 26px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tessera:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }

.tessera--amico { --t1: #1A7040; --t2: #2EA865; --t-soft: rgba(46, 168, 101, .13); }
.tessera--gold  { --t1: #7A4800; --t2: #D08A0A; --t-soft: rgba(208, 138, 10, .15); }

.tessera__card {
  position: relative;
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2vw, 24px);
  border-radius: calc(var(--r-xl) - 12px);
  background: linear-gradient(135deg, var(--t1) 0%, var(--t2) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 22px 40px -22px var(--t1);
  transition: transform .6s var(--ease);
}
/* cerchi decorativi, come le filigrane delle tessere vere */
.tessera__card::before,
.tessera__card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  pointer-events: none;
}
.tessera__card::before { width: 70%; aspect-ratio: 1; right: -22%; top: -38%; }
.tessera__card::after  { width: 45%; aspect-ratio: 1; right: 10%;  top: -30%; background: rgba(255, 255, 255, .07); }
.tessera:hover .tessera__card { transform: rotate(-2deg) scale(1.02); }

.tessera__chip {
  position: absolute;
  top: clamp(18px, 2vw, 24px);
  left: clamp(18px, 2vw, 24px);
  width: 42px;
  height: 31px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .18) 32% 36%, transparent 36% 64%, rgba(0, 0, 0, .18) 64% 68%, transparent 68%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .18) 45% 55%, transparent 55%),
    linear-gradient(135deg, #F7D774, #C99A2E);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.tessera__type {
  position: relative;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .82;
}
.tessera__name {
  position: relative;
  color: #fff;
  font-size: clamp(1.4rem, 1.15rem + .8vw, 1.8rem);
  line-height: 1.08;
  margin-top: 4px;
}
.tessera__code {
  position: relative;
  margin-top: 10px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .82rem;
  letter-spacing: .08em;
  opacity: .8;
}

/* riflesso che attraversa la tessera Gold */
.tessera--gold .tessera__card {
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%) no-repeat -120% 0 / 60% 100%,
    linear-gradient(135deg, var(--t1) 0%, var(--t2) 100%);
  animation: gold-shine 4.5s var(--ease-soft) infinite;
}
@keyframes gold-shine {
  0%, 55% { background-position: -120% 0, 0 0; }
  100%    { background-position: 260% 0, 0 0; }
}

.tessera__ribbon {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: 22px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--navy-deep);
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .06em;
  box-shadow: var(--sh-glow);
}

.tessera__list {
  display: grid;
  gap: 12px;
  align-content: start;   /* con flex:1 la griglia si allungava e spaziava le voci */
  margin: 24px 10px 26px;
  flex: 1;
}
.tessera__list li {
  position: relative;
  padding-left: 34px;
  font-size: .96rem;
  line-height: 1.5;
  color: var(--ink);
}
.tessera__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--t-soft);
}
.tessera__list li::after {
  /* spunta disegnata con due bordi */
  content: "";
  position: absolute;
  left: 7.5px;
  top: calc(.05em + 5px);
  width: 6px;
  height: 10px;
  border: solid var(--t2);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.tessera__btn {
  display: block;
  margin: 0 10px;
  padding: 15px 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--t1), var(--t2));
  color: #fff;
  text-align: center;
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: 1rem;
  box-shadow: 0 16px 30px -16px var(--t1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tessera__btn:hover { transform: translateY(-3px); box-shadow: 0 22px 38px -16px var(--t1); }

.tessere__note {
  margin-top: 40px;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .95rem;
}
.tessere__note a { color: var(--navy); font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* --- contatti ----------------------------------------------------- */
.contatti {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.contatto {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.contatto:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.contatto > div { min-width: 0; }

.contatto__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--sky-soft);
  font-size: 1.6rem;
  transition: background-color .4s var(--ease), transform .45s var(--ease);
}
.contatto:hover .contatto__icon { background: var(--yellow); transform: rotate(-8deg); }

.contatto__label {
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contatto__value {
  margin-top: 2px;
  font-weight: 800;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.45;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.contatto__value a { transition: color .3s var(--ease); }
.contatto__value a:hover { color: var(--blue); }

.iban {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 198, 39, .22), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  box-shadow: var(--sh-lg);
}
.iban__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--yellow);
  font-size: 1.8rem;
}
.iban__body { flex: 1; min-width: 0; }
.iban__label {
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.iban__value {
  margin: 6px 0 4px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1.05rem, .85rem + 1vw, 1.6rem);
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}
.iban__sub { font-size: .88rem; color: rgba(255, 255, 255, .72); }

.iban__copy {
  flex: none;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--navy);
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .95rem;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.iban__copy:hover { background: var(--yellow); transform: translateY(-2px); }
.iban__copy.is-done { background: #2EA865; color: #fff; }

/* ---------------------------------------------------------------- FOOTER */
.assoc-footer .footer__inner { align-items: stretch; text-align: left; gap: 34px; }

.assoc-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
}
.assoc-footer__brand .footer__logo { width: clamp(130px, 14vw, 170px); margin-bottom: 16px; }
.assoc-footer__brand p { max-width: 44ch; font-size: .95rem; line-height: 1.7; }
.assoc-footer__name {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: 1.2rem !important;
  color: #fff;
  margin-bottom: 6px;
}

.assoc-footer__col { display: flex; flex-direction: column; gap: 10px; }
.assoc-footer__head {
  font-family: "Fredoka One", system-ui, sans-serif;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 4px;
}
.assoc-footer__col a {
  align-self: flex-start;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.assoc-footer__col a:hover { color: var(--yellow); transform: translateX(4px); }

.assoc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------------------------------------------------------------- IL METODO GIGI™ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}
.sheet[hidden] { display: none !important; }

.sheet__backdrop,
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 49, 81, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 820px);
  max-height: min(90svh, 920px);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #fff 0%, var(--cream-soft) 100%);
  box-shadow: 0 50px 110px -30px rgba(13, 49, 81, .6);
  overflow: hidden;
}

.sheet__head {
  position: relative;
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 4vw, 48px) 20px;
  border-bottom: 2px solid rgba(20, 71, 110, .07);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 198, 39, .2), transparent 60%),
    transparent;
}
.sheet__head .eyebrow { margin-bottom: 8px; }
.sheet__head h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); padding-right: 50px; }

.sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px clamp(24px, 4vw, 48px) clamp(30px, 4vw, 44px);
}

.metodo p { margin: 0 0 12px; color: var(--ink); line-height: 1.7; }
.metodo__lead { margin-top: 16px !important; font-size: 1.12rem; color: var(--navy) !important; }

.metodo h3 {
  position: relative;
  margin: 34px 0 12px;
  padding-left: 18px;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
}
.metodo h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  bottom: .12em;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--yellow), var(--orange));
}

.metodo__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.metodo__tags li {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: .9rem;
}

.metodo__steps {
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 16px;
  padding: 0;
  list-style: none;
}
.metodo__steps li {
  counter-increment: passo;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sh-sm);
  font-weight: 800;
  color: var(--navy);
}
.metodo__steps li::before {
  content: counter(passo);
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font-family: "Fredoka One", system-ui, sans-serif;
}

.metodo__end { display: flex; justify-content: center; margin-top: 30px; }

/* ---------------------------------------------------------------- GALLERIA */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
}
.lightbox[hidden] { display: none !important; }
.lightbox__backdrop { background: rgba(9, 31, 52, .86); }

.lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(100%, 1100px);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(70svh, 820px);
  touch-action: pan-y;
}
.lightbox__stage img,
.lightbox__stage video {
  /* limite scritto per esteso e non "100%": dentro una griglia la
     percentuale non trova un'altezza di riferimento e la foto sborda
     (stesso problema già risolto nelle schede dei personaggi) */
  max-width: 100%;
  max-height: min(70svh, 820px);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .5s var(--ease);
}
.lightbox__stage.is-zoomed img { transform: scale(1.5); cursor: zoom-out; }

/* assoluto nel pannello, non fisso: il pannello entra con un transform,
   e un figlio "fixed" dentro un elemento trasformato cambia riferimento
   e saltava di posto a fine animazione */
.lightbox__panel { padding-top: 58px; }
.lightbox__close { top: 0; right: 0; background: #fff; }

.lightbox__nav { display: flex; align-items: center; gap: 18px; }
.lightbox .modal__dots button { background: rgba(255, 255, 255, .35); }
.lightbox .modal__dots button.is-active { background: var(--yellow); }

.lightbox__empty { color: #fff; text-align: center; font-weight: 700; }

/* ---------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1100px) {
  .mission { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soci    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tessere { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .assoc-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .assoc-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .assoc-hero { min-height: auto; }
  .assoc-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .assoc-hero__sub { margin-inline: auto; }
  .assoc-hero .intro__cta,
  .assoc-facts { justify-content: center; }
  /* width esplicita: con i soli margini automatici il riquadro si
     restringeva sul contenuto, che però è largo in percentuale di lui,
     e la foto finiva a larghezza zero */
  .assoc-hero__art { width: 100%; max-width: 620px; margin-inline: auto; }

  .ambiti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contatti { grid-template-columns: 1fr; }

  .socio--lead { grid-template-columns: 1fr; }
  .socio--lead .socio__photo { aspect-ratio: 4 / 3; min-height: 0; }
}

@media (max-width: 640px) {
  .mission { grid-template-columns: 1fr; }
  .soci    { grid-template-columns: 1fr; }
  .metodo__steps { grid-template-columns: 1fr; }

  .iban { flex-direction: column; align-items: flex-start; }
  .iban__copy { width: 100%; }

  .assoc-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .assoc-footer__brand p { margin-inline: auto; }
  .assoc-footer__brand .footer__logo { margin-inline: auto; }
  .assoc-footer__col { align-items: center; }
  .assoc-footer__col a { align-self: center; }
  .assoc-footer__bottom { justify-content: center; text-align: center; }

  /* il Metodo Gigi™ sale dal basso come un foglio, a tutta larghezza */
  .sheet { padding: 0; align-items: end; }
  .sheet__panel { max-height: 92svh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

@media (max-width: 560px) {
  .ambito { min-height: 140px; padding: 20px 12px; }
  .ambito > span { width: 58px; font-size: 1.7rem; }
  .membro { width: 100%; }
  .assoc-facts li { font-size: .85rem; }
  .lab__hint { right: 12px; bottom: 12px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lab__ring::after,
  .tessera--gold .tessera__card { animation: none; }
  .assoc-hero__title .assoc-mark::before { transform: scaleX(1); }
}
