/*
  RIVALIA – shared.css
  Da mettere in: rivalia/css/shared.css
  Incluso da tutte le pagine.
*/

/* ========================================
   CSS VARIABLES & RESET
======================================== */
:root {
  --gold-bright: #f0c060;
  --gold-mid: #c9973a;
  --gold-dark: #8a6020;
  --gold-glow: rgba(201, 151, 58, 0.45);
  --crimson: #8b1a1a;
  --crimson-light: #c0392b;
  --teal-gem: #4ab8d4;
  --black-deep: #05050a;
  --black-mid: #0e0e16;
  --black-card: #12121e;
  --stone-dark: #1a1814;
  --stone-mid: #2a2620;
  --parchment: #c8a882;
  --parchment-light: #e0c9a8;
  --text-body: #d4c4a0;
  --text-muted: #8a7a60;
  --shadow-gold: 0 0 20px rgba(201, 151, 58, 0.45);
  --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.8);
  --radius-card: 4px;
  --font-display: "Cinzel Decorative", serif;
  --font-title: "Cinzel", serif;
  --font-body: "EB Garamond", serif;
  --nav-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--black-deep);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 6,14 8,8 14,6" fill="%23c9973a" stroke="%23f0c060" stroke-width="1"/></svg>')
      0 0,
    auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--black-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-mid);
}

/* ========================================
   UTILITY
======================================== */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-section {
  padding: 7rem 0 6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 30px rgba(201, 151, 58, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.4rem;
}

.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-ornament::before,
.section-ornament::after {
  content: "";
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.section-ornament span {
  color: var(--gold-mid);
  font-size: 1.2rem;
}

.btn-gold {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black-deep);
  background: linear-gradient(
    135deg,
    var(--gold-mid),
    var(--gold-bright),
    var(--gold-mid)
  );
  border: none;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
}
.btn-gold:hover {
  background: linear-gradient(
    135deg,
    var(--gold-bright),
    #ffe090,
    var(--gold-bright)
  );
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--gold-mid);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(201, 151, 58, 0.15);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVBAR
======================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 10, 0.97) 0%,
    rgba(5, 5, 10, 0.85) 100%
  );
  border-bottom: 1px solid rgba(201, 151, 58, 0.25);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}
#navbar.scrolled {
  background: rgba(5, 5, 10, 0.98);
  border-bottom-color: var(--gold-dark);
}

.nav-logo {
  height: 52px;
  filter: drop-shadow(0 0 10px rgba(201, 151, 58, 0.45));
  transition: filter 0.3s;
}
.nav-logo:hover {
  filter: drop-shadow(0 0 20px rgba(240, 192, 96, 0.7));
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--gold-bright);
  transition:
    left 0.3s,
    right 0.3s;
}
.nav-links a:hover,
.nav-links a.active-page {
  color: var(--gold-bright);
}
.nav-links a:hover::after,
.nav-links a.active-page::after {
  left: 1rem;
  right: 1rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold-mid);
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 10, 0.98);
    border-bottom: 1px solid var(--gold-dark);
    padding: 1rem 0;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }
  .nav-burger {
    display: flex;
  }
}

/* ========================================
   PAGE HERO BANNER (per pagine interne)
======================================== */
.page-banner {
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
  margin-top: var(--nav-h);
  overflow: hidden;
  background: var(--black-deep);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 100% at 50% 0%,
      rgba(139, 26, 26, 0.2) 0%,
      transparent 70%
    ),
    linear-gradient(180deg, transparent 0%, var(--black-deep) 100%);
}
.page-banner-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}
.page-banner h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(201, 151, 58, 0.6);
  letter-spacing: 0.08em;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--black-deep);
  border-top: 1px solid rgba(201, 151, 58, 0.15);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo {
  height: 40px;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(201, 151, 58, 0.45));
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--gold-bright);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ========================================
   SHARED JS snippet (inline in ogni pagina)
======================================== */
/*
  <script>
    // Navbar scroll
    const navbar = document.getElementById('navbar');
    window.addEventListener('scroll', () => {
      navbar.classList.toggle('scrolled', window.scrollY > 60);
    });
    // Mobile menu
    function toggleMenu() {
      document.getElementById('nav-links').classList.toggle('open');
    }
    document.querySelectorAll('.nav-links a').forEach(a => {
      a.addEventListener('click', () =>
        document.getElementById('nav-links').classList.remove('open'));
    });
    // Reveal on scroll
    const revealObserver = new IntersectionObserver((entries) => {
      entries.forEach(e => {
        if (e.isIntersecting) { e.target.classList.add('visible'); revealObserver.unobserve(e.target); }
      });
    }, { threshold: 0.12 });
    document.querySelectorAll('.reveal').forEach(el => revealObserver.observe(el));
  </script>
*/

