/* ================= 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); }

/* ================= HERO SLIDER ================= */

section.hero.hidden.show {
    max-height: 582px;
}

.hero { position: relative; height: 90vh; overflow: hidden; }
.slider { height: 100%; }

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  opacity: 0;
}

.slide.active { opacity: 1; }

.slide::after {
  content: '';
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background-color: rgba(0,0,0,0.4);
}

.slide-text {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: #fff;
  z-index: 1;
}

.slide-text h2 { font-size: 50px; margin-bottom: 15px; }
.slide-text p { font-size: 16px; margin-bottom: 25px; }

.btn {
  background-color: #0b0f2f;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

/* Slider nav & dots */
.slider-nav span { font-size: 50px; color: #fff; cursor: pointer; padding: 0 20px; text-shadow: 0 0 8px rgba(0,0,0,0.5); }
.slider-dots span { width: 12px; height: 12px; background-color: rgba(255,255,255,0.5); border-radius: 50%; display: block; cursor: pointer; transition: 0.3s; opacity: 0.5; }
.slider-dots span.active { background-color: #fff; opacity: 1; transform: scale(1.2); }

/* ================= SEZIONI GENERALI ================= */
.section {
    padding: 80px 35px;
    background-color: rgba(11, 15, 47, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    margin-top: -5px;
}

.section:nth-child(even) { background-color: rgba(19,24,63,0.95); }
.section-title { font-size: 36px; margin-bottom: 73px; }

.container { max-width: 1200px; margin: 0 auto; }

/* ================= CARDS ================= */
.cards { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }

.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px 20px;
    flex: 1 1 250px;
    min-width: 321px;
    max-width: 300px;
    transition: transform 0.4s, background-color 0.4s, box-shadow 0.4s;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.card img {
  width: 100%;
  height: 134px;
  object-fit: scale-down;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover img { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }

.card h3 { margin-top: 10px; font-size: 20px; }
.card p { font-size: 14px; line-height: 1.4; color: #ddd; }
.card i { color: #e6b800; margin-bottom: 15px; }


/* ================= WEATHER ================= */
iframe#weatherwidget-io-0 {
    max-height: 119px;
}
.weather-section {
  background: rgba(11,15,47,0.95);
  padding: 60px 20px;
  text-align: center;
}

.weather-widget-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.weatherwidget-io {
    width: 998px !important;
    height: 106px !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    font-family: 'Arial', sans-serif !important;
    color: #fff !important;
    background: rgba(11, 15, 47, 0.6) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weatherwidget-io:hover { transform: translateY(-5px); }

.weatherwidget-io a { color: #fff !important; text-decoration: none !important; }

/* ================= PARTNERS ================= */
.partners-section {
  text-align: center;
  padding: 50px 20px;
  background: rgba(11,15,47,0.95);
}

.partners-section .section-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 61px;
}

.partners-slider { overflow: hidden; position: relative; width: 100%; }

.partners-track {
  display: flex;
  width: 200%;
  animation: scrollPartners 25s linear infinite;
}

.partner { flex: 0 0 auto; padding: 10px 30px; }

.partner img {
  max-height: 80px;
  width: auto;
  filter: brightness(0) invert(-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner img:hover { transform: scale(1.1); }



/* ================= 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; }

  
  /* Hero slider */
  .section{
    padding: 14px 0px;
  }

  section.hero.hidden.show {
    max-height: 333px;
  }

  .slide.hidden.show {
        max-height: 330px;
    }

  .slide-text { bottom: 20px; left: 20px; max-width: 90%; }
  .slide-text h2 { font-size: 28px; }
  .slide-text p { font-size: 14px; }
  .btn { padding: 8px 16px; font-size: 14px; }

  /* Cards section */
  .cards { flex-direction: column; align-items: center; gap: 15px; }
  .card { max-width: 54%; }

  /* Weather widget */
  .weatherwidget-io {

       max-width: 361px !important;
    }

  /* Partners slider */
  .partners-track { flex-wrap: nowrap; overflow-x: auto; }
  .partner { flex: 0 0 auto; padding: 10px; }

      .footer-info {
        max-width: 64%;
    }

    .footer-logo-container {
        max-width: 50%;
    }

        img.footer-logo {
        width: 91px;
    }
    .footer-info p{
        font-size: 6px
    }
}



/* ================= 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%); } }
