/* ============================================================================
   footer.css — Footer custom (PHP puro, sostituisce Astra Footer Builder)
   v1.0 — 2026-05-19
   Struttura: above (Contatti + Chi sono) · primary (logo) · below (4 col + ©)
   ============================================================================ */

.bg-footer {
  background: #000;
  color: var(--text, #fff);
  width: 100%;
  font-family: var(--f-sans);
}

/* ---------- ABOVE ---------- */
.bg-footer__above {
  padding: 60px 35px 24px;
}
.bg-footer__row {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  padding: 20px 0;
  align-items: start;
}
.bg-footer__label {
  font-weight: 700;
  font-size: 16px;
  color: var(--text, #fff);
}
.bg-footer__content {
  font-weight: 400;
  font-size: 16px;
  line-height: 29px;
  color: var(--text, #fff);
}
.bg-footer__content a {
  color: var(--text, #fff);
  text-decoration: underline solid transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-s, 0.15s) var(--ease-out, ease);
}
.bg-footer__content a:hover,
.bg-footer__content a:focus-visible {
  text-decoration-color: var(--text, #fff);
}
.bg-footer__separator {
  border: 0;
  border-top: 1px solid #262626;
  margin: 0;
}

/* ---------- PRIMARY (logo BRANDOGALLO full-bleed) ---------- */
.bg-footer__primary {
  padding: 0 35px;
  margin: 40px 0;
}
.bg-footer__logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- BELOW (riga unica: legale a sx, copyright a dx) ---------- */
.bg-footer__below {
  padding: 24px 35px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.bg-footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.bg-footer__legal li {
  font-size: 14px;
  color: var(--text, #fff);
}
.bg-footer__legal a {
  color: var(--text, #fff);
  text-decoration: underline solid transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-s, 0.15s) var(--ease-out, ease);
}
.bg-footer__legal a:hover,
.bg-footer__legal a:focus-visible {
  text-decoration-color: var(--text, #fff);
}
.bg-footer__copyright {
  margin: 0;
  font-size: 14px;
  color: var(--text, #fff);
}

/* ---------- RESPONSIVE (≤ 921px, breakpoint Astra tablet) ---------- */
@media (max-width: 921px) {
  .bg-footer__above {
    padding: 40px 20px 20px;
  }
  .bg-footer__primary {
    padding: 0 20px;
    margin: 20px 0;
  }
  .bg-footer__below {
    padding: 20px 20px 24px;
    gap: 16px;
  }
}

/* ---------- RESPONSIVE (≤ 544px, mobile stretto) ---------- */
@media (max-width: 544px) {
  .bg-footer__row {
    padding: 16px 0;
  }
  .bg-footer__label,
  .bg-footer__content {
    font-size: 15px;
  }
  .bg-footer__content {
    line-height: 26px;
  }
  .bg-footer__below {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .bg-footer__legal {
    gap: 12px;
  }
  .bg-footer__legal li,
  .bg-footer__copyright {
    font-size: 11px;
    white-space: nowrap;
  }
}
