#cookie-banner, #cookie-banner *, #cookie-manage, .cookie-external, .cookie-external * { box-sizing: border-box; }
#cookie-banner[hidden], #cookie-banner [hidden] { display: none !important; }
#cookie-banner { position: fixed; z-index: 100000; inset: auto 20px 72px; font-family: 'Roboto', sans-serif; }
#cookie-banner .cookie-banner-box { position: relative; max-width: 1000px; max-height: calc(100dvh - 100px); overflow-y: auto; margin: auto; padding: 28px; border: 1px solid #67717f; border-radius: 14px; background: #111820; color: #fff; box-shadow: 0 10px 40px #0006; }
#cookie-banner h2 { font-family: inherit; font-size: 22px; font-weight: 500; line-height: 1.3; margin: 0 48px 14px 0; color: #fff; }
#cookie-banner p { font-family: inherit; font-size: 16px; line-height: 1.55; color: #fff; margin: 0 0 12px; }
#cookie-banner a { color: #fff; text-decoration: underline; }
#cookie-banner .cookie-buttons { display: flex; gap: 12px; }
#cookie-banner .cookie-buttons button { flex: 1; min-height: 46px; padding: 10px 20px; border: 1px solid #fff; border-radius: 6px; background: #fff; color: #111820; font: 500 16px/1.4 'Roboto', sans-serif; cursor: pointer; }
#cookie-banner .cookie-buttons button:hover { background: #dce4ed; }
#cookie-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid #fff; background: #fff; border-radius: 6px; color: #111820; font: 28px/1 sans-serif; cursor: pointer; }
#cookie-manage { position: fixed; right: 30px; bottom: 100px; z-index: 100001; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; border: 0; border-radius: 2px; background: rgba(0,0,0,.3); color: #fff; padding: 0; font-size: 20px; line-height: 1; cursor: pointer; transition: background-color .2s linear; }
.stretched #cookie-manage { bottom: 80px; }
#cookie-manage:hover, #cookie-manage:focus-visible { background-color: #5094C9; }
#cookie-manage[aria-expanded="true"] { visibility: hidden; }
#cookie-manage .icon-cookie { pointer-events: none; }
#cookie-external-reset { display: block; margin-top: 16px; background: transparent; border: 1px solid #fff; border-radius: 6px; color: #fff; padding: 10px; cursor: pointer; }
#cookie-banner button:focus-visible, #cookie-banner a:focus-visible, #cookie-manage:focus-visible, .cookie-external button:focus-visible, [data-cookie-settings]:focus-visible { outline: 3px solid #f7c948; outline-offset: 3px; }
.cookie-external { margin: 12px 0; padding: 16px; background: #eef2f6; border: 1px solid #c6cfdb; border-radius: 6px; color: #172333; font: 400 16px/1.5 'Roboto', sans-serif; }
.cookie-external p { margin: 0 0 12px; font: inherit; color: inherit; }
.cookie-external button, .privacy-settings-button { display: inline-block; padding: 10px 14px; min-height: 44px; border: 1px solid #172333; background: #fff; color: #172333; border-radius: 6px; cursor: pointer; font: 400 16px/1.4 'Roboto', sans-serif; }
.cookie-external iframe { max-width: 100%; border: 0; }

@media (max-width: 600px) {
  #cookie-banner { left: 10px; right: 10px; bottom: 72px; }
  #cookie-banner .cookie-banner-box { padding: 20px 16px; max-height: calc(100dvh - 100px); }
  #cookie-banner h2 { font-size: 20px; }
  #cookie-banner p { font-size: 16px; }
  
}

/* Mappa su richiesta: popup indipendente dal consenso Analytics. */
.cookie-map-dialog { width: min(960px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 8px; background: #fff; color: #172333; overflow: auto; box-shadow: 0 16px 60px #0006; }
.cookie-map-dialog:not([open]) { display: none; }
.cookie-map-dialog::backdrop { background: rgba(0,0,0,.65); }
.cookie-map-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.cookie-map-header h2 { margin: 0; font: 500 22px/1.4 'Roboto', sans-serif; color: #172333; }
.cookie-map-close { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid #172333; border-radius: 4px; background: #fff; color: #172333; font: 28px/1 sans-serif; cursor: pointer; }
.cookie-map-content { padding: 0 20px; }
.cookie-map-content .cookie-external { margin: 0; }
.cookie-map-content iframe { display: block; width: 100%; height: min(55dvh, 480px); min-height: 240px; border: 0; }
.cookie-map-external { display: inline-block; margin: 16px 20px 20px; color: #244d75; text-decoration: underline; }
.cookie-map-dialog button:focus-visible, .cookie-map-dialog a:focus-visible { outline: 3px solid #245a91; outline-offset: 3px; }

/* easyw: servizi facoltativi e contenuto dell’informativa. */
.cookie-external a{display:inline-block;margin:12px;color:#172333;text-decoration:underline}
.archive-media-dialog-content>.cookie-external,.media-gallery-dialog-body>.cookie-external{align-self:center;max-width:700px;padding:24px;font-size:16px;line-height:1.5}
.cookie-translate{border-top:1px solid #d7dce1;padding:20px 0;margin:20px auto;max-width:1250px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:400 16px/1.4 'Roboto Condensed',sans-serif;color:#333}
.cookie-translate label{margin:0}.cookie-translate select{margin-left:10px;padding:8px;background:#fff;color:#151515;border:1px solid #aaa;border-radius:4px;font:inherit}
.cookie-translate a{border:1px solid currentColor;padding:9px 14px;border-radius:4px;color:inherit}.cookie-translate p{flex-basis:100%;margin:0;font:inherit;color:inherit}


@media(max-width:600px){#cookie-banner .cookie-buttons{flex-direction:column}.cookie-translate{padding:20px}}

#cookie-banner h2{margin-right:0}#cookie-customise,#cookie-save{margin-top:14px;padding:10px 16px;border:1px solid #fff;border-radius:6px;background:transparent;color:#fff;font:500 16px/1.4 'Roboto',sans-serif;cursor:pointer}.cookie-preference{display:flex;gap:12px;align-items:center;margin:12px 0;color:#fff;font:400 16px/1.4 'Roboto',sans-serif}.cookie-preference input{width:22px;height:22px;flex:0 0 22px;accent-color:#a6c5f0}#cookie-preferences{margin-top:16px;border-top:1px solid #67717f;padding-top:16px}

/* Traduttore nella seconda colonna del footer, senza testi aggiuntivi. */
.cookie-translate{display:block;border:0;padding:0;margin:0;max-width:100%;font-size:16px}
[data-google-translate][hidden]{display:none!important}
.cookie-translate .goog-te-combo{max-width:100%;font:400 16px/1.4 'Roboto Condensed',sans-serif;padding:8px;border:1px solid #aaa;border-radius:4px;background:#fff;color:#151515}

/* Attribuzione Google nello stile originale, senza bordo da pulsante. */
.cookie-translate .goog-te-gadget{font-size:11px;line-height:1.4}
.cookie-translate .goog-te-gadget a{display:inline!important;border:0!important;padding:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:inherit!important}
.cookie-translate .goog-te-combo{margin:4px 0 6px}
