/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #c44e47;
  --red-dark:  #9a3530;
  --red-light: #db6259;
  --ink:       #1c2a3a;
  --ink-soft:  #3a4a5e;
  --cream:     #faf6f0;
  --parchment: #f4ece0;
  --paper:     #fffcf6;
  --brown:     #5c3d2e;
  --gold:      #c9a84c;
  --gold-soft: #e6d49a;
  --text:      #1a1a1a;
  --muted:     #6b6b6b;
  --muted-soft:#9a9a9a;
  --border:    #e2dcd2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.16);
  --radius:    4px;
  --radius-lg: 8px;
  --radius-pill: 50px;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-display: 'Funnel Display', 'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', 'Inter', system-ui, sans-serif;
  --transition: .22s ease;
}

html { scroll-behavior: smooth; }

/* Sticky-nav offset for anchor scrolls */
:target,
#map,
#highlights,
#all-versions,
#timeline,
#history,
#fischia,
#deepdive,
#today,
#quiz { scroll-margin-top: 116px; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(192,57,43,.4);
  z-index: 998;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
  opacity: 0;
}
.back-to-top:not([hidden]) { opacity: 1; }
.back-to-top:hover { background: var(--red-light); transform: translateY(-3px); }
@media (max-width: 640px) {
  .back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; font-size: 18px; }
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26,10,5,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 24px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: #fff;
}

.logo-subtitle {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.museum-link {
  font-size: 12px;
  color: rgba(255,255,255,.78);
  letter-spacing: .04em;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.museum-link::before {
  content: "←";
  font-size: 14px;
  opacity: .6;
  transition: transform var(--transition), opacity var(--transition);
}
.museum-link:hover { color: var(--gold); text-decoration: none; }
.museum-link:hover::before { transform: translateX(-3px); opacity: 1; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.6);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 6px 12px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
  background: var(--gold);
  color: #1a0a05;
}
.header-right { display: flex; align-items: center; gap: 14px; }

/* ===== LANGUAGE WARNING (EN only) ===== */
.lang-warning {
  background: #2a1810;
  color: rgba(255,255,255,.78);
  border-top: 1px solid rgba(201,168,76,.4);
  border-bottom: 1px solid rgba(201,168,76,.4);
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .01em;
}
.lang-warning[hidden] { display: none; }

/* ===== SECTION NAV ===== */
.section-nav {
  position: sticky;
  top: 60px;
  z-index: 999;
  background: #1a0a05;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.section-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav-link {
  flex-shrink: 0;
  position: relative;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  transition: color var(--transition);
}
.section-nav-link:hover { color: #fff; text-decoration: none; }
.section-nav-link.active { color: #fff; }
.section-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--red);
}
@media (max-width: 640px) {
  .section-nav-inner { gap: 20px; padding: 0 18px; }
  .section-nav-link { padding: 14px 0; font-size: 13px; }
}

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(165deg, rgba(26,10,5,.86) 0%, rgba(61,26,20,.82) 40%, rgba(107,44,34,.78) 100%),
    url('../images/h-liberazione-torino-1945.jpg') center 35% / cover no-repeat;
  background-color: #1a0a05;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle vignette to focus attention on the centered text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(26,10,5,.45) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { z-index: 1; }

.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 86px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title em {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  color: rgba(255,255,255,.55);
  font-size: 14px;
}

.hero-stats strong { color: var(--gold); font-size: 18px; }
.stat-sep { color: rgba(255,255,255,.25); }

.btn-surprise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(192,57,43,.5);
  letter-spacing: .02em;
}

.btn-surprise:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(192,57,43,.6);
}

.btn-surprise:active { transform: translateY(0); }

.btn-icon { font-size: 20px; }

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.35);
  font-size: 13px;
  letter-spacing: .08em;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== CONTROLS ===== */
.controls-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 60px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.controls-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-input {
  width: 100%;
  padding: 9px 16px 9px 42px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--cream);
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}

.filter-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 15px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-family: var(--font-sans);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--red); color: var(--red); }

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.filter-sep {
  color: var(--border);
  margin: 0 4px;
  font-size: 16px;
}

.filter-dialect {
  font-weight: 600;
}

