/* ==========================================================================
   PIZZA COMANDA - FOGLIO DI STILE UFFICIALE
   ========================================================================== */

:root {
  --primary: #c62828;
  --primary-dark: #9b1e1e;
  --primary-light: #e53935;
  --primary-subtle: #fde8e8;
  
  --secondary: #2e7d32;
  --secondary-dark: #1b5e20;
  --secondary-light: #388e3c;
  --secondary-subtle: #e8f5e9;

  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-cream: #faf5ee;

  --dark-bg: #181818;
  --dark-surface: #222222;
  --dark-card: #2c2c2c;
  --dark-border: #3d3d3d;
  
  --body-bg: #faf7f2;
  --body-card: #ffffff;
  --body-border: #e8e2d5;
  --body-border-light: #f0ebe1;
  
  --text-main: #1f1f1f;
  --text-muted: #666056;
  --text-light: #948e82;
  --text-white: #ffffff;

  --whatsapp-color: #25d366;
  --whatsapp-dark: #1ebd5a;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 0 25px rgba(198, 40, 40, 0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', Courier, monospace;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gold { color: var(--accent-gold); }
.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-red {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(198, 40, 40, 0.2);
}
.badge-green {
  background: var(--secondary-subtle);
  color: var(--secondary);
  border: 1px solid rgba(46, 125, 50, 0.2);
}
.badge-gold {
  background: #fff8e1;
  color: #b7791f;
  border: 1px solid #fbd38d;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.35);
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: var(--text-white);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--dark-bg);
  border: 2px solid var(--body-border);
}
.btn-secondary:hover {
  background: var(--body-bg);
  border-color: var(--dark-bg);
}

.btn-dark {
  background: var(--dark-bg);
  color: var(--text-white);
}
.btn-dark:hover {
  background: #000000;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.12rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */
.topbar-promo {
  background: linear-gradient(90deg, #b71c1c, #d32f2f, #c62828);
  color: var(--text-white);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 101;
}
.topbar-promo strong {
  background: #ffffff;
  color: #b71c1c;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  margin: 0 0.3rem;
  display: inline-block;
}

.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--body-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
}
.brand-text-block {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark-bg);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.brand-name span {
  color: var(--primary);
}
.brand-tagline {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-link {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-bg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 10% 20%, #fffbf5 0%, #faf5ee 45%, #f4ede0 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--body-border);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(198, 40, 40, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 850;
  line-height: 1.15;
  color: var(--dark-bg);
  letter-spacing: -1.2px;
  margin-bottom: 1.25rem;
}
.hero-title .italic-flair {
  font-style: italic;
  color: var(--primary);
  display: block;
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 2.2rem;
  list-style: none;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark-bg);
}
.hero-feature-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--body-border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.trust-item svg {
  color: var(--primary);
}

/* Hero Media Visual */
.hero-visual-wrapper {
  position: relative;
}
.hero-main-card {
  background: var(--body-card);
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-main-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.hero-main-img {
  border-radius: calc(var(--radius-xl) - 4px);
  width: 100%;
  display: block;
}

.hero-floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--body-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
  animation: floatSlow 4s ease-in-out infinite alternate;
}
.badge-top-right {
  top: -20px;
  right: -20px;
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  border: 2px solid var(--accent-gold);
}
.badge-bottom-left {
  bottom: -25px;
  left: -25px;
  animation-delay: 2s;
  border: 2px solid var(--secondary);
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   MEGA PROMO BANNER (365 GIORNI GRATIS)
   ========================================================================== */
.promo-mega-section {
  padding: 2rem 0;
  background: var(--dark-bg);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}
.promo-mega-card {
  background: linear-gradient(135deg, #1f1f1f 0%, #292929 100%);
  border: 2px solid #b71c1c;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 10px 40px rgba(183, 28, 28, 0.25);
  position: relative;
}

.promo-badge-calendar {
  background: #ffffff;
  color: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.6rem;
  text-align: center;
  border: 3px solid #b71c1c;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.calendar-days {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  display: block;
}
.calendar-label {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #ffffff;
}
.promo-content h3 span {
  color: #ff5252;
}
.promo-content p {
  color: #d1cfc7;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.promo-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.promo-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.promo-pill svg {
  color: #4caf50;
}

.promo-cta-box {
  text-align: center;
  flex-shrink: 0;
}
.promo-cta-box .micro-hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #b0a99c;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}
.section-header {
  max-width: 780px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: inline-block;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 850;
  color: var(--dark-bg);
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3 PILLARS / I 3 PILASTRI (DAL VOLANTINO)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--body-card);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--body-border);
  box-shadow: var(--shadow-md);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.pillar-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.pillar-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark-bg);
  line-height: 1.25;
  margin-bottom: 0.9rem;
  padding-right: 2.5rem;
}

