/* ============================================================================
   Estensioni public-templates.css per:
   - Home hero slogan
   - Chi siamo: libri, artisti, eventi storici
   - 5x1000: CF card, why blocks, steps, track list
   - Trasparenza: total, allocation bars, year bars, rendiconto
   - Realizzati: timeline year-by-year
   - Lasciti: blocks, quote, contact cards
   ============================================================================ */

/* Home hero — slogan top */
.pub-hero-slogan-top {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.95); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
  padding: 5px 14px; background: rgba(255,255,255,0.12);
  border-radius: 999px; backdrop-filter: blur(6px);
}

/* ── CHI SIAMO: Libri ──────────────────────────────────────────── */
.pub-about-books { padding: 64px 0; background: var(--panel-cream); }
.pub-about-books-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; margin-top: 32px;
}
.pub-about-book-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pub-about-book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28,36,24,0.08);
}
.pub-about-book-cover {
  aspect-ratio: 3/4; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pub-about-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-about-book-cover-placeholder {
  font-size: 48px; opacity: 0.4; color: var(--accent);
}
.pub-about-book-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.pub-about-book-year {
  font-size: 12px; color: var(--accent); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px;
}
.pub-about-book-title {
  font-family: var(--font-display);
  font-size: 19px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--text); margin: 0 0 8px;
}
.pub-about-book-desc {
  font-size: 13px; color: var(--text-soft); line-height: 1.5;
  flex: 1; margin: 0 0 12px;
}

/* ── CHI SIAMO: Artisti partner ────────────────────────────────── */
.pub-about-artists { padding: 56px 0; }
.pub-about-artists-list {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 28px; max-width: 880px; margin-left: auto; margin-right: auto;
}
.pub-about-artist-chip {
  display: inline-block; padding: 8px 16px;
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text);
  font-family: var(--font-display); font-style: italic;
  transition: all 0.15s;
}
.pub-about-artist-chip:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
}

/* ── CHI SIAMO: Eventi storici (timeline) ──────────────────────── */
.pub-about-history { padding: 56px 0; background: var(--panel-cream); }
.pub-about-history-timeline {
  display: flex; flex-direction: column; gap: 28px;
  max-width: 880px; margin: 32px auto 0;
}
.pub-about-history-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 24px; align-items: start;
  position: relative;
}
.pub-about-history-item::before {
  content: ""; position: absolute;
  left: 89px; top: 8px; bottom: -36px;
  width: 2px; background: var(--line);
}
.pub-about-history-item:last-child::before { display: none; }
.pub-about-history-year {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700; color: var(--accent);
  text-align: right; position: relative;
}
.pub-about-history-year::after {
  content: ""; position: absolute;
  right: -8px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--panel-cream);
  z-index: 1;
}
.pub-about-history-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 18px 22px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
}
.pub-about-history-photo {
  width: 120px; height: 90px; border-radius: 10px; overflow: hidden;
  background: var(--bg); flex-shrink: 0;
}
.pub-about-history-photo img { width: 100%; height: 100%; object-fit: cover; }
.pub-about-history-body h3 {
  font-family: var(--font-display);
  font-size: 19px; color: var(--text); margin: 0 0 4px;
}
.pub-about-history-place { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.pub-about-history-body p { font-size: 14px; color: var(--text-soft); line-height: 1.55; margin: 0; }
@media (max-width: 600px) {
  .pub-about-history-item { grid-template-columns: 1fr; }
  .pub-about-history-item::before { display: none; }
  .pub-about-history-year { text-align: left; font-size: 22px; }
  .pub-about-history-year::after { display: none; }
  .pub-about-history-card { grid-template-columns: 1fr; }
}

/* Riconoscimenti — ente */
.pub-about-award-ente {
  font-size: 12px; color: var(--text-muted);
  font-style: italic; margin-bottom: 8px;
}

/* ── 5x1000 ───────────────────────────────────────────────────── */
.pub-5x-cf { padding: 32px 0; }
.pub-5x-cf-card {
  max-width: 600px; margin: 0 auto;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff; border-radius: 22px;
  padding: 32px 28px; text-align: center;
  box-shadow: 0 16px 48px rgba(46,125,50,0.28);
}
.pub-5x-cf-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.92; margin-bottom: 12px;
}
.pub-5x-cf-num {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.pub-5x-cf-copy {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important; border-color: rgba(255,255,255,0.4) !important;
}
.pub-5x-cf-copy:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: #fff !important;
}

