/* Icone informative locali, con il colore del testo in entrambi gli sfondi. */
:where(.site-footer, .contact-information, .revision-map) {
  --ecf-icon-pin: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%205.5-8%2011-8%2011S4%2015.5%204%2010a8%208%200%201%201%2016%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-phone: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203H4.5A1.5%201.5%200%200%200%203%204.5%2016.5%2016.5%200%200%200%2019.5%2021a1.5%201.5%200%200%200%201.5-1.5V17l-4.4-1.5-1.8%202a12%2012%200%200%201-8.3-8.3l2-1.8L7%203Z%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-mail: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m4%207%208%206%208-6%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-clock: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-route: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m21%203-6%2018-4-8-8-4L21%203Z%22%2F%3E%3Cpath%20d%3D%22M11%2013%2021%203%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-pulse: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012h4l2-5%204%2010%203-5h5%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%2220%22%20height%3D%2218%22%20rx%3D%223%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-newsletter: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%208h10M7%2012h4m-4%204h10%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-work: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207V5a1%201%200%200%201%201-1h6a1%201%200%200%201%201%201v2M3%2013h18m-9%200v2%22%2F%3E%3C%2Fsvg%3E");
  --ecf-icon-shield: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v5c0%204.5-3.5%208-8%2010-4.5-2-8-5.5-8-10V6l8-3Z%22%2F%3E%3Cpath%20d%3D%22m8.5%2012%202.5%202.5%204.5-5%22%2F%3E%3C%2Fsvg%3E");
}

.site-footer .footer-inner .wp-block-column:nth-child(2) > h3 + p,
.revision-map > h2 + p {
  --ecf-info-icon: var(--ecf-icon-pin);
}

.site-footer .footer-inner .wp-block-column:nth-child(3) > h3 + p,
.contact-information h2 + p:not(:has(a)) {
  --ecf-info-icon: var(--ecf-icon-clock);
}

:is(.site-footer, .contact-information) a[href^="tel:"] { --ecf-info-icon: var(--ecf-icon-phone); }
:is(.site-footer, .contact-information) a[href^="mailto:"] { --ecf-info-icon: var(--ecf-icon-mail); }
.revision-map .map-links a { --ecf-info-icon: var(--ecf-icon-route); }
.site-footer a[href$="/holter-cardiaco/"] { --ecf-info-icon: var(--ecf-icon-pulse); }
.site-footer a[href$="/newsletter/"] { --ecf-info-icon: var(--ecf-icon-newsletter); }
.site-footer a[href$="/lavora-con-noi/"] { --ecf-info-icon: var(--ecf-icon-work); }
.site-footer a[href$="/privacy-e-cookie/"] { --ecf-info-icon: var(--ecf-icon-shield); }
.site-footer a[href*="//www.facebook.com/"] { --ecf-info-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202C6.5%202%202%206.5%202%2012c0%205%203.7%209.1%208.4%209.9v-7H7.9V12h2.5V9.8c0-2.5%201.5-3.9%203.8-3.9%201.1%200%202.2.2%202.2.2v2.5h-1.3c-1.2%200-1.6.8-1.6%201.6V12h2.8l-.4%202.9h-2.3v7C18.3%2021.1%2022%2017%2022%2012c0-5.5-4.5-10-10-10z%22%2F%3E%3C%2Fsvg%3E"); }
.site-footer a[href*="//www.instagram.com/"] { --ecf-info-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2217.3%22%20cy%3D%226.8%22%20r%3D%22.9%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E"); }
.site-footer a[href*="//www.youtube.com/"] { --ecf-info-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M3%206c-1%201-1%204-1%206s0%205%201%206c1%201%205%201%209%201s8%200%209-1c1-1%201-4%201-6s0-5-1-6c-1-1-5-1-9-1S4%205%203%206Zm7%203v6l5-3-5-3Z%22%2F%3E%3C%2Fsvg%3E"); }

:is(.site-footer, .contact-information) p:has(> a[href^="tel:"]) > a {
  overflow-wrap: anywhere;
}

:is(.site-footer, .contact-information) :is(a[href^="tel:"], a[href^="mailto:"])::before,
.site-footer :is(a[href$="/holter-cardiaco/"], a[href$="/newsletter/"], a[href$="/lavora-con-noi/"], a[href$="/privacy-e-cookie/"])::before,
.site-footer :is(a[href*="//www.facebook.com/"], a[href*="//www.instagram.com/"], a[href*="//www.youtube.com/"])::before,
.revision-map .map-links a::before,
.revision-map > h2 + p::before,
.contact-information h2 + p:not(:has(a))::before,
.site-footer .footer-inner .wp-block-column:is(:nth-child(2), :nth-child(3)) > h3 + p::before {
  content: "";
  display: inline-block;
  width: max(18px, 1.05em);
  height: max(18px, 1.05em);
  flex: 0 0 max(18px, 1.05em);
  background-color: currentColor;
  mask: var(--ecf-info-icon) center / contain no-repeat;
  -webkit-mask: var(--ecf-info-icon) center / contain no-repeat;
}

:is(.site-footer, .contact-information) :is(a[href^="tel:"], a[href^="mailto:"]),
.site-footer :is(a[href$="/holter-cardiaco/"], a[href$="/newsletter/"], a[href$="/lavora-con-noi/"], a[href$="/privacy-e-cookie/"]),
.site-footer :is(a[href*="//www.facebook.com/"], a[href*="//www.instagram.com/"], a[href*="//www.youtube.com/"]),
.revision-map .map-links a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  max-width: 100%;
}

.site-footer .footer-inner .wp-block-column:nth-child(2) > h3 + p,
.site-footer .footer-inner .wp-block-column:nth-child(3) > h3 + p {
  position: relative;
  padding-inline-start: 1.5em;
}

.site-footer .footer-inner .wp-block-column:is(:nth-child(2), :nth-child(3)) > h3 + p::before {
  position: absolute;
  inset-inline-start: 0;
  top: .24em;
}

.contact-information h2 + p:not(:has(a))::before,
.revision-map > h2 + p::before {
  margin-inline-end: .42em;
  vertical-align: -.12em;
}
