@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@media (max-width: 375px) and (max-height: 812px) {
  header {
    height: 60vh;
    background-attachment: scroll;
  }
  .hero-content {
    padding: 0 1rem;
    max-width: 90%;
    margin: auto;
  }
  .hero-content h1 {
    font-size: 2.5rem; /* Riduci il font-size per schermi piccoli */
    word-wrap: break-word;
  }
  .hero-content h2 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
 }


.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item svg {
  margin-right: 5px;
}

#contact a:hover {
  opacity: 0.7;
}

.fd-c-map__regija path,
    .fd-c-map__regija circle {
        fill-opacity: 0.75;
    }
    .fd-c-map__regija:hover path,
    .fd-c-map__regija:hover circle {
        fill-opacity: 0.95;
    }
    .meteo-galleria {
        width: 100%;
        max-width: 800px;
        margin: 0 auto 2rem auto;
        position: relative;
        overflow: hidden;
        aspect-ratio: 1.176/1;
        display: block;
    }
    .meteo-galleria img {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        width: 100%;
        height: auto;
        z-index: 1;
        display: none;
    }
    .meteo-galleria img.active {
        opacity: 1;
        z-index: 2;
        position: relative;
        display: block;
    }

.fd-c-nav__link:hover {
  text-decoration: none;
  color: #0077cc; /* oppure un altro colore a tua scelta */
}


/* Footer */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 3rem 0;
  margin-top: 2rem;
}

footer p {
  white-space: nowrap;      /* Impedisce la rottura su pił righe */
  overflow: hidden;         /* Nasconde eventuale testo che sborda */
}

footer .social-links {
  margin-bottom: 0.5rem;
}

footer .social-links a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: opacity 0.3s ease;
}

footer .social-links a:hover {
  opacity: 0.7;
}

footer .social-links img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}


.where-contact-container .directions-section {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  margin-top: 14rem;
}

.directions-section .column.address {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.directions-section .title {
  font-weight: bold;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.directions-section .address {
  margin-bottom: 1rem;
}

.btn-get-direction {
  margin-top: 1rem;
}

.form-control__button {
  display: inline-block;
  background-color: #1a73e8;
  color: white;
  padding: 1.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.form-control__button:hover {
  background-color: #0d5bbd;
}

/* Mappa responsive */
.map-container iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

/* Stile orizzontale per HR */
.hr {
  border-bottom: 2px solid black;
  position: relative;
  text-align: center;
}

/* Link specifico per l'icona */
.nav-links a[href="#where"] {
  display: inline-block;
  line-height: 0;
}

.pin.css-wtd7b8 {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Testo su sfondo scuro */
.text-bg-dark {
  background-color: black;
  color: white;
  padding: 0.1em;
}
  
/* Media query per dispositivi mobili */
@media (max-width: 768px) {
  .where-contact-container {
    flex-direction: column;
  }
  
  .where-contact-container .section.where,
  .where-contact-container .directions-section {
    flex: 1 1 100%;
  }
  
  .directions-section {
    margin-top: 0;
  }
}