.bg-warm-pattern {
    background-color: #faf8f5;
    background-image: radial-gradient(#e5d7c3 0.75px, transparent 0.75px);
    background-size: 16px 16px;
}

.pulse-badge {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(170, 127, 88, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(170, 127, 88, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(170, 127, 88, 0);
    }
}

/* --- CARD PROMOZIONALE IN SOVRAIMPRESSIONE (Palette Simone Zumpano) --- */
.promo-float {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 315px;
  max-width: calc(100vw - 32px);
  background: rgba(33, 31, 29, 0.96); /* stone-850 */
  backdrop-filter: blur(12px);
  color: #faf8f5; /* brand-50 */
  border: 1px solid rgba(211, 188, 159, 0.28); /* brand-300 */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(33, 31, 29, 0.35);
  z-index: 90;
  animation: floatIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-float.is-visible {
  display: block;
}

.promo-float.is-draggable {
  cursor: grab;
}

.promo-float.is-dragging,
.promo-float.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
}

.promo-float-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(229, 215, 195, 0.3);
  background: rgba(33, 31, 29, 0.78);
  color: #faf8f5;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.15s ease;
}

.promo-float-close:hover {
  background: #4d3429; /* brand-900 */
  transform: scale(1.06);
}

.promo-float-media {
  width: 100%;
  height: 136px;
  background: #4d3429;
  touch-action: none;
}

.promo-float-media[hidden] {
  display: none;
}

.promo-float-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}

.promo-float-body {
  padding: 16px 18px 18px;
  touch-action: none;
}

.promo-float-badge {
  display: inline-block;
  background: rgba(170, 127, 88, 0.22); /* brand-500 */
  color: #d3bc9f; /* brand-300 */
  border: 1px solid rgba(211, 188, 159, 0.38);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.promo-float-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #f3ede2; /* brand-100 */
  margin-bottom: 14px;
  padding-right: 18px;
}

.promo-float-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #aa7f58; /* brand-500 */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(170, 127, 88, 0.35);
  touch-action: manipulation;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.promo-float-link:hover {
  background: #8e6341; /* brand-600 */
  transform: translateY(-1px);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .promo-float {
    right: 14px;
    bottom: 76px; /* Resta sopra alla barra mobile fissa */
    width: 270px;
  }
  .promo-float-media {
    height: 100px;
  }
}

/* --- MODALE FORM PROMOZIONE (Coerente con modulo Buono 49€) --- */
.promo-modal[hidden] {
  display: none;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 31, 29, 0.68); /* stone-850 */
  backdrop-filter: blur(5px);
}

.promo-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #ffffff;
  color: #292524; /* stone-800 */
  border: 1px solid #e5d7c3; /* brand-200 */
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(33, 31, 29, 0.35);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.promo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5d7c3;
  background: #faf8f5;
  color: #5e3f30;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.promo-modal-close:hover {
  background: #f3ede2;
}

.promo-modal-badge {
  display: inline-block;
  background: #aa7f58; /* brand-500 */
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.promo-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  color: #211f1d; /* stone-850 */
  margin-bottom: 6px;
  padding-right: 28px;
}

.promo-modal-desc {
  font-size: 0.88rem;
  color: #57534e;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3ede2;
}

.promo-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .promo-grid-2 {
    grid-template-columns: 1fr;
  }
}

.promo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-field label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #44403c;
}

.promo-field input,
.promo-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d6d3d1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.875rem;
  color: #292524;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-field input:focus,
.promo-field select:focus {
  outline: none;
  border-color: #aa7f58;
  box-shadow: 0 0 0 2px rgba(170, 127, 88, 0.25);
}

.promo-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.promo-privacy input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #8e6341;
  flex-shrink: 0;
}

.promo-privacy label {
  font-size: 0.73rem;
  line-height: 1.45;
  color: #57534e;
}

.promo-privacy a {
  color: #8e6341;
  text-decoration: underline;
  font-weight: 500;
}

.promo-privacy a:hover {
  color: #5e3f30;
}

.promo-submit-btn {
  margin-top: 4px;
  width: 100%;
  background: #aa7f58; /* brand-500 */
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(170, 127, 88, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}

.promo-submit-btn:hover {
  background: #8e6341; /* brand-600 */
}

.promo-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.promo-form-feedback {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: center;
}

.promo-form-feedback[hidden] {
  display: none;
}

.promo-form-feedback.is-success {
  background: #f4f7f4; /* sage-50 */
  color: #4a5d4e;      /* sage-700 */
  border-color: #e3eae3;
}

.promo-form-feedback.is-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}