/*
 * Stile delle pagine statiche di approfondimento (matrimoni, eventi aziendali,
 * concerti/Natale/cerimonie, storia del gospel).
 * File indipendente dal CSS della SPA: riprende solo palette, font e stile card.
 * Il tema scuro segue la scelta salvata dal sito in localStorage ("onesoul_theme").
 */
:root {
  --bg-primary: #e2f4f5;
  --bg-secondary: #f0fafb;
  --bg-dark: #0a0e0f;
  --text-primary: #1c1c1c;
  --text-secondary: #4a4a4a;
  --accent-color: #5ce1e6;
  --accent-hover: #3edbe0;
  --accent-dark: #124d52;
  --accent-light: #e0fbfd;
  --font-title: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(10, 30, 20, 0.05);
}

html.dark-theme {
  --bg-primary: #0a0e0f;
  --bg-secondary: #12181a;
  --text-primary: #e2f4f5;
  --text-secondary: #c5d9dc;
  --accent-light: #b8f4f6;
  --glass-bg: rgba(18, 25, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* Barra di navigazione */
.sp-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
}
.sp-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
}
.sp-brand img { width: 36px; height: 36px; border-radius: 8px; }
.sp-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  list-style: none;
  margin-left: auto;
}
.sp-menu a {
  color: #dfdfdf;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.92rem;
}
.sp-menu a:hover,
.sp-menu a[aria-current="page"] { color: var(--accent-color); }

/* Hero */
.sp-hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
.sp-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.sp-hero-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.4rem;
}
.sp-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.sp-hero p {
  font-size: 1.15rem;
  max-width: 60ch;
  color: #e6e6e6;
  font-weight: 300;
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

/* Pulsante (stesso aspetto del pulsante principale del sito) */
.sp-cta {
  display: inline-block;
  background: var(--accent-color);
  color: var(--bg-dark);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(132, 204, 169, 0.3);
  transition: all 0.2s ease;
}
.sp-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Contenuto */
.sp-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1rem;
}
.sp-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 2.2rem;
  margin-bottom: 2rem;
}
.sp-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}
html.dark-theme .sp-tag { color: var(--accent-color); }
.sp-card h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.sp-card h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.5rem;
}
.sp-card p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}
.sp-card ul {
  margin: 0 0 1.2rem 1.3rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.sp-card li { margin-bottom: 0.45rem; }
.sp-card p a,
.sp-card li a {
  color: var(--accent-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}
html.dark-theme .sp-card p a,
html.dark-theme .sp-card li a { color: var(--accent-color); }

.sp-figure { margin: 0 0 1.6rem; }
.sp-figure img { border-radius: 16px; width: 100%; }
.sp-figure figcaption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.sp-cta-card { text-align: center; }
.sp-cta-card p { max-width: 52ch; margin-left: auto; margin-right: auto; }

.sp-related ul { list-style: none; margin-left: 0; }
.sp-related li { margin-bottom: 0.6rem; }

/* Footer */
.sp-footer {
  background: var(--bg-dark);
  color: #bdbdbd;
  margin-top: 2rem;
}
.sp-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  font-size: 0.92rem;
}
.sp-footer a { color: var(--accent-color); text-decoration: none; }
.sp-footer a:hover { text-decoration: underline; }
.sp-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1rem;
}

/* 404 */
.sp-404 { text-align: center; padding: 3rem 0 1rem; }

@media (max-width: 640px) {
  .sp-hero-inner { padding: 2.8rem 1.25rem 2.4rem; }
  .sp-card { padding: 1.5rem; border-radius: 20px; }
  .sp-card h2 { font-size: 1.5rem; }
  .sp-menu { margin-left: 0; }
}