.filter-dialect.active {
  background: linear-gradient(135deg, #009246 0%, #f1f2f1 50%, #ce2b37 100%);
  border-color: transparent;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* ===== MAP ===== */
.map-section {
  position: relative;
  background: #0a1628;
}

#map {
  height: 520px;
  width: 100%;
  z-index: 1;
}

.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10,22,40,.82);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.75);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
}

/* Leaflet markers */
.bella-marker {
  background: var(--red);
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.85);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.bella-marker:hover {
  transform: scale(1.35);
  box-shadow: 0 4px 16px rgba(192,57,43,.7);
  z-index: 999 !important;
}

.bella-marker.multi {
  background: var(--gold);
  border-color: #fff;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0 !important;
  overflow: hidden;
  border: none !important;
}

.leaflet-popup-content {
  margin: 0 !important;
}

.map-popup {
  padding: 14px 18px;
  min-width: 200px;
}

.map-popup-flag { font-size: 28px; margin-bottom: 4px; }
.map-popup-lang { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.map-popup-country { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.map-popup-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition);
}
.map-popup-btn:hover { background: var(--red-dark); }

/* Cluster popup */
.cluster-popup { padding: 14px 18px; }
.cluster-popup h4 { font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.cluster-popup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: color var(--transition);
}
.cluster-popup-item:last-child { border-bottom: none; }
.cluster-popup-item:hover { color: var(--red); }
.cluster-item-flag { font-size: 18px; }
.cluster-item-lang { font-size: 13px; font-weight: 600; }
.cluster-item-country { font-size: 11px; color: var(--muted); }

/* ===== GRID SECTION ===== */
.grid-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-badge {
  background: var(--red);
  color: #fff;
  border-radius: 50px;
  padding: 2px 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  transition: all var(--transition);
}

.view-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Grid mode */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.versions-grid.list-mode {
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Version card */
.version-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  animation: cardIn .3s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.version-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}

.card-thumb {
  background: linear-gradient(135deg, #1a0a05 0%, #4a1c14 100%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-flag {
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .3s ease;
}

.version-card:hover .card-flag { transform: scale(1.1); }

.card-flag-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 18px;
  background: var(--paper);
  transition: transform .4s ease;
}
.version-card:hover .card-flag-photo { transform: scale(1.04); }
.card-thumb--with-photo {
  background: var(--paper);
}
.card-thumb--with-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.map-popup-flag-photo {
  display: block;
  width: 90px;
  height: 60px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin: 0 auto 8px;
  padding: 4px;
}

.cluster-item-flag-photo {
  display: block;
  width: 44px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  padding: 2px;
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192,57,43,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.version-card:hover .card-play-overlay { background: rgba(192,57,43,.35); }

.card-play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
  color: var(--red);
}

.version-card:hover .card-play-icon {
  opacity: 1;
  transform: scale(1);
}

.card-seeking .card-thumb {
  background: linear-gradient(135deg, #2a2520 0%, #4a3a30 100%);
}

.card-seeking .card-flag { opacity: 0.55; }

.card-seeking-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.card-sungin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(28,42,58,.86);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201,168,76,.25);
}

.card-seeking .card-lang { color: var(--muted); }
.card-seeking .card-performer { color: var(--muted-soft); font-size: 12px; }

.card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-lang {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.2;
}

.card-lang-native {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.card-country {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-performer {
  font-size: 13px;
  color: var(--text);
  margin-top: auto;
  font-style: italic;
}

.card-year {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* List mode card */
.versions-grid.list-mode .version-card {
  flex-direction: row;
  height: 80px;
}

.versions-grid.list-mode .card-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.versions-grid.list-mode .card-flag { font-size: 36px; }

.versions-grid.list-mode .card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.versions-grid.list-mode .card-lang { font-size: 15px; min-width: 160px; }
.versions-grid.list-mode .card-lang-native { margin: 0; }
.versions-grid.list-mode .card-country { margin: 0; }
.versions-grid.list-mode .card-performer { margin: 0; }
.versions-grid.list-mode .card-year { display: none; }

/* No results */
.no-results {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  font-size: 16px;
}

.hidden { display: none !important; }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.08);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  z-index: 10;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: var(--red); color: #fff; }

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 0;
}

.modal-flag { font-size: 52px; flex-shrink: 0; line-height: 1; }
.modal-flag-photo {
  display: block;
  width: 84px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
@media (max-width: 640px) {
  .modal-flag-photo { width: 64px; height: 44px; }
}

.modal-meta { flex: 1; }

.modal-title {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.modal-performer {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 4px;
}

.modal-lang-country {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: .04em;
}

.modal-player {
  padding: 20px 28px 0;
  position: relative;
}

#ytPlayerWrap {
  position: relative;
  width: 100%;
}

#ytPlayer, #ytPlayer iframe, #ytPlayerWrap iframe {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a1a;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 20px;
  gap: 14px;
}

.video-placeholder.error { background: #2a1a18; }

.video-placeholder-icon {
  font-size: 44px;
  opacity: .9;
}

.video-placeholder p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.video-placeholder a {
  color: var(--gold-soft);
  text-decoration: underline;
}

.video-placeholder-cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--red);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--transition);
}

