/* ===============================
   FOOTER – Utility links
   =============================== */

/* Footer utility - allineamento riga */
.legis-footer-utility .wp-block-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}
/* Footer utility - normalizza tutti i link/bottoni della riga */
.legis-footer-utility .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  line-height: 1.2;
  vertical-align: middle;
	background: transparent;
	padding: 0;
	border-radius: 0;
	text-decoration: none;
	transition: color 0.2s ease;
}

/* Hover stato link */
.legis-footer-utility .wp-block-button__link:hover,
.legis-footer-utility .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--yellow-accent) !important;
}

/* ===============================
   Icona Catalogo e Centro assistenza (footer)
   =============================== */

.legis-footer-utility .has-catalog-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
   margin-top: 2px;
}
.legis-footer-utility .wp-block-buttons {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	gap: 1.25rem; /* aumenta distanza tra i link */
}

/* SVG come background (coerente con header) */
.legis-footer-utility .has-catalog-icon::before {
	content: "";
	width: 14px;
	height: 14px;
	display: inline-block;
	background-color: currentColor;
	mask-image: url("/wp-content/themes/twentytwentyfive-child/assets/icons/catalog.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: url("/wp-content/themes/twentytwentyfive-child/assets/icons/catalog.svg");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
}
.has-catalog-icon:hover::before {
	background-color: var(--wp--preset--color--yellow-accent);
}
/* Footer utility - icona Centro assistenza */
.legis-footer-utility .has-help-icon .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.legis-footer-utility .has-help-icon .wp-block-button__link::before {
  content: "";
  width: .95em;
  height: .95em;
  flex: 0 0 auto;
  background-color: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 1 1 5.82 1c0 2-3 2-3 4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.09 9a3 3 0 1 1 5.82 1c0 2-3 2-3 4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* =========================
   FOOTER RESPONSIVE
   <= 1024px: stack menu utility e social centrati
   <= 781px: ultima parte centrata
   <= 600px: utility con interlinea ridotta
========================= */
/* Footer utility: stack da 1024px in giù */
@media (max-width: 1024px) {
  .legis-footer-utility {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .legis-footer-utility > .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
  }
  .legis-footer-utility .wp-block-buttons {
    justify-content: center !important;
  }
  .legis-social-row {
    justify-content: center !important;
  }
  .legis-social-row .wp-block-social-links {
    justify-content: center !important;
  }
}
/* Footer finale: stack da 781px in giù */
@media (max-width: 781px) {
  .legis-footer-final {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center;
  }
  .legis-footer-final > .wp-block-column {
    flex-basis: auto !important;
    width: 100% !important;
  }
  .legis-footer-final .wp-block-site-logo {
    display: flex !important;
    justify-content: center !important;
  }
  .legis-footer-final p {
    text-align: center !important;
  }
}

/* Righe utility: interlinea ridotta da 600px in giù */
@media (max-width: 600px) {
  .legis-footer-utility .wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px 18px !important;
  }
  .legis-footer-utility .wp-block-button {
    margin: 0 !important;
  }
  .legis-footer-utility .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 18px;
    padding: 3px 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }
}