/* ====================================
   CASAL DE' PAZZI - DESIGN SYSTEM V2
   New Frontend Theme
   ==================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors - Red */
  --cdp-red-50: #FEF2F1;
  --cdp-red-100: #FCE4E2;
  --cdp-red-200: #F9CCC8;
  --cdp-red-300: #F4A9A3;
  --cdp-red-400: #EC7A70;
  --cdp-red-500: #a84531;
  --cdp-red-600: #963d2b;
  --cdp-red-700: #843525;
  --cdp-red-800: #722D1F;
  --cdp-red-900: #5F2519;

  /* Neutral Cream */
  --cdp-cream-50: #FDFCFA;
  --cdp-cream-100: #fbe8d6;
  --cdp-cream-200: #F5F0E8;
  --cdp-cream-300: #EBE5DB;
  --cdp-cream-400: #DDD5C8;
  --cdp-cream-500: #CFC5B5;

  /* Text Colors */
  --cdp-text-primary: #2D2D2D;
  --cdp-text-secondary: #666666;
  --cdp-text-light: #FFFFFF;
  --cdp-text-muted: #999999;

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (allineate al brand red effettivo #a84531) */
  --shadow-sm: 0 2px 8px rgba(168, 69, 49, 0.10);
  --shadow-md: 0 4px 12px rgba(168, 69, 49, 0.15);
  --shadow-lg: 0 8px 24px rgba(168, 69, 49, 0.20);
  --shadow-xl: 0 12px 32px rgba(168, 69, 49, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ===== FONTS ===== */
@font-face {
  font-family: 'Heathergreen';
  src: url('/fonts/Heathergreen.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== BASE STYLES ===== */
.cdp-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--cdp-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
.cdp-font-display {
  font-family: 'Heathergreen', cursive;
}

.cdp-font-slogan {
  font-family: 'Comfortaa', sans-serif;
}

.cdp-h1 {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
}

.cdp-h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
}

.cdp-h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.3;
  font-weight: 700;
}

.cdp-body-lg {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

.cdp-body-sm {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  line-height: 1.4;
}

.cdp-caption {
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 500;
}

/* ===== ANIMATIONS ===== */
@keyframes cdp-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cdp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cdp-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cdp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cdp-animate-fade-up {
  animation: cdp-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cdp-animate-fade-in {
  animation: cdp-fade-in 0.4s ease both;
}

.cdp-animate-scale-in {
  animation: cdp-scale-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cdp-animate-float {
  animation: cdp-float 3s ease-in-out infinite;
}

/* Staggered animations */
.cdp-animate-delay-1 { animation-delay: 0.1s; }
.cdp-animate-delay-2 { animation-delay: 0.2s; }
.cdp-animate-delay-3 { animation-delay: 0.3s; }
.cdp-animate-delay-4 { animation-delay: 0.4s; }

/* ===== BUTTONS ===== */
.cdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.cdp-btn-primary {
  background-color: var(--cdp-red-500);
  color: var(--cdp-text-light);
  box-shadow: var(--shadow-md);
}

.cdp-btn-primary:hover {
  background-color: var(--cdp-red-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cdp-btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.cdp-btn-secondary {
  background-color: transparent;
  color: var(--cdp-red-500);
  border: 2px solid var(--cdp-red-500);
}

.cdp-btn-secondary:hover {
  background-color: var(--cdp-red-50);
  border-color: var(--cdp-red-600);
}

.cdp-btn-white {
  background-color: var(--cdp-text-light);
  color: var(--cdp-red-500);
  box-shadow: var(--shadow-md);
}

.cdp-btn-white:hover {
  background-color: var(--cdp-cream-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cdp-btn-outline-white {
  background-color: transparent;
  color: var(--cdp-text-light);
  border: 2px solid var(--cdp-text-light);
}

.cdp-btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cdp-btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.cdp-btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

/* ===== PILLS / CHIPS ===== */
.cdp-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--cdp-red-500);
  background-color: transparent;
  color: var(--cdp-red-500);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cdp-pill:hover {
  background-color: var(--cdp-red-50);
}

.cdp-pill.active,
.cdp-pill[data-active="true"] {
  background-color: var(--cdp-red-500);
  color: var(--cdp-text-light);
}

/* ===== QUICK DATE PILL (per step 1 prenota — proporzionata) ===== */
.cdp-quickdate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.cdp-quickdate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cdp-cream-400);
  background: transparent;
  color: var(--cdp-text-primary);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 64px;
}

.cdp-quickdate:hover {
  border-color: var(--cdp-red-500);
}

.cdp-quickdate.active {
  border-color: var(--cdp-red-500);
  background: var(--cdp-red-500);
  color: #fff;
}

.cdp-quickdate__label {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.cdp-quickdate__day {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: lowercase;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.cdp-quickdate.active .cdp-quickdate__day {
  opacity: 0.85;
}

/* Date picker compatto sotto le quick-date */
.cdp-date-picker {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cdp-cream-400);
  border-radius: var(--radius-md);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--cdp-text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.cdp-date-picker:hover,
.cdp-date-picker:focus {
  border-color: var(--cdp-red-500);
  color: var(--cdp-text-primary);
  outline: none;
}

/* ===== STEPPER MINI (per persone, seggioloni) ===== */
.cdp-stepper-mini {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--cdp-cream-400);
  border-radius: var(--radius-full);
  background: transparent;
  overflow: hidden;
}

.cdp-stepper-mini__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--cdp-red-500);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cdp-stepper-mini__btn:hover:not(:disabled) {
  background: var(--cdp-red-50);
}

.cdp-stepper-mini__btn:disabled {
  color: var(--cdp-text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.cdp-stepper-mini__value {
  min-width: 32px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cdp-text-primary);
  line-height: 1;
  user-select: none;
}

/* ===== PEOPLE ROW (preset + stepper su 1 sola riga) ===== */
.cdp-people-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 10px;
}

.cdp-people-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cdp-people-preset {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--cdp-cream-400);
  background: transparent;
  color: var(--cdp-text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cdp-people-preset:hover {
  border-color: var(--cdp-red-500);
  color: var(--cdp-red-500);
}

.cdp-people-preset.active {
  background: var(--cdp-red-500);
  border-color: var(--cdp-red-500);
  color: #fff;
}

.cdp-people-divider {
  flex: 1;
  height: 1px;
  background: rgba(168, 69, 49, 0.12);
  min-width: 12px;
}

/* ===== INLINE FORM ROW (label sx + control dx) ===== */
.cdp-form-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cdp-form-inline__text {
  flex: 1;
  min-width: 0;
}

.cdp-form-inline__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cdp-text-primary);
  line-height: 1.3;
}

.cdp-form-inline__hint {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--cdp-text-muted);
  margin-top: 2px;
}

/* ===== FORM BLOCK (spacing standard tra blocchi) ===== */
.cdp-form-block {
  margin-bottom: 36px;
}

.cdp-form-block:last-of-type {
  margin-bottom: 0;
}

.cdp-form-divider {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid rgba(168, 69, 49, 0.12);
}

/* ===== CARDS ===== */
.cdp-card {
  background-color: var(--cdp-text-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cdp-card-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== MENU CARD ===== */
.cdp-menu-card {
  text-align: center;
  padding: var(--space-4);
}

.cdp-menu-card__name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--cdp-red-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-1);
}

.cdp-menu-card__allergens {
  font-size: 0.6875rem;
  color: var(--cdp-text-muted);
  vertical-align: super;
}

.cdp-menu-card__description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--cdp-text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.cdp-menu-card__price {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--cdp-red-500);
}

/* ===== FORM ELEMENTS ===== */
.cdp-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--cdp-cream-400);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--cdp-text-primary);
  background-color: var(--cdp-text-light);
  transition: all var(--transition-fast);
}