.video-placeholder-cta:hover { background: var(--red-light); }

.player-loading {
  position: absolute;
  inset: 20px 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border-radius: var(--radius);
  color: rgba(255,255,255,.6);
  gap: 12px;
  font-size: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.modal-desc {
  padding: 18px 28px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-nav {
  display: flex;
  gap: 8px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.nav-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text);
  transition: all var(--transition);
}

.nav-btn:hover { border-color: var(--red); color: var(--red); }

.nav-surprise {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.nav-surprise:hover { background: var(--red-dark); color: #fff; }

.modal-tags {
  padding: 14px 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tags:empty { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  letter-spacing: .02em;
}

.tag-resistenza { background: rgba(196,78,71,.08); border-color: rgba(196,78,71,.3); color: var(--red-dark); }
.tag-storico    { background: rgba(201,168,76,.12); border-color: rgba(201,168,76,.4); color: #8a6a1f; }
.tag-folk       { background: rgba(92,61,46,.08); border-color: rgba(92,61,46,.3); color: var(--brown); }
.tag-rock       { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.2); color: #111; }
.tag-pop        { background: rgba(231,76,60,.08); border-color: rgba(231,76,60,.3); color: var(--red-light); }
.tag-protesta   { background: rgba(196,78,71,.08); border-color: rgba(196,78,71,.3); color: var(--red); }
.tag-lavoro     { background: rgba(199,165,77,.1); border-color: rgba(199,165,77,.4); color: #7a5e1f; }
.tag-casa-di-carta { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); color: #fff; border-color: transparent; }
.tag-mondine { background: rgba(199,165,77,.12); border-color: rgba(199,165,77,.4); color: #7a5e1f; }
.tag-donna-vita-libertà { background: rgba(76,175,80,.1); border-color: rgba(76,175,80,.35); color: #2e7d32; }
.tag-mahsa-amini { background: rgba(76,175,80,.1); border-color: rgba(76,175,80,.35); color: #2e7d32; }
.tag-strajk-kobiet { background: rgba(216,27,96,.08); border-color: rgba(216,27,96,.35); color: #ad1457; }
.tag-kobane-ypj { background: rgba(255,193,7,.12); border-color: rgba(255,152,0,.4); color: #b35900; }
.tag-nova-cançó { background: rgba(244,67,54,.08); border-color: rgba(244,67,54,.3); color: #b71c1c; }
.tag-nueva-canción { background: rgba(244,67,54,.08); border-color: rgba(244,67,54,.3); color: #b71c1c; }
.tag-quattro-giornate { background: rgba(244,67,54,.1); border-color: rgba(244,67,54,.35); color: #b71c1c; }
.tag-ucraina-2022 { background: rgba(33,150,243,.08); border-color: rgba(33,150,243,.3); color: #0d47a1; }
.tag-proteste-tbilisi { background: rgba(244,67,54,.08); border-color: rgba(244,67,54,.3); color: #b71c1c; }
.tag-proteste-contadini-india { background: rgba(255,152,0,.08); border-color: rgba(255,152,0,.3); color: #a04500; }
.tag-URSS-1971 { background: rgba(183,28,28,.08); border-color: rgba(183,28,28,.3); color: #7a0000; }
.tag-partigiani-ebrei { background: rgba(70,90,170,.08); border-color: rgba(70,90,170,.3); color: #2a3d7a; }
.tag-paghjella { background: rgba(120,144,156,.1); border-color: rgba(120,144,156,.3); color: #37474f; }

.modal-lyrics {
  margin: 16px 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.modal-lyrics summary {
  cursor: pointer;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
  transition: background var(--transition);
}

.modal-lyrics summary::-webkit-details-marker { display: none; }
.modal-lyrics summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
  transition: transform var(--transition);
}

.modal-lyrics[open] summary::after { transform: rotate(180deg); }
.modal-lyrics summary:hover { background: var(--parchment); }

.lyrics-body {
  padding: 18px 22px 22px;
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.lyrics-block { margin-bottom: 18px; }
.lyrics-block:last-child { margin-bottom: 0; }

.lyrics-block h4 {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 6px;
}

.lyrics-block p {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  margin: 0;
}

.lyrics-block.translit p { font-family: var(--font-sans); font-size: 13px; color: var(--muted); font-style: italic; }
.lyrics-block.translation p { font-family: var(--font-sans); font-size: 13px; color: var(--muted-soft); }

.lyrics-block.original[dir="rtl"] p { text-align: right; }

.modal-yt-link {
  padding: 10px 28px 0;
  text-align: center;
}

.yt-search-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  transition: all var(--transition);
}

.yt-search-link:hover {
  color: #fff;
  background: #ff0000;
  border-color: #ff0000;
  text-decoration: none;
}

.yt-icon { font-size: 11px; }

.modal-license {
  padding: 8px 28px 20px;
  font-size: 11px;
  color: #bbb;
  text-align: center;
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--parchment);
  border-top: 1px solid #ddd;
  padding: 80px 24px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-inner h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  text-align: center;
  margin-bottom: 48px;
  color: var(--brown);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.about-card:hover { box-shadow: var(--shadow-md); }

.about-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--brown);
}

.about-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a0a05;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 40px 24px;
}

.footer-inner { max-width: 700px; margin: 0 auto; }

.footer-contribute {
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .25);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 30px;
  text-align: left;
}

.footer-contribute h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-contribute p {
  font-size: 14px !important;
  color: rgba(255,255,255,.7) !important;
  line-height: 1.7 !important;
}

.site-footer p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.site-footer strong { color: rgba(255,255,255,.9); }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }
.footer-small { font-size: 12px; color: rgba(255,255,255,.35); }

.footer-credits {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  text-align: left;
}
.footer-credits summary {
  cursor: pointer;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 6px 0;
}
.footer-credits summary:hover { color: var(--gold); }
.footer-credits ul {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}
.footer-credits li {
  padding: 6px 0;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-credits li:last-child { border-bottom: 0; }
.footer-credits strong { color: rgba(255,255,255,.75); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; padding: 60px 20px 50px; }
  .hero-title { font-size: 38px; }
  #map { height: 380px; }
  .versions-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-thumb { height: 110px; }
  .card-flag { font-size: 48px; }
  .modal-box { border-radius: var(--radius); }
  .modal-header { padding: 20px 20px 0; }
  .modal-player { padding: 16px 20px 0; }
  .modal-desc { padding: 14px 20px 0; }
  .modal-nav { padding: 16px 20px; }
  .modal-license { padding: 0 20px 16px; }
  .about-section { padding: 60px 20px; }
  .controls-inner { flex-direction: column; align-items: stretch; }
  .filter-wrap { justify-content: flex-start; }
  .versions-grid.list-mode .card-body { flex-wrap: wrap; gap: 4px; }
  .versions-grid.list-mode .card-lang { min-width: auto; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 4px; }
  .stat-sep { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-flag { font-size: 36px; }
  .modal-title { font-size: 20px; }
}

/* Leaflet overrides */
.leaflet-control-attribution { font-size: 10px !important; }
.leaflet-popup-tip-container { display: none; }

/* ============================================================
   FUN FACTS TICKER
   ============================================================ */
.facts-ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.facts-ticker-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.facts-label {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 50px;
}

.facts-rotator {
  flex: 1;
  position: relative;
  min-height: 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
}

.facts-rotator .fact {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}

.facts-rotator .fact.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

@media (max-width: 768px) {
  .facts-ticker-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .facts-rotator { font-size: 14px; }
}

/* ============================================================
   SECTION INTROS (reusable)
   ============================================================ */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section {
  background: var(--paper);
  padding: 90px 24px;
  border-top: 1px solid var(--border);
}

.timeline-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  transform: translateX(-50%);
}

.tl-event {
  position: relative;
  width: 50%;
  padding: 16px 48px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

.tl-event.in-view {
  opacity: 1;
  transform: translateY(0);
}

.tl-event:nth-child(odd) {
  margin-left: 0;
}

.tl-event:nth-child(even) {
  margin-left: 50%;
}

/* arrange chronologically: 1906 first, then 1919, etc. */
.tl-event[data-year="1906"] { order: 1; }
.tl-event[data-year="1919"] { order: 2; }
.tl-event[data-year="1944"] { order: 3; }
.tl-event[data-year="1962"] { order: 4; }
.tl-event[data-year="1964"] { order: 5; }
.tl-event[data-year="1973"] { order: 6; }
.tl-event[data-year="2017"] { order: 7; }
.tl-event[data-year="2022"] { order: 8; }

.timeline { display: flex; flex-direction: column; }

.tl-dot {
  position: absolute;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}

.tl-event:nth-child(odd) .tl-dot { right: -8px; }
.tl-event:nth-child(even) .tl-dot { left: -8px; }

.tl-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(28,42,58,.06);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.tl-card::before {
  content: '';
  position: absolute;
  top: 26px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px;
}

.tl-event:nth-child(odd) .tl-card::before {
  right: -16px;
  border-color: transparent transparent transparent #fff;
}

.tl-event:nth-child(even) .tl-card::before {
  left: -16px;
  border-color: transparent #fff transparent transparent;
}

.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(28,42,58,.12);
}

.tl-year {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.tl-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.tl-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.tl-card em { color: var(--red); font-style: italic; }

.tl-image {
  margin: -22px -24px 16px;
  position: relative;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.tl-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.tl-image figcaption {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
  padding: 8px 14px 10px;
  background: var(--cream);
  line-height: 1.4;
}
.tl-image figcaption em {
  color: var(--ink);
  font-style: italic;
}
@media (max-width: 768px) {
  .tl-image img { height: 200px; }
}

/* Object-position per ogni foto della timeline */
.tl-image img[src*="tl-mondine-morbelli"] { object-position: 35% center; }
.tl-image img[src*="h-partigiane-brera"] { object-position: center 22%; }
.tl-image img[src*="h-giovanna-daffini"] { object-position: 62% 30%; }
.tl-image img[src*="tl-yves-montand"] {
  object-fit: contain;
  object-position: center center;
  background: #1f1f1f;
}
.tl-image img[src*="tl-mercedes-sosa"] { object-position: 28% 35%; }
.tl-image img[src*="tl-kiev-2022"] { object-position: center 45%; }

@media (max-width: 768px) {
  .tl-line { left: 18px; }
  .tl-event,
  .tl-event:nth-child(odd),
  .tl-event:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 12px 0 12px 44px;
  }
  .tl-event:nth-child(odd) .tl-dot,
  .tl-event:nth-child(even) .tl-dot {
    left: 10px;
    right: auto;
  }
  .tl-event:nth-child(odd) .tl-card::before,
  .tl-event:nth-child(even) .tl-card::before {
    left: -16px;
    right: auto;
    border-color: transparent #fff transparent transparent;
  }
  .timeline-section { padding: 60px 18px; }
}

/* ============================================================
   HIGHLIGHTS — curatorial selection
   ============================================================ */
.highlights-section {
  background: #fff;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.highlights-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 16px;
}

.hl-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(28,42,58,.14);
  border-color: var(--red);
}

.hl-thumb {
  background: linear-gradient(135deg, #1a0a05 0%, #4a1c14 100%);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hl-flag {
  font-size: 90px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6));
  transition: transform .35s ease;
}

.hl-card:hover .hl-flag { transform: scale(1.08); }

.hl-flag-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 28px;
  background: var(--paper);
  transition: transform .5s ease;
}
.hl-card:hover .hl-flag-photo { transform: scale(1.04); }
.hl-card--with-photo .hl-thumb { background: var(--paper); }
.hl-card--with-photo .hl-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.hl-play {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.hl-card:hover .hl-play { opacity: 1; transform: translateY(0); }

.hl-body { padding: 18px 22px 24px; }

.hl-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  line-height: 1.5;
}

.hl-lang {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.hl-performer {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .highlights-section { padding: 60px 18px; }
  .highlights-grid { grid-template-columns: 1fr; }
  .hl-flag { font-size: 70px; }
}

/* ============================================================
   HISTORY & RESISTANCE
   ============================================================ */
.history-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}

.history-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--red) 15%,
    var(--gold) 50%,
    var(--red) 85%,
    transparent 100%);
}

.history-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.history-hero-image {
  margin: 0 auto 48px;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 40px rgba(28,42,58,.18);
  border: 1px solid var(--border);
}
.history-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.history-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28,18,8,.55) 100%);
  pointer-events: none;
}
.history-hero-caption {
  position: absolute;
  left: 24px; right: 24px; bottom: 18px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  z-index: 1;
}
@media (max-width: 640px) {
  .history-hero-image { height: 240px; margin-bottom: 32px; }
  .history-hero-caption { font-size: 13px; left: 16px; right: 16px; }
}

.hist-card-image {
  margin: -28px -26px 20px;
  height: 200px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid var(--border);
}
.hist-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hist-card-image-feature {
  margin: -40px -38px 24px;
  height: 280px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 640px) {
  .hist-card-image-feature { margin: -30px -24px 20px; height: 220px; }
}

/* Object-position fixes for individual photos to keep faces/subjects visible */
.history-hero-image img[src*="h-mondine-1940"] { object-position: center 55%; }
.hist-card-image-feature img[src*="h-partigiano-firenze"] { object-position: center 8%; }
.hist-card-image img[src*="h-partigiane-brera"] { object-position: center 28%; }
.hist-card-image img[src*="h-liberazione-torino"] { object-position: center 62%; }
.hist-card-image img[src*="h-giovanna-daffini"] { object-position: 62% 32%; }
.hist-card-image img[src*="h-partigiani-bologna"] { object-position: center 40%; }

/* Expandable details for history cards */
.hist-expand {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.hist-expand > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  user-select: none;
  transition: color var(--transition);
}
.hist-expand > summary::-webkit-details-marker { display: none; }
.hist-expand > summary::after {
  content: '↓';
  font-size: 12px;
  transition: transform var(--transition);
}
.hist-expand[open] > summary::after { transform: rotate(180deg); }
.hist-expand > summary:hover { color: var(--red-dark); }
.hist-expand-body {
  padding-top: 14px;
  animation: histExpandIn .3s ease;
}
.hist-expand-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px !important;
}
.hist-expand-body p:last-child { margin-bottom: 0 !important; }
.hist-expand-body strong { color: var(--red); font-weight: 600; }
.hist-expand-body em { color: var(--ink); font-style: italic; font-weight: 500; }
.hist-expand-body a { color: var(--red); font-weight: 600; }
.hist-list {
  margin: 0 0 14px 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
}
.hist-list li { margin-bottom: 6px; color: var(--text); }
.hist-list li:last-child { margin-bottom: 0; }

/* Feature card (dark) variant */
.hist-feature .hist-expand { border-top-color: rgba(255,255,255,.1); }
.hist-feature .hist-expand > summary { color: var(--gold-soft); }
.hist-feature .hist-expand > summary:hover { color: var(--gold); }
.hist-feature .hist-expand-body p,
.hist-feature .hist-list li { color: rgba(255,255,255,.78); }
.hist-feature .hist-expand-body strong,
.hist-feature .hist-list strong { color: var(--gold-soft); }
.hist-feature .hist-expand-body em,
.hist-feature .hist-list em { color: var(--gold-soft); }

@keyframes histExpandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Expandable details for deep dive articles */
.dd-expand {
  margin-top: 18px;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.dd-expand > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  user-select: none;
  transition: color var(--transition);
}
.dd-expand > summary::-webkit-details-marker { display: none; }
.dd-expand > summary::after {
  content: '+';
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  transition: transform var(--transition);
}
.dd-expand[open] > summary::after { content: '−'; }
.dd-expand > summary:hover { color: var(--red); }
.dd-expand-body {
  padding-top: 16px;
  animation: histExpandIn .3s ease;
}
.dd-expand-body p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 14px !important;
}
.dd-expand-body p:last-child { margin-bottom: 0 !important; }
.dd-expand-body strong { color: var(--ink); font-weight: 600; }
.dd-expand-body em { color: var(--red); font-style: italic; }
.dd-expand-body ul,
.dd-expand-body ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
}
.dd-expand-body li { margin-bottom: 8px; color: var(--text); }
.dd-expand-body li:last-child { margin-bottom: 0; }

/* ============================================================
   FISCHIA IL VENTO — the other partisan anthem
   Visually distinct from the rest of the site:
   dark background, parchment-on-ink palette, restrained type
   ============================================================ */
.fischia-section {
  background: linear-gradient(180deg, #14100c 0%, #1f1611 100%);
  color: var(--cream);
  padding: 90px 24px 110px;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.fischia-inner { max-width: 1100px; margin: 0 auto; }

.fischia-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .3em;
  position: relative;
}
.fischia-divider span {
  padding: 0 18px;
  background: linear-gradient(180deg, #14100c, #1a130e);
  position: relative;
  z-index: 1;
}
.fischia-divider::before {
  content: '';
  position: absolute;
  left: 10%; right: 10%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .45;
}

.fischia-intro { color: var(--cream); margin-bottom: 50px; }
.fischia-intro .section-eyebrow {
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.fischia-intro .section-title {
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 64px);
  margin: 14px 0 18px;
}
.fischia-intro .section-lead {
  color: rgba(255,255,255,.78);
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
}
.fischia-intro .section-lead strong { color: var(--gold-soft); }
.fischia-intro .section-lead em { color: var(--gold-soft); font-style: italic; }

.fischia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
}

.fischia-card {
  background: rgba(255,250,240,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.fischia-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--red);
  background: rgba(255,250,240,.06);
}

/* Hero image on top of fischia-card (for non-author cards) */
.fischia-card-image {
  margin: -26px -28px 20px;
  height: 200px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fischia-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92);
}
.fischia-card:hover .fischia-card-image img { filter: brightness(1); }
/* Per-image crop tuning */
.fischia-card-image img[src*="h-partigiano-fuoco"] { object-position: center 25%; }
.fischia-card-image img[src*="h-vendone-panorama"] { object-position: center 60%; }

.fischia-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: #fff;
  margin: 6px 0 12px;
  line-height: 1.25;
}
.fischia-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.76);
  margin-bottom: 12px;
}
.fischia-card p:last-child { margin-bottom: 0; }
.fischia-card strong { color: var(--gold-soft); font-weight: 600; }
.fischia-card em { color: var(--gold-soft); font-style: italic; }

.fischia-kicker {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Author card: two columns photo + bio */
.fischia-author {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
  grid-column: 1 / -1;
}
.fischia-author-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  aspect-ratio: 4/5;
  background: #2a1d12;
}
.fischia-author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: contrast(1.05) brightness(.96);
}
.fischia-author-body { min-width: 0; }
.fischia-dates {
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px !important;
  font-style: italic;
}

