/* Tutte le regole sono isolate dal CSS del sito. Nessuna risorsa esterna. */
.ec-banner, .ec-dialog, .ec-reopen, .ec-embed, .ec-noscript {
  --ec-teal: #c9007b; --ec-dark: #182538; --ec-muted: #64748b;
  --ec-line: #dce6e5; font-family: "Inter", system-ui, sans-serif; color: var(--ec-dark);
  box-sizing: border-box; line-height: 1.5; text-align: left;
}
.ec-banner *, .ec-dialog *, .ec-embed * { box-sizing: border-box; }
.ec-banner[hidden], .ec-reopen[hidden], .ec-embed [hidden] { display: none !important; }
.ec-banner { position: fixed; z-index: 100000; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 44px)); max-height: 85dvh; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px 36px;
  padding: 28px 32px; border: 1px solid var(--ec-line); border-top: 4px solid var(--ec-teal);
  border-radius: 20px; background: #fff; box-shadow: 0 14px 70px #0d353530;
}
.ec-eyebrow { display: block; font-size: 10px; line-height: 1.6; letter-spacing: .13em; font-weight: 700; color: var(--ec-teal); }
.ec-banner h2, .ec-dialog h2 { font-family: "Space Grotesk", "Inter", sans-serif; font-size: 27px; line-height: 1.15; letter-spacing: -.025em; margin: 8px 0 12px; color: var(--ec-dark); font-weight: 600; }
.ec-banner p { font-size: 13px; margin: 0; color: var(--ec-muted); line-height: 1.7; }
.ec-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 13px; font-size: 12px; }
.ec-links a, .ec-detail a, .ec-noscript a { color: var(--ec-teal); text-decoration: underline; text-underline-offset: 3px; }
.ec-banner-actions { display: grid; gap: 9px; align-content: center; }
.ec-button, .ec-text-button, .ec-close, .ec-embed button { appearance: none; cursor: pointer; font-family: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.ec-button { width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ec-teal); border-radius: 9px;
  background: #fff; color: var(--ec-teal); font-size: 13px; font-weight: 700; line-height: 1.4; }
.ec-button:hover { background: #edf5f4; }
.ec-button:disabled { cursor: wait; opacity: .55; }
.ec-text-button { border: 0; background: transparent; color: var(--ec-teal); padding: 8px 4px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ec-status { grid-column: 1 / -1; font-size: 12px !important; color: #8a3d22 !important; }
.ec-status:empty { display: none; }
.ec-reopen { position: fixed; bottom: 12px; left: 12px; z-index: 99998; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #d4e1df; border-radius: 30px; background: #fff; box-shadow: 0 2px 14px #0d35351a; padding: 8px 12px; font-size: 11px; cursor: pointer; }
body:has(.ec-banner:not([hidden])) .ec-reopen { visibility: hidden; }
.ec-dialog { width: min(680px, calc(100% - 28px)); max-height: min(90dvh, 900px); padding: 0; border: 1px solid var(--ec-line); border-radius: 20px; background: #fff; margin: auto; box-shadow: 0 24px 100px #0004; overflow: auto; }
.ec-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.ec-dialog-header, .ec-dialog-footer { flex-shrink: 0; }
.ec-dialog::backdrop { background: #061d25a6; backdrop-filter: blur(3px); }
.ec-dialog-open { overflow: hidden; }
.ec-dialog-header { padding: 25px 28px 20px; border-bottom: 1px solid var(--ec-line); display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ec-dialog-header h2 { margin-bottom: 0; }
.ec-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--ec-line); border-radius: 50%; background: #f5f8f7; color: var(--ec-dark); font-size: 27px; line-height: 1; }
.ec-dialog-body { padding: 20px 28px; min-height: 0; overflow-y: auto; }
.ec-dialog-body > p { margin: 0 0 20px; color: var(--ec-muted); font-size: 13px; }
.ec-category { position: relative; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--ec-line); margin: 0; cursor: pointer; }
.ec-category > div, .ec-category > span:first-child { flex: 1; }
.ec-category h3, .ec-category-title { display: block; margin: 0 0 5px; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--ec-dark); }
.ec-category p, .ec-category-description { display: block; margin: 0; font-size: 12px; line-height: 1.7; color: var(--ec-muted); font-weight: 400; }
.ec-always { color: var(--ec-teal); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ec-category input { position: absolute; z-index: 1; right: 0; width: 46px; height: 26px; opacity: 0; margin: 0; cursor: pointer; }
.ec-switch { position: relative; display: block; width: 46px; height: 26px; flex: 0 0 46px; border-radius: 30px; background: #b9c7c6; transition: background .15s; }
.ec-switch::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0002; transition: transform .15s; }
.ec-category input:checked + .ec-switch { background: var(--ec-teal); }
.ec-category input:checked + .ec-switch::after { transform: translateX(20px); }
.ec-category input:focus-visible + .ec-switch { outline: 3px solid #005fff; outline-offset: 4px; }
.ec-detail { margin: 15px 0 0 !important; font-size: 11px !important; }
.ec-dialog-footer { padding: 18px 28px 24px; border-top: 1px solid var(--ec-line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; background: #f7faf9; }
.ec-button-save { color: #fff; background: var(--ec-teal); }
.ec-button-save:hover { background: var(--ec-dark); }
.ec-banner :focus-visible, .ec-dialog :focus-visible, .ec-reopen:focus-visible, .ec-embed :focus-visible { outline: 3px solid #005fff; outline-offset: 3px; }
.ec-embed { position: relative; width: 100%; min-height: 300px; background: #edf3f2; border: 1px solid var(--ec-line); border-radius: 16px; overflow: hidden; }
.ec-embed-notice { min-height: 300px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.ec-embed-symbol { font-size: 32px; color: var(--ec-teal); }
.ec-embed-notice strong { font-size: 18px; }
.ec-embed-notice p { max-width: 470px; margin: 0; font-size: 13px; color: var(--ec-muted); }
.ec-embed button { border: 1px solid var(--ec-teal); border-radius: 8px; padding: 10px 16px; color: var(--ec-teal); background: #fff; font-weight: 600; font-size: 13px; }
.ec-embed iframe { display: block; width: 100%; height: clamp(300px, 40vw, 480px); border: 0; }
.ec-noscript { margin: 16px; padding: 12px; background: #f4f8f7; font-size: 13px; }
@media (max-width: 720px) {
  .ec-banner { width: calc(100% - 20px); bottom: 10px; grid-template-columns: 1fr; gap: 18px; padding: 20px; border-radius: 16px; }
  .ec-banner h2 { font-size: 25px; }
  .ec-banner-actions { grid-template-columns: 1fr 1fr; }
  .ec-text-button { grid-column: 1 / -1; }
  .ec-dialog-header, .ec-dialog-body, .ec-dialog-footer { padding: 18px; }
  .ec-dialog h2 { font-size: 25px; }
  .ec-dialog-footer { grid-template-columns: 1fr 1fr; }
  .ec-button-save { grid-column: 1 / -1; }
  .ec-category { gap: 12px; }
  .ec-always { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ec-switch, .ec-switch::after { transition: none; } }
@media print { .ec-banner, .ec-dialog, .ec-reopen { display: none !important; } }

/* Informativa locale sopra la pagina: nessuna modifica alla scelta cookie. */
html.ec-document-is-open { overflow: hidden; }
.ec-document-dialog { width: min(980px, calc(100% - 28px)); height: min(88dvh, 850px); }
.ec-document-frame { display: block; flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #fff; }
.ec-document-footer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.ec-document-footer > a { color: var(--ec-teal); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.ec-button-save { background:var(--primary) !important; }
