/* Rari in Rete-AL ODV — foglio di stile */
:root {
  --navy: #0b1e5b;
  --blue: #1740cc;
  --blue-2: #1f6fe0;
  --sky: #2a9be8;
  --accent: #f6a81c;
  --pink: #f0479b;
  --violet: #a98bf5;
  --cyan: #5ee7ef;
  --ink: #1b2240;
  --muted: #59628a;
  --line: #e3e8f4;
  --bg-alt: #f3f6fd;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 30, 91, .25);
  --grad: linear-gradient(120deg, #1438c8 0%, #1a5ad8 50%, #2196e8 100%);
  --font: "Lato", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 800;
  text-decoration: none; letter-spacing: .02em; background: var(--blue); color: #fff; border: 2px solid transparent;
  transition: transform .15s, background .15s, color .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); color: #fff; background: var(--navy); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #ffb933; color: var(--navy); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #fff; color: var(--pink); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Testata ---------- */
.site-header { background: var(--grad); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 18px rgba(11,30,91,.25); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-heart { width: 50px; height: 46px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 900; font-size: 1.35rem; letter-spacing: -.01em; }
.brand-name small { font-size: .62em; font-weight: 800; }
.brand-sub { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; opacity: .9; margin-top: .25rem; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: .7rem .75rem; color: #fff; text-decoration: none; font-weight: 800;
  text-transform: uppercase; font-size: .84rem; letter-spacing: .04em; border-radius: 8px; }
.main-nav > ul > li.has-sub > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a, .main-nav > ul > li:focus-within > a { background: rgba(255,255,255,.14); }
.main-nav > ul > li.active > a { box-shadow: inset 0 -3px 0 var(--accent); }
.main-nav .sub { position: absolute; left: 0; top: 100%; min-width: 250px; list-style: none; margin: 0; padding: .5rem;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .15s; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: .55rem .8rem; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 8px; font-size: .95rem; }
.main-nav .sub a:hover, .main-nav .sub a[aria-current] { background: var(--bg-alt); color: var(--blue); }

.btn-dona { padding: .6rem 1.15rem; font-size: .9rem; flex-shrink: 0; }
.menu-toggle { display: none; align-items: center; gap: .55rem; background: rgba(255,255,255,.14); color: #fff; border: 0;
  border-radius: 999px; padding: .6rem 1rem; font: inherit; font-weight: 800; text-transform: uppercase; font-size: .82rem;
  letter-spacing: .06em; cursor: pointer; }
.menu-toggle .bars { display: grid; gap: 4px; }
.menu-toggle .bars span { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; }

/* ---------- Menu a tutto schermo (mobile) ---------- */
.overlay-menu { position: fixed; inset: 0; z-index: 60; overflow-y: auto; color: #fff;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.18), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,.12), transparent 35%), linear-gradient(160deg, #1d50d8, #0b3fb8 60%, #0a2f95); }
.overlay-menu[hidden] { display: none; }
.overlay-top { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.overlay-close { background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .2rem .6rem; }
.overlay-nav { width: min(560px, 100% - 2.5rem); margin: 1.5rem auto 3rem; }
.overlay-nav ul { list-style: none; margin: 0; padding: 0; }
.ov-row { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; }
.overlay-nav > ul > li > .ov-row > a { flex: 1; display: block; padding: .55rem .8rem; color: #fff; text-decoration: none;
  font-weight: 900; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .01em; }
.overlay-nav li.open > .ov-row { background: rgba(10, 40, 160, .55); }
.ov-toggle { background: none; border: 0; color: #fff; padding: .6rem .8rem; cursor: pointer; transition: transform .2s; }
.overlay-nav li.open .ov-toggle { transform: rotate(180deg); }
.ov-sub { display: none; padding: .3rem 0 .8rem 1.6rem !important; }
.overlay-nav li.open .ov-sub { display: block; }
.ov-sub a { display: block; padding: .4rem .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; opacity: .95; }
.ov-sub a:hover, .overlay-nav a:hover { color: var(--accent); }
a.ov-dona { margin-top: 1rem; display: inline-block !important; white-space: nowrap; flex: none !important; background: var(--accent); color: var(--navy) !important; border-radius: 999px; padding: .6rem 1.5rem !important; }
body.menu-open { overflow: hidden; }

/* ---------- Hero home ---------- */
.hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 45%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(200px, 380px) 1fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0 5rem; position: relative; z-index: 1; }
.hero-heart { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.18)); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -.02em; }
.hero h1 small { font-size: .42em; font-weight: 800; }
.accent-bar { display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--accent); margin: 1.1rem 0 .9rem; }
.hero-sub { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; margin: 0; font-size: clamp(.8rem, 1.5vw, 1rem); }
.hero-tagline { font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.35; margin: 1.3rem 0 2rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Banda missione (su tutte le pagine) ---------- */
.mission { background: var(--bg-alt); border-top: 1px solid var(--line); }
.mission-inner { display: flex; gap: 1.6rem; align-items: center; padding: 2.4rem 0; }
.mission-heart { width: 70px; height: 65px; flex-shrink: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--blue); font-size: .78rem; margin: 0 0 .35rem; }
.mission-text { margin: 0; font-size: 1.15rem; line-height: 1.6; max-width: 75ch; }
.mission-big { background: #fff; border: 0; }
.mission-big .mission-inner { padding: 3.2rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.mission-big .mission-text { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; color: var(--navy); }
.mission-big .mission-heart { width: 92px; height: 86px; }

/* ---------- Pagine interne ---------- */
.page-hero { background: var(--grad); color: #fff; padding: 2.6rem 0 2.4rem; }
.page-hero h1 { margin: .3rem 0 0; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.page-hero .accent-bar { margin-bottom: 0; }
.page-lead { margin: .8rem 0 0; font-size: 1.15rem; max-width: 60ch; opacity: .95; }
.crumbs { font-size: .85rem; font-weight: 700; display: flex; gap: .5rem; flex-wrap: wrap; opacity: .9; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

.content-wrap { padding: 2.8rem 0 3.5rem; }
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.6rem; color: var(--navy); margin: 2rem 0 .6rem; line-height: 1.25; }
.prose h3 { font-size: 1.3rem; color: var(--blue); margin: 1.6rem 0 .5rem; }
.prose h4 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: var(--radius); margin: 1.2rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 5px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.2rem 0; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; }
.prose a[href$=".pdf"]::before { content: "PDF"; font-size: .65em; font-weight: 900; background: var(--pink); color: #fff; padding: .15em .4em; border-radius: 4px; margin-right: .4em; vertical-align: .15em; }
.lead { font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.featured img { width: 100%; max-height: 460px; object-fit: cover; margin-top: 0; }
.featured { margin: 0 0 1.5rem; }
.contact-list { list-style: none; padding: 1.2rem 1.4rem !important; background: var(--bg-alt); border-radius: var(--radius); }
.iban { font-family: ui-monospace, Consolas, monospace; font-size: 1.1em; letter-spacing: .04em; background: var(--bg-alt); padding: .2em .5em; border-radius: 6px; word-break: break-all; }
.back { margin-top: 2.5rem; font-weight: 700; }
.empty { color: var(--muted); }

/* ---------- Sezioni e schede ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--navy); margin: 0 0 1.6rem; letter-spacing: -.01em; }
.section-title.small { font-size: 1.45rem; margin-top: 2.8rem; }
.link-more { font-weight: 800; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.4rem 1.3rem; flex: 1; }
.card-date { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); }
.card-title { font-size: 1.22rem; font-weight: 900; color: var(--navy); line-height: 1.25; }
.card-text { color: var(--muted); font-size: .98rem; flex: 1; }
.card-more { font-weight: 800; color: var(--blue); margin-top: .3rem; }
.card:hover .card-more { color: var(--pink); }
.pager { display: flex; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.4rem; text-align: center; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager span { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Invito al sostegno ---------- */
.cta { background: linear-gradient(110deg, #0b2a8f, #5b3fd0 55%, #d23e94); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem 0; flex-wrap: wrap; }
.cta h2 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.cta p { margin: 0; font-size: 1.1rem; opacity: .95; max-width: 55ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--navy); color: #cfd8f5; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding: 3.2rem 0 2.2rem; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; margin: .4rem 0 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-tagline { font-style: italic; margin: 1rem 0; max-width: 40ch; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--accent); color: var(--navy); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0 1.6rem; font-size: .85rem; color: #9fb0e0; }
.footer-bottom a { color: #cfd8f5; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .btn-dona { margin-left: auto; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.6rem 0 3.2rem; text-align: left; }
  .hero-heart { width: 150px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .mission-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-heart { width: 40px; height: 37px; }
  .btn-dona { display: none; }
  .menu-toggle { margin-left: auto; }
  .menu-toggle .label { display: none; }
  .overlay-nav > ul > li > .ov-row > a { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .mission, .cta, .overlay-menu { display: none !important; } }
