/* FUDI Design System - Tailwind-like CSS */
/* Basato su DESIGN_SYSTEM.md */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

:root {
  /* Primary - Nero/Grigio scuro */
  --primary-50: 250 250 250;
  --primary-100: 245 245 245;
  --primary-200: 229 229 229;
  --primary-300: 212 212 212;
  --primary-400: 163 163 163;
  --primary-500: 23 23 23;
  --primary-600: 23 23 23;
  --primary-700: 10 10 10;
  --primary-800: 10 10 10;
  --primary-900: 0 0 0;
  --primary-950: 0 0 0;

  /* Secondary - Grigio medio */
  --secondary-50: 250 250 250;
  --secondary-100: 245 245 245;
  --secondary-200: 229 229 229;
  --secondary-300: 212 212 212;
  --secondary-400: 163 163 163;
  --secondary-500: 115 115 115;
  --secondary-600: 82 82 82;
  --secondary-700: 64 64 64;
  --secondary-800: 38 38 38;
  --secondary-900: 23 23 23;

  /* Neutral - Grigio */
  --neutral-50: 250 250 250;
  --neutral-100: 245 245 245;
  --neutral-200: 229 229 229;
  --neutral-300: 212 212 212;
  --neutral-400: 163 163 163;
  --neutral-500: 115 115 115;
  --neutral-600: 82 82 82;
  --neutral-700: 64 64 64;
  --neutral-800: 38 38 38;
  --neutral-900: 23 23 23;
  --neutral-950: 10 10 10;

  /* Semantic Colors */
  --success: 34 197 94;
  --warning: 245 158 11;
  --error: 239 68 68;
  --info: 59 130 246;

  /* Colori Reparti */
  --reparto-macelleria: 220 38 38;
  --reparto-pescheria: 37 99 235;
  --reparto-ortofrutta: 22 163 74;
  --reparto-panetteria: 217 119 6;
  --reparto-gastronomia: 234 88 12;
  --reparto-enoteca: 124 58 237;
  --reparto-latticini: 8 145 178;

  /* Semantic Aliases */
  --background: var(--neutral-50);
  --foreground: var(--neutral-900);
  --card: 255 255 255;
  --card-foreground: var(--neutral-900);
  --muted: var(--neutral-100);
  --muted-foreground: var(--neutral-500);
  --border: var(--neutral-200);
  --input: var(--neutral-200);
  --ring: var(--primary-500);

  /* Border Radius - Spigolosi */
  --radius-sm: 0;
  --radius: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-2xl: 0;
  --radius-full: 0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ========================================
   BASE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  line-height: 1.6;
  font-size: 1rem;
}

::selection {
  background-color: rgb(var(--primary-200));
  color: rgb(var(--primary-900));
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: rgb(var(--neutral-900));
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.text-muted {
  color: rgb(var(--muted-foreground));
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

/* ========================================
   CONTAINER
   ======================================== */

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

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(var(--border));
  width: 100%;
}

.header .container {
  max-width: 100%;
  padding: 0 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 1024px) {
  .header-inner {
    height: 5rem;
  }
}

/* Logo */
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: rgb(var(--foreground));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-box {
  background: rgb(var(--primary-500));
  color: white;
  padding: 0.25rem 0.5rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgb(var(--muted-foreground));
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: rgb(var(--neutral-600));
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: rgb(var(--primary-600));
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgb(var(--primary-500));
  border-radius: var(--radius-full);
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: rgb(var(--neutral-100));
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgb(var(--foreground));
  transition: all 0.3s;
  border-radius: var(--radius-full);
}

/* ========================================
   FULLSCREEN MENU
   ======================================== */

.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255 255 255);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-menu.open {
  opacity: 1;
  visibility: visible;
}

.fullscreen-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgb(var(--border));
}

.menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: rgb(var(--foreground));
  border-radius: var(--radius);
  transition: background 0.2s;
}

.menu-close-btn:hover {
  background: rgb(var(--neutral-100));
}

.fullscreen-menu-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .fullscreen-menu-content {
    grid-template-columns: 1fr;
  }
}

.menu-main {
  padding: 2rem;
  border-right: 1px solid rgb(var(--border));
}

.menu-main-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-main-list li a,
.menu-main-list li button {
  font-size: 1rem;
  font-weight: 500;
  color: rgb(var(--foreground));
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.2s;
  border-radius: var(--radius);
}

.menu-main-list li a:hover,
.menu-main-list li button:hover {
  background: rgb(var(--primary-50));
  color: rgb(var(--primary-600));
}

.menu-main-list li.active > a,
.menu-main-list li.active > button {
  background: rgb(var(--primary-50));
  color: rgb(var(--primary-600));
  font-weight: 600;
}

.menu-main-list .has-submenu::after {
  content: '>';
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.menu-submenu {
  padding: 2rem;
  border-right: 1px solid rgb(var(--border));
  background: rgb(var(--neutral-50));
  display: none;
}

.menu-submenu.active {
  display: block;
}

.menu-submenu-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--muted-foreground));
  margin-bottom: 1rem;
}

.menu-submenu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-submenu-list a {
  font-size: 0.875rem;
  color: rgb(var(--foreground));
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s;
}

.menu-submenu-list a:hover {
  color: rgb(var(--primary-600));
}

.menu-secondary {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .menu-main,
  .menu-secondary {
    border-right: none;
    border-bottom: 1px solid rgb(var(--border));
  }

  /* Mobile Submenu Slide Animation */
  .fullscreen-menu-content {
    position: relative;
    overflow: hidden;
  }

  .menu-main {
    transition: transform 0.3s ease;
  }

  .menu-submenu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255 255 255);
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex !important;
    flex-direction: column;
    border-right: none;
    padding: 0;
    overflow-y: auto;
  }

  .menu-submenu.active {
    transform: translateX(0);
  }

  /* Mobile Submenu - Fixed Header with Logo and Close */
  .menu-submenu-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgb(var(--border));
    background: rgb(255 255 255);
  }

  .menu-submenu-topbar .logo {
    font-size: 1.25rem;
  }

  .menu-submenu-topbar .logo-box {
    padding: 0.2rem 0.4rem;
  }

  .menu-submenu-topbar .logo-sub {
    font-size: 0.625rem;
  }

  .menu-submenu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: rgb(var(--foreground));
    border-radius: var(--radius);
    transition: background 0.2s;
  }

  .menu-submenu-close:hover {
    background: rgb(var(--neutral-100));
  }

  /* Mobile Submenu - Section Header with Back Button */
  .menu-submenu-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgb(var(--neutral-50));
    border-bottom: 1px solid rgb(var(--border));
  }

  .menu-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(var(--neutral-600));
    padding: 0.5rem;
    margin-left: -0.5rem;
    margin-right: 0.75rem;
    transition: color 0.2s;
    border-radius: var(--radius);
  }

  .menu-back-btn:hover {
    color: rgb(var(--primary-600));
    background: rgb(var(--neutral-200));
  }

  .menu-back-btn svg {
    width: 20px;
    height: 20px;
  }

  .menu-submenu .menu-submenu-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: rgb(var(--neutral-900));
  }

  .menu-submenu .menu-submenu-content {
    padding: 1rem;
    flex: 1;
  }

  .menu-submenu .menu-submenu-list {
    gap: 0.25rem;
  }

  .menu-submenu .menu-submenu-list a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: var(--radius);
    transition: all 0.2s;
  }

  .menu-submenu .menu-submenu-list a:hover {
    background: rgb(var(--primary-50));
    color: rgb(var(--primary-600));
  }
}

/* Desktop: hide mobile submenu elements */
@media (min-width: 769px) {
  .menu-submenu-topbar,
  .menu-submenu-header {
    display: none !important;
  }
  .menu-submenu .menu-submenu-content {
    padding: 0;
  }
  .menu-submenu {
    position: static !important;
    transform: none !important;
    display: none;
    padding: 2rem;
  }
  .menu-submenu.active {
    display: block;
  }
}

.menu-secondary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-secondary-list a {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.menu-secondary-list a:hover {
  color: rgb(var(--primary-600));
}

.menu-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.menu-social a {
  color: rgb(var(--muted-foreground));
  transition: color 0.2s;
}

.menu-social a:hover {
  color: rgb(var(--primary-600));
}

.menu-footer {
  margin-top: auto;
  padding-top: 2rem;
}

.menu-footer p {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(255 255 255), 0 0 0 4px rgb(var(--primary-500));
}

.btn-primary {
  background: rgb(var(--primary-500));
  color: white;
}

.btn-primary:hover {
  background: rgb(var(--primary-600));
}

.btn-primary:active {
  background: rgb(var(--primary-700));
}

.btn-secondary {
  background: rgb(var(--secondary-500));
  color: white;
}

.btn-secondary:hover {
  background: rgb(var(--secondary-600));
}

.btn-outline {
  background: transparent;
  border: 1px solid rgb(var(--primary-500));
  color: rgb(var(--primary-600));
}

.btn-outline:hover {
  background: rgb(var(--primary-50));
}

.btn-ghost {
  background: transparent;
  color: rgb(var(--neutral-600));
}

.btn-ghost:hover {
  background: rgb(var(--neutral-100));
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding: 6rem 0;
  text-align: center;
  background: rgb(var(--neutral-100));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgb(var(--neutral-900));
  color: rgb(255 255 255);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgb(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Payoff con colori brand */
.payoff {
  font-size: 1.5rem;
  font-weight: 700;
}

.payoff .comma-1 {
  color: rgb(var(--secondary-500));
}

.payoff .comma-2 {
  color: rgb(var(--secondary-400));
}

.payoff .dot {
  color: rgb(var(--primary-500));
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgb(var(--neutral-300));
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgb(var(--muted));
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgb(var(--neutral-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--neutral-500));
  font-size: 0.875rem;
  font-weight: 500;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgb(var(--neutral-900));
}

.card-text {
  color: rgb(var(--muted-foreground));
  font-size: 0.875rem;
}

/* ========================================
   BADGE
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgb(var(--primary-100));
  color: rgb(var(--primary-700));
}

.badge-outline {
  background: transparent;
  border: 1px solid rgb(var(--border));
  color: rgb(var(--neutral-600));
}

.badge-secondary {
  background: rgb(var(--secondary-100));
  color: rgb(var(--secondary-700));
}

.badge-success {
  background: rgb(var(--success) / 0.1);
  color: rgb(var(--success));
}

.badge-error {
  background: rgb(var(--error) / 0.1);
  color: rgb(var(--error));
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: rgb(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: rgb(var(--neutral-50));
}

/* ========================================
   FEATURE LIST
   ======================================== */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.feature-item:hover {
  background: rgb(var(--primary-50));
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgb(var(--primary-500));
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-content h4 {
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

/* ========================================
   TWO COLUMN LAYOUT
   ======================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.two-col-reverse {
  direction: rtl;
}

.two-col-reverse > * {
  direction: ltr;
}

/* Image placeholder */
.img-placeholder {
  background: rgb(var(--neutral-200));
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--neutral-500));
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 200px;
  width: 100%;
}

@media (max-width: 768px) {
  .img-placeholder {
    min-height: auto !important;
    aspect-ratio: 16/9;
  }

  .two-col .img-placeholder {
    aspect-ratio: 4/3;
  }
}

/* ========================================
   ACCORDION (FAQ)
   ======================================== */

.accordion {
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid rgb(var(--border));
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgb(var(--primary-50));
}

.accordion-content {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  display: none;
}

.accordion-item.open .accordion-content {
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  border-top: 1px solid rgb(var(--border));
  padding: 4rem 0 2rem;
  width: 100%;
  background: rgb(var(--neutral-50));
}

.footer .container {
  max-width: 100%;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: rgb(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgb(var(--neutral-900));
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgb(var(--primary-600));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgb(var(--border));
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.footer-bottom a {
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgb(var(--primary-600));
}

/* ========================================
   SPECIFIC COMPONENTS
   ======================================== */

/* Store Card */
.store-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}

.store-card:hover {
  background: rgb(var(--primary-50));
  border-color: rgb(var(--primary-200));
}

.store-icon {
  width: 3rem;
  height: 3rem;
  background: rgb(var(--primary-100));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgb(var(--primary-600));
}

.store-info h4 {
  margin-bottom: 0.25rem;
}

.store-info p {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.store-status {
  font-size: 0.75rem;
  font-weight: 500;
}

.store-status.open {
  color: rgb(var(--success));
}

.store-status.closed {
  color: rgb(var(--error));
}

/* Volantino Preview */
.volantino-preview {
  background: linear-gradient(135deg, rgb(var(--secondary-100)), rgb(var(--secondary-50)));
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgb(var(--secondary-700));
}

.volantino-preview svg {
  color: rgb(var(--secondary-500));
}

/* Map placeholder */
.map-placeholder {
  background: rgb(var(--muted));
  border-radius: var(--radius-xl);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--muted-foreground));
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: rgb(var(--primary-600));
}

.stat-label {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

/* Partner logos */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.partner-logo {
  background: rgb(var(--neutral-100));
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  color: rgb(var(--neutral-600));
}

/* Department grid */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.dept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-xl);
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.dept-card:hover {
  background: rgb(var(--primary-50));
  border-color: rgb(var(--primary-200));
  transform: translateY(-2px);
}

.dept-icon {
  width: 4rem;
  height: 4rem;
  background: rgb(var(--primary-500));
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Reparto-specific colors */
.dept-card.macelleria .dept-icon { background: rgb(var(--reparto-macelleria)); }
.dept-card.pescheria .dept-icon { background: rgb(var(--reparto-pescheria)); }
.dept-card.ortofrutta .dept-icon { background: rgb(var(--reparto-ortofrutta)); }
.dept-card.panetteria .dept-icon { background: rgb(var(--reparto-panetteria)); }
.dept-card.gastronomia .dept-icon { background: rgb(var(--reparto-gastronomia)); }
.dept-card.enoteca .dept-icon { background: rgb(var(--reparto-enoteca)); }
.dept-card.latticini .dept-icon { background: rgb(var(--reparto-latticini)); }

.dept-card h4 {
  margin-bottom: 0.25rem;
}

.dept-card p {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgb(var(--neutral-700));
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  transition: all 0.2s;
  background: rgb(255 255 255);
}

.form-input:focus {
  outline: none;
  border-color: rgb(var(--primary-500));
  box-shadow: 0 0 0 3px rgb(var(--primary-500) / 0.1);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Divider */
.divider {
  height: 1px;
  background: rgb(var(--border));
  margin: 2rem 0;
}

/* ========================================
   STORE SELECTOR MODAL
   ======================================== */

.store-selector-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255 255 255 / 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.store-selector-modal.open {
  opacity: 1;
  visibility: visible;
}

.store-selector-content {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 480px;
  margin: 1rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.store-selector-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgb(var(--border));
  text-align: center;
}

.store-selector-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.store-selector-header p {
  color: rgb(var(--muted-foreground));
  font-size: 0.875rem;
}

.store-selector-body {
  padding: 1.5rem;
}

.store-selector-step {
  margin-bottom: 1.5rem;
}

.store-selector-step:last-child {
  margin-bottom: 0;
}

.store-selector-step label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.store-selector-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  background: rgb(255 255 255);
  color: rgb(var(--foreground));
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.store-selector-select:focus {
  outline: none;
  border-color: rgb(var(--primary-500));
  box-shadow: 0 0 0 3px rgb(var(--primary-500) / 0.1);
}

.store-selector-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.store-selector-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgb(var(--border));
}

.store-selector-footer .btn {
  width: 100%;
}

.store-selector-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Current store indicator */
.current-store-bar {
  background: rgb(var(--primary-50));
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  border-bottom: 1px solid rgb(var(--primary-100));
}

.current-store-bar .store-name {
  font-weight: 600;
  color: rgb(var(--primary-700));
}

.current-store-bar .change-store-btn {
  background: none;
  border: none;
  color: rgb(var(--primary-600));
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.current-store-bar .change-store-btn:hover {
  color: rgb(var(--primary-700));
}

@media (max-width: 480px) {
  .store-selector-content {
    margin: 0;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    border: none;
  }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
  h4 { font-size: 1rem; }

  .container {
    padding: 0 1rem;
  }

  .header .container {
    padding: 0 1rem;
  }

  .header-inner {
    height: 3.5rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-box {
    padding: 0.2rem 0.4rem;
  }

  .logo-sub {
    font-size: 0.625rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.625rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .payoff {
    font-size: 1.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header p {
    font-size: 0.875rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .card-body {
    padding: 1.25rem;
  }

  .two-col {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .feature-item {
    padding: 0.75rem;
  }

  .feature-icon {
    width: 2rem;
    height: 2rem;
  }

  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .dept-card {
    padding: 1.25rem 0.75rem;
  }

  .dept-icon {
    width: 3rem;
    height: 3rem;
  }

  .partner-grid {
    gap: 1rem;
  }

  .partner-logo {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer .container {
    padding: 0 1rem;
  }

  .footer-grid {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-brand p {
    font-size: 0.8125rem;
  }

  .footer-title {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
  }

  .footer-links a {
    font-size: 0.8125rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-bottom > div {
    justify-content: center;
  }

  .footer-bottom a {
    font-size: 0.75rem;
  }

  /* Fullscreen Menu Mobile */
  .fullscreen-menu-header {
    padding: 0.75rem 1rem;
  }

  .fullscreen-menu-content {
    display: flex;
    flex-direction: column;
  }

  .menu-main {
    padding: 1.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgb(var(--border));
  }

  .menu-main-list {
    gap: 0.25rem;
  }

  .menu-main-list li a,
  .menu-main-list li button {
    font-size: 0.9375rem;
    padding: 0.625rem 0.75rem;
  }

  .menu-secondary {
    padding: 1.5rem 1rem;
  }

  .menu-secondary-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .menu-secondary-list a {
    font-size: 0.8125rem;
  }

  .menu-social {
    margin-top: 1rem;
  }

  .menu-footer {
    padding-top: 1.5rem;
  }

  .menu-footer p {
    font-size: 0.6875rem;
  }

  .volantino-preview {
    min-height: 250px;
    padding: 1.5rem;
  }

  .map-placeholder {
    height: 300px;
  }

  .accordion-header {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .accordion-content {
    padding: 0 1rem 0.875rem;
    font-size: 0.8125rem;
  }

  .store-card {
    padding: 0.875rem;
  }

  .store-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-card {
    padding: 1rem 0.5rem;
  }

  .dept-card h4 {
    font-size: 0.875rem;
  }

  .dept-card p {
    font-size: 0.6875rem;
  }

  .stats {
    gap: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .feature-item {
    padding: 0.5rem;
    gap: 0.75rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .grid.grid-2 {
    gap: 1rem;
  }
}