/* Wide card spans both columns */
.fischia-card-wide { grid-column: 1 / -1; padding: 32px 36px; }

/* Listen card with embedded video */
.fischia-listen { grid-column: 1 / -1; }
.fischia-yt {
  margin: 14px 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(255,255,255,.1);
}
.fischia-yt iframe { width: 100%; height: 100%; display: block; border: 0; }
.fischia-lyrics-snippet {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-size: 16px !important;
  color: var(--gold-soft) !important;
  text-align: center;
  padding: 8px 0 0;
  line-height: 1.9 !important;
}

@media (max-width: 768px) {
  .fischia-section { padding: 60px 18px 80px; }
  .fischia-grid { grid-template-columns: 1fr; gap: 16px; }
  .fischia-author {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fischia-author-photo { max-width: 200px; aspect-ratio: 1/1; }
  .fischia-card { padding: 22px 22px; }
  .fischia-card-wide { padding: 22px 22px; }
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.hist-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.hist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(28,42,58,.1);
}

.hist-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
}

.hist-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}

.hist-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}

.hist-card p:last-child { margin-bottom: 0; }

.hist-card strong { color: var(--red); font-weight: 600; }
.hist-card em { color: var(--ink); font-style: italic; font-weight: 500; }

.hist-link {
  margin-top: 14px !important;
  font-size: 13px !important;
}

