* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  background: linear-gradient(90deg, #8b0000, #b30000);
  padding: 10px 30px;
}

.logo-area {
  background: white;
  padding: 10px 20px 10px 50px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-area img {
  height: 230px;
  width: auto;
  transform: scale(1.25);
}

/* MENU */
.nav-container {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.nav-links a:hover {
  color: #ffd6d6;
}

/* HERO */
.hero {
  height: 400px;
  background:
  linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
  url("https://images.unsplash.com/photo-1503387762-592deb58ef4e");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  color: white;
  padding: 40px;
  width: 100%;
}

.hero-overlay h1 {
  font-size: 52px;
}

/* SECTION */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section h2 {
  color: #8b0000;
  font-size: 38px;
  margin-bottom: 40px;
}

/* ABOUT */
.about-section {
  background: white;
  padding: 80px 40px;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #8b0000;
  font-size: 38px;
  margin-bottom: 25px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
}

/* SERVIZI */
.services-section {
  padding: 100px 20px;
  background: linear-gradient(to bottom, #fafafa, #f2f2f2);
}

.services-title {
  text-align: center;
  margin-bottom: 60px;
}

.services-title h2 {
  color: #8b0000;
  font-size: 48px;
  letter-spacing: 1px;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  background: white;
  width: 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.10);
  transition: 0.3s;
}

.service-card:hover {
transform: translateY(-12px) scale(1.02);
 box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-top {
  height: 14px;
  background: linear-gradient(90deg, #8b0000, #d10000);
}

.service-card h3 {
  color: #8b0000;
  padding: 25px 25px 10px;
  font-size: 24px;
  text-align: center;
}

.service-card p {
  padding: 0 25px 35px;
  line-height: 1.7;
  text-align: center;
}

.service-card {
  position: relative;
  overflow: hidden;
}

/* fascia laterale rossa */
.service-side {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, #8b0000, #d10000);
}

/* per evitare che il testo tocchi la barra */
.service-card h3,
.service-card p {
  padding-left: 35px;
}

/* SLIDER LAVORI */
.slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.slider-img {
  width: 80%;
  max-width: 900px;
  height: 420px;
  object-fit: cover;
  border-radius: 15px;
}

.arrow {
  background: #8b0000;
  color: white;
  border: none;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

/* VIDEO */
.video-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.video-box {
  width: 520px;
  background: white;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-box video {
  width: 100%;
  border-radius: 15px;
}

/* GALLERIA A PAGINE */
.gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 80%;
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
}

#close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* CONTATTI */
.contact-section {
  background: linear-gradient(135deg, #8b0000, #b30000);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-box {
  background: white;
  color: #333;
  width: 280px;
  padding: 30px;
  border-radius: 15px;
}

/* FOOTER */
footer {
  background: #5a0000;
  color: white;
  text-align: center;
  padding: 20px;
}

/* MOBILE */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .about-container {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .slider-img {
    width: 100%;
    height: 250px;
  }

  .video-box {
    width: 100%;
  }

  .hero-overlay h1 {
    font-size: 32px;
  }

  /* AGGIUNGI SOLO QUESTA */
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-section {
  padding: 90px 20px;
  text-align: center;
  background: #f8f8f8;
}

.why-section h2 {
  color: #8b0000;
  font-size: 42px;
  margin-bottom: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.why-grid div {
  background: white;
  padding: 18px 20px;
  border-radius: 10px;
  border-left: 4px solid #8b0000;
  font-size: 16px;
  text-align: left;
  color: #333;
}