.cdp-input:focus {
  outline: none;
  border-color: var(--cdp-red-500);
  box-shadow: 0 0 0 3px var(--cdp-red-50);
}

.cdp-input::placeholder {
  color: var(--cdp-text-muted);
}

.cdp-input-error {
  border-color: #EF4444;
}

/* ===== INPUT GROUP (per prefix + input affiancati) ===== */
.cdp-input-group {
  display: flex;
  width: 100%;
  border: 1.5px solid var(--cdp-cream-400);
  border-radius: var(--radius-md);
  background: var(--cdp-text-light);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cdp-input-group:focus-within {
  border-color: var(--cdp-red-500);
  box-shadow: 0 0 0 3px var(--cdp-red-50);
}

.cdp-input-group.cdp-input-error {
  border-color: #EF4444;
}

.cdp-input-group__prefix {
  flex-shrink: 0;
  width: 92px;
  padding: 12px 8px 12px 14px;
  border: 0;
  border-right: 1px solid var(--cdp-cream-400);
  background: var(--cdp-cream-50);
  color: var(--cdp-text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'%3e%3cpath d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  padding-right: 26px;
}

.cdp-input-group__input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--cdp-text-primary);
  outline: none;
}

.cdp-input-group__input::placeholder {
  color: var(--cdp-text-muted);
}

.cdp-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cdp-text-primary);
  margin-bottom: var(--space-2);
}

