/* animazioni */

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

@keyframes slideIn {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float {
  0% {
      transform: translateY(0) translateX(0);
  }
  10% {
      transform: translateY(-5px) translateX(2px);
  }
  20% {
      transform: translateY(0) translateX(0);
  }
  30% {
      transform: translateY(5px) translateX(-2px);
  }
  40% {
      transform: translateY(0) translateX(0);
  }
  50% {
      transform: translateY(-5px) translateX(2px);
  }
  60% {
      transform: translateY(0) translateX(0);
  }
  70% {
      transform: translateY(5px) translateX(-2px);
  }
  80% {
      transform: translateY(0) translateX(0);
  }
  90% {
      transform: translateY(-5px) translateX(2px);
  }
  100% {
      transform: translateY(0) translateX(0);
  }
}

@keyframes up-rotate {
	0% {
		animation-timing-function: cubic-bezier(0.16, -0.88, 0.97, 0.53);
		transform: translateY(0px);
	}
	30% {
		transform-origin: center;
		animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
		transform: translateY(-10px);
	}
	100% {
		transform-origin: center;
		transform: translateY(-10px) rotate(45deg) scale(0.9);
	}
}

@keyframes down-rotate {
	0% {
		animation-timing-function: cubic-bezier(0.16, -0.88, 0.97, 0.53);
		transform: translateY(0px);
	}
	30% {
		transform-origin: center;
		animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
		transform: translateY(10px);
	}
	100% {
		transform-origin: center;
		transform: translateY(10px) rotate(-45deg) scale(0.9);
	}
}

@keyframes hide {
	29% {
		opacity: 1;
	}
	30% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@keyframes shooting-star {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-200px) translateY(200px);
    opacity: 0;
  }
}

/* Animazione bounce per il drop down menu mobile */
@keyframes bounce {
  0% {
      transform: scaleY(0);
  }
  70% {
      transform: scaleY(1.1);
  }
  100% {
      transform: scaleY(1);
  }
}

/* Fine Animazioni */

/* Sezione Font */

@font-face {
  font-family: 'header';
  src: url('media/TomaSunny-mLvVV.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'minecraft';
  src: url('media/MinecraftRegular-Bmg3.otf');
}

@font-face {
  font-family: 'minecraftBold';
  src: url('media/MinecraftTen-VGORe.ttf');
}

/* Fine Sezione Font */

/* Altri stili */
:root {
  --colthr: #f4f4f4;
  color-scheme: light;
}

body {
  position: relative;
  margin: 0;
  overflow: hidden;
  display: flex;
  background-color: #01090f;
  max-height: 100vh;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  font-size: 62.5%;
  color: var(--colthr);
}

.smooth {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
}

header {
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  min-height: 60px;
  font-size: 1rem;
  background-color: #1E1F23;
  font-family: header, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  filter: drop-shadow(0px 2px 2px #AF47D2)
}

nav {
  display: flex;
  flex: 1;
  justify-content: end;
  align-items: center;
}

.menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  width: 100%;
  margin: 0 1em;
  padding: 1em;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger svg {
  fill: none;
  stroke: white;
  stroke-width: 6;
  stroke-linecap: round;
  transition: transform 0.3s ease;
}

.hamburger .line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .line1 {
  transform: translateY(21px) rotate(45deg);
}

.hamburger.active .line2 {
  opacity: 0;
}

.hamburger.active .line3 {
  transform: translateY(-21px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #1E1F23;
  position: fixed;
  top: 60px;
  width: 100%;
  z-index: 10;
  animation: bounce 500ms ease-in-out;
  align-items: center;
}

.mobile-menu.open {
  display: flex;
  position: fixed;
  left: 0;
  height: 100%;
  top: 0;
}

.mobile-menu a {
  padding: 1em;
  text-align: center;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #333;
  width: 100%;
  flex: 1;
  align-content: center;
}

.sfondoLogo {
  position: relative;
  width: 140.5px;
  height: 140px;
  background: #1e1f23;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  border-radius: 50%;
}

.sfondoLogo > a {
  display: flex;
  justify-content: center;
  align-self: center;
}

.sfondoLogo > a > img {
  animation: slideIn 1s ease-out forwards;
  transition: transform 0.3s ease-out, z-index 0.3s ease-out;
  position: relative;
  z-index: 3; 
  height: 140px;
}

.sfondoLogo > a:hover > img {
  transform: scale(1.2);
  z-index: 4; /* Immagine sovrasta tutto quando viene scalata */
}

.header ul li {
  margin: 0 1em;
  padding: 1em;
}

.header ul li a {
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--colthr);
}

.header ul li a::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  content: '';
  width: 0;
  height: 3px;
  transition: all 0.2s linear;
}

.header ul li a:hover::after {
  width: 100%;
  background-color: var(--colthr);
}

section {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-flow: column wrap;
  justify-content: center;
  font-size: 1rem;
  background-color: var(--colthr);
  background-size: cover;
  scroll-snap-align: center;
}

section h2 {
  pointer-events: none;
  user-select: none;
  margin: 0px;
}

p {
  margin: 0px;
}

h3 {
  margin: 0px;
}

#club {
  background-color: #01090f;
  padding-bottom: 2vh;
  padding-top: 10vh;
  align-items: center;
}

#regole {
  background-color: #01090f;
  padding-top: 15vh;
  padding-bottom: 10vh;
  align-items: center;
}

#contact {
  justify-content: space-between;
  background-color: #01090f;
  overflow: hidden;
}

a {
  width: 8rem;
  text-decoration: none;
  color: white;
  font-size: 20px;
  user-select: none;
}

a:hover {
  transform: scale(1.2);
  text-decoration-line: underline;
}

.container {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  top: 65px;
  left: 50%;
  transform: translate(-50%, -50%);
}

#home {
  width: 100%;
  background-image: url(media/sfondo10.png);
  background-size: 100% 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  font-family: header, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  position: relative;
  align-items: center;
}


h1 {
  margin-top: 0rem;
  margin-bottom: 0rem;
  filter: drop-shadow(5px 9px 1px #AF47D2);
  pointer-events: none;
  user-select: none;
}

.callToAction {
  flex: 1;
  margin-right: 18rem;
}

.ipServer {
  filter: drop-shadow(1px 1px 0px #AF47D2);
    color: #ffffff;
    backdrop-filter: blur(13px);
    background-color: #ffffff42;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: clamp(22px,1.8vw, 10rem);
    cursor: pointer;
}

.astronauta {
  position: fixed;
  display: flex;
  align-items: center;
  user-select: none;
}

.animate-sword {
  animation: slideInFromRight 1s ease-out forwards;
}

.astronauta {
  right: 12%;
  display: inline-block;
  width: 35%;
  top: 23%;
  /* justify-content: center; */
  z-index: 1;
  position: absolute;
  animation: float 10s linear infinite;
}

.responsive-img {
  width: clamp(80px, 35vw, 80%);
  /* max-width: 80%; */
  height: auto;
}

.cut {
  background-color: #101010;
  position: fixed;
  z-index: 0;
  width: 100%;
  height: 50px;
  transform: skew(0deg, 337deg);
  overflow: hidden;
}

.neon-background {
  animation: neonPulse 2s infinite;
}

/* Preview video css */

.video-preview-container {
  display: flex;
    justify-content: center;
    align-items: flex-end;
    flex: 3;
    margin-right: 18rem;
}

.video-preview {
  cursor: pointer;
  max-width: 100%;
  height: auto;
  border: #26355D solid 2px;
  filter: drop-shadow(0px 10px 15px #AF47D2);
  animation: float 10s linear infinite;
  z-index: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 12;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  width: 90%;
  max-width: 900px;
  background-color: #ffffff00;
  backdrop-filter: blur(15px);
  border-radius: 15px;
}

.modal-content video {
  width: 100%;
  height: auto;
}

.close {
  position: absolute;
    top: 0px;
    right: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
  color: #f00;
  text-decoration: none;
  cursor: pointer;
}

.logo{
  display: none;
}

.logo img {
  height: auto;
  width: 100%;
}

/* zona Club */

.clubs {
  display: flex;
  width: 98%;
  flex-flow: row wrap;
  gap: 2rem;
  min-height: 650px;
}

.primo, .secondo, .terzo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  min-height: 500px;
  z-index: 1;
  user-select: none;
}

.primo .titoloClub {
  background: linear-gradient(to right, #2f3c8d, #10e3e1);
}

.secondo .titoloClub {
  background: linear-gradient(to right, #9f0000, #ff2828);
}

.terzo .titoloClub {
  background: linear-gradient(to right, #8500a5, #ff00f0);
}

.contenitoreImmagine {
  flex: 2;
  align-content: center;
  width: 100%;
  text-align-last: center;
  border-right: 1px solid black;
}

.primo .contenitoreImmagine {
  background: radial-gradient(closest-side, #10e3e1, #2f3c8d);
}

.secondo .contenitoreImmagine {
  background: radial-gradient(closest-side, #ff2828, #9f0000);
}

.terzo .contenitoreImmagine {
  background: radial-gradient(closest-side, #ff00f0, #8500a5);
}

.contenitoreImmagine img {
  animation: float 10s linear infinite;
  width: 200px;
}

.contenitoreImmagine img:hover{
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

.titoloClub {
  pointer-events: none;
  user-select: none;
  font-size: clamp(30px,3vw, 10rem);
  margin: 0px;
  line-height: 0.8;
  width: 100%;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  font-family: minecraftBold, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  min-height: 100px;
  border-right: 1px solid black;
}

.titoloClub span {
  font-size: clamp(30px,1vw, 10rem);
}

.descrizione {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-around;
    padding: 1rem;
    background-color: #f5eaa5;
    margin: 0px;
    min-width: 300px;
    min-height: 300px;
    font-size: clamp(15px,1vw, 5rem);
    color: black;
    border-right: 1px solid black;
    font-family: minecraft, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.descrizione h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.info {
  font-size: 20px;
    padding: 0.6rem;
    background: #ffffffeb;
    color: black;
    border-radius: 32px;
    width: 50%;
    font-family: header, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.info:hover {
  color: white;
  background-color: black;
  text-decoration: none;
  transform: scale(1.1);
}

/* Sezione Regole */

.contenitore-regole {
  max-width: 70vw;
  margin: 20px auto;
  padding: 20px;
  background: #0000004f;
  filter: drop-shadow(0px 1px 1px #AF47D2);
  color: white;
  border-radius: 16px;
  backdrop-filter: blur(30px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  z-index: 1;
}

.contenitore-regole p {
  margin: inherit;
}

h1, h2 {
  color: #333;
}

.sezione-regole {
  margin-bottom: 40px;
}

.sezione-regole h2 {
  background-color: #f4f4f4;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 5px solid #333;
  margin-top: 0;
}

.sezione-regole h3 {
  background-color: #f4f4f4;
  padding: 10px;
  margin-bottom: 10px;
  border-left: 5px solid #333;
  margin-top: 0;
  color: #333;
}

.sezione-regole ul {
  list-style-type: none;
  padding-left: 20px;
}

.sezione-regole li {
  margin: 10px 0;
  border-left: 3px solid #ccc;
  padding: 5px 10px;
}

.sezione-regole li p {
  margin: 0;
}

.sezione-regole ul ul {
  padding-left: 20px;
}

#regole .star-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}

/* Sezione Contatti  */

#contact .star-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vuoto {
  min-height: 100px;
  max-width: 300px;
}

.badge {
  width: 100%;
  height: auto;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.contattiServer {
  flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.immagineFounder {
  background-color: blue;
  flex: 1;
}

/*footer {
  min-height: 60px;
  background-color: black;
  display: flex;
  align-items: center;
  z-index: 1;
  font-family: 'minecraftBold';
  padding-left: 5rem;
}*/

footer {
  min-height: 80px; /* più alto */
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'minecraftBold';
  color: white; /* se il testo è poco visibile sul nero */
  flex-wrap: wrap; /* utile per mobile */
  
}

/* Le due sezioni del footer */
.footer-left,
.footer-right {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
}

/* Imposta il testo a sinistra e destra su desktop */
.footer-left {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.footer-right {
  text-align: right;
}

@media screen and (max-width: 1000px) , screen and (max-height: 601px) {

  .smooth {
    scroll-snap-type: none;
  }

  .video-preview {
    max-width: 100%;
  }

  .video-preview-container {
    flex: 0;
    margin: 0px;
    width: clamp(267px,50vw, 80%);
  }

  .callToAction {
    flex: 0;
    margin: 0px;
    align-content: center;
    display: flex;
  }

  .astronauta {
    display: none;
  }

  #home {
    flex-direction: column;
    gap: 0.5rem;
    background-image: url(media/sfondo10M.png);
    flex-wrap: wrap;
    display: flex;
    justify-content: space-around;
  }

  .logo {
    display: block;
    z-index: 1;
    width: min(40%, max(120px));
    max-height: 120px;
  }

  header {
    right: 5px;
    width: 60px;
    border-radius: 50%;
    filter: none;
    top: 5px;
  }

  nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
  }

  .mobile-menu {
    display: none;
  }

  .nomeSezioneClub {
    flex: 0;
    min-height: 17vh;
    padding-bottom: 5px;
  }

  section h2 {
    font-size: 2rem;
    margin: 0px;
  }

  .descrizione {
    padding: 2px;
  }
}


/* TEST */


svg {
	width: 50px;
}

#top-line,
#bottom-line,
#middle-line {
	transform-box: fill-box;
	transform-origin: center;
}

.svgAttiva {
	#top-line {
		animation: down-rotate 0.6s ease-out both;
	}
	#bottom-line {
		animation: up-rotate 0.6s ease-out both;
	}
	#middle-line {
		animation: hide 0.6s ease-out forwards;
	}
}

.shooting-star {
  position: absolute;
  width: 3px;
  height: 10px;
  background: linear-gradient(45deg, white, rgba(255, 255, 255, 0));
  opacity: 0;
  animation: shooting-star 1s linear infinite;
}


#copy-notification {
  margin-left: 10px;
  background-color: #4CAF50;
  color: white;
  border-radius: 16px;
  padding: 0.6rem 0.9rem;

}

.hidden {
  display: none;
}

.visible {
  display: inline-block;
}

.cookie-bubble {
    color: white;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    position: fixed !important;
    bottom: 3rem !important;
    left: 0;
    right: 0;
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    z-index: 9999;
    text-align: center;
    font-size: clamp(20px, 2vw, 1rem);
    padding: 15px;
    background: #1E1F23;
    box-shadow: 0 4px 30px rgb(255 255 255 / 10%);
    backdrop-filter: blur(7.3px);
    border: 1px solid rgb(142 74 175);
}

/* Freccetta verso il basso */
.cookie-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #f4f4f4 transparent transparent transparent;
}

.cookie-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
  transition: background-color 0.2s ease-in-out;
}

.cookie-button:hover {
  background-color: #43a047;
}


.accordion-toggle {
  background-color: #5b00a754;
    color: #fff;
    cursor: pointer;
    padding: 1em;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border-radius: 16px;
}

.accordion-toggle:hover,
.accordion-toggle.active {
  background-color: #9027e7;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #22222200;
  padding: 0 1em;
}

.accordion-content.open {
  padding: 1em;
  max-height: 1000px; /* abbastanza per contenere contenuto medio-lungo */
}