.pub-5x-why { padding: 56px 0; background: var(--panel-cream); }
.pub-5x-why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin-top: 32px;
}
.pub-5x-why-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 24px;
  border-top: 4px solid var(--accent);
}
.pub-5x-why-card h3 {
  font-family: var(--font-display); font-size: 20px;
  margin: 0 0 10px; color: var(--text);
}
.pub-5x-why-card p {
  font-size: 14px; color: var(--text-soft);
  line-height: 1.6; margin: 0;
}

.pub-5x-how { padding: 56px 0; }
.pub-5x-steps {
  display: flex; flex-direction: column; gap: 22px;
  margin-top: 32px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.pub-5x-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 22px 26px;
  transition: transform 0.2s ease;
}
.pub-5x-step:hover { transform: translateX(4px); }
.pub-5x-step-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 700; line-height: 1;
  color: var(--accent);
  display: grid; place-items: center;
}
.pub-5x-step-body h3 {
  font-family: var(--font-display);
  font-size: 20px; margin: 0 0 6px; color: var(--text);
}
.pub-5x-step-body p {
  font-size: 14px; color: var(--text-soft);
  line-height: 1.6; margin: 0;
}

.pub-5x-track { padding: 56px 0; background: var(--panel-cream); }
.pub-5x-track-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-top: 32px;
}
.pub-5x-track-item {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px 18px;
}
.pub-5x-track-year {
  font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.05em;
}
.pub-5x-track-title {
  font-family: var(--font-display); font-size: 17px;
  margin: 4px 0 4px; color: var(--text); line-height: 1.3;
}
.pub-5x-track-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.pub-5x-track-amount {
  font-family: ui-monospace, monospace; font-size: 14px;
  color: var(--accent); font-weight: 700;
}
.pub-5x-track-cta { text-align: center; margin-top: 28px; }

/* ── TRASPARENZA ──────────────────────────────────────────────── */
.pub-tr-total { padding: 24px 0; }
.pub-tr-total-inner { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.pub-tr-total-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff; border-radius: 22px;
  padding: 36px 28px; text-align: center;
  box-shadow: 0 16px 48px rgba(46,125,50,0.28);
}
.pub-tr-total-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.92; margin-bottom: 12px;
}
.pub-tr-total-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700; line-height: 1;
}
.pub-tr-total-sub {
  margin-top: 14px; font-size: 14px; opacity: 0.9;
}