.pillar-quote {
  background: #fdfbf7;
  border-left: 3px solid var(--accent-gold);
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.2rem;
}

.pillar-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pillar-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--body-border-light);
}
.pillar-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-bg);
}
.pillar-checklist li svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   FEATURE DEEP DIVE: COMANDE DIVERSIFICATE (PIZZAIOLO VS RIDER)
   ========================================================================== */
.comande-section {
  background: #1e1e1e;
  color: var(--text-white);
}
.comande-section .section-title {
  color: #ffffff;
}
.comande-section .section-desc {
  color: #c9c4b7;
}

.tickets-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.ticket-wrapper {
  background: #282828;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid #3d3d3d;
}
.ticket-wrapper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #3d3d3d;
}
.ticket-target-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-kitchen {
  background: rgba(229, 57, 53, 0.2);
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}
.badge-rider {
  background: rgba(46, 125, 50, 0.25);
  color: #4caf50;
  border: 1px solid #4caf50;
}

/* REALISTIC THERMAL PAPER RECEIPT */
.thermal-receipt {
  background: #fafaf5;
  color: #1a1a1a;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 2rem 1.6rem 2.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Jagged tear paper edge top and bottom */
.thermal-receipt::before,
.thermal-receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-size: 16px 8px;
}
.thermal-receipt::before {
  top: 0;
  background-image: radial-gradient(circle at 8px 0, transparent 8px, #fafaf5 9px);
}
.thermal-receipt::after {
  bottom: 0;
  background-image: radial-gradient(circle at 8px 8px, transparent 8px, #fafaf5 9px);
}

.thermal-header {
  text-align: center;
  border-bottom: 2px dashed #444444;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}
.thermal-store {
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
}
.thermal-type {
  font-weight: 900;
  font-size: 1.25rem;
  margin: 0.4rem 0;
  display: block;
  letter-spacing: -0.5px;
}
.thermal-type.kitchen-stamp {
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  border-radius: 4px;
}
.thermal-type.rider-stamp {
  background: #2e7d32;
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  border-radius: 4px;
}

.thermal-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.thermal-divider {
  border-top: 1px dashed #777777;
  margin: 0.8rem 0;
}
.thermal-divider-double {
  border-top: 2px solid #222222;
  border-bottom: 2px solid #222222;
  height: 4px;
  margin: 0.8rem 0;
}

.thermal-item {
  margin-bottom: 0.8rem;
}
.thermal-item-title {
  font-weight: 800;
  font-size: 0.96rem;
  display: flex;
  justify-content: space-between;
}
.thermal-modifier {
  font-weight: 800;
  padding-left: 1rem;
  display: block;
}
.mod-remove {
  color: #c62828;
}
.mod-add {
  color: #1b5e20;
}
.mod-dough {
  color: #d97706;
}
.thermal-note {
  font-style: italic;
  font-weight: 700;
  padding-left: 1rem;
  color: #333333;
}

.thermal-rider-box {
  background: #f0eee4;
  border: 1px solid #d4cebe;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.8rem 0;
}
.rider-field {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.rider-field strong {
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #555555;
}
.rider-field .rider-val {
  font-weight: 800;
  color: #000000;
  font-size: 1rem;
}

.thermal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin-top: 0.5rem;
}

/* Key Takeaway Explanations */
.ticket-explanation {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #cfcabf;
  line-height: 1.6;
}
.ticket-explanation strong {
  color: #ffffff;
}

/* ==========================================================================
   FEATURE: TIMELINE PRODUZIONE PIZZE
   ========================================================================== */
.timeline-section {
  background: var(--body-bg);
}
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.timeline-demo-card {
  background: var(--body-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--body-border);
  box-shadow: var(--shadow-lg);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.timeline-slots-container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.timeline-slot-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: #fdfbf7;
  border: 1px solid var(--body-border-light);
  transition: all 0.25s ease;
}
.timeline-slot-row:hover {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.slot-time {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-bg);
}

.slot-bar-wrap {
  width: 100%;
  background: #e8e3d8;
  height: 14px;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.slot-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-green { background: linear-gradient(90deg, #4caf50, #2e7d32); }
.fill-yellow { background: linear-gradient(90deg, #ffb300, #f57c00); }
.fill-red { background: linear-gradient(90deg, #f44336, #c62828); }

.slot-status-text {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}
.status-free { color: var(--secondary); }
.status-busy { color: var(--accent-amber); }
.status-full { color: var(--primary); }

/* ==========================================================================
   FEATURE GRID: ALTRE FUNZIONALITÀ FONDAMENTALI
   ========================================================================== */
.features-grid-section {
  background: #ffffff;
  border-top: 1px solid var(--body-border);
  border-bottom: 1px solid var(--body-border);
}
.features-quad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-box {
  background: var(--body-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  border: 1px solid var(--body-border-light);
  transition: all 0.3s ease;
}
.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--body-border-light);
}

.feature-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-bg);
  margin-bottom: 0.6rem;
}
.feature-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   HARDWARE & OFFLINE COMPATIBILITY
   ========================================================================== */
.hardware-section {
  background: #faf7f2;
}
.hardware-banner {
  background: linear-gradient(135deg, #181818 0%, #242424 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  border: 1px solid #383838;
}
.hardware-info h3 {
  font-size: 2.2rem;
  font-weight: 850;
  margin-bottom: 1rem;
  color: #ffffff;
}
.hardware-info p {
  color: #cac5b8;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.devices-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.device-badge-item {
  background: #2d2d2d;
  border: 1px solid #444444;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.device-badge-item svg {
  font-size: 1.8rem;
  color: #ff5252;
  flex-shrink: 0;
}
.device-badge-item .device-name {
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}
.device-badge-item .device-sub {
  font-size: 0.82rem;
  color: #b0aba0;
}

.hardware-printer-card {
  background: #ffffff;
  color: var(--dark-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}
.hardware-printer-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.hardware-printer-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.connection-types-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.conn-pill {
  background: var(--body-bg);
  border: 1px solid var(--body-border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark-bg);
}

/* ==========================================================================
   INTERACTIVE SIMULATOR (LIVE POS DEMO)
   ========================================================================== */
.simulator-section {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f7f3ea 100%);
  border-top: 1px solid var(--body-border);
  border-bottom: 1px solid var(--body-border);
}

.pos-simulator-container {
  background: #1a1a1a;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 3px solid #333333;
  overflow: hidden;
}

/* Top POS Bar */
.pos-topbar {
  background: #252525;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #383838;
}
.pos-brand-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
}
.pos-indicator-online {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  background: rgba(46, 125, 50, 0.2);
  color: #4caf50;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.pos-clock {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ff5252;
}

/* Main POS Layout */
.pos-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  min-height: 580px;
  background: #faf7f2;
}

/* Left POS Menu Bar */
.pos-sidebar {
  background: #1f1f1f;
  color: #ffffff;
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-right: 1px solid #333333;
}
.pos-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #c7c3b8;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.pos-nav-item:hover {
  background: #2c2c2c;
  color: #ffffff;
}
.pos-nav-item.active {
  background: var(--primary);
  color: #ffffff;
}
.pos-sidebar-footer {
  margin-top: auto;
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  color: #777267;
  border-top: 1px solid #333333;
}

/* Central POS Order Form & Pizza Grid */
.pos-center-panel {
  padding: 1.2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Customer & Delivery Mode Header */
.pos-client-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--body-border);
  box-shadow: var(--shadow-sm);
}
.client-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.order-num-tag {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
}
.delivery-type-toggle {
  display: flex;
  background: #eee8db;
  padding: 3px;
  border-radius: var(--radius-md);
}
.del-toggle-btn {
  padding: 0.4rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: calc(var(--radius-md) - 3px);
  background: transparent;
  color: #555047;
}
.del-toggle-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.client-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.pos-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pos-input-group label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pos-input-group input,
.pos-input-group select {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--body-border);
  font-size: 0.9rem;
  background: #fdfbf8;
  outline: none;
}
.pos-input-group input:focus {
  border-color: var(--primary);
}

/* Timeline Slot Selector inside POS */
.pos-timeline-bar {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--body-border);
}
.pos-timeline-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pos-slots-slider {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pos-time-slot-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--body-border);
  background: #fbf9f4;
  color: var(--dark-bg);
  white-space: nowrap;
  cursor: pointer;
}
.pos-time-slot-btn:hover {
  border-color: var(--primary);
}
.pos-time-slot-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.pos-time-slot-btn.busy {
  opacity: 0.6;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Pizza Product Buttons Grid */
.pos-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.pos-pizza-btn {
  background: #ffffff;
  border: 1px solid var(--body-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.pos-pizza-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.pos-pizza-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--dark-bg);
  line-height: 1.2;
}
.pos-pizza-price {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.4rem;
}

/* Right POS Cart & Totals */
.pos-cart-panel {
  background: #ffffff;
  border-left: 1px solid var(--body-border);
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
}
.pos-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--body-border);
  margin-bottom: 0.8rem;
}
.pos-cart-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-bg);
}

