/* Endoacustica / Enterprise footer v3
   Scope esclusivo #footer. Nessuna dipendenza da librerie o font esterni.
   Caricare dopo gli stili del sito; rimuovere il vecchio footer.css. */
#footer.ef-footer {
  --ef-bg: #142238;
  --ef-bottom: #101d30;
  --ef-text: #d7deea;
  --ef-muted: #aab8cd;
  --ef-white: #f5f7fc;
  --ef-accent: #a9c5f5;
  --ef-line: rgba(188, 207, 235, .16);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--ef-bg);
  color: var(--ef-text);
  font: 400 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-align: left;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
#footer.ef-footer *, #footer.ef-footer *::before, #footer.ef-footer *::after { box-sizing: border-box; }
#footer .ef-shell { width: 100%; max-width: 1360px; padding-inline: 40px; margin-inline: auto; }
#footer a { color: inherit; text-decoration: none; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
#footer a:hover { color: var(--ef-white); }
#footer a:focus-visible, #footer summary:focus-visible { outline: 2px solid var(--ef-accent); outline-offset: 5px; border-radius: 2px; }
#footer svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
#footer h2, #footer h3, #footer p, #footer address, #footer ul { margin: 0; padding: 0; }
#footer ul { list-style: none; }
#footer .ef-masthead { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 38px 32px; border-bottom: 1px solid var(--ef-line); }
#footer .ef-identity { display: flex; align-items: center; gap: 32px; min-width: 0; }
#footer .ef-wordmark { display: inline-block; color: var(--ef-white); font-size: 28px; line-height: 1; font-weight: 650; letter-spacing: -1.1px; }
#footer .ef-wordmark-dot { color: var(--ef-accent); }
#footer .ef-wordmark-region { display: block; margin-top: 8px; font-size: 9px; font-weight: 500; line-height: 1.2; letter-spacing: .32em; color: var(--ef-muted); }
#footer .ef-description { padding-left: 28px; border-left: 1px solid var(--ef-line); font-size: 12px; line-height: 1.75; color: var(--ef-muted); }
#footer .ef-assistance { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
#footer .ef-assistance-copy { display: flex; flex-direction: column; }
#footer .ef-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ef-muted); }
#footer .ef-main-phone { margin-top: 3px; font-size: 17px; font-weight: 500; letter-spacing: .01em; color: var(--ef-white); font-variant-numeric: tabular-nums; }
#footer .ef-contact-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 18px; padding: 10px 16px; border: 1px solid rgba(188,207,235,.36); border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--ef-white); }
#footer .ef-contact-button:hover { background: rgba(188,207,235,.08); border-color: var(--ef-accent); }
#footer .ef-main { display: grid; grid-template-columns: 1.1fr 1.22fr 1fr .82fr; align-items: start; gap: 48px; padding-block: 32px 30px; }
#footer .ef-section { min-width: 0; }
#footer .ef-section h2 { margin-bottom: 20px; color: var(--ef-white); font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
#footer .ef-location + .ef-location { margin-top: 18px; }
#footer .ef-location h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--ef-white); }
#footer .ef-location-note { font-size: 10px; font-weight: 400; color: var(--ef-muted); }
#footer .ef-location address { margin-top: 4px; font-size: 12px; line-height: 1.7; font-style: normal; color: var(--ef-muted); overflow-wrap: anywhere; }
#footer .ef-office-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: 12px; font-variant-numeric: tabular-nums; }
#footer .ef-office-phone svg { width: 12px; height: 12px; color: var(--ef-muted); }
#footer .ef-section-intro { margin: -2px 0 14px; font-size: 12px; color: var(--ef-muted); }
#footer .ef-details { display: block; margin: 0; border-bottom: 1px solid var(--ef-line); }
#footer .ef-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 11px 0; color: var(--ef-text); font-size: 13px; font-weight: 400; line-height: 1.5; list-style: none; cursor: pointer; }
#footer .ef-details summary::-webkit-details-marker { display: none; }
#footer .ef-details summary::marker { content: ""; }
#footer .ef-details summary:hover { color: var(--ef-white); }
#footer .ef-details[open] summary { color: var(--ef-accent); }
#footer .ef-disclosure-icon { position: relative; flex: 0 0 12px; width: 12px; height: 12px; color: var(--ef-muted); }
#footer .ef-disclosure-icon::before, #footer .ef-disclosure-icon::after { position: absolute; content: ""; background: currentColor; }
#footer .ef-disclosure-icon::before { left: 1px; top: 5px; width: 10px; height: 1px; }
#footer .ef-disclosure-icon::after { left: 5px; top: 1px; width: 1px; height: 10px; }
#footer .ef-details[open] .ef-disclosure-icon::after { display: none; }
#footer .ef-details .ef-links { margin: 0 0 16px 1px; padding-left: 12px; border-left: 1px solid rgba(169,197,245,.35); }
#footer .ef-details .ef-links a { display: block; padding: 6px 0; font-size: 12px; line-height: 1.6; color: var(--ef-muted); overflow-wrap: anywhere; }
#footer .ef-details .ef-links a:hover, #footer .ef-primary-links a:hover { color: var(--ef-white); text-decoration: underline; text-underline-offset: 4px; }
#footer .ef-primary-links { margin-top: -7px; }
#footer .ef-primary-links a { display: block; padding-block: 7px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#footer .ef-nowrap { white-space: nowrap; }
#footer .ef-text-action { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; margin-top: 17px; color: var(--ef-accent); font-size: 12px; font-weight: 500; }
#footer .ef-text-action svg { width: 15px; height: 15px; }
#footer .ef-connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 16px; border-top: 1px solid var(--ef-line); }
#footer .ef-social-nav, #footer .ef-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
#footer .ef-connect-label { font-size: 11px; color: var(--ef-muted); }
#footer .ef-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#footer .ef-socials a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 3px; color: var(--ef-muted); }
#footer .ef-socials a:hover { color: var(--ef-white); background: rgba(188,207,235,.08); }
#footer .ef-socials svg { width: 17px; height: 17px; }
#footer .ef-socials .ef-legacy-social-icon {
  display: block;
  width: 17px;
  height: 17px;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-sizing: content-box;
  object-fit: contain;
}
#footer .ef-direct > a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-size: 12px; }
#footer .ef-direct > a > svg:first-child { width: 17px; height: 17px; color: var(--ef-muted); }
#footer .ef-direct > a > svg:last-child { width: 12px; height: 12px; color: var(--ef-muted); }
#footer .ef-bottom { background: var(--ef-bottom); }
#footer .ef-legal-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 17px; }
#footer .ef-rights, #footer .ef-policy { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ef-muted); font-size: 11px; line-height: 1.6; }
#footer .ef-policy a { display: inline-block; min-height: 24px; padding-block: 4px; }
#footer .ef-policy a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1199px) {
  #footer .ef-shell { padding-inline: 32px; }
  #footer .ef-description { display: none; }
  #footer .ef-main { gap: 30px; grid-template-columns: 1.15fr 1.2fr 1fr .85fr; }
}
@media (max-width: 959px) {
  #footer .ef-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
  #footer .ef-assistance { gap: 20px; }
  #footer .ef-assistance-copy { display: none; }
  #footer .ef-services, #footer .ef-company { padding-top: 24px; border-top: 1px solid var(--ef-line); }
}
@media (max-width: 599px) {
  #footer .ef-shell { padding-inline: 24px; }
  #footer .ef-masthead { align-items: flex-start; flex-direction: column; gap: 24px; padding-block: 28px; }
  #footer .ef-wordmark { font-size: 28px; }
  #footer .ef-assistance { width: 100%; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
  #footer .ef-assistance-copy { display: flex; }
  #footer .ef-main-phone { font-size: 16px; }
  #footer .ef-contact-button { gap: 10px; padding-inline: 12px; }
  #footer .ef-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; padding-block: 28px; }
  #footer .ef-offices, #footer .ef-resources { grid-column: 1 / -1; }
  #footer .ef-section h2 { margin-bottom: 18px; }
  #footer .ef-location { display: grid; grid-template-columns: 84px minmax(0,1fr); column-gap: 12px; align-items: start; }
  #footer .ef-location + .ef-location { margin-top: 20px; }
  #footer .ef-location h3 { grid-column: 1; grid-row: 1 / 3; display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
  #footer .ef-location-note { max-width: 70px; line-height: 1.6; }
  #footer .ef-location address { margin: 0; }
  #footer .ef-office-phone { grid-column: 2; min-height: 32px; }
  #footer .ef-services, #footer .ef-company { padding-top: 24px; }
  #footer .ef-primary-links a { min-height: 36px; }
  #footer .ef-connect { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 16px; }
  #footer .ef-social-nav, #footer .ef-direct { gap: 12px; }
  #footer .ef-socials { gap: 2px; }
  #footer .ef-socials a { width: 32px; height: 36px; }
  #footer .ef-socials .ef-legacy-social-icon { width: 15px; height: 15px; padding: 3px; }
  #footer .ef-direct { padding-top: 12px; border-top: 1px solid var(--ef-line); }
  #footer .ef-direct > a { min-height: 40px; }
  #footer .ef-legal-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px; }
  #footer .ef-rights { flex-direction: column; gap: 4px; }
  #footer .ef-policy { gap: 4px 18px; }
  #footer .ef-policy a { min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { #footer a { transition: none; } }
@media print {
  #footer.ef-footer { background: white; color: black; }
  #footer .ef-social-nav, #footer .ef-direct, #footer .ef-assistance { display: none; }
  #footer .ef-bottom { background: white; }
  #footer a, #footer h2, #footer h3, #footer .ef-location address, #footer .ef-rights { color: black; }
}

/* Contatti persistenti: contenitore compatto fuori dal footer, nessuna .row Bootstrap. */
html:has(#ef-quick-actions) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
#footer a, #footer summary { scroll-margin-block: 100px; }
#ef-quick-actions {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 6px;
  border: 1px solid #42536b;
  border-radius: 6px;
  background: #142238;
  color: #f5f7fc;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .22);
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
  max-height: 64px;
  overflow: visible;
}
#ef-quick-actions, #ef-quick-actions * { box-sizing: border-box; }
#ef-quick-actions .ef-quick-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 10px 13px; border: 0; border-radius: 3px; background: transparent; color: #f5f7fc; text-decoration: none; cursor: pointer; }
#ef-quick-actions .ef-quick-action:hover { background: #263b57; }
#ef-quick-actions svg { display: block; flex: 0 0 19px; width: 19px; height: 19px; }
#ef-quick-actions .ef-quick-whatsapp svg { color: #7be0a9; }
#ef-quick-actions .ef-quick-telegram svg { color: #91caff; }
#ef-quick-actions .ef-quick-consent { border-left: 1px solid #42536b; border-radius: 0 3px 3px 0; }
#ef-quick-actions a:focus-visible { outline: 2px solid #a9c5f5; outline-offset: 2px; }
#ef-consent-notice { position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px; max-width: calc(100vw - 32px); padding: 14px 16px; border: 1px solid #42536b; border-radius: 4px; background: #142238; color: #f5f7fc; box-shadow: 0 4px 20px rgba(0,0,0,.16); }
#ef-consent-status { margin: 0; font-size: 12px; line-height: 1.6; }
#ef-consent-policy { display: inline-block; margin-top: 8px; color: #a9c5f5; text-decoration: underline; text-underline-offset: 3px; }
#ef-quick-actions [hidden] { display: none !important; }
@media (max-width: 599px) {
  #footer .ef-connect { padding-block: 14px; }
  #footer .ef-direct { display: none; }
  #footer .ef-social-nav { width: 100%; }
  #ef-quick-actions { right:auto; bottom:max(10px, env(safe-area-inset-bottom, 0px)); left:50%; display:flex; align-items:center; width:max-content; max-width:calc(100% - 20px); min-height:0; max-height:52px; gap:7px; padding:4px; border:0; border-radius:26px; background:transparent; box-shadow:none; transform:translateX(-50%); }
  #ef-quick-actions .ef-quick-action { position:relative; min-width:0; width:auto; min-height:44px; height:44px; padding:4px 12px; gap:7px; border:1px solid #42536b; border-radius:23px; background:#142238; font-size:11px; white-space:nowrap; }
  #ef-quick-actions .ef-quick-action > span { position:static; width:auto; height:auto; padding:0; margin:0; overflow:visible; clip:auto; white-space:nowrap; border:0; font-size:inherit; }
  #ef-quick-actions .ef-quick-whatsapp, #ef-quick-actions .ef-quick-telegram { min-width:88px; }
  #ef-quick-actions .ef-quick-consent { min-width:70px; border-left:0; }
  #ef-quick-actions svg { width:16px; height:16px; }
  #ef-consent-notice { right: 12px; }
}
@media print {
  #ef-quick-actions { display: none; }
  #footer .ef-bottom { padding-bottom: 0; }
}
