/* ════════════════════════════════════
   ARCAMIS WIKI — style-base.css
   Variabili, reset, topbar, hero,
   cards, layout primitivi
════════════════════════════════════ */

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

/* ── Design tokens ── */
:root {
  /* Backgrounds */
  --bg:    #080a0e;
  --bg2:   #0c0f15;
  --bg3:   #10141c;
  --bg4:   #161c26;
  --bg5:   #1c2430;
  --panel: #0e121a;

  /* Borders */
  --bdr:  #1e1808;
  --bdr2: #2c2210;
  --bdr3: #3a2e14;

  /* Gold palette */
  --gold:   #c89b3c;
  --gold2:  #d4aa4a;
  --gold3:  #e8c86a;
  --gold4:  #f5e4a8;
  --copper: #7a5018;
  --parch:  #c4a862;

  /* Text */
  --text:  #a08848;
  --text2: #786438;
  --text3: #483c1c;
  --white: #f0e6d2;

  /* Accent — violet */
  --violet:  #6644aa;
  --violet2: #8866cc;
  --violet3: #aa88ee;

  /* Accent — teal */
  --teal:  #1a4455;
  --teal2: #226677;
  --teal3: #66bbdd;

  /* Layout */
  --topbar-h: 56px;

  /* Glow shortcuts */
  --glow:  0 0 22px rgba(200, 155, 60, .18);
  --glow2: 0 0 12px rgba(200, 155, 60, .10);
  --vglow: 0 0 22px rgba(102, 68, 170, .25);

  /* Font scale (controllato da ui/font.js) */
  --font-scale: 1;
}

/* ── Base ── */
html, body { height: 100%; overflow: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 15px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  background: radial-gradient(
    ellipse 140% 120% at 50% 0%,
    #131008 0%, #0c0d10 30%, #080a0e 60%, #040507 100%
  );
}

/* Texture noise di fondo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: var(--bdr2);
  border-radius: 2px;
  transition: background .2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════
   PROGRESS BAR
════════════════════════════════════ */
#progress-bar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold), rgba(200, 155, 60, .4));
  transition: width .12s linear;
}

/* ════════════════════════════════════
   TOPBAR
════════════════════════════════════ */
#topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  z-index: 200;
  position: relative;
  background: rgba(6, 7, 12, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 155, 60, .08);
  display: flex;
  align-items: stretch;
  margin-bottom: calc(-1 * var(--topbar-h));
  box-shadow: 0 4px 32px rgba(0, 0, 0, .4);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#topbar.solid {
  background: rgba(6, 7, 12, .96);
  border-bottom-color: rgba(200, 155, 60, .22);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .8);
}
/* Linea dorata in fondo alla topbar */
#topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 80, 24, .4) 10%,
    rgba(200, 155, 60, .45) 30%,
    rgba(232, 200, 106, .65) 50%,
    rgba(200, 155, 60, .45) 70%,
    rgba(120, 80, 24, .4) 90%,
    transparent
  );
}

/* Logo */
#tlogo {
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: background .2s, filter .3s, transform .3s;
}
#tlogo:hover {
  background: rgba(200, 155, 60, .04);
  filter: drop-shadow(0 0 12px rgba(200, 155, 60, .35));
  transform: scale(1.03);
}
#liw {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--bdr2);
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px rgba(200, 155, 60, .2);
}
#li { width: 100%; height: 100%; object-fit: cover; display: none; }
#lf { font-size: 15px; }
#tlt {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .22em;
  color: var(--gold3);
  text-shadow: 0 0 16px rgba(200, 155, 60, .3);
}