.hist-link a {
  color: var(--red);
  font-weight: 600;
  letter-spacing: .02em;
}

/* Feature card (overrides) — must come AFTER .hist-card defaults */
.hist-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1c1208 0%, #2d1810 100%);
  color: var(--cream);
  border-top-color: var(--gold);
  padding: 40px 38px;
}

.hist-feature .hist-num { color: var(--gold); font-size: 38px; }
.hist-feature h3 { color: #fff; font-size: 26px; }
.hist-feature p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.8; }
.hist-feature strong { color: var(--gold-soft); }
.hist-feature em { color: var(--gold-soft); }

@media (max-width: 1024px) {
  .history-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .history-section { padding: 70px 18px; }
  .history-grid { grid-template-columns: 1fr; gap: 16px; }
  .hist-feature { padding: 30px 24px; }
}

/* ============================================================
   DEEP DIVE (historical/sociological)
   ============================================================ */
.deepdive-section {
  background: #fff;
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.deepdive-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.dd-article {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.dd-article:hover {
  box-shadow: 0 8px 28px rgba(28,42,58,.08);
  transform: translateY(-2px);
}

.dd-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.dd-article h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}

.dd-article p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}

.dd-article p:last-child { margin-bottom: 0; }

.dd-article strong {
  color: var(--ink);
  font-weight: 600;
}

