/* ==========================================
   SITE HEADER & NAVIGATION (Light Glassmorphism)
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(240, 253, 244, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass, rgba(16, 185, 129, 0.2));
  box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menu Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-menu a {
  position: relative;
  color: var(--text-muted, #4a6b5d);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.nav-menu a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover {
  color: #061a12;
}

.nav-menu a:not(.btn-nav):hover::after {
  width: 100%;
}

/* Call to Action Button in Navigation */
.btn-nav {
  padding: 0.6rem 1.35rem !important;
  background: rgba(5, 150, 105, 0.08) !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
  border-radius: 10px;
  color: var(--accent-color, #059669) !important;
  font-weight: 700 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-nav:hover {
  background: rgba(5, 150, 105, 0.18) !important;
  border-color: rgba(5, 150, 105, 0.5) !important;
  color: #059669 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2), inset 0 1px 0 #ffffff;
}

/* Hamburger Icon (Mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main, #061a12);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESPONSIVE / MOBILE MENU (Enhanced UI)
   ========================================== */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Menu Mobile Fullscreen con Light Glassmorphism Avanzato */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(240, 253, 244, 0.98);
    backdrop-filter: blur(40px) saturate(220%);
    -webkit-backdrop-filter: blur(40px) saturate(220%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    box-shadow: -20px 0 50px rgba(5, 150, 105, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  /* Stile link interni al menu mobile con animazione fluida a cascata */
  .nav-menu a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main, #061a12);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  }

  .nav-menu a:hover {
    color: var(--accent-color, #059669);
  }

  /* Quando attivo, i link appaiono con eleganza */
  .nav-menu.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Ritardo a cascata (Staggered Animation) per le voci */
  .nav-menu.active a:nth-child(1) { transition-delay: 0.12s; }
  .nav-menu.active a:nth-child(2) { transition-delay: 0.18s; }
  .nav-menu.active a:nth-child(3) { transition-delay: 0.24s; }
  .nav-menu.active a:nth-child(4) { transition-delay: 0.3s; }

  /* Pulsante Unisciti a Noi nel mobile (Glassmorphism rinforzato) */
  .nav-menu .btn-nav {
    padding: 0.85rem 2.2rem !important;
    font-size: 1.15rem !important;
    border-radius: 14px !important;
    background: rgba(5, 150, 105, 0.12) !important;
    border: 1px solid rgba(5, 150, 105, 0.3) !important;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15) !important;
  }

  /* Animazione pulita dell'hamburger in X */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-color, #059669);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-color, #059669);
  }
}










/* ==========================================
   SITE FOOTER (Light Glassmorphism)
   ========================================== */

.site-footer {
  position: relative;
  background: rgba(226, 252, 232, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass, rgba(16, 185, 129, 0.2));
  box-shadow: 0 -10px 30px -10px rgba(5, 150, 105, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  padding: 4rem 2rem 3rem;
  margin-top: auto;
  overflow: hidden;
}

/* Bagliore di sfondo soffuso chiaro nel footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--text-main, #061a12);
  letter-spacing: -0.04em;
}

.footer-brand span {
  color: var(--accent-color, #059669);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.footer-brand p {
  color: var(--text-muted, #4a6b5d);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.6;
}

.footer-info {
  border-top: 1px solid rgba(16, 185, 129, 0.12);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 600px;
}

.footer-info p {
  color: var(--text-muted, #4a6b5d);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Stile per l'immagine del Logo CDN */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 100px; /* Regola l'altezza in base al tuo logo */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 8px rgba(5, 150, 105, 0.2));
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Leggermente più spaziosa per accogliere il logo grande */
  background: rgba(240, 253, 244, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass, rgba(16, 185, 129, 0.2));
  box-shadow: 0 4px 20px -5px rgba(5, 150, 105, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  height: 100%;
  padding: 0 0;
}

/* Logo ingrandito e ben visibile */
.logo-img {
  height: 100%;
  max-height: 100px; /* <-- Portato a 62px per renderlo grande */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(5, 150, 105, 0.2));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

/* ==========================================
   FOOTER LOGO & STYLING AGGIUNTIVO
   ========================================== */

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 100px; /* Dimensione ideale e bilanciata per il footer */
  width: auto;
  margin-top: -0.5rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(5, 150, 105, 0.15));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo-link:hover .footer-logo-img {
  transform: scale(1.04);
}