/* Nav principale */
nav#tnav { display: flex; align-items: stretch; }
.tn {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.tn:hover { color: var(--parch); background: rgba(200, 155, 60, .04); }
.tn.ta {
  color: var(--gold2);
  border-bottom-color: var(--gold);
  background: rgba(200, 155, 60, .06);
}

/* ════════════════════════════════════
   DROPDOWN NAVBAR
════════════════════════════════════ */
.tn-drop { position: relative; display: flex; align-items: stretch; }
.tn-drop > .tn { gap: 5px; }
.tn-drop > .tn::after {
  content: '▾';
  font-size: 7px;
  line-height: 1;
  transition: transform .18s;
  display: inline-block;
  margin-left: 2px;
  opacity: .6;
}
.tn-drop.open > .tn {
  color: var(--gold2);
  background: rgba(200, 155, 60, .06);
  border-bottom-color: var(--gold);
}
.tn-drop.open > .tn::after { transform: rotate(180deg); opacity: 1; }

.tn-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 210px;
  background: rgba(6, 7, 12, .97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(200, 155, 60, .2);
  border-top: 2px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .85), 0 0 0 1px rgba(200, 155, 60, .05);
  z-index: 600;
  display: none;
  overflow: hidden;
}
.tn-drop.open .tn-menu {
  display: block;
  animation: ddopen .16s ease forwards;
}
@keyframes ddopen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tn-drop.open .tn-menu::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(200, 155, 60, .05) 50%, transparent 70%);
  animation: ddshine .35s ease forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes ddshine { from { left: -100%; } to { left: 160%; } }

.tn-menu-label {
  padding: 10px 16px 7px;
  font-family: 'Cinzel', serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: .55;
}
.tn-div {
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(200, 155, 60, .14) 20%, rgba(200, 155, 60, .14) 80%, transparent);
}
.tn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .1s, color .1s;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--text2);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.tn-item::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold3), var(--gold));
  transform: scaleY(0);
  transition: transform .14s;
  transform-origin: bottom;
}
.tn-item:hover { color: var(--gold2); background: rgba(200, 155, 60, .06); }
.tn-item:hover::after { transform: scaleY(1); }
.tn-ii { font-size: 14px; flex-shrink: 0; opacity: .75; width: 18px; text-align: center; }

/* Right controls */
#tr { margin-left: auto; display: flex; align-items: center; padding: 0 14px; gap: 9px; }

/* Search */
#sw { position: relative; }
#ts {
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--bdr);
  color: var(--white);
  font-family: 'Crimson Pro', serif;
  font-size: 14px;
  padding: 6px 12px 6px 30px;
  width: 185px;
  outline: none;
  transition: border-color .2s, width .2s, box-shadow .2s;
}
#ts:focus {
  border-color: var(--gold);
  width: 240px;
  box-shadow: 0 0 0 1px rgba(200, 155, 60, .1), var(--glow2);
}
#ts::placeholder { color: var(--text3); }
#si {
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 13px;
  pointer-events: none;
}
#sr {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 270px;
  background: var(--panel);
  border: 1px solid var(--bdr2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .8);
  z-index: 500;
  display: none;
}
#sr.open { display: block; }
.sri {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: .1s;
  border-bottom: 1px solid var(--bdr);
}
.sri:last-child { border-bottom: none; }
.sri:hover { background: var(--bg4); color: var(--gold2); }
.sri .si2 { font-size: 14px; flex-shrink: 0; }
.sri .sl  { font-size: 13px; color: var(--parch); flex: 1; }
.sri-tag {
  font-family: 'Cinzel', serif;
  font-size: 7px;
  letter-spacing: .1em;
  color: var(--text3);
  border: 1px solid var(--bdr2);
  padding: 1px 5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Overlay btn */
#ovbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--bdr2);
  color: var(--text2);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
  white-space: nowrap;
}
#ovbtn:hover {
  background: var(--bg4);
  color: var(--gold2);
  border-color: var(--gold);
  box-shadow: var(--glow);
}
.kbd {
  display: inline-flex;
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--bdr2);
  color: var(--text3);
  font-size: 9px;
  padding: 1px 5px;
  margin-left: 4px;
}

/* Discord btn */
#dcbtn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #3c3fa8, #5865F2);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 7px 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .15s;
  white-space: nowrap;
}
#dcbtn:hover {
  background: linear-gradient(135deg, #3238a0, #4752c4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(60, 63, 168, .35);
}