.dd-article em {
  color: var(--red);
  font-style: italic;
}

.dd-quote {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1c2a3a 0%, #2c3e50 100%);
  color: #fff;
  text-align: center;
  padding: 50px 40px;
}

.dd-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  line-height: 1.45;
  color: var(--gold-soft);
  margin-bottom: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.dd-quote cite {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
}

/* ===== TODAY SECTION ===== */
.today-section {
  background: var(--cream);
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.today-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.today-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.today-card:hover {
  box-shadow: 0 8px 28px rgba(28,42,58,.08);
  transform: translateY(-2px);
}

.today-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(196,78,71,.08);
  border: 1px solid rgba(196,78,71,.18);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.today-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 14px;
}

.today-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}
.today-card p:last-child { margin-bottom: 0; }

.today-card strong { color: var(--ink); font-weight: 600; }
.today-card em { color: var(--red); font-style: italic; }

.today-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff 0%, var(--paper) 100%);
}
.today-feature h3 { font-size: 28px; }

.today-quote {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #2a1810 0%, #4a2520 100%);
  color: #fff;
  text-align: center;
  padding: 50px 40px;
  border: none;
}
.today-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  line-height: 1.55;
  color: var(--gold-soft);
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .today-section { padding: 70px 18px; }
  .today-grid { grid-template-columns: 1fr; gap: 18px; }
  .today-card { padding: 26px 22px; }
  .today-feature h3 { font-size: 24px; }
  .today-quote { padding: 40px 24px; }
}

