/* ==========================================================================
   Cittadinanza.com — shared stylesheet
   Used by index.html and all subpages
   Palette: navy + muted antique gold + ivory
   Type:    Cormorant Garamond (display) + Inter (text)
   ========================================================================== */

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

:root {
  --ink:        #0f1d33;   /* deep navy — primary dark */
  --ink-deep:   #0a1424;   /* near-black navy for footer */
  --ivory:      #f7f4ee;   /* primary background */
  --cream:      #fbf9f5;   /* lighter ivory for cards */
  --parchment:  #efe9dd;   /* warm subtle background */
  --gold:       #8a7445;   /* muted antique gold */
  --gold-lt:    #b59c6c;   /* lighter antique gold */
  --gold-text:  #6b5733;   /* darker antique gold for text */
  --gold-soft:  #c9b88f;   /* very soft gold for subtle accents */
  --burgundy:   #5e2a2a;   /* deep oxblood accent */
  --slate:      #3d3a36;   /* warm charcoal text */
  --slate-soft: #6a655e;   /* muted slate */
  --rule:       rgba(15,29,51,.14);
  --rule-gold:  rgba(138,116,69,.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--slate);
  line-height: 1.7;
  font-weight: 400;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }
a:not(.no-underline) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.no-underline { text-decoration: none; }

/* ─── HERO (homepage) ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: var(--ink);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 50%, rgba(181,156,108,.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(94,42,42,.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-deco {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18rem, 30vw, 36rem);
  font-weight: 500;
  color: rgba(181,156,108,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  font-style: italic;
}
.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold-lt);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--gold-lt); font-weight: 500; }
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  font-weight: 300;
  color: rgba(247,244,238,.82);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
  letter-spacing: .005em;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ─── ARTICLE HERO (subpages) ─────────────────────────── */
.article-hero {
  position: relative;
  padding: 9rem 2rem 4rem;
  background: var(--ink);
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 50%, rgba(181,156,108,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(94,42,42,.08) 0%, transparent 60%);
  pointer-events: none;
}
.article-hero .hero-inner { max-width: 760px; }
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.article-title em { font-style: italic; color: var(--gold-lt); font-weight: 500; }
.article-lede {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  font-weight: 300;
  color: rgba(247,244,238,.82);
  line-height: 1.7;
  max-width: 640px;
}

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: .9rem 2.4rem;
  background: var(--gold);
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-text); border-color: var(--gold-text); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: .9rem 2.4rem;
  border: 1px solid rgba(181,156,108,.55);
  color: var(--gold-lt);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.btn-ghost:hover { border-color: var(--gold-lt); color: var(--ivory); background: rgba(181,156,108,.08); }

.btn-dark {
  display: inline-block;
  padding: .95rem 2.5rem;
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
}
.btn-dark:hover { background: var(--ink-deep); transform: translateY(-1px); }

/* ─── STATS BAND ─────────────────────────────────────── */
.stats-band {
  background: var(--ink);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(181,156,108,.15);
  border-bottom: 1px solid rgba(181,156,108,.15);
}
.stats-grid {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--gold-lt);
  line-height: 1;
  letter-spacing: -.01em;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247,244,238,.72);
  margin-top: .55rem;
}

/* ─── SECTION BASE ───────────────────────────────────── */
section { padding: 5.5rem 2rem; }
.section-inner { max-width: 860px; margin: 0 auto; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.95rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -.005em;
}
.section-title em { font-style: italic; color: var(--burgundy); font-weight: 500; }

.prose {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.06rem);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.75;
}
.prose + .prose { margin-top: 1.2rem; }

hr.rule { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ─── ARTICLE BODY (subpages) ────────────────────────── */
.article-body { background: var(--ivory); padding: 5rem 2rem; }
.article-body .section-inner { max-width: 720px; }
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.22;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -.005em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2 em { font-style: italic; color: var(--burgundy); font-weight: 500; }
.article-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: .8rem;
}
.article-body p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.05rem);
  color: var(--slate);
  line-height: 1.78;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.article-body p strong, .article-body li strong { color: var(--ink); font-weight: 600; }
.article-body p em { font-style: italic; }
.article-body ul, .article-body ol {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.05rem);
  color: var(--slate);
  line-height: 1.75;
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
}
.article-body ul li, .article-body ol li { margin-bottom: .55rem; padding-left: .3rem; }
.article-body ul li::marker { color: var(--gold); }
.article-body ol li::marker { color: var(--gold); font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: .25rem 0 .25rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}
.article-body a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--gold-text); }

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 1.8rem 2rem;
  margin: 2rem 0;
}
.callout-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .6rem;
}
.callout p {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: .8rem;
}
.callout p:last-child { margin-bottom: 0; }

