/* =====================================================================
   footer.css — footer: logo, widget, documenti, link legali
   ===================================================================== */


/* ---------------------------------------------------------------------
   Logo e immagini
   --------------------------------------------------------------------- */
#footer .widgets_row .footer_logo {
  padding: 7px 0 0 !important;
  margin-top: 1rem !important;
}

#footer .widget_media_image {
  margin-bottom: 0 !important;
}

/* Didascalie delle immagini (es. loghi certificazioni): testo sopra l'immagine */
#footer .wp-caption {
  background: transparent;
  border-color: transparent;
  font-size: .75rem;
  text-align: left;
  line-height: 1.3;
}

#footer .wp-caption.alignnone {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column-reverse;
}


/* ---------------------------------------------------------------------
   Widget e separatori
   --------------------------------------------------------------------- */
#footer .footer_widgets .widget .widget_title {
  border-bottom: 1px solid rgba(204, 204, 204, .2) !important;
  font-weight: 200 !important;
}

#footer .copyright_row .copyright_row_wr {
  border-top: 1px solid rgba(204, 204, 204, .2) !important;
}

#footer .footer_widgets .widget.widget_nav_menu ul li a {
  color: #fff !important;
}

/* screen-reader-text leggibile quando diventa visibile (es. al focus) */
body #footer .screen-reader-text {
  color: #fff !important;
  background: #000;
}


/* ---------------------------------------------------------------------
   Documenti (Modello 231, Codice Etico, ...)
   --------------------------------------------------------------------- */
.footer-docs {
  padding-left: 1.45rem;
}

.footer-docs a {
  color: #3396d2;
}

.footer-docs .doc-meta {
  font-size: .875em;
}


/* ---------------------------------------------------------------------
   Certificazioni (widget "Certificazioni" / "Certifications")
   Uso: <ul class="footer-certs"> con <strong> per il nome e
   <span class="footer-certs__desc"> per la descrizione.
   --------------------------------------------------------------------- */
.footer-certs {
  list-style: none;
  margin: 0 0 1em;
  padding-left: 0;
}

.footer-certs li {
  line-height: 1.3;
  margin-bottom: 1.25em;
}

.footer-certs li:last-child {
  margin-bottom: 0;
}

.footer-certs__desc {
  display: block;
  opacity: .7;
}

/* Il tema forza tutti gli span del footer in bianco con !important:
   serve un selettore più specifico per le stelle */
body #footer .footer-certs__stars {
  color: #f5a623 !important;
}

/* Link "Scopri…" sotto i widget del footer */
.footer-more a {
  color: #3396d2;
}


/* ---------------------------------------------------------------------
   Copyright e link legali (privacy, cookie, preferenze consenso)
   --------------------------------------------------------------------- */
.footer-copy {
  display: block;
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}

/* Link e pulsante con lo stesso aspetto */
.footer-legal a,
.footer-legal__btn {
  color: #3396d2 !important;
  font: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-legal__btn:hover,
.footer-legal__btn:focus-visible {
  text-decoration: underline;
}

/* Il focus è gestito dal doppio anello globale in a11y.css */