/* ZERO1lab — consenso cookie: banner, modal preferenze, placeholder embed.
   Neutro ed elegante; accento dal colore primario del pannello (--z1-primary). */
.z1-cc, .z1-cc-modal, .z1-ph { --z1cc-acc: var(--z1-primary, #b5894a); }

/* ---------- banner ---------- */
.z1-cc { position: fixed; z-index: 99990; bottom: 20px; max-width: 400px;
  opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease; }
.z1-cc.is-on { opacity: 1; transform: none; }
.z1-cc--destra  { right: 20px; }
.z1-cc--sinistra{ left: 20px; }
.z1-cc--barra   { left: 20px; right: 20px; max-width: none; }
.z1-cc__banner { background: #fff; color: #23211d; border-radius: 16px; padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06); }
.z1-cc--barra .z1-cc__banner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.z1-cc--barra .z1-cc__text { flex: 1; min-width: 260px; }
.z1-cc__title { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.z1-cc--barra .z1-cc__title { margin: 0; }
.z1-cc__text { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: #6d675e; }
.z1-cc--barra .z1-cc__text { margin: 0; }
.z1-cc__text a { color: var(--z1cc-acc); text-decoration: underline; }
.z1-cc__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.z1-cc__btn { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.z1-cc__btn--ghost { background: none; border: 1px solid #ddd8d0; color: #55504a; }
.z1-cc__btn--ghost:hover { border-color: var(--z1cc-acc); color: var(--z1cc-acc); }
.z1-cc__btn--solid { background: var(--z1cc-acc); border: 1px solid var(--z1cc-acc); color: #fff; margin-left: auto; }
.z1-cc__btn--solid:hover { filter: brightness(1.08); }

/* ---------- modal preferenze ---------- */
.z1-cc-modal { position: fixed; inset: 0; z-index: 99995; background: rgba(20,18,15,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s ease; }
.z1-cc-modal.is-on { opacity: 1; }
.z1-cc-modal__panel { position: relative; background: #fff; color: #23211d; width: 520px; max-width: 100%;
  max-height: 86vh; overflow: auto; border-radius: 18px; padding: 28px 28px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.z1-cc-modal__x { position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 26px; line-height: 1; color: #a9a294; cursor: pointer; }
.z1-cc-modal__x:hover { color: #23211d; }
.z1-cc-modal .z1-cc__title { font-size: 18px; }
.z1-cc-cat { border: 1px solid #eee9e1; border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; }
.z1-cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.z1-cc-cat__head strong { font-size: 14px; }
.z1-cc-cat__always { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--z1cc-acc); }
.z1-cc-cat p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.5; color: #6d675e; }
.z1-cc-modal .z1-cc__actions { margin-top: 18px; }

/* switch categorie */
.z1-cc-sw { display: inline-flex; cursor: pointer; }
.z1-cc-sw input { position: absolute; opacity: 0; pointer-events: none; }
.z1-cc-sw__track { width: 42px; height: 24px; border-radius: 999px; background: #d8d2c8; position: relative; transition: background .18s; }
.z1-cc-sw__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .18s; }
.z1-cc-sw input:checked + .z1-cc-sw__track { background: var(--z1cc-acc); }
.z1-cc-sw input:checked + .z1-cc-sw__track::after { left: 21px; }
.z1-cc-sw input:focus-visible + .z1-cc-sw__track { outline: 2px solid var(--z1cc-acc); outline-offset: 2px; }

/* ---------- placeholder embed ---------- */
.z1-ph { width: 100%; height: 100%; min-height: 280px; aspect-ratio: 16 / 9;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #f4f1ec 0%, #e9e4db 100%);
  border: 1px solid #e2dcd2; border-radius: 14px; overflow: hidden; }
.z1-ph__inner { max-width: 380px; padding: 24px; }
.z1-ph__ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #fff; color: var(--z1cc-acc); box-shadow: 0 4px 14px rgba(0,0,0,.08); margin-bottom: 14px; }
.z1-ph__ic svg { width: 26px; height: 26px; }
.z1-ph__txt { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: #55504a; }
.z1-ph__btn { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--z1cc-acc); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; }
.z1-ph__btn:hover { filter: brightness(1.08); }
.z1-ph__prefs { display: block; margin-top: 10px; font-size: 12px; color: #8a8478; text-decoration: underline; }
.z1-ph__prefs:hover { color: var(--z1cc-acc); }

/* mobile */
@media (max-width: 600px) {
  .z1-cc, .z1-cc--destra, .z1-cc--sinistra { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .z1-cc__btn { flex: 1; text-align: center; }
}
