/* ============================================
   MOTO IN LOMBARDIA — Palette Lago
   Design tokens & base
   ============================================ */
:root {
  /* Sfondi - sabbia/avorio */
  --sand: #F7F4ED;
  --sand-2: #F0EBDD;
  --sand-3: #E8DFC9;
  --paper: #FFFFFF;

  /* Inchiostri - blu lago profondo */
  --ink: #1B2D3A;
  --ink-2: #25394A;
  --ink-3: #4F5D67;
  --ink-soft: #7A8590;
  --hairline: #E5DDC9;
  --hairline-soft: #EFE9D8;

  /* Accenti */
  --lake: #2F5E76;
  --lake-deep: #1F4A60;
  --coral: #DC5B4D;
  --coral-deep: #B44638;
  --olive: #6B7A4E;
  --gold: #D4A24A;

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(27,45,58,0.06), 0 1px 3px rgba(27,45,58,0.04);
  --shadow-md: 0 4px 12px rgba(27,45,58,0.08), 0 2px 4px rgba(27,45,58,0.04);
  --shadow-lg: 0 12px 32px rgba(27,45,58,0.12);

  --container: 1280px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* HEADER */
.site-header { background: var(--paper); color: var(--ink); position: relative; z-index: 50; border-bottom: 1px solid var(--hairline); }
.site-header__inner { display: flex; align-items: center; gap: 32px; padding: 14px var(--gutter); max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 64px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.site-nav a {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); opacity: 0.75;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; border-bottom-color: var(--coral); }
.nav-parent { position: relative; }
.nav-submenu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; padding: 6px 0; min-width: 180px; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.08); flex-direction: column; }
.nav-parent:hover .nav-submenu { display: flex; }
.nav-submenu a { padding: 7px 18px; border-bottom: none; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background 0.15s; }
.icon-btn:hover { background: var(--sand-2); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.15s; cursor: pointer; border: 0;
  font-family: var(--font-sans);
}
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-deep); }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn--outline:hover { background: var(--sand-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--sm { padding: 8px 14px; font-size: 11px; }
.btn--lg { padding: 14px 26px; font-size: 13px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* FAQ (CPT-09) — Domande frequenti scheda concessionaria */
.faq-sec { padding: 36px 0; background: var(--paper); border-top: 1px solid var(--hairline); }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 14px 18px; }
.faq-item summary { font-weight: 600; font-size: 14.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--ink-soft); margin-left: 12px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.faq-answer p { margin: 0 0 8px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 60px 0 24px; font-size: 13.5px; }
.site-footer .footer-section-title { font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid ul a:hover { color: #fff; }
.footer-brand img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { line-height: 1.55; max-width: 280px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; }
.footer-social a:hover { background: var(--coral); }
.footer-newsletter form { display: flex; margin-top: 12px; border-radius: var(--r-sm); overflow: hidden; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.footer-newsletter input { flex: 1; background: transparent; border: 0; outline: 0; padding: 12px 14px; color: #fff; font: inherit; font-size: 13px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.45); }
.footer-newsletter button { background: var(--coral); color: #fff; padding: 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom .heart { color: var(--coral); }

/* SECTIONS */
.section { padding: 48px 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 24px; }
.section-eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); display: inline-block; padding: 4px 10px; background: var(--coral); color: #fff; border-radius: var(--r-xs); }
.section-link { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.section-link:hover { color: var(--coral); }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: var(--r-xs); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.badge--featured { background: var(--coral); color: #fff; }
.badge--premium { background: var(--gold); color: var(--ink); }
.badge--verified { background: var(--olive); color: #fff; }
.badge--official { background: var(--coral); color: #fff; }
.badge--sponsor { background: var(--ink); color: var(--gold); }

/* CARD */
.card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; transition: all 0.18s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* FORM */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: #fff; color: var(--ink); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--lake); }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }

.muted { color: var(--ink-soft); }

/* Page switcher (only for prototype) */
.page-switcher { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); border-radius: 999px; padding: 6px; display: flex; gap: 4px; z-index: 100; box-shadow: var(--shadow-lg); }
.page-switcher button { padding: 8px 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); border-radius: 999px; }
.page-switcher button.active { background: var(--coral); color: #fff; }
.page-switcher button:hover:not(.active) { color: #fff; }
</content>
