/* ============= STILE BASE ============= */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ============= HEADER ============= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.0);
  transition: all 0.4s ease;
  z-index: 1000;
  box-sizing: border-box;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
}

.menu { display: flex; gap: 20px; }

.menu a { color: #000; font-weight: 600; transition: 0.3s; }

.menu a:hover { color: #555; }

.logo {
  height: 90px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.whatsapp-btn:hover { background: #1ebe57; }

/* ============= HERO ============= */
.hero {
  background: url('images/primagrafica.png') center/cover no-repeat;
  height: 100vh;
  min-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 100px;
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.hero-content {
  position: relative;
  color: #000;
  max-width: 90%;
  z-index: 2;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; }
.hero-content p { font-size: 1.3rem; margin-bottom: 25px; }
.hero-btn { background: #ff6600; color: white; padding: 14px 32px; border-radius: 6px; font-weight: 600; transition: 0.3s; }
.hero-btn:hover { background: #ffa500; }

/* ============= SEZIONE SERVIZI ============= */
.services-section {
  position: relative;
  padding: 100px 20px 80px 20px;
  background: url('images/secondografica.png') center/cover no-repeat;
  text-align: center;
  z-index: 1;
}

.services-section::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 100%; height: 20px;
  background: white;
  z-index: -1;
}

.services-scritta { display: block; margin: 0 auto 50px auto; max-width: 700px; width: 90%; }

.services { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.service-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 5px 10px rgba(255, 238, 0, 0.7);
  transition: 0.3s;
}

.service-card:hover { transform: translateY(-5px); }
.service-card img { width: 120px; margin-bottom: 15px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* ============= CHI SIAMO ============= */
.about-section { padding: 80px 20px; text-align: center; background: #f8f8f8; }

/* ============= CONTATTI ============= */
.contact-section { padding: 80px 20px; text-align: center; }

.contact-btn { background: #25D366; color: white; padding: 12px 24px; border-radius: 6px; font-weight: bold; display: inline-block; margin-top: 10px; transition: 0.3s; }
.contact-btn:hover { background: #1ebe57; }

/* ============= FOOTER ============= */
footer { background: #ffe600; color: #000; text-align: center; padding: 20px; font-size: 0.9rem; }

/* ============= RESPONSIVE (MOBILE) ============= */
@media (max-width: 768px) {
  header { padding: 10px 15px; }
  .container-header { flex-direction: column; }
  .menu { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .logo { position: static; transform: none; height: 70px; margin: 10px 0; }
  .whatsapp-btn { margin-top: 10px; }

  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: 140px;
    background-image: url('images/primagrafica-mobile.png');
    background-size: cover;
    background-position: center;
  }

  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }

  .services-section { padding: 60px 10px; background-position: center; }
  .services { flex-direction: column; align-items: center; }
  .service-card { width: 90%; margin-bottom: 25px; }
  .service-card img { width: 100px; }

  .about-section p, .contact-section p { font-size: 0.95rem; }
  footer { font-size: 0.8rem; }
}
