/* ============================================================
   PETRA Ottica — Cookie banner + placeholder mappa
   Palette coerente col resto del sito.
   ============================================================ */

/* ─────────── BANNER ─────────── */
#petra-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1a1a18;
  color: #f0e9dc;
  border-top: 1px solid rgba(200, 168, 82, 0.35);
  padding: 1.5rem 1.25rem;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#petra-consent.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.cookie-banner__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.35rem 0;
  color: #c8a852;
  letter-spacing: 0.02em;
}
.cookie-banner__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(240, 233, 220, 0.85);
}
.cookie-banner__body a {
  color: #c8a852;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cookie-banner__body a:hover {
  color: #e0c47a;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cookie-banner__btn--reject {
  background: transparent;
  color: rgba(240, 233, 220, 0.9);
  border-color: rgba(240, 233, 220, 0.35);
}
.cookie-banner__btn--reject:hover {
  border-color: rgba(240, 233, 220, 0.7);
  background: rgba(240, 233, 220, 0.05);
}
.cookie-banner__btn--accept {
  background: #c8a852;
  color: #1a1a18;
  border-color: #c8a852;
}
.cookie-banner__btn--accept:hover {
  background: #e0c47a;
  border-color: #e0c47a;
}

/* ─────────── PLACEHOLDER MAPPA ─────────── */
.cookie-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5efe3 0%, #ebe3d1 100%);
  color: #1a1a18;
  border: 1px dashed rgba(200, 168, 82, 0.6);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  min-height: 300px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.cookie-placeholder__inner {
  max-width: 380px;
}
.location-map > .cookie-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow-y: auto;
  border-radius: 0;
}
.cookie-placeholder__icon {
  font-size: 3rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}
.cookie-placeholder__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: #1a1a18;
  margin-bottom: 0.6rem;
}
.cookie-placeholder__desc {
  font-size: 0.92rem;
  color: rgba(26, 26, 24, 0.7);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.cookie-placeholder__btn {
  padding: 0.75rem 1.6rem;
  border: 1px solid #1a1a18;
  border-radius: 2px;
  background: #1a1a18;
  color: #f0e9dc;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-placeholder__btn:hover {
  background: #c8a852;
  border-color: #c8a852;
  color: #1a1a18;
}

/* ─────────── FOOTER LINK "Impostazioni cookie" ─────────── */
.cookie-footer-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.cookie-footer-link:hover { opacity: 1; }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cookie-banner__actions {
    flex-direction: column-reverse;
  }
  .cookie-banner__btn {
    width: 100%;
  }
  #petra-consent {
    padding: 1.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #petra-consent { transition: none; }
}
