 body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background-color: #000;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5em;
  background-color: #800000;
}

.logo-container img {
  width: 125px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #800000;
  padding: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.motto {
  font-size: 1.5em;
  font-style: italic;
}

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

nav a {
  color: #fff;
  text-decoration: none;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  width: 200%;
  height: 100%;
  animation: scroll 16s linear infinite;
}

.carousel img {
  width: 200px;
  height: 300px;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#about,
#services,
#contact {
  padding: 2em;
  background-color: #800000;
  margin: 1em 0;
}

#services {
  padding: 2em;
  background-color: #800000;
}
.services_data {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.section-title-services {
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 1em;
}

#services .service {
  margin: 3px 5px;

  width: 400px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

#services .service img {
  width: 100%;
  height: 55vh;
}

#services .services_data .service {
  padding: 1em;
  color: #fff;
}

#services .services_data .service h3 {
  font-size: 1.5em;
  padding: 2px 4px;
  margin-left: 5px;
}

#services .services_data .service p {
  margin: 0.5em 0 0;
  padding: 2px 4px;
}

#contact {
  padding: 2em;
  background-color: #800000;
  color: #fff;
  text-align: center;
}

#contact h2 {
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  font-size: 1.2em;
}

.contact-info p {
  margin: 0.5em 0;
}

.contact-form {
  width: 90%;
  background-color: #000;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
}

.contact-form button {
  width: 95%;
  padding: 0.8em;
  background-color: #800000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #600000; /* Colore di sfondo del pulsante al passaggio del mouse */
}

footer {
  background-color: #800000;
  text-align: center;
  padding: 1em 0;
}

.social-media a {
  margin: 0 1em;
  color: #fff;
  text-decoration: none;
  font-size: 1.5em;
}

#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 1em;
}

@media (max-width: 1024px) {
  .service {
    width: 45%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .carousel-container {
    height: 200px;
  }

  .carousel img {
    height: 200px;
  }

  .map {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .service {
    width: 100%;
  }

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

  .map {
    height: 300px;
  }

  .carousel-container {
    height: 150px;
  }

  .carousel img {
    height: 150px;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 120px;
  }

  .carousel img {
    height: 120px;
  }

  .map {
    height: 200px;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  .motto {
    font-size: 1em;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  #about,
  #services,
  #contact {
    padding: 1em;
  }
}

.hamburger-menu {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: #fff;
  position: absolute;
  top: 1.2em;
  right: 1.2em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  padding: 0;
  margin: 0;
}

nav.main-nav {
  display: flex;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
  #services .service img {
    width: 100%;
    height: 40vh;
  }

  nav.main-nav ul {
    z-index: 999;
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: rgba(0, 0, 0, 1);
    width: 50%;
    top: 5rem;
    right: -100%;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
  }

  nav.main-nav ul.active {
    display: inline-block;
    right: 2px;
  }

  nav.main-nav ul li {
    padding: 1em 0;
    border-bottom: 1px solid #fff;
  }
}

@media (max-width: 480px) {
  .hamburger-menu {
    font-size: 1.8em;
  }

  .motto {
    font-size: 1em;
  }
}

#dove-trovarci {
  padding: 2em;
  background-color: #800000;
  text-align: center;
  color: #fff;
}

#dove-trovarci h2 {
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.map iframe {
  width: 100%;
  height: 450px;
  border: none;
}

#gallery {
  padding: 2em;
  background-color: #800000;
  text-align: center;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  margin-bottom: 1em;
}

.gallery-grid img {
  width: 200px;
  object-fit: cover;
  border-radius: 8px;
}
