/* Polis Rocca Imperiale — La società */

/* 0. INGRESSO: la fila dei dirigenti */
.intro-hands { --h: clamp(170px, 34vh, 340px); }
.hall { position: absolute; inset: 0; background: radial-gradient(110% 80% at 50% 30%, #FBF9F4 0%, var(--cream) 70%); }
.hall-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 14vh; background: linear-gradient(180deg, #E4DDCD, #D8CFBB); }
.row { position: absolute; inset: 0; }
.dir { position: absolute; bottom: 14vh; height: calc(var(--h) * .96); width: calc(var(--h) * .96 * 120 / 320); }
.dir svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dir-tag {
  position: absolute; left: 50%; bottom: 104%; transform: translateX(-50%); white-space: nowrap;
  font-weight: 600; font-size: clamp(.62rem, .55rem + .3vw, .85rem); letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); background: var(--yellow); padding: .3em .6em; border-radius: 4px; opacity: 0;
}
.intro-hands .push-man { z-index: 4; }

/* 1. APERTURA */
.soc-hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 5.5rem var(--gutter) 4rem;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #163552 0%, var(--navy) 55%, var(--ink) 100%);
}
.soc-hero-inner { display: flex; flex-direction: column; align-items: center; }
.soc-crest { height: clamp(110px, 24vh, 240px); width: auto; margin-bottom: clamp(.8rem, 3vh, 1.8rem); filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .45)); }
.soc-title { font-size: clamp(2.8rem, 8.5vw, 8rem); margin: .6rem 0 1rem; }
.soc-title .l { display: block; overflow: hidden; padding: .14em 0 .03em; margin-top: -.11em; }
.soc-title .l > span { display: inline-block; }
.soc-title .l:first-child > span { color: var(--yellow); }
.soc-lead { color: var(--mute-dark); margin: 0 auto; }

/* 2. IL NOME */
.nome-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; }
.nome-titolo { font-size: clamp(3.4rem, 9vw, 9rem); margin-top: .6rem; color: var(--yellow); }
/* le lettere greche non sono nei caratteri del sito: un corsivo con serifa, come un'iscrizione scritta a mano */
.nome-greco { display: block; width: min(100%, 26rem); height: auto; margin-top: .4rem; overflow: visible; }
.nome-greco text {
  font-family: Georgia, "Times New Roman", "Noto Serif", serif; font-style: italic; font-size: 76px;
  fill: var(--gold); stroke: var(--gold); stroke-width: 1.2; paint-order: stroke;
}
.nome-frasi { display: grid; gap: 1.2rem; }
.nome-frase { max-width: 34rem; font-weight: 400; font-size: clamp(1.1rem, .9rem + .9vw, 1.7rem); line-height: 1.4; color: var(--cream); }
.nome-frase em { color: var(--gold); }
.nome-motto { font-family: var(--slab); text-transform: uppercase; line-height: 1.05; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.4rem); color: var(--mute-dark); }
.nome-motto b { font-weight: 400; color: var(--yellow); }
/* con l'animazione le frasi stanno una sopra l'altra: ne entra una alla volta */
.motion .nome-frasi { gap: 0; }
.motion .nome-frase { grid-area: 1 / 1; align-self: center; }

/* 3. LA STORIA */
.story-inner { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; }
.story-copy .display { font-size: clamp(2.6rem, 5.6vw, 6rem); margin-top: .8rem; }
.story-line { position: relative; display: grid; gap: clamp(1rem, 3.2vh, 2rem); padding-left: 2.2rem; }
.story-line::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 3px; background: rgba(15, 40, 61, .12); border-radius: 2px; }
.story-rail { display: none; }
.tappa { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.tappa::before { content: ""; position: absolute; left: -2.2rem; top: .25em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--gold); }
.tappa b { font-family: var(--slab); font-weight: 400; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); text-transform: uppercase; line-height: 1; color: var(--navy); }
.tappa span { color: var(--mute); font-weight: 400; max-width: 32rem; }
.motion .story-line::after { content: ""; position: absolute; left: .55rem; top: .4rem; width: 3px; height: calc(100% - .8rem); background: var(--gold); border-radius: 2px; transform-origin: 50% 0; transform: scaleY(var(--avanza, 0)); }

/* 3. I DIRIGENTI */
.board-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.board-title { font-size: clamp(2.4rem, 5.6vw, 6rem); margin: .8rem 0 clamp(1.4rem, 4vh, 2.6rem); }
.ruoli { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; width: min(100%, 1100px); perspective: 1000px; }
.ruolo { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ruolo.grande { grid-column: 1 / -1; background: var(--yellow); color: var(--navy); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .7); }
.ruolo small { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ruolo.grande small { color: #6B5B0A; }
.ruolo b { font-family: var(--slab); font-weight: 400; font-size: clamp(1.1rem, .9rem + .9vw, 1.7rem); text-transform: uppercase; line-height: 1.05; }
.ruolo.grande b { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); }
.altri { margin-top: clamp(1.2rem, 3vh, 2rem); max-width: 60rem; color: var(--mute-dark); font-weight: 400; line-height: 1.7; }
.altri small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }

