/* =============================================
   FUOCO & PIETRA — Cookie Consent Banner
   GDPR / Garante Privacy Italiano Compliant
   ============================================= */

#fp-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: #1a1712;
  border-top: 2px solid rgba(196, 98, 45, 0.35);
  padding: 1.4rem 5%;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#fp-cookie-banner.visible {
  transform: translateY(0);
}

.fp-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.fp-cookie-text {
  flex: 1;
  min-width: 280px;
}

.fp-cookie-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C4622D;
  margin-bottom: 0.4rem;
}

.fp-cookie-desc {
  font-size: 0.83rem;
  color: #C8BAA4;
  line-height: 1.65;
}

.fp-cookie-desc a {
  color: #C4622D;
  text-decoration: underline;
}

.fp-cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.fp-btn {
  padding: 10px 22px;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
  min-height: 42px;
}

.fp-btn-accept {
  background: #C4622D;
  color: #fff;
}
.fp-btn-accept:hover {
  background: #D4784A;
  transform: translateY(-1px);
}

.fp-btn-reject {
  background: transparent;
  color: #C8BAA4;
  border: 1px solid rgba(196, 98, 45, 0.3);
}
.fp-btn-reject:hover {
  border-color: #C4622D;
  color: #C4622D;
}

.fp-btn-settings {
  background: transparent;
  color: #C8BAA4;
  border: 1px solid rgba(200, 186, 164, 0.2);
  font-size: 0.75rem;
}
.fp-btn-settings:hover {
  border-color: rgba(200,186,164,0.5);
  color: #F5F0E8;
}

.fp-cookie-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none;
  border: none;
  color: #C8BAA4;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.fp-cookie-close:hover { color: #C4622D; }

/* Preferences Modal */
#fp-cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(14, 12, 9, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#fp-cookie-modal.open { display: flex; }

.fp-modal-box {
  background: #1a1712;
  border: 1px solid rgba(196, 98, 45, 0.25);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.fp-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #F5F0E8;
  margin-bottom: 0.5rem;
}
.fp-modal-sub {
  font-size: 0.85rem;
  color: #C8BAA4;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.fp-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(196, 98, 45, 0.12);
  gap: 1rem;
}
.fp-toggle-label { font-size: 0.9rem; font-weight: 600; color: #F5F0E8; margin-bottom: 3px; }
.fp-toggle-desc { font-size: 0.8rem; color: #C8BAA4; line-height: 1.5; }
.fp-toggle-required { font-size: 0.68rem; color: #C4622D; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }

/* Toggle switch */
.fp-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.fp-switch input { opacity: 0; width: 0; height: 0; }
.fp-slider {
  position: absolute; inset: 0;
  background: rgba(200,186,164,0.15);
  border-radius: 24px;
  cursor: pointer;
  transition: 0.25s;
}
.fp-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #C8BAA4;
  border-radius: 50%;
  transition: 0.25s;
}
.fp-switch input:checked + .fp-slider { background: #C4622D; }
.fp-switch input:checked + .fp-slider::before { transform: translateX(20px); background: #fff; }
.fp-switch input:disabled + .fp-slider { opacity: 0.5; cursor: not-allowed; }

.fp-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 640px) {
  .fp-cookie-inner { flex-direction: column; align-items: flex-start; }
  .fp-cookie-actions { width: 100%; }
  .fp-btn { flex: 1; text-align: center; justify-content: center; }
  .fp-modal-box { padding: 1.5rem; }
}
