/* ============================================================
   NINO CARUSO — Theme CSS
   Design system, reset, typography utilities
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400&family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* ── Design Tokens ── */
:root {
  --font-display: 'Newsreader', 'Georgia', serif;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;

  --ink:     #234c57;
  --inkDeep: #1A2B30;
  --mist:    #63848d;
  --cream:   #F4EFE6;
  --paper:   #FBF8F2;
  --clay:    #B86B4A;
  --gold:    #E8B86B;

  --rule-light: rgba(35,76,87,0.15);
  --rule-dark:  rgba(251,248,242,0.18);

  --max-w: 1440px;
  --pad-x: 56px;
  --pad-x-m: 24px;

  --radius-pill: 999px;
  --radius-card: 4px;

  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography utilities ── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

.num {
  font-family: var(--font-display);
  font-style: italic;
}

/* ── Pill / badge ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
  cursor: default;
}

.pill--dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 26px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition);
  line-height: 1;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary--light {
  background: var(--paper);
  color: var(--inkDeep);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(35,76,87,0.35);
  font-weight: 400;
}
.btn-ghost--light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(251,248,242,0.4);
  font-weight: 400;
}
.btn-gold {
  background: var(--gold);
  color: var(--inkDeep);
}

/* ── Editorial link ── */
.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition);
}
.editorial-link:hover { gap: 16px; }
.editorial-link .ln {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Rule / divider ── */
.rule {
  height: 1px;
  background: var(--rule-light);
}

/* ── Segno grafico decorativo ── */
.segno-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}
.segno-deco img {
  width: 100%;
  height: auto;
}

/* ── Artwork placeholder (usata quando non c'è immagine) ── */
.work-placeholder {
  position: relative;
  width: 100%;
  background: #EDE3CF;
  overflow: hidden;
}
.work-placeholder figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Layout helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.breadcrumb__trail { display: flex; gap: 14px; align-items: center; }
.breadcrumb__sep { opacity: 0.4; }
.breadcrumb__current { color: var(--ink); }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 9999;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Marquee strip ── */
.marquee-strip {
  display: flex;
  gap: 60px;
  align-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
}
.marquee-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper);
  display: inline-block;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Stats list (numeri sidebar) ── */
.stats-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(35,76,87,0.15);
  padding-bottom: 12px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 1px;
  background: rgba(35,76,87,0.25);
}
.timeline-grid {
  display: grid;
  gap: 0;
}
.timeline-item {
  position: relative;
  padding-top: 40px;
  padding-right: 12px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.timeline-item--highlight::before { background: var(--gold); }
.timeline-item .year { font-size: 26px; }
.timeline-item .label { font-size: 18px; margin-top: 4px; line-height: 1.2; }
.timeline-item .desc { font-size: 12px; line-height: 1.5; color: var(--mist); margin-top: 8px; }

/* ── Info cards (visita: ore/biglietti/indirizzo) ── */
.info-card {
  padding: 40px 32px 44px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}
.info-card--dark  { background: var(--inkDeep); color: var(--paper); }
.info-card--gold  { background: var(--gold); color: var(--inkDeep); }
.info-card--cream { background: var(--cream); color: var(--ink); }
.info-card .kicker { opacity: 0.8; }
.info-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.info-card li { font-family: var(--font-display); font-size: 19px; line-height: 1.4; }

/* ── Map placeholder ── */
.map-placeholder {
  position: relative;
  height: 480px;
  background: linear-gradient(135deg, #DDE6E8 0%, #BFCED2 100%);
  border: 1px solid rgba(35,76,87,0.2);
  overflow: hidden;
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-pin__label {
  background: var(--inkDeep);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  white-space: nowrap;
}
.map-pin__arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--inkDeep);
}
.map-pin__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--inkDeep);
}

/* ── FAQ accordion ── */
.faq-list { border-top: 1px solid var(--rule-light); }
.faq-item {
  border-bottom: 1px solid var(--rule-light);
  padding: 24px 0;
}
.faq-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 24px;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
}
.faq-icon {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--mist);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(35,76,87,0.85);
  max-width: 920px;
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
  :root { --pad-x: var(--pad-x-m); }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr 1fr !important; }
  .map-placeholder { height: 280px; }
  .info-card { min-height: auto; padding: 28px 22px 32px; }
  .faq-q { font-size: 20px; }
}

@media (max-width: 480px) {
  .timeline-grid { grid-template-columns: 1fr !important; }
  .marquee-strip { font-size: 16px; gap: 32px; }
}
