/* Cookie consent banner, Garante-compliant, vanilla, no dependencies.
   Created 2026-05-22 for Borgia di Firenze. */

#bdf-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 20px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  display: none;
  border-top: 3px solid #7b1a37;
}

#bdf-cookie-banner.show {
  display: block;
  animation: bdf-cookie-slide-in 0.35s ease-out;
}

@keyframes bdf-cookie-slide-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

#bdf-cookie-banner .bdf-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

#bdf-cookie-banner .bdf-cookie-text {
  flex: 1 1 480px;
  min-width: 280px;
}

#bdf-cookie-banner h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffbf00;
}

#bdf-cookie-banner p {
  margin: 0;
  color: #d8d8d8;
}

#bdf-cookie-banner a {
  color: #ffbf00;
  text-decoration: underline;
}

#bdf-cookie-banner .bdf-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

#bdf-cookie-banner button {
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

#bdf-cookie-banner button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

#bdf-cookie-banner .bdf-cookie-accept {
  background: #7b1a37;
  color: #fff;
}

#bdf-cookie-banner .bdf-cookie-reject {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid #555;
}

#bdf-cookie-banner .bdf-cookie-link {
  background: transparent;
  color: #ffbf00;
  text-decoration: underline;
  padding: 10px 6px;
}

/* Re-open link in footer */
.bdf-cookie-reopen {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

@media (max-width: 640px) {
  #bdf-cookie-banner {
    padding: 16px 16px;
    font-size: 13px;
  }
  #bdf-cookie-banner .bdf-cookie-inner {
    gap: 12px;
  }
  #bdf-cookie-banner .bdf-cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  #bdf-cookie-banner button {
    flex: 1;
  }
}
