/* ── INDEX HERO ── */
.index-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 40px 110px;
  background-image: url('./photo/Sfondo_header.jpg');
}
.index-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 60px,
    rgba(0,87,255,.04) 60px, rgba(0,87,255,.04) 62px
  );
}
.index-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 70px;
  background: #f4f6fa;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  transition: background 0.3s;
}
body.dark-mode .index-hero::after { background: #161616; }
.index-hero-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #dc152b;
  margin-bottom: 14px;
  position: relative;
}
.index-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1;
  position: relative;
}
.index-hero h1 span { color: #4a8aff; }
.index-hero p {
  color: rgba(255,255,255,.65);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
  position: relative;
}
.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.btn-primary {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 6px;
  text-decoration: none;
  background: #cc1a2e;
  color: #fff;
  border: 2px solid #cc1a2e;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #a81020; border-color: #a81020; transform: translateY(-2px); }
.btn-secondary {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 6px;
  text-decoration: none;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  transition: border-color .2s, transform .15s;
}
.btn-secondary:hover { border-color: #fff; transform: translateY(-2px); }

/* ── SECTION WRAPPER ── */
.page-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 70px 24px;
}
.page-section + .page-section { padding-top: 0; }

/* ── SECTION LABEL ── */
.section-head {
  margin-bottom: 36px;
}
.section-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #cc1a2e;
  margin-bottom: 6px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0f1923;
  margin: 0;
}
body.dark-mode .section-title { color: #f0f4ff; }

/* ── GAME CARDS ── */
.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.game-card {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(255,255,255,.08);
}
.game-card:hover { transform: translateY(-8px); }
.valorant-box { background: linear-gradient(160deg, #0f1923, #2a0a0f); }
.lol-box      { background: linear-gradient(160deg, #0a0f2c, #1e2a78); }
.r6-box       { background: linear-gradient(160deg, #1a1a1a, #2a1f00); }
.valorant-box:hover { box-shadow: 0 16px 48px rgba(255,70,85,.25); }
.lol-box:hover      { box-shadow: 0 16px 48px rgba(200,155,60,.25); }
.r6-box:hover       { box-shadow: 0 16px 48px rgba(240,165,0,.25); }

.media-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 220px;
}
.media-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(75%);
  transition: filter 0.3s;
}
.game-card:hover .media-container img { filter: brightness(90%); }
.media-container video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.game-card:hover video,
.news-card:hover video { opacity: 1; }

.game-card-body { padding: 22px 24px 26px; }
.game-card-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 8px;
}
.game-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .5px;
  margin: 0 0 10px;
  color: #fff;
}
.game-card p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0 0 12px;
}
.game-dates {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
  margin-top: 4px;
}
.game-dates strong { color: rgba(255,255,255,.85); }

/* ── INFO BANNER ── */
.info-banner {
  background: #fff;
  border: 1.5px solid #e8ecf4;
  border-left: 4px solid #003366;
  border-radius: 12px;
  padding: 28px 32px;
}
body.dark-mode .info-banner { background: #1e2230; border-color: #2a3148; border-left-color: #4a8aff; }
.info-banner p {
  font-size: 15px;
  color: #0f1923;
  line-height: 1.8;
  margin: 0;
}
body.dark-mode .info-banner p { color: #f0f4ff; }

/* ── NEWS CARDS ── */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.news-card {
  display: flex;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(255,255,255,.08);
}
.news-card:hover { transform: translateX(6px); }
.valorant-box.news-card:hover { box-shadow: 0 8px 32px rgba(255,70,85,.2); }
.lol-box.news-card:hover      { box-shadow: 0 8px 32px rgba(200,155,60,.2); }
.r6-box.news-card:hover       { box-shadow: 0 8px 32px rgba(240,165,0,.2); }

.news-media {
  position: relative;
  width: 260px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}
.news-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(70%);
  transition: filter 0.3s;
}
.news-card:hover .news-media img { filter: brightness(85%); }
.news-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.news-content {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.news-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
}
.news-content h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.news-content p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin: 0;
}
.read-more {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.news-card:hover .read-more { color: #fff; }

/* ── SPONSORS ── */
.sponsors-section {
  background: #fff;
  border-top: 1.5px solid #e8ecf4;
  border-bottom: 1.5px solid #e8ecf4;
  padding: 50px 24px;
}
body.dark-mode .sponsors-section { background: #1a1f2e; border-color: #2a3148; }
.sponsors-label {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #5a6a7a;
  margin-bottom: 28px;
}
body.dark-mode .sponsors-label { color: #8899bb; }
.slideshow-container {
  width: 200px;
  height: 120px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}
.mySlides { display: none; }
.mySlides img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.fade { animation: fade 1.5s ease; }
@keyframes fade { from { opacity: .2; } to { opacity: 1; } }

/* ── DARK MODE ── */
body.dark-mode .info-banner { background: #1e2230; border-color: #2a3148; border-left-color: #4a8aff; }
body.dark-mode .info-banner p { color: #f0f4ff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .index-hero { padding: 80px 24px 90px; }
  .games-container { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
  .news-media { width: 100%; height: 200px; }
}

/* ── GAME MODAL ── */
.game-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalIn .3s ease forwards;
}
.game-modal-overlay.active { display: flex; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

.game-modal-card {
  position: relative;
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  color: #fff;
  transform: translateY(24px) scale(.97);
  animation: modalSlide .35s cubic-bezier(.22,1,.36,1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
@keyframes modalSlide { to { transform: translateY(0) scale(1); } }

.game-modal-card.valorant-box {
  background: linear-gradient(160deg, #0f1923 55%, rgba(255,70,85,.12) 100%);
  border: 1px solid rgba(255,70,85,.3);
  box-shadow: 0 0 80px rgba(255,70,85,.15), 0 24px 64px rgba(0,0,0,.7);
}
.game-modal-card.lol-box {
  background: linear-gradient(160deg, #0a0f2c 55%, rgba(30,42,120,.35) 100%);
  border: 1px solid rgba(200,155,60,.3);
  box-shadow: 0 0 80px rgba(200,155,60,.15), 0 24px 64px rgba(0,0,0,.7);
}
.game-modal-card.r6-box {
  background: linear-gradient(160deg, #1a1a1a 55%, rgba(240,165,0,.12) 100%);
  border: 1px solid rgba(240,165,0,.3);
  box-shadow: 0 0 80px rgba(240,165,0,.15), 0 24px 64px rgba(0,0,0,.7);
}

.game-modal-banner { position: relative; height: 220px; overflow: hidden; border-radius: 16px 16px 0 0; }
.game-modal-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(55%); display: block; }
.game-modal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
}

.game-modal-body { padding: 26px 30px 32px; }
.game-modal-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.game-modal-body h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1;
}
.game-modal-body p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin: 0 0 22px;
}

.game-modal-details {
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gmd-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gmd-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
}
.gmd-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-align: right;
}

.game-modal-cta {
  display: block;
  text-align: center;
  background: #cc1a2e;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.game-modal-cta:hover { background: #a81020; transform: scale(1.02); }

.game-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 10;
}
.game-modal-close:hover { background: rgba(255,255,255,.2); transform: scale(1.1) rotate(90deg); }
.game-modal-card::-webkit-scrollbar { width: 4px; }
.game-modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

@media (max-width: 480px) {
  .game-modal-body { padding: 20px 20px 28px; }
  .game-modal-body h2 { font-size: 26px; }
  .gmd-row { flex-direction: column; align-items: flex-start; }
  .gmd-val { text-align: left; }
}