/* Isolated cookie-consent interface: it does not alter the site's existing layout. */
.cookie-consent-root { color: #111; font-family: Arial, Helvetica, sans-serif; }

/* Cookie banner nascosto temporaneamente: il markup e le preferenze restano
   disponibili nel codice. Per ripristinare il triangolo, rimuovere questa regola. */
.cookie-banner { display: none !important; }

.cookie-banner { position: fixed; z-index: 10000; right: 14px; bottom: 10px; width: min(390px, calc(100vw - 20px)); height: 355px; padding: 130px 100px 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 360'%3E%3Cpath d='M200 12c9 0 17 5 22 14l166 287c10 17-2 35-22 35H34c-20 0-32-18-22-35L178 26c5-9 13-14 22-14Z' fill='%23f8e12f' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 11px 17px rgba(0, 0, 0, .16)); animation: cookie-enter .35s cubic-bezier(.2, .8, .2, 1); text-align: center; }
.cookie-banner__icon { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); font-size: 36px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.cookie-banner[hidden], .cookie-preferences[hidden] { display: none; }
.cookie-banner h2, .cookie-preferences h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.2; }
.cookie-banner h2 { font-size: 22px; letter-spacing: -.04em; }
.cookie-banner p, .cookie-preferences p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions, .cookie-preferences__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.cookie-banner__actions { flex-direction: column; gap: 6px; margin-top: 9px; }
.cookie-button { min-height: 42px; padding: 9px 14px; border: 1px solid #111; border-radius: 999px; background: transparent; color: #111; cursor: pointer; font-size: 14px; font-weight: 700; }
.cookie-button:hover, .cookie-button:focus-visible { background: #f8e12f; outline: 2px solid #111; outline-offset: 2px; }
.cookie-banner .cookie-button { width: 100%; min-height: 30px; padding: 5px 8px; background: #f8e12f; font-size: 11px; }
.cookie-banner .cookie-button--primary { background: #111; color: #fff; }
.cookie-banner .cookie-button:hover, .cookie-banner .cookie-button:focus-visible { background: #fffdf5; }
.cookie-banner .cookie-button--primary:hover, .cookie-banner .cookie-button--primary:focus-visible { color: #111; }
.cookie-button--primary { background: #111; color: #fff; }
.cookie-button--primary:hover, .cookie-button--primary:focus-visible { color: #111; }
.cookie-preferences { position: fixed; z-index: 10001; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(17, 17, 17, .45); }
.cookie-preferences__dialog { width: min(650px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 28px; background: #fffdf5; border: 1px solid #111; border-radius: 18px; box-shadow: 0 20px 55px rgba(0, 0, 0, .25); }
.cookie-preferences__intro { margin-bottom: 16px !important; }
.cookie-preferences__category { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-top: 1px solid #d5d1c5; }
.cookie-preferences__category input { width: 18px; height: 18px; margin-top: 3px; accent-color: #111; flex: 0 0 auto; }
.cookie-preferences__category label { cursor: pointer; }
.cookie-preferences__category strong, .cookie-preferences__category span { display: block; }
.cookie-preferences__category span { margin-top: 4px; font-size: 13px; line-height: 1.45; }
.cookie-preferences__category--fixed label { cursor: default; }
.cookie-preferences__category--fixed input { opacity: 1; }
.cookie-preferences__notice { margin-top: 14px !important; font-size: 12px !important; }
.cookie-preferences__close { margin-left: auto; }
body.cookie-dialog-open { overflow: hidden; }
@keyframes cookie-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { .cookie-banner { right: 4px; bottom: 4px; width: calc(100vw - 8px); height: min(355px, calc(100vw * .91)); padding: clamp(126px, 36vw, 130px) clamp(92px, 28vw, 100px) 18px; } .cookie-banner__icon { top: clamp(41px, 13vw, 50px); font-size: 31px; } .cookie-banner h2 { font-size: 20px; } .cookie-banner p { font-size: 12px; line-height: 1.35; } .cookie-banner__actions { gap: 5px; margin-top: 7px; } .cookie-banner .cookie-button { min-height: 29px; padding: 4px 7px; font-size: 10px; } .cookie-preferences { padding: 12px; } .cookie-preferences__dialog { padding: 20px; } .cookie-button { flex: 1 1 auto; } }
@media (max-width: 380px) { .cookie-banner { height: 332px; padding: 135px 84px 14px; } .cookie-banner h2 { font-size: 17px; } .cookie-banner p { font-size: 10px; } .cookie-banner .cookie-button { min-height: 28px; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
