
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600&display=swap');
:root {
  --blue:       #1A3A5C;
  --blue-light: #2B5082;
  --gold:       #C8923A;
  --gold-light: #E8B97A;
  --bg:         #FAFAF8;
  --text:       #2C2C2C;
  --text-muted: #6B7280;
  --border:     #E5E7EB;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* Header homepage */
.site-header {
  background: var(--blue);
  color: #fff;
  padding: 48px 40px 40px;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: 'AT';
  position: absolute;
  right: -20px;
  top: -30px;
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.header-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}
.header-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  margin-top: 16px;
}
.header-meta strong { color: var(--gold-light); }

/* Header sottopagine */
.site-header.subpage {
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-logo-text {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.header-logo-text span { color: var(--gold-light); }

.breadcrumb {
  background: #f0f4f8; border-bottom: 1px solid var(--border);
  padding: 10px 40px; font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border); }

.page-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }

.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.page-title {
  font-family: 'Playfair Display', serif; font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; color: var(--blue); line-height: 1.2; margin-bottom: 6px;
}
.page-updated { font-size: 12px; color: var(--text-muted); margin-bottom: 32px; }
.page-divider { border: none; border-top: 2px solid var(--gold); width: 48px; margin: 0 0 28px; }

.content-block { margin-bottom: 32px; }
.content-block h2 {
  font-family: 'Playfair Display', serif; font-size: 17px; color: var(--blue);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.content-block h3 {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin: 16px 0 8px;
}
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-item { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.doc-link {
  font-size: 14px; color: var(--blue-light); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.doc-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.doc-inline-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.doc-inline-links a {
  font-size: 13px; color: var(--blue-light); text-decoration: none; font-weight: 500;
  padding: 2px 10px; border: 1px solid var(--border); border-radius: 20px;
  transition: all 0.15s;
}
.doc-inline-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.doc-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.persona-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 24px; margin-bottom: 20px;
}
.persona-name {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: var(--blue); margin-bottom: 4px;
}
.persona-role { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.persona-contact { font-size: 13px; color: var(--text); margin-top: 12px; }
.persona-contact a { color: var(--blue-light); }

.year-block { margin-bottom: 20px; }
.year-label {
  font-size: 13px; font-weight: 700; color: var(--blue);
  background: #EEF2F8; padding: 4px 12px; border-radius: 4px;
  display: inline-block; margin-bottom: 8px;
}
.year-data { font-size: 14px; padding-left: 4px; }
.year-data li { list-style: none; padding: 3px 0; }

.info-box {
  background: #EEF2F8; border-left: 3px solid var(--blue);
  padding: 16px 20px; border-radius: 0 6px 6px 0; margin-bottom: 20px;
  font-size: 14px; line-height: 1.7;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--blue-light); text-decoration: none;
  font-weight: 500; margin-bottom: 28px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px;
  transition: all 0.15s;
}
.back-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.site-footer {
  background: var(--blue); color: rgba(255,255,255,0.55);
  text-align: center; padding: 28px 20px; font-size: 12px; margin-top: 40px;
}
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer strong { color: rgba(255,255,255,0.8); }

@media (max-width: 600px) {
  .site-header { padding: 20px 16px; }
  .breadcrumb { padding: 10px 16px; }
  .page-wrap { padding: 28px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Layout homepage */
.layout { display: flex; max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 40px; }
:root { --nav-w: 260px; }
.side-nav { width: var(--nav-w); flex-shrink: 0; padding: 32px 0; }
.side-nav-inner { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: 0 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.nav-list { list-style: none; }
.nav-link { display: block; padding: 6px 12px; font-size: 12px; color: var(--text-muted); text-decoration: none; border-radius: 4px; transition: background .15s, color .15s; line-height: 1.4; }
.nav-link:hover { background: rgba(26,58,92,.07); color: var(--blue); }
.nav-link.active { background: rgba(26,58,92,.1); color: var(--blue); font-weight: 500; }
.main-content { flex: 1; min-width: 0; padding: 32px 0; }
.section { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-number { font-family: 'Playfair Display', serif; font-size: 56px; font-weight: 700; color: rgba(26,58,92,.08); line-height: 1; min-width: 72px; text-align: right; padding-top: 4px; flex-shrink: 0; user-select: none; }
.section-body { flex: 1; min-width: 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--blue); margin-bottom: 16px; line-height: 1.3; }
.subsection { margin-bottom: 20px; }
.sub-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; }
.sub-id { background: var(--blue); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.doc-item { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.doc-link { font-size: 14px; color: var(--blue-light); text-decoration: none; font-weight: 500; transition: color .15s; border-bottom: 1px solid transparent; }
.doc-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.doc-text span { font-size: 14px; color: var(--text); }
.doc-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.na-text { font-size: 14px; color: var(--text-muted); font-style: italic; padding: 12px 16px; background: rgba(0,0,0,.025); border-left: 2px solid var(--border); border-radius: 0 4px 4px 0; }
.link-extra { font-size: 12px; color: var(--blue-light); text-decoration: none; opacity: 0.75; }
.link-extra:hover { opacity: 1; color: var(--gold); }
