/* EMAN GROUP newsletter navigation + accessible double-opt-in dialog */

.eg-newsletter-nav {
  position: relative;
  flex: 0 0 auto;
}

button.eg-newsletter-trigger {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  text-align: left;
}

.eg-newsletter-trigger:focus-visible,
.eg-mnav-newsletter:focus-visible,
.eg-newsletter-dialog button:focus-visible,
.eg-newsletter-dialog input:focus-visible,
.eg-newsletter-dialog a:focus-visible {
  outline: 3px solid rgba(11, 95, 255, .28) !important;
  outline-offset: 2px !important;
}

.eg-newsletter-nav.is-pending .eg-newsletter-trigger,
.eg-newsletter-nav.is-subscribed .eg-newsletter-trigger {
  border-color: rgba(11, 95, 255, .30) !important;
}

.eg-newsletter-nav.is-pending .eg-newsletter-trigger__text small,
.eg-newsletter-nav.is-subscribed .eg-newsletter-trigger__text small {
  color: #0b5fff !important;
}

.eg-newsletter-nav.is-subscribed .eg-newsletter-avatar {
  background: #0b5fff !important;
  border-color: #0b5fff !important;
  color: #fff !important;
}

/* Uniform mobile trigger; usable in both current mobile-nav variants. */
button.eg-mnav-newsletter,
button.eg-newsletter-mobile-trigger {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid rgba(11, 15, 25, .12);
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #0b0f19;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

button.eg-mnav-newsletter {
  display: flex !important;
  align-items: center !important;
}

.eg-newsletter-mobile-trigger {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.eg-newsletter-mobile-trigger:hover,
button.eg-mnav-newsletter:hover {
  border-color: rgba(11, 95, 255, .30);
}

.eg-newsletter-mobile-trigger__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 95, 255, .08);
  color: #0b5fff;
}

.eg-newsletter-mobile-trigger__icon svg {
  width: 18px;
  height: 18px;
}

.eg-newsletter-mobile-trigger__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.eg-newsletter-mobile-trigger__text strong {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
}

.eg-newsletter-mobile-trigger__text small {
  color: rgba(11, 15, 25, .58);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.eg-newsletter-mobile-trigger__avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(11, 15, 25, .18);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.eg-newsletter-mobile-trigger.is-subscribed .eg-newsletter-mobile-trigger__avatar,
button.eg-mnav-newsletter.is-subscribed .eg-mnav-avatar {
  background: #0b5fff !important;
  border-color: #0b5fff !important;
  color: #fff !important;
}

.eg-newsletter-mobile-trigger.is-pending .eg-newsletter-mobile-trigger__text small,
.eg-newsletter-mobile-trigger.is-subscribed .eg-newsletter-mobile-trigger__text small,
button.eg-mnav-newsletter.is-pending small,
button.eg-mnav-newsletter.is-subscribed small {
  color: #0b5fff !important;
}

/* Dialog */
.eg-newsletter-dialog {
  width: min(430px, calc(100vw - 28px));
  max-height: min(680px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 15, 25, .14);
  border-radius: 20px;
  background: #fff;
  color: #0b0f19;
  box-shadow: 0 30px 100px rgba(15, 23, 42, .28);
}

.eg-newsletter-dialog:not([open]) {
  display: none;
}

.eg-newsletter-dialog::backdrop {
  background: rgba(7, 12, 24, .46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.eg-newsletter-dialog__shell {
  max-height: inherit;
  display: flex;
  flex-direction: column;
}

.eg-newsletter-dialog__header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(11, 15, 25, .09);
}

.eg-newsletter-dialog__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 95, 255, .08);
  color: #0b5fff;
}

.eg-newsletter-dialog__icon svg {
  width: 21px;
  height: 21px;
}

.eg-newsletter-dialog__heading {
  min-width: 0;
}

.eg-newsletter-dialog__heading h2 {
  margin: 0;
  color: #0b0f19;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 800;
}

.eg-newsletter-dialog__heading p {
  margin: 4px 0 0;
  color: rgba(11, 15, 25, .58);
  font-size: 11.5px;
  line-height: 1.35;
}

.eg-newsletter-dialog__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(11, 15, 25, .68);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.eg-newsletter-dialog__close:hover {
  background: rgba(11, 15, 25, .06);
  color: #0b0f19;
}

