@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #010103;
  --ink: #111;
  --red: #ec2c24;
  --red-dark: #a8130d;
  --yellow: #fee830;
  --yellow-hover: #fee61c;
  --highlight: #ffd900;
  --ease: cubic-bezier(.165, .84, .44, 1);
  --gold: #f6dd69;
  --white: #fff;
  --muted: #b9b9c0;
  --radius: 5px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- Bottoni ---------- */
/* Bottoni come l'originale: larghezza fissa 13.1rem, hover solo colore */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13.1rem;
  min-width: 13.1rem;
  padding: .7em .6em;
  border-radius: 4.8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .15);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background-color: var(--yellow-hover); color: #000; }
.btn:focus-visible, .game:focus-visible, .topbar__logo:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--nav { box-shadow: none; border-radius: 4px; }
/* Stella che pulsa nelle CTA (pulse-star dell'originale) */
.btn__star { width: 20px; height: 20px; fill: currentColor; flex: none; margin: 0 15px 0 10px; animation: pulse-star 2s infinite; will-change: transform; }
.btn:has(.btn__star) { justify-content: flex-start; }
@keyframes pulse-star {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(2); }
}
/* Bottone della navbar che pulsa (pulse2 dell'originale) */
.btn--nav { animation: pulse2 1.5s infinite; will-change: transform; }
@keyframes pulse2 {
  0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(236, 44, 36, .5); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(236, 44, 36, 0); }
  100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(236, 44, 36, 0); }
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  box-shadow: 0 0 25px -7px rgba(0, 0, 0, .75);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.topbar__logo img { width: 214px; height: auto; }
.topbar__tagline { font-weight: 700; font-size: 20px; line-height: 1; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(to top, #ec2c24, #191919);
  overflow: hidden;
  isolation: isolate;
}
/* Fiches appena visibili sopra il gradiente */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: .35;
  z-index: -1;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 100px;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  display: inline-block;
  font-size: clamp(44px, 5vw, 65px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -5px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, .3);
}
.hero__title .hl { padding: 0; }
.hero__upto { margin: 14px 0 12px; font-size: 12px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.hero__amount {
  padding: 0 0 20px;
  font-size: clamp(56px, 5vw, 71px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}
.hero__spins { margin: 0; padding: 0 0 40px; font-size: 39px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.hero__rating { margin-top: 26px; font-size: 15px; }
.hero__rating strong { font-weight: 700; }
/* Stelline Trustpilot: 216px desktop, 193px fino a 1024, 175px mobile (come l'originale) */
.hero__stars { display: block; width: 216px; margin-top: 4px; }
.hero__stars-link { display: inline-block; }
.hero__art { position: relative; z-index: 1; justify-self: start; width: 100%; max-width: 500px; }
.hero__art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero__reels { position: absolute; left: -2%; bottom: 4%; width: 62% !important; }
/* Zeus e rulli oscillano (pix-bounce-sm dell'originale): 10% della propria altezza, 5s */
.hero__zeus, .hero__reels { animation: pix_bounce_sm 5s ease-in-out infinite both; will-change: transform; }
@keyframes pix_bounce_sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10%); }
}

/* ---------- Divisori (onde tra le sezioni, come il tema pixfort) ---------- */
.divider { position: absolute; left: 0; width: 100%; z-index: 3; pointer-events: none; line-height: 0; }
.divider svg { display: block; width: 100%; height: 80px; }
.divider--bottom { bottom: -1px; }
.divider--top { top: -1px; transform: rotate(180deg); }
.divider--dyn svg { height: 100px; }

/* ---------- Sezioni ---------- */
.section { position: relative; padding: 100px 0 140px; }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--white); color: var(--black); }

