@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #FF9933;
  --secondary: #00E5FF;
  --bg: #0a0a14;
  --bg-card: #12121f;
  --bg-header: rgba(10, 10, 20, 0.85);
  --text: #ffffff;
  --text-secondary: #b8b8d4;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --glow-primary: 0 0 20px rgba(255, 153, 51, 0.3);
  --glow-secondary: 0 0 20px rgba(0, 229, 255, 0.3);
  --radius: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 153, 51, 0.1);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span.icon {
  -webkit-text-fill-color: initial;
  font-size: 1.6rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.75);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg);
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 153, 51, 0.5);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (min-width: 769px) {
  .games-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 153, 51, 0.1);
  transition: all var(--transition);
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.game-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(0, 229, 255, 0.1));
  position: relative;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.game-genre {
  display: inline-block;
  background: rgba(255, 153, 51, 0.15);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.game-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.game-card .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.8rem;
}

/* ===== VANTAGGI ===== */
.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vantaggio-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(255, 153, 51, 0.1);
  transition: all var(--transition);
}

.vantaggio-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--glow-secondary);
  transform: translateY(-3px);
}

.vantaggio-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.vantaggio-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.vantaggio-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== ABOUT ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all var(--transition);
}

.review-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity var(--transition);
}

.review-card:hover::before {
  opacity: 1;
}

.review-card:hover {
  box-shadow: 0 0 25px rgba(255, 153, 51, 0.15);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-stars {
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 153, 51, 0.1);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  font-size: 1.3rem;
  transition: transform var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 153, 51, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-submit {
  align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  background: #06060d;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 153, 51, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-contact-item {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 153, 51, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-disclaimer {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .legal-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 35px;
  margin-bottom: 12px;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-page ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .vantaggi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 153, 51, 0.15);
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .vantaggi-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .legal-page h1 {
    font-size: 1.6rem;
  }
}

/* ===== SVG ICONS ===== */
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.game-card-image svg { width: 56px; height: 56px; }
.vantaggio-icon { display: flex; align-items: center; justify-content: center; height: 56px; }
.vantaggio-icon svg { width: 40px; height: 40px; }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.overlay.active {
  display: block;
}