/* ===== STEP INDICATOR (legacy, lasciato per backcompat) ===== */
.cdp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.cdp-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cdp-text-muted);
  transition: all var(--transition-normal);
}

.cdp-step.active {
  background-color: var(--cdp-red-500);
  color: var(--cdp-text-light);
}

.cdp-step.completed {
  color: var(--cdp-red-500);
}

.cdp-step-line {
  width: 24px;
  height: 2px;
  background-color: var(--cdp-cream-400);
}

.cdp-step-line.active {
  background-color: var(--cdp-red-500);
}

/* ===== STEPPER v2 (numeri + label always visible) ===== */
.cdp-stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 6px;
}

.cdp-stepper__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cdp-stepper__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1.5px solid var(--cdp-cream-400);
  background: transparent;
  color: var(--cdp-text-muted);
  transition: all var(--transition-normal);
}

.cdp-stepper__node--active .cdp-stepper__num {
  background: var(--cdp-red-500);
  border-color: var(--cdp-red-500);
  color: #fff;
}

.cdp-stepper__node--done .cdp-stepper__num {
  background: var(--cdp-red-50);
  border-color: var(--cdp-red-500);
  color: var(--cdp-red-500);
}

.cdp-stepper__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cdp-text-muted);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.cdp-stepper__node--active .cdp-stepper__label,
.cdp-stepper__node--done .cdp-stepper__label {
  color: var(--cdp-red-500);
}

.cdp-stepper__bar {
  height: 1.5px;
  background: var(--cdp-cream-400);
  margin-top: 17px;
  align-self: start;
  transition: background var(--transition-normal);
}

.cdp-stepper__bar--done {
  background: var(--cdp-red-500);
}

/* ===== BOOKING SUMMARY (riepilogo con icone) ===== */
.cdp-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 16px 18px;
  background: var(--cdp-cream-100);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--cdp-text-primary);
}

.cdp-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.cdp-summary__icon {
  width: 16px;
  height: 16px;
  color: var(--cdp-red-500);
  flex-shrink: 0;
}

/* ===== STORE OPTION (radio per multi-store, bordo terracotta) ===== */
.cdp-store-option {
  border: 1.5px solid rgba(168, 69, 49, 0.18);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 24px;
  background: transparent;
  transition: border-color var(--transition-fast);
}

.cdp-store-option:last-child {
  margin-bottom: 0;
}

.cdp-store-option__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cdp-store-option__name {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cdp-text-primary);
}

.cdp-store-option__address {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--cdp-text-muted);
  text-align: right;
}

.cdp-store-option__slots-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cdp-text-muted);
  margin-bottom: 10px;
}

.cdp-store-option__empty {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--cdp-text-muted);
  font-style: italic;
}

/* ===== SUCCESS STATE ===== */
.cdp-success {
  text-align: center;
  padding: 16px 0 8px;
}

.cdp-success__check {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DCFCE7;
  border-radius: 50%;
  color: #15803D;
}

.cdp-success__check svg {
  width: 32px;
  height: 32px;
}

.cdp-success__title {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--cdp-red-500);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.cdp-success__lead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--cdp-text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cdp-success__details {
  background: var(--cdp-cream-100);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  text-align: left;
}

.cdp-success__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(168, 69, 49, 0.08);
}

.cdp-success__row:last-child {
  border-bottom: 0;
}

.cdp-success__row-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cdp-text-muted);
}

.cdp-success__row-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cdp-text-primary);
  text-align: right;
}

/* ===== EDIT LINK (riusabile) ===== */
.cdp-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--cdp-red-500);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.cdp-edit-link:hover {
  background: var(--cdp-red-50);
}

.cdp-edit-link svg {
  width: 14px;
  height: 14px;
}

/* ===== WAVE BORDER ===== */
.cdp-wave {
  display: block;
  width: 100%;
  height: 20px;
  color: var(--cdp-red-500);
}

.cdp-wave--cream {
  color: var(--cdp-cream-100);
}

.cdp-wave--flip {
  transform: rotate(180deg);
}

