/* Scooter Italiano — palette from their own sign (petrolio header), logo (giallo + tricolore)
   and the shop interior (orange counter and barrels). Grigio = classic Lambretta grey-blue. */
:root {
  --petrolio: #0f3b44;
  --petrolio-2: #0a2b32;
  --giallo: #f7d117;
  --arancio: #e2471b;
  --grigio: #cdd6d5;
  --bianco: #f6f7f5;
  --ink: #0b1316;
  --verde: #1f8a3b;

  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Sofia Sans", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--petrolio);
  color: var(--bianco);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

/* ---------- shared type ---------- */
.kicker {
  font: 600 .75rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--giallo);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .6rem;
}
.kicker::before {           /* tricolore chip from the logo */
  content: ""; width: 26px; height: 10px; flex: none;
  background: linear-gradient(90deg, var(--verde) 0 33%, var(--bianco) 33% 66%, var(--arancio) 66%);
}
.kicker--dark { color: var(--ink); }
.h2 {
  font: 900 clamp(2.4rem, 6vw, 4.6rem)/.9 var(--display);
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.section-head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head__lead { max-width: 58ch; margin-top: 1.25rem; font-size: 1.125rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5rem;
  font: 800 1.15rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--giallo); color: var(--ink); }
.btn--yellow:hover { background: var(--bianco); }
.btn--ghost { border-color: var(--bianco); color: var(--bianco); }
.btn--ghost:hover { background: var(--bianco); color: var(--petrolio); }
.btn--ink { background: var(--ink); color: var(--giallo); }
.btn--ink:hover { background: var(--arancio); color: var(--bianco); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--giallo); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .7rem var(--gutter);
  background: var(--petrolio);
  border-bottom: 1px solid rgb(246 247 245 / .12);
}
.nav__logo img { width: 132px; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a, .nav__call {
  font: 800 1.1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.nav__links a:hover { color: var(--giallo); }
.nav__call { color: var(--ink); background: var(--giallo); padding: .6rem .9rem; }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__call { margin-left: auto; }
  .nav__logo img { width: 112px; }
}

/* ---------- tag (signature: the workshop cartellino) ---------- */
.tag {
  --tilt: -4deg;
  position: absolute; top: -14px; right: 18px; z-index: 3;
  width: 128px; padding: 30px 12px 12px;
  background: var(--giallo); color: var(--ink);
  clip-path: polygon(18% 0, 82% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
  transform-origin: 50% 14px;
  transform: rotate(var(--tilt));
  display: flex; flex-direction: column; gap: 2px;
  filter: drop-shadow(0 6px 10px rgb(0 0 0 / .25));
}
.tag::before {            /* the string */
  content: ""; position: absolute; left: 50%; top: -60px; width: 1.5px; height: 70px;
  background: var(--ink); transform: translateX(-50%);
}
.tag__hole {
  position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #d8b40c;
}
.tag__num { font: 600 .62rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag__main { font: 900 1.55rem/.92 var(--display); text-transform: uppercase; }
.tag__sub { font: 500 .78rem/1.2 var(--body); }
.tag.is-swinging { animation: swing 1.6s cubic-bezier(.3,.7,.4,1); }
@keyframes swing {
  0%   { transform: rotate(calc(var(--tilt) + 14deg)); }
  25%  { transform: rotate(calc(var(--tilt) - 9deg)); }
  50%  { transform: rotate(calc(var(--tilt) + 5deg)); }
  75%  { transform: rotate(calc(var(--tilt) - 2deg)); }
  100% { transform: rotate(var(--tilt)); }
}

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100svh - 70px);
}
.hero__text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 4rem) var(--gutter);
}
.hero__title {
  font: 900 italic clamp(4.6rem, 12.5vw, 13.5rem)/.8 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  margin-right: -40%;          /* the word runs onto the photo */
  margin-bottom: 1.75rem;
}
.hero__line { display: block; color: var(--giallo); }
.hero__line--amp { color: var(--bianco); padding-left: .35em; }
.hero__lead { max-width: 40ch; font-size: 1.15rem; color: rgb(246 247 245 / .86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__photo { position: relative; margin: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero__photo::after {         /* keeps the overlapping title legible */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(15 59 68 / .55), transparent 45%);
  pointer-events: none;
}
.tag--hero { top: auto; bottom: 48px; right: 40px; --tilt: 5deg; width: 150px; }
.tag--hero::before { height: 46px; top: -38px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; aspect-ratio: 4 / 3; }
  .hero__photo::after { background: linear-gradient(0deg, rgb(15 59 68 / .7), transparent 40%); }
  .hero__text { padding: 1.75rem var(--gutter) 2.5rem; }
  .hero__title { margin-right: 0; }
  .tag--hero { bottom: auto; top: 28px; right: 20px; width: 120px; }
  .tag--hero .tag__main { font-size: 1.25rem; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--giallo); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span {
  font: 900 italic 1.9rem/1 var(--display); text-transform: uppercase;
  padding: .85rem 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 1.4rem;
}
.ticker span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--arancio); margin-left: 1.4rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- process ---------- */
.process { background: var(--grigio); color: var(--ink); padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); }
.route {
  list-style: none; margin: 0 auto; padding: 1.25rem 0; max-width: var(--max);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0;
  border-block: 3px solid var(--ink);
  counter-reset: fase;
}
.route li {
  counter-increment: fase;
  font: 900 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--display); text-transform: uppercase;
  display: flex; align-items: center;
}
.route li::before {
  content: counter(fase); margin-right: .45rem;
  font: 600 .75rem/1 var(--mono); color: var(--arancio);
}
.route li + li::after { content: none; }
.route li:not(:last-child)::after {
  content: "→"; margin: 0 .9rem; color: var(--arancio); font-style: normal;
}
.route__photos {
  max-width: var(--max); margin: 1.5rem auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 247px)); gap: 12px;
}
.route__photos img, .service__photos img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ink);
}
.services {
  max-width: var(--max); margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border-top: 3px solid var(--ink);
}
.service { padding: 1.75rem 2rem 2rem 0; border-bottom: 1px solid rgb(11 19 22 / .25); }
.service:nth-child(even) { padding: 1.75rem 0 2rem 2rem; border-left: 1px solid rgb(11 19 22 / .25); }
.service h3 { font: 900 1.9rem/1 var(--display); text-transform: uppercase; margin-bottom: .6rem; }
.service p { max-width: 46ch; }
.service__photos {
  margin-top: 1.25rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 8px;
}
.process > .btn { display: flex; width: fit-content; margin: 3rem auto 0; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 1.5rem 0 1.75rem; border-left: 0; }
  .service__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .route li:not(:last-child)::after { margin: 0 .55rem; }
}

