/* Banner dei cookie e pulsante "privacy" per le pagine costruite con il kit
   tasteskill, che non caricano style.css né Bootstrap. Stesso markup e stessi
   id del resto del sito: il consenso lo gestisce app.js come altrove. */
.mf-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000;
  max-height: 70vh; overflow-y: auto;
  background: var(--p-bg, #fcf9f2); color: var(--p-ink, #1a332a);
  border-top: 1px solid var(--p-ink, #1a332a);
  padding: 20px 20px 16px;
  box-shadow: 0 -12px 40px rgba(26, 51, 42, .12);
  font-family: var(--font-text, system-ui, sans-serif);
  opacity: 0; transform: translateY(100%); pointer-events: none;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}
@media (min-width: 768px) {
  .mf-cookie-banner {
    left: 24px; right: auto; bottom: 24px; max-width: 400px;
    border: 1px solid var(--p-ink, #1a332a); border-radius: 16px; padding: 24px;
  }
}
.mf-cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mf-cookie-banner .d-flex { display: flex; }
.mf-cookie-banner .align-items-center { align-items: center; }
.mf-cookie-banner .justify-content-between { justify-content: space-between; }
.mf-cookie-banner .gap-2 { gap: 8px; }
.mf-cookie-banner .mb-2 { margin-bottom: 8px; }
.mf-cookie-banner .mt-2 { margin-top: 8px; }
.mf-cookie-banner .w-100 { width: 100%; }
.mf-cookie-banner .flex-grow-1 { flex-grow: 1; }
.mf-cookie-banner .fw-bold { font-weight: 600; }
.mf-cookie-banner .fs-7 { font-size: .875rem; }
.mf-cookie-banner .fs-8 { font-size: .8rem; }
.mf-cookie-banner .text-muted { color: var(--p-muted, #4a5c54); }
.mf-cookie-banner .d-none { display: none !important; }
.mf-cookie-icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--p-accent, #ddf35d); color: var(--p-ink, #1a332a);
}
.mf-cookie-title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; line-height: 1.2; padding-right: 40px; }
.mf-cookie-text { font-size: .9rem; line-height: 1.5; margin: 0 0 12px; color: var(--p-ink, #1a332a); }
.mf-cookie-text a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mf-cookie-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mf-cookie-close:hover { background: var(--p-surface, #e4dac4); }
.mf-cookie-preferences { display: none; margin: 4px 0 12px; }
.mf-cookie-preferences.show { display: block; }
.mf-preference-item { padding: 10px 0; border-top: 1px solid rgba(26, 51, 42, .15); }
.mf-preference-item .form-check-input { width: 40px; height: 22px; accent-color: var(--p-ink, #1a332a); }
/* i pulsanti sono quelli del kit (.btn--primary e .btn--secondary): qui solo la misura minima toccabile */
.mf-cookie-actions .btn { min-height: 44px; }
.mf-cookie-banner button:focus-visible, .mf-privacy-trigger:focus-visible { outline: 3px solid var(--p-ink, #1a332a); outline-offset: 2px; }
.mf-privacy-trigger {
  position: fixed; left: 16px; bottom: 16px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--p-ink, #1a332a); background: var(--p-bg, #fcf9f2); color: var(--p-ink, #1a332a);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
@media (max-width: 767px) { .mf-privacy-trigger { bottom: 84px; } }
