/* Base Styles */
:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
}

/* Reset & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul, ol {
  list-style: none;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--ring);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: var(--muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: var(--accent);
  filter: brightness(110%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  padding: 0 1rem;
  flex: 1;
  min-width: 0;
}

/* For mobile, stack columns */
@media (max-width: 767px) {
  .row {
    flex-direction: column;
  }
  
  .col {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .col:last-child {
    margin-bottom: 0;
  }
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: var(--card);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo svg {
  margin-right: 0.5rem;
}

.nav-desktop {
  display: none;
}

.nav-mobile {
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--card);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 5rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--foreground);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  color: var(--primary);
}

.header-buttons {
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
#benvenuto-su-shuffle-casino-il-futuro-del-gioco-d-azzardo-online {
  padding-top: calc(var(--header-height) + 2rem);
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 0;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

.rotating-text {
  height: 1.5rem;
  overflow: hidden;
  margin: 1rem 0 2rem;
}

.rotating-text-wrapper {
  animation: rotate 8s infinite;
}

.rotating-text-item {
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rotate {
  0%, 30% {
    transform: translateY(0);
  }
  33%, 63% {
    transform: translateY(-1.5rem);
  }
  66%, 96% {
    transform: translateY(-3rem);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
}

/* Bonus Section */
#bonus-esclusivi-su-shuffle-casino {
  background-color: var(--card);
}

.bonus-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.bonus-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bonus-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.bonus-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.bonus-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bonus-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.bonus-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.bonus-terms {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: auto;
  height: 0;
  overflow: hidden;
  transition: height var(--transition-speed) ease;
}

.bonus-card:hover .bonus-terms {
  height: auto;
  margin-bottom: 1rem;
}

/* Games Section */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-card {
  background-color: var(--card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-content {
  padding: 1.5rem;
}

.game-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.game-details {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.game-detail {
  display: flex;
  align-items: center;
}

.game-detail svg {
  margin-right: 0.25rem;
}

.game-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Payment Methods Section */
.payment-methods {
  text-align: center;
}

.payment-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.payment-icon {
  background-color: var(--card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.payment-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.payment-icon svg {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.payment-icon-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Security Section */
.security-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.security-feature {
  background-color: var(--card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.security-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.security-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.security-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Comparison Section */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  overflow-x: auto;
  display: block;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.comparison-table tr:nth-child(even) {
  background-color: var(--muted);
}

.comparison-check {
  color: #10b981;
}

.comparison-x {
  color: var(--destructive);
}

/* Testimonials Section */
.testimonials-container {
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  flex: 0 0 100%;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin: 0 0.5rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-info h4 {
  margin-bottom: 0.25rem;
}

.testimonial-rating {
  display: flex;
  color: var(--accent);
  margin-bottom: 1rem;
}

.testimonial-content {
  font-style: italic;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.testimonial-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

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

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  background-color: var(--card);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition-speed) ease;
}

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

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

/* Community Section */
.social-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.social-icon {
  background-color: var(--card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.social-icon svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.social-platform {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.social-followers {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* CTA Section */
#inizia-a-giocare-su-shuffle-casino-oggi {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-benefit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-benefit svg {
  margin-right: 0.5rem;
}

.cta-button {
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 1.25rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  display: inline-block;
  font-weight: 700;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background-color: var(--accent);
  filter: brightness(110%);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Footer */
footer {
  background-color: var(--card);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

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

.footer-column h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.5rem;
  border-radius: 1.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--foreground);
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.footer-payment-icon {
  width: 40px;
  height: 25px;
  background-color: var(--muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Media Queries */
@media (min-width: 576px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  
  .bonus-cards,
  .games-grid,
  .payment-icons,
  .security-features,
  .social-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .header-buttons {
    display: flex;
    gap: 1rem;
  }
  
  .games-grid,
  .security-features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    gap: 2rem;
  }
  
  .nav-desktop a {
    color: var(--foreground);
    font-weight: 600;
    position: relative;
  }
  
  .nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-speed) ease;
  }
  
  .nav-desktop a:hover {
    color: var(--primary);
  }
  
  .nav-desktop a:hover::after {
    width: 100%;
  }
  
  .nav-mobile {
    display: none;
  }
  
  .bonus-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .payment-icons,
  .social-icons {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Dark Mode Adjustments */
.dark .hamburger span {
  background-color: var(--foreground);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}