/* Peekin, sito pubblico. Direzione: tipografia svizzera editoriale su carta calda,
   palco scuro per i tour, rosso solo per le azioni. */
@font-face {
  font-family: "Bricolage";
  src: url("/static/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ebe4d4;
  --ink: #16171b;
  --ink-2: #4a4740;
  --line: #d8cfbd;
  --go: #d23a1f;
  --go-dark: #a92b14;
  --night: #10192b;
  --night-2: #1b2740;
  --night-ink: #ece6d8;
  --wa: #1f7a4d;
  --sold: #6f6a60;

  --font: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --h-hero: clamp(2.6rem, 1.1rem + 6.4vw, 6rem);
  --h-section: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 6vw + 32px, 128px);
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text)/1.55 var(--font);
  font-variation-settings: "wdth" 100; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px;
  border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- testata */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; }
.mark, .foot-mark { font-weight: 800; font-size: 1.6rem; letter-spacing: -.05em; text-decoration: none;
  display: inline-flex; align-items: flex-start; }
.mark i, .foot-mark i { width: .32em; height: .32em; border-radius: 50%; background: var(--go); margin: .2em 0 0 .08em; }
.site-head nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); font-weight: 600; font-size: .95rem; }
.site-head nav a { text-decoration: none; }
.site-head nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 999px;
  transition: transform .2s var(--ease), background .2s; }
.nav-cta:hover { background: var(--go); transform: translateY(-1px); }
@media (max-width: 520px) { .site-head nav a[href="/#prezzi"] { display: none; } }

/* ---------------------------------------------------------------- pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink); transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.go { background: var(--go); border-color: var(--go); color: #fff; }
.btn.go:hover { background: var(--go-dark); border-color: var(--go-dark); box-shadow: 0 6px 0 -2px var(--ink); }
.btn.light { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.btn.light:hover { box-shadow: 0 6px 0 -2px var(--go); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(40px, 5vw, 72px); }
.eyebrow { font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--go);
  margin-bottom: 18px; }
.hero h1 { font-size: var(--h-hero); font-weight: 800; letter-spacing: -.045em; max-width: 16ch; }
.hero h1 em { font-style: normal; font-weight: 300; color: var(--ink-2); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-2); max-width: 34ch; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- palco del tour */
.stage-wrap { padding: 0 var(--gutter); background: linear-gradient(var(--paper) 50%, var(--paper-2) 50%); }
.stage { position: relative; background: var(--night); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(16, 25, 43, .55), 0 0 0 1px rgba(16, 25, 43, .08);
  max-width: 1280px; margin: 0 auto; }
.stage iframe { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 76vh; border: 0; }
@media (max-width: 700px) { .stage iframe { aspect-ratio: auto; height: 74vh; min-height: 480px; max-height: 680px; } }
.stage-note { color: var(--night-ink); opacity: .75; font-size: .9rem; margin: 0; padding: 12px 18px 14px; }
.stage-empty { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 4vw, 56px);
  padding: clamp(28px, 6vw, 80px); color: var(--night-ink); }