/* ========================================
   GALLERIA
======================================== */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.gallery-tab {
  padding: 0.55rem 1.5rem;
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(201,151,58,0.2);
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.gallery-tab:hover,
.gallery-tab.active {
  color: var(--gold-bright);
  border-color: var(--gold-mid);
  background: rgba(201,151,58,0.1);
  box-shadow: 0 0 15px rgba(201,151,58,0.3);
}
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.gallery-grid.portrait {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-card);
  cursor: pointer;
  background: var(--black-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  border-color: var(--gold-mid);
  box-shadow: var(--shadow-gold);
}
.gallery-item.landscape { aspect-ratio: 4/3; }
.gallery-item.portrait  { aspect-ratio: 3/4; }
.gallery-item.square    { aspect-ratio: 1/1; }
.gallery-item.wide      { aspect-ratio: 16/9; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5,5,10,0.88) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
#lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--gold-dark);
  box-shadow: var(--shadow-gold);
}
#lightbox-caption {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-mid);
}
#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--gold-mid);
  cursor: pointer;
  font-family: var(--font-title);
  line-height: 1;
  transition: color 0.2s;
  z-index: 2001;
}
#lightbox-close:hover { color: var(--gold-bright); }
#lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  pointer-events: none;
  z-index: 2001;
}
.lb-arrow {
  pointer-events: all;
  background: rgba(5,5,10,0.7);
  border: 1px solid var(--gold-dark);
  color: var(--gold-mid);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.lb-arrow:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.video-section-title {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.video-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 500px) {
  .video-grid { grid-template-columns: 1fr; }
}
.video-label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-gold), var(--shadow-deep);
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ========================================
   INDEX – HERO & IL GIOCO
======================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/hero-fallback.jpg') center/cover no-repeat;
  z-index: -1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,10,0.45) 0%, rgba(5,5,10,0.65) 60%, rgba(5,5,10,0.95) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(139,26,26,0.25) 0%, transparent 70%);
  z-index: 1;
}
#hero-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-corner { position: absolute; width: 120px; height: 120px; opacity: 0.45; z-index: 3; }
.hero-corner.tl { top: 20px; left: 20px; }
.hero-corner.tr { top: 20px; right: 20px; transform: scaleX(-1); }
.hero-corner.bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.hero-corner.br { bottom: 20px; right: 20px; transform: scale(-1,-1); }
.hero-content { position: relative; z-index: 4; padding: 2rem; }
.hero-logo-img {
  width: min(540px, 82vw);
  filter: drop-shadow(0 0 40px rgba(201,151,58,0.65));
  animation: heroLogoIn 1.4s ease forwards, logoFloat 6s ease-in-out 1.4s infinite;
  opacity: 0;
}
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hero-divider {
  width: 260px; height: 1px; margin: 1.3rem auto;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}
.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}
.hero-cta {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  opacity: 0; animation: fadeUp 1s ease 2s forwards;
}
.hero-scroll span {
  font-family: var(--font-title); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--gold-mid), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

