/* Font ospitati sul sito (licenza SIL Open Font License) – nessuna richiesta a Google */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-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: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-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;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/literata-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: 'Literata';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/literata-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;
}

/* Amici di Leos – foglio di stile del nuovo sito */

:root {
  --bg: #fbf8f3;
  --ink: #1d2433;
  --ink-2: #3a4254;
  --ink-3: #2b3242;
  --muted: #4a5264;
  --line: #e6dfd3;
  --line-2: #ebe4d8;
  --line-3: #efe9df;
  --sand: #f3ece1;
  --sand-hover: #ebe1d1;
  --sand-2: #f1ebe1;
  --ph: #efe7da;
  --blue: #2d4f8a;
  --blue-dark: #1d3663;
  --blue-soft: #e8eef8;
  --orange: #e67e22;
  --orange-hover: #f08c33;
  --eyebrow: #a8520c;
  --serif: Literata, Georgia, serif;
  --sans: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap--narrow { max-width: 860px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Tipografia ---------- */
.eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--eyebrow); text-wrap: balance; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.lead { margin: 0 0 40px; font-size: 20px; color: var(--ink-2); max-width: 38em; }
.lead--wide { max-width: 40em; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.h2--sm { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 20px; }
.label { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.text-2 { color: var(--ink-2); }
.link-strong { background: none; border: 0; padding: 0; font-weight: 700; font-size: 18px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Pulsanti ---------- */
.btn {
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font-size: 18px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.btn--sm { min-height: 52px; padding: 0 22px; font-size: 17px; }
.btn--xs { min-height: 48px; padding: 0 20px; font-size: 16px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-hover); color: var(--ink); }
.btn--outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { color: var(--ink); background: var(--sand-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 248, 243, 0.97); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; padding: 4px 0; }
.brand img { height: 52px; width: auto; display: block; }

.nav-main { display: none; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav-main a { border-radius: 999px; padding: 9px 14px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-main a:hover { background: var(--sand-2); color: var(--ink); }
.nav-main a[aria-current="page"] { background: var(--blue-soft); font-weight: 700; color: var(--blue-dark); }
.nav-main .nav-donate { margin-left: 8px; background: var(--orange); padding: 10px 18px; font-weight: 700; color: var(--ink); }
.nav-main .nav-donate:hover { background: var(--orange-hover); }

.menu-btn {
  min-width: 48px; min-height: 48px; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0 18px; font-size: 16px; font-weight: 700;
}
.menu-btn__icon { display: flex; flex-direction: column; gap: 4px; }
.menu-btn__icon span { display: block; width: 18px; height: 2px; background: #fff; }

.nav-mobile { border-top: 1px solid var(--line); background: var(--bg); padding: 8px 20px 24px; max-height: calc(100vh - 73px); overflow: auto; }
.nav-mobile > a {
  display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px;
  border-bottom: 1px solid var(--line-2); padding: 0 4px; font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav-mobile > a[aria-current="page"] { font-weight: 700; color: var(--blue); }
.nav-mobile > a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.nav-mobile__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.nav-mobile__cta .btn { min-height: 52px; padding: 0 12px; font-size: 17px; }

@media (min-width: 960px) {
  .nav-main { display: flex; }
  .menu-btn, .nav-mobile { display: none !important; }
}

/* ---------- Barra mobile fissa ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(29, 36, 51, 0.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mobile-bar .btn { min-height: 52px; padding: 0 12px; font-size: 17px; }
.menu-open .mobile-bar { display: none; }
.footer-spacer { height: 84px; }
@media (min-width: 960px) {
  .mobile-bar, .footer-spacer { display: none; }
}

/* ---------- Griglie ---------- */
.grid { display: grid; gap: 20px; }
.grid--210 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.grid--420 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 56px; align-items: center; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.ph { background: var(--ph); }

/* ---------- Home ---------- */
.hero { padding-top: 20px; padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px 56px; align-items: center; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; display: block; }
.hero__badge { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 15px; line-height: 1.35; box-shadow: 0 4px 18px rgba(29, 36, 51, 0.12); }
.hero__badge strong { display: block; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero__text { font-size: clamp(18px, 2vw, 20px); margin: 0 0 28px; color: var(--ink-2); max-width: 34em; }
.hero .eyebrow { margin-bottom: 12px; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.facts .grid { padding-top: 22px; padding-bottom: 22px; gap: 14px 32px; font-size: 16px; }
.facts strong { display: block; font-size: 18px; }

.section { padding-top: 64px; padding-bottom: 64px; }
.section--top { padding-bottom: 24px; }
.section--mid { padding-top: 48px; padding-bottom: 48px; }
.section--bottom { padding-top: 24px; }
.section__intro { margin: 0 0 28px; color: var(--ink-2); max-width: 40em; }

.area-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; text-decoration: none; }
.area-card:hover { border-color: var(--blue); color: var(--ink); }
.area-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.area-card__body { padding: 18px 20px 22px; }
.area-card h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }
.area-card p { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); }
.area-card__more { font-weight: 700; color: var(--blue); font-size: 16px; }

.story { background: var(--sand); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 56px; align-items: center; }
.story img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 20px; display: block; background: #e7dccb; }
.story .eyebrow { margin-bottom: 12px; }
.story blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
.story blockquote p { margin: 0 0 8px; }
.story blockquote p + p { margin: 0; color: var(--blue); }
.story__text { margin: 0 0 16px; color: var(--ink-2); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .h2 { margin: 0; }
.section-head .link-strong { font-size: 17px; }

.news-card { text-align: left; color: var(--ink); display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.news-card:hover { color: var(--ink); }
.news-card:hover .news-card__title { text-decoration: underline; text-underline-offset: 4px; }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; display: block; }
.news-card__meta { font-size: 15px; color: var(--muted); }
.news-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; }

.band-blue { background: var(--blue); color: #fff; }
.band-blue h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.12; margin: 0 0 14px; }
.band-blue__text { margin: 0; font-size: 19px; max-width: 32em; }
.cf-box { background: #fff; color: var(--ink); border-radius: 22px; padding: 24px; }
.cf-box .cf { margin: 0 0 16px; font-size: clamp(30px, 5vw, 40px); font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; max-width: none; }
.cf-box .btn-row { gap: 10px; }

.cta-split { gap: 24px 56px; }
.cta-split p { margin: 0; color: var(--ink-2); }
.cta-split .btn { font-size: 17px; padding: 0 22px; }
.cta-split .btn--blue { font-size: 18px; padding: 0 26px; }

/* ---------- Équipe ---------- */
.team-card { overflow: hidden; display: flex; flex-direction: column; }
.team-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.team-card h2 { margin: 0; font-size: 23px; line-height: 1.25; }
.team-card__role { margin: 0; font-weight: 600; color: var(--blue); }
.team-card ul { margin: 4px 0 0; padding-left: 20px; font-size: 17px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.team-card__link { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 16px; }

.note-box { margin-top: 40px; background: var(--sand); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px 40px; align-items: center; }
.note-box h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 0; }
.note-box p { margin: 0; color: var(--ink-2); }
.note-box strong { color: var(--ink); }

/* ---------- Attività ---------- */
.type-card { padding: 26px; }
.type-card__tag { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.type-card h3 { margin: 16px 0 8px; font-size: 22px; line-height: 1.25; }
.type-card p { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); }
.type-card .type-card__for { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.types { margin-bottom: 56px; }

.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.benefits li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.benefits li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: translateY(-1px); }
.split--top { align-items: start; }
.attivita-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 22px; display: block; margin-bottom: 24px; }
.links-list { margin: 0; padding-left: 20px; font-size: 17px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Progetti ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 2px solid #d8cfc0; background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; }
.filters button:hover { border-color: var(--blue); }
.filters button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
.groups { display: flex; flex-direction: column; gap: 40px; }
.group h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 30px); }
.group h2 span { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--muted); }
.group ul { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.group li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-3); }
.group li:last-child { border-bottom: 0; }
.group__place { color: var(--muted); }
.group__years { font-size: 16px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.info-box { margin-top: 40px; background: var(--blue-soft); border-radius: 20px; padding: 22px 24px; font-size: 18px; }

/* ---------- Gallery / Lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.thumb { display: block; padding: 0; border: 0; background: var(--ph); border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.thumb:hover img { transform: scale(1.03); }
.thumb--wide { aspect-ratio: 4/3; }

.lightbox { position: fixed; inset: 0; z-index: 50; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 20px; background: rgba(15, 19, 28, 0.92); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.lightbox p { margin: 0; color: #fff; font-size: 17px; max-width: 40em; text-align: center; }
.lightbox .btn { min-height: 52px; padding: 0 26px; font-size: 17px; background: #fff; color: var(--ink); }

/* ---------- Bacheca ---------- */
.posts { display: flex; flex-direction: column; gap: 28px; }
.post { padding: clamp(20px, 4vw, 32px); scroll-margin-top: 100px; }
.post__meta { margin: 0 0 8px; font-size: 16px; color: var(--muted); }
.post h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; }
.post p:not(.post__meta) { margin: 0 0 14px; color: var(--ink-3); }
.post__toggle { min-height: 44px; background: none; border: 0; padding: 0; font-weight: 700; font-size: 17px; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; margin-bottom: 12px; }
.post__imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 6px; }

/* ---------- Sostienici ---------- */
.donate-card { border-radius: 24px; padding: clamp(24px, 4vw, 36px); }
.donate-card--blue { background: var(--blue); color: #fff; }
.donate-card h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 36px); margin: 0 0 12px; }
.donate-card--blue h2 { margin: 16px 0 18px; }
.pill-tag { display: inline-block; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 6px 14px; }
.steps { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.copy-box { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.copy-box--sand { background: var(--sand); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.copy-box__value { font-size: clamp(26px, 4.5vw, 34px); font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.copy-box__value--iban { font-size: clamp(17px, 2.6vw, 21px); letter-spacing: 0.04em; word-break: break-all; }
.donate-card .value { margin: 0 0 16px; font-size: 19px; }
.donate-card .value:last-child { margin: 0; }
.thanks { margin: 40px 0 0; font-family: var(--serif); font-size: 26px; text-align: center; }

/* ---------- Contatti ---------- */
.contact-card { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.contact-card--blue { background: var(--blue); color: #fff; }
.contact-card--blue a { color: #fff; }
.contact-card h2 { margin: 0; font-size: 22px; }
.contact-card__mail { font-size: 21px; font-weight: 700; word-break: break-all; }
.contact-card .btn { margin-top: auto; min-height: 52px; font-size: 18px; }
.contact-card--blue .btn--orange { color: var(--ink); }
.social-link { min-height: 52px; border-radius: 14px; background: var(--sand); color: var(--ink); font-weight: 700; display: flex; align-items: center; padding: 10px 18px; line-height: 1.35; text-decoration: none; }
.social-link:hover { background: var(--sand-hover); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); }
.site-footer__grid { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 40px; font-size: 16px; }
.site-footer img { height: 60px; width: auto; display: block; margin-bottom: 14px; }
.site-footer p { margin: 0; color: var(--ink-2); }
.site-footer .footer-org { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; align-content: start; }
.footer-nav a { padding: 6px 0; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
}
