
:root {
  --bg: #150B0E;
  --card: #231116;
  --secondary: #2C1A1E;
  --garnet: #C8102E;
  --garnet-hover: #E01C3F;
  --gold: #D9A544;
  --gold-glow: rgba(217, 165, 68, 0.35);
  --glow: #E7C9B8;
  --text: #F7F3EE;
  --text-muted: #B9A8A0;
  --success: #5FBF7A;
  --danger: #E0615A;
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--garnet));
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

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

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

/* Alpine SVG mountain divider */
.mountain-divider {
  display: block;
  width: 100%;
  height: 40px;
  fill: none;
  stroke: var(--secondary);
  stroke-width: 1.5;
  margin: 4rem 0;
}

/* Shared Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--garnet-hover);
  box-shadow: 0 0 15px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  background: linear-gradient(180deg, rgba(21, 11, 14, 0.9) 0%, rgba(21, 11, 14, 0) 100%);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(44, 26, 30, 0.4);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--gold);
}

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 8px;
  border: 1px solid var(--secondary);
  border-radius: 20px;
  padding: 4px 8px;
  background-color: rgba(35, 17, 22, 0.8);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.lang-btn.active {
  background-color: var(--gold);
  color: var(--bg);
}

/* Mobile Menu Button */
.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger-menu svg {
  width: 28px;
  height: 28px;
  stroke: var(--text);
  stroke-width: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px 0;
  background-image: linear-gradient(180deg, rgba(21, 11, 14, 0.4) 0%, #150B0E 95%), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, rgba(217, 165, 68, 0.05) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--glow);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Slot Simulator Card */
.slot-simulator-teaser {
  background: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 14px;
  padding: 24px;
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.slot-simulator-teaser::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--garnet));
}

.slot-simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.slot-badge {
  background: rgba(217, 165, 68, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.slot-reels-container {
  background: #0d0608;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 16px;
  position: relative;
}

.slot-reels-canvas-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  justify-content: center;
}

.slot-canvas {
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: #0d0608;
}

.slot-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 16px;
}

.slot-stats {
  display: flex;
  gap: 20px;
  font-family: monospace;
}

.slot-stat {
  font-size: 0.95rem;
}

.slot-stat span {
  color: var(--gold);
  font-weight: bold;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 14px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 10px 25px rgba(217, 165, 68, 0.1);
}

.feature-icon {
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(200, 16, 46, 0.1);
  padding: 12px;
  border-radius: 12px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Info Section (History & What is SC) */
.info-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.info-section-grid.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.info-image-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--secondary);
}

.info-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.info-image-wrapper:hover img {
  transform: scale(1.03);
}

.info-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(21, 11, 14, 0) 60%, rgba(21, 11, 14, 0.8) 100%);
  pointer-events: none;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.game-card {
  background-color: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  height: 380px;
  transition: var(--transition);
  cursor: pointer;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card-content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(180deg, rgba(35, 17, 22, 0) 0%, rgba(21, 11, 14, 0.95) 75%);
  transition: var(--transition);
}

.game-card-title {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.game-card-theme {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 11, 14, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.game-card:hover .game-card-overlay,
.game-card:focus-within .game-card-overlay {
  opacity: 1;
  visibility: visible;
  border-color: var(--gold);
  box-shadow: 0 0 25px var(--gold-glow);
}

.game-card-overlay .rating {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-card-overlay .rating svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.game-card-overlay .btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 220px;
  margin-top: 20px;
}

/* New Games Page Banner */
.new-games-banner {
  background: linear-gradient(180deg, rgba(21, 11, 14, 0.3) 0%, #150B0E 100%), url('../img/hero-bg.jpg'); /* fallback if new banner not generated */
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  padding: 60px;
  border: 1px solid var(--secondary);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.new-games-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at right, rgba(200, 16, 46, 0.2) 0%, transparent 60%);
}

.new-games-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

/* Slot List / Grid for Nuovi Giochi Page */
.slots-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 4rem;
}

/* Detail Slot Page */
.slot-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  margin-top: 30px;
}

