:root {
  --bg: #0b0b0b;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #d4a72c;
  --whatsapp: #25d366;
  --light: #f8fafc;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--text); line-height: 1.6; background: #fff; }
a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; background: rgba(11, 11, 11, 0.9); backdrop-filter: blur(10px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; }
.logo { display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; font-weight: 700; color: #fff; }
.logo img { height: 56px; width: 56px; border-radius: 50%; object-fit: cover; }
.logo-text span { color: var(--primary); }
.nav nav a { color: #e2e8f0; margin-left: 1.5rem; font-weight: 500; transition: color .2s; }
.nav nav a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; border: 1px solid rgba(212, 167, 44, .5); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; color: #e2e8f0; font: inherit; font-size: .8rem; font-weight: 600; padding: .35rem .65rem; cursor: pointer; }
.lang-switch button.active { background: var(--primary); color: #111; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  min-height: 90vh; display: flex; align-items: center; color: #fff;
  background:
    linear-gradient(120deg, rgba(11, 11, 11, .92), rgba(11, 11, 11, .6)),
    url("images/masseratti1.jpeg") center/cover no-repeat,
    #0b0b0b;
}
.hero-inner { padding: 6rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.15; }
.hero h1 .accent { color: var(--primary); }
.hero p { max-width: 520px; margin: 1.25rem 0 2rem; color: #cbd5e1; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .15); }
.btn-primary { background: var(--primary); color: #111; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-block { display: block; width: 100%; }

/* Sections */
.section { padding: 5rem 0; scroll-margin-top: 70px; }
.section-alt { background: var(--light); }
.section-title { font-size: 2.2rem; margin-bottom: .75rem; position: relative; }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin-top: .5rem; }
.section-sub { color: var(--muted); margin-bottom: 2.5rem; }

/* About */
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.about p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }
.highlights { list-style: none; display: grid; gap: 1rem; }
.highlights li { background: var(--bg); color: #fff; padding: 1.25rem; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; }
.highlights strong { font-size: 1.6rem; color: var(--primary); }

/* Cars */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 2rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.card:target { outline: 3px solid #25d366; outline-offset: 2px; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15, 23, 42, .15); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #111; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.slide-btn:hover { background: rgba(0, 0, 0, .8); }
.slide-btn.prev { left: .6rem; }
.slide-btn.next { right: .6rem; }
.dots { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background .2s, transform .2s; }
.dots span.active { background: var(--primary); transform: scale(1.25); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.specs { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #e2e8f0; font-size: .95rem; }
.specs strong { text-align: right; }
.specs span { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { background: var(--light); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-card h3 { font-size: 1.5rem; }
.contact-card p { color: var(--muted); }
.phone { font-size: 1.8rem; font-weight: 700; color: var(--bg); word-break: break-word; }

/* Footer */
.footer { background: var(--bg); color: #94a3b8; text-align: center; padding: 1.5rem 0; font-size: .9rem; }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; right: 1.5rem; bottom: 1.5rem; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(37, 211, 102, .45); z-index: 20; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column;
    background: rgba(11, 11, 11, .97); padding: .5rem 4% 1rem;
  }
  .nav nav.open { display: flex; }
  .nav nav a { margin: 0; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .about, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .logo img { height: 44px; width: 44px; }
  .logo-text { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 7rem 0 3.5rem; }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }
  .about { gap: 2rem; }
  .highlights { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .highlights li { flex-direction: column; text-align: center; padding: 1rem .5rem; font-size: .85rem; }
  .highlights strong { font-size: 1.3rem; }
  .grid { gap: 1.5rem; }
  .card:hover { transform: none; }
  .card-body { padding: 1.25rem; }
  .contact-card { padding: 1.5rem; }
  .phone { font-size: 1.5rem; }
  .whatsapp-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}