/* ===== HEADER DECORATIONS ===== */
.cdp-deco {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.cdp-deco svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ===== BACKGROUNDS ===== */
.cdp-bg-red {
  background-color: var(--cdp-red-500);
  color: var(--cdp-text-light);
}

.cdp-bg-cream {
  background-color: var(--cdp-cream-100);
  color: var(--cdp-text-primary);
}

.cdp-bg-white {
  background-color: var(--cdp-text-light);
  color: var(--cdp-text-primary);
}

/* ===== CONTAINER ===== */
.cdp-container {
  width: 100%;
  max-width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cdp-container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 768px) {
  .cdp-container {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .cdp-container {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .cdp-container {
    max-width: 1140px;
  }
}

/* ===== UTILITIES ===== */
.cdp-text-red { color: var(--cdp-red-500); }
.cdp-text-white { color: var(--cdp-text-light); }
.cdp-text-muted { color: var(--cdp-text-muted); }
.cdp-text-center { text-align: center; }

.cdp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for accessibility */
.cdp-focus-visible:focus-visible {
  outline: 2px solid var(--cdp-red-500);
  outline-offset: 2px;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 640px) {
  .cdp-btn,
  .cdp-input {
    min-height: 48px;
  }

  .cdp-pill {
    min-height: 40px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hide x-cloak elements until Alpine loads */
[x-cloak] { display: none !important; }

/* ===== BADGES ===== */
.cdp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.cdp-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.cdp-badge--success {
  background: #DCFCE7;
  color: #15803D;
}

.cdp-badge--warning {
  background: #FEF3C7;
  color: #B45309;
}

.cdp-badge--neutral {
  background: #F3F4F6;
  color: #6B7280;
}

/* ===== STORE CARD v3 — minimale, no fill ===== */
.cdp-store-card {
  background: transparent;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(168, 69, 49, 0.18);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.cdp-store-card:hover {
  border-color: var(--cdp-red-500);
  transform: translateY(-2px);
}

.cdp-store-card__name {
  font-family: 'Heathergreen', cursive;
  font-size: 2rem;
  color: var(--cdp-red-500);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.cdp-store-card__address {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--cdp-text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

.cdp-store-card__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  line-height: 1;
}

.cdp-store-card__status::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* APERTA — verde brillante, con dot pulsante */
.cdp-store-card__status--in-season {
  color: #166534;
  background: #DCFCE7;
}
.cdp-store-card__status--in-season::before {
  background: #16A34A;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  animation: cdp-pulse 2s ease-in-out infinite;
}

@keyframes cdp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.10); }
}

/* CHIUSA / FUORI STAGIONE — molto più visibile, rosso muted con bordo */
.cdp-store-card__status--out-of-season,
.cdp-store-card__status--closed {
  color: #B91C1C;
  background: #FEE2E2;
  border: 1px solid rgba(185, 28, 28, 0.25);
}
.cdp-store-card__status--out-of-season::before,
.cdp-store-card__status--closed::before {
  background: #DC2626;
}

/* Quando una sede è chiusa, sfuma leggermente la card */
.cdp-store-card:has(.cdp-store-card__status--out-of-season),
.cdp-store-card:has(.cdp-store-card__status--closed) {
  opacity: 0.86;
}
.cdp-store-card:has(.cdp-store-card__status--out-of-season):hover,
.cdp-store-card:has(.cdp-store-card__status--closed):hover {
  opacity: 1;
}

.cdp-store-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.cdp-store-card__action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cdp-cream-400);
  background: transparent;
  color: var(--cdp-text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.cdp-store-card__action:hover {
  border-color: var(--cdp-red-500);
  color: var(--cdp-red-500);
}

.cdp-store-card__action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== STICKY MENU TAB BAR ===== */
.cdp-menu-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cdp-cream-100);
  padding: 20px 0;
  margin-bottom: 72px;
  border-bottom: 1px solid rgba(168, 69, 49, 0.12);
}

.cdp-menu-tabs__scroller {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 var(--space-4);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cdp-menu-tabs__scroller::-webkit-scrollbar {
  display: none;
}

.cdp-menu-tab {
  scroll-snap-align: center;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--cdp-text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.cdp-menu-tab:hover {
  background: rgba(168, 69, 49, 0.06);
}

.cdp-menu-tab.active {
  background: var(--cdp-red-500);
  color: var(--cdp-text-light);
}

/* ===== MENU GRID ===== */
.cdp-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 64px;
}

@media (min-width: 768px) {
  .cdp-menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 96px;
  }
}

.cdp-menu-item {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px dashed rgba(168, 69, 49, 0.18);
}

.cdp-menu-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.cdp-menu-item__name {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cdp-red-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  line-height: 1.2;
}

.cdp-menu-item__price {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cdp-red-500);
  white-space: nowrap;
}

.cdp-menu-item__description {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--cdp-text-secondary);
  line-height: 1.5;
  text-align: left;
  font-style: italic;
}

.cdp-menu-item__allergens {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  color: var(--cdp-text-muted);
  text-align: left;
}

/* ===== SECTION HEADER (riusabile per home/contatti) ===== */
.cdp-section {
  padding: var(--space-12) 0;
}