#il-gioco {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--black-deep) 0%, var(--stone-dark) 40%, var(--stone-dark) 60%, var(--black-deep) 100%);
  position: relative;
}
#il-gioco::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9973a' fill-opacity='0.03'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .game-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.game-text p { margin-bottom: 1.2rem; font-size: 1.05rem; }
.game-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2rem; }
.stat-box {
  border: 1px solid rgba(201,151,58,0.3);
  background: rgba(201,151,58,0.04);
  padding: 1rem; text-align: center;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s;
}
.stat-box:hover { border-color: var(--gold-mid); background: rgba(201,151,58,0.1); box-shadow: var(--shadow-gold); }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-bright); line-height: 1; }
.stat-label { display: block; font-family: var(--font-title); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; }
.game-image-wrap { position: relative; }
.game-image-wrap img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--gold-dark); box-shadow: var(--shadow-deep), var(--shadow-gold); }
.game-image-wrap::before { content: ''; position: absolute; inset: -8px; border: 1px solid rgba(201,151,58,0.2); border-radius: 6px; pointer-events: none; }
.factions-strip { margin-top: 5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.factions-strip-title { font-family: var(--font-title); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); }
.factions-imgs { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.factions-imgs img { height: 120px; filter: drop-shadow(0 0 12px rgba(201,151,58,0.3)); transition: filter 0.3s, transform 0.3s; }
.factions-imgs img:hover { filter: drop-shadow(0 0 20px rgba(201,151,58,0.6)); transform: translateY(-4px); }

/* ========================================
   COMPONENTI
======================================== */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.8rem; }
.comp-card {
  background: var(--black-card);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: var(--radius-card);
  overflow: hidden; position: relative;
  transition: all 0.35s ease;
}
.comp-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,151,58,0.07) 0%, transparent 60%);
  pointer-events: none; z-index: 1;
}
.comp-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--gold-mid); box-shadow: var(--shadow-gold), var(--shadow-deep); }
.comp-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform 0.5s ease; }
.comp-card:hover img { transform: scale(1.06); }
.comp-card-body { padding: 1.1rem 1.3rem; position: relative; z-index: 2; }
.comp-card-title { font-family: var(--font-title); font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
.comp-card-qty { font-family: var(--font-title); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--gold-dark); margin-top: 0.15rem; }
.comp-card-desc { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.55; }
.comp-category { margin: 4rem 0 1.5rem; }
.comp-category-label {
  font-family: var(--font-title); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-dark);
  display: flex; align-items: center; gap: 1rem;
}
.comp-category-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dark), transparent); }
.comp-summary {
  margin-top: 5rem;
  background: rgba(201,151,58,0.04);
  border: 1px solid rgba(201,151,58,0.2);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 1.5rem;
}
.comp-summary-item { text-align: center; }
.comp-summary-num { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--gold-bright); line-height: 1; }
.comp-summary-label { display: block; font-family: var(--font-title); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.4rem; }

/* ========================================
   REGOLE
======================================== */
.rules-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .rules-wrap { grid-template-columns: 1fr; } }
.accordion-item { border-bottom: 1px solid rgba(201,151,58,0.2); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-title); font-size: 1rem; letter-spacing: 0.08em;
  color: var(--parchment-light); text-align: left; transition: color 0.3s;
}
.accordion-btn:hover, .accordion-btn.active { color: var(--gold-bright); }
.accordion-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-dark); min-width: 2.2rem; }
.accordion-btn.active .accordion-num { color: var(--gold-mid); }
.accordion-arrow { margin-left: auto; color: var(--gold-dark); font-size: 1.1rem; transition: transform 0.3s; }
.accordion-btn.active .accordion-arrow { transform: rotate(180deg); color: var(--gold-mid); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 0 0 3.2rem; }
.accordion-body.open { max-height: 500px; padding: 0 0 1.8rem 3.2rem; }
.accordion-body p { color: var(--text-body); font-size: 1rem; line-height: 1.85; }
.parchment-panel { position: sticky; top: calc(var(--nav-h) + 2rem); }
.parchment-box {
  background: linear-gradient(135deg, #c8a06a 0%, #b8905a 30%, #c8a06a 70%, #a07840 100%);
  border: 2px solid var(--gold-dark); padding: 2.2rem; position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.35), var(--shadow-deep);
  margin-bottom: 2rem;
}
.parchment-box::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(139,96,32,0.35); pointer-events: none; }
.parchment-box h3 { font-family: var(--font-display); font-size: 1rem; color: #2a1a08; margin-bottom: 1.2rem; text-align: center; }
.parchment-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.parchment-box li { font-family: var(--font-body); font-size: 0.95rem; color: #3a2810; display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.5; }
.parchment-box li::before { content: '⚔'; color: var(--crimson); font-size: 0.75rem; margin-top: 0.25rem; flex-shrink: 0; }
.phase-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.phase-card {
  display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.2rem;
  background: rgba(201,151,58,0.04);
  border: 1px solid rgba(201,151,58,0.18);
  border-left: 3px solid var(--gold-mid);
  transition: all 0.3s;
}
.phase-card:hover { background: rgba(201,151,58,0.08); border-left-color: var(--gold-bright); }
.phase-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-dark); line-height: 1; min-width: 2rem; text-align: center; }
.phase-content h4 { font-family: var(--font-title); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--gold-bright); margin-bottom: 0.3rem; }
.phase-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ========================================
   NEWS
