/* techalps — stile cookie banner + modale preferenze (on-brand, variante dark) */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: #202427; border-top: 1px solid rgba(244,242,238,0.14);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.4);
  transform: translateY(100%); transition: transform .35s ease;
  font-family: 'Inter', system-ui, sans-serif; color: #F4F2EE;
}
.cc-banner.is-open { transform: translateY(0); }
.cc-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
@media (max-width: 767px) { .cc-inner { padding: 16px 20px; } }
.cc-text { margin: 0; font-size: 13px; line-height: 1.55; color: #B7BBBE; flex: 1 1 300px; }
.cc-text a { color: #6FA0BE; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cc-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 11px 18px; border-radius: 2px; cursor: pointer;
  transition: all .2s ease; border: 1px solid transparent; background: none; color: inherit;
}
.cc-primary { background: #3B6E8F; border-color: #3B6E8F; color: #F4F2EE; }
.cc-primary:hover { background: #6FA0BE; border-color: #6FA0BE; }
.cc-ghost { border-color: rgba(244,242,238,0.18); color: #F4F2EE; }
.cc-ghost:hover { border-color: #6FA0BE; color: #6FA0BE; }

/* modale preferenze */
.cc-modal {
  position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); opacity: 0; transition: opacity .25s ease; padding: 20px;
}
.cc-modal.is-open { opacity: 1; }
.cc-modal-box {
  width: 100%; max-width: 520px; background: #1A1D1F;
  border: 1px solid rgba(244,242,238,0.14); border-radius: 8px; padding: 28px;
  font-family: 'Inter', system-ui, sans-serif; color: #F4F2EE; max-height: 90vh; overflow: auto;
}
.cc-modal-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 18px; }
.cc-row { padding: 16px 0; border-top: 1px solid rgba(244,242,238,0.12); }
.cc-row:first-of-type { border-top: none; }
.cc-row-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-row-h strong { font-weight: 600; font-size: 15px; }
.cc-row p { margin: 6px 0 0; font-size: 13px; color: #B7BBBE; line-height: 1.5; }
.cc-always { color: #6FA0BE; font-family: 'JetBrains Mono', monospace; }
.cc-modal .cc-actions { margin-top: 22px; justify-content: flex-end; }

/* switch */
.cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-switch span {
  position: absolute; inset: 0; cursor: pointer; background: #3A3D3F; border-radius: 24px; transition: .2s;
}
.cc-switch span::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #F4F2EE; border-radius: 50%; transition: .2s;
}
.cc-switch input:checked + span { background: #3B6E8F; }
.cc-switch input:checked + span::before { transform: translateX(18px); }

@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-modal, .cc-switch span, .cc-switch span::before { transition: none; }
}
