/* =========================================================
   File: sb-footer.css
   Scopo: Footer System (Light/Dark) + Fix doppi footer
   ========================================================= */

/* ---------------------------------------------------------
   0) Anti footer doppio (Kadence + varianti)
   NB: queste classi body (sb-footer-light / sb-footer-dark) le metti da functions.php.
--------------------------------------------------------- */

/* Nascondi il footer Kadence quando stai usando il tuo sistema */
body.sb-footer-light #colophon,
body.sb-footer-light .site-footer,
body.sb-footer-dark #colophon,
body.sb-footer-dark .site-footer {
  display: none !important;
}

/* Se per sbaglio vengono stampate entrambe le varianti, ne mostriamo solo una */
body.sb-footer-light .sb-footer--dark { display: none !important; }
body.sb-footer-dark  .sb-footer--light { display: none !important; }

/* ---------------------------------------------------------
   1) Base
--------------------------------------------------------- */
.sb-footer {
  width: 100%;
  position: relative;
  z-index: 10;
  font-size: 0.95rem;
  line-height: 1.6;
  box-sizing: border-box;
}

.sb-footer * { box-sizing: border-box; }

/* Container: padding laterale consistente su mobile */
.sb-footer .sb-container {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .sb-footer .sb-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ---------------------------------------------------------
   2) Dark footer (Home/Brand)
--------------------------------------------------------- */
.sb-footer--dark {
  background-color: #01144f !important;
  color: #ffffff !important;
  padding: 48px 0 34px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .sb-footer--dark {
    padding: 60px 0 40px;
  }
}

/* Grid responsive */
.sb-footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile: 1 col */
  gap: 34px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .sb-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
  }
}

/* Links */
.sb-footer--dark a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.sb-footer--dark a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Brand */
.sb-footer-brand {
  font-size: 1.7rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  display: inline-block;
}

@media (min-width: 768px) {
  .sb-footer-brand { font-size: 1.85rem; }
}

.sb-footer-desc {
  font-size: 0.98rem;
  opacity: 0.92;
  max-width: 440px;
  margin: 0 0 22px 0;
  color: #e2e8f0;
}

/* Payment line */
.sb-payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
}

.sb-pay-label {
  color: #fff;
  margin-right: 4px;
}

/* Menu cols */
.sb-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 18px 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sb-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-footer-menu li {
  margin-bottom: 10px;
}

/* Bottom legal */
.sb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.sb-legal-text p {
  margin: 0 0 10px 0;
}

.sb-uk-compliance {
  margin-top: 12px;
  font-size: 0.76rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   3) Light footer (Checkout/Product)
--------------------------------------------------------- */
.sb-footer--light {
  background-color: transparent;
  color: #64748b;
  padding: 22px 0 34px;     /* più “tight” e premium */
  margin-top: 0;            /* IMPORTANT: niente gap gigante */
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

/* Link row */
.sb-footer--light .sb-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sb-footer--light a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sb-footer--light a:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
  text-decoration: none;
}

.sb-footer--light .sb-legal-text p,
.sb-footer-mini {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ---------------------------------------------------------
   4) Small device tweaks
--------------------------------------------------------- */
@media (max-width: 360px) {
  .sb-footer .sb-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sb-footer--dark {
    padding: 42px 0 30px;
  }
}
