/* ---------------------------------------------------------
   FOOTER - Soluzione e Progetti (THEME-DRIVEN)
   File: assets/css/footer.css
   - usa var(--bg, --panel, --text, --muted, --accent, --border, --shadow)
--------------------------------------------------------- */

.site-footer{
  width: 100%;
  padding: 70px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background: color-mix(in srgb, var(--panel) 35%, transparent);
  backdrop-filter: blur(10px);
}

/* fallback se color-mix non supportato */
@supports not (color: color-mix(in srgb, white 50%, black)){
  .site-footer{
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
  }
}

/* ---------------------------
   GRID (colonne “umane” + centratura gruppo)
--------------------------- */
.footer__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 320px));
  justify-content: center;
  gap: 26px 60px;
  align-items: start;
  padding-bottom: 34px;
}

.footer__col{ min-width: 0; }

/* ---------------------------
   BRAND
--------------------------- */
.footer__brand{
  display: grid;
  gap: 10px;
}

.footer__logo img{
  max-width: 240px;
  height: auto;
  display: block;
}

.footer__name{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--text) 95%, transparent);
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer__name{ color: rgba(255,255,255,.95); }
}

.footer__desc{
  color: color-mix(in srgb, var(--text) 82%, transparent);
  line-height: 1.6;
  margin: 10px 0 12px;
  max-width: 46ch;
}

.footer__small{
  color: color-mix(in srgb, var(--text) 72%, transparent);
  margin: 0;
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer__desc{ color: rgba(255,255,255,.80); }
  .footer__small{ color: rgba(255,255,255,.72); }
}

/* ---------------------------
   TITOLI COLONNE
--------------------------- */
.footer__title{
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer__title{ color: rgba(255,255,255,.86); }
}

/* ---------------------------
   LISTE / LINK
--------------------------- */
.footer__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.footer__list strong{
  color: color-mix(in srgb, var(--text) 92%, transparent);
  font-weight: 700;
}

.footer__list a{
  color: color-mix(in srgb, var(--text) 90%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer__list a:hover{
  color: #fff;
}

/* fallback */
@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer__list{ color: rgba(255,255,255,.80); }
  .footer__list strong{ color: rgba(255,255,255,.92); }
  .footer__list a{ color: rgba(255,255,255,.88); }
}

/* ---------------------------
   MENU FOOTER (wp_nav_menu)
--------------------------- */
.footer__menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer__menu a{
  color: color-mix(in srgb, var(--text) 88%, transparent);
  text-decoration: none;
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.footer__menu a:hover{
  color: #fff;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border-color: color-mix(in srgb, var(--text) 12%, transparent);
  transform: translateY(-1px);
}

/* fallback */
@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer__menu a{ color: rgba(255,255,255,.86); }
  .footer__menu a:hover{
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.10);
  }
}

/* ---------------------------
   CARD ORARI
--------------------------- */
.footer__card{
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--shadow) 75%, transparent);
}

.footer__hours{
  margin: 0;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.6;
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer__card{
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 46px rgba(0,0,0,.35);
  }
  .footer__hours{ color: rgba(255,255,255,.78); }
}

/* ---------------------------
   CTA (se metti bottoni nel footer)
--------------------------- */
.footer__cta{ margin-top: 14px; }

/* ---------------------------------------------------------
   LEGAL BAR (link in linea + copy sotto)
--------------------------------------------------------- */
.footer-legalbar{
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer-legalbar{
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.10);
  }
}

.footer-legalbar__inner{
  padding: 16px 18px 14px;
  text-align: center;
}

/* ✅ in linea */
.footer-legalbar__links{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 1400px;
}

/* link piatti */
.footer-legalbar__links a{
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  opacity: .95;
  white-space: nowrap;
  transition: opacity .15s ease, text-decoration-color .15s ease, color .15s ease;
}
.footer-legalbar__links a:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--accent) 80%, #fff);
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer-legalbar__links a:hover{
    text-decoration-color: rgba(255,255,255,.9);
  }
}

/* riga sotto centrata */
.footer-legalbar__copy{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  opacity: .95;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}

@supports not (color: color-mix(in srgb, white 50%, black)){
  .footer-legalbar__copy{ color: rgba(255,255,255,.95); }
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 1200px){
  .footer__grid{
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    justify-content: stretch;
    gap: 18px 26px;
  }
  .footer__desc{ max-width: none; }
}

@media (max-width: 820px){
  .footer-legalbar__links{
    gap: 12px 16px;
    max-width: 100%;
  }
  .footer-legalbar__links a{
    font-size: 13px;
  }
  .footer-legalbar__copy{
    font-size: 13px;
  }
}

@media (max-width: 700px){
  .footer__grid{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}
