#exc-root, #cookie-badge{
  --exc-accent: var(--highlight, #ff4400);
  --exc-line: rgba(255,255,255,.14);
  --exc-line2: rgba(255,255,255,.32);
}
#exc-root *, #exc-root *::before, #exc-root *::after{ box-sizing: border-box; }

.exc{
  position: fixed; z-index: 2147483000; left: 24px; bottom: 24px;
  width: min(540px, calc(100vw - 32px));
  padding: 30px 28px 24px;
  background: #000; color: #fff;
  border: 1px solid var(--exc-line2); border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,.75);
  opacity: 0; transform: translateY(24px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.16,.84,.32,1);
  outline: none;
}
.exc[hidden]{ display: none; }
.exc.is-in{ opacity: 1; transform: none; }

.exc__title{
  margin: 0 0 12px; padding: 0; color: #fff; text-transform: none; letter-spacing: 0;
  font: 300 28px/1.1 'Silk Serif', serif;
}
.exc__text{
  margin: 0 0 20px; padding: 0; color: rgba(255,255,255,.86);
  font: 300 13.5px/1.65 Helvetica, Arial, sans-serif;
}
.exc__text a{                      /* il bundle forza "p a{display:block}" */
  display: inline; position: static; color: #fff; text-decoration: underline; text-underline-offset: 3px;
}
.exc__text a:hover{ color: var(--exc-accent); }

.exc__x{
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; padding: 0;
  background: none; border: 0; color: #fff; opacity: .7; cursor: pointer;
  font: 300 28px/1 Helvetica, Arial, sans-serif;
}
.exc__x:hover{ opacity: 1; color: var(--exc-accent); }

.exc__actions, .exc-modal__actions{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.exc__btn{
  padding: 14px 8px; cursor: pointer; background: transparent; color: #fff;
  border: 1px solid var(--exc-line2); border-radius: 3px;
  font: 500 10.5px/1.25 Helvetica, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.exc__btn:hover{ background: #fff; color: #000; border-color: #fff; }
.exc button:focus-visible, .exc-modal button:focus-visible, .exc a:focus-visible, .exc-modal a:focus-visible{
  outline: 2px solid var(--exc-accent); outline-offset: 2px;
}

.exc-modal{
  position: fixed; inset: 0; z-index: 2147483001;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0,0,0,.74);
}
.exc-modal[hidden]{ display: none; }
.exc-modal__panel{
  position: relative; width: min(640px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 34px 32px 28px; background: #000; color: #fff;
  border: 1px solid var(--exc-line2); border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,.8);
}
.exc-cat{ padding: 20px 0; border-top: 1px solid var(--exc-line); }
.exc-cat__head{ display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.exc-cat__head h3{
  margin: 0; padding: 0; color: #fff; text-transform: none; letter-spacing: 0;
  font: 300 22px/1.1 'Silk Serif', serif;
}
.exc-cat p{ margin: 0; padding: 0; color: rgba(255,255,255,.8); font: 300 13px/1.6 Helvetica, Arial, sans-serif; }
.exc-cat__list{ margin: 10px 0 0; padding: 0; list-style: none; }
.exc-cat__list li{ margin: 0; padding: 0; color: rgba(255,255,255,.55); font: 400 11.5px/1.6 Helvetica, Arial, sans-serif; }
.exc-locked{ font: 500 10px/1 Helvetica, Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--exc-accent); white-space: nowrap; }
.exc-modal__actions{ margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--exc-line); }

/* Interruttore (il bundle imposta display:block su label/input: qui lo neutralizzo) */
.exc-switch{ position: relative; display: inline-block; flex: 0 0 auto; width: 48px; height: 26px; margin: 0; padding: 0; }
.exc-switch input{ position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.exc-switch__ui{ position: absolute; inset: 0; background: #111; border: 1px solid var(--exc-line2); border-radius: 26px; transition: background .25s, border-color .25s; }
.exc-switch__ui::after{ content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s; }
.exc-switch input:checked + .exc-switch__ui{ background: var(--exc-accent); border-color: var(--exc-accent); }
.exc-switch input:checked + .exc-switch__ui::after{ transform: translateX(22px); }
.exc-switch input:focus-visible + .exc-switch__ui{ outline: 2px solid #fff; outline-offset: 2px; }
.exc-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#cookie-badge{
  position: absolute; right: 3%; top: 50%; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0; padding: 0;
  background: #000; color: #fff; border: 1px solid var(--exc-line2); border-radius: 50%;
  cursor: pointer; transform: translateY(-50%);
  transition: border-color .3s, color .3s, transform .3s;
}
#cookie-badge svg{ display: block; width: 22px; height: 22px; }
#cookie-badge:hover, #cookie-badge:focus-visible{ border-color: var(--exc-accent); color: var(--exc-accent); transform: translateY(-50%) scale(1.08); }
#cookie-badge:focus-visible{ outline: 2px solid var(--exc-accent); outline-offset: 3px; }
#cookie-badge.exc-badge--fixed{ position: fixed; top: auto; bottom: 16px; z-index: 2147482000; transform: none; }
#cookie-badge.exc-badge--fixed:hover{ transform: scale(1.08); }


@media (max-width: 560px){
  .exc{ left: 12px; right: 12px; bottom: 12px; width: auto; padding: 28px 20px 20px; }
  .exc__title{ font-size: 24px; }
  .exc__actions, .exc-modal__actions{ grid-template-columns: 1fr; }
  .exc-modal__panel{ padding: 30px 20px 22px; }
}

@media (prefers-reduced-motion: reduce){
  .exc, .exc__btn, .exc-switch__ui, .exc-switch__ui::after, #cookie-badge{ transition: none; }
}


footer .text-right p{ transform: translateX(-64px) !important; }

@media (max-width: 560px){
  footer .text-right p{ transform: none !important; }
  #cookie-badge{
    top: auto; bottom: 100%; right: 12px;
    width: 38px; height: 38px; margin-bottom: 10px;
    transform: none;
  }
  #cookie-badge:hover, #cookie-badge:focus-visible{ transform: scale(1.08); }
}