.requisiti-box {
  border: 1px solid var(--rule);
  padding: 2.5rem;
  background: var(--cream);
  margin: 2.5rem 0;
}
.requisiti-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.5rem;
  letter-spacing: -.005em;
}
.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding-left: 0;
}
.req-list li {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  color: var(--slate);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  margin-bottom: 0;
}
.req-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
}
.req-list li::marker { content: ''; }

/* ─── CARDS GRID (homepage + article use) ──────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 3rem;
}
.card { background: var(--cream); padding: 2.4rem 2.2rem; position: relative; transition: background .25s ease; }
.card:hover { background: var(--parchment); }
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(138,116,69,.32);
  line-height: 1;
  margin-bottom: .9rem;
  letter-spacing: -.02em;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .8rem;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.card-body {
  font-family: 'Inter', sans-serif;
  font-size: .94rem;
  color: var(--slate-soft);
  line-height: 1.65;
}

/* ─── PROFILE SECTION (homepage) ───────────────────── */
.profile-section { background: var(--parchment); }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: start;
}
.profile-aside { position: sticky; top: 2rem; }
.profile-badge { border: 1px solid var(--rule); padding: 2rem; background: var(--cream); }
.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .25rem;
  letter-spacing: -.005em;
}
.profile-title-small {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.bar-list { list-style: none; }
.bar-list li {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: var(--slate);
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 400;
}
.bar-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── PERCORSI / VANTAGGI / CASE / NAT (homepage) ──── */
.percorsi-section { background: var(--ivory); }
.vantaggi-section { background: var(--parchment); }
.vantaggi-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.vantaggi-list li {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  color: var(--slate);
  padding: 1.3rem 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  line-height: 1.55;
}
.vantaggi-list li strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  display: block;
  margin-bottom: .3rem;
  letter-spacing: -.005em;
}

.case-section { background: var(--ink); }
.case-inner { max-width: 860px; margin: 0 auto; }
.case-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}
.case-pull {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
  margin-bottom: 2rem;
  letter-spacing: -.005em;
}
.case-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: rgba(247,244,238,.82);
  line-height: 1.78;
  font-weight: 300;
}

.nat-section { background: var(--ivory); }

/* ─── RELATED LINKS / BACK-TO-MAIN ──────────────────── */
.related-section { background: var(--parchment); padding: 4.5rem 2rem; }
.related-section .section-inner { max-width: 860px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}
.related-card {
  background: var(--cream);
  padding: 1.7rem 1.5rem;
  display: block;
  text-decoration: none !important;
  transition: background .25s ease;
}
.related-card:hover { background: var(--ivory); }
.related-card-label {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .55rem;
  font-weight: 500;
}
.related-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.005em;
}

.back-to-main {
  background: var(--ink);
  padding: 4.5rem 2rem;
  text-align: center;
}
.back-to-main-inner { max-width: 680px; margin: 0 auto; }
.back-to-main p {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: rgba(247,244,238,.78);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-weight: 300;
}
.back-to-main a.main-link {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-lt);
  border-bottom: 1px solid rgba(181,156,108,.55);
  padding-bottom: .2rem;
  text-decoration: none;
  transition: border-color .25s ease, color .25s ease;
  letter-spacing: -.005em;
}
.back-to-main a.main-link:hover { border-color: var(--gold-lt); color: var(--ivory); }

/* ─── CONTACT ─────────────────────────────────────── */
.contact-section {
  background: var(--cream);
  padding: 6rem 2rem;
  border-top: 1px solid var(--rule-gold);
  border-bottom: 1px solid var(--rule-gold);
}
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
  margin-bottom: 1.3rem;
  letter-spacing: -.01em;
}
.contact-heading em { font-style: italic; color: var(--burgundy); font-weight: 500; }
.contact-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: var(--slate-soft);
  margin-bottom: 2.75rem;
  line-height: 1.7;
  font-weight: 400;
}
.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: .2rem;
  margin-bottom: 2.5rem;
  transition: border-color .25s ease, color .25s ease;
  letter-spacing: -.005em;
}
.contact-email:hover { border-color: var(--burgundy); color: var(--burgundy); }

/* ─── FOOTER ──────────────────────────────────────── */
footer { background: var(--ink-deep); padding: 3rem 2rem; text-align: center; }
.footer-inner { max-width: 860px; margin: 0 auto; }
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: .55rem;
  letter-spacing: -.005em;
}
.footer-links {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: rgba(247,244,238,.7);
  font-weight: 400;
}
.footer-links a { color: var(--gold-lt); }
.footer-links a:hover { color: var(--ivory); }
.footer-disclaimer {
  margin-top: 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: rgba(247,244,238,.6);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,29,51,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(181,156,108,.12);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: .01em;
}
.nav-brand:hover { color: var(--gold-lt); text-decoration: none; }
.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  border: 1px solid rgba(181,156,108,.45);
  padding: .55rem 1.2rem;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.nav-cta:hover { border-color: var(--gold-lt); color: var(--ivory); background: rgba(181,156,108,.08); }