.pub-tr-allocation { padding: 56px 0; }
.pub-tr-allocation-bars {
  max-width: 760px; margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 22px;
}
.pub-tr-bar {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px 20px;
}
.pub-tr-bar-row {
  display: flex; justify-content: space-between;
  margin-bottom: 8px; font-size: 14px;
}
.pub-tr-bar-label { color: var(--text); font-weight: 500; }
.pub-tr-bar-pct {
  font-family: ui-monospace, monospace;
  font-weight: 700; color: var(--accent);
}
.pub-tr-bar-track {
  height: 14px; background: var(--line-soft);
  border-radius: 999px; overflow: hidden;
}
.pub-tr-bar-fill {
  height: 100%; border-radius: 999px;
  transition: width 0.8s ease;
}
.pub-tr-bar-fill--projects { background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.pub-tr-bar-fill--admin    { background: linear-gradient(90deg, #6E8568, #9aaa92); }
.pub-tr-bar-fill--comm     { background: linear-gradient(90deg, var(--gold), #d6b85f); }

.pub-tr-years { padding: 56px 0; background: var(--panel-cream); }
.pub-tr-years-grid {
  max-width: 880px; margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 14px;
}
.pub-tr-year-row {
  display: grid; grid-template-columns: 70px 1fr auto auto;
  gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 12px 18px;
}
.pub-tr-year-label {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--accent);
}
.pub-tr-year-bar {
  height: 10px; background: var(--line-soft);
  border-radius: 999px; overflow: hidden;
}
.pub-tr-year-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 999px;
}
.pub-tr-year-amount {
  font-family: ui-monospace, monospace;
  font-weight: 700; color: var(--text); font-size: 14px;
}
.pub-tr-year-count {
  font-size: 12px; color: var(--text-muted); white-space: nowrap;
}
@media (max-width: 600px) {
  .pub-tr-year-row { grid-template-columns: 60px 1fr; }
  .pub-tr-year-bar, .pub-tr-year-count { grid-column: 1 / -1; }
  .pub-tr-year-amount { grid-column: 2; text-align: right; }
}

.pub-tr-rendiconto {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 22px 26px;
  max-width: 760px; margin: 0 auto;
}
.pub-tr-rendiconto-icon { font-size: 38px; line-height: 1; }
.pub-tr-rendiconto h3 {
  margin: 0 0 4px; font-family: var(--font-display); font-size: 20px;
}
.pub-tr-rendiconto p { margin: 0; font-size: 14px; color: var(--text-soft); }
.pub-tr-rendiconto .pub-btn-primary { margin-left: auto; }

/* ── REALIZZATI ───────────────────────────────────────────────── */
.pub-realizzati { padding: 56px 0; }
.pub-realizzati-timeline {
  display: flex; flex-direction: column; gap: 36px; margin-top: 36px;
}
.pub-realizzati-year-header {
  display: flex; align-items: baseline; gap: 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 18px;
}
.pub-realizzati-year-num {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700; color: var(--accent); line-height: 1;
}
.pub-realizzati-year-total { font-size: 14px; color: var(--text-soft); margin-left: auto; }
.pub-realizzati-year-total::before { content: "Totale anno: "; color: var(--text-muted); }
.pub-realizzati-year-items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pub-realizzati-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.pub-realizzati-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,36,24,0.08);
}
.pub-realizzati-card-photo { aspect-ratio: 16/10; background: var(--bg); }
.pub-realizzati-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pub-realizzati-card-body {
  padding: 16px 18px; flex: 1;
  display: flex; flex-direction: column;
}
.pub-realizzati-card-title {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.3;
  color: var(--text); margin: 0 0 6px;
}
.pub-realizzati-card-where {
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 10px; flex: 1;
}
.pub-realizzati-card-amount {
  font-family: ui-monospace, monospace;
  font-weight: 700; color: var(--accent); font-size: 15px;
}

/* ── LASCITI ──────────────────────────────────────────────────── */
.pub-lasciti-block { padding: 56px 0; }
.pub-lasciti-block--alt { background: var(--panel-cream); }
.pub-lasciti-inner { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.pub-lasciti-quote { padding: 48px 0; background: var(--accent); color: #fff; }
.pub-lasciti-quote blockquote {
  margin: 0 auto; max-width: 720px; padding: 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4; font-style: italic; text-align: center;
  color: #fff;
}

.pub-lasciti-contact { padding: 56px 0; }
.pub-lasciti-contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
@media (max-width: 760px) {
  .pub-lasciti-contact-inner { grid-template-columns: 1fr; gap: 28px; }
}
.pub-lasciti-contact-cards { display: grid; gap: 14px; }
.pub-lasciti-contact-card {
  display: block; padding: 18px 22px;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 14px; text-decoration: none; color: var(--text);
  transition: all 0.15s;
}
.pub-lasciti-contact-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28,36,24,0.06); text-decoration: none;
}
.pub-lasciti-contact-icon { font-size: 28px; }
.pub-lasciti-contact-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px;
}
.pub-lasciti-contact-value {
  font-family: var(--font-display); font-size: 18px;
  color: var(--accent); margin-top: 2px;
}
