/* Resetta gli stili predefiniti del browser */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Stili generali */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background-color: #333;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f0db4f;
}

/* Hero Section */
#hero {
  background-color: #e9ecef;
  padding: 50px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  flex: 1;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.hero-image {
  flex: 1;
  padding: 20px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #2980b9;
}

/* Servizi Section */
#servizi {
  padding: 50px 0;
  text-align: center;
}

#servizi h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.servizi-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.servizio {
  width: 250px;
  padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.servizio img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.servizio h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.servizio p {
  font-size: 1em;
}

/* Chi Siamo Section */
#chi-siamo {
  padding: 50px 0;
  background-color: #e9ecef;
}

#chi-siamo h2 {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
}

.chi-siamo-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.chi-siamo-content img {
  width: 300px;
  height: auto;
  margin-right: 30px;
  border-radius: 5px;
}

.chi-siamo-content p {
  font-size: 1.1em;
  text-align: justify;
}

/* Contatti Section */
#contatti {
  padding: 50px 0;
  text-align: center;
}

#contatti h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.contatti-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.contatti-info {
  flex: 1;
  text-align: left;
}

.contatti-info p {
  font-size: 1.1em;
  margin-bottom: 10px;
}

#contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#contact-form label {
  font-size: 1.1em;
  margin-bottom: 5px;
  text-align: left;
}

#contact-form input,
#contact-form textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

#contact-form textarea {
  resize: vertical;
}

#contact-form button {
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form button:hover {
  background-color: #2980b9;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    padding: 10px;
  }

  .hero-content h1 {
    font-size: 2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .hero-image {
    display: none; /* Nascondi l'immagine su schermi piccoli */
  }

  .servizi-container {
    flex-direction: column;
    align-items: center;
  }

  .servizio {
    width: 80%;
  }

  .chi-siamo-content {
    flex-direction: column;
    text-align: center;
  }

  .chi-siamo-content img {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .contatti-container {
    flex-direction: column;
  }

  .contatti-info {
    text-align: center;
    margin-bottom: 20px;
  }
}