#megapos-gdpr-banner{
  --mpgdpr-bg:#ffffff;
  --mpgdpr-text:#1a1a1a;
  --mpgdpr-muted:#5a6570;
  --mpgdpr-primary:#1b6bc8;
  --mpgdpr-primary-hover:#1557a3;
  --mpgdpr-accept:#1b6bc8;
  --mpgdpr-accept-text:#ffffff;
  --mpgdpr-accept-border:#1b6bc8;
  --mpgdpr-reject:#ffffff;
  --mpgdpr-reject-text:#1b6bc8;
  --mpgdpr-reject-border:#1b6bc8;
  --mpgdpr-prefs:#f3f6fa;
  --mpgdpr-prefs-text:#1b6bc8;
  --mpgdpr-prefs-border:#f3f6fa;
  --mpgdpr-overlay:rgba(15,35,65,.55);
  --mpgdpr-radius:12px;
  --mpgdpr-link:#1b6bc8;
  position:fixed;z-index:999999;left:0;right:0;bottom:0;padding:16px;
  background:var(--mpgdpr-overlay);box-sizing:border-box;
  font-family:inherit;color:var(--mpgdpr-text);
}
#megapos-gdpr-banner[hidden]{display:none}
#megapos-gdpr-banner.mpgdpr-pos-center{
  top:0;bottom:0;display:flex;align-items:center;justify-content:center;
}
#megapos-gdpr-banner.mpgdpr-pos-center[hidden]{display:none}
.mpgdpr-box{
  max-width:920px;margin:0 auto;background:var(--mpgdpr-bg);
  padding:28px 30px;border-radius:var(--mpgdpr-radius);
  box-shadow:0 12px 48px rgba(15,35,65,.22);
  border-top:4px solid var(--mpgdpr-primary);
}
.mpgdpr-box h2{margin:0 0 10px;font-size:1.35rem;color:var(--mpgdpr-text);font-weight:700}
.mpgdpr-box p{margin:8px 0 14px;color:var(--mpgdpr-muted);line-height:1.5}
.mpgdpr-box a{color:var(--mpgdpr-link);font-weight:600;text-decoration:underline}
.mpgdpr-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.mpgdpr-actions button,.mpgdpr-preferences-inline button,.mpgdpr-preferences button{
  padding:11px 18px;cursor:pointer;border-radius:8px;font-weight:600;
  font-size:.95rem;border:2px solid transparent;transition:background .15s,color .15s,border-color .15s;
}
.mpgdpr-actions button[data-mpgdpr-action="accept"]{
  background:var(--mpgdpr-accept);color:var(--mpgdpr-accept-text);border-color:var(--mpgdpr-accept-border);
}
.mpgdpr-actions button[data-mpgdpr-action="accept"]:hover{filter:brightness(.95)}
.mpgdpr-actions button[data-mpgdpr-action="reject"]{
  background:var(--mpgdpr-reject);color:var(--mpgdpr-reject-text);border-color:var(--mpgdpr-reject-border);
}
.mpgdpr-actions button[data-mpgdpr-action="preferences"]{
  background:var(--mpgdpr-prefs);color:var(--mpgdpr-prefs-text);border-color:var(--mpgdpr-prefs-border);
}
.mpgdpr-preferences{margin-top:16px;padding-top:16px;border-top:1px solid #e4eaf1}
.mpgdpr-switches{
  display:flex;flex-wrap:wrap;gap:12px 18px;align-items:stretch;margin:0 0 14px;
}
.mpgdpr-switch{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-width:150px;flex:1 1 150px;padding:10px 12px;
  background:#f7f9fc;border:1px solid #e4eaf1;border-radius:10px;
}
.mpgdpr-switch-label{font-weight:600;color:var(--mpgdpr-text);font-size:.92rem}
.mpgdpr-toggle{position:relative;display:inline-block;width:46px;height:26px;flex:0 0 auto}
.mpgdpr-toggle input{opacity:0;width:0;height:0;position:absolute}
.mpgdpr-slider{
  position:absolute;cursor:pointer;inset:0;background:#c5cdd8;border-radius:999px;
  transition:background .2s;
}
.mpgdpr-slider:before{
  content:"";position:absolute;height:20px;width:20px;left:3px;top:3px;
  background:#fff;border-radius:50%;transition:transform .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.mpgdpr-toggle input:checked + .mpgdpr-slider{background:var(--mpgdpr-primary,#1b6bc8)}
.mpgdpr-toggle input:checked + .mpgdpr-slider:before{transform:translateX(20px)}
.mpgdpr-toggle input:disabled + .mpgdpr-slider{opacity:.85;cursor:default;background:#9db7d8}
.mpgdpr-switch--locked{opacity:.95}
.mpgdpr-preferences button{
  margin-top:4px;background:var(--mpgdpr-primary);color:#fff;border-color:var(--mpgdpr-primary);
}
.mpgdpr-preferences-inline button{
  background:var(--mpgdpr-prefs);color:var(--mpgdpr-prefs-text);border:2px solid transparent;
}
.mpgdpr-float-prefs{
  position:fixed;z-index:999998;left:16px;right:auto;bottom:16px;
  width:48px;height:48px;padding:0;border:0;border-radius:50%;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:var(--mpgdpr-primary,#1b6bc8);color:#fff;
  box-shadow:0 6px 20px rgba(15,35,65,.25);
  transition:background .15s,transform .15s;
}
.mpgdpr-float-prefs:hover{background:var(--mpgdpr-primary-hover,#1557a3)}
.mpgdpr-float-prefs:focus-visible{outline:3px solid rgba(27,107,200,.55);outline-offset:2px}
.mpgdpr-float-prefs svg{display:block}
.mpgdpr-float-a11y{bottom:74px}
.mpgdpr-links{font-size:.95rem}
@media(max-width:600px){
  .mpgdpr-box{padding:20px}
  .mpgdpr-actions{flex-direction:column}
  .mpgdpr-actions button{width:100%}
  .mpgdpr-float-prefs{left:auto;right:10px;bottom:16px;width:44px;height:44px}
  .mpgdpr-float-a11y{left:10px;right:auto;bottom:16px;width:44px;height:44px}
}
/* --- Pannello accessibilita (pulsante accessibilita) --- */
.mpgdpr-a11y-panel{
  position:fixed;z-index:999997;left:16px;bottom:132px;width:272px;
  background:#fff;border:1px solid #e4eaf1;border-radius:14px;
  box-shadow:0 14px 44px rgba(15,35,65,.22);
  padding:16px 16px 14px;box-sizing:border-box;
  font-family:inherit;color:#1a1a1a;
}
.mpgdpr-a11y-panel[hidden]{display:none}
.mpgdpr-a11y-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.mpgdpr-a11y-title{font-weight:700;font-size:.98rem;color:#14213d}
.mpgdpr-a11y-close{
  border:0;background:#f3f6fa;color:#5a6570;width:26px;height:26px;border-radius:50%;
  font-size:1.1rem;line-height:1;cursor:pointer;padding:0;
}
.mpgdpr-a11y-close:hover{background:#e4eaf1}
.mpgdpr-a11y-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 0;border-bottom:1px solid #f0f3f8;
}
.mpgdpr-a11y-label{font-weight:600;font-size:.88rem;color:#1a1a1a}
.mpgdpr-a11y-zoom{display:flex;align-items:center;gap:8px}
.mpgdpr-a11y-zoom button{
  width:34px;height:34px;border:1px solid #c5cdd8;background:#fff;color:#14213d;
  border-radius:50%;font-size:1rem;font-weight:700;cursor:pointer;line-height:1;padding:0;
}
.mpgdpr-a11y-zoom button:hover{background:#f3f6fa}
.mpgdpr-a11y-zoom-val{min-width:46px;text-align:center;font-size:.82rem;font-weight:600;color:#5a6570}
.mpgdpr-a11y-reset{
  display:block;width:100%;margin-top:14px;padding:10px;border:2px solid transparent;border-radius:8px;
  background:var(--mpgdpr-primary,#1b6bc8);color:#fff;font-weight:600;font-size:.9rem;cursor:pointer;
}
.mpgdpr-a11y-reset:hover{background:var(--mpgdpr-primary-hover,#1557a3)}
@media(max-width:600px){
  .mpgdpr-a11y-panel{left:10px;bottom:85px;width:252px}
}
/* --- Effetti accessibilita (classi applicate su <html> da megapos-a11y.js) --- */
html.mgd-a11y-contrast body{color:#000 !important;background:#fff !important}
html.mgd-a11y-contrast .topbar,
html.mgd-a11y-contrast .navbar,
html.mgd-a11y-contrast .navbar-default,
html.mgd-a11y-contrast .navbar-default .navbar-nav > li > a,
html.mgd-a11y-contrast .navbar-default .navbar-topbar li a,
html.mgd-a11y-contrast .mp-topbar-text,
html.mgd-a11y-contrast .footer,
html.mgd-a11y-contrast .container,
html.mgd-a11y-contrast .entry-content,
html.mgd-a11y-contrast p,
html.mgd-a11y-contrast li{color:#000 !important}
html.mgd-a11y-contrast a{color:#0000c8 !important;text-decoration:underline !important}
html.mgd-a11y-links a{text-decoration:underline !important}
html.mgd-a11y-bw img,
html.mgd-a11y-bw video,
html.mgd-a11y-bw picture{filter:grayscale(1) !important;-webkit-filter:grayscale(1) !important}
html.mgd-a11y-motion *,
html.mgd-a11y-motion *::before,
html.mgd-a11y-motion *::after{
  animation:none !important;animation-duration:.001s !important;
  transition:none !important;transition-duration:.001s !important;
  scroll-behavior:auto !important;
}
/* --- Modale Privacy/Termini (stile Iubenda) --- */
#mpgdpr-modal{
  position:fixed;z-index:1000000;inset:0;
  background:var(--mpgdpr-overlay,rgba(15,35,65,.55));
  display:flex;align-items:center;justify-content:center;
  padding:20px;box-sizing:border-box;
}
#mpgdpr-modal[hidden]{display:none}
body.mpgdpr-modal-open{overflow:hidden}
.mpgdpr-modal-box{
  max-width:920px;width:100%;max-height:calc(100vh - 40px);
  background:var(--mpgdpr-bg,#fff);
  border-radius:var(--mpgdpr-radius,12px);
  box-shadow:0 12px 48px rgba(15,35,65,.22);
  border-top:4px solid var(--mpgdpr-primary,#1b6bc8);
  display:flex;flex-direction:column;overflow:hidden;
}
.mpgdpr-modal-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 30px 10px;gap:16px;border-bottom:1px solid #f0f3f8;
}
.mpgdpr-modal-title{
  margin:0;font-size:1.25rem;font-weight:700;color:var(--mpgdpr-text,#1a1a1a);
}
.mpgdpr-modal-close{
  border:0;background:#f3f6fa;color:#5a6570;width:34px;height:34px;border-radius:50%;
  font-size:1.4rem;line-height:1;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;
}
.mpgdpr-modal-close:hover{background:#e4eaf1}
.mpgdpr-modal-body{
  padding:22px 30px 30px;overflow:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;
}
.mpgdpr-modal-content > *{max-width:100%}
.mpgdpr-modal-content img{max-width:100%;height:auto}
.mpgdpr-modal-content table{max-width:100%;display:block;overflow-x:auto}
.mpgdpr-modal-content a{color:var(--mpgdpr-link,#1b6bc8)}
@media(max-width:600px){
  .mpgdpr-modal-header{padding:16px 20px 8px}
  .mpgdpr-modal-body{padding:16px 18px 22px}
  .mpgdpr-modal-box{max-height:calc(100vh - 24px);border-radius:10px}
}
.mpgdpr-modal-spinner{
  width:36px;height:36px;border:3px solid rgba(27,107,200,.15);
  border-top-color:var(--mpgdpr-primary,#1b6bc8);border-radius:50%;
  animation:mpgdpr-spin .8s linear infinite;margin:16px auto;
}
.mpgdpr-modal-spinner[hidden]{display:none}
@keyframes mpgdpr-spin{to{transform:rotate(360deg)}}
.mpgdpr-cookie-policy,.mpgdpr-privacy-policy,.mpgdpr-terms-policy{max-width:860px;line-height:1.6;margin:0 auto}
.mpgdpr-cookie-policy h1,.mpgdpr-privacy-policy h1,.mpgdpr-terms-policy h1{font-size:1.75rem;margin:0 0 1rem}
.mpgdpr-cookie-policy h2,.mpgdpr-privacy-policy h2,.mpgdpr-terms-policy h2{margin:1.6rem 0 .6rem;font-size:1.25rem}
.mpgdpr-cookie-policy h3,.mpgdpr-privacy-policy h3,.mpgdpr-terms-policy h3{margin:1.2rem 0 .4rem;font-size:1.05rem}
.mpgdpr-privacy-policy h4{margin:1rem 0 .35rem;font-size:1rem}
.mpgdpr-policy-services{margin:.4rem 0 1rem 1.2rem}
.mpgdpr-policy-provider{color:#5a6570;font-weight:400}
.mpgdpr-privacy-service{margin:0 0 1rem;padding:.75rem 0;border-bottom:1px solid #e8eef4}