.cdp-section__title {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cdp-red-500);
  text-align: center;
  margin-bottom: var(--space-2);
  line-height: 1;
}

.cdp-section__subtitle {
  text-align: center;
  color: var(--cdp-text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-10);
}

/* ===== APP DOWNLOAD BANNER v3 — flat, no card ===== */
.cdp-app-banner {
  background: transparent;
  padding: 0;
  text-align: center;
}

.cdp-app-banner__title {
  font-family: 'Heathergreen', cursive;
  font-size: 2.5rem;
  color: var(--cdp-red-500);
  margin-bottom: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.cdp-app-banner__subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--cdp-text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cdp-app-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cdp-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: transparent;
  color: var(--cdp-text-primary);
  border: 1.5px solid var(--cdp-cream-400);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-normal);
  min-width: 168px;
  min-height: 52px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cdp-store-btn:hover {
  border-color: var(--cdp-red-500);
  color: var(--cdp-red-500);
  transform: translateY(-2px);
}

.cdp-store-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== CONTACT ROW (riga azione contatto, flat) ===== */
.cdp-contact-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 16px;
  border-bottom: 1px solid rgba(168, 69, 49, 0.12);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
  border-radius: var(--radius-md);
}

.cdp-contact-row:hover {
  background: rgba(168, 69, 49, 0.05);
}

.cdp-contact-row:last-child {
  border-bottom: 0;
}

.cdp-contact-row__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(168, 69, 49, 0.18);
  border-radius: 50%;
  color: var(--cdp-red-500);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.cdp-contact-row:hover .cdp-contact-row__icon {
  border-color: var(--cdp-red-500);
  background: var(--cdp-red-50);
}

.cdp-contact-row__icon svg {
  width: 22px;
  height: 22px;
}

.cdp-contact-row__body {
  flex: 1;
  min-width: 0;
}

.cdp-contact-row__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--cdp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cdp-contact-row__value {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cdp-text-primary);
  line-height: 1.3;
  display: block;
}

.cdp-contact-row__chevron {
  color: var(--cdp-text-muted);
  flex-shrink: 0;
}

.cdp-contact-row__chevron svg {
  width: 16px;
  height: 16px;
}

/* ===== EYEBROW (mini-titolo sezione) ===== */
.cdp-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cdp-red-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 20px;
}

/* ===== FEATURE LIST (per pagina app) ===== */
.cdp-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cdp-feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 64px 56px;
  }
}

.cdp-feature {
  text-align: center;
}

.cdp-feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(168, 69, 49, 0.22);
  border-radius: 50%;
  color: var(--cdp-red-500);
}

.cdp-feature__icon svg {
  width: 26px;
  height: 26px;
}

.cdp-feature__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cdp-text-primary);
  margin-bottom: 10px;
}

.cdp-feature__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--cdp-text-secondary);
  line-height: 1.6;
}

/* ===== APP HERO (per pagina /app) ===== */
.cdp-app-hero {
  text-align: center;
  padding: 0;
}

.cdp-app-hero__phone-frame {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(168, 69, 49, 0.22);
  border-radius: 24px;
  color: var(--cdp-red-500);
}

.cdp-app-hero__phone-frame svg {
  width: 36px;
  height: 36px;
}

.cdp-app-hero__title {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--cdp-red-500);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.cdp-app-hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--cdp-text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 48px;
}

/* ===== HERO CTA (override hero per accomodare bottone) ===== */
.cdp-hero-cta {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  top: 38%;
}

@media (min-width: 768px) {
  .cdp-hero-cta {
    top: 44%;
  }
}

@media (min-width: 1024px) {
  .cdp-hero-cta {
    top: 46%;
  }
}

/* ===== MOBILE NAV DRAWER ===== */
.cdp-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.cdp-nav-drawer.open {
  display: block;
}

.cdp-nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  background: var(--cdp-red-500);
  color: var(--cdp-text-light);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  animation: cdp-drawer-in 0.25s ease;
}

@keyframes cdp-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cdp-nav-drawer__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-full);
}

