/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #000;
  line-height: 1.6;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}
nav .logo {
  color: #8B0000;
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: bold;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #8B0000;
}

/* CAROSELLO */
.carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}
.carousel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-text {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
}
.carousel-text h1 {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.carousel .cta {
  background-color: #8B0000;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.carousel .cta:hover {
  background-color: #a30000;
}

/* SEZIONE SERVIZI */
.servizi-preview {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}
.servizi-preview h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #8B0000;
  font-family: 'Orbitron', sans-serif;
}
.grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 15px;
}
.card h3 {
  color: #8B0000;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 10px;
}
.card p {
  font-size: 0.95rem;
  color: #333;
}

/* FOOTER */
footer {
  background: #3A3A3A;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}
footer .social {
  margin-top: 10px;
}
footer .social a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}
footer .social a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel-text h1 {
    font-size: 1.5rem;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  nav {
    flex-wrap: wrap;
  }
}
.swiper {
  width: 100%;
  height: 90vh;
  position: relative;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-text {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
}

.carousel-text h1 {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.carousel-text .cta {
  background-color: #8B0000;
  color: white;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.carousel-text .cta:hover {
  background-color: #a30000;
}


/* Fix per eliminare spazi vuoti residui */
.hero, .hero-content {
  display: none;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden;
}