/* Firma DoubleN: il testo "Firmato" è centrato rispetto al blocco logo/nome. */
.dn-signature {
  --dn-signature-ink: #12315a;
  --dn-signature-muted: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 5px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: var(--dn-signature-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}
.dn-signature * { box-sizing: border-box; }
.dn-signature__prefix { font-size: 11.5px; line-height: 1.4; }
.dn-signature__lockup { display: grid; justify-items: center; align-content: center; gap: 3px; }
.dn-signature__mark { display: block; width: 30px; height: 18px; }
.dn-signature__name { color: var(--dn-signature-ink); font-size: 11px; font-weight: 750; line-height: 1; letter-spacing: -.025em; }
.dn-signature:hover .dn-signature__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dn-signature:focus-visible { outline: 2px solid var(--dn-signature-ink); outline-offset: 4px; }
.dn-signature--dark { --dn-signature-ink: #f8fafc; --dn-signature-muted: #cbd5e1; }

/* Integration with the site's dark footer, shop themes and Lume. */
.dn-footer-credit { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 72rem; margin: 0 auto; padding: .75rem 1rem; box-sizing: border-box; }
.dark .dn-footer-credit[data-dn-theme="auto"] .dn-signature { --dn-signature-ink: #f8fafc; --dn-signature-muted: #cbd5e1; }
#lume-menu .lm-footer > .dn-footer-credit { grid-column: 1 / -1; max-width: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--lm-line); justify-content: center; flex-direction: row; }
#lume-menu .dn-signature { --dn-signature-ink: var(--lm-ink); --dn-signature-muted: var(--lm-muted); min-height: 48px; color: var(--dn-signature-muted); font-size: 12px; line-height: 1.4; text-decoration: none; }
@media print { .dn-footer-credit, .dn-contact-dialog { display: none !important; } }

/* Il popup è indipendente dal tema del sito che ospita la firma. */
.dn-contact-dialog, .dn-contact-dialog * { box-sizing: border-box; }
.dn-contact-dialog {
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #dbe3ec;
  border-radius: 18px;
  background: #f8fafc;
  color: #0b1f3a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  color-scheme: light;
  box-shadow: 0 28px 100px #0b1f3a40;
}
.dn-contact-dialog::backdrop { background: #0b1f3aa6; }
.dn-contact-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.dn-contact-dialog__brand { display: flex; align-items: center; gap: 10px; color: #12315a; }
.dn-contact-dialog__brand svg { display: block; width: 34px; height: 20.4px; flex: 0 0 34px; }
.dn-contact-dialog__brand strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.dn-contact-dialog__brand small { display: block; margin-top: 3px; color: #475569; font-size: 9px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.dn-contact-dialog__close { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border: 1px solid #dbe3ec; border-radius: 50%; background: #fff; color: #12315a; cursor: pointer; }
.dn-contact-dialog__close:hover { background: #eaf0f6; }
.dn-contact-dialog__close svg { width: 17px; height: 17px; }
.dn-contact-dialog__body { padding: 20px 24px 24px; }
.dn-contact-dialog__eyebrow { margin: 0 0 9px; color: #b9470b; font-size: 10px; font-weight: 750; line-height: 1.4; letter-spacing: .11em; text-transform: uppercase; }
.dn-contact-dialog__title { margin: 0 0 12px; color: #0b1f3a; font-family: inherit; font-size: clamp(25px, 6vw, 30px); font-weight: 750; line-height: 1.15; letter-spacing: -.045em; }
.dn-contact-dialog__intro { margin: 0 0 20px; color: #475569; font-size: 13px; line-height: 1.65; }
.dn-contact-dialog__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.dn-contact-card { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; min-height: 86px; margin: 0; padding: 13px; border: 1px solid #dbe3ec; border-radius: 10px; background: #fff; color: #12315a; text-decoration: none; }
a.dn-contact-card:hover { border-color: #12315a; background: #f0f5fa; text-decoration: none; }
.dn-contact-card__label { display: flex; align-items: center; gap: 7px; color: #475569; font-size: 10px; font-weight: 650; line-height: 1.25; letter-spacing: .035em; text-transform: uppercase; }
.dn-contact-card__label svg { display: block; width: 15px; height: 15px; flex: 0 0 15px; }
.dn-contact-card__value { display: block; overflow-wrap: anywhere; color: #12315a; font-size: 12px; font-weight: 650; line-height: 1.4; }
.dn-contact-card--pending { background: #f1f5f9; }
.dn-contact-card--pending .dn-contact-card__value { color: #56657a; font-weight: 400; }
.dn-contact-dialog__cta { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 12px 16px; border: 0; border-radius: 9px; background: #f97316; color: #0b1f3a; font-size: 13px; font-weight: 750; line-height: 1.4; text-align: center; text-decoration: none; }
.dn-contact-dialog__cta:hover { background: #fb923c; color: #0b1f3a; text-decoration: none; }
.dn-contact-dialog__cta svg { display: block; width: 17px; height: 17px; flex: 0 0 17px; }
.dn-contact-dialog__note { margin: 12px 0 0; color: #56657a; font-size: 10.5px; line-height: 1.5; text-align: center; }
.dn-contact-dialog a:focus-visible, .dn-contact-dialog button:focus-visible { outline: 2px solid #12315a; outline-offset: 3px; }
@media (max-width: 360px) {
  .dn-contact-dialog__header { padding: 16px 16px 0; }
  .dn-contact-dialog__body { padding: 16px; }
  .dn-contact-dialog__contacts { gap: 8px; }
  .dn-contact-card { padding: 11px; }
}