.cdp-nav-drawer__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cdp-nav-drawer__link {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.cdp-nav-drawer__link:hover,
.cdp-nav-drawer__link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ===== GLOBAL FOCUS-VISIBLE ===== */
button:focus-visible,
a:focus-visible,
.cdp-input:focus-visible,
.cdp-pill:focus-visible,
.cdp-menu-tab:focus-visible {
  outline: 2px solid var(--cdp-red-500);
  outline-offset: 2px;
}

/* Touch target floor */
@media (max-width: 640px) {
  .cdp-pill { min-height: 44px; }
}

/* ===== WAVE responsive toggle (desktop vs mobile) ===== */
.cdp-wave-mobile-only { display: none !important; }
@media (max-width: 767px) {
  .cdp-wave-desktop-only { display: none !important; }
  .cdp-wave-mobile-only { display: block !important; }
}

/* ============================================================
   DESIGN SYSTEM v3 — generous spacing, impact headings, footer
   Tutte le nuove regole sono additive; le legacy restano valide.
   ============================================================ */

/* ===== SPACING TOKENS v3 ===== */
:root {
  /* Section vertical rhythm (clamp-based, fluid mobile→desktop) */
  --cdp-section-y-sm: clamp(48px, 6vw, 72px);
  --cdp-section-y-md: clamp(64px, 8vw, 104px);
  --cdp-section-y-lg: clamp(80px, 10vw, 136px);
  --cdp-section-y-xl: clamp(104px, 12vw, 168px);

  /* Container horizontal padding (fluid) */
  --cdp-gutter-x: clamp(20px, 4vw, 48px);

  /* Stack rhythm (gap between in-section blocks) */
  --cdp-stack-sm: clamp(16px, 2.5vw, 24px);
  --cdp-stack-md: clamp(24px, 3.5vw, 40px);
  --cdp-stack-lg: clamp(36px, 5vw, 64px);
  --cdp-stack-xl: clamp(48px, 6vw, 88px);
}

/* ===== SECTION v3 (override + new variants) ===== */
.cdp-section {
  padding-top: var(--cdp-section-y-md);
  padding-bottom: var(--cdp-section-y-md);
}
.cdp-section--sm { padding-top: var(--cdp-section-y-sm); padding-bottom: var(--cdp-section-y-sm); }
.cdp-section--lg { padding-top: var(--cdp-section-y-lg); padding-bottom: var(--cdp-section-y-lg); }
.cdp-section--xl { padding-top: var(--cdp-section-y-xl); padding-bottom: var(--cdp-section-y-xl); }

/* Allows pairing: tighten top/bottom only when needed */
.cdp-section--pt-sm { padding-top: var(--cdp-section-y-sm); }
.cdp-section--pb-sm { padding-bottom: var(--cdp-section-y-sm); }
.cdp-section--pt-lg { padding-top: var(--cdp-section-y-lg); }
.cdp-section--pb-lg { padding-bottom: var(--cdp-section-y-lg); }

/* Section heading composition (eyebrow + title + intro) */
.cdp-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: var(--cdp-stack-lg);
}

.cdp-section__head--start {
  align-items: flex-start;
  text-align: left;
}

.cdp-section__head .cdp-eyebrow {
  margin-bottom: 0;
}

.cdp-section__title {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--cdp-red-500);
  text-align: center;
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.cdp-section__title--xl {
  font-size: clamp(3rem, 9vw, 6rem);
}

.cdp-section__intro {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--cdp-text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

/* Backgrounds for alternation */
.cdp-bg-cream-soft { background-color: var(--cdp-cream-50); color: var(--cdp-text-primary); }
.cdp-bg-cream-warm { background-color: var(--cdp-cream-100); color: var(--cdp-text-primary); }
.cdp-bg-cream-deep { background-color: var(--cdp-cream-200); color: var(--cdp-text-primary); }

/* Section separator mark (small ornamental dot row) */
.cdp-section-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

.cdp-section-mark::before,
.cdp-section-mark::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(168, 69, 49, 0.25);
}

.cdp-section-mark__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cdp-red-500);
  opacity: 0.55;
}

/* ===== CONTAINER v3 (wide variant + fluid gutters) ===== */
.cdp-container {
  width: 100%;
  max-width: 100%;
  padding-left: var(--cdp-gutter-x);
  padding-right: var(--cdp-gutter-x);
  margin: 0 auto;
}

@media (min-width: 768px)  { .cdp-container { max-width: 760px; } }
@media (min-width: 1024px) { .cdp-container { max-width: 1040px; } }
@media (min-width: 1280px) { .cdp-container { max-width: 1200px; } }
@media (min-width: 1536px) { .cdp-container { max-width: 1320px; } }

.cdp-container-narrow { max-width: 720px !important; }
.cdp-container-wide   { max-width: 100% !important; }
@media (min-width: 1280px) { .cdp-container-wide { max-width: 1320px !important; } }

/* ===== STACK / FLOW utilities (vertical rhythm in section) ===== */
.cdp-stack > * + * { margin-top: var(--cdp-stack-md); }
.cdp-stack-sm > * + * { margin-top: var(--cdp-stack-sm); }
.cdp-stack-md > * + * { margin-top: var(--cdp-stack-md); }
.cdp-stack-lg > * + * { margin-top: var(--cdp-stack-lg); }
.cdp-stack-xl > * + * { margin-top: var(--cdp-stack-xl); }

