/* Mobilink — banner cookie, pannello preferenze e link legali del footer.
   Stessa palette del sito: antracite, carta, ottone. */

.cz-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 26px 26px 24px; border-radius: 24px;
  background: #13110d; color: #f5f1e9;
  border: 1px solid rgba(245, 241, 233, .14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .2);
  font: 400 15px/1.55 var(--sans);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.cz-banner.is-in { opacity: 1; transform: none; }
.cz-banner[hidden] { display: none; }

.cz-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font: 600 12px/1 var(--sans); letter-spacing: .02em; color: #e2c793;
}
.cz-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cz-titolo { margin: 0 44px 8px 0; font: 700 1.4rem/1.15 var(--head); letter-spacing: -.035em; color: #f5f1e9; }
.cz-testo { margin: 0; color: #cfc7b8; font-size: 14.5px; }
.cz-testo a, .cz-cat a { color: #e2c793; text-decoration: underline; text-underline-offset: 3px; }
.cz-testo a:hover { color: #f5f1e9; }

.cz-azioni { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
/* Tre pulsanti di pari evidenza: stesso stile, stessa dimensione */
.cz-btn {
  min-height: 46px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(245, 241, 233, .6); background: transparent; color: #f5f1e9;
  font: 600 14.5px/1.2 var(--sans); letter-spacing: -.005em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cz-btn:hover { background: #f5f1e9; color: #13110d; border-color: #f5f1e9; }
.cz-btn:focus-visible, .cz-x:focus-visible { outline: 2px solid #e2c793; outline-offset: 3px; }

.cz-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(245, 241, 233, .22); background: transparent; color: #f5f1e9;
  transition: background-color .2s var(--ease);
}
.cz-x:hover { background: rgba(245, 241, 233, .1); }
.cz-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ── Pannello preferenze (dialog nativo, modale) ── */
.cz-pannello {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  border: 1px solid rgba(245, 241, 233, .14); border-radius: 26px;
  background: #13110d; color: #f5f1e9; font: 400 15px/1.55 var(--sans);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6);
}
.cz-pannello::backdrop { background: rgba(19, 17, 13, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cz-pannello[open] { animation: cz-in .4s var(--ease) both; }
@keyframes cz-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.cz-p-in { position: relative; padding: 28px 26px 24px; }

.cz-cat { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(245, 241, 233, .06); }
.cz-cat + .cz-cat { margin-top: 8px; }
.cz-cat p { margin: 8px 0 0; color: #cfc7b8; font-size: 14px; }
.cz-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
label.cz-cat-top { cursor: pointer; }
.cz-cat-nome { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cz-sempre { font: 600 12px/1 var(--sans); color: #e2c793; padding: 7px 11px; border-radius: 999px; background: rgba(226, 199, 147, .12); }

.cz-cat input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cz-sw { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(245, 241, 233, .28); transition: background-color .3s var(--ease); }
.cz-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #f5f1e9; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.cz-cat input:checked + .cz-sw { background: #c9aa72; }
.cz-cat input:checked + .cz-sw::after { transform: translateX(20px); }
.cz-cat input:focus-visible + .cz-sw { outline: 2px solid #e2c793; outline-offset: 3px; }

/* ── Link legali nel footer ── */
.foot-policy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.foot-policy a { color: var(--muted); transition: color .2s; }
.foot-policy a:hover { color: var(--gold-hi); }
.foot-policy a + a::before { content: "·"; display: inline-block; margin: 0 10px; color: var(--muted); opacity: .6; }

@media (max-width: 640px) {
  .cz-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 22px 18px 18px; border-radius: 22px; }
  .cz-titolo { font-size: 1.25rem; }
  .cz-testo { font-size: 14px; }
  .cz-azioni { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  .cz-btn { min-height: 44px; }
  .cz-p-in { padding: 24px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cz-banner { transition: none; transform: none; }
  .cz-pannello[open] { animation: none; }
  .cz-sw, .cz-sw::after, .cz-btn { transition: none; }
}
