/* Pannello consensi nel blu/petrolio del sito. */
.cookie-dialog[hidden],.cookie-overlay[hidden],.cookie-notice[hidden]{display:none!important}
.cookie-dialog{position:fixed;inset:0;width:min(860px,calc(100% - 40px));max-width:860px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #dce5e7;border-radius:16px;color:#163d4a;background:#fff;box-shadow:0 24px 100px #102d3840;overflow:hidden;font-family:var(--sans)}
.cookie-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.cookie-dialog::backdrop{background:#102830a3;backdrop-filter:blur(3px)}
.cookie-dialog-header{display:flex;align-items:center;gap:24px;padding:26px 30px;border-bottom:1px solid #e6ecee}.cookie-dialog-header h2{margin:0;font-family:var(--sans);font-size:1.65rem;font-weight:600;letter-spacing:-.025em;line-height:1.3}
.cookie-dialog-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;margin-left:auto;border:1px solid #cbd9dc;border-radius:8px;background:#f2f6f6;color:#163d4a;cursor:pointer}.cookie-dialog-close svg{width:22px;height:22px}
.cookie-dialog-body{padding:24px 30px 28px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.cookie-dialog-intro{margin-bottom:24px}.cookie-dialog-intro p{margin:0 0 12px;font-size:1rem;line-height:1.65;color:#526871}.cookie-dialog-intro a,.cookie-category-description a{text-underline-offset:3px}
.cookie-category{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:16px;padding:0 20px;margin-top:8px;border:1px solid #e4ebec;border-radius:9px;background:#f1f5f5}.cookie-category details{min-width:0}.cookie-category summary{display:flex;align-items:center;gap:12px;min-height:76px;padding:16px 0;cursor:pointer;list-style:none;font-size:1rem;font-weight:600;line-height:1.4}.cookie-category summary::-webkit-details-marker{display:none}.cookie-category summary::before{content:'';display:block;flex:0 0 7px;width:7px;height:7px;margin:-4px 4px 0 2px;border:solid #52747e;border-width:0 2px 2px 0;transform:rotate(45deg)}.cookie-category details[open] summary::before{transform:rotate(225deg);margin-top:4px}.cookie-category-description{padding:0 0 19px 27px;color:#526871;font-size:.9375rem;line-height:1.65}.cookie-category-description p{margin:0}
.cookie-category-controls{display:flex;align-items:center;gap:14px;min-height:76px}.cookie-always{padding:3px 9px;border-radius:20px;background:#e6eded;color:#526871;font-size:.875rem;white-space:nowrap}.cookie-switch{display:inline-flex;align-items:center;min-height:44px;cursor:pointer}
.cookie-switch input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;display:block;width:54px;height:30px;flex-shrink:0;margin:0;padding:0;border:1px solid #9caeb3;border-radius:30px;background:#d4dfe2;cursor:pointer;transition:background .15s}.cookie-switch input[type=checkbox]::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #102d3830;transition:transform .15s}.cookie-switch input[type=checkbox]:checked{background:#163d4a;border-color:#163d4a}.cookie-switch input[type=checkbox]:checked::after{transform:translateX(24px)}.cookie-switch input[type=checkbox]:disabled{background:#cbd8dc;border-color:#cbd8dc;cursor:not-allowed}
.cookie-dialog-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:20px 30px;border-top:1px solid #e6ecee;background:#fff}.cookie-dialog .button{margin:0;padding:12px 19px;font-size:.9375rem;line-height:1.4;min-height:48px;border-radius:7px;cursor:pointer}.cookie-dialog .cookie-save{margin-left:auto;background:#f1f5f5;border:1px solid #98afb7;color:#163d4a}.cookie-dialog :is(button,input,summary,a):focus-visible{outline:3px solid #b38b54;outline-offset:4px}.cookie-dialog-close:hover,.cookie-dialog .cookie-save:hover{background:#e6eeee}
.cookie-overlay{position:fixed;inset:0;z-index:9998;background:#102830a3}.cookie-dialog-fallback{z-index:9999}.cookie-notice{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:9997;width:max-content;max-width:calc(100% - 32px);padding:14px 20px;border:1px solid #cedadc;border-radius:9px;box-shadow:0 8px 28px #163d4a26;background:#fff;color:#163d4a;font:.9375rem/1.5 var(--sans)}.cookie-banner{max-width:1000px;z-index:100}.cookie-banner .cookie-actions{flex-wrap:wrap}
@media(max-width:640px){.cookie-dialog{width:calc(100% - 20px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:12px}.cookie-dialog-header{padding:18px;gap:12px}.cookie-dialog-header h2{font-size:1.28rem}.cookie-dialog-body{padding:20px 18px}.cookie-dialog-intro p{font-size:1rem}.cookie-category{padding:0 12px;column-gap:10px}.cookie-category summary{font-size:.9375rem;min-height:78px}.cookie-category-controls{min-height:78px}.cookie-category-necessary .cookie-category-controls{flex-direction:column;justify-content:center;gap:0}.cookie-always{font-size:.75rem;padding:0 4px;background:transparent}.cookie-category-description{padding-left:0}.cookie-dialog-footer{padding:15px 18px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.cookie-dialog .button{padding:11px 9px;font-size:.875rem;height:100%}.cookie-dialog .cookie-save{grid-column:1/-1;margin:0;width:100%}.cookie-notice{bottom:92px}.cookie-banner .cookie-actions{gap:8px;width:100%}.cookie-banner .cookie-actions .button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.cookie-switch input[type=checkbox],.cookie-switch input[type=checkbox]::after{transition:none}}
