:root {
  --primary-color: #8b37d4;
  --secondary-color: #1a1a1a; /* Dark Gray / Almost Black */
  --background-color: #ffffff; /* White */
  --text-color: #333333;
  --light-gray: #f4f4f9;
  --border-color: #e0e0e0;
  --success-color: #5028a7;
  --font-family: "Poppins", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.main-header {
  background-color: var(--background-color);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 12px;
}

.header-center-cta {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-icon svg {
  width: 28px;
  height: 28px;
  color: var(--secondary-color);
  opacity: 0.7;
}

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--background-color) 0%,
    var(--light-gray) 100%
  );
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.hero-cta .cta-button {
  width: 260px;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

h1 b,
.hero p b {
  color: var(--primary-color);
  font-weight: 600;
}

/* General Section Styling */
section {
  padding: 60px 0;
}

section:nth-of-type(odd) {
  background-color: var(--light-gray);
}

#classifica .container {
  display: flex;
  flex-direction: column;
}

#classifica .welcome-bonus {
  order: 1;
}

#classifica .bonus-senza-deposito {
  order: 2;
}

h2,
h3,
h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

h2 svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

h3 {
  font-size: 1.8rem;
  /* border-left: 4px solid var(--primary-color); */
  padding-left: 15px;
}

h4 {
  font-size: 1.3rem;
  font-weight: 600;
}

p,
li {
  margin-bottom: 1.2rem;
  color: #444;
}

b,
strong {
  font-weight: 600;
  color: var(--secondary-color);
}

.marker-underline {
  text-transform: uppercase;
  position: relative;
  background-image: linear-gradient(
    120deg,
    #ffd54f 0%,
    #ff8a65 40%,
    #4dd0e1 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 70%;
  background-position: 0 70%;
  padding: 0 4px 2px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

ol,
ul {
  padding-left: 25px;
}

ol li::marker {
  font-weight: 600;
  color: var(--primary-color);
}
ul li::marker {
  color: var(--primary-color);
}

/* Casino Cards */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.casino-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: popIn 0.5s ease-out forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.casino-card:nth-child(1) {
  animation-delay: 0.1s;
}
.casino-card:nth-child(2) {
  animation-delay: 0.2s;
}
.casino-card:nth-child(3) {
  animation-delay: 0.3s;
}
.casino-card:nth-child(4) {
  animation-delay: 0.4s;
}
.casino-card:nth-child(5) {
  animation-delay: 0.5s;
}

.casino-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.casino-card.neon-ribbon {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--background-color), var(--background-color))
      padding-box,
    linear-gradient(120deg, #d4af37, #28a745, #f5d66b, #28a745) border-box;
  background-size:
    100% 100%,
    280% 280%;
  animation:
    popIn 0.5s ease-out forwards,
    neonRibbon 4s linear infinite,
    glowPulse 1.8s ease-in-out infinite;
  box-shadow:
    0 8px 25px rgba(212, 175, 55, 0.25),
    0 0 22px rgba(40, 167, 69, 0.25);
}

.casino-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.casino-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 15px;
  color: #ffc107;
}

.casino-rating svg {
  width: 20px;
  height: 20px;
}

.casino-bonus-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 15px 0;
  flex-grow: 1;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--light-gray);
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(81, 77, 67, 0.3);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(160, 144, 91, 0.5);
}

/* Detailed Review Section */
.review-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}
.review-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.review-section p b {
  color: var(--primary-color);
}

.review-section h4 {
  margin-top: 25px;
}

.casino-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0 50px;
}

.casino-summary-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  background-color: var(--background-color);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.casino-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.casino-summary-card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.casino-summary-card p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.casino-summary-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary-color);
}

/* Table */
.table-container {
  overflow-x: auto;
  margin-top: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--background-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

caption {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 15px;
  caption-side: top;
  text-align: left;
  color: var(--secondary-color);
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

thead {
  background-color: var(--secondary-color);
  color: var(--background-color);
}

tbody tr:hover {
  background-color: var(--light-gray);
}

td:last-child a {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

td:last-child a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Remove default marker */
  transition: background-color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none; /* For Chrome/Safari */
}

.faq-item summary:hover {
  background-color: var(--light-gray);
}

.faq-item summary .faq-icon {
  transition: transform 0.3s ease;
}

.faq-item[open] summary {
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--border-color);
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 20px;
  background-color: var(--background-color);
}

/* Footer */
.main-footer {
  background-color: var(--secondary-color);
  color: #ccc;
  padding: 50px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.responsible-gaming {
  font-size: 0.9rem;
  max-width: 600px;
  opacity: 0.8;
}

/* Vegas Flash Banner */
.vegas-banner {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(212, 175, 55, 0.12),
      transparent 35%
    ),
    radial-gradient(circle at 80% 0%, rgba(40, 167, 69, 0.16), transparent 40%),
    rgba(5, 4, 25, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vegas-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.vegas-banner__content {
  position: relative;
  width: min(980px, 94vw);
  background: linear-gradient(135deg, #ffffff 0%, #fff6df 40%, #fffaf0 100%);
  border: 2px solid #f5d66b;
  border-radius: 22px;
  padding: 30px;
  color: #1a1a1a;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(255, 215, 94, 0.4);
  overflow: hidden;
  animation: vegasFrame 2.4s ease-in-out infinite;
}

.vegas-banner__content::before,
.vegas-banner__content::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.45;
}

.vegas-banner__content::before {
  width: 180px;
  height: 180px;
  background: #f5d66b;
  top: -40px;
  right: -60px;
}

.vegas-banner__content::after {
  width: 220px;
  height: 220px;
  background: #28a745;
  bottom: -80px;
  left: -40px;
}

.vegas-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.vegas-banner__title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1a1a;
}

.vegas-banner__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5d66b;
  box-shadow: 0 0 0 0 rgba(245, 214, 107, 0.6);
  animation: pulse 1.4s infinite;
}

.vegas-banner__timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2),
    rgba(40, 167, 69, 0.12)
  );
  border: 1px solid rgba(212, 175, 55, 0.9);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.35);
}

