/* ================= 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; }

.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 / HAMBURGER ================= */
.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); }

/* ================= STILE PER I PDF (Tabella) ================= */
.pdf-table-container {
  margin: 120px auto 80px;
  max-width: 1200px;
  width: 90%;
  overflow-x: auto;
}

table.pdf-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    -webkit-text-stroke: thin;
}

table.pdf-table th, table.pdf-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

table.pdf-table th {
  background: rgba(0,0,0,0.5);
  color: #f0c330;
  font-size: 18px;
}

table.pdf-table tr:hover {
  background: rgba(255,255,255,0.08);
}

.pdf-frame {
  width: 300px;
  height: 200px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  background-color: #0b0f2f;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ================= 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;
}

/* ================= ANIMAZIONI ================= */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= KEYFRAMES ================= */
@keyframes gradientBG { 
  0% { background-position: 0% 50%; } 
  50% { background-position: 100% 50%; } 
  100% { background-position: 0% 50%; } 
}

/* 📱 Responsive aggiuntivo Documenti */
/* ================= 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
    }

  .pdf-frame { width: 200px; height: 150px; }

  table.pdf-table th, table.pdf-table td {
    padding: 10px;
    font-size: 14px;
  }

  .pdf-frame { width: 100%; max-width: 200px; height: auto; }
  .btn { padding: 6px 12px; font-size: 14px; }
  

}
