/* Stylo Cookie Consent — stile del banner (segue le variabili del tema). */
.stylo-cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--background, #fff);
  color: var(--foreground, #111);
  border-top: 1px solid var(--border, #ddd);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  padding: 1rem clamp(1rem, 4vw, 2rem);
  font-size: .95rem;
}
.stylo-cc[hidden] { display: none; }

/* Il banner non deve coprire il footer: lo spazio è riservato via JS. */
body.stylo-cc-open {
  padding-bottom: var(--stylo-cc-h, 0px);
}

.stylo-cc__close {
  position: absolute;
  top: .35rem;
  right: .5rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--foreground, #111);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.stylo-cc__close:hover { background: rgba(0,0,0,.06); }
.stylo-cc__close:focus-visible { outline: 2px solid var(--primary, #006699); outline-offset: 2px; }

.stylo-cc__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 2.5rem;
}
.stylo-cc__text { margin: 0; flex: 1 1 340px; line-height: 1.5; }
.stylo-cc__policy {
  display: inline-block;
  color: var(--primary, #1e3a5f);
  text-decoration: underline;
  margin-left: .25rem;
  padding: .35rem 0;
}

.stylo-cc__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.stylo-cc__btn {
  font: inherit;
  min-height: 44px;
  border-radius: var(--radius, .5rem);
  padding: .55rem 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s ease;
}
.stylo-cc__btn--primary { background: var(--primary, #1e3a5f); color: var(--primary-foreground, #fff); }
.stylo-cc__btn--ghost { background: transparent; border-color: var(--border, #ccc); color: var(--foreground, #111); }
.stylo-cc__btn:hover { opacity: .9; }

.stylo-cc__panel {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #ddd);
}
.stylo-cc__cat { margin-bottom: .75rem; }
.stylo-cc__cat-label { font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.stylo-cc__cat-desc { margin: .25rem 0 0 1.6rem; color: var(--muted-foreground, #666); font-size: .85rem; }
.stylo-cc__actions--panel { margin-top: .5rem; }

@media (max-width: 640px) {
  .stylo-cc {
    max-height: 60vh;
    overflow: auto;
    padding: .9rem 1rem 1rem;
    padding-top: 2.35rem;
    font-size: .875rem;
  }
  .stylo-cc__inner { flex-direction: column; align-items: stretch; gap: .75rem; }
  .stylo-cc__text { flex: 0 0 auto; line-height: 1.4; }
  .stylo-cc__actions {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: .4rem;
  }
  .stylo-cc__actions .stylo-cc__btn {
    flex: 0 1 auto;
    padding: .45rem .7rem;
    font-size: .8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stylo-cc__btn { transition: none; }
}