.vegas-banner__timer-label {
  text-transform: uppercase;
  color: #000000;
  letter-spacing: 0.4px;
  font-size: 0.9rem;
}

.vegas-banner__timer-value {
  font-size: 1.2rem;
}

.vegas-offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.vegas-offer {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 214, 107, 0.7);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(255, 175, 55, 0.2);
  color: #1a1a1a;
}

.vegas-offer__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vegas-offer__stars {
  color: #f5d66b;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.vegas-offer__bonus,
.vegas-offer__terms,
.vegas-offer__note {
  font-size: 0.98rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.vegas-offer__bonus b {
  color: #28a745;
}
.vegas-offer__terms b {
  color: #d4af37;
}
.vegas-offer__note b {
  color: #1f8e3d;
}

.vegas-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    #fff6d4 0%,
    #f5d66b 32%,
    #d4af37 64%,
    #28a745 100%
  );
  color: #0f1308;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 12px 25px rgba(212, 175, 55, 0.35),
    0 0 16px rgba(40, 167, 69, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid rgba(212, 175, 55, 0.8);
  animation: ctaShine 2s ease-in-out infinite;
}

.vegas-offer__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(212, 175, 55, 0.5),
    0 0 18px rgba(40, 167, 69, 0.35);
}

.vegas-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(245, 214, 107, 0.7);
  background: rgba(255, 255, 255, 0.35);
  color: #1a1a1a;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.vegas-banner__close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 214, 107, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(245, 214, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 214, 107, 0);
  }
}

@keyframes vegasFrame {
  0% {
    border-color: #d4af37;
    box-shadow:
      0 0 0 0 rgba(212, 175, 55, 0.7),
      0 0 24px rgba(230, 198, 101, 0.55),
      0 0 38px rgba(40, 167, 69, 0.3);
  }
  50% {
    border-color: #28a745;
    box-shadow:
      0 0 0 2px rgba(40, 167, 69, 0.25),
      0 0 26px rgba(212, 175, 55, 0.6),
      0 0 46px rgba(230, 198, 101, 0.4);
  }
  100% {
    border-color: #d4af37;
    box-shadow:
      0 0 0 0 rgba(212, 175, 55, 0.3),
      0 0 24px rgba(230, 198, 101, 0.55),
      0 0 38px rgba(40, 167, 69, 0.3);
  }
}

@keyframes ctaShine {
  0% {
    box-shadow:
      0 12px 25px rgba(212, 175, 55, 0.45),
      0 0 16px rgba(230, 198, 101, 0.6);
  }
  50% {
    box-shadow:
      0 14px 26px rgba(212, 175, 55, 0.55),
      0 0 22px rgba(40, 167, 69, 0.35);
  }
  100% {
    box-shadow:
      0 12px 25px rgba(212, 175, 55, 0.45),
      0 0 16px rgba(230, 198, 101, 0.6);
  }
}

@keyframes neonRibbon {
  0% {
    background-position:
      0 0,
      0 0;
  }
  50% {
    background-position:
      0 0,
      100% 100%;
  }
  100% {
    background-position:
      0 0,
      0 0;
  }
}

@keyframes glowPulse {
  0% {
    box-shadow:
      0 8px 25px rgba(212, 175, 55, 0.25),
      0 0 22px rgba(40, 167, 69, 0.25);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(212, 175, 55, 0.38),
      0 0 28px rgba(40, 167, 69, 0.35);
  }
  100% {
    box-shadow:
      0 8px 25px rgba(212, 175, 55, 0.25),
      0 0 22px rgba(40, 167, 69, 0.25);
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .logo {
    font-size: 1rem;
  }
  .header-center-cta {
    display: none;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  .vegas-banner__content {
    padding: 22px 18px;
  }
  .vegas-banner__title {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  .vegas-banner__timer {
    width: 100%;
    justify-content: center;
  }
  .vegas-offers {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .cta-button {
    width: 100%;
    max-width: 320px;
  }
}

.faq-item h3 {
  font-size: medium;
}
