/* ============================================================
   MICHELE STEFANELLI – CSS GLOBALE
   Palette: Navy scuro + Oro chiaro leggibile
   ============================================================ */

/* --- Google Fonts caricati inline nelle pagine --- */

/* ============================================================
   VARIABILI GLOBALI
   ============================================================ */
:root {
  /* Colori base */
  --navy-900: #070f1c;
  --navy-800: #0b1827;
  --navy-700: #0f2236;
  --navy-600: #132c45;
  --navy-500: #1a3a5c;
  --navy-400: #24507d;

  /* Oro chiaro leggibile */
  --gold-100: #f5e6c0;
  --gold-200: #f0d89a;
  --gold-300: #e8c97a;
  --gold-400: #dab95a;
  --gold-500: #c9a33a;
  --gold-accent: #dfc078;   /* oro principale – testi leggibili su dark */
  --gold-border: rgba(223, 192, 120, 0.35); /* bordini oro sottili */
  --gold-border-strong: rgba(223, 192, 120, 0.65);

  /* Testi */
  --text-white: #f8f6f0;
  --text-light: #e2d9c8;
  --text-soft: #a89c88;
  --text-muted: #6e6455;

  /* Superfici */
  --surface-card: rgba(15, 34, 54, 0.72);
  --surface-card-hover: rgba(19, 44, 69, 0.88);
  --surface-elevated: rgba(20, 42, 65, 0.85);
  --surface-overlay: rgba(7, 15, 28, 0.55);

  /* Bordi */
  --border-gold: 1px solid var(--gold-border);
  --border-gold-strong: 1px solid var(--gold-border-strong);
  --border-navy: 1px solid rgba(255, 255, 255, 0.06);

  /* Ombre */
  --shadow-gold: 0 0 0 1px var(--gold-border), 0 20px 50px rgba(0,0,0,0.45);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.38);
  --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.55);

  /* Tipografia */
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;

  /* Transizioni */
  --transition: 0.30s ease;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-900);
  color: var(--text-light);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ============================================================
   TIPOGRAFIA GLOBALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { color: var(--text-light); }

/* ============================================================
   ELEMENTI COMUNI
   ============================================================ */

/* Eyebrow / label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-accent);
  opacity: 0.7;
}

/* Divisore oro */
.gold-divider {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-accent), transparent);
  margin: 1.5rem 0;
}

/* Trust pills */
.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: var(--border-gold);
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(223, 192, 120, 0.06);
}

/* ============================================================
   PULSANTI
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

/* Primario oro */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--navy-900);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(200, 160, 50, 0.28);
}
.btn-gold:hover { box-shadow: 0 22px 44px rgba(200, 160, 50, 0.38); }

/* Secondario contorno oro */
.btn-outline-gold {
  background: transparent;
  color: var(--gold-200);
  border-color: var(--gold-border-strong);
}
.btn-outline-gold:hover {
  background: rgba(223, 192, 120, 0.08);
  border-color: rgba(223, 192, 120, 0.8);
  color: var(--gold-100);
}

/* Terziario ghost */
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  border-color: rgba(255,255,255,0.10);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
}

/* ============================================================
   CARD BASE
   ============================================================ */
.card {
  background: var(--surface-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-border-strong);
}

/* ============================================================
   SEZIONE BASE
   ============================================================ */
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { color: var(--text-soft); font-size: 1.05rem; }

/* ============================================================
   HERO BASE
   ============================================================ */
.page-hero {
  padding: 6rem 0 4rem;
  border-bottom: var(--border-gold);
  position: relative;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  padding: 0.95rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(223, 192, 120, 0.8);
  box-shadow: 0 0 0 4px rgba(223, 192, 120, 0.12);
  background: rgba(255,255,255,0.07);
}
input::placeholder,
textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 140px; }

label {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--gold-accent);
  margin-top: 0.18rem;
  cursor: pointer;
}
.checkbox-wrap label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--text-soft);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gold-accent); }
.breadcrumb span { opacity: 0.5; }

/* ============================================================
   OVERLAY DECORATIVI
   ============================================================ */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-bg-glow::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223,192,120,0.07) 0%, transparent 65%);
}

/* ============================================================
   UTILITY
   ============================================================ */
.relative { position: relative; }
.z-1 { z-index: 1; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-accent); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

/* ============================================================
   RESPONSIVE UTILITY
   ============================================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

/* Riduzione animazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
