/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES — PIADA DEL PARCO
   ========================================================================== */

html, body {
  max-width: 100%;
  overflow-x: hidden;
  background-color: #FAF7F2;
  color: #1C1917;
}

/* Background Grain Sfumato Artigianale */
.grain-bg {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(200, 109, 39, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(30, 58, 47, 0.05) 0%, transparent 45%);
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 58, 47, 0.08);
}

/* ==========================================================================
   EFFETTI ROTANTI BORDER BEAM
   ========================================================================== */
.glow-border-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 58, 47, 0.1);
  z-index: 1;
}

.glow-border-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, transparent, #C86D27, #1E3A2F, transparent);
  animation: rotate-beam 5s linear infinite;
  z-index: -2;
}

.glow-border-box::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #FFFFFF;
  border-radius: calc(1.5rem - 2px);
  z-index: -1;
}

/* Bottone Chiama Glow */
.glow-border-btn {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 58, 47, 0.15);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.glow-border-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, #C86D27, #1E3A2F, transparent);
  animation: rotate-beam 4s linear infinite;
  z-index: -2;
}

.glow-border-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #FAF7F2;
  border-radius: calc(1rem - 2px);
  z-index: -1;
}

@keyframes rotate-beam {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   PILLS CONFIGURATORE & UTILITIES
   ========================================================================== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.25); }
}
.dot-pulsing { animation: pulse-dot 1.8s infinite ease-in-out; }

.opt-pill {
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
}

.opt-pill.selected {
  background: #1E3A2F !important;
  color: #FFFFFF !important;
  border-color: #1E3A2F !important;
}

.opt-pill.selected .opt-price {
  color: #F2ECE1 !important;
}