/* ================= RESET E FONT ================= */
@import url('https://fonts.cdnfonts.com/css/nasalization');

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0b0f2f, #13183f, #0e1430);
  background-size: 300% 300%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.logo-container { display: flex; align-items: center; margin-right: 20px; }
.logo { height: 86px; }

.site-title {
    font-family: 'Nasalization Rg', sans-serif;
    font-size: 31px;
    font-weight: normal;
    color: #fff;
    margin-left: 15px;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ================= DROPDOWN ================= */
.dropdown { position: relative; }

.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 4px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0,0,0,0.8);
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-radius: 4px;
  z-index: 1001;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.dropdown.active .dropdown-content { max-height: 500px; opacity: 1; }
.dropdown-content a { color: #fff; padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: rgba(255,255,255,0.2); }

/* ================= HEADER GALLERY ================= */
.gallery-header {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}

.gallery-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.gallery-header p {
  font-size: 1.1rem;
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 2rem auto;
  max-width: 1200px;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-item {
  flex: 0 0 50%; /* 2 immagini per riga */
  padding: 10px;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  height: 350px; /* aumentata l’altezza per dare più impatto */
}



.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }


/* ================= FOOTER ================= */
.footer {
  background: #07091e;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-info {
  text-align: left;
  flex: 1;
  min-width: 0px;
}

.footer-info p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  white-space: nowrap;
}

img.footer-logo {
    width: 180px;
}

.footer-info span { display: inline-block; }
.footer-info i { margin-right: 10px; color: #f0c330; min-width: 0; text-align: center; }

.footer-logo-container {
    flex: 1;
    text-align: center;
    min-width: 0;
}
.footer-logo { max-width: 180px; }

.footer-social { flex: 1; text-align: right; min-width: 200px; }
.footer-social a {
  color: #fff;
  font-size: 22px;
  margin-left: 15px;
  transition: color 0.3s ease;
}
.footer-social a:hover { color: #f0c330; }

.footer-social.hidden.show {
    margin-right: 50px;
}

.footer-copy { margin-top: 20px; font-size: 14px; color: #aaa; }

.footer-phones p {
  display: flex;
  justify-content: center; /* centra orizzontalmente icona + numero */
  align-items: center;
  gap: 8px; /* spazio tra icona e numero */
}

.phone-number {
  font-weight: 500;
  text-align: center;
}

/* ================= MEDIA QUERIES PER MOBILE ================= */
@media (max-width: 768px) {
  /* Navbar */
    .navbar {
        padding: 6px;
    }

    .logo-container.hidden.show {
        width: 27%;
    }

.site-title {
        font-size: 18px;
        text-align: left;
        white-space: normal;
        margin-left: 0px;
    }

  .hamburger {
      display: flex;
      width: 20px;
      height: 16px;
  }
    .footer-social.hidden.show {
        margin-right: 19px;
        text-align: right;
    }

    .footer-social {
    text-align: center;      /* centra le icone */
  }

    .footer-social a {
        font-size: 18px;
        margin: 0 4px;
  }

  /* Opzionale: aggiustare leggermente il padding dei link nel dropdown */
  .dropdown-content a { padding: 10px 12px; }

    .footer-info {
        max-width: 64%;
    }

    .footer-logo-container {
        max-width: 50%;
    }

        img.footer-logo {
        width: 91px;
    }
    .footer-info p{
        font-size: 6px
    }

    .gallery-item {
    flex: 0 0 46%; /* 1 immagine grande */
  }
    .gallery-item img {
    height: 300px;
  }

  .gallery-item img {
    height: 190px;
  }
  }




/* ================= ANIMAZIONI SCROLL ================= */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ANIMAZIONI ================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes scrollPartners { from { transform: translateX(0); } to { transform: translateX(-50%); } }
