/* Cookie Notice – v3.0 – tecnici + Google Maps, con body bump */
:root {
  --cn-bg: #111827;
  --cn-fg: #ffffff;
  --cn-muted: #9ca3af;
  --cn-accent: #60a5fa;
  --cn-ok: #10b981;
  --cn-radius: 14px;
  --cn-shadow: 0 10px 24px rgba(0,0,0,.25);
  --cn-z: 2147483000;
  --cn-font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Spazio quando il banner è visibile per non coprire il footer */
body.cn-has-banner { padding-bottom: var(--cn-bump, 140px); }

.cn-banner {
  font-family: var(--cn-font);
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: var(--cn-bg); color: var(--cn-fg);
  border-radius: var(--cn-radius);
  box-shadow: var(--cn-shadow);
  padding: 16px; z-index: var(--cn-z);
  display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.cn-banner h3 { margin: 0; font-size: 16px; font-weight: 700; }
.cn-banner p  { margin: 0; font-size: 14px; color: var(--cn-muted); line-height: 1.45; }

.cn-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cn-actions .cn-btn { width: 100%; text-align: center; }
.cn-btn {
  appearance: none; border: 0; cursor: pointer; line-height: 1;
  padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px;
}
.cn-btn-primary { background: var(--cn-ok); color: #fff; }
.cn-btn-ghost   { background: transparent; border: 1px solid #374151; color: #fff; }

.cn-link { color: var(--cn-accent); text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 720px) {
  .cn-banner { grid-template-columns: 1fr auto; padding: 18px 20px; }
  .cn-actions { flex-direction: row; justify-content: end; }
  .cn-actions .cn-btn { width: auto; }
}

/* Pulsante chiudi */
.cn-x {
  background: transparent; border: 0; color: #fff; font-size: 20px;
  cursor: pointer; line-height: 1; padding: 6px; margin-left: -6px;
}

/* ── Floating button preferenze cookie ───────────────────── */
.cn-pref-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2147482000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #A555EC;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(165, 85, 236, 0.45);
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  padding: 0;
}

@media (pointer: fine) {
  .cn-pref-btn:hover {
    background: #8e3fd4;
    transform: scale(1.08);
  }
}

.cn-pref-btn--hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Placeholder Google Maps ───────────────────────────────── */
.map-container {
  width: 100%;
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: #f0e8f5;
  border: 2px dashed #A555EC;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
}

.map-placeholder p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.map-consent-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #A555EC;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

@media (pointer: fine) {
  .map-consent-btn:hover { background: #8e3fd4; }
}