/* ─── BREADCRUMBS ─────────────────────────────────── */
.breadcrumbs {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,244,238,.55);
  margin-bottom: 1.5rem;
  position: relative;
}
.breadcrumbs a { color: rgba(247,244,238,.78); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-lt); }
.breadcrumbs span { color: rgba(247,244,238,.35); margin: 0 .55rem; }

/* ─── ANIMATIONS ──────────────────────────────────── */
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero-title   { animation: slideUp .6s ease both; will-change: transform; }
.hero-sub     { animation: slideUp .6s .1s ease both; will-change: transform; }
.hero-cta-row { animation: slideUp .6s .2s ease both; will-change: transform; }
.article-title { animation: slideUp .6s ease both; will-change: transform; }
.article-lede  { animation: slideUp .6s .1s ease both; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-sub, .hero-cta-row, .article-title, .article-lede { animation: none; }
  * { transition: none !important; }
}

/* ─── HISTORY / TIMELINE SECTION (homepage) ──────────── */
.storia-section { background: var(--ivory); }
.storia-intro {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.06rem);
  color: var(--slate);
  line-height: 1.78;
  max-width: 720px;
  margin-bottom: 3rem;
  font-weight: 400;
}
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 2rem;
  border-left: 1px solid var(--rule-gold);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: .4rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--rule-gold);
}
.timeline-year {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .4rem;
}
.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .55rem;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.timeline-body {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  color: var(--slate);
  line-height: 1.75;
  font-weight: 400;
}

/* ─── FAQ SECTION ─────────────────────────────────── */
.faq-section { background: var(--ivory); }
.faq-list { margin-top: 2.5rem; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .6rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -.05em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform .2s;
}
details[open] .faq-question::after { content: '−'; }
.faq-answer {
  font-family: 'Inter', sans-serif;
  font-size: .98rem;
  color: var(--slate);
  line-height: 1.75;
  margin-top: .7rem;
  font-weight: 400;
}
.faq-answer p + p { margin-top: .8rem; }
.faq-answer a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.faq-answer a:hover { color: var(--gold-text); }

/* ─── CONTACT METHODS (email + phone + whatsapp) ───── */
.contact-methods {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.contact-method {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .2rem;
  transition: border-color .25s ease, color .25s ease;
  letter-spacing: -.005em;
}
.contact-method:hover { border-color: var(--gold); color: var(--burgundy); }
.contact-method-label {
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-soft);
  border-bottom: none;
  margin-right: .45rem;
  font-weight: 500;
}

/* ─── PERCORSI CARDS AS LINKS ─────────────────────── */
a.card { text-decoration: none !important; color: inherit; }
a.card .card-title { text-decoration: none; }
a.card::after {
  content: '→';
  position: absolute;
  right: 1.6rem;
  bottom: 1.5rem;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
a.card:hover::after { opacity: 1; transform: translateX(0); }

/* ─── HOMEPAGE CLUSTER SECTIONS (related subpages) ── */
.cluster-section { padding: 5.5rem 2rem; background: var(--ivory); }
.cluster-section.alt { background: var(--parchment); }
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2.5rem;
}
.cluster-link {
  background: var(--cream);
  padding: 1.7rem 1.5rem;
  display: block;
  text-decoration: none !important;
  transition: background .25s ease;
  position: relative;
}
.cluster-section.alt .cluster-link { background: var(--cream); }
.cluster-link:hover { background: var(--parchment); }
.cluster-section.alt .cluster-link:hover { background: var(--ivory); }
.cluster-link-label {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .45rem;
  font-weight: 500;
}
.cluster-link-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* ─── 404 PAGE ─────────────────────────────────────── */
.notfound {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
}
.notfound-inner { max-width: 600px; }
.notfound-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 500;
  font-style: italic;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.notfound-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 1rem;
  letter-spacing: -.005em;
}
.notfound-body {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  color: rgba(247,244,238,.78);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 680px) {
  .profile-grid  { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .vantaggi-list { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .hero-deco     { display: none; }
  .article-hero  { padding: 7rem 1.5rem 3rem; }
  .article-body  { padding: 3rem 1.5rem; }
  .timeline      { padding-left: 1.4rem; }
  .timeline-item::before { left: calc(-1.4rem - 6px); }
}