.slot-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.slot-info-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--secondary);
}

.slot-info-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.slot-info-table td:last-child {
  color: var(--text);
  font-weight: bold;
  text-align: right;
}

/* Table Wrapper & Comparison Table */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--secondary);
  border-radius: 14px;
  background-color: var(--card);
  margin: 30px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
}

.comparison-table th {
  background-color: var(--secondary);
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.comparison-table tr:not(:last-child) {
  border-bottom: 1px solid var(--secondary);
}

.comparison-table tr:hover {
  background-color: rgba(44, 26, 30, 0.2);
}

.comparison-table td.highlight {
  color: var(--gold);
  font-weight: 600;
}

/* Pros and Cons Grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.pros-column, .cons-column {
  background: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 14px;
  padding: 32px;
}

.pros-column {
  border-left: 4px solid var(--success);
}

.cons-column {
  border-left: 4px solid var(--danger);
}

.pros-column h3 {
  color: var(--success);
}

.cons-column h3 {
  color: var(--danger);
}

.pros-cons-list {
  list-style: none;
  margin-top: 20px;
}

.pros-cons-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.pros-column li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: bold;
}

.cons-column li::before {
  content: '-';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger);
  font-weight: bold;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.15rem;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  stroke-width: 2px;
  fill: none;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: rgba(21, 11, 14, 0.4);
}

.faq-answer-content {
  padding: 24px;
  border-top: 1px solid var(--secondary);
  color: var(--text-muted);
}

.faq-item.active {
  border-color: var(--gold);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Legal Content Styles */
.legal-content {
  max-width: 800px;
  margin: 40px auto;
}

.legal-content h3 {
  margin-top: 2rem;
  color: var(--gold);
}

.legal-content ul, .legal-content ol {
  margin-left: 20px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
}

/* Contacts Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info {
  background: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 14px;
  padding: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  background: rgba(217, 165, 68, 0.1);
  padding: 10px;
  border-radius: 8px;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.5px;
  fill: none;
}

.contact-item-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-item-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 14px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  background: #12070a;
  border: 1px solid var(--secondary);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  cursor: pointer;
  accent-color: var(--gold);
}

.checkbox-group label {
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.form-success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.form-success-content {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px var(--gold-glow);
  position: relative;
}

.form-success-icon {
  width: 60px;
  height: 60px;
  background: rgba(95, 191, 122, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.form-success-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--success);
  stroke-width: 2.5px;
  fill: none;
}

/* Map placeholder */
.map-container {
  margin-top: 30px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--secondary);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  z-index: 500;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(var(--container-width) - 48px);
  margin: 0 auto;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
}

.cookie-settings-panel {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--secondary);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-option-label {
  display: flex;
  flex-direction: column;
}

.cookie-option-label h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.cookie-option-label p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Toggle Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--gold);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--bg);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
}

.ai-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--garnet);
  border: 1px solid var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(200, 16, 46, 0.4);
  transition: var(--transition);
}

.ai-chat-btn:hover {
  transform: scale(1.05);
  background-color: var(--garnet-hover);
  box-shadow: 0 5px 25px rgba(200, 16, 46, 0.6);
}

.ai-chat-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--text);
  stroke-width: 1.5px;
  fill: none;
}

.ai-chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 480px;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.ai-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ai-chat-header {
  background: var(--secondary);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(217, 165, 68, 0.2);
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--gold);
}

.ai-chat-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
}

.ai-chat-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ai-chat-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  stroke-width: 2px;
}