.eg-newsletter-dialog__body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

.eg-newsletter-dialog__intro {
  margin: 0 0 16px;
  color: rgba(11, 15, 25, .72);
  font-size: 13px;
  line-height: 1.5;
}

.eg-newsletter-signup-form {
  display: grid;
  gap: 13px;
}

.eg-newsletter-signup-form__field {
  display: grid;
  gap: 6px;
  color: #0b0f19;
  font-size: 12px;
  font-weight: 750;
}

.eg-newsletter-signup-form__field input[type="email"] {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(11, 15, 25, .16);
  border-radius: 10px;
  background: #fff;
  color: #0b0f19;
  font: inherit;
  font-size: 14px;
}

.eg-newsletter-signup-form__field input[type="email"]:focus {
  border-color: rgba(11, 95, 255, .52);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .10);
  outline: none;
}

.eg-newsletter-signup-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.eg-newsletter-signup-form__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: rgba(11, 15, 25, .68);
  font-size: 11.5px;
  line-height: 1.45;
}

.eg-newsletter-signup-form__consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #0b5fff;
}

.eg-newsletter-signup-form__consent a,
.eg-newsletter-dialog__legal a {
  color: #0b5fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eg-newsletter-signup-form__submit,
.eg-newsletter-dialog__secondary,
.eg-newsletter-dialog__danger {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
}

.eg-newsletter-signup-form__submit {
  border: 1px solid #0b5fff;
  background: #0b5fff;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 95, 255, .18);
}

.eg-newsletter-signup-form__submit:hover {
  background: #064be0;
  border-color: #064be0;
}

.eg-newsletter-signup-form__submit:disabled,
.eg-newsletter-dialog__secondary:disabled,
.eg-newsletter-dialog__danger:disabled {
  cursor: wait;
  opacity: .62;
}

.eg-newsletter-dialog__secondary {
  border: 1px solid rgba(11, 15, 25, .14);
  background: #f5f7fa;
  color: #0b0f19;
}

.eg-newsletter-dialog__danger {
  border: 1px solid rgba(180, 35, 35, .20);
  background: #fff;
  color: #a61b1b;
}

.eg-newsletter-dialog__status {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.eg-newsletter-dialog__status[data-state="success"] {
  color: #0b6b3a;
}

.eg-newsletter-dialog__status[data-state="error"] {
  color: #a61b1b;
}

.eg-newsletter-dialog__legal {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(11, 15, 25, .09);
  color: rgba(11, 15, 25, .54);
  font-size: 10.8px;
  line-height: 1.45;
}

.eg-newsletter-state {
  display: grid;
  gap: 14px;
}

.eg-newsletter-state[hidden] {
  display: none !important;
}

.eg-newsletter-state__badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 95, 255, .08);
  color: #0b5fff;
  font-size: 11px;
  font-weight: 800;
}

.eg-newsletter-state h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.eg-newsletter-state p {
  margin: 0;
  color: rgba(11, 15, 25, .68);
  font-size: 12.5px;
  line-height: 1.5;
}

.eg-newsletter-state__actions {
  display: grid;
  gap: 9px;
}

.eg-newsletter-noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 500;
  max-width: 320px;
  padding: 12px;
  border: 1px solid rgba(11,15,25,.14);
  border-radius: 12px;
  background: #fff;
  color: #0b0f19;
  box-shadow: 0 12px 32px rgba(15,23,42,.16);
  font-size: 12px;
}