======================================== */
.news-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
@media (max-width: 768px) { .news-layout { grid-template-columns: 1fr; gap: 3rem; } }
.news-col-title {
  font-family: var(--font-title); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.news-col-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dark), transparent); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--gold-mid), var(--gold-dark), transparent);
}
.timeline-item { position: relative; padding-bottom: 2.8rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: 0.45rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-mid); box-shadow: 0 0 8px rgba(201,151,58,0.5);
  transform: translateX(-4px);
}
.timeline-date { font-family: var(--font-title); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.25rem; }
.timeline-title { font-family: var(--font-title); font-size: 1.05rem; color: var(--parchment-light); margin-bottom: 0.5rem; }
.timeline-body { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.event-badge {
  display: inline-block; padding: 0.12rem 0.65rem;
  font-family: var(--font-title); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px; margin-bottom: 0.4rem;
}
.badge-past { background: rgba(138,96,32,0.25); color: var(--gold-dark); border: 1px solid var(--gold-dark); }
.badge-future { background: rgba(139,26,26,0.25); color: #e05050; border: 1px solid var(--crimson-light); }
.badge-soon { background: rgba(74,184,212,0.15); color: var(--teal-gem); border: 1px solid var(--teal-gem); }
.news-cards { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 4rem; }
.news-card { background: var(--black-card); border: 1px solid rgba(201,151,58,0.2); padding: 1.8rem 2rem; position: relative; transition: all 0.3s; }
.news-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark)); }
.news-card:hover { border-color: rgba(201,151,58,0.4); box-shadow: var(--shadow-gold); }
.news-card-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.news-card-date { font-family: var(--font-title); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }
.news-card-title { font-family: var(--font-title); font-size: 1.15rem; color: var(--gold-bright); margin-bottom: 0.7rem; }
.news-card-body { font-size: 0.95rem; color: var(--text-body); line-height: 1.75; }

/* ========================================
   CONTATTI
======================================== */
.contatti-hero { text-align: center; max-width: 680px; margin: 0 auto 5rem; }
.contatti-hero p { font-size: 1.05rem; color: var(--text-body); line-height: 1.8; }
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 5rem; }
@media (max-width: 768px) { .contatti-grid { grid-template-columns: 1fr; } }
.info-box { background: rgba(201,151,58,0.04); border: 1px solid rgba(201,151,58,0.25); padding: 2.5rem; position: relative; }
.info-box::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark)); }
.info-box.teal-accent::before { background: linear-gradient(180deg, var(--teal-gem), transparent); }
.info-box h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-bright); margin-bottom: 1.2rem; }
.info-box.teal-accent h3 { color: var(--teal-gem); }
.info-box p { color: var(--text-body); font-size: 0.98rem; margin-bottom: 1.2rem; line-height: 1.75; }
.info-box p:last-of-type { margin-bottom: 1.5rem; }
.steps { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.5rem 0; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { min-width: 32px; height: 32px; border: 1px solid var(--gold-mid); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 0.75rem; color: var(--gold-bright); flex-shrink: 0; margin-top: 0.1rem; }
.step-text { font-size: 0.95rem; color: var(--text-body); line-height: 1.6; }
.step-text strong { color: var(--parchment-light); }
.chat-notice { background: rgba(74,184,212,0.06); border: 1px solid rgba(74,184,212,0.25); border-left: 3px solid var(--teal-gem); padding: 1.2rem 1.5rem; font-size: 0.92rem; color: var(--text-body); line-height: 1.65; margin-top: 1.5rem; }
.chat-notice strong { color: var(--teal-gem); }
.faq-section { margin-top: 5rem; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 1.5rem; }
.faq-item { background: var(--black-card); border: 1px solid rgba(201,151,58,0.18); padding: 1.5rem; transition: border-color 0.3s; }
.faq-item:hover { border-color: rgba(201,151,58,0.35); }
.faq-q { font-family: var(--font-title); font-size: 0.92rem; color: var(--gold-bright); margin-bottom: 0.6rem; letter-spacing: 0.03em; }
.faq-a { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.center-glow { position: relative; }
.center-glow::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(ellipse, rgba(139,26,26,0.1) 0%, transparent 70%); pointer-events: none; }
