*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Configurazione radice e scorrimento */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base per il body */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* Dispositivi mobili */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Immagini e media responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Reset di Form e Pulsanti */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 1. Assicura che il contenitore principale tagli l'overflow orizzontale */
#cg-k2-carousel-container {
	width: 100%;
	overflow: hidden;
	position: relative;	
	position-anchor: --dots;
	position-area: bottom;
}

/* 2. Il wrapper deve disporre le slide in riga e NON andare a capo */
.swiper-wrapper {
	display: flex;
	flex-wrap: nowrap; /* Fondamentale: impedisce di andare in colonna/a capo */
}

/* 3. La slide NON deve rimpicciolirsi (flex-shrink: 0) */
.swiper-slide {
	flex-shrink: 0; /* Fondamentale: forza la slide a rispettare la larghezza calcolata da Swiper */
	box-sizing: border-box;
}

/* Le tue regole custom per la card */
.cg-k2-game-card {
	display: flex;
	justify-content: space-between;
	overflow: hidden;
	cursor: pointer;
}
.cg-k2-game-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.5rem;
}
.cg-k2-game-card__play {
	padding: 0.5rem;
	background-color: lightgrey;
	border-radius: 20px;
}
.cg-k2-game-card__img {
	width: 8rem;
}
.swiper-pagination {
	margin-top: 1rem;
	anchor-name: --dots;
	width: 100%;
	display: flex !important;
	justify-content: center;
	align-items: center;
	gap: 6px;
}
.swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #000;
	opacity: 0.2;
	border-radius: 50%;
	cursor: pointer;
	display: inline-block;
}

.swiper-pagination-bullet-active {
	opacity: 1;
	background: #007aff;
}