/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0b0b0d;
  color: #ffffff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* Scrollbar Neon */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0b0d; }
::-webkit-scrollbar-thumb { background: #3dff6b; border-radius: 10px; }

/* ===== ANIMAZIONI DI ENTRATA ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text, .card {
  opacity: 0; 
  animation: fadeInUp 0.8s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* ===== HEADER E LOGO DINAMICO ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(11, 11, 13, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.logo img {
  width: 85px; /* LOGO GIGANTE */
  height: 85px;
  border-radius: 50%;
  border: 2px solid #3dff6b;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-name {
  color: #3dff6b;
  font-weight: 900;
  font-size: 24px;
  opacity: 0; /* NASCOSTO DI BASE */
  transform: translateX(-30px);
  transition: all 0.4s ease;
  text-shadow: 0 0 10px rgba(61, 255, 107, 0.5);
}

.logo:hover .logo-name {
  opacity: 1;
  transform: translateX(0);
}

.logo:hover img {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 30px #3dff6b;
}

/* FRASE CENTRALE TECH */
.header-phrase {
  flex-grow: 1;
  text-align: center;
}

.cyber-phrase {
  color: #9aa0a6;
  font-size: 13px;
  letter-spacing: 5px;
  padding: 10px 25px;
  border: 1px solid rgba(61, 255, 107, 0.2);
  border-radius: 50px;
  transition: 0.3s;
  background: rgba(61, 255, 107, 0.02);
}

.cyber-phrase:hover {
  color: #3dff6b;
  border-color: #3dff6b;
  box-shadow: 0 0 15px rgba(61, 255, 107, 0.2);
  cursor: crosshair;
}

/* ===== HERO E SCRITTA NEON ===== */
.hero {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
  z-index: -1;
}

.hero-text h1 {
  font-size: 55px;
  margin-bottom: 10px;
}

/* EFFETTO VERDE NEON TITOLO */
.neon-text {
  color: #3dff6b;
  text-shadow: 0 0 10px #3dff6b, 0 0 30px rgba(61, 255, 107, 0.6);
  font-weight: 800;
}

.hero-sub {
  color: #9aa0a6;
  margin-bottom: 30px;
  font-size: 18px;
}

.divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, #3dff6b, transparent);
  box-shadow: 0 0 20px #3dff6b;
}

/* ===== GRIGLIA CARD E EFFETTO SOLLEVAMENTO ===== */
.services {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 35px;
  letter-spacing: 2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonne su PC */
  gap: 30px;
}

.card {
  background: #141418;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* EFFETTO ALZAMENTO RICHIESTO */
.card:hover {
  transform: translateY(-15px); /* SI ALZA DI 15PX */
  border-color: #3dff6b;
  box-shadow: 0 20px 40px rgba(61, 255, 107, 0.15), 0 10px 15px rgba(0,0,0,0.5);
  cursor: pointer;
}

.card img {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  margin-bottom: 20px;
  object-fit: cover;
  border: 1px solid rgba(61, 255, 107, 0.2);
}

.card h3 { margin-bottom: 15px; font-size: 22px; }
.card p { color: #9aa0a6; font-size: 15px; line-height: 1.5; margin-bottom: 25px; flex-grow: 1; }

/* ===== BOTTONI ===== */
.btn {
  background: #3dff6b;
  color: #000;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  border: none;
}

.btn.outline {
  background: transparent;
  border: 1px solid #3dff6b;
  color: #3dff6b;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(61, 255, 107, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .topbar { padding: 15px 20px; }
  .header-phrase { display: none; } /* Nasconde frase su mobile per spazio */
  .logo img { width: 65px; height: 65px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .hero-text h1 { font-size: 32px; }
}