@media (max-width: 980px) {
  .eg-newsletter-nav {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .eg-newsletter-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 16px;
  }

  .eg-newsletter-dialog__header {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 14px 14px 12px;
  }

  .eg-newsletter-dialog__icon {
    width: 36px;
    height: 36px;
  }

  .eg-newsletter-dialog__body {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-newsletter-trigger,
  .eg-newsletter-signup-form__submit,
  .eg-newsletter-dialog {
    transition: none !important;
  }
}

/* Compatibility layer for the two mobile-navigation generations still present
   in the German pages. This stylesheet is loaded last and restores the
   structures that the final legacy patches in style.css hide. */
@media (max-width: 980px) {
  .eg-ms-mobile .eg-ms-mobile-intro {
    display: block !important;
  }

  .eg-ms-mobile .eg-ms-mobile-nav--grouped {
    display: block !important;
  }

  .eg-ms-mobile .eg-ms-mobile-footer {
    display: block !important;
    flex: 0 0 auto !important;
  }

  header.nav:not(.eg-ms-nav) .links {
    display: none !important;
  }

  header.nav:not(.eg-ms-nav) .icon-btn[data-nav-toggle] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

}
/* ========================================================================== 
   EMAN GROUP — Newsletter popup, compact Microsoft-inspired theme
   Incollare ALLA FINE di /assets/css/newsletter.css
   ========================================================================== */

:root {
  --eg-newsletter-ms-blue: #0067b8;
  --eg-newsletter-ms-blue-dark: #005a9e;
  --eg-newsletter-ms-ink: #1a1a1a;
  --eg-newsletter-ms-muted: #323130;
  --eg-newsletter-ms-line: #d2d0ce;
  --eg-newsletter-ms-soft: #edebe9;
  --eg-newsletter-ms-soft-hover: #e1dfdd;
  --eg-newsletter-ms-white: #ffffff;
}

/* Finestra principale */
.eg-newsletter-dialog {
  position: relative;
  width: min(426px, calc(100vw - 24px));
  max-height: min(432px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--eg-newsletter-ms-blue);
  border-radius: 0;
  background: var(--eg-newsletter-ms-white);
  color: var(--eg-newsletter-ms-ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  font-family: "Segoe UI", Arial, sans-serif;
}

.eg-newsletter-dialog::backdrop {
  background: rgba(255, 255, 255, .66);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.eg-newsletter-dialog__shell {
  max-height: inherit;
}

/* Intestazione compatta: niente icona circolare */
.eg-newsletter-dialog__header {
  position: relative;
  display: block;
  padding: 20px 24px 10px;
  border-bottom: 0;
}

.eg-newsletter-dialog__icon {
  display: none;
}

.eg-newsletter-dialog__heading h2 {
  margin: 0 30px 8px 0;
  color: var(--eg-newsletter-ms-ink);
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 600;
}

.eg-newsletter-dialog__heading p {
  margin: 0 30px 0 0;
  color: var(--eg-newsletter-ms-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.eg-newsletter-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #605e5c;
  font-size: 16px;
  line-height: 1;
  font-weight: 300;
}

.eg-newsletter-dialog__close:hover {
  background: #f3f2f1;
  color: #201f1e;
}

/* Corpo */
.eg-newsletter-dialog__body {
  padding: 0 24px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.eg-newsletter-dialog__intro {
  margin: 0 0 12px;
  color: var(--eg-newsletter-ms-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.eg-newsletter-signup-form {
  gap: 10px;
}

.eg-newsletter-signup-form__field {
  gap: 4px;
  color: var(--eg-newsletter-ms-ink);
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 600;
}

.eg-newsletter-signup-form__field input[type="email"] {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #8a8886;
  border-radius: 0;
  background: #fff;
  color: var(--eg-newsletter-ms-ink);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.25;
  box-shadow: none;
}

.eg-newsletter-signup-form__field input[type="email"]:focus {
  border-color: var(--eg-newsletter-ms-blue);
  outline: 1px solid var(--eg-newsletter-ms-blue);
  outline-offset: 0;
  box-shadow: none;
}

.eg-newsletter-signup-form__consent {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  color: var(--eg-newsletter-ms-muted);
  font-size: 9.8px;
  line-height: 1.35;
}

.eg-newsletter-signup-form__consent input {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  accent-color: var(--eg-newsletter-ms-blue);
}

.eg-newsletter-signup-form__consent a,
.eg-newsletter-dialog__legal a {
  color: var(--eg-newsletter-ms-blue);
  text-underline-offset: 1px;
}

/* Pulsanti squadrati come il popup cookie */
.eg-newsletter-signup-form__submit,
.eg-newsletter-dialog__secondary,
.eg-newsletter-dialog__danger {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 400;
}

.eg-newsletter-signup-form__submit {
  border: 0;
  background: var(--eg-newsletter-ms-blue);
  color: #fff;
}

.eg-newsletter-signup-form__submit:hover {
  border-color: var(--eg-newsletter-ms-blue-dark);
  background: var(--eg-newsletter-ms-blue-dark);
}

.eg-newsletter-dialog__secondary {
  border: 0;
  background: var(--eg-newsletter-ms-soft);
  color: #201f1e;
}

.eg-newsletter-dialog__secondary:hover {
  background: var(--eg-newsletter-ms-soft-hover);
}

.eg-newsletter-dialog__danger {
  border: 0;
  background: var(--eg-newsletter-ms-soft);
  color: #201f1e;
}

.eg-newsletter-dialog__danger:hover {
  background: var(--eg-newsletter-ms-soft-hover);
  color: #201f1e;
}

.eg-newsletter-dialog__status {
  min-height: 14px;
  font-size: 9.8px;
  line-height: 1.35;
}

.eg-newsletter-dialog__legal {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--eg-newsletter-ms-line);
  color: #605e5c;
  font-size: 9.3px;
  line-height: 1.35;
}

/* Stati: iscrizione da confermare / attiva */
.eg-newsletter-state {
  gap: 10px;
}

.eg-newsletter-state__badge {
  padding: 4px 7px;
  border-radius: 0;
  background: #f3f8fc;
  color: var(--eg-newsletter-ms-blue);
  font-size: 9.8px;
  font-weight: 600;
}

.eg-newsletter-state h3 {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 600;
}

.eg-newsletter-state p {
  color: var(--eg-newsletter-ms-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.eg-newsletter-state__actions {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Focus coerente con Microsoft blue */
.eg-newsletter-dialog button:focus-visible,
.eg-newsletter-dialog input:focus-visible,
.eg-newsletter-dialog a:focus-visible {
  outline: 2px solid rgba(0, 103, 184, .4) !important;
  outline-offset: 2px !important;
}

@media (max-width: 520px) {
  .eg-newsletter-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 0;
  }

  .eg-newsletter-dialog__header {
    display: block;
    padding: 17px 18px 8px;
  }

  .eg-newsletter-dialog__body {
    padding: 0 18px 14px;
  }

  .eg-newsletter-state__actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   EMAN GROUP — Newsletter refinements
   ========================================================= */

:root {
  --eman-brand-blue: #2f6df6;
  --eman-brand-blue-hover: #245bd8;
  --eman-brand-blue-focus: rgba(47, 109, 246, 0.25);
}

/* Pulsante principale: blu acceso del sito */
.eg-newsletter-signup-form__submit {
  min-height: 32px;
  border: 1px solid var(--eman-brand-blue);
  border-radius: 2px;

  background: var(--eman-brand-blue);
  color: #ffffff;

  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.eg-newsletter-signup-form__submit:hover {
  border-color: var(--eman-brand-blue-hover);
  background: var(--eman-brand-blue-hover);
}

.eg-newsletter-signup-form__submit:focus-visible {
  outline: 2px solid var(--eman-brand-blue);
  outline-offset: 2px;
}

.eg-newsletter-signup-form__submit:disabled {
  border-color: #a9bfea;
  background: #a9bfea;
  color: #ffffff;
  cursor: not-allowed;
}

/* Campo e-mail: angoli meno arrotondati */
.eg-newsletter-signup-form__field input[type="email"] {
  min-height: 36px;
  padding: 7px 9px;

  border: 1px solid #8a8886;
  border-radius: 4px;

  background: #ffffff;
  box-shadow: none;
}

.eg-newsletter-signup-form__field input[type="email"]:hover {
  border-color: #605e5c;
}

.eg-newsletter-signup-form__field input[type="email"]:focus {
  border-color: var(--eman-brand-blue);
  outline: 1px solid var(--eman-brand-blue);
  box-shadow: 0 0 0 3px var(--eman-brand-blue-focus);
}

/* Contenitore principale */
.eg-newsletter-dialog {
  width: min(426px, calc(100vw - 32px));
  border: 1px solid var(--eman-brand-blue);
  border-radius: 0;
}

/* Mobile: mantiene una finestra compatta e centrata */
@media (max-width: 520px) {
  .eg-newsletter-dialog {
    width: min(390px, calc(100vw - 28px));
    max-width: 390px;
    max-height: calc(100dvh - 28px);
    margin: auto;

    border-radius: 0;
  }

  .eg-newsletter-dialog__header {
    padding: 18px 20px 9px;
  }

  .eg-newsletter-dialog__body {
    padding: 0 20px 16px;
  }

  .eg-newsletter-signup-form__submit {
    width: 100%;
    min-height: 34px;
  }
}

/* Telefoni molto piccoli */
@media (max-width: 360px) {
  .eg-newsletter-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .eg-newsletter-dialog__header {
    padding-inline: 16px;
  }

  .eg-newsletter-dialog__body {
    padding-inline: 16px;
  }
}

/* ==========================================================
   Mobile navigation — newsletter button square only
   ========================================================== */

@media (max-width: 980px) {

  button.eg-mnav-newsletter,
  button.eg-newsletter-mobile-trigger {
    border-radius: 0 !important;

    background: #ffffff !important;
    background-image: none !important;

    border: 1px solid rgba(11, 15, 25, 0.12) !important;
    box-shadow: none !important;

    transform: none !important;
  }

  button.eg-mnav-newsletter:hover,
  button.eg-newsletter-mobile-trigger:hover {
    background: #ffffff !important;
    background-image: none !important;

    border-color: #0b5fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  button.eg-mnav-newsletter:focus-visible,
  button.eg-newsletter-mobile-trigger:focus-visible {
    border-radius: 0 !important;
    outline: 2px solid #0b5fff !important;
    outline-offset: 2px !important;
  }
}

/* ==========================================================
   EMAN GROUP — Newsletter square design on every device
   Deve essere l'ultimo blocco di newsletter.css
   ========================================================== */

/* Campo e-mail completamente squadrato */
.eg-newsletter-signup-form__field input[type="email"],
.eg-newsletter-signup-form__field input[type="email"]:hover,
.eg-newsletter-signup-form__field input[type="email"]:focus,
.eg-newsletter-signup-form__field input[type="email"]:focus-visible {
  border-radius: 0 !important;
}

/* Mantiene il focus blu, ma con forma rettangolare */
.eg-newsletter-signup-form__field input[type="email"]:focus,
.eg-newsletter-signup-form__field input[type="email"]:focus-visible {
  border-color: var(--eman-brand-blue, #2f6df6) !important;
  outline: 1px solid var(--eman-brand-blue, #2f6df6) !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.20) !important;
}

/* Pulsante Newsletter desktop, laptop e tablet */
button.eg-newsletter-trigger,
.eg-newsletter-nav button.eg-newsletter-trigger {
  border-radius: 0 !important;

  background: #ffffff !important;
  background-image: none !important;

  border: 1px solid rgba(11, 15, 25, 0.14) !important;
  box-shadow: none !important;

  transform: none !important;
}

/* Hover: rimane bianco, cambia solo il bordo */
button.eg-newsletter-trigger:hover,
.eg-newsletter-nav button.eg-newsletter-trigger:hover {
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--eman-brand-blue, #2f6df6) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Focus accessibile e squadrato */
button.eg-newsletter-trigger:focus-visible,
.eg-newsletter-nav button.eg-newsletter-trigger:focus-visible {
  border-radius: 0 !important;
  outline: 2px solid var(--eman-brand-blue, #2f6df6) !important;
  outline-offset: 2px !important;
}

/* Versioni presenti nella navigazione mobile */
button.eg-mnav-newsletter,
button.eg-newsletter-mobile-trigger {
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Mantiene circolari soltanto icona e avatar ME */
.eg-newsletter-trigger__icon,
.eg-newsletter-avatar,
.eg-newsletter-mobile-trigger__icon,
.eg-newsletter-mobile-trigger__avatar,
.eg-mnav-newsletter-icon,
.eg-mnav-avatar {
  border-radius: 50% !important;
}

/* ==========================================================
   UI18 — global newsletter action
   Fixed on every page, responsive, keyboard accessible and
   visually consistent with the sharp Microsoft-style UI.
   ========================================================== */
.eg-newsletter-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.eg-newsletter-fab{
  position:fixed;
  right:max(18px,env(safe-area-inset-right));
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:70;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #084bd2;
  border-radius:0;
  background:#1557f5;
  color:#fff;
  box-shadow:0 10px 28px rgba(15,45,105,.22),0 2px 5px rgba(15,45,105,.16);
  cursor:pointer;
  isolation:isolate;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease,opacity .16s ease;
}

.eg-newsletter-fab:hover{
  border-color:#073da9;
  background:#0d49d8;
  box-shadow:0 13px 34px rgba(15,45,105,.27),0 2px 6px rgba(15,45,105,.18);
  transform:translateY(-1px);
}

.eg-newsletter-fab:focus-visible{
  outline:3px solid rgba(21,87,245,.26)!important;
  outline-offset:3px!important;
}

.eg-newsletter-fab__icon,
.eg-newsletter-fab__icon svg{
  width:23px;
  height:23px;
  display:block;
}

.eg-newsletter-fab__badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:19px;
  height:19px;
  display:grid;
  place-items:center;
  padding:0 4px;
  border:2px solid #fff;
  border-radius:0;
  background:#101828;
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:800;
}

.eg-newsletter-fab__badge[hidden]{
  display:none!important;
}

.eg-newsletter-fab.is-pending .eg-newsletter-fab__badge{
  background:#f59a0b;
  color:#101828;
}

.eg-newsletter-fab.is-subscribed .eg-newsletter-fab__badge{
  background:#087a55;
}

.eg-newsletter-fab::after{
  content:attr(data-tooltip);
  position:absolute;
  right:calc(100% + 10px);
  top:50%;
  min-width:max-content;
  padding:7px 9px;
  border:1px solid #cfd7e3;
  border-radius:0;
  background:#fff;
  color:#25324a;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
  font-size:11px;
  line-height:1.2;
  font-weight:700;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transform:translate(4px,-50%);
  transition:opacity .14s ease,transform .14s ease;
}

.eg-newsletter-fab:hover::after,
.eg-newsletter-fab:focus-visible::after{
  opacity:1;
  transform:translate(0,-50%);
}

body.eg-consent-open .eg-newsletter-fab,
body.nav-open .eg-newsletter-fab,
body.eg-nav-open .eg-newsletter-fab{
  opacity:0;
  pointer-events:none;
}

/* Sharp Microsoft-style newsletter dialog and controls. */
.eg-newsletter-dialog,
.eg-newsletter-dialog__icon,
.eg-newsletter-dialog__close,
.eg-newsletter-state__badge,
.eg-newsletter-signup-form__field input[type="email"],
.eg-newsletter-signup-form__submit,
.eg-newsletter-dialog__secondary,
.eg-newsletter-dialog__danger,
.eg-newsletter-mobile-trigger,
.eg-newsletter-mobile-trigger__icon,
.eg-newsletter-mobile-trigger__avatar{
  border-radius:0!important;
}

@media (max-width:600px){
  .eg-newsletter-fab{
    right:max(14px,env(safe-area-inset-right));
    bottom:max(14px,env(safe-area-inset-bottom));
    width:46px;
    height:46px;
  }

  .eg-newsletter-fab__icon,
  .eg-newsletter-fab__icon svg{
    width:21px;
    height:21px;
  }

  .eg-newsletter-fab::after{
    display:none;
  }

  .eg-newsletter-dialog{
    width:min(420px,calc(100vw - 20px));
    max-height:calc(100dvh - 20px);
  }
}

@media (max-width:360px){
  .eg-newsletter-fab{
    right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));
    width:44px;
    height:44px;
  }
}

@media (prefers-reduced-motion:reduce){
  .eg-newsletter-fab,
  .eg-newsletter-fab::after{
    transition:none!important;
  }
}


/* ==========================================================
   UI19 — public newsletter launcher excluded from portals
   The Kundenportal keeps its account communication settings,
   while customer and admin workspaces remain free of the
   public floating newsletter control.
   ========================================================== */
.eg-portal-body .eg-newsletter-fab,
.eg-portal-body .eg-newsletter-dialog,
.eg-admin-body .eg-newsletter-fab,
.eg-admin-body .eg-newsletter-dialog,
.eg-admin-login-body .eg-newsletter-fab,
.eg-admin-login-body .eg-newsletter-dialog{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* ==========================================================
   UI20 — intelligent public quick-action hub
   Replaces the single newsletter launcher with one compact,
   accessible Microsoft-style control containing Newsletter,
   Kontakt and Barrierefreiheit. Portals remain excluded.
   ========================================================== */
.eg-newsletter-fab{
  display:none!important;
}

.eg-service-hub{
  position:fixed;
  right:max(18px,env(safe-area-inset-right));
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:72;
  display:grid;
  justify-items:end;
  gap:10px;
  pointer-events:none;
}

.eg-service-hub__toggle,
.eg-service-hub__menu{
  pointer-events:auto;
}

.eg-service-hub__toggle{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #084bd2;
  border-radius:0;
  background:#1557f5;
  color:#fff;
  box-shadow:0 10px 28px rgba(15,45,105,.22),0 2px 5px rgba(15,45,105,.16);
  cursor:pointer;
  isolation:isolate;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.eg-service-hub__toggle:hover{
  border-color:#073da9;
  background:#0d49d8;
  box-shadow:0 13px 34px rgba(15,45,105,.27),0 2px 6px rgba(15,45,105,.18);
  transform:translateY(-1px);
}

.eg-service-hub__toggle:focus-visible,
.eg-service-hub__action:focus-visible{
  outline:3px solid rgba(21,87,245,.27)!important;
  outline-offset:3px!important;
}

.eg-service-hub__toggle-icon{
  grid-area:1/1;
  display:grid;
  place-items:center;
  transition:opacity .14s ease,transform .18s ease;
}

.eg-service-hub__toggle-icon--grid,
.eg-service-hub__toggle-icon--grid svg{
  width:23px;
  height:23px;
}

.eg-service-hub__toggle-icon--close{
  opacity:0;
  transform:rotate(-45deg) scale(.75);
  font-size:29px;
  line-height:1;
  font-weight:300;
}

.eg-service-hub.is-open .eg-service-hub__toggle-icon--grid{
  opacity:0;
  transform:rotate(45deg) scale(.75);
}

.eg-service-hub.is-open .eg-service-hub__toggle-icon--close{
  opacity:1;
  transform:rotate(0) scale(1);
}

.eg-service-hub__menu{
  width:min(258px,calc(100vw - 36px));
  max-height:calc(100dvh - 92px - env(safe-area-inset-bottom));
  display:grid;
  gap:6px;
  padding:7px;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #cfd7e3;
  border-radius:0;
  background:#fff;
  box-shadow:0 18px 48px rgba(15,23,42,.18),0 2px 7px rgba(15,23,42,.08);
  transform-origin:bottom right;
  animation:eg-service-hub-in .16s ease-out both;
}

.eg-service-hub__menu[hidden]{
  display:none!important;
}

.eg-service-hub__action{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 24px;
  align-items:center;
  gap:10px;
  margin:0;
  padding:8px 9px;
  border:1px solid transparent;
  border-radius:0;
  background:#fff;
  color:#172238;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:background .14s ease,border-color .14s ease,color .14s ease;
}

.eg-service-hub__action:hover{
  border-color:#d9e2ef;
  background:#f4f7fc;
  color:#0d49d8;
}

.eg-service-hub__action[aria-current="page"]{
  border-color:#b8ccf8;
  background:#eef4ff;
  color:#0d49d8;
}

.eg-service-hub__action-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #d9e2ef;
  border-radius:0;
  background:#f7f9fc;
  color:#1557f5;
}

.eg-service-hub__action-icon svg{
  width:20px;
  height:20px;
  display:block;
}

.eg-service-hub__action-copy{
  min-width:0;
  display:grid;
  gap:2px;
}

.eg-service-hub__action-copy strong{
  color:inherit;
  font-size:12px;
  line-height:1.15;
  font-weight:800;
}

.eg-service-hub__action-copy small{
  overflow:hidden;
  color:#69758a;
  font-size:10.5px;
  line-height:1.25;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.eg-service-hub__action.is-pending .eg-service-hub__action-copy small,
.eg-service-hub__action.is-subscribed .eg-service-hub__action-copy small{
  color:#1557f5;
}

.eg-service-hub__arrow{
  justify-self:end;
  color:#6f7d93;
  font-size:17px;
  line-height:1;
}

.eg-service-hub__status{
  justify-self:end;
  min-width:18px;
  height:18px;
  display:grid;
  place-items:center;
  padding:0 4px;
  border:1px solid #fff;
  border-radius:0;
  background:#101828;
  color:#fff;
  font-size:9px;
  line-height:1;
  font-weight:800;
  box-shadow:0 0 0 1px #cfd7e3;
}

.eg-service-hub__status[hidden]{
  display:none!important;
}

.eg-service-hub__action.is-pending .eg-service-hub__status{
  background:#f59a0b;
  color:#101828;
}

.eg-service-hub__action.is-subscribed .eg-service-hub__status{
  background:#087a55;
}

body.eg-consent-open .eg-service-hub,
body.nav-open .eg-service-hub,
body.eg-nav-open .eg-service-hub{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.eg-portal-body .eg-service-hub,
.eg-admin-body .eg-service-hub,
.eg-admin-login-body .eg-service-hub{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

@keyframes eg-service-hub-in{
  from{opacity:0;transform:translateY(7px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@media (max-width:600px){
  .eg-service-hub{
    right:max(14px,env(safe-area-inset-right));
    bottom:max(14px,env(safe-area-inset-bottom));
    gap:8px;
  }

  .eg-service-hub__toggle{
    width:46px;
    height:46px;
  }

  .eg-service-hub__toggle-icon--grid,
  .eg-service-hub__toggle-icon--grid svg{
    width:21px;
    height:21px;
  }

  .eg-service-hub__menu{
    width:min(244px,calc(100vw - 28px));
    padding:6px;
  }

  .eg-service-hub__action{
    min-height:54px;
    grid-template-columns:34px minmax(0,1fr) 22px;
    gap:9px;
    padding:7px 8px;
  }

  .eg-service-hub__action-icon{
    width:32px;
    height:32px;
  }

  .eg-service-hub__action-icon svg{
    width:18px;
    height:18px;
  }
}

@media (max-width:360px){
  .eg-service-hub{
    right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));
  }

  .eg-service-hub__toggle{
    width:44px;
    height:44px;
  }

  .eg-service-hub__menu{
    width:min(232px,calc(100vw - 20px));
  }
}

@media (prefers-reduced-motion:reduce){
  .eg-service-hub__toggle,
  .eg-service-hub__toggle-icon,
  .eg-service-hub__action{
    transition:none!important;
  }

  .eg-service-hub__menu{
    animation:none!important;
  }
}


.eg-service-hub__toggle-icon--grid{
  width:38px!important;
  height:38px!important;
  display:grid!important;
  place-items:center!important;
  line-height:0!important;
}

.eg-service-hub__toggle-icon--grid svg{
  width:38px!important;
  height:38px!important;
  display:block!important;
  overflow:visible!important;
}


@media (max-width:720px){
  .eg-service-hub__toggle-icon--grid,
  .eg-service-hub__toggle-icon--grid svg{
    width:36px!important;
    height:36px!important;
  }
}

/* ==========================================================
   Smart Service Hub — X centrata e stato iniziale pulito
   ========================================================== */

/* X costruita geometricamente, senza dipendere dal carattere × */
.eg-service-hub__toggle-icon--close{
  position:relative!important;
  width:32px!important;
  height:32px!important;
  display:block!important;
  font-size:0!important;
  line-height:0!important;
  transform-origin:center!important;
}

.eg-service-hub__toggle-icon--close::before,
.eg-service-hub__toggle-icon--close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:28px;
  height:2px;
  background:currentColor;
  transform-origin:center;
}

.eg-service-hub__toggle-icon--close::before{
  transform:translate(-50%,-50%) rotate(45deg);
}

.eg-service-hub__toggle-icon--close::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}

/* La X resta esattamente al centro quando il menu è aperto */
.eg-service-hub.is-open .eg-service-hub__toggle-icon--close{
  opacity:1!important;
  transform:none!important;
}

/* Nessuna marcatura blu permanente sulla prima voce */
.eg-service-hub__action:focus{
  outline:none!important;
}

/* Focus accessibile ma più discreto quando si usa la tastiera */
.eg-service-hub__action:focus-visible{
  outline:1px solid #98a2b3!important;
  outline-offset:-1px!important;
  border-color:#cfd7e3!important;
  background:#f7f9fc!important;
  color:#172238!important;
  box-shadow:none!important;
}

/* Evita che Newsletter sembri selezionata senza interazione */
.eg-service-hub__action:not(:hover):not([aria-current="page"]){
  border-color:transparent;
  background:#fff;
  color:#172238;
}

@media (max-width:600px){
  .eg-service-hub__toggle-icon--close{
    width:30px!important;
    height:30px!important;
  }

  .eg-service-hub__toggle-icon--close::before,
  .eg-service-hub__toggle-icon--close::after{
    width:25px;
  }
}