.pos-cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pos-cart-empty {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  margin: auto 0;
  padding: 1.5rem 0;
}

.cart-item-row {
  background: #fdfbf7;
  border: 1px solid var(--body-border-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  position: relative;
}
.cart-item-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 700;
}
.cart-item-mods {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.cart-remove-item {
  color: #999999;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0 0.3rem;
}
.cart-remove-item:hover {
  color: var(--primary);
}

.pos-cart-totals-area {
  border-top: 1px solid var(--body-border);
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cart-subtotal-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.cart-grand-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark-bg);
  margin: 0.4rem 0;
}

.pos-btn-print {
  width: 100%;
  background: var(--secondary);
  color: #ffffff;
  padding: 0.95rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pos-btn-print:hover {
  background: var(--secondary-dark);
}

/* SIMULATOR MODAL (CUSTOMIZE INGREDIENTS) */
.pos-custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pos-custom-modal-overlay.open {
  display: flex;
}
.pos-custom-modal {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--body-border);
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-header {
  background: #1f1f1f;
  color: #ffffff;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff5252;
  font-weight: 800;
}
.modal-pizza-title {
  font-size: 1.3rem;
  font-weight: 900;
}
.modal-close-btn {
  background: #333333;
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.4rem;
  max-height: 70vh;
  overflow-y: auto;
}
.modal-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.ingredients-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.ing-btn {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--body-border);
  background: #fbf9f5;
  transition: all 0.15s ease;
}
.ing-btn.ing-remove {
  color: var(--primary);
}
.ing-btn.ing-remove.selected {
  background: var(--primary-subtle);
  border-color: var(--primary);
  text-decoration: line-through;
}
.ing-btn.ing-add {
  color: var(--secondary-dark);
}
.ing-btn.ing-add.selected {
  background: var(--secondary-subtle);
  border-color: var(--secondary);
  font-weight: 800;
}