/* 4. DIVENTA SOCIO */
.member-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; }
.member-copy .display { font-size: clamp(2.6rem, 6vw, 6.4rem); margin: .8rem 0 1.2rem; }
.member-copy .lead { color: #3D3A1E; margin-bottom: 1.2rem; }
.quota { margin-bottom: 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(15, 40, 61, .08); font-weight: 400; max-width: 32rem; }
.card-stage { display: grid; place-items: center; perspective: 1200px; }
.tessera {
  --oro: linear-gradient(115deg, #A97E12 0%, #F3D774 28%, #D9AC1A 46%, #FFF1B3 58%, #C4931A 78%, #E9C454 100%);
  position: relative; width: min(100%, 460px); aspect-ratio: 1.586; border-radius: 20px; overflow: hidden;
  padding: 7% 8% 6.5%; color: var(--cream); isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto auto;
  background: radial-gradient(130% 120% at 100% 0%, #1E4568 0%, #12304A 38%, #0B1D2E 100%);
  box-shadow: 0 50px 90px -40px rgba(11, 29, 46, .95), 0 2px 0 rgba(255, 255, 255, .06) inset;
}
/* motivo a righe sottili, come le carte di sicurezza */
.tessera-guilloche {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    repeating-radial-gradient(circle at 115% 120%, transparent 0 9px, rgba(217, 172, 26, .09) 9px 10px),
    repeating-radial-gradient(circle at -15% -20%, transparent 0 11px, rgba(244, 241, 234, .05) 11px 12px);
}
.tessera-bordo { position: absolute; inset: 9px; border-radius: 13px; border: 1px solid rgba(217, 172, 26, .55); pointer-events: none; }
.tessera-top { display: flex; align-items: center; gap: .8em; }
.tessera-crest { width: 13%; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.tessera-club { font-family: var(--slab); text-transform: uppercase; line-height: 1.05; font-size: clamp(.78rem, 2.2vw, 1.05rem); letter-spacing: .02em; }
.tessera-club small { display: block; margin-top: .35em; font-family: var(--sans); font-weight: 500; font-size: .62em; letter-spacing: .28em; color: #C9B98A; }
/* lo stemma monolinea in lamina oro, impresso a caldo */
.tessera-foil { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: 34%; z-index: 1; }
.tessera-foil svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.tessera-title {
  align-self: end; font-family: var(--slab); text-transform: uppercase; line-height: .9; font-size: clamp(2rem, 7vw, 3.4rem);
  background: var(--oro); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tessera-bottom { display: flex; gap: 1.6em; margin-top: .9em; padding-top: .7em; border-top: 1px solid rgba(217, 172, 26, .35); font-size: clamp(.62rem, 1.7vw, .85rem); letter-spacing: .08em; }
.tessera-bottom p { display: flex; flex-direction: column; gap: .2em; font-weight: 500; font-variant-numeric: tabular-nums; }
.tessera-bottom small { font-size: .7em; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #C9B98A; }
.tessera-bottom p:nth-child(2) { flex: 1; }
/* il riflesso che attraversa la carta */
.tessera-luce {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 236, 170, .55) 50%, transparent 64%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
}
.static .tessera-foil svg path { fill-opacity: 1 !important; }

@media (max-width: 767px) {
  .intro-hands { --h: 24vh; }
  .dir:nth-child(n + 4) { display: none; }
  .soc-title { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .story-inner, .member-inner, .nome-inner { grid-template-columns: 1fr; gap: 1rem; }
  .nome-titolo { font-size: clamp(3rem, 16vw, 4.4rem); }
  .nome-greco { width: min(70%, 15rem); }
  .nome-frase { font-size: 1.08rem; }
  .nome-motto { font-size: 1.35rem; }
  .story-copy .display, .member-copy .display { font-size: clamp(2rem, 10vw, 2.8rem); margin: .4rem 0 .4rem; }
  .story-line { gap: .7rem; }
  .tappa span { font-size: .9rem; }
  .ruoli { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .ruolo { padding: .8rem; }
  .altri { font-size: .85rem; }
  .member-copy .lead, .quota { font-size: .92rem; }
  .card-stage { order: -1; margin-bottom: .8rem; }
  .tessera { width: min(86vw, 360px); }
}
