/* ════════════════════════════════════════════════════════════════════════════
   FONDO + ARTE GENERATIVA — stili specifici (integra style.css + listino.css)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Layout helpers ────────────────────────────────────────────────────── */

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
}

.prose {
  font-size: 1.02em;
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.prose ul, .prose ol {
  padding-left: 24px;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text-primary);
}

/* ── Hero variants ─────────────────────────────────────────────────────── */

.fondo-hero .hero-title,
.arte-hero .hero-title {
  letter-spacing: 0.02em;
}

.fondo-hero .hero-eyebrow {
  color: var(--accent-violet);
}

.arte-hero .hero-eyebrow {
  color: var(--accent-cyan);
}

/* ── FONDO — Pillars (3 cards alimentazione/beneficiari/governance) ───── */

.fondo-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.pillar-card-highlight {
  border-color: rgba(160, 112, 208, 0.35);
  box-shadow: 0 0 0 1px rgba(160, 112, 208, 0.1), 0 12px 32px rgba(160, 112, 208, 0.08);
}

.pillar-label {
  font-family: var(--font-display);
  font-size: 0.7em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin: 0 0 8px;
}

.pillar-card-highlight .pillar-label {
  color: var(--accent-cyan);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.05em;
  margin: 0 0 16px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.pillar-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.94em;
  line-height: 1.65;
  flex: 1;
}

.pillar-list li {
  margin-bottom: 8px;
}

.pillar-list strong {
  color: var(--text-primary);
}

/* ── ACTION CARDS (richiedi, collabora) ───────────────────────────────── */

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
}

.action-card-muted {
  background: rgba(8, 8, 15, 0.4);
  border-color: rgba(160, 112, 208, 0.18);
}

.action-title {
  font-family: var(--font-display);
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 14px;
}

.action-card-muted .action-title {
  color: var(--accent-violet);
}

.action-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.7;
}

.action-steps li {
  margin-bottom: 12px;
}

.action-steps ul {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style-type: disc;
}

.action-steps ul li {
  margin-bottom: 4px;
}

.action-card p {
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.7;
  margin: 0;
}

.action-card a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 255, 255, 0.35);
}

.action-card a:hover {
  border-bottom-color: var(--accent-cyan);
  color: #99ffff;
}

/* ── DONA — 4 card di tipo donazione ─────────────────────────────────── */

.dona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.dona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  font-size: 0.95em;
  line-height: 1.65;
  color: var(--text-secondary);
  transition: border-color 0.25s ease;
}

.dona-card:hover {
  border-color: var(--border-hover);
}

.dona-card-highlight {
  border-color: rgba(160, 112, 208, 0.35);
  background: linear-gradient(135deg, rgba(160, 112, 208, 0.08), rgba(15, 15, 25, 0.6));
}

.dona-label {
  font-family: var(--font-display);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 10px;
}

.dona-card-highlight .dona-label {
  color: var(--accent-violet);
}

.dona-card p {
  margin: 0;
  color: var(--text-secondary);
}

.dona-card a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 255, 255, 0.35);
}

.dona-card a:hover {
  border-bottom-color: var(--accent-cyan);
}

.dona-card strong {
  color: var(--text-primary);
}

/* ── DONA BANNER (trasparenza) ───────────────────────────────────────── */

.dona-banner {
  margin-top: 28px;
  padding: 22px 26px;
  background: rgba(160, 112, 208, 0.05);
  border: 1px solid rgba(160, 112, 208, 0.25);
  border-radius: var(--radius-md);
}

.dona-banner-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95em;
  line-height: 1.7;
}

.dona-banner-text strong {
  color: var(--text-primary);
}

/* ── ART (arte generativa) — donative banner ─────────────────────────── */

.donative-banner {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(102, 255, 255, 0.07), rgba(160, 112, 208, 0.05));
  border: 1px solid rgba(102, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  text-align: center;
}

.donative-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 12px;
}

.donative-title {
  font-family: var(--font-display);
  font-size: 1.7em;
  margin: 0 0 18px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.donative-body {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.75;
}

.donative-body a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 255, 255, 0.35);
}

.donative-body strong {
  color: var(--text-primary);
}

.donative-footnote {
  margin: 0;
  font-size: 0.84em;
  color: var(--text-muted);
  font-style: italic;
}

/* ── ART — tipologie ─────────────────────────────────────────────────── */

.art-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.art-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.art-type-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.art-type-icon {
  font-size: 1.8em;
  margin: 0 0 10px;
}

.art-type-card h3 {
  font-family: var(--font-display);
  font-size: 1em;
  margin: 0 0 10px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.art-type-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92em;
  line-height: 1.65;
}

/* ── ART — stack tecnologico ─────────────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stack-item {
  background: rgba(8, 8, 15, 0.5);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.92em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.stack-label {
  font-family: var(--font-display);
  font-size: 0.72em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 8px;
}

.stack-item p {
  margin: 0;
  color: var(--text-secondary);
}

.stack-item strong {
  color: var(--text-primary);
}

/* ── ART — progetti ──────────────────────────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.project-status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 4px 10px;
  border: 1px solid rgba(102, 255, 255, 0.35);
  border-radius: 999px;
  margin: 0 0 14px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.1em;
  margin: 0 0 10px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.project-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 0.93em;
  line-height: 1.65;
}

.project-card em {
  color: var(--text-primary);
  font-style: italic;
}

.project-meta {
  font-size: 0.82em;
  color: var(--text-muted);
  font-style: italic;
  margin: 12px 0 0 !important;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* ── FAQ accordion (details/summary nativi) ──────────────────────────── */

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.92em;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  list-style: none;
  position: relative;
  padding-right: 50px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  color: var(--accent-cyan);
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.94em;
  line-height: 1.7;
}

.faq-body p {
  margin: 0;
}

/* ── Closing CTA ─────────────────────────────────────────────────────── */

.closing-cta {
  text-align: center;
  padding: 32px 20px;
}

.closing-title {
  font-family: var(--font-display);
  font-size: 1.4em;
  margin: 0 0 14px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.closing-cta > p {
  color: var(--text-secondary);
  margin: 0 0 22px;
  font-size: 0.98em;
}

.closing-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ── Mobile adjustments ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .donative-banner {
    padding: 24px 20px;
  }
  .donative-title {
    font-size: 1.3em;
  }
  .pillar-card, .action-card, .project-card {
    padding: 20px;
  }
  .pillar-title {
    font-size: 1em;
  }
  .closing-title {
    font-size: 1.2em;
  }
  .faq-item summary {
    font-size: 0.88em;
    padding: 14px 18px;
    padding-right: 44px;
  }
  .faq-item summary::after {
    right: 16px;
  }
  .closing-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .closing-ctas .btn-primary,
  .closing-ctas .btn-secondary {
    text-align: center;
  }
}
