/* ===========================================================
   Fondazione Casa Santi Arcangeli ETS — foglio di stile
   Palette terra / caldo · Spectral (titoli) + Public Sans (testo)
   =========================================================== */

:root {
  --cream:   #F4EDDF;
  --paper:   #FCF8F0;
  --ink:     #2A211A;
  --terra:   #A9482A;
  --terra-d: #7F3319;
  --ocra:    #C9A24E;
  --gold:    #E0AE5F;
  --line:    #E2D7C2;
  --line-2:  #ECE2CE;
  --muted:   #5A4C3B;
  --muted-2: #8A7659;
  --sand:    #EFE6D4;
  --sand-2:  #F4EBD9;
  --serif:   'Spectral', Georgia, 'Times New Roman', serif;
  --sans:    'Public Sans', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-d); }
::selection { background: #E3C79A; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow {
  display: block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--terra); font-weight: 600; margin-bottom: 16px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,248,240,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 44px; height: 44px; flex: none; border: 1.5px solid var(--terra); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .5px; color: var(--terra);
}
.brand .name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name strong { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .2px; }
.brand .name span {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav a { color: #4A3E30; }
.nav a:hover { color: var(--terra); }
.nav a.btn-primary { color: var(--paper); }
.nav a.btn-primary:hover { color: var(--paper); }
.btn {
  display: inline-block; border-radius: 2px; font-weight: 600; cursor: pointer;
  padding: 9px 18px; font-size: 14.5px;
}
.btn-primary { background: var(--terra); color: var(--paper); }
.btn-primary:hover { background: var(--terra-d); color: var(--paper); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-ghost { border: 1.5px solid #C9B78F; color: #4A3E30; }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg,#F7F1E5 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
  padding-top: 76px; padding-bottom: 84px;
}
.hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.5px; margin-bottom: 22px; }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.figure {
  border-radius: 4px; overflow: hidden; border: 1px solid #DECFB2; background: var(--sand); position: relative;
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure .cap {
  position: absolute; left: 0; bottom: 0;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  color: var(--paper); background: rgba(42,33,26,.82); padding: 6px 12px; border-top-right-radius: 4px;
}
.hero .figure { aspect-ratio: 4/5; }

/* ---------- Stat strip ---------- */
.stats { background: var(--ink); color: #F2E8D6; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; text-align: center;
  padding-top: 34px; padding-bottom: 34px;
}
.stats-grid .mid { border-left: 1px solid #4A3E2E; border-right: 1px solid #4A3E2E; }
.stat-n { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--gold); }
.stat-l { font-size: 13.5px; color: #C7B79C; margin-top: 4px; letter-spacing: .3px; }

/* ---------- Sections ---------- */
.section { padding-top: 92px; padding-bottom: 92px; }
.section.alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: 36px; line-height: 1.15; }
.section .intro { max-width: 660px; }
.section .intro p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 16px 0 0; }

/* ---------- Chi siamo ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.about-grid .col-lead h2 { margin-bottom: 20px; }
.about-grid .col-lead p { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0; }
.quote {
  margin: 0 0 34px; padding: 24px 28px; background: var(--paper);
  border-left: 3px solid var(--terra); border-radius: 2px;
}
.quote .label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 10px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; color: #3A2E22; margin: 0; }
.trait { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.trait .num { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ocra); flex: none; width: 34px; }
.trait .t-title { font-weight: 600; font-size: 16px; margin-bottom: 5px; color: var(--ink); }
.trait .t-body { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Progetti ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb { aspect-ratio: 16/10; border-bottom: 1px solid var(--line); position: relative; background: var(--sand); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .loc {
  position: absolute; left: 0; bottom: 0;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  color: var(--paper); background: rgba(42,33,26,.82); padding: 6px 12px; border-top-right-radius: 4px;
}
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; line-height: 1.25; margin: 0 0 10px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Donare ---------- */
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.give-card { border-radius: 4px; padding: 34px; }
.give-dark { background: var(--ink); color: #F2E8D6; }
.give-light { background: var(--paper); border: 1px solid var(--line); }
.give-card .label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.give-dark .label { color: var(--gold); }
.give-light .label { color: var(--terra); }
.give-card .small { font-size: 13px; margin-bottom: 6px; }
.give-dark .small { color: #C7B79C; }
.give-light .small { color: var(--muted-2); }
.give-name { font-family: var(--serif); font-size: 19px; margin-bottom: 22px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.iban { font-size: 17px; letter-spacing: .5px; color: #F7EFDE; background: #3A2E22; padding: 12px 14px; border-radius: 3px; }
.give-light p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0 0 22px; }
.cf { font-size: 22px; letter-spacing: 2px; color: var(--terra); font-weight: 600; background: var(--sand-2); padding: 12px 14px; border-radius: 3px; text-align: center; }

/* ---------- Trasparenza ---------- */
.doc-groups { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin: 48px 0 22px; }
.doc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 26px 28px; }
.doc-panel h3 { font-size: 20px; margin: 0 0 16px; }
.doc-list { display: flex; flex-direction: column; }
.doc-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line-2); color: #3A2E22;
}
.doc-link:hover { color: var(--terra); }
.doc-link .l { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; }
.pdf-tag {
  width: 26px; height: 26px; flex: none; border-radius: 3px; background: var(--sand-2);
  color: var(--terra); font-size: 9px; font-weight: 700; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.doc-link .arrow { color: #B79A6A; font-size: 15px; flex: none; }

/* accordion */
.acc { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 26px 28px; }
.acc > h3 { font-size: 20px; margin: 0 0 6px; }
.acc > .sub { font-size: 13.5px; color: var(--muted-2); margin: 0 0 14px; }
.acc-item { border-top: 1px solid var(--line-2); }
.acc-head {
  width: 100%; background: none; border: none; cursor: pointer; padding: 15px 2px;
  display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); color: var(--ink);
}
.acc-head .yr { display: flex; align-items: center; gap: 14px; }
.acc-head .yr b { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--terra); }
.acc-head .yr span { font-size: 13px; color: var(--muted-2); }
.acc-head .sign { font-size: 20px; color: #B79A6A; line-height: 1; }
.acc-panel { display: none; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 4px 2px 18px; }
.acc-item.open .acc-panel { display: grid; }
.acc-item.open .acc-head .sign::before { content: '\2212'; }
.acc-head .sign::before { content: '+'; }
.doc-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--sand-2); border-radius: 3px; font-size: 13.5px; font-weight: 500; color: #3A2E22;
}
.doc-chip:hover { color: var(--terra); background: #EFE2C9; }
.doc-chip .pdf-tag { background: var(--paper); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-grid h2 { margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list .k { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 5px; }
.contact-list .v { font-size: 16px; color: #3A2E22; }
.map { aspect-ratio: 5/4; border-radius: 4px; overflow: hidden; border: 1px solid #DECFB2; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7B79C; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .mark {
  width: 40px; height: 40px; flex: none; border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--gold);
}
.footer-brand strong { font-family: var(--serif); font-weight: 600; font-size: 16px; color: #F2E8D6; line-height: 1.2; }
.site-footer p { font-size: 13.5px; line-height: 1.65; margin: 0; max-width: 320px; }
.footer-col .h { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-links a { color: #C7B79C; }
.footer-links a:hover { color: var(--gold); }
.footer-data { font-size: 14px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #4A3E2E; }
.footer-bottom .wrap { padding-top: 20px; padding-bottom: 20px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .give-grid, .doc-groups { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .figure { max-width: 420px; }
}
@media (max-width: 680px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav { display: none; }
  .hero h1 { font-size: 38px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid .mid { border: none; border-top: 1px solid #4A3E2E; border-bottom: 1px solid #4A3E2E; padding: 20px 0; }
  .acc-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
