/* Lions Club Vallecamonica
   Concetto: "il sentiero" — la valle come linea del tempo. Fasce piene nei colori
   istituzionali Lions, titoli compressi in grassetto (eco di Helvetica 77 Compressed),
   testi lunghi in Caslon (carattere secondario previsto dalle linee guida). */
/* caratteri ospitati in locale (niente chiamate a Google: più veloce e conforme GDPR) */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/libre-caslon-text-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/libre-caslon-text-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/libre-caslon-text-latin-700-normal.woff2) format("woff2"); }

:root {
  /* colori istituzionali (Linee guida MD108, immagine coordinata) */
  --lions-blu: #00338D;      /* Pantone 287 */
  --lions-giallo: #EBB700;   /* Pantone 7406 */
  --lions-grigio: #55565A;   /* Cool Gray 11 */
  --lions-notte: #0D2240;    /* Pantone 289, secondario */
  --lions-cielo: #407CCA;    /* Pantone 660, secondario */
  --lions-freddo: #B3B2B1;   /* Cool Gray 5, secondario */

  /* token di tema (chiaro) */
  --bg: #FFFFFF;
  --surface: #F1F3F8;
  --surface-2: #E6EAF3;
  --fg: #0D1A33;
  --muted: #4E5566;
  --line: #D5DAE6;
  --accent-ink: #00338D;
  --on-band: #FFFFFF;
  --band: #00338D;
  --band-deep: #0D2240;
  --band-muted: #C7D3EC;
  --shadow: 0 1px 2px rgba(13,34,64,.06), 0 12px 32px -12px rgba(13,34,64,.22);
  --glass: rgba(255,255,255,.78);
  --placeholder: #C4C7CE;

  /* tipografia */
  --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-long: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, "Times New Roman", serif;

  --step--1: clamp(.82rem, .79rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5rem);
  --step-5: clamp(3.4rem, 2.2rem + 6.5vw, 8.5rem);

  --radius: 14px;
  --max: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08122A; --surface: #0F1C3A; --surface-2: #16264A; --fg: #EEF2FA; --muted: #A8B3CA;
    --line: #22355E; --accent-ink: #8DB2F7; --on-band: #FFFFFF; --band: #0A2A75; --band-deep: #050D20;
    --band-muted: #AFC1E6; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
    --glass: rgba(8,18,42,.78); --placeholder: #3A4358; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08122A; --surface: #0F1C3A; --surface-2: #16264A; --fg: #EEF2FA; --muted: #A8B3CA;
  --line: #22355E; --accent-ink: #8DB2F7; --on-band: #FFFFFF; --band: #0A2A75; --band-deep: #050D20;
  --band-muted: #AFC1E6; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.6);
  --glass: rgba(8,18,42,.78); --placeholder: #3A4358; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-size: var(--step-0); line-height: 1.55;
  font-optical-sizing: auto; overflow-x: hidden;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lions-giallo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lions-giallo); color: #0D2240; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }

/* tipografia di servizio */
.eyebrow { font-family: var(--f-text); font-size: var(--step--1); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); }
.band .eyebrow, .hero .eyebrow { color: var(--lions-giallo); }
.display { font-stretch: 72%; font-weight: 850; text-transform: uppercase; letter-spacing: -.005em; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.band .lead, .hero .lead { color: var(--band-muted); }
.long { font-family: var(--f-long); font-size: 1.06em; line-height: 1.7; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- barra superiore ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand span { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; line-height: 1.05; }
.brand span b { display: block; color: var(--accent-ink); font-weight: 800; }
.mainnav { display: none; gap: 4px; align-items: center; }
.mainnav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.mainnav a:hover { background: var(--surface); }
.mainnav a[aria-current="page"] { background: var(--surface-2); }
.mainnav .cta { background: var(--lions-giallo); color: #0D2240; }
.mainnav .cta:hover { background: #F5C51A; }
.navdrop { position: relative; }
.navdrop > button { font: inherit; font-weight: 600; font-size: .95rem; background: none; border: 0; color: inherit; padding: 8px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.navdrop > button:hover, .navdrop[data-open] > button { background: var(--surface); }
.navdrop .menu { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: none; }
.navdrop[data-open] .menu { display: grid; }
.navdrop .menu a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.navdrop .menu a:hover { background: var(--surface); }
.navdrop .menu small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }
.dot { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 850; font-stretch: 75%; color: #fff; }
.dot.v { background: #0D2240; } .dot.s { background: #00338D; } .dot.t { background: #EBB700; color: #0D2240; }
@media (min-width: 960px) { .mainnav { display: flex; } }

/* ---------- tab bar mobile ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: var(--glass); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
}
.tabbar a, .tabbar button { font: inherit; border: 0; background: none; color: var(--muted); text-decoration: none; display: grid; justify-items: center; gap: 2px; font-size: .68rem; font-weight: 600; padding: 6px 2px; border-radius: 12px; cursor: pointer; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar [aria-current="page"], .tabbar [aria-expanded="true"] { color: var(--accent-ink); }
.tabbar [aria-current="page"] svg, .tabbar [aria-expanded="true"] svg { stroke: var(--accent-ink); }
@media (max-width: 959px) { :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 960px) { .tabbar { display: none; } }

.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet[data-open] { display: block; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(5,13,32,.5); animation: fade .25s both; }
.sheet .panel {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  animation: rise .35s cubic-bezier(.2,.8,.2,1) both; display: grid; gap: 10px;
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 6px; }
.sheet h2 { font-size: 1.1rem; font-stretch: 80%; text-transform: uppercase; letter-spacing: .06em; }
.sheet a { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 10px; border-radius: 14px; background: var(--surface); }
.sheet a b { display: block; font-size: 1rem; }
.sheet a small { color: var(--muted); }
.sheet .dot { width: 52px; height: 52px; font-size: 1.2rem; }
@keyframes rise { from { transform: translateY(40px); opacity: .0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: var(--f-text); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-giallo { background: var(--lions-giallo); color: #0D2240; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-blu { background: var(--lions-blu); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero home ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #0D2240; min-height: min(88svh, 860px); display: grid; align-items: end; }
.hero .bg { position: absolute; inset: 0; z-index: -2; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: kenburns 28s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(13,34,64,.55) 0%, rgba(13,34,64,0) 28%, rgba(13,34,64,.15) 50%, rgba(5,13,32,.92) 100%),
  linear-gradient(90deg, rgba(0,51,141,.55), rgba(0,51,141,0) 70%); }
.hero .wrap { padding-block: 130px 44px; display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.9rem, 1.2rem + 4.6vw, 5.6rem); max-width: none; }
.hero h1 .y { color: var(--lions-giallo); display: block; }
.hero h1 span { display: block; animation: lineup .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 span:nth-child(2) { animation-delay: .1s; } .hero h1 span:nth-child(3) { animation-delay: .2s; }
.hero .lead { color: #E3E9F6; max-width: 46ch; animation: lineup .9s .3s cubic-bezier(.2,.8,.2,1) both; }
.hero .btns { animation: lineup .9s .4s cubic-bezier(.2,.8,.2,1) both; }
.hero .seal { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 28px; width: clamp(64px, 11vw, 150px); filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); animation: lineup 1s .2s both; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lineup { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

.statline { background: var(--lions-giallo); color: #0D2240; }
.statline .wrap { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding-block: 0; }
.stat { padding: 20px 4px; display: grid; gap: 2px; border-bottom: 1px solid rgba(13,34,64,.18); }
.stat b { font-family: var(--f-display); font-size: var(--step-3); font-weight: 850; font-stretch: 75%; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 760px) { .statline .wrap { grid-template-columns: repeat(4, 1fr); } .stat { border-bottom: 0; border-left: 1px solid rgba(13,34,64,.18); padding: 26px 22px; } .stat:first-child { border-left: 0; padding-left: 0; } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(56px, 8vw, 120px); }
.section.tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); max-width: 60ch; }
.section-head h2 { font-size: var(--step-4); }
.band { background: var(--band); color: var(--on-band); }
.band.deep { background: var(--band-deep); }
.band .muted { color: var(--band-muted); }
.alt { background: var(--surface); }

/* reveal guidato dallo scroll: sempre visibile a riposo */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes reveal { from { transform: translateY(28px); } to { transform: none; } }
}

/* ---------- progetti (home) ---------- */
.projects { display: grid; gap: 18px; }
@media (min-width: 900px) { .projects { grid-template-columns: 1.25fr 1fr 1fr; } }
.pcard { position: relative; border-radius: 22px; overflow: hidden; text-decoration: none; display: grid; grid-template-rows: auto 1fr; min-height: 520px; color: #fff; isolation: isolate; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pcard:hover { transform: translateY(-6px); }
.pcard .media { aspect-ratio: 16/10; overflow: hidden; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.pcard:hover .media img { transform: scale(1.06); }
.pcard .body { padding: 24px; display: grid; gap: 12px; align-content: start; }
.pcard h3 { font-size: var(--step-2); font-stretch: 78%; text-transform: uppercase; font-weight: 850; }
.pcard .big { font-family: var(--f-display); font-size: var(--step-3); font-weight: 850; font-stretch: 72%; line-height: 1; color: var(--lions-giallo); font-variant-numeric: tabular-nums; }
.pcard .go { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.pcard.v { background: #0D2240; } .pcard.s { background: #00338D; } .pcard.t { background: #EBB700; color: #0D2240; }
.pcard.t .big { color: #00338D; }
.pcard .tag { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.pcard .body { grid-template-rows: auto auto auto auto 1fr auto; }

/* ---------- profilo montuoso (annali) ---------- */
.ridge-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
.ridge { min-width: 760px; width: 100%; display: block; }
.ridge .area { fill: url(#ridgeFill); }
.ridge .area2 { fill: url(#ridgeFill2); }
.ridge .crest { fill: none; stroke: var(--lions-giallo); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.6s .2s cubic-bezier(.4,0,.2,1) forwards; }
.ridge .tick text, .ridge .lbl { font-family: var(--f-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; fill: currentColor; }
.ridge .tick line { stroke: currentColor; opacity: .25; }
.ridge a circle { fill: var(--lions-giallo); stroke: var(--band-deep); stroke-width: 2; transition: r .2s; }
.ridge a:hover circle, .ridge a:focus circle, .ridge a.is-current circle { r: 7; }
.ridge a.is-current circle { fill: #fff; }
.ridge a .hit { fill: transparent; stroke: none; }
.ridge .cur-line { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 4; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ridge-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; margin-top: 14px; }
.ridge-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* ---------- card anni ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--lions-blu); border-color: var(--lions-blu); color: #fff; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; background: var(--bg); min-width: 0; }
.search input { font: inherit; border: 0; background: transparent; color: var(--fg); padding: 8px 0; width: 100%; min-width: 0; outline: none; }
.search svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search:focus-within { outline: 3px solid var(--lions-giallo); outline-offset: 2px; }
.results-note { font-size: .9rem; color: var(--muted); margin-bottom: 14px; min-height: 1.4em; }
.years { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ycard { display: grid; gap: 8px; align-content: start; text-decoration: none; padding: 18px 18px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; overflow: hidden; min-width: 0; }
.ycard:hover { border-color: var(--lions-blu); transform: translateY(-3px); box-shadow: var(--shadow); }
.ycard .yy { font-family: var(--f-display); font-weight: 850; font-stretch: 72%; font-size: 2.3rem; line-height: .95; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ycard .yy small { font-size: .55em; color: var(--muted); }
.ycard .pres { font-weight: 700; font-size: .95rem; }
.ycard .ex { font-family: var(--f-long); font-size: .93rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ycard .meta { display: flex; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ycard .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--lions-giallo); }
.ycard.todo { border-style: dashed; background: transparent; pointer-events: none; }
.ycard.todo .yy { color: var(--muted); }
.ycard mark { background: var(--lions-giallo); color: #0D2240; border-radius: 3px; padding: 0 2px; }
.decade-title { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 850; font-stretch: 72%; font-size: var(--step-2); text-transform: uppercase; margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.decade-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* ---------- pagina anno ---------- */
.yhero { background: var(--band-deep); color: #fff; position: relative; overflow: hidden; }
.yhero .wrap { padding-block: 34px 0; display: grid; gap: 18px; }
.crumbs { font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; color: var(--band-muted); }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.yhero h1 { font-size: clamp(4.4rem, 2rem + 13vw, 13rem); font-stretch: 68%; font-weight: 900; line-height: .82; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.yhero h1 .sep { color: var(--lions-giallo); }
.yhero h1 .y2 { -webkit-text-stroke: 2px #fff; color: transparent; }
.yhero .ord { font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; color: var(--lions-giallo); }
.officers { display: grid; gap: 1px; grid-template-columns: 1fr; background: rgba(255,255,255,.14); border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .officers { grid-template-columns: repeat(3, 1fr); } }
.officers div { background: var(--band-deep); padding: 14px 16px; display: grid; gap: 2px; }
.officers small { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--band-muted); }
.officers b { font-size: 1.08rem; }
.yhero .ridge-scroll { margin-top: 10px; }
.yhero .ridge { color: var(--band-muted); }
.award { display: inline-flex; gap: 8px; align-items: center; background: var(--lions-giallo); color: #0D2240; font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; width: fit-content; }

.ystrip { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 40; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ystrip .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.ystrip .wrap::-webkit-scrollbar { display: none; }
.ystrip a { flex: none; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 999px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ystrip a:hover { background: var(--surface); color: var(--fg); }
.ystrip a[aria-current="page"] { background: var(--lions-blu); color: #fff; }

.ybody { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .ybody { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.ysec h2 { font-size: var(--step-2); font-stretch: 78%; text-transform: uppercase; font-weight: 850; display: flex; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.ysec h2 .count { font-size: .55em; color: var(--muted); letter-spacing: .1em; }
.ysec h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--accent-ink); margin: 24px 0 12px; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: svc; }
.svc li { position: relative; padding: 14px 16px 14px 54px; background: var(--surface); border-radius: 12px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.svc li::before { counter-increment: svc; content: counter(svc, decimal-leading-zero); position: absolute; left: 14px; top: 13px; font-family: var(--f-display); font-weight: 850; font-stretch: 75%; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.svc .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.svc .chips span { font-size: .85rem; background: var(--bg); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.temi { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--lions-giallo); display: grid; gap: 14px; }
.temi li { font-family: var(--f-long); font-size: 1.02rem; line-height: 1.6; position: relative; overflow-wrap: anywhere; }
.temi li::before { content: ""; position: absolute; left: -29px; top: .6em; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 3px solid var(--lions-giallo); }
.source { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; }

.pager { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.pager a { text-decoration: none; padding: 18px; border-radius: 16px; background: var(--surface); display: grid; gap: 4px; min-width: 0; }
.pager a:hover { background: var(--surface-2); }
.pager a.next { text-align: right; }
.pager small { font-size: .74rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.pager b { font-family: var(--f-display); font-size: var(--step-2); font-stretch: 72%; font-weight: 850; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.pager span { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager .empty { visibility: hidden; }
.swipe-hint { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
@media (min-width: 960px) { .swipe-hint { display: none; } }

/* ---------- pagine progetto ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; }
.phero .wrap { padding-block: clamp(48px, 7vw, 110px); display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .phero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.phero h1 { font-size: var(--step-5); }
.phero .lead { margin-top: 18px; }
.phero .btns { margin-top: 26px; }
.kfacts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.kfacts div { background: var(--bg); padding: 22px; display: grid; gap: 6px; align-content: start; }
.kfacts b { font-family: var(--f-display); font-size: var(--step-3); font-stretch: 72%; font-weight: 850; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.kfacts span { font-size: .8rem; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.kfacts p { font-size: .95rem; color: var(--muted); }

.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 2; } }
.split > * { min-width: 0; }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.prose h2 { font-size: var(--step-3); }
.prose p { font-family: var(--f-long); font-size: 1.08rem; line-height: 1.72; }
.figure { border-radius: 20px; overflow: hidden; background: var(--placeholder); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { font-size: .85rem; color: var(--muted); padding: 10px 4px 0; background: var(--bg); }
figure { margin: 0; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--lions-giallo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D2240' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 2px; }

.tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tier { padding: 24px; border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: var(--bg); }
.tier h3 { font-size: var(--step-1); font-stretch: 80%; text-transform: uppercase; font-weight: 850; }
.tier.top { background: var(--lions-blu); color: #fff; border-color: var(--lions-blu); }
.tier.top .muted { color: #C7D3EC; }
.tier .rank { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.tier.top .rank { color: var(--lions-giallo); }

.bank { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--band-deep); color: #fff; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bank { grid-template-columns: 110px 1fr; align-items: center; } }
.bank img { width: 110px; }
.bank dl { margin: 0; display: grid; gap: 12px; }
.bank dt { font-size: .74rem; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: var(--lions-giallo); }
.bank dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 1.02rem; overflow-wrap: anywhere; }
.bank code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: .04em; }
.copy { font: inherit; font-size: .8rem; font-weight: 700; border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.copy[data-done] { background: var(--lions-giallo); color: #0D2240; border-color: var(--lions-giallo); }

/* occhio / fondo oculare */
.fundus { width: min(100%, 460px); aspect-ratio: 1; justify-self: center; position: relative; }
.fundus svg { width: 100%; height: 100%; overflow: visible; }
.fundus .scan { transform-origin: 200px 200px; animation: spin 7s linear infinite; }
.fundus .pulse { transform-origin: 200px 200px; animation: pulse 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.04); opacity: .7; } }
.fundus .vessel { fill: none; stroke: #8E1A12; stroke-linecap: round; opacity: .85; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s .3s ease-out forwards; }

/* countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; max-width: 480px; }
.countdown div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 6px; text-align: center; }
.countdown b { display: block; font-family: var(--f-display); font-weight: 850; font-stretch: 72%; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1; color: var(--lions-giallo); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C7D3EC; }

.big43 { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: clamp(9rem, 4rem + 26vw, 24rem); line-height: .78; color: var(--lions-giallo); letter-spacing: -.03em; }
.big43 sup { font-size: .32em; vertical-align: top; position: relative; top: .25em; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .d { font-family: var(--f-display); font-weight: 850; font-stretch: 72%; line-height: 1; }
.timeline .d b { display: block; font-size: 2.6rem; color: var(--accent-ink); }
.timeline .d small { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-stretch: 100%; }
.timeline h3 { font-size: 1.15rem; font-stretch: 85%; margin-bottom: 4px; }

.prices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.price { padding: 22px; border-radius: 18px; background: var(--surface); display: grid; gap: 6px; }
.price b { font-family: var(--f-display); font-size: var(--step-4); font-stretch: 70%; font-weight: 900; line-height: 1; color: var(--accent-ink); }
.price span { font-weight: 600; }

.cycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: c; }
@media (min-width: 900px) { .cycle { grid-template-columns: repeat(5, 1fr); } }
.cycle li { counter-increment: c; position: relative; padding: 22px 18px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); display: grid; gap: 6px; }
.cycle li::before { content: counter(c); font-family: var(--f-display); font-weight: 900; font-stretch: 70%; font-size: 3rem; line-height: 1; color: var(--lions-giallo); }
.cycle h3 { font-size: 1.2rem; font-stretch: 80%; text-transform: uppercase; }
.cycle p { color: var(--band-muted); font-size: .95rem; }
@media (min-width: 900px) { .cycle li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 38px; width: 8px; height: 8px; border-top: 2px solid var(--lions-giallo); border-right: 2px solid var(--lions-giallo); transform: rotate(45deg); } }

.roles { display: grid; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.roles div { background: var(--bg); padding: 20px; display: grid; gap: 4px; }
.roles b { font-family: var(--f-display); font-stretch: 80%; text-transform: uppercase; font-size: 1.15rem; color: var(--accent-ink); }

.towns { display: flex; flex-wrap: wrap; gap: 8px; }
.towns span { padding: 10px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; }
.towns span.pilot { background: var(--lions-giallo); color: #0D2240; border-color: var(--lions-giallo); }

.svcard { display: grid; gap: 0; border-radius: 24px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .svcard { grid-template-columns: 1.1fr 1fr; } }
.svcard .info { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.svcard dl { margin: 0; display: grid; gap: 10px; }
.svcard dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.svcard dt { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svcard dd { margin: 0; }
.goal { font-family: var(--f-display); font-weight: 900; font-stretch: 70%; font-size: var(--step-4); line-height: 1; color: var(--accent-ink); }
.badge { display: inline-block; background: var(--lions-blu); color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; padding: 6px 12px; border-radius: 999px; width: fit-content; }

/* chi siamo */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.facts div { background: var(--bg); padding: 18px 20px; display: grid; gap: 4px; }
.facts small { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts b { font-size: 1.12rem; }
.ethic { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ethic li { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 760px) { .ethic li { grid-template-columns: 220px 1fr; } }
.ethic b { font-family: var(--f-display); font-stretch: 75%; font-weight: 850; text-transform: uppercase; font-size: 1.5rem; color: var(--lions-giallo); line-height: 1.1; }
.ethic span { font-family: var(--f-long); font-size: 1.06rem; line-height: 1.6; color: #E3E9F6; }
.founders { columns: 2 180px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.founders li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

/* footer */
.foot { background: var(--band-deep); color: #fff; }
.foot .wrap { padding-block: clamp(48px, 6vw, 80px) 28px; display: grid; gap: 34px; }
.foot-top { display: grid; gap: 30px; }
@media (min-width: 860px) { .foot-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h2 { font-size: var(--step-2); overflow-wrap: anywhere; font-stretch: 72%; text-transform: uppercase; font-weight: 900; }
.foot h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lions-giallo); margin-bottom: 10px; font-weight: 800; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #fff; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.foot .muted { color: var(--band-muted); }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 64px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; color: var(--band-muted); }
.weserve { font-family: var(--f-display); font-weight: 900; font-stretch: 70%; letter-spacing: .3em; color: var(--lions-giallo); }

.note { font-size: .88rem; color: var(--muted); }
.pill-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid var(--lions-giallo); padding-bottom: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ridge .crest, .fundus .vessel { stroke-dashoffset: 0; }
}

.go svg, .pill-link svg, .btn svg { width: 1.1em; height: 1.1em; flex: none; }
.ridge-hint { display: none; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
@media (max-width: 800px) { .ridge-hint { display: block; } }

.prose p.eyebrow, .prose .eyebrow { font-family: var(--f-text); font-size: var(--step--1); line-height: 1.4; }
.cta-band { background: var(--lions-giallo); color: #0D2240; }
.cta-band .wrap { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 18px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, 1fr); } }

/* striscia anni: scorrimento con frecce, trascinamento e swipe */
.ystrip-in { position: relative; max-width: var(--max); margin-inline: auto; }
.ystrip .ys-track { scroll-behavior: smooth; scroll-snap-type: x proximity; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%); padding-left: 48px; padding-right: 48px; }
.ystrip .ys-track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.ystrip .ys-track.is-dragging a { pointer-events: none; }
.ystrip a { scroll-snap-align: center; text-decoration: none !important; user-select: none; -webkit-user-drag: none; }
.ys-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: opacity .2s; }
.ys-btn svg { width: 18px; height: 18px; }
.ys-btn:hover { background: var(--lions-giallo); color: #0D2240; border-color: var(--lions-giallo); }
.ys-prev { left: max(6px, env(safe-area-inset-left, 0px)); }
.ys-next { right: max(6px, env(safe-area-inset-right, 0px)); }
.ys-btn[disabled] { opacity: 0; pointer-events: none; }

/* domande frequenti */
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--f-text); font-weight: 700; font-size: 1.05rem; padding: 14px 36px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.6rem; font-weight: 400; color: var(--accent-ink); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 16px; }
.prose .ticks a, .faq a { color: var(--accent-ink); }
@media (min-width: 900px) { .roles.roles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .roles.roles-4 { grid-template-columns: repeat(4, 1fr); } }