/* ════════════════════════════════════
   MAIN
════════════════════════════════════ */
#main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

/* View cross-fade */
.vp { transition: opacity .17s ease, transform .17s ease; }
.vp.fo { opacity: 0; transform: translateY(5px); pointer-events: none; }
@keyframes fi {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vp.fi { animation: fi .22s ease forwards; }

/* ════════════════════════════════════
   HERO CAROUSEL
════════════════════════════════════ */
#carousel-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
#ctrack {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform .85s cubic-bezier(.4, 0, .2, 1);
}
.slide {
  width: 33.3333%;
  flex-shrink: 0;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@keyframes kbzoom {
  from { transform: scale(1) translateZ(0); }
  to   { transform: scale(1.09) translateZ(0); }
}
.slide.active { animation: kbzoom 14s ease-out forwards; }

.slide::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg,   rgba(4,5,14,1)   0%,  rgba(4,5,14,.7)  30%, rgba(4,5,14,.15) 60%, transparent 100%),
    linear-gradient(90deg,  rgba(4,5,14,.55) 0%,  transparent 55%);
}
.slide::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(4,5,14,.38) 100%);
}

/* Hero content */
.scnt {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  padding: 0 80px 78px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stag {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .32em;
  color: rgba(160, 130, 255, .9);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stag::before { content: ''; width: 30px; height: 1px; background: rgba(160, 130, 255, .6); }
.stit {
  font-family: 'Cinzel', serif;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #f0e6d2;
  line-height: .95;
  margin-bottom: 18px;
  text-shadow: 0 4px 50px rgba(0,0,0,.95), 0 0 100px rgba(80,60,180,.25);
}
.sdesc {
  font-size: 15.5px;
  color: rgba(210, 195, 230, .78);
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0,0,0,.9);
}
.scnt .sbtn {
  background: rgba(100, 70, 220, .22);
  border-color: rgba(160, 130, 255, .5);
  color: rgba(220, 210, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(80, 50, 200, .25);
}
.scnt .sbtn:hover {
  background: rgba(120, 90, 255, .35);
  border-color: rgba(180, 160, 255, .7);
  box-shadow: 0 0 32px rgba(100, 80, 220, .45), 0 4px 20px rgba(0,0,0,.4);
  transform: translateY(-2px);
  color: #fff;
}
.scnt .sbtn:first-child {
  background: linear-gradient(135deg, rgba(90,60,210,.75), rgba(60,70,200,.6));
  border-color: rgba(140, 110, 255, .6);
  box-shadow: 0 4px 28px rgba(80, 50, 200, .35), inset 0 1px 0 rgba(180, 160, 255, .12);
}

/* Carousel arrows */
.cnav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 80px;
  background: rgba(4,5,14,.45);
  border: 1px solid rgba(140, 110, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(160, 130, 255, .75);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: .2s;
  user-select: none;
}
.cnav:hover {
  background: rgba(100, 70, 220, .3);
  border-color: rgba(180, 150, 255, .4);
  color: #fff;
  box-shadow: 0 0 24px rgba(100, 70, 220, .25);
}
#cprev { left: 0;  border-radius: 0 3px 3px 0; }
#cnext { right: 0; border-radius: 3px 0 0 3px; }

/* Carousel dots */
.cdots { position: absolute; bottom: 38px; right: 80px; display: flex; gap: 8px; z-index: 10; }
.cdot {
  width: 36px; height: 3px;
  background: rgba(255, 255, 255, .15);
  cursor: pointer;
  transition: .3s;
  border-radius: 1.5px;
}
.cdot.ca {
  background: rgba(160, 130, 255, .85);
  box-shadow: 0 0 10px rgba(140, 110, 255, .6);
  width: 54px;
}

/* Onde in fondo all'hero */
#hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  pointer-events: none;
  height: 80px;
  overflow: hidden;
}
#hero-wave svg {
  position: absolute;
  bottom: 0;
  width: 200%; height: 100%;
  animation: wave-slide 14s linear infinite;
}
@keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Particelle sull'hero */
#hero-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(200, 155, 60, .4);
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  90%  { opacity: .3; }
  100% { transform: translateY(-140px) translateX(var(--dx, 20px)); opacity: 0; }
}

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.sbtn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(200, 155, 60, .12);
  border: 1px solid var(--gold);
  color: var(--gold2);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 11px 26px;
  text-decoration: none;
  transition: all .22s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.sbtn:hover {
  background: rgba(200, 155, 60, .24);
  box-shadow: var(--glow);
  transform: translateY(-2px);
  color: var(--gold3);
}

