﻿/* ==================== AGE GATE / VERIFICA ETÀ ==================== */
/* Overlay a schermo intero che blocca lo sfondo e lo scroll */
.age-gate-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 15, 18, 0.76) !important;
  z-index: 999999999 !important; /* Copre qualsiasi elemento e preloader */
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.age-gate-box {
  background: #1e1e24;
  color: #ffffff;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
}

.age-gate-content h2 {
  font-size: 24px;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.age-gate-content p {
  font-size: 14px;
  color: #c5c5c5;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.age-gate-content .age-question {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin: 16px 0;
}

.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.btn-age {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-yes {
  background-color: #920910; /* Colore principale del bottone */
  color: #000000;
}

.btn-yes:hover {
  opacity: 0.9;
}

.btn-no {
  background-color: transparent;
  color: #aaaaaa;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-no:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.age-error {
  color: #ff5252 !important;
  font-size: 13px !important;
  margin-top: 16px !important;
  font-weight: 500;
}

/* Quando la verifica è passata */
body.age-verified .age-gate-overlay {
  display: none !important;
}

/* Blocco dello scroll del body finché l'età non è verificata */
body:not(.age-verified) {
  overflow: hidden !important;
}
