/* Banner cookie condiviso da sito e directory (markup in includes/cookie-banner.php, JS in assets/js/cookie.js) */
/* ---------- Banner cookie: aspetto del vecchio LabooCookieBanner.js, colori scuriti per il contrasto (JS in laboo.js) ---------- */
.lcb {
  position: fixed; right: 20px; bottom: 0; z-index: 26;
  width: 500px; max-width: calc(100% - 24px);
  padding: 14px 20px 24px; text-align: left;
  font-size: 14px; line-height: 1.5; color: #565662;
  background: #fff; border: 1px solid #d4d8df;
  box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, .3);
  animation: lcb-in .5s ease-out both;
}
@keyframes lcb-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.lcb[hidden], .menu-open .lcb { display: none; }
.lcb__title { display: flex; align-items: center; gap: 8px; margin: 6px 40px 10px 0; font-size: 20px; font-weight: 400; line-height: 1.4; color: #3e3e46; }
.lcb__title:focus { outline: none; }
.lcb__text { margin: 0 0 12px; }
.lcb a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.lcb__close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: #565662; cursor: pointer;
}
.lcb__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lcb__close:hover { color: #141414; }
.lcb__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lcb__btn {
  min-height: 36px; padding: 6px 12px; border-radius: 4px; border: 1px solid;
  font: inherit; font-size: 15px; color: #fff; cursor: pointer;
  transition: background .2s, color .2s;
}
.lcb__btn--accept { background: #333; border-color: #333; font-weight: 600; }
.lcb__btn--prefs { background: #5c5c5c; border-color: #5c5c5c; }
.lcb__btn--deny { background: #707070; border-color: #707070; }
.lcb__btn:hover { background: #fff; color: #333; }
.lcb__btn--save { display: block; margin-top: 14px; background: #fff; color: #333; border-color: #555; }
.lcb__btn--save:hover { background: #333; color: #fff; }
.lcb__prefs { margin: 16px 0 0; padding: 16px 20px; border: 3px dotted #ccc; border-radius: 10px; }
.lcb__prefs[hidden] { display: none; }
.lcb__check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-right: 16px; cursor: pointer; }
.lcb__check input { width: 18px; height: 18px; margin: 0; accent-color: #333; }
.lcb__check span { font-size: 12px; }
.lcb button:focus-visible, .lcb a:focus-visible, .lcb input:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }
/* dopo la scelta nessuna icona flottante (decisione di Robi, 2026-11-27): si riapre da "Preferenze cookie" nel footer */
.lcb-placer { padding: 10px; border: 1px solid #eee; border-radius: 10px; background: #eee; color: #333; font: inherit; cursor: pointer; }
#contenuto:focus { outline: none; } /* riceve il focus dopo la scelta nel banner */
.cookie-open .to-top { bottom: calc(var(--cookie-h, 0px) + 12px); }
@media (max-width: 600px) {
  .lcb { right: 12px; left: 12px; width: auto; max-width: none; text-align: center; }
  .lcb__title { justify-content: center; margin-left: 40px; }
  .lcb__actions { justify-content: center; }
  .lcb__prefs { text-align: left; }
}
/* telefoni piccoli: banner compatto (stessa struttura) per non coprire l'animazione della home */
@media (max-width: 420px) {
  .lcb { right: 8px; left: 8px; padding: 8px 12px 12px; font-size: 13px; line-height: 1.4; text-align: left; }
  .lcb__title { justify-content: flex-start; gap: 6px; margin: 2px 36px 6px 0; font-size: 16px; }
  .lcb__title img { width: 20px; height: auto; }
  .lcb__close { top: 2px; right: 2px; }
  .lcb__text { margin-bottom: 8px; }
  .lcb__actions { flex-wrap: nowrap; justify-content: flex-start; gap: 4px; }
  .lcb__actions .lcb__btn { flex: 1 1 auto; padding: 4px 6px; font-size: 13px; }
}
.lcb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* "Preferenze cookie" nel footer, con l'aspetto dei link (serve alla directory, che non ha laboo.css) */
.site-footer .linkbtn { display: inline-block; padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; }
