body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #ffffff; /* body bianco */
  color: #000000;
}

/* Header nero */
header {
  background-color: #000000;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
}

.header-left h1 {
  margin: 0;
  font-size: 1.8em;
}

.header-right {
  display: flex;
  gap: 20px; /* spazio tra i link */
}

.header-right a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s;
}

.header-right a:hover {
  color: rgb(20,85,255); /* Blue Energy al passaggio */
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay per il logo */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  padding: 15px; /* margine interno */
}

/* Logo in alto a sinistra */
.hero-logo {
  max-width: 200px;  /* regola la dimensione */
  height: auto;
  width: 30%;
  background: rgba(255,255,255,0.3); /* opzionale per leggibilità */
  padding: 5px;
  border-radius: 6px
}

.map iframe {
  width: 100%;
  max-width: 900px;   /* limite massimo */
  height: 400px;
  border: none;
  display: block;
  margin: 40px auto;  /* centrata con spazio sopra e sotto */
}


/* Sezione contatti moderna */
.contacts-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;              /* più spazio tra le colonne */
  padding: 80px 10%;      /* più respiro ai lati e sopra/sotto */
  background-color: #fdfdfd;
}

/* Colonna info */
.contact-info {
  flex: 1;
  max-width: 350px;
  line-height: 1.8;       /* testo più arioso */
}
.contact-info h2 {
  color: rgb(20,85,255);
  margin-bottom: 20px;
  font-size: 1.6em;
}
.contact-info p {
  margin: 12px 0;
  font-size: 1.1em;
}

/* Colonna form */
.contact-form {
  flex: 2;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.contact-form h2 {
  color: rgb(20,85,255);
  margin-bottom: 25px;
  font-size: 1.6em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin: 15px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
}
.contact-form button {
  background-color: rgb(20,85,255);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}
.contact-form button:hover {
  background-color: #000000;
}
.privacy-check{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}
.privacy-check input[type="checkbox"]{
    width: 18px;
    height: 18px;
}

/* Footer nero */
footer {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.banner {
  margin-top: 15px;
  padding: 15px;
  border-radius: 6px;
  font-weight: bold;
}

.banner.success {
  background-color: #d4edda;
  color: #155724;
}

.banner.error {
  background-color: #f8d7da;
  color: #721c24;
}

@media (max-width: 768px) {
  /* Header: stack verticale */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  .header-right {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  /* Contatti: colonne una sotto l'altra */
  .contacts-section {
    flex-direction: column;
    gap: 40px;
    padding: 40px 5%;
  }
  .contact-info, .contact-form {
    max-width: 100%;
  }

  /* Mappa più compatta */
  .map-container iframe {
    height: 250px;
  }

  /* Logo più piccolo */
  .hero-logo {
    max-width: 80px;
    top: 10px;
    left: 10px;
  }
}
/* Nascondi header su schermi piccoli */
@media (max-width: 768px) {
  header {
    display: none;
  }
}