.ai-chat-close:hover svg {
  stroke: var(--text);
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #12070a;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.chat-msg.bot {
  background-color: var(--secondary);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.user {
  background-color: var(--garnet);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-chat-input-area {
  padding: 16px;
  background: var(--card);
  border-top: 1px solid var(--secondary);
  display: flex;
  gap: 10px;
}

.ai-chat-input {
  flex: 1;
  background: #12070a;
  border: 1px solid var(--secondary);
  color: var(--text);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-body);
  outline: none;
  font-size: 0.9rem;
}

.ai-chat-input:focus {
  border-color: var(--gold);
}

.ai-chat-send {
  background: var(--gold);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ai-chat-send:hover {
  background-color: var(--text);
}

.ai-chat-send svg {
  width: 18px;
  height: 18px;
  stroke: var(--bg);
  stroke-width: 2px;
  fill: none;
}

/* Footer */
footer {
  background-color: #0c0608;
  border-top: 1px solid var(--secondary);
  padding: 60px 0 30px 0;
  color: var(--text-muted);
}

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

.footer-logo-desc p {
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-col h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
  padding-left: 5px;
}

.footer-social-links {
  list-style: none;
}

.footer-social-links li {
  margin-bottom: 12px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.newsletter-form .form-control {
  border-radius: 20px;
  padding: 8px 16px;
}

.newsletter-form .btn {
  border-radius: 20px;
  padding: 8px 20px;
}

.footer-middle {
  border-top: 1px solid var(--secondary);
  border-bottom: 1px solid var(--secondary);
  padding: 30px 0;
  margin-bottom: 30px;
  text-align: center;
}

.footer-middle p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-middle p:last-child {
  margin-bottom: 0;
}

.warning-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--danger);
  color: var(--danger);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-family: var(--font-body);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-legal-inline a {
  color: var(--text-muted);
}

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

/* Responsiveness (Breakpoints) */

@media (max-width: 1024px) {
  h1 {
    font-size: 2.6rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 950px) {
  nav {
    display: none;
  }
  .burger-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .mountain-divider {
    margin: 2.5rem 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .info-section-grid,
  .info-section-grid.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .slots-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slot-detail-grid {
    grid-template-columns: 1fr;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-legal-inline {
    justify-content: center;
  }
  .table-wrapper {
    border: none;
    background: none;
    margin: 20px 0;
  }
  .comparison-table {
    min-width: 100%;
  }
  .comparison-table, 
  .comparison-table tbody, 
  .comparison-table tr, 
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tr {
    margin-bottom: 20px;
    border: 1px solid var(--secondary);
    border-radius: 14px;
    padding: 20px;
    background: var(--card);
  }
  .comparison-table td {
    padding: 8px 0;
    border: none !important;
  }
  .comparison-table td:first-child {
    font-size: 1.15rem;
    font-family: var(--font-title);
    color: var(--gold);
    border-bottom: 1px solid var(--secondary) !important;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-weight: 700;
  }
  html[lang="it"] .comparison-table td:nth-child(2)::before {
    content: "Social Casino: ";
    color: var(--text-muted);
    font-weight: normal;
  }
  html[lang="it"] .comparison-table td:nth-child(3)::before {
    content: "Casinò Reale: ";
    color: var(--text-muted);
    font-weight: normal;
  }
  html[lang="de"] .comparison-table td:nth-child(2)::before {
    content: "Social Casino: ";
    color: var(--text-muted);
    font-weight: normal;
  }
  html[lang="de"] .comparison-table td:nth-child(3)::before {
    content: "Echtes Casino: ";
    color: var(--text-muted);
    font-weight: normal;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .slots-list-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-banner-actions .btn {
    width: 100%;
  }
  .ai-chat-window {
    width: calc(100vw - 48px);
    right: 0;
  }
  .slot-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .slot-simulator-header {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .slot-stats {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .slot-simulator-teaser {
    padding: 16px 12px;
  }
  .slot-reels-container {
    padding: 8px;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 150;
  padding: 100px 30px 30px 30px;
  transition: var(--transition);
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.3rem;
  font-family: var(--font-title);
}

.mobile-nav-links a {
  color: var(--text-muted);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--text);
}

.mobile-nav-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