/* ===== EYEBROW (refined) ===== */
.cdp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cdp-red-500);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0;
  text-align: center;
}

.cdp-eyebrow::before,
.cdp-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.cdp-eyebrow--start::before { display: none; }

/* ===== STEPPER MINI — touch target floor (WCAG 2.5.5) ===== */
.cdp-stepper-mini__btn { width: 44px; height: 44px; }

/* ===== MENU SECTION rhythm v3 — più aria sopra/sotto le tab ===== */
.cdp-menu-tabs {
  padding: 24px 0;
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* ===== APP BANNER v3 — titolo grande ===== */
.cdp-app-banner__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
}

.cdp-app-banner__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 520px;
}

/* ===== FOOTER v3 — sobrio, 3 colonne ============================= */
.cdp-footer {
  background-color: var(--cdp-red-500);
  color: var(--cdp-text-light);
  position: relative;
}

.cdp-footer-body {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.cdp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 4.5vw, 56px);
}

@media (min-width: 640px) {
  .cdp-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.cdp-footer-col__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.cdp-footer-col p,
.cdp-footer-col a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin: 0;
}

.cdp-footer-col a {
  display: inline-block;
  transition: color var(--transition-fast);
}

.cdp-footer-col a:hover { color: #fff; }

.cdp-footer-col__brand-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 14px;
}

.cdp-footer-col__sub {
  display: inline;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 6px;
}

/* Bottom row: copyright + privacy */
.cdp-footer-bottom {
  padding-top: 24px;
  padding-bottom: clamp(24px, 2.5vw, 36px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.cdp-footer-bottom__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.cdp-footer-bottom__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cdp-footer-bottom__links a:hover { color: #fff; }

.cdp-footer-bottom__btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.cdp-footer-bottom__btn:hover { color: #fff; }

@media (min-width: 768px) {
  .cdp-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== HERO tweak — avvicina CTA al claim (estetica più calda) ===== */
.cdp-hero-cta { top: 32%; }
@media (min-width: 768px)  { .cdp-hero-cta { top: 38%; } }
@media (min-width: 1024px) { .cdp-hero-cta { top: 40%; } }

/* ===== Pretty horizontal divider for sections (subtle brand line) ===== */
.cdp-divider-soft {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(168, 69, 49, 0.18) 25%,
              rgba(168, 69, 49, 0.28) 50%,
              rgba(168, 69, 49, 0.18) 75%,
              transparent 100%);
  border: 0;
  margin: 0;
}

/* ===== Pretty store cards spacing v3 ===== */
.cdp-store-card { padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 48px); }
.cdp-store-card__name { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 18px; }
.cdp-store-card__address { margin-bottom: 32px; }
.cdp-store-card__status { margin-bottom: clamp(36px, 5vw, 56px); }

/* ===== PROSE — privacy / cookie page typography ===== */
.cdp-prose {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cdp-text-primary);
  max-width: 100%;
}

.cdp-prose h2 {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--cdp-red-500);
  line-height: 1.1;
  margin-top: clamp(40px, 5vw, 56px);
  margin-bottom: 16px;
  letter-spacing: 0.005em;
}

.cdp-prose h2:first-child { margin-top: 0; }

.cdp-prose p,
.cdp-prose ul {
  margin: 0 0 20px;
  color: var(--cdp-text-primary);
}

.cdp-prose ul {
  padding-left: 24px;
}

.cdp-prose li {
  margin-bottom: 8px;
  list-style: disc;
}

.cdp-prose li::marker {
  color: var(--cdp-red-500);
}

.cdp-prose a {
  color: var(--cdp-red-500);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.cdp-prose a:hover { color: var(--cdp-red-700); }

.cdp-prose strong { font-weight: 700; color: var(--cdp-text-primary); }

.cdp-prose code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
  background: var(--cdp-cream-200);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--cdp-red-700);
}

.cdp-prose__updated {
  margin-top: 48px !important;
  font-size: 0.8125rem;
  color: var(--cdp-text-muted);
  font-style: italic;
}

/* ===== COOKIE BANNER (Consent Mode v2) ===== */
.cdp-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  padding: 16px;
  pointer-events: none;
}

.cdp-cookie-banner__panel {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--cdp-cream-300);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.cdp-cookie-banner__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.cdp-cookie-banner__title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cdp-text-primary);
  margin: 0 0 6px;
  line-height: 1.3;
}

.cdp-cookie-banner__body {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--cdp-text-secondary);
  line-height: 1.55;
  margin: 0 0 16px;
}

