/* =====================================================
   CUSTOM FOOTER – Baseline (struttura + override Stellar)
   Obiettivo: footer full-width grigio, contenuto allineato a sinistra,
   gerarchie coerenti, niente "box centrato" piccolo.
   ===================================================== */

/* ===== Struttura base footer ===== */
.site-footer{
  border-top: 1px solid rgba(0,0,0,0.08);
}

.site-footer .inner{
  /* allineamento coerente con il layout del sito */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-footer .cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  text-align: left;
}

.site-footer h2,
.site-footer h3{
  margin: 0 0 14px 0;
  font-weight: 600;
}

.site-footer p{
  margin: 0 0 12px 0;
}

.site-footer .links{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer .links a{
  text-decoration: none;
}

.site-footer .footer-contacts{
  margin-top: 14px;
}

.site-footer .meta{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.92em;
  opacity: 0.9;
  text-align: left;
}

@media (max-width: 980px){
  .site-footer .cols{
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer .inner{
    padding: 0 18px;
  }
}

/* =========================================================
   LOOK & FEEL: "TUTTO GRIGIO" (testo e link) + override template
   ========================================================= */
#footer,
.site-footer{
  background: #efefef !important;
  color: #333 !important;
}

#footer h1,#footer h2,#footer h3,#footer h4,#footer h5,#footer h6,
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer h5,.site-footer h6{
  color:#222 !important;
  opacity:1 !important;
}

#footer p,#footer li,#footer span,
.site-footer p,.site-footer li,.site-footer span{
  color:#333 !important;
}

#footer a,
.site-footer a{
  color:#333 !important;
  border-bottom: 1px dotted rgba(0,0,0,0.28) !important;
}

#footer a:hover,
.site-footer a:hover{
  border-bottom-color: rgba(0,0,0,0.55) !important;
}

#footer .meta,
.site-footer .meta{
  color: rgba(0,0,0,0.62) !important;
}

/* =========================================================
   OVERRIDE STRUTTURA STELLAR (#footer)
   - elimina width calc/margini strani
   - elimina flex a 2 colonne automatico
   - full width + padding uniforme
   ========================================================= */
#footer.site-footer{
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 60px 0 46px 0 !important;
  box-sizing: border-box;
  text-align: left !important;
}

/* Stellar mette width/margini sui figli diretti */
#footer.site-footer > *{
  width: 100% !important;
  margin-left: 0 !important;
}

/* Stellar centra la copyright, noi la lasciamo a sinistra */
#footer.site-footer .copyright{
  text-align: left !important;
}


/* ===== Mobile: meno "grigio" prima dei titoli + gerarchie più equilibrate ===== */
@media (max-width: 980px){
  #footer.site-footer{
    padding: 28px 0 32px 0 !important;
  }
  .site-footer h3{
    font-size: 1.05rem;
    font-weight: 650;
  }
  .site-footer .links a{
    font-size: 1rem;
  }
}