.modal-footer {
  background: #faf7f2;
  padding: 1.1rem 1.4rem;
  border-top: 1px solid var(--body-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-live-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
}

/* ==========================================================================
   TICKETS OUTPUT MODAL (QUANDO CLICCHI "STAMPA")
   ========================================================================== */
.print-output-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.print-output-modal.open {
  display: flex;
}
.print-output-container {
  background: #181818;
  border-radius: var(--radius-xl);
  max-width: 980px;
  width: 100%;
  padding: 2rem;
  border: 1px solid #383838;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}
.print-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333333;
}
.print-tickets-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  background: #ffffff;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--body-bg);
  border: 1px solid var(--body-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}
.faq-item.active {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}
.faq-question {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-chevron {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CONTACT / RICHIESTA PROVA SECTION
   ========================================================================== */
.contact-section {
  background: linear-gradient(135deg, #181818 0%, #262626 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-left h3 {
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
}
.contact-left h3 span {
  color: #ff5252;
}
.contact-left p {
  font-size: 1.12rem;
  color: #c9c4b7;
  margin-bottom: 2rem;
}

.direct-contacts-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.direct-contact-card {
  background: #2b2b2b;
  border: 1px solid #404040;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.direct-contact-card:hover {
  transform: translateX(6px);
  border-color: #ff5252;
  background: #333333;
}
.contact-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.bubble-wa {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
}
.bubble-mail {
  background: rgba(229, 57, 53, 0.2);
  color: #ff6b6b;
}

.contact-meta-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a39e93;
  letter-spacing: 0.5px;
}
.contact-meta-value {
  font-size: 1.25rem;
  font-weight: 850;
  color: #ffffff;
}

/* Quick Interactive WhatsApp generator form */
.contact-form-card {
  background: #ffffff;
  color: var(--dark-bg);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-xl);
}
.contact-form-card h4 {
  font-size: 1.4rem;
  font-weight: 850;
  margin-bottom: 0.4rem;
}
.contact-form-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--body-border);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background: #111111;
  color: #888888;
  padding: 4rem 0 2rem;
  border-top: 1px solid #222222;
  font-size: 0.9rem;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h5 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.footer-col h6 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid #222222;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   STICKY FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--whatsapp-color);
  color: #ffffff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: all 0.3s ease;
  animation: pulseWa 2.5s infinite;
}
.floating-wa-btn:hover {
  transform: scale(1.1);
  background: var(--whatsapp-dark);
}
@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .timeline-grid,
  .hardware-banner,
  .contact-box-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .promo-mega-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .promo-badge-calendar {
    margin: 0 auto;
  }
  .promo-pills-row {
    justify-content: center;
  }
  .pos-body-grid {
    grid-template-columns: 1fr;
  }
  .pos-sidebar {
    display: none; /* Collapsed on tablet/mobile simulator */
  }
  .pos-cart-panel {
    border-left: none;
    border-top: 1px solid var(--body-border);
  }
  .pillars-grid,
  .features-quad-grid {
    grid-template-columns: 1fr;
  }
  .tickets-comparison-grid,
  .print-tickets-flex {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .hero-features-list {
    grid-template-columns: 1fr;
  }
  .pos-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
