/* Biografie - Biciingiro.it | CSS condiviso scritto a mano (stile iOS, nessun framework) */
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(/biografie/assets/fonts/inter-latin-ext.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:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(/biografie/assets/fonts/inter-latin.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}

:root {
  --bg: #F2F2F7; --text: #1D1D1F; --muted: #6E6E73; --faint: #86868B;
  --card: rgba(255,255,255,.7); --card-border: rgba(255,255,255,.5); --card-shadow: 0 8px 32px rgba(0,0,0,.05);
  --btn: #fff; --btn-text: #374151; --line: rgba(0,0,0,.08);
  --accent: #007AFF; --accent-strong: #0071E3; --link: #0066CC;
  --input: rgba(255,255,255,.9); --photo-border: #fff;
}
.dark {
  --bg: #000; --text: #F5F5F7; --muted: #A1A1A6; --faint: #8E8E93;
  --card: rgba(28,28,30,.7); --card-border: rgba(255,255,255,.1); --card-shadow: 0 8px 32px rgba(0,0,0,.2);
  --btn: #1f2937; --btn-text: #e5e7eb; --line: rgba(255,255,255,.08);
  --link: #4DA3FF; --input: rgba(44,44,46,.9); --photo-border: #1f2937;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
html.dark { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color .4s, color .4s; }
a { color: var(--link); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 16px; }
@media (min-width: 640px) { .wrap { padding: 32px 24px; } }
@media (min-width: 1024px) { .wrap { padding: 48px 32px; } }

/* Header come nella pagina biografia */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--btn); color: var(--btn-text); box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s; }
.icon-btn:hover { transform: scale(1.1); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .sun { display: none; color: #FACC15; }
.dark .icon-btn .moon { display: none; }
.dark .icon-btn .sun { display: block; }
.site-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9999px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 500; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.site-pill:hover { color: var(--link); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 32px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li[aria-current] { color: var(--text); font-weight: 500; }

/* Card vetro iOS */
.ios-card { background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); border-radius: 24px; }

.hero { padding: 32px 24px; margin-bottom: 32px; }
@media (min-width: 640px) { .hero { padding: 40px; } }
.hero h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 640px) { .hero h1 { font-size: 52px; } }
.hero p { margin: 0 0 24px; font-size: 17px; color: var(--muted); max-width: 60ch; }

.search { position: relative; max-width: 520px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 52px; padding: 0 16px 0 48px; font: inherit; font-size: 16px; color: var(--text); background: var(--input); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,122,255,.2); }
.hero .count { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.section-title { font-size: 24px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Griglia persone */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1536px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid > li[hidden] { display: none; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 28px 24px 24px; transition: transform .3s cubic-bezier(.25,.8,.25,1), box-shadow .3s; }
.person:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,.1); }
.person img { width: 128px; height: 128px; object-fit: cover; border-radius: 22px; border: 4px solid var(--photo-border); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); background: #e5e7eb; }
.person h3 { margin: 20px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.person .role { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.person .meta { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.person .meta svg { width: 16px; height: 16px; }
.btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 12px; background: var(--accent-strong); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 15px -3px rgba(0,113,227,.25); transition: background-color .2s; }
.btn:hover { background: #0062C4; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.empty { padding: 32px; text-align: center; color: var(--muted); }

.foot { margin-top: 40px; text-align: center; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Logo libro + nome sezione nell'header */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,122,255,.3); }
.top-actions { display: flex; align-items: center; gap: 12px; }
