/* ─────────────────────────────────────────────
   DreamCar — stile base
   Neutro: bianco, grigi, testo quasi nero.
   L'arancione del marchio solo come dettaglio.
   ───────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --line: #e5e5ea;
  --accent: #ff5a00;           /* solo puntini, bollini, piccoli dettagli */
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 40px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.028em; line-height: 1.08; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: -.005em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* ───────── Pulsanti ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  background: var(--ink); color: #fff;
  transition: background .25s, transform .25s var(--ease);
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn.light { background: var(--bg-2); color: var(--ink); }
.btn.light:hover { background: #ebebf0; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--ink); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.link::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── Header ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo img { height: 34px; }                               /* logo nei suoi colori originali */
.logo { display: flex; align-items: center; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); list-style: none; }
/* tutte le voci del menu uguali: stesso colore e stesso carattere */
.nav ul a { font-size: 14px; font-weight: 400; color: var(--ink); transition: opacity .2s; }
.nav ul a:hover { opacity: .6; }
@media (max-width: 640px) {
  .nav ul li.hide-m { display: none; }
  .logo img { height: 28px; }
}

/* ───────── Sezioni ───────── */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.section-head p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }

/* ───────── Card auto ───────── */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.section.alt .card, .card.on-white { box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.25); }
.card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .ph img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 999px;
}
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 19px; letter-spacing: -.02em; }
.card .ver { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { margin-top: 10px; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 0; }
.card .meta span + span::before { content: "·"; margin: 0 7px; color: var(--ink-3); }
.card .price { margin-top: auto; padding-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ───────── Footer ───────── */
.footer { background: var(--bg-2); color: var(--ink-2); font-size: 13px; padding: 40px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .logo img { height: 22px; margin-bottom: 12px; }
.footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; }
.footer li { list-style: none; line-height: 2; }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr; } }

/* ───────── Entrate morbide ───────── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* titoli che salgono parola per parola */
.js .lines .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .lines .ln > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * .07s); }
.js .lines.in .ln > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .lines .ln > span { transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
