/* ========== FOOTER BASE ========== */
.site-footer {
    background-color: #1a252f;
    color: #fff;
    padding: 30px 20px 20px;
    font-size: 0.9rem;
  }
  
  .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: 80px;
  }
  
  /* ========== COLONNE ========== */
  .footer-col {
    flex: 1;
    padding: 0 25px;
  }
  
  .footer-col h4 {
    font-size: 1rem;
    color: #f9b233;
    margin-bottom: 10px;
  }
  
  .footer-col p,
  .footer-col li,
  .footer-col a {
    color: #ddd;
    line-height: 1.5;
    font-size: 0.88rem;
    text-decoration: none;
  }
  
  .footer-col a:hover {
    color: #f9b233;
    text-decoration: underline;
  }
  
  /* ========== MAPPA DEL SITO E LINK LEGALI ========== */
  .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-col ul li {
    margin-bottom: 6px;
  }
  
  /* ========== NEWSLETTER BOX ========== */
  .newsletter-box {
    flex: 0.7;
    background-color: #2c3e50;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: left;
    font-size: 0.8rem;
    max-width: 360px;
  }
  
  .newsletter-box h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #f9b233;
  }
  
  .newsletter-box p {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 10px;
  }
  
  .newsletter-box input[type="email"],
  .newsletter-box input[type="text"],
  .newsletter-box input[type="tel"] {
    width: 100%;
    padding: 6px;
    margin-bottom: 6px;
    border-radius: 5px;
    border: none;
    font-size: 0.85rem;
    box-sizing: border-box;
  }
  
  .mc-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    color: #bbb;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  
  .mc-button input[type="submit"] {
    background-color: #f9b233;
    color: #1a252f;
    font-weight: bold;
    padding: 7px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-size: 0.85rem;
  }
  
  .mc-button input[type="submit"]:hover {
    background-color: #e0a120;
  }
  
  /* ========== SOCIAL ICONS ========== */
  .social-icons {
    display: flex;
    gap: 12px;
    margin: 12px 0;
  }
  
  .social-icons a {
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #f9b233;
  }
  
  /* ========== COPYRIGHT ========== */
  .footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: #aaa;
  }
  
  /* ========== RESPONSIVE ========== */
  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      align-items: center;
      padding: 0 20px;
      gap: 40px;
    }
  
    .footer-col {
      padding: 0;
      width: 100%;
      max-width: 500px;
      text-align: center;
    }
  
    .footer-col h4 {
      text-align: center;
    }
  
    .newsletter-box {
      width: 100%;
      max-width: 500px;
      padding: 25px 20px; /* <- aggiunto padding orizzontale */
      box-sizing: border-box;
      margin: 0 auto; /* assicura il centramento */
      text-align: center;
    }
  
    .newsletter-box input[type="email"],
    .newsletter-box input[type="text"],
    .newsletter-box input[type="tel"] {
      width: 100%;
      box-sizing: border-box;
    }
  
    .mc-agree {
      font-size: 0.8rem;
      margin-top: 10px;
      justify-content: flex-start;
      line-height: 1.5;
      margin-bottom: 12px;
    }
  
    .mc-button input[type="submit"] {
      width: 100%;
      box-sizing: border-box;
    }
  
    .social-icons {
      justify-content: center;
      margin-top: 10px;
    }
  
    .footer-bottom {
      text-align: center;
      margin-top: 30px;
      padding: 0 10px;
    }
  }

/* ========== PULSANTE WHATSAPP FISSO ========== */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 9997;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

.whatsapp-fixed i {
  line-height: 1;
}

.whatsapp-fixed:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

/* ========== PULSANTE "TORNA SU" ========== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #1a252f;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 9997;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
  background-color: #f9b233;
  color: #1a252f;
  transform: scale(1.1);
}


/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a252f;
  color: #fff;
  padding: 16px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9997;
  font-size: 0.9rem;
  font-family: 'Inter', 'Open Sans', sans-serif;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-banner button {
  background-color: #f9b233;
  color: #1a252f;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #e0a120;
}

.no-linkify {
  pointer-events: none;
  user-select: text;
  -webkit-touch-callout: none;
}

/* ========== newsletter in footer ACCESSIBILITÀ: TESTO SOLO PER SCREEN READER ========== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Loghi accreditamenti (colonna) === */
.footer-logos-vertical{
  margin-top: 14px;
  display: flex;
  flex-direction: column;      
  gap: 12px;
  align-items: flex-start;     /* desktop: allineati a sinistra */
  --footer-box-w: 110px;       
}

.footer-logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  width: var(--footer-box-w);
  text-align: center;
}

.footer-logo img{
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-logo.miur span{
  margin-top: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

/* Mobile: centrati e leggermente più piccoli */
@media (max-width: 600px){
  .footer-logos-vertical{ 
    align-items: center;       /* 👈 centrati in colonna */
    --footer-box-w: 90px;      /* un po’ più piccoli */
  }
  .footer-logo.miur span{ font-size: 0.7rem; }
}
