/* ===== Font self-hosted (nessuna richiesta a Google, niente cookie/GDPR) ===== */
@font-face {
  font-family: 'Racing Sans One';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/racing-sans-one.woff2') format('woff2');
}
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/kaushan-script.woff2') format('woff2');
}

/* ===== Palette ispirata all'insegna ===== */
:root {
  --navy:   #14315f;
  --navy-2: #0f2748;
  --blue:   #1f4e9b;
  --blue-l: #3d7bd6;
  --gold:   #f4c400;
  --gold-d: #d9ad00;
  --ink:    #1a2436;
  --muted:  #5a6b82;
  --bg:     #ffffff;
  --bg-alt: #eef1f6;
  --line:   #dbe1ea;
  --wrap:   1080px;
  --display: 'Racing Sans One', system-ui, sans-serif;
  --script:  'Kaushan Script', cursive;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy);
  padding: .6rem 1rem; z-index: 1000; font-weight: 700; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 1rem; }
.brand { text-decoration: none; }
.brand-mark {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .5px;
  color: #fff; font-style: italic; text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
.brand-mark-2 { color: var(--gold); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: #eaf0fb; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .7rem; border-radius: 6px;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta {
  background: var(--gold); color: var(--navy) !important; font-weight: 800;
  margin-left: .4rem;
}
.nav-cta:hover { background: var(--gold-d); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  color: #fff; text-align: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(61,123,214,.55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0a1c36 100%);
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(3.5rem, 9vw, 6rem);
  border-bottom: 5px solid var(--gold);
}
.hero-eyebrow { font-family: var(--script); color: var(--gold); font-size: clamp(1.3rem,3.5vw,2rem); margin: 0 0 .2rem; }
.hero-title {
  font-family: var(--display); font-style: italic; margin: 0;
  font-size: clamp(2.8rem, 11vw, 6.5rem); letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 30px rgba(61,123,214,.4);
}
.hero-title span { color: var(--gold); }
.hero-tagline { font-family: var(--script); color: #dbe6fb; font-size: clamp(1.4rem,5vw,2.6rem); margin: .1rem 0 1.4rem; }
.hero-sub { font-size: clamp(1rem,2.5vw,1.2rem); color: #cdd8ee; max-width: 40ch; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ===== Bottoni ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-d); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }

/* ===== Titoli sezione ===== */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 1rem; color: var(--navy);
  font-weight: 800; position: relative; padding-bottom: .5rem;
}
.section-title::after { content: ""; display: block; width: 64px; height: 5px; background: var(--gold); border-radius: 3px; margin-top: .5rem; }
.lead { font-size: 1.1rem; color: var(--ink); max-width: 62ch; margin: 0 0 1.6rem; }

/* ===== Marchi auto ===== */
.makes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.makes li {
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700;
  padding: .4rem .9rem; border-radius: 999px; font-size: .9rem;
}

/* ===== Griglie categorie ===== */
.cards { list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.cards li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 1rem 1.1rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 1px 3px rgba(20,49,95,.05);
  transition: transform .12s ease, box-shadow .2s, border-color .2s;
}
.section-alt .cards li { background: #fff; }
.cards li:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20,49,95,.12); border-left-color: var(--blue); }

.brands { font-size: 1.05rem; color: var(--muted); margin: 0; }
.brands span { color: var(--navy); font-weight: 800; }

/* ===== Orari ===== */
.hours { border-collapse: collapse; width: 100%; max-width: 520px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,49,95,.06); }
.hours th, .hours td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { color: var(--navy); font-weight: 800; width: 45%; }

/* ===== Dove siamo / mappa ===== */
.dove-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: start; }
.contatti address { font-style: normal; margin: 0 0 1.2rem; }
.addr-line { font-size: 1.1rem; }
.contact-link { font-size: 1.15rem; font-weight: 700; text-decoration: none; color: var(--navy); }
.contact-link:hover { color: var(--blue); text-decoration: underline; }
.map-box { border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(20,49,95,.18); border: 3px solid #fff; }
#map { height: 380px; width: 100%; background: var(--bg-alt); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-2); color: #cdd8ee; padding: 2.4rem 0; text-align: center; border-top: 5px solid var(--gold); }
.footer-brand { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: #fff; margin: 0 0 .3rem; }
.footer-brand span { font-family: var(--script); color: var(--gold); font-size: 1.1rem; }
.footer-meta { margin: .2rem 0 1rem; font-size: .95rem; }
.social { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.social a { color: var(--gold); font-weight: 700; text-decoration: none; }
.social a:hover { text-decoration: underline; }
.footer-copy { font-size: .85rem; color: #91a2c2; margin: 0; }

/* offset per header sticky quando si salta alle ancore */
:target, section[id] { scroll-margin-top: 74px; }

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: .6rem 5%; gap: .2rem;
    box-shadow: 0 12px 20px rgba(0,0,0,.25);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .7rem; }
  .nav-cta { margin: .3rem 0 0; text-align: center; }
  .dove-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
