/* ! Stili di base */
body{
  background-color: rgba(0, 0, 0, 0.916);
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  scroll-behavior: auto;
  overflow-x: hidden;
}     
html{overflow-x: hidden;}
body img{user-select: none;}

@font-face {
  font-family: 'Dominica';
  src: url('LaNuovaCommedia-assets/DOMINICA.TTF') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Brown Cake';
  src: url('Brown-Cake.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


::selection {
  background: #4975fa; /* Codice colore per il giallo oro */
  color: rgb(255, 255, 255); /* Colore del testo quando selezionato */
}

/* Per WebKit (Chrome, Safari) */
::-webkit-scrollbar {
width: 10px; /* Larghezza della barra verticale */
height: 8px; /* Altezza della barra orizzontale */
}

/* Per WebKit - thumb (parte mobile della barra) */
::-webkit-scrollbar-thumb {
background: rgb(112, 112, 112); /* Colore del thumb */
border-radius: 0px; /* Angoli arrotondati */
}

/* Per WebKit - thumb:hover (thumb al passaggio del mouse) */
::-webkit-scrollbar-thumb:hover {
background:#3d3d3d; /* Colore del thumb al passaggio del mouse */
}

/* Per WebKit - track (traccia della scrollbar) */
::-webkit-scrollbar-track {
background: #ffffff; /* Colore del background della traccia */
border-radius: 0px; /* Angoli arrotondati della traccia */
}

/* ! colori scritte */
.tw{color: #fff;} 
.tb{color: #000;} 
.tr{color: red;} 
.to{color: rgb(247, 108, 16);}
.ty{color: rgb(255, 187, 0);}

h1{font-size: 2.8rem;margin: 0;} 
h2{font-size: 2rem;} 
h3{font-size: 2rem;} 
h4{font-size: 1rem;} 
h5{font-size: 0.8rem;} 
h6{font-size: 0.6rem;}
@media (max-width: 768px) {h1{font-size: 2.5rem;} }

p{line-height: 28px;color: rgb(255, 255, 255);padding-bottom: 30px;}
a{text-decoration: none;font-style: inherit;}

.pixel-art-font{font-family: "Tiny5", sans-serif;}
.dominica{ font-family: 'Dominica';}

.cta-button {
  width: fit-content;
  background: transparent;
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  line-height: 100%;
  padding: 20px 30px;
  text-transform: uppercase;
  transition: all .2s ease;
  border: 1px solid white;
  color: white;
}

.cta-button:hover {
  color: #050505;
  background-color: #1267e8;
  border: 1px solid #1267e8;
}

.cta2btn{
  width: fit-content;
  padding: 11px 21px;
  text-align: center;
  text-decoration: none;
  color: #1267e8;
  background-color: #ffffff00;
  border: 1px solid  #1267e8;
  border-radius: 30px;
}
.cta2btn:hover{
  background-color: #1267e8;
  color: white;
}

/* Menu */
:root { --menu-bg: #000000; --menu-color: #fff; }

.header{border-bottom:0.5px solid rgba(255, 255, 255, 0.176); background-color: rgba(0, 0, 0, 0.850);backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(10px); position: fixed; top:0;  left:0; height: 70px; z-index: 100; width: 100%; padding:0px 15px 0px 15px;transition: background-color 0.4s ease;}
.header:hover{background-color: #000;}
.header__content{height: 70px; padding-left: 25px; width: 100%;margin: 0 auto; display: flex;justify-content: space-between;align-items: center;}

.header__logo,
.header__quick{height: 60px; display: flex; align-items: center;color:var(--menu-color);left: 0;}

.header__menu{padding: 0;margin: 0;height: 70px;}
.header__menu li{display: inline-block;color: #fff;user-select: none;}
.header__menu li:hover{cursor: pointer;}

.header__menu li a{color: #fff;}
.header__menu li a{color:var(--menu-color); opacity: 0.8;display: flex;align-items: center; padding: 16px;font-size: 16.5px;height: 69.9px;}

@media (max-width: 768px) {
  .header{ background-color: var(--menu-bg); position: fixed; top:0;  left:0; z-index: 100; width: 100%; padding: 0px 15px;}
  .header__menu{padding: 0;margin: 0;border-bottom-left-radius: 10px;border-bottom-right-radius: 10px;}
  .header__menu li{display: inline-block;transition: transform 0.1s ease;color: #fff;}
  .header__menu li:hover{transform: scale(1.0);color: #ffffff;}  
}

@media (min-width: 768px) {
  .header__menu li {
    width: fit-content;
    padding: 0px;
    margin-right: 15px;
    position: relative;
    display: inline-block;
    align-items: center;
    height: 100%;
  }

  .header__menu li a {
    padding: 20px 16px;
    position: relative;
  }

  .header__menu a::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%; /* Linea sempre della giusta lunghezza */
    height: 2px;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    border-radius: 5px;
  }

  .header__menu a:hover::after,
  .header__menu a.active::after {
    opacity: 1; /* Solo opacità cambia */
  }
}

@media (max-width: 768px) {
  .header__menu{   
    position: absolute; top:60px; left:0; background-color: var(--menu-bg); right: 0; height: 100vh;
    height: 0vh; overflow: hidden;transition: all 1s cubic-bezier(.215, .61, .355, 1);
  }

  .header__menu li{width: 100%;border-bottom: 1px solid #444}
  .menu-open .header__menu{height: 100vh;padding: 3%;}

  .icon-hamburger{height: 50px;width: 40px;margin-left: 20px;padding-top: 5px;}
  .icon-hamburger span{height: 2px; width: 30px;background: var(--menu-color);position: relative;display: block;margin-top: 11px;transition: all 0.2s cubic-bezier(.215, .61, .355, 1);}

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

  .header__quick{display: flex; justify-content: flex-end; width: 50%;}

}

@media (min-width: 768px) {
  .header__menu{transform: translateX(40px);}
}

.header-logo{
    height: 40px;
    width: 45px;
    transition: transform 0.5s ease;
}

.header-logo:hover{
  cursor: pointer;
  transform: scale(1.05);
}

/* Slider section */
.slider-section {
  background-color: #050505;
  margin-top: 70px;
  width: 100%;
  min-height: 420px;
  height: fit-content;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

/* Slide container */
.slider-container {
  width: 60%;
  height: auto;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}

/* Slide contenuto testuale */
.slider-text {
  width: 40%;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slider-text .text {
  width: 100%;max-width: 500px;
  height: 90%;
  padding: 25px;
  display: flex;flex-direction: column;justify-content: center;
  margin: 0 auto;
}
.dotsArea{
  height: 10%;
  display: flex;align-items: center;justify-content: center;
}

#sliderTitle {
  font-size: 45px;
  margin-bottom: 0;
  padding: 0;
}

#sliderDescription {
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 20px;
  padding-bottom: 0px;
}

/* Track slider */
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* Singola slide */
.slide {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Immagine slide */
.slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  min-height: 420px;
}

/* Colori delle slide */
.slide:nth-child(1) { color: #000; }
.slide:nth-child(2) { color: #000; }
.slide:nth-child(3) { color: #000; }

/* Dots */
.dots {
  text-align: center;
  margin-top: 0px;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 6px;
  background-color: #ffffff70;
  border-radius: 50px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
  width: 52px;
}

/* Media Query 1370px */
@media (max-width: 999px) {
  .slider-section {
    flex-direction: column;
    height: auto;
  }

  .slider-container,
  .slider-text {
    width: 100%;
  }

  .slider-text {
    width: 100%;
    padding: 20px;
    align-items: center;
    text-align: center;
  }
  .slider-text .text{max-width: 60%; width: 100%;margin: 0;align-items: center;margin-bottom: 20px;}
}
@media (max-width: 768px) {
  .slider-text{width: 100%;min-width: 100%;padding: 0;}
  .text #sliderTitle{font-size: 2rem;width: 100%;}
  .text #sliderDescription{font-size: 1.2rem;width: 90%;}
  .slider-text .text{width: 100%;min-width: 100%;padding: 25px 2px 30px 2px;}
  .slider-section{padding-bottom: 20px;}
}

/* ! main */
main{
  position: relative;
  width: 100%;left: 0;
}
/* ! Hero */
.hero { 
  padding: 80px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  left: 0;
}
.hero #pad{
  opacity: 0.67;
  top: 20px;
  position: absolute;
  z-index: -1;
  width: 600px;
  height: 600px;right: 0;top: 150px;
} 
.pad{
  y: 20px;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 50px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 0px;
  padding-bottom: 35px;
}

.hero-charts {
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
}
@media (max-width: 1230px) {
  .hero-charts{max-width: 900px;}
}
@media (max-width: 768px) {
  .hero #pad{opacity: 0.2;top: 100px;}
  .hero{padding: 40px 10px 10px 10px;}
  .hero-title{font-size: 2rem;}
}

/* ! gameShocases */
.gameShowcases{
  padding: 30px 10px 30px 10px;
  display: flex;justify-content: center;flex-direction: column;align-items: center;
  width: 100%;height: fit-content;
  position: relative;
}
.gameShowcases h2{
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.dante{
  position: absolute;
  top: 200px;left: 20px;
  width: 350px;
  height: 350px;
  z-index: -1;
  opacity: 0.8;
  transform: rotate(9deg);
  transition: opacity 0.3s ease;
}

.corona{
  position: absolute;
  bottom: 150px;right: 80px;
  width: 350px;
  z-index: -1;
  opacity: 1;
  transform: rotate(-9deg);
  transition: opacity 0.3s ease;  
}
@media (max-width: 1200px) {
  .corona{opacity: 0;}
  .dante{opacity: 0;}
}

.cardContainer_GamesShowcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  position: relative;z-index: 2;
}

.card-custom {
  position: relative;
  width: 85%;
  height: 280px;
  max-width: 850px;
  border-radius: 24px;
  background-color: #292929;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  border: 1px solid rgba(125, 125, 125, 0.626);
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.card-icon-custom {
  position: absolute;
  font-size: 3rem;
  color: white;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* overlay scuro */
.overlay-dark-custom {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* DESKTOP hover */
@media (hover: hover) and (min-width: 769px) {
  .card-custom:hover .card-text-custom {
    opacity: 0;
  }

  .card-custom:hover .card-icon-custom {
    opacity: 1;
  }

  .card-custom:hover .overlay-dark-custom {
    opacity: 1;
  }
}

/* MOBILE STYLE */
@media (max-width: 768px) {
  .arrow-mobile-showcase{
    display: block;
    font-size: 40px;
    opacity: 0.6;
    width: 90%;margin-left: 5%;
    text-align: right;
  }

.card-icon-custom {
  position: absolute;
  font-size: 3rem;
  color: white;
  opacity: 1;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* overlay scuro */
.overlay-dark-custom {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
  inset: 0;
  opacity: 1;
  z-index: 1;
  transition: opacity 0.3s ease;
}

}

/* ! scheda a comparsa */
.schedaComparsa {
  display: none;
  position: fixed;
  bottom: -110%;
  left: 8%;
  width: 84%;
  height: 93.5%;
  background:  rgb(54, 52, 52);
  z-index: 102;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 30px;
  opacity: 0;
  transition:
    bottom 0.5s ease,
    opacity 0.6s ease;
}
.schedaComparsa.active {
  display: block;
  bottom: 2.5%;
  opacity: 1;
}
.schedaComparsa::-webkit-scrollbar {
  display: none;
}

.video-wrapper {
  position: relative;
  width: 100%;height: 100%; /* 16:9 ratio (9/16 = 0.5625) */
  background: black;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  /* ! scheda a comparsa */
.schedaComparsa {
  display: none;
  position: fixed;
  bottom: -110%;
  left: 0;top: 0;
  width: 100%;
  height: 100vh;
  background:  rgb(54, 52, 52);
  z-index: 102;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 0px;
  opacity: 0;
  transition:
    bottom 0.5s ease,
    opacity 0.6s ease;
}
.schedaComparsa.active {
  display: block;
  bottom: 0%;
  opacity: 1;
}
.schedaComparsa::-webkit-scrollbar {
  display: none;
}

.video-wrapper {
  position: relative;
  width: 100%;height: 100%;
  padding-top: 0%; /* 16:9 ratio (9/16 = 0.5625) */
  background: black;
  border-radius: 0px;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
}

/* ! Animazione schede */
#sfondo-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(6px); /* oppure filter: blur(6px) */
  background-color: rgba(50, 50, 50, 0.656); /* opacità sfondo */
  z-index: 101; /* sopra al contenuto */
  display: none; /* inizialmente invisibile */
  transition: opacity 0.3s ease;
  opacity: 0;
}

#sfondo-blur.active {
  display: block;
  opacity: 1;
}


/* ! Close Button */
.close-btn {
  position: absolute;
  top: 15px;right: 15px;
  width: 52px;
  height: 52px;
  background-color: rgba(0, 0, 0, 0.98); /* semi-trasparente */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, backdrop-filter 0.3s ease;
  padding: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 111;
  border: 1px solid rgb(255, 255, 255);
}
.close-btn:hover {
  background-color:  #1267e8;
  border: 1px solid  #1267e8;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.close-btn svg {
  fill: #fff;
  stroke: #fff;
  height: 28px;width: 28px;
  pointer-events: none;
}
.close-btn svg:hover{
  stroke: #000;
  fill: #000;
}

@media (max-width: 768px) {
  .close-btn {
  position: absolute;
  top: 15px;right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(184, 184, 184, 0.98); /* semi-trasparente */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, backdrop-filter 0.3s ease;
  padding: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 111;
}
.close-btn:hover {
  background-color: rgba(169, 169, 169, 0.98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.close-btn svg {
    height: 20px;width: 20px;
  pointer-events: none;
}
}

.chart {
  background-color:#1c1d24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 10px 20px 5px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.chart:hover {
  transform: scale(1.03);
}

.chart h3 {
  margin-bottom: 10px;
  font-size: 17px;
  text-align: center;
  gap: 5px;
  cursor: default;
}

.chart p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #ccc;
  cursor: default;
}

.chart img{
  width: 300px;
  height: 260px;
}

/* ! News */
.news-section {
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
}
.news-section .campanella{
  position: absolute;
  top: 0px;left: -50px;
  width: 500px;
  height: 500px;
  z-index: -1;
  opacity: 0.3;
  transform: rotate(-9deg);
}

.news-container {
  max-width: 900px;
  margin: 0 auto;
}

.news-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.news-description {
  font-size: 20px;
  color: #cccccc;
  margin-bottom: 0px;
  padding-bottom: 45px;
  line-height: 1.6;
}

.news-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.news-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #45454588;
  padding: 14px 24px;
  border: 1px solid #444;
  border-radius: 8px;
  color: rgba(215, 214, 214, 0.738);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  filter: grayscale(1);
}
.news-button{
  border-color: rgba(255, 255, 255, 0.587);
}

.news-button img {
  height: 24px;
  width: 24px;
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.3s ease, opacity 0.4s ease;
  opacity: 0.45;
}

.news-button:hover img {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

.news-button:hover {
  background-color: white;
  color: black;
  filter: grayscale(0);
}

.news-button:hover img {
  filter: none;
}

.news-button.whatsapp {
  border-color: #25D366;
}

.news-button.whatsapp:hover {
  background-color: #25D366;
  color: black;
}

.news-button.youtube {
  border-color: #ffffff;
}

.news-button.youtube:hover {
  background-color:#ffffff;
  color: rgb(0, 0, 0);
}

.news-button.youtube img{
  width: 34px;
}


@media (max-width: 768px) {
  .news-section .campanella{
  position: absolute;
  top: 0px;left: 20%;
  width: 500px;
  z-index: -1;
  opacity: 0.2;
  transform: rotate(-9deg);
  }
  .news-description{font-size: 17px;width: 100%;}
}

/* ! Bottom Site */
.bottom-site {
  background-color: #000000;
  color: #fff;
  padding: 20px;
  text-align: left;
  width: 100%;
  position: relative; /* Fissa il footer in basso */
  left: 0;
  bottom: 0;
}

.bottom-site li {
  display: inline-block;
  font-size: 15px;
}
@media (max-width: 768px) {.bottom-site li{font-size: 12px;}}

.top3BT,
.mid3BT {
  transition: transform 0.5s ease;
  color: #fff;
  cursor: pointer;
}

.top3BT:hover {
  transform: scale(1.2);
  color: #a8a8a8;
}

.mid3BT:hover {
  transform: scale(1.2);
  color: #0786ee;
}

.sBS {
  height: 1px;
  width: 20px;
}

.ssBS {
  height: 15px;
  width: 1px;
}

.top3BS {
  display: flex;
  padding: 0;
  width: fit-content;
}

.topBottomSite {
  height: fit-content;
  width: 100%;
  padding: 2px 5px;
  display: flex;
  justify-content: center;
}

.middleBottomSite {
  height: fit-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5px 5px;
}

.bottomBottomSite {
  height: fit-content;
  display: flex;
  justify-content: center;
  padding: 5px;
  width: 100%;
}

.ulMauto {
  margin-left: 0;
}

.social {
  margin-top: 20px;
}

.bottomsitemainlogo {
  height: 40px;
  width: 45px;
  margin: 0;
}

.DisplayNoneMobile {
  display: none;
}

/* ! Social */
/* CSS */
.social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social img {
  width: 40px;
  filter: grayscale(100%) brightness(70%);
  transition: filter 0.3s ease;
}

.social img:hover {
  filter: none;
}

.non-selezionabile {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard */
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}