:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #121212;
  --card-bg: #161616;
  --accent-color: #9d44ff;
  --accent-light: rgba(157, 68, 255, 0.15);
  --accent-hover: #b36dff;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --font-heading: "Exo 2", sans-serif;
  --font-body: "Sora", sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
  cursor: default;
}
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(15, 15, 15, 0.75) 100%
  );
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("../assets/images/Sfondo.png") no-repeat center center fixed;
  background-size: cover;
  opacity: 1;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--primary-bg) 20%, transparent);
  pointer-events: none;
}

/* Contenitore centrale */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 100%;
  padding: 0 20px;
}

/* Logo simbolo */
.logo-symbol {
  width: clamp(30px, 80vw, 150px);
  height: auto;
  object-fit: contain;
  display: block;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.2s ease-out;
}

/* Logo testuale SVG */
.logo-img {
  width: clamp(320px, 65vw, 900px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  fill: white;
}


/* Tagline */
.tagline {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--text-secondary);
  letter-spacing: 3px;
  font-weight: 300;
  margin-top: 10px;
}

.tagline strong {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.tagline strong::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -4px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.5s ease 1.5s;
}

.hero-visible .tagline strong::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--accent-color);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(157, 68, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(157, 68, 255, 0.2);
}
.scroll-indicator:hover {
  background-color: rgba(157, 68, 255, 0.2);
}
section {
  min-height: 100vh;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 70px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 3.3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

/* About */
.about-section {
  padding: 60px 20px;
  color: #e0e0e0;
  background-color: var(--primary-bg);
}
.about-section::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-color) 0%, transparent 10%);
  opacity: 0.03;
  z-index: 0;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  margin-left: 18px;
  margin-right: 20px;
}

.about-header h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.7rem;
  margin-bottom: 5px;
  color: rgb(255, 255, 255);
  text-align: left;
}


.about-header h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #9d44ff;
  text-align: left;
}

.about-header .subheadline {
  font-family: "Sora", sans-serif;
  font-style: italic;
  color: #b3aaff;
  margin-bottom: 30px;
  font-size: 1.1rem;
  text-align: left;
}

.about-main {
  margin-left: 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-image {
  flex: 0 0 320px;
  height: 600px;
  border-radius: 12px;
  transition: scale 0.3s ease-in-out;
}
.about-image:hover{
  scale: 1.03;
}

.flip-card {
  min-height: 300px;
}


.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.2s ease-in-out;
}


.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
  background-color: #111;
}

.flip-card-back iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: brightness(0.9) contrast(1.1);
}



.about-text {
  flex: 1 1 600px;
  color: #ddd;
  font-family: var(--font-body);
}


.about-text p {
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 28px;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 18px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
}

.about-text p:hover{
  box-shadow: 0 15px 30px rgba(157, 68, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(157, 68, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scale: 1.03;
}


.about-text p strong {
  font-weight: 700;
  color: #b36dff;
  font-size: 1.3rem;
}
.about-text p strong::after {
  content: " ";
  display: inline-block;
  width: 6px;
}

.call-to-action {
  margin-top: 10px;
}

.buttons-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background-color: #9d44ff;
  color: #ffffff;
  border-radius: 32px;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 16px rgba(157, 68, 255, 0.4);
  margin-right: 12px;
}

.btn-primary i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  transform: rotate(-45deg);
}

.btn-primary:hover {
  background-color: #b36dff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 109, 255, 0.6);
}




@media (max-width: 768px) {
  .about-header {
    margin-left: 10px;
  }

  .about-header h2 {
    font-size: 1.8rem;
  }

  .about-main {
    flex-direction: column;
  }

  .about-image {
    height: 400px;
    width: 100%;
  }

  .about-text {
    flex: unset;
    width: 100%;
  }
}

/* Keyframes animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-header,
.about-image,
.about-text p {
  opacity: 0;
}


.about-section.reveal .about-header {
  animation: fadeInUp 1s ease-out forwards;
}

.about-section.reveal .about-image {
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 1s;
}


.about-section.reveal .about-text p:nth-of-type(1) {
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.6s;
}

.about-section.reveal .about-text p:nth-of-type(2) {
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.9s;
}

.about-section.reveal .about-text p:nth-of-type(3) {
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 1.2s;
}

@media (max-width: 1114px) and (min-width: 769px) {
  .about-main {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
    height: 450px;
  }

  .about-text {
    width: 100%;
    flex: unset;
  }

  .about-header h2 {
    font-size: 2.1rem;
  }

  .about-header h3 {
    font-size: 1.4rem;
  }

  .about-header .subheadline {
    font-size: 1rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 10px 16px;
  }
}


/* Stats */
.title-of-section{
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;

}


