/* SHIELD 852 - un solo design del footer su tutte le pagine */
#sh852-shared-footer {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 65px 0 28px !important;
  overflow: hidden !important;
  color: #cbd5e5 !important;
  background: #0b1323 !important;
  border-top: 1px solid rgba(112,153,214,.16) !important;
  isolation: isolate;
  font-family: inherit !important;
  text-align: left !important;
}
#sh852-shared-footer::before {
  content: "shield";
  position: absolute;
  z-index: 0;
  left: -8px;
  bottom: -138px;
  font-size: clamp(210px, 30vw, 500px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.075em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(91,137,202,.13);
  pointer-events: none;
}
#sh852-shared-footer * { box-sizing: border-box; }
#sh852-shared-footer .sh852-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}
#sh852-shared-footer .sh852-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(26px, 4vw, 68px);
  align-items: start;
  padding-bottom: 40px;
}
#sh852-shared-footer .sh852-brand {
  min-width: 0;
  text-align: left !important;
}
#sh852-shared-footer .sh852-brand-image {
  display: block !important;
  width: 185px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 86px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  transform: none !important;
  filter: none !important;
}
#sh852-shared-footer .sh852-brand-description {
  margin: 0;
  max-width: 275px;
  color: #a5b3cb;
  font-size: 13px;
  line-height: 1.75;
}
#sh852-shared-footer .sh852-heading {
  display: block;
  margin: 0 0 20px;
  color: #98a8c1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.25px;
  text-transform: uppercase;
}
#sh852-shared-footer .sh852-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#sh852-shared-footer a { color: #cbd5e5; text-decoration: none; }
#sh852-shared-footer a:hover { color: #7ec1ff; }
#sh852-shared-footer .sh852-menu a,
#sh852-shared-footer .sh852-menu span {
  font-size: 13px;
  line-height: 1.4;
}
#sh852-shared-footer .sh852-details {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
  gap: 64px;
  padding: 30px 0 34px;
  border-top: 1px solid rgba(159,185,224,.17);
}
#sh852-shared-footer .sh852-details .sh852-heading { margin-bottom: 16px; }
#sh852-shared-footer .sh852-details p {
  margin: 0 0 9px;
  color: #bbc7d9;
  font-size: 12px;
  line-height: 1.6;
}
#sh852-shared-footer .sh852-details p.sh852-muted {
  color: #8798b3;
}
#sh852-shared-footer .sh852-details b { color: #e1e8f4; font-weight: 600; }
#sh852-shared-footer .sh852-payment-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 21px 0;
  border-top: 1px solid rgba(159,185,224,.17);
  border-bottom: 1px solid rgba(159,185,224,.17);
}
#sh852-shared-footer .sh852-payment-title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.3px;
  color: #d3def0;
  text-transform: uppercase;
}
#sh852-shared-footer .sh852-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(13px, 2vw, 25px);
}
#sh852-shared-footer .sh852-pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 41px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#sh852-shared-footer .sh852-pay-icon img {
  display: block !important;
  width: auto !important;
  height: 37px !important;
  max-width: 95px !important;
  max-height: 39px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}
#sh852-shared-footer .sh852-pay-icon[data-brand="visa"] img { height: 32px !important; }
#sh852-shared-footer .sh852-pay-icon[data-brand="amex"] img { height: 39px !important; }
#sh852-shared-footer .sh852-pay-icon[data-brand="google"] img { height: 34px !important; }
#sh852-shared-footer .sh852-pay-icon[data-brand="apple"] img {
  height: 34px !important;
  filter: brightness(0) invert(1);
}
#sh852-shared-footer .sh852-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: #96a5bc;
  font-size: 11px;
  line-height: 1.5;
}
#sh852-shared-footer .sh852-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
#sh852-shared-footer .sh852-bottom a { color: #aebdd3; }
@media (max-width: 900px) {
  #sh852-shared-footer .sh852-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  #sh852-shared-footer .sh852-details { gap: 28px; }
}
@media (max-width: 600px) {
  #sh852-shared-footer { padding: 42px 0 26px !important; }
  #sh852-shared-footer .sh852-inner { width: calc(100% - 36px); }
  #sh852-shared-footer .sh852-top { gap: 26px 18px; }
  #sh852-shared-footer .sh852-brand { grid-column: 1 / -1; }
  #sh852-shared-footer .sh852-brand-image { width: 165px !important; }
  #sh852-shared-footer .sh852-details { grid-template-columns: 1fr; padding: 28px 0; }
  #sh852-shared-footer .sh852-payment-row { align-items: flex-start; gap: 18px; }
  #sh852-shared-footer .sh852-payment-title { width: 100%; }
  #sh852-shared-footer .sh852-payment-logos { gap: 14px 19px; }
  #sh852-shared-footer .sh852-pay-icon { height: 34px; }
  #sh852-shared-footer .sh852-pay-icon img { max-width: 80px !important; max-height: 32px !important; }
  #sh852-shared-footer .sh852-bottom { align-items: flex-start; }
}


