/**
 * Piazza Tresca — Base Styles (Mobile-first)
 * Variabili, reset, tipografia, utilities
 */

:root {
  /* Color palette */
  --bg: #fdf0e0;
  --surface: #fce8d0;
  --primary: #e86030;
  --primary-dark: #d05020;
  --secondary: #d4a040;
  --green: #5a9a5a;
  --yellow: #e8b830;
  --text: #2a1a0a;
  --text-light: #7a6a5a;
  --text-muted: #a09080;
  --border: #d4c0a0;
  --border-light: #e8dcc8;
  --danger: #c04040;
  --danger-bg: #fde8e8;
  --white: #fff;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Touch targets */
  --touch-min: 44px;

  /* Layout */
  --nav-height: 56px;
  --switcher-height: 50px;
  --content-max: 600px;
  --radius: 8px;
  --radius-sm: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: var(--switcher-height);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--text);
}

h2 { font-size: 1.25rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.1rem; }

/* ── Utilities ────────────────────────────────── */
.loading {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-lg);
}

.mt-1 { margin-top: var(--space-md); }
.mb-1 { margin-bottom: var(--space-md); }
.text-center { text-align: center; }
.hidden { display: none; }
