/* Stile del banner cookie di riccardorocchi.eu (14/11/2026). Stampo: tools/cookie-stampo-vercel. I colori si cambiano SOLO nelle variabili qui sotto.
   Colori letti da sito/style.css: tema chiaro (carta #faf8f3, inchiostro #0d0d0d, oro #836d31) e tema scuro (#16140f, #f3efe4, oro #c9a84c).
   Contrasti calcolati il 14/11/2026: chiaro testo/fondo 18,3, collegamenti 6,5, pulsante 18,3; scuro testo/fondo 16,0, collegamenti e bordo 8,0, testo sul pulsante 8,5.
   «Accetta» e «Rifiuta» hanno la stessa classe: stessa dimensione, stesso colore, stesso peso. */
/* il sito segue il sistema finché il visitatore non sceglie il tema con il pulsante (html[data-tema]) */
:root {
  --rx-cb-bg: #faf8f3;
  --rx-cb-fg: #0d0d0d;
  --rx-cb-accent: #836d31;
  --rx-cb-link: #6b5826;
  --rx-cb-title: #0d0d0d;
  --rx-cb-btn-bg: #0d0d0d;
  --rx-cb-btn-fg: #faf8f3;
  --rx-cb-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="chiaro"]) {
    --rx-cb-bg: #16140f; --rx-cb-fg: #f3efe4; --rx-cb-accent: #c9a84c; --rx-cb-link: #c9a84c;
    --rx-cb-title: #f3efe4; --rx-cb-btn-bg: #c9a84c; --rx-cb-btn-fg: #0d0d0d;
  }
}
html[data-tema="scuro"] {
  --rx-cb-bg: #16140f; --rx-cb-fg: #f3efe4; --rx-cb-accent: #c9a84c; --rx-cb-link: #c9a84c;
  --rx-cb-title: #f3efe4; --rx-cb-btn-bg: #c9a84c; --rx-cb-btn-fg: #0d0d0d;
}
.rx-cb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: var(--rx-cb-bg); color: var(--rx-cb-fg);
  border-top: 3px solid var(--rx-cb-accent);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
  font-size: 15px; line-height: 1.5;
}
.rx-cb[hidden] { display: none; }
.rx-cb:focus { outline: none; }
.rx-cb:focus-visible { outline: 3px solid var(--rx-cb-accent); outline-offset: -3px; }
.rx-cb-in {
  max-width: 1200px; margin: 0 auto; padding: 18px 40px;
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
}
.rx-cb-txt { flex: 1 1 auto; min-width: 0; }
.rx-cb-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--rx-cb-title, var(--rx-cb-btn-bg)); letter-spacing: 0; }
.rx-cb-text { margin: 0 0 6px; }
.rx-cb-links { margin: 0; font-size: 14px; }
.rx-cb-link { color: var(--rx-cb-link); text-decoration: underline; text-underline-offset: 2px; margin-right: 12px; }
.rx-cb-link:focus-visible, .rx-cb-btn:focus-visible { outline: 3px solid var(--rx-cb-accent); outline-offset: 2px; }
.rx-cb-state { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.rx-cb-state:empty { display: none; }
.rx-cb-btns { display: flex; gap: 12px; flex: 0 0 auto; }
.rx-cb-btn {
  min-width: 132px; min-height: 44px; padding: 10px 22px;
  background: var(--rx-cb-btn-bg); color: var(--rx-cb-btn-fg);
  border: 2px solid var(--rx-cb-btn-bg); border-radius: 6px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.rx-cb-btn:hover { filter: brightness(1.15); }
/* quando il banner e' aperto la pagina si puo' scorrere fino in fondo: niente pulsante coperto */
body.rx-cb-open { padding-bottom: var(--rx-cb-h); }
@media (max-width: 767px) {
  .rx-cb { font-size: 14px; max-height: 70vh; overflow-y: auto; }
  .rx-cb-in { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; }
  .rx-cb-title { font-size: 15px; }
  .rx-cb-links { font-size: 13px; }
  .rx-cb-btns { width: 100%; }
  .rx-cb-btn { flex: 1 1 0; min-width: 0; }
}