/* SHIELD 853: correzioni sul footer UNICO, valide per homepage e pagine */
#sh852-shared-footer .sh852-brand,
#sh852-shared-footer .sh852-brand > a {
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}
#sh852-shared-footer .sh852-brand > a {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 0 17px !important;
  padding: 0 !important;
}
#sh852-shared-footer img.sh852-brand-image {
  display: block !important;
  width: 214px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none !important;
  filter: none !important;
}
/* Ripiego se il logo originale proviene da una sorgente che blocca il canvas. */
#sh852-shared-footer img.sh852-brand-image:not([data-sh853-trimmed="1"]) {
  width: 270px !important;
  max-width: none !important;
  transform: translateX(-52px) !important;
}
#sh852-shared-footer .sh852-payment-row {
  gap: 35px !important;
  padding: 23px 0 !important;
}
#sh852-shared-footer .sh852-payment-logos {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 25px !important;
}
#sh852-shared-footer .sh852-pay-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#sh852-shared-footer .sh852-pay-icon img {
  display: block !important;
  width: auto !important;
  height: 33px !important;
  max-width: 94px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
  filter: none !important;
}
#sh852-shared-footer .sh852-pay-icon[data-brand="mastercard"] img {height: 34px !important;}
#sh852-shared-footer .sh852-pay-icon[data-brand="visa"] img {height: 31px !important;}
#sh852-shared-footer .sh852-pay-icon[data-brand="paypal"] img {height: 36px !important;}
#sh852-shared-footer .sh852-pay-icon[data-brand="amex"] img {height: 38px !important;}
#sh852-shared-footer .sh852-pay-icon[data-brand="google"] img {height: 35px !important;}
#sh852-shared-footer .sh852-pay-icon[data-brand="apple"] img {
  height: 35px !important;
  filter: brightness(0) invert(1) !important;
}
@media(max-width:600px) {
  #sh852-shared-footer img.sh852-brand-image {width: 188px !important;}
  #sh852-shared-footer img.sh852-brand-image:not([data-sh853-trimmed="1"]) {
    width: 236px !important;
    transform: translateX(-43px) !important;
  }
  #sh852-shared-footer .sh852-payment-logos {gap: 14px 20px !important;}
  #sh852-shared-footer .sh852-pay-icon {height: 36px !important;}
  #sh852-shared-footer .sh852-pay-icon img {max-height: 34px !important;max-width: 80px !important;}
}


/* SHIELD 854 - logo footer equilibrato */
#sh852-shared-footer img.sh852-brand-image {
    width: 170px !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
}

#sh852-shared-footer img.sh852-brand-image:not([data-sh853-trimmed="1"]) {
    width: 214px !important;
    max-width: none !important;
    transform: translateX(-41px) !important;
}

@media (max-width: 600px) {
    #sh852-shared-footer img.sh852-brand-image {
        width: 150px !important;
    }

    #sh852-shared-footer img.sh852-brand-image:not([data-sh853-trimmed="1"]) {
        width: 188px !important;
        transform: translateX(-34px) !important;
    }
}

/* SHIELD 858 - PAGAMENTI A DESTRA */

/* Desktop e tablet: loghi allineati al margine destro */
@media (min-width: 701px) {
    #sh852-shared-footer .sh852-payment-row {
        width: 100% !important;
    }

    #sh852-shared-footer .sh852-payment-logos {
        margin-left: auto !important;
        margin-right: 0 !important;
        justify-content: flex-end !important;
    }
}

/* Smartphone: manteniamo la disposizione responsive */
@media (max-width: 700px) {
    #sh852-shared-footer .sh852-payment-logos {
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
}
