/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 20% 20%, #12001f 0%, #000 100%);
  font-family: "Orbitron", sans-serif;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* === HEADER === */
/* === HEADER === */
.header {
  position: relative;
  width: 100%;
  aspect-ratio: 820 / 312; /* mantiene il rapporto della cover Facebook */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #0a0010;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
  z-index: 2;
}

.header-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mostra l'immagine intera senza tagliarla */
  object-position: center center;
  filter: brightness(0.9) contrast(1.1);
  animation: floatHeader 15s ease-in-out infinite alternate;
}

/* Effetto leggero di fluttuazione */
@keyframes floatHeader {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.02) translateY(-3px);
  }
}

.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.2);
  animation: zoomHeader 20s ease-in-out infinite alternate;
}

/* === MAIN === */
.main {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 25px;
  padding: 50px 8%;
  position: relative;
  z-index: 2;
}

.card {
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  animation: floatCard 8s ease-in-out infinite;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(161, 0, 255, 0.4);
}

.card h2 {
  font-size: 1.3rem;
  background: linear-gradient(90deg, #00e5ff, #a100ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
  color: #bfbfbf;
  line-height: 1.5;
}

.card a {
  color: #00e5ff;
  text-decoration: none;
  transition: 0.3s ease;
}

.card a:hover {
  color: #a100ff;
  text-shadow: 0 0 8px #a100ff;
}

/* CTA centrale */
.cta {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  border-radius: 25px;
  border: 1px solid #00e5ff;
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.4s ease;
  font-size: 0.9rem;
}

.cta:hover {
  background: linear-gradient(90deg, #00e5ff, #a100ff);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* Logo cliente / NextCore */
.client-logo,
.nextcore-logo {
  width: 140px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.5));
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 20, 0.8);
  position: relative;
  z-index: 2;
}

.footer p {
  color: #a8a8a8;
  margin-bottom: 15px;
}

.socials img {
  width: 25px;
  margin: 0 10px;

  transition: 0.3s ease;
}

.socials img:hover {
  transform: scale(1.1);
}

/* === SFONDO FUTURISTICO === */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 229, 255, 0.1) 0%,
    rgba(161, 0, 255, 0.08) 100%
  );
  z-index: 0;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  border-radius: 50%;
  animation: blink 4s infinite ease-in-out;
}

.glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 80%,
    rgba(161, 0, 255, 0.15),
    transparent 70%
  );
  mix-blend-mode: screen;
  z-index: 1;
  animation: pulse 6s infinite ease-in-out;
}

/* === ANIMAZIONI === */
@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes zoomHeader {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .main {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  .card {
    margin-bottom: 20px;
  }
}
