/* Reset di base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: 'Inter', sans-serif;
  background-color: #0e0e16;
  color: #e6e6e6;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(25, 18, 56, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 90, 240, 0.4);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-img {
  height: 50px;
  width: 50px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(127,90,240,0.6);
  transition: transform .3s ease;
}
.logo-img:hover {
  transform: scale(1.08);
}

/* Navbar Desktop */
nav {
  display: flex;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  opacity: 0.9;
}
nav ul li a:hover,
nav ul li a.active {
  color: #7f5af0;
  opacity: 1;
}

/* Pulsante Menu Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* Effetto X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Menu Mobile */
nav.mobile {
  position: fixed;
  top: 0;
  right: -260px;
  width: 250px;
  height: 100%;
  background: rgba(15, 15, 28, 0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 5rem 1.5rem;
  gap: 2rem;
  transition: right 0.35s ease;
  z-index: 2500;
  display: flex;
}
nav.mobile.open {
  right: 0;
}
nav.mobile ul {
  flex-direction: column;
  gap: 1.5rem;
}
nav.mobile ul li a {
  font-size: 1.2rem;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 2rem;
  background: linear-gradient(145deg, #181826, #0e0e16);
}
.hero-content {
  flex: 1;
  min-width: 280px;
  padding-right: 1rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg,#7f5af0,#b490ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
}
.hero-image img {
  max-width: 480px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(127,90,240,0.4);
  animation: floating 4s ease-in-out infinite;
}
@keyframes floating {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Pulsanti */
.buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn.primary {
  background: #7f5af0;
  color: #fff;
}
.btn.primary:hover {
  background: #9570ff;
}
.btn.secondary {
  background: transparent;
  border: 2px solid #7f5af0;
  color: #7f5af0;
}
.btn.secondary:hover {
  background: #7f5af0;
  color: #fff;
}

/* Features */
.features {
  padding: 5rem 2rem;
  text-align: center;
}
.features h2 {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg,#7f5af0,#b490ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.feature-item {
  background: #151521;
  border: 1px solid rgba(127,90,240,0.25);
  padding: 2rem;
  border-radius: 12px;
  max-width: 280px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(127,90,240,0.3);
}
.feature-item h3 {
  margin-bottom: 1rem;
  color: #b490ff;
}

/* Footer */
footer {
  background-color: #0d0d15;
  border-top: 1px solid rgba(127, 90, 240, 0.3);
  text-align: center;
  padding: 1.5rem 2rem;
}
footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}
footer .footer-links {
  margin-top: 0.5rem;
}
footer .footer-links a {
  color: #b490ff;
  text-decoration: none;
  margin: 0 0.4rem;
}
footer .footer-links a:hover {
  text-decoration: underline;
}

/* Testimonianze */
.testimonials {
  padding: 5rem 2rem;
  text-align: center;
}
.testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg,#7f5af0,#b490ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.testimonial-item {
  background: #151521;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 280px;
  box-shadow: 0 0 15px rgba(127,90,240,0.2);
}
.testimonial-item p {
  margin-bottom: 1rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 850px) {
  nav ul {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    position: fixed;
    right: -260px;
    top: 0;
    width: 250px;
    height: 100%;
    background: rgba(15,15,28,0.98);
    flex-direction: column;
    padding: 5rem 1.5rem;
    gap: 2rem;
    transition: right 0.35s ease;
    z-index: 2500;
  }
  nav.open {
    right: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    display: flex;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-content {
    padding-right: 0;
  }
  .feature-list {
    flex-direction: column;
  }
  .testimonial-list {
    flex-direction: column;
  }
}