.cdp-cookie-banner__body a {
  color: var(--cdp-red-500);
  text-decoration: underline;
}

.cdp-cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cdp-cookie-banner__actions .cdp-btn-sm {
  font-size: 0.8125rem;
  padding: 8px 14px;
}

.cdp-cookie-banner__manage {
  background: transparent;
  border: 0;
  padding: 8px 4px;
  color: var(--cdp-text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.cdp-cookie-banner__manage:hover { color: var(--cdp-red-500); }

@media (max-width: 640px) {
  .cdp-cookie-banner__panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cdp-cookie-banner__icon { display: none; }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cdp-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(45, 30, 25, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cdp-cookie-modal__panel {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 3.5vw, 36px);
}

.cdp-cookie-modal__title {
  font-family: 'Heathergreen', cursive;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--cdp-red-500);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: 0.005em;
}

.cdp-cookie-modal__intro {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--cdp-text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
}

.cdp-cookie-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--cdp-cream-300);
}

.cdp-cookie-row:first-of-type { border-top: 0; padding-top: 0; }

.cdp-cookie-row__text { flex: 1; min-width: 0; }

.cdp-cookie-row__name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cdp-text-primary);
  margin: 0 0 4px;
}

.cdp-cookie-row__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--cdp-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cdp-cookie-row__required {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--cdp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Toggle switch */
.cdp-toggle {
  flex-shrink: 0;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}

.cdp-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cdp-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--cdp-cream-400);
  border-radius: 999px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.cdp-toggle__slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cdp-toggle input:checked + .cdp-toggle__slider {
  background: var(--cdp-red-500);
}

.cdp-toggle input:checked + .cdp-toggle__slider::before {
  transform: translateX(18px);
}

.cdp-cookie-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cdp-cream-300);
}

.cdp-cookie-modal__actions > * { flex: 1; min-width: 140px; }

/* ===== PEOPLE STEPPER — unified, prominent control ===== */
.cdp-people-stepper {
  display: flex;
  align-items: stretch;
  gap: 16px;
  background: var(--cdp-cream-50);
  border: 1.5px solid var(--cdp-cream-300);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  transition: border-color var(--transition-fast);
}

.cdp-people-stepper:focus-within {
  border-color: var(--cdp-red-500);
}

.cdp-people-stepper__btn {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--cdp-red-500);
  background: transparent;
  color: var(--cdp-red-500);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdp-people-stepper__btn:hover:not(:disabled) {
  background: var(--cdp-red-500);
  color: #fff;
  transform: scale(1.05);
}

.cdp-people-stepper__btn:active:not(:disabled) {
  transform: scale(0.95);
}

.cdp-people-stepper__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--cdp-text-muted);
  color: var(--cdp-text-muted);
}

.cdp-people-stepper__display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
}

.cdp-people-stepper__value {
  font-family: 'Heathergreen', cursive;
  font-size: 2.75rem;
  color: var(--cdp-red-500);
  line-height: 1;
  letter-spacing: 0.005em;
}

.cdp-people-stepper__unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cdp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Quick-pick row */
.cdp-people-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 4px;
}

.cdp-people-quick__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cdp-text-muted);
  margin-right: 4px;
}

.cdp-people-quick__chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cdp-cream-400);
  background: transparent;
  color: var(--cdp-text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cdp-people-quick__chip:hover {
  border-color: var(--cdp-red-500);
  color: var(--cdp-red-500);
}

.cdp-people-quick__chip.active {
  background: var(--cdp-red-500);
  border-color: var(--cdp-red-500);
  color: #fff;
}

/* Store cards grid — generous horizontal spacing */
.cdp-stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 56px);
}
@media (min-width: 768px) {
  .cdp-stores-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(56px, 9vw, 128px);
    row-gap: 40px;
  }
}

/* ===== Menu grid breathing ===== */
@media (min-width: 768px) {
  .cdp-menu-grid { gap: 56px 120px; }
}

/* ===== Feature list breathing ===== */
.cdp-feature-list { gap: clamp(48px, 6vw, 72px); }
@media (min-width: 768px) {
  .cdp-feature-list { gap: clamp(64px, 6vw, 88px) clamp(48px, 5vw, 80px); }
}

/* ===== App hero v3 ===== */
.cdp-app-hero__title { font-size: clamp(2.75rem, 7vw, 4.75rem); margin-bottom: 24px; }
.cdp-app-hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cdp-app-hero__phone-frame {
  width: clamp(80px, 8vw, 112px);
  height: clamp(80px, 8vw, 112px);
  margin-bottom: clamp(28px, 4vw, 44px);
}