/* ---------- garage rail ---------- */
.garage { background: var(--petrolio-2); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.garage .section-head { padding: 0 var(--gutter); }
.garage__rail {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter);
  padding: 64px var(--gutter) 1.5rem;   /* room for the strings */
  scrollbar-width: thin; scrollbar-color: var(--giallo) transparent;
}
.bike {
  position: relative; margin: 0; flex: 0 0 clamp(260px, 30vw, 420px);
  scroll-snap-align: start;
}
.bike img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--petrolio); }
.bike .tag { cursor: default; }
.bike:nth-child(odd) .tag { --tilt: 3deg; right: auto; left: 18px; }
.garage__hint { padding: 0 var(--gutter); font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--giallo); }

/* ---------- parts ---------- */
.parts {
  background: var(--giallo); color: var(--ink);
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  max-width: none;
}
.parts__intro p:not(.kicker) { margin-top: 1.25rem; max-width: 44ch; font-size: 1.1rem; }
.parts__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 2rem; }
.manifest { margin: 0; border-top: 3px solid var(--ink); }
.manifest__row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid rgb(11 19 22 / .3);
}
.manifest dt { font: 900 clamp(1.8rem, 3.4vw, 2.6rem)/.95 var(--display); text-transform: uppercase; }
.manifest dd { margin: 0; }
.parts__notes {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  padding-top: 1.5rem; border-top: 3px solid var(--ink);
}
@media (max-width: 900px) {
  .parts { grid-template-columns: 1fr; }
  .manifest__row { grid-template-columns: 1fr; gap: .35rem; }
  .parts__notes { grid-template-columns: 1fr; }
}

/* ---------- scene ---------- */
.scene { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--petrolio); }
.scene__photo { position: relative; margin: 0; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.scene__photo figcaption {
  position: absolute; left: var(--gutter); bottom: 1.25rem;
  font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--giallo); padding: .45rem .7rem;
}
.scene__text { padding: clamp(3rem, 7vw, 6rem) var(--gutter); align-self: center; }
.scene__text > p:not(.kicker) { margin-top: 1.25rem; max-width: 46ch; color: rgb(246 247 245 / .86); }
.scene__text strong { color: var(--giallo); }
.event { margin-top: 2.25rem; padding: 1.25rem 1.4rem; border: 2px solid var(--arancio); max-width: 420px; }
.event__label { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--arancio); }
.event__name { font: 900 italic 2.2rem/.95 var(--display); text-transform: uppercase; margin-top: .4rem; }
.event__date { font: 600 .9rem var(--mono); margin-top: .5rem; }
@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; }
  .scene__photo { aspect-ratio: 3 / 2; }
}

/* ---------- shop ---------- */
.shop {
  background: var(--grigio); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.shop__info { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.hours { border-collapse: collapse; margin-top: 2rem; width: 100%; max-width: 420px; }
.hours caption { text-align: left; font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding-bottom: .5rem; }
.hours th, .hours td { padding: .7rem 0; border-top: 1px solid rgb(11 19 22 / .3); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-family: var(--mono); font-size: .95rem; }
.contacts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.contacts li { display: flex; gap: 1rem; align-items: baseline; }
.contacts span { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; width: 6.5rem; }
.contacts a { font: 900 1.9rem/1 var(--display); text-decoration: none; }
.contacts__mail { font-size: 1.35rem !important; word-break: break-all; }
.contacts a:hover { color: var(--arancio); }
.shop__map { min-height: 420px; border-left: 3px solid var(--ink); }
.shop__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); display: block; min-height: 420px; }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .shop__map { border-left: 0; border-top: 3px solid var(--ink); }
}

/* ---------- footer ---------- */
.footer { padding: 3rem var(--gutter); text-align: center; background: var(--petrolio-2); color: rgb(246 247 245 / .7); font-size: .9rem; }
.footer img { width: 150px; margin: 0 auto 1.25rem; }
.footer__small { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-top: .5rem; color: var(--giallo); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.hero__line { animation: ride-in .9s cubic-bezier(.2,.8,.2,1) both; }
.hero__line--amp { animation-delay: .12s; }
@keyframes ride-in { from { transform: translateX(-8%) skewX(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__line, .tag.is-swinging { animation: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__track [aria-hidden] { display: none; }
}
