:root {
  --coral: #F0997B;
  --coral-dark: #D85A30;
  --coral-glow: rgba(240,153,123,0.15);
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --text: #f0ede8;
  --text-muted: #888;
  --border: rgba(240,153,123,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--coral);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--coral); }

/* ── PAGE WRAPPER ── */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 32px 80px;
}

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 56px; }
.page-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: 12px;
}
.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--coral); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.4; }

/* ── FOLDER GRID ── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.folder-card {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.2s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.folder-card:hover {
  border-color: var(--coral);
  background: var(--bg-3);
  transform: translateY(-3px);
}
.folder-card:hover .folder-icon-bar { background: var(--coral-dark); }

.folder-icon-bar {
  height: 6px;
  background: var(--coral);
  transition: background 0.25s;
}

.folder-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.folder-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.folder-thumb-placeholder {
  font-size: 48px;
  opacity: 0.18;
  user-select: none;
}

.folder-info {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.folder-category {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
}
.folder-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.folder-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}
.folder-date {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
}
.folder-count {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(240,153,123,0.5);
  margin-top: auto;
  padding-top: 10px;
}

/* ── ARTICLE CARD (list style) ── */
.article-list { display: flex; flex-direction: column; gap: 2px; }

.article-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, padding-left 0.2s;
}
.article-row:hover { background: var(--bg-3); padding-left: 32px; }

.article-row-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.3;
  flex-shrink: 0;
}
.article-row-thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-row-title {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.article-row-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}
.article-row-meta {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--coral);
  white-space: nowrap;
  text-align: right;
}
.article-arrow {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  color: var(--coral);
  opacity: 0;
  transition: opacity 0.2s;
}
.article-row:hover .article-arrow { opacity: 1; }

/* ── BACK BUTTON ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--coral); }

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(to right, transparent, var(--coral), transparent);
  opacity: 0.25;
  margin: 56px 0;
}

/* ── SECTION MINI HEADER ── */
.mini-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.mini-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.mini-link {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  text-decoration: none;
}
.mini-link:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--bg-2);
  border-top: 0.5px solid var(--border);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 80px;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--coral);
  text-transform: uppercase;
}
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.7s ease forwards; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .page-content { padding: 110px 16px 60px; }
  .folder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .article-row { grid-template-columns: 80px 1fr; }
  .article-row-meta, .article-arrow { display: none; }
  footer { padding: 24px 20px; }
}

/* ════════════════════════════════════════
   BOTTONE AREA VIP DORATO NEL MENU
   ════════════════════════════════════════ */
.nav-vip-btn {
  display: inline-block;
  padding: 9px 22px !important;
  background: #FFD700 !important;
  color: #1A1A1A !important;
  font-family: 'Space Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 1px solid #B8860B !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 12px rgba(255,217,122,0.18);
  transition: all 0.25s ease !important;
}
.nav-vip-btn:hover {
  background: #FFE55C !important;
  color: #1A1A1A !important;
  border-color: #FFD700 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255,215,0,0.35);
}

/* ── FOOTER ESTESO con disclaimer copyright ── */
footer {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding: 36px 32px !important;
}
.footer-copyright-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.footer-copy-main {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.footer-copy-disclaimer {
  font-family: 'Crimson Pro', serif;
  font-size: 11px;
  font-style: italic;
  color: rgba(240,237,232,0.4);
  max-width: 540px;
  line-height: 1.6;
}

/* ════════════════════════════════════════
   MENU A TENDINA (HAMBURGER) — sempre attivo
   ════════════════════════════════════════ */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0 11px;
  transition: all 0.25s ease;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle:hover { border-color: var(--coral); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Il menu diventa un pannello a tendina */
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  max-width: 82vw;
  flex-direction: column;
  align-items: stretch;
  gap: 6px !important;
  background: rgba(14,14,14,0.98);
  backdrop-filter: blur(16px);
  border-left: 0.5px solid var(--border);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  padding: 96px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 110;
  overflow-y: auto;
}
.nav-links.open { transform: translateX(0); }
.nav-links li { width: 100%; }
.nav-links li a {
  display: block;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.nav-links li a:not(.nav-vip-btn):hover {
  background: rgba(240,153,123,0.08);
  color: var(--coral);
  padding-left: 24px;
}
.nav-links .nav-vip-btn {
  text-align: center;
  margin-bottom: 10px;
  padding: 14px 22px !important;
  font-size: 12px !important;
}

/* Overlay scuro dietro il menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 105;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