.sbtn-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--bdr2);
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 10px 18px;
}
.ldot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6aa020;
  box-shadow: 0 0 8px #6aa020;
  animation: lp 2s infinite;
  flex-shrink: 0;
}
@keyframes lp { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 155, 60, .22);
  transform: scale(0);
  animation: rpl .5s linear;
  pointer-events: none;
}
@keyframes rpl { to { transform: scale(4); opacity: 0; } }

/* ════════════════════════════════════
   WIKI CARDS
════════════════════════════════════ */
#hbody {
  padding: 60px 60px 80px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.shead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold2);
}
.shead-gem { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.shead::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bdr2), transparent); }
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
  gap: 11px;
  margin-bottom: 34px;
}

/* ── Card ── */
.lcard {
  background: rgba(14, 18, 26, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 155, 60, .1);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .22s, box-shadow .22s, transform .22s, background .22s;
  position: relative;
  overflow: hidden;
}
.lcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  border-style: solid;
  border-width: 14px 14px 0 0;
  border-color: rgba(200, 155, 60, .18) transparent transparent transparent;
  transition: border-color .2s;
}
.lcard:hover::before { border-color: var(--gold) transparent transparent transparent; }
.lcard .shine {
  position: absolute; inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0%, transparent 58%);
  opacity: 0;
  transition: opacity .28s;
}
.lcard:hover .shine { opacity: 1; }
.lcard:hover {
  background: rgba(22, 28, 38, .85);
  border-color: rgba(200, 155, 60, .45);
  box-shadow: 0 0 0 1px rgba(200,155,60,.08), 0 8px 32px rgba(0,0,0,.6), 0 0 24px rgba(200,155,60,.1);
  transform: translateY(-4px);
}
.cthumb {
  height: 94px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.cthumb::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  z-index: 2;
  transition: left .45s ease;
  pointer-events: none;
}
.lcard:hover .cthumb::before { left: 115%; }
.cthumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, transparent 35%, rgba(0,0,0,.75) 100%);
}
.cov {
  position: absolute; inset: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200, 155, 60, .05);
  opacity: 0;
  transition: .2s;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold3);
  text-transform: uppercase;
}
.lcard:hover .cov { opacity: 1; }
.cinfo { padding: 9px 12px 11px; position: relative; z-index: 1; }
.ctit {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--parch);
  letter-spacing: .04em;
  margin-bottom: 2px;
  transition: .18s;
}
.lcard:hover .ctit { color: var(--gold3); }
.csub { font-size: 12px; color: var(--text3); font-style: italic; line-height: 1.4; }
.ctags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ctag {
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 8px;
  background: rgba(200, 155, 60, .07);
  color: var(--gold);
  border: 1px solid rgba(200, 155, 60, .18);
}
.ctag-g { background: rgba(100, 160, 32, .1); color: #8ab840; border-color: rgba(100, 160, 32, .22); }
.ctrophy {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 7;
  font-size: 13px;
  animation: tg 2.5s ease-in-out infinite;
}
@keyframes tg {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,200,0,.3)); }
  50%       { filter: drop-shadow(0 0 10px rgba(255,200,0,.7)); }
}

/* ── Sparkle ── */
.spark {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold3);
  animation: spark-fly .7s ease-out forwards;
}
@keyframes spark-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.2); }
}

