/* Banner cookie (assets/consenso.js) e impaginazione delle pagine legali. */
.psh-cookie {
  position: fixed; z-index: 120; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem; margin-left: auto;
  padding: 1.5rem 1.5rem 1.25rem; border-radius: 1rem;
  background: #fff; color: var(--color-tertiary, #141833);
  border: 1px solid var(--color-line, #dfe3ef);
  box-shadow: 0 24px 60px -20px rgba(20, 24, 51, .45);
  font-family: var(--font-sans, 'Manrope', system-ui, sans-serif);
  font-size: .875rem; line-height: 1.55;
}
.psh-cookie[hidden] { display: none; }
.psh-cookie__chiudi {
  position: absolute; top: .75rem; right: .75rem; width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: transparent; color: inherit; cursor: pointer; border: 0;
}
.psh-cookie__chiudi:hover { background: var(--color-paper, #f6f7fb); }
.psh-cookie__titolo {
  margin: 0 2.5rem .5rem 0; font-family: var(--font-display, 'Sora', sans-serif);
  font-weight: 700; font-size: 1.05rem; color: var(--color-primary, #2e378d);
}
.psh-cookie__titolo i { margin-right: .35rem; }
.psh-cookie__testo { margin: 0; color: rgba(20, 24, 51, .78); }
.psh-cookie__testo a { color: var(--color-primary, #2e378d); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.psh-cookie__dettagli { margin-top: 1rem; display: grid; gap: .6rem; }
.psh-cookie__dettagli[hidden] { display: none; }
.psh-cookie__voce { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.psh-cookie__voce input { margin-top: .25rem; width: 1rem; height: 1rem; accent-color: var(--color-primary, #2e378d); flex-shrink: 0; }
.psh-cookie__azioni { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
/* Accetta e Rifiuta hanno volutamente lo stesso stile: nessuna scelta è spinta più dell'altra. */
.psh-cookie__btn {
  flex: 1 1 8rem; padding: .7rem 1rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .85rem;
  background: var(--color-primary, #2e378d); color: #fff; border: 1px solid var(--color-primary, #2e378d);
}
.psh-cookie__btn[data-azione="personalizza"] { background: #fff; color: var(--color-primary, #2e378d); }
.psh-cookie__btn[hidden] { display: none; }
.psh-cookie__btn:hover { background: var(--color-primary-deep, #1f2566); color: #fff; }
.psh-cookie button:focus-visible, .psh-cookie a:focus-visible, .psh-cookie input:focus-visible {
  outline: 2px solid var(--color-sky, #32beef); outline-offset: 2px;
}
@media (max-width: 40rem) { .psh-cookie { left: .5rem; right: .5rem; bottom: .5rem; padding: 1.25rem 1rem 1rem; } }
@media (prefers-reduced-motion: no-preference) {
  .psh-cookie.is-aperto { animation: psh-cookie-in .35s cubic-bezier(0, 0, .2, 1); }
  @keyframes psh-cookie-in { from { opacity: 0; transform: translateY(12px); } }
}

/* Pagine legali */
.legale { max-width: 52rem; }
.legale h2 {
  margin: 2.75rem 0 .9rem; font-family: var(--font-display, 'Sora', sans-serif);
  font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: var(--color-primary, #2e378d);
}
.legale h3 { margin: 1.75rem 0 .6rem; font-weight: 700; font-size: 1.05rem; color: var(--color-tertiary, #141833); }
.legale p, .legale li { font-size: 1rem; line-height: 1.7; color: rgba(20, 24, 51, .82); }
.legale p + p { margin-top: .85rem; }
.legale ul { margin: .75rem 0 0 1.25rem; list-style: disc; display: grid; gap: .4rem; }
.legale a { color: var(--color-primary, #2e378d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legale strong { color: var(--color-tertiary, #141833); }
.legale .tabella { margin-top: 1rem; overflow-x: auto; }
.legale table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 36rem; }
.legale th, .legale td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--color-line, #dfe3ef); }
.legale th { background: var(--color-paper, #f6f7fb); font-weight: 700; color: var(--color-tertiary, #141833); }
.legale .scheda {
  margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: .75rem;
  background: var(--color-paper, #f6f7fb); border: 1px solid var(--color-line, #dfe3ef);
}
.legale .aggiornamento { margin-top: 3rem; font-size: .85rem; color: rgba(20, 24, 51, .55); }
.legale-btn {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem;
  padding: .75rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-primary, #2e378d); color: #fff; font: inherit; font-weight: 700; font-size: .9rem;
}
.legale-btn:hover { background: var(--color-primary-deep, #1f2566); }