.big360 { font-size: clamp(4rem, 2rem + 12vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  background: linear-gradient(120deg, var(--night-ink), #8fa3c8); -webkit-background-clip: text; background-clip: text;
  color: transparent; }
.stage-empty ul { list-style: none; padding: 0; margin: 0; font-size: clamp(1.1rem, 1rem + 1vw, 1.7rem); font-weight: 600; }
.stage-empty li { padding: 6px 0; border-bottom: 1px solid var(--night-2); }
@media (max-width: 560px) { .stage-empty { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sezioni */
.section-title { font-size: var(--h-section); font-weight: 800; margin-bottom: clamp(20px, 3vw, 40px); }
.steps, .latest, .offers, .faq, .ask { padding: var(--section) var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.steps { padding-top: clamp(40px, 5vw, 80px); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 40px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 16px; }
.steps .num { display: block; font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem); font-weight: 200; letter-spacing: -.05em;
  color: var(--go); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }

.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--go); }

/* ---------------------------------------------------------------- schede auto */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.car-card a { display: block; text-decoration: none; background: #fffdf8; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.car-card a:hover { transform: translateY(-4px); border-color: var(--ink);
  box-shadow: 0 18px 30px -22px rgba(22, 23, 27, .6); }
.cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--night); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.badge360 { position: absolute; left: 12px; bottom: 12px; background: rgba(16, 25, 43, .82); color: var(--night-ink);
  font-size: .75rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: .02em; }
.sold-tag { position: absolute; right: 12px; top: 12px; background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 6px; }
.sold-tag.big { font-size: 1rem; right: 18px; top: 18px; }
.car-card.sold .cover img { filter: grayscale(.85); opacity: .75; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.card-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.card-sub { color: var(--ink-2); font-size: .92rem; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.card-price { font-weight: 800; font-size: 1.2rem; }
.card-place { font-size: .85rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- prezzi */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.offer { border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.offer-privati { background: #fffdf8; border: 2px solid var(--ink); }
.offer-aziende { background: var(--night); color: var(--night-ink); }
.offer h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.price { margin: 14px 0 6px; font-weight: 500; }
.price span { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 800; letter-spacing: -.04em; }
.offer-lead { font-size: 1.1rem; font-weight: 600; max-width: 30ch; }
.offer ul { list-style: none; padding: 0; margin: 4px 0 26px; flex: 1; }
.offer li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.offer-aziende li { border-color: var(--night-2); }
.offer li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg); }
.offer .btn { align-self: flex-start; }
@media (max-width: 760px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- zona */
.zone { margin-top: var(--section); background: var(--go); color: #fff; padding: clamp(36px, 6vw, 80px) var(--gutter); }
.zone-big { font-size: clamp(2rem, 1rem + 5vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  margin: 0 0 14px; }
.zone-note { font-size: 1.15rem; margin: 0; opacity: .92; }

/* ---------------------------------------------------------------- domande */
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 1.15rem;
  position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; font-weight: 300;
  transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--go); }
.faq details p { color: var(--ink-2); max-width: 62ch; padding-bottom: 8px; }

/* ---------------------------------------------------------------- richiesta */
.ask { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 64px); align-items: start;
  padding-bottom: var(--section); }
.ask-intro p { color: var(--ink-2); font-size: 1.1rem; }
.ask-card { background: #fffdf8; border: 2px solid var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: clamp(20px, 3vw, 32px); box-shadow: 10px 10px 0 var(--ink); }
.ask-card.sent h3 { font-size: 1.6rem; margin-bottom: 8px; }
.ask-card label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.ask-card input:not([type="radio"]), .ask-card textarea { display: block; width: 100%; margin-top: 6px; font: inherit;
  font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .15s; }
.ask-card input:focus, .ask-card textarea:focus { border-color: var(--ink); outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 30%, transparent); }
.ask-card [aria-invalid="true"] { border-color: var(--go); }
.ask-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.opt { font-weight: 400; color: var(--ink-2); }
.kind { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kind legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.choice { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600 !important; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input { accent-color: var(--go); margin: 0; }
.err { display: block; color: var(--go-dark); font-weight: 600; font-size: .85rem; margin-top: 4px; }
.form-err { background: #fde7e1; color: var(--go-dark); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .85rem; color: var(--ink-2); margin: 12px 0 0; }
@media (max-width: 860px) { .ask { grid-template-columns: 1fr; } .ask-card { box-shadow: 6px 6px 0 var(--ink); } }
@media (max-width: 480px) { .ask-card .two { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- catalogo e scheda */
.page-head { padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(20px, 3vw, 36px); max-width: 1280px; margin: 0 auto; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; }
.page-head .lead { margin-bottom: 0; }
.catalog { padding: 0 var(--gutter) var(--section); max-width: 1280px; margin: 0 auto; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }

.car-page { max-width: 1280px; margin: 0 auto; padding: clamp(20px, 3vw, 40px) var(--gutter) var(--section); }
.back { font-weight: 700; text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--go); }
.car-head h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -.04em; margin-top: 14px; }
.car-sub { color: var(--ink-2); font-size: 1.1rem; margin: 8px 0 20px; }
.car-stage iframe { max-height: 72vh; }
.car-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 4vw, 56px); margin-top: clamp(24px, 4vw, 48px);
  align-items: start; }
.car-data h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.car-data h2 + p, .car-data dl + h2 { margin-top: 28px; }
.car-data dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 24px; }
.car-data dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.car-data dt { color: var(--ink-2); }
.car-data dd { margin: 0; font-weight: 700; text-align: right; }
.desc { white-space: pre-line; max-width: 65ch; }
.car-contact { position: sticky; top: 90px; background: #fffdf8; border: 2px solid var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.car-contact .price { margin: 0; }
.car-contact .seller { color: var(--ink-2); margin: 0 0 6px; }
.muted { color: var(--ink-2); }
@media (max-width: 860px) { .car-cols { grid-template-columns: 1fr; } .car-contact { position: static; order: -1; } }

/* ---------------------------------------------------------------- testi lunghi */
.prose { max-width: 70ch; margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--gutter) var(--section); }
.prose h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p { color: var(--ink-2); }

/* ---------------------------------------------------------------- piede */
.site-foot { background: var(--ink); color: var(--paper); padding: clamp(36px, 5vw, 64px) var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.site-foot p { opacity: .75; margin: 0; }
.site-foot nav { display: flex; flex-direction: column; gap: 6px; }
.site-foot nav a { text-decoration: none; opacity: .85; }
.site-foot nav a:hover { opacity: 1; color: #ff8a70; }
@media (max-width: 760px) { .site-foot { grid-template-columns: 1fr; } }

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

/* ---------------------------------------------------------------- 0.5: "Ti interessa?" e tagliandi nella scheda */
.want { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 64px); align-items: start;
  margin-top: var(--section); padding-top: clamp(28px, 4vw, 56px); border-top: 2px solid var(--ink); scroll-margin-top: 90px; }
.want-intro p { color: var(--ink-2); font-size: 1.1rem; max-width: 30ch; }
.ask-card select { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); }
.ask-card select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 30%, transparent); }
@media (max-width: 820px) { .want { grid-template-columns: 1fr; } }
.car-data .desc + h2, .car-data dl + h2, .car-data h2 + .service { margin-top: 12px; }
.car-data .desc + h2 { margin-top: 28px; }
.service { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--ink); }
.service li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 9px 0 9px 20px; }
.service li::before { content: ""; position: absolute; left: -8px; top: 15px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--go); }
.service .s-date { font-weight: 800; min-width: 5.2em; }
.service .s-km { font-weight: 600; min-width: 6.5em; }
.service .s-note { color: var(--ink-2); }
.car-contact .price span { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); white-space: nowrap; }