/* ── DB gallery ── */
.n-db-wrap { margin: 14px 0; }
.n-db-title {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.n-db-title::before { content: ''; width: 18px; height: 1px; background: var(--gold); opacity: .5; }
.n-db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.n-db-card {
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
.n-db-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--glow); }
.n-db-cover { width: 100%; height: 90px; object-fit: cover; display: block; }
.n-db-cover-placeholder {
  width: 100%; height: 90px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.n-db-name { padding: 8px 10px; font-family: 'Cinzel', serif; font-size: 11px; color: var(--parch); line-height: 1.3; }
.n-db-loading { color: var(--text3); font-style: italic; font-size: 13px; padding: 10px 0; }

/* ════════════════════════════════════
   SEZIONI HOME
════════════════════════════════════ */
.home-section { padding: 70px 60px; position: relative; }
.home-section-inner { max-width: 1180px; margin: 0 auto; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--gold); opacity: .5; }
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.section-desc { font-size: 16px; color: var(--parch); line-height: 1.75; max-width: 680px; opacity: .85; }

.gold-divider {
  height: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(200,155,60,.18) 20%, rgba(200,155,60,.35) 50%, rgba(200,155,60,.18) 80%, transparent);
}

/* ── Starfield slide Pantheon ── */
#star-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--tw) ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes twinkle {
  0%   { opacity: 0; transform: scale(.6); }
  40%  { opacity: var(--tb); }
  100% { opacity: var(--tb); transform: scale(1.2); }
}

/* Scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.scroll-indicator {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: rgba(200, 155, 60, .5);
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .2em;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}

/* ════════════════════════════════════
   RUNE FLICKER (animazione condivisa)
════════════════════════════════════ */
@keyframes runeflicker {
  0%, 100% { opacity: .28; }
  45%       { opacity: .55; }
  50%       { opacity: .18; }
  55%       { opacity: .5; }
}

/* ════════════════════════════════════
   WHISPER NAV (sticky section dots)
════════════════════════════════════ */
#whisper-nav {
  position: fixed;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
#whisper-nav.vis { opacity: 1; pointer-events: all; }
.wn-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200, 155, 60, .2);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.wn-dot:hover,
.wn-dot.wn-active {
  background: var(--gold);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(200, 155, 60, .6);
}
.wn-dot::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%; transform: translateY(-50%);
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--gold3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.wn-dot:hover::after { opacity: 1; }

/* ════════════════════════════════════
   TOAST
════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 80px; right: 16px;
  z-index: 9998;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(8, 10, 18, .96);
  border: 1px solid rgba(200, 155, 60, .3);
  color: var(--parch);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .1em;
  padding: 10px 16px;
  min-width: 180px;
  max-width: 260px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(0); pointer-events: all; }

/* ════════════════════════════════════
   RESPONSIVE — MOBILE
════════════════════════════════════ */
@media (max-width: 768px) {
  nav#tnav         { display: none; }
  #sw, #ovbtn      { display: none; }
  #dcbtn           { display: none; }
  #font-controls   { display: none; }
  #hamburger       { display: flex; }
  #tr              { padding: 0 6px; gap: 6px; }
  #tlogo           { padding: 0 12px; gap: 8px; }
  #tlt             { font-size: 11px; letter-spacing: .10em; }
  #theme-toggle    { padding: 0 6px; font-size: 15px; }
  #mobile-nav      { z-index: 9000; }
  .stit            { font-size: 38px; }
  .scnt            { padding: 0 20px 60px; }
  .sdesc           { font-size: 14px; }
  .hero-cta,
  .scnt > div:last-child { flex-direction: column; gap: 10px; }
  #whisper-nav     { display: none; }
}
@media (max-width: 390px) {
  #tlt             { font-size: 10px; letter-spacing: .06em; }
  .stit            { font-size: 30px; }
  .cgrid           { grid-template-columns: 1fr 1fr; }
  .lcard           { min-width: 0; }
}