.stats-section {
  background-color: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-color) 0%, transparent 70%);
  opacity: 0.03;
  z-index: 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  row-gap: 30px;
}
.stat-card {
  flex: 1 1 clamp(260px, 30%, 300px);
  min-height: 500px;
  max-width: 300px;
  min-width: 260px;
  background-color: var(--secondary-bg);
  padding: 20px 20px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(157, 68, 255, 0.1);
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}
.stat-card.reveal {
  opacity: 1;
  transform: translateY(0);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), transparent);
}
.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(157, 68, 255, 0.1);
  border: 1px solid rgba(157, 68, 255, 0.2);
}
.stat-card,
.stat-card * {
  cursor: default;
}
.stat-icon {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent-color);
  margin-bottom: 20px;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(157, 68, 255, 0.3));
}
.stat-icon::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  opacity: 0.1;
  border-radius: 50%;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.stat-value {
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.stat-value span {
  color: var(--accent-color);
  position: relative;
}
.circular-progress {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-color) var(--progress),
    rgba(255, 255, 255, 0.05) 0deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(157, 68, 255, 0.2);
}
.circular-placeholder {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--secondary-bg);
}
.progress-value {
  position: relative;
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
}
.progress-value span {
  color: var(--accent-color);
}
.stat-label {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2.8vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: px;
  font-weight: 700;
}
.stat-card:hover .stat-label {
  text-shadow: 0 0 20px rgba(157, 68, 255, 0.3);
}

.stat-description {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-secondary);
  text-shadow: 0 0 2px rgba(157, 68, 255, 0.2);
  opacity: 0;
  margin-top: 15px;
  transition: opacity 0.4s ease;
  max-width: 220px;
  line-height: 1.4;
}

.stat-card:hover .stat-description {
  opacity: 1;
}



/* Schermi piccoli / mobile */
@media (max-width: 1024px) {
  .stats-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    row-gap: 20px;
  }

  .stat-card {
    flex: 1 1 100%;
    max-width: 95%;
    min-height: auto;
    padding: 16px;
  }

  .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .circular-progress,
  .circular-placeholder {
    width: 130px;
    height: 130px;
  }

  .circular-progress::before {
    width: 100px;
    height: 100px;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .progress-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .stat-description {
    font-size: 0.9rem;
    max-width: 100%;
    margin-top: 10px;
  }
}

/* Schermi molto piccoli */
@media (max-width: 576px) {
  .stat-card {
    padding: 14px;
  }

  .circular-progress,
  .circular-placeholder {
    width: 110px;
    height: 110px;
  }

  .circular-progress::before {
    width: 85px;
    height: 85px;
  }

  .progress-value {
    font-size: 1.3rem;
  }

  .stat-value {
    font-size: 2.1rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .stat-description {
    font-size: 0.85rem;
  }
}

/* Ultra-small */
@media (max-width: 400px) {
  .stat-value {
    font-size: 1.9rem;
  }

  .circular-progress {
    width: 100px;
    height: 100px;
  }

  .circular-progress::before {
    width: 75px;
    height: 75px;
  }

  .progress-value {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .stat-description {
    font-size: 0.8rem;
  }
}

/* Prediction Section */

.prediction-cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  color: var(--text-primary);
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.8),
    rgba(10, 10, 10, 0.9)
  );
  z-index: 1;
  overflow: hidden;
}

.prediction-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/fortnite_background_tournament.png")
    no-repeat center center / cover;
  filter: blur(8px) brightness(0.6);
  z-index: -3;
}

.prediction-cta-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(14, 12, 16, 1) 0%,
    rgba(14, 12, 16, 0.9) 10%,
    rgba(18, 18, 18, 0) 50%,
    rgba(18, 18, 18, 0) 70%,
    rgba(18, 18, 18, 0.9) 90%,
    rgba(18, 18, 18, 1) 100%
  );
  z-index: -2;
}
.cta-button-container {
  margin-top: 40px;
  z-index: 1;
  position: relative;
}