@media (max-width: 768px) {
  .deepdive-section { padding: 70px 18px; }
  .deepdive-grid { grid-template-columns: 1fr; gap: 18px; }
  .dd-article { padding: 26px 22px; }
  .dd-quote { padding: 40px 24px; }
}

/* ============================================================
   EASTER EGG OVERLAY (type "BELLA")
   ============================================================ */
.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(196,78,71,.92), rgba(28,10,5,.95));
  opacity: 0;
  transition: opacity .3s ease;
}

.easter-egg.show {
  opacity: 1;
  pointer-events: auto;
}

.easter-egg-content {
  text-align: center;
  color: #fff;
  transform: scale(0.5) rotate(-5deg);
  transition: transform .5s cubic-bezier(.175,.885,.32,1.275);
}

.easter-egg.show .easter-egg-content {
  transform: scale(1) rotate(0);
}

.easter-egg-emoji {
  font-size: 100px;
  display: block;
  margin-bottom: 20px;
  animation: wave 1.2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.easter-egg-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 12px;
}

.easter-egg-text {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  max-width: 480px;
  line-height: 1.6;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.easter-egg-close {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  transition: all var(--transition);
}

.easter-egg-close:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ============================================================
   PULSE MAP MARKER (when modal open)
   ============================================================ */
.bella-marker.pulse {
  animation: markerPulse 1.4s ease-out infinite;
}

@keyframes markerPulse {
  0% { box-shadow: 0 0 0 0 rgba(196,78,71,.6); }
  100% { box-shadow: 0 0 0 18px rgba(196,78,71,0); }
}

/* ============================================================
   PLAYFUL STATS (computed)
   ============================================================ */
.playful-stat {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-top: 18px;
  font-style: italic;
}

.playful-stat strong { color: var(--gold); font-style: normal; font-weight: 600; }

/* ============================================================
   CONCERT MODE pill (header)
   ============================================================ */
.header-concert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  margin-right: 16px;
}

.header-concert:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}

.header-concert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .header-concert { display: none; }
}