.title {
  font-size: clamp(32px, 3.2vw, 45px);
  font-weight: 700;
  line-height: 1.28;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: -.01em;
  margin-bottom: 32px;
}
.title--left { text-align: left; margin-bottom: 16px; }
/* Evidenziatore giallo sotto il testo (highlight-grow dell'originale) */
.hl {
  display: inline-block;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 76% / 100% 30%;
}
.section .hl { color: #000; letter-spacing: -3px; }
.hero__title .hl { background-image: linear-gradient(var(--highlight), var(--highlight)); background-position: 0 76%; background-size: 100% 15%; }
.lead { font-size: 16px; line-height: 1.8; color: inherit; margin: 0 auto 32px; }
.lead strong { font-weight: 700; }

/* ---------- Grosse Gewinne ---------- */
.sec-wins { padding: 40px 0 150px; }
.sec-wins .title { margin-bottom: 36px; }

/* ---------- Carosello giochi ---------- */
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-auto-flow: column;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail--5 { grid-template-columns: repeat(5, 1fr); gap: 12px; overflow: visible; }
.rail--6 { grid-auto-columns: calc((100% - 2 * 20px) / 3); padding: 20px 0 40px; }
.rail li { scroll-snap-align: start; }
/* Card giochi: shadow-lg + shadow-hover-lg dell'originale; "Grosse Gewinne" ingrandisce (scale-lg) */
.game {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .05), 0 24px 35.2px rgba(0, 0, 0, .1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.game:hover { z-index: 2; box-shadow: 0 8px 19.2px rgba(0, 0, 0, .1), 0 32px 48px rgba(0, 0, 0, .15); }
.rail--5 .game:hover { transform: scale(1.15); }
.game img { width: 100%; aspect-ratio: 516 / 662; object-fit: cover; }

/* ---------- Signup bonus: step con barra di avanzamento ---------- */
.sec-signup { padding: 40px 0 90px; }
.sec-signup .lead { margin-bottom: 50px; }
.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 174px;
  height: 6px;
  background: var(--black);
  border-radius: 3px;
}
.step { display: flex; flex-direction: column; align-items: center; }
.step__icon { width: 136px; height: 136px; }
.step__dot { width: 30px; height: 30px; margin: 23px 0 20px; border-radius: 50%; background: var(--black); position: relative; z-index: 1; }
.step p { padding: 10px; font-size: 16px; font-weight: 700; line-height: 1.8; text-transform: uppercase; color: var(--black); max-width: 330px; }

/* ---------- Prelievi ---------- */
.sec-payout { padding: 120px 0 150px; }
.payout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.payout__art { width: 100%; max-width: 330px; justify-self: center; }
.payout__badge { width: 330px; margin-bottom: 10px; }
.payout .title { margin-bottom: 10px; }
.payout .lead { margin: 0; }

/* ---------- Das beste Online-Casino ---------- */
.sec-best { padding: 30px 0 170px; }
.sec-best .title { margin-bottom: 8px; }
.sec-best .lead { margin-bottom: 30px; }

/* ---------- Top slot ---------- */
.sec-slots { padding: 60px 0 70px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.slots__head .title { margin-bottom: 24px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; height: 10px; }
.slider__dots:empty, .slider__dots.is-off { display: none; }
.slider__dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: width .3s var(--ease), background-color .3s var(--ease); }
.slider__dot.is-active { width: 20px; background: var(--red); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); font-size: 14px; line-height: 1.5; padding-top: 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: center; padding-bottom: 40px; }
.footer__grid img { margin-bottom: 12px; }
.footer__grid > div:first-child img { width: 207px; }
.footer__grid .footer__s4w { width: 130px; }
/* IT: barra pagamenti sopra il footer, come l'originale */
.footer--bar-top { padding-top: 0; }
.footer--bar-top .footer__grid { padding-top: 50px; }
.footer__seal { width: 124px; margin: 0 auto; }
.footer__bar { background: #1d1d1d; padding: 13px 0; }
.footer__bar-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.footer__bar img { height: 36px; width: auto; }
.footer__bar img + img { width: 124px; height: auto; justify-self: center; }

/* ---------- Torna su (back_to_top dell'originale, uguale su desktop e mobile) ---------- */
.to-top {
  position: fixed;
  right: 30px;
  bottom: -30px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e9ecef;
  color: var(--red);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 .125rem .375rem rgba(0, 0, 0, .05), 0 .5rem 1.2rem rgba(0, 0, 0, .1);
  transition: all .4s var(--ease);
}
.to-top.active { opacity: 1; bottom: 30px; pointer-events: auto; }
.to-top:hover { background: #cbd3da; color: #b41610; transform: translateY(-6px); box-shadow: 0 .125rem .375rem rgba(0, 0, 0, .05), 0 .625rem 1.5rem rgba(0, 0, 0, .15); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__stars { width: 193px; }
  .rail--5 { grid-template-columns: none; grid-auto-columns: calc((100% - 2 * 15px) / 3); overflow-x: auto; padding: 20px 0; }
  .slots { grid-template-columns: 1fr; gap: 10px; }
  .slots__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
  .slots__head .title { margin: 0; }
}

@media (max-width: 768px) {
  .topbar__inner { height: 66px; padding: 0 15px; }
  .topbar__logo img { width: 118px; }
  .topbar__tagline { display: none; }
  .btn--nav { padding: 10px .6em; }

  /* Hero mobile come l'originale (misurato a 390px): testi compatti, Zeus 252px,
     rulli che sporgono a sinistra e sotto, 73px liberi prima del bottone (Zeus oscilla di ~25px) */
  .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 1px; padding-bottom: 90px; gap: 0; }
  .hero__copy { display: contents; }
  .hero__title { font-size: 50px; line-height: 35px; letter-spacing: -2px; }
  .hero__upto { font-size: 11px; margin: 31px 0 -13px; }
  .hero__amount { font-size: 64px; line-height: 64px; letter-spacing: -.9px; padding-bottom: 16px; }
  .hero__spins { margin-top: -2px; padding-bottom: 9px; font-size: 35px; line-height: 35px; letter-spacing: -.9px; }
  .hero__art { order: 5; justify-self: center; max-width: 252px; margin: -9px 0 73px; }
  .hero__reels { left: -10%; bottom: -17%; width: 74% !important; }
  /* Source Sans 3 ha metriche verticali diverse dal Source Sans Pro dell'originale:
     sposto solo il testo (position relative non cambia il layout) per allineare le lettere */
  .hero__title, .hero__upto, .hero__amount, .hero__spins { position: relative; }
  .hero__title { top: 17px; }
  .hero__title .hl { background-position: 0 100%; }
  .hero__upto { top: 2px; }
  .hero__amount { top: 12px; }
  .hero__spins { top: 6px; }
  .hero__copy > .btn { order: 6; }
  .hero__copy > div { order: 7; width: 100%; margin-top: 3px; }
  .hero__rating { margin-top: 0; }
  .hero__stars { width: 175px; margin: 0 auto; }

  .divider svg { height: 50px; }
  .divider--dyn svg { height: 70px; }
  .section, .sec-wins, .sec-signup, .sec-payout, .sec-best, .sec-slots { padding: 50px 0 90px; }
  .sec-payout { padding-top: 80px; }

  .title { font-size: min(36px, 8vw); overflow-wrap: anywhere; }
  /* Caroselli mobile: card centrata con le vicine che si intravedono */
  .rail--5, .rail--6 { grid-auto-columns: 60vw; margin: 0 -20px; padding: 20px 20vw; gap: 14px; }
  .rail--6 { grid-auto-columns: 44vw; padding: 20px 28vw; }
  .rail li { scroll-snap-align: center; }
  .slider__dots { margin-top: 6px; }

  .steps { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .steps::before, .step__dot { display: none; }
  .step__icon { width: 23%; min-width: 80px; height: auto; }

  .payout { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .payout__art { max-width: 260px; }
  .payout__badge { margin: 0 auto 14px; width: 280px; }
  .payout .title--left { text-align: center; }

  /* Top slot mobile: titolo, carosello, pallini, bottone */
  .slots { display: flex; flex-direction: column; align-items: center; }
  .slots__head { display: contents; }
  .slots__head .title { order: 1; text-align: center; }
  .slots .slider { order: 2; width: 100%; }
  .slots__head .btn { order: 3; margin-top: 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer__grid img, .footer__seal { margin-left: auto; margin-right: auto; }
  .footer__bar-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer__bar img { height: auto; max-width: 100%; }
  .footer__bar img + img { width: 81px; }
}

/* ---------- Animazioni d'ingresso ----------
   Replica delle animazioni del tema originale (pixfort/Elementor). Attive solo con JS
   (classe "js" su <html>); src/anim.js aggiunge "in" quando l'elemento entra nello schermo.
   data-anim: fade | fade-up | fade-left | e-up | e-left | 3d-right | words
   Ritardo: style="--d:300ms" */
.js [data-anim] {
  opacity: 0;
  transition: opacity .5s cubic-bezier(.165, .84, .44, 1) var(--d, 0ms), transform .5s cubic-bezier(.165, .84, .44, 1) var(--d, 0ms);
}
.js [data-anim="fade-up"] { transform: translateY(20px); }
.js [data-anim="fade-left"] { transform: translateX(-20px); }
/* fadeInUp / fadeInLeft di Elementor: spostamento pieno, 1.25s */
.js [data-anim="e-up"] { transform: translateY(100%); transition-duration: 1.25s; transition-timing-function: ease; }
.js [data-anim="e-left"] { transform: translateX(-100%); transition-duration: 1.25s; transition-timing-function: ease; }
/* pix-3d-right-in */
.js [data-anim="3d-right"] {
  transform: perspective(1200px) translateX(40px) translateZ(200px) rotateX(-20deg) rotateY(-40deg) rotateZ(-20deg) scale(.75);
  transition-duration: .8s;
  transition-timing-function: cubic-bezier(.19, .29, .32, 1);
}
.js [data-anim].in { opacity: 1; transform: none; }
.js [data-anim="3d-right"].in { transform: perspective(1200px); }

/* pix-sliding-text: le parole salgono una alla volta */
.js [data-anim="words"] { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0; margin: -.08em 0; }
.sw > span { display: inline-block; }
.js .sw > span {
  opacity: 0;
  transform: translateY(1.4em);
  transition: transform .8s cubic-bezier(.13, .91, .42, 1) calc(var(--i) * 90ms), opacity .8s ease calc(var(--i) * 90ms);
}
.js .in .sw > span { opacity: 1; transform: none; }

/* highlight-grow: l'evidenziatore si allarga da sinistra */
.js .hl { background-size: 0% 30%; transition: background-size 1.5s ease-in-out .2s; }
.js .hero__title .hl { background-size: 0% 16%; }
.js .in .hl { background-size: 100% 30%; }
.js .in.hero__title .hl { background-size: 100% 16%; }
@media (max-width: 768px) {
  .js .hero__title .hl { background-size: 0% 9px; }
  .js .in.hero__title .hl { background-size: 100% 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-anim], .js .sw > span { opacity: 1 !important; transform: none !important; }
  .js .hl { background-size: 100% 30% !important; }
  .js .hero__title .hl { background-size: 100% 16% !important; }
}