.cta-button {
  background-color: var(--accent-color);
  color: white;
  padding: 18px 40px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 0 0 0 rgba(157, 68, 255, 0.6);
  animation: buttonPulse 2s infinite;
}

.cta-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.25);
  animation: none;
}
.cta-content {
  position: relative;
  z-index: 1;
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(157, 68, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(157, 68, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(157, 68, 255, 0);
  }
}

.external-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  padding: 10px 20px;
  border-radius: 20px;
  background-color: rgba(157, 68, 255, 0.1);
  font-family: var(--font-body);
  font-weight: 500;
}
.external-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.external-link:hover {
  background-color: rgba(157, 68, 255, 0.2);
  transform: translateY(-2px);
}
.external-link:hover i {
  transform: translateX(3px);
}
.results-content {
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(157, 68, 255, 0.1);
  border-top: none;
}
.results-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  gap: 10px;
}
.results-tab {
  padding: 12px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  opacity: 0.7;
  font-family: var(--font-body);
  font-weight: 500;
}
.results-tab.active {
  color: var(--text-primary);
  opacity: 1;
}
.results-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}
.results-tab:hover {
  opacity: 1;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(157, 68, 255, 0.2);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
.loading-indicator p {
  color: var(--text-secondary);
  font-family: var(--font-body);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
h4 {
  color: var(--text-primary);
  margin: 25px 0 30px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
h4 i {
  color: var(--accent-color);
  margin-right: 15px;
}
h5 {
  color: var(--text-primary);
  margin: 25px 0 20px;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}
h5 i {
  margin-right: 12px;
  color: var(--accent-color);
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}
.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}
.section-visible .section-header,
.section-visible .stats-grid,
.section-visible .register-container,
.section-visible .prediction-container,
.section-visible .team-container {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
  .logo {
    font-size: 5rem;
  }
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
@media (max-width: 992px) {
  .hero {
    padding: 0 30px;
  }
  .logo {
    font-size: 4.5rem;
  }
  .tagline {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .prediction-form {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 0 20px;
  }
  .logo {
    font-size: 3.5rem;
  }
  .tagline {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  section {
    padding: 80px 0;
  }
  form {
    padding: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }
  .social-links {
    gap: 15px;
  }
  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .team-photo-container {
    width: 100px;
    height: 100px;
  }
  .team-name {
    font-size: 1.2rem;
  }
  .team-role {
    font-size: 0.8rem;
  }
}
@media (max-width: 576px) {
  .hero {
    padding: 0 15px;
  }
  .logo {
    font-size: 2.8rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }

}
@media (max-width: 400px) {
  .logo {
    font-size: 2.2rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  
}
.main-nav {
  display: none;
}

.persistent-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
  background-color: transparent;
  padding: 10px;
  border-radius: 10px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  line-height: 1;
  display: flex;
  align-items: center;
}
.persistent-logo span {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(157, 68, 255, 0.5);
}
.persistent-logo.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.logged-in {
  position: relative;
  color: var(--accent-color) !important;
  background-color: rgba(157, 68, 255, 0.15);
}
.logged-in::before {
  content: "•";
  position: absolute;
  left: -8px;
  color: var(--accent-color);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}
.login-message {
  color: var(--text-primary);
  background-color: rgba(157, 68, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 15px;
  text-align: center;
  border: 1px solid rgba(157, 68, 255, 0.2);
}
.login-message.show {
  display: block !important;
}
.register-link {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.register-link:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}


.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color, #5865f2);
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.9rem 1.7rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.discord-button i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.discord-button:hover {
  background-color: #4752c4;
  transform: scale(1.05);
}

.discord-cta {
  display: flex;
  justify-content: center;
}
.discord-cta a{
  font-size: 1.2rem;
}
.discord-invite-section {
  background: linear-gradient(
    135deg,
    rgba(157, 68, 255, 0.05),
    rgba(157, 68, 255, 0.07),
    rgba(20, 10, 30, 0.5)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  color: var(--text-light, #fff);
  padding: 4rem 1rem;
  text-align: center;
}
.discord-invite-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(14, 12, 16, 1) 100%,
    rgba(14, 12, 16, 0.9) 10%,
    rgba(18, 18, 18, 0) 0%,

  );
  z-index: -2;
}


.stars {
  width: 1px;
  height: 1px;
  position: absolute;
  background: white;
  box-shadow: 2vw 5vh 2px white, 10vw 8vh 2px white, 15vw 15vh 1px white,
    22vw 22vh 1px white, 28vw 12vh 2px white, 32vw 32vh 1px white,
    38vw 18vh 2px white, 42vw 35vh 1px white, 48vw 25vh 2px white,
    53vw 42vh 1px white, 58vw 15vh 2px white, 63vw 38vh 1px white,
    68vw 28vh 2px white, 73vw 45vh 1px white, 78vw 32vh 2px white,
    83vw 48vh 1px white, 88vw 20vh 2px white, 93vw 52vh 1px white,
    98vw 35vh 2px white, 5vw 60vh 1px white, 12vw 65vh 2px white,
    18vw 72vh 1px white, 25vw 78vh 2px white, 30vw 85vh 1px white,
    35vw 68vh 2px white, 40vw 82vh 1px white, 45vw 92vh 2px white,
    50vw 75vh 1px white, 55vw 88vh 2px white, 60vw 95vh 1px white,
    65vw 72vh 2px white, 70vw 85vh 1px white, 75vw 78vh 2px white,
    80vw 92vh 1px white, 85vw 82vh 2px white, 90vw 88vh 1px white,
    95vw 75vh 2px white;
  animation: twinkle 8s infinite linear;
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, white, transparent);
  animation: shoot 3s infinite ease-in;
}

.shooting-star:nth-child(1) {
  top: 20%;
  left: -100px;
  animation-delay: 0s;
}

.shooting-star:nth-child(2) {
  top: 35%;
  left: -100px;
  animation-delay: 1s;
}

.shooting-star:nth-child(3) {
  top: 50%;
  left: -100px;
  animation-delay: 2s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(25deg);
    opacity: 1;
  }
  100% {
    transform: translateX(120vw) translateY(50vh) rotate(25deg);
    opacity: 0;
  }
}


/* Additional twinkling stars with different animation timing */
.stars::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  background: white;
  box-shadow: 8vw 12vh 2px white, 16vw 18vh 1px white, 24vw 25vh 2px white,
    33vw 15vh 1px white, 41vw 28vh 2px white, 49vw 35vh 1px white,
    57vw 22vh 2px white, 65vw 42vh 1px white, 73vw 28vh 2px white,
    81vw 48vh 1px white, 89vw 32vh 2px white, 97vw 45vh 1px white,
    3vw 68vh 2px white, 11vw 75vh 1px white, 19vw 82vh 2px white,
    27vw 88vh 1px white, 35vw 72vh 2px white, 43vw 85vh 1px white,
    51vw 92vh 2px white, 59vw 78vh 1px white;
  animation: twinkle 6s infinite linear reverse;
}


/* Contact our team */
.contact-section {
  padding: 1rem 1rem;
  background-color: #0f0f12;
  color: #fff;
}

.contact-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}


.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 900;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  margin-left: clamp(1rem, 5vw, 4.5rem);
}


.contact-container {
  display: flex;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;

}


.contact-form {
  flex: 0 1 65%;
  min-width: 0;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
}


.contact-info {
  flex: 0 1 30%;
  min-width: 250px;
}



.name-fields {
  display: flex;
  gap: 1rem;
}

.name-fields input {
  flex: 1;
}

.contact-form .single-field {
  margin-top: 1rem;
  font-family: var(--font-body);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #1b1b1f;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  width: 100%;
  padding: 0.75rem;
  background-color: #9d44ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #7a2de0;
}



.contact-info h3 {
  margin-bottom: 0.5rem;
  color: #9d44ff;
}

.contact-info a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .name-fields {
    flex-direction: column;
  }

  .contact-title {
    text-align: center;
    margin-left: 0;
  }
}


/* Media queries for button, title and stats section */

@media (max-width: 768px) {
  .title-of-section {
    font-size: 2rem;
    text-align: center;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding: 8px 14px;
    gap: 8px;
  }

  .btn-primary i {
    font-size: 1rem;
  }


}

@media (max-width: 576px) {
  .title-of-section {
    font-size: 1.6rem;
  }

  .btn-primary {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

}



@media (max-width: 768px) {
  .cta-button {
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
  }

}

@media (max-width: 576px) {
  /* CTA Button ancora più compatto */
  .cta-button {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

}