/* ============================================
   SUGGERIMENTI AZIENDALI — Premium Theme
   Corporate · Dark · Distinctive · Tech-forward
   ============================================ */

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

:root {
  /* Palette scura e profonda */
  --bg-deep: #0a0b0d;
  --bg-night: #0d1117;
  --bg-anthracite: #161b22;
  --bg-surface: #1c2129;
  --bg-elevated: #22272e;
  --bg-card: rgba(28, 33, 41, 0.6);

  /* Accenti eleganti */
  --accent-gold: #c4b896;
  --accent-gold-bright: #d4c9a8;
  --accent-gold-soft: rgba(196, 185, 150, 0.12);
  --accent-blue: #3b82f6;
  --accent-blue-soft: rgba(59, 130, 246, 0.15);
  --accent-petrol: #0d9488;
  --accent-petrol-soft: rgba(13, 148, 136, 0.12);

  /* Testo */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Bordi e separatori */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.12);

  /* Glass e profondità */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 12px;
  --gradient-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08), transparent),
                  radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 148, 136, 0.05), transparent),
                  radial-gradient(ellipse 50% 30% at 0% 50%, rgba(196, 185, 150, 0.04), transparent);

  /* Contrasto luce (sezioni chiare) */
  --light-bg: #f8fafc;
  --light-text: #0f172a;
  --light-muted: #475569;

  /* Tipografia */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Titoli leggermente condensati */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-hero: clamp(2.5rem, 5vw + 1rem, 4rem);
  --letter-tight: -0.03em;
  --letter-tighter: -0.04em;

  /* Spaziatura */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius e ombre */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-glow: 0 0 40px -10px rgba(59, 130, 246, 0.2);
  --shadow-soft: 0 4px 24px -4px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-subtle);
  --shadow-elevated: 0 12px 40px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-default);

  /* Transizioni raffinate */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.35s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* Layout */
  --container-max: 76rem;
  --header-height: 4.5rem;

  /* Legacy compatibility for shared components */
  --color-primary: var(--bg-night);
  --color-text: var(--text-primary);
  --color-text-muted: var(--text-muted);
  --color-text-inverse: var(--text-primary);
  --color-surface: var(--bg-surface);
  --color-border: var(--border-default);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--letter-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-hero); letter-spacing: var(--letter-tighter); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5, h6 { font-size: var(--text-lg); font-weight: 500; }

p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--accent-gold-bright); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), box-shadow 0.25s var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-gold);
}
.btn-primary:hover {
  background: var(--accent-gold-bright);
  border-color: var(--accent-gold-bright);
  color: var(--bg-deep);
  box-shadow: 0 0 24px -4px rgba(196, 185, 150, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* Card — glass, bordi sottili, ombra */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(var(--glass-blur));
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-card);
}
.card--elevated {
  background: rgba(28, 33, 41, 0.8);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-default);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-family: var(--font-body);
}
.badge--neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.badge--blue {
  background: var(--accent-blue-soft);
  color: var(--accent-blue);
}
.badge--petrol {
  background: var(--accent-petrol-soft);
  color: var(--accent-petrol);
}

/* Input */
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--text-subtle); }
.input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-soft);
}

/* Section */
.section {
  padding: var(--space-24) 0;
}
.section--light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section--light h1, .section--light h2, .section--light h3 { color: var(--light-text); }
.section--light p { color: var(--light-muted); }
.section--light .text-muted { color: var(--light-muted); }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
