:root {
  color-scheme: dark;
  --ink: #101012;
  --panel: #1b1b1e;
  --paper: #f5f3ef;
  --muted: #c6c3c1;
  --red: #c91419;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --gutter: clamp(12px, 4vw, 48px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; -webkit-text-size-adjust: 100%; background: var(--ink); color: var(--paper); font: 500 17px/1.55 Barlow, system-ui, sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
p { max-width: 62ch; }
a, button { touch-action: manipulation; }
h1, h2, h3, figcaption strong { font-family: var(--display); font-style: italic; font-weight: 900; line-height: .99; text-transform: uppercase; }
h1 { font-size: clamp(36px, 7vw, 100px); }
h2 { font-size: clamp(36px, 5.5vw, 70px); }
h3 { font-size: clamp(27px, 3vw, 38px); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #438dff; outline-offset: 3px; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 10px; background: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #101012;
  padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right), env(safe-area-inset-left)) 0;
  border-bottom: 1px solid #343437;
}
.nav { display: flex; align-items: center; justify-content: center; gap: clamp(2px, 1.6vw, 24px); min-height: 64px; }
.nav a {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  color: white;
  font-weight: 700;
  white-space: nowrap;
}
.short-label { display: none; }
main section { scroll-margin-top: calc(65px + env(safe-area-inset-top)); }
.section-pad { padding-block: clamp(42px, 7vw, 100px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(25px, 5vw, 78px); }
.hero { background: radial-gradient(ellipse at 82% 30%, #39181b, transparent 62%), var(--ink); border-bottom: 3px solid var(--red); }
.hero-inner { padding-block: clamp(36px, 6vw, 92px); }
.eyebrow { color: #ff817c; font-size: 13px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
h1 { margin-top: 13px; }
h1 em { color: #ff625f; }
.hero-copy { margin-block: 18px 24px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid #5a5658;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  background: var(--panel);
  color: white;
}
.primary, #caschi .button-link { background: var(--red); border-color: transparent; }
.hero-actions { display: grid; grid-template-columns: 1fr 1.2fr .85fr; align-items: stretch; gap: 6px; max-width: 490px; }
.hero-actions .button-link {
  min-width: 0;
  min-height: 48px;
  padding: 6px 3px;
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.15;
  text-wrap: balance;
}
.whatsapp { background: #11663e; border-color: transparent; }
.button-link:active, .nav a:active, .slide-controls button:active { filter: brightness(1.35); }
@media (hover: hover) and (pointer: fine) {
  a:hover, .button-link:hover, .slide-controls button:hover { color: #ff817c; }
  .nav a:hover {
    color: white;
    text-decoration: underline #ff625f 2px;
    text-underline-offset: 6px;
  }
  .hero-actions .button-link:not(.primary):hover { color: white; border-color: #aaa4a7; }
  .primary:hover, #caschi .button-link:hover, .whatsapp:hover { background: var(--panel); border-color: #776165; }
  #scooter a:not(.button-link):hover, #chi-siamo a:not(.button-link):hover { color: #ad1519; }
  #contatti a:not(.button-link):hover { color: #ffd3d1; }
}
.showroom {
  position: relative;
  min-width: 0;
  padding: clamp(14px, 2.6vw, 32px);
  border: 1px solid #55383a;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 45%, #742023, #281317 64%, #171416);
}
.showroom img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
figcaption { min-height: 120px; padding-bottom: 46px; }
figcaption strong { display: block; font-size: clamp(29px, 4vw, 49px); }
figcaption span { display: block; margin-top: 6px; color: var(--muted); }
.slide-controls { position: absolute; bottom: 12px; right: 14px; display: flex; gap: 6px; }
.slide-controls button { width: 44px; height: 44px; background: #171416; color: white; border: 1px solid #7b6467; border-radius: 6px; }
#scooter, #chi-siamo { color-scheme: light; background: var(--paper); color: var(--ink); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.section-heading p { max-width: 37ch; }
.catalog, .service-grid { display: grid; gap: clamp(14px, 2.2vw, 27px); margin-top: clamp(22px, 4vw, 46px); }
.catalog { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.catalog article { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ddd8d2; border-radius: 12px; overflow: hidden; background: #fff; }
.catalog img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #201f20; }
.catalog article > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: clamp(16px, 2vw, 24px); }
.catalog article span { color: #a3171a; font-size: 14px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.catalog article > div > :last-child { margin-top: auto; padding-top: 7px; }
#caschi { background: #221f21; }
#caschi img, #chi-siamo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
#chi-siamo img { object-position: center 65%; }
.split h2 + p, .split p + p, #caschi .button-link, #contatti .actions { margin-top: 16px; }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.service-grid > div { padding: 17px; border: 1px solid #373337; border-top: 3px solid var(--red); border-radius: 6px; }
.service-grid p { margin-top: 9px; color: var(--muted); }
#servizi .section-pad { padding-bottom: clamp(32px, 4vw, 54px); }
.booking-inner { padding-top: clamp(30px, 4vw, 52px); align-items: start; }
.booking h2 { font-size: clamp(30px, 4vw, 48px); }
.booking p { color: var(--muted); }
.booking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: clamp(14px, 3vw, 26px); border: 1px solid #373337; background: var(--panel); border-radius: 10px; }
.booking-form label { display: grid; gap: 4px; min-width: 0; font-size: 15px; font-weight: 700; }
.full { grid-column: 1 / -1; }
.booking-form input, .booking-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #656368;
  border-radius: 6px;
  background: #232326;
  color: white;
  font-size: 16px;
}
.booking-form textarea { resize: vertical; }
#contatti { background: #991419; }
#contatti dl { margin: 0; }
#contatti dl > div { padding: 10px 0; border-top: 1px solid #ffffff70; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px max(22px, env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
.footer-inner > div:last-child { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.intro { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; background: #101012; animation: intro 820ms both; }
.intro img { width: min(75vw, 450px); height: auto; }
@keyframes intro { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 780px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 440px;
    min-height: 52px;
    margin-inline: auto;
    gap: 0;
  }
  .nav a { padding-inline: 0; font-size: clamp(13px, 3.45vw, 16px); }
  .hero-inner { padding-block: clamp(20px, 5vw, 38px); gap: 16px; }
  .hero h1 { font-size: clamp(32px, 10vw, 68px); margin-top: 0; }
  .hero .eyebrow { letter-spacing: .08em; }
  .hero-copy { margin-block: 12px 16px; font-size: 16px; line-height: 1.45; }
  .showroom { padding: 12px; }
  .showroom img { aspect-ratio: 16 / 9; }
  .showroom figcaption { min-height: 84px; padding-bottom: 0; }
  .showroom figcaption span { font-size: 15px; line-height: 1.35; }
  .slide-controls { position: static; justify-content: flex-end; }
  .booking-form { grid-template-columns: minmax(0, 1fr); }
  .booking-form input, .booking-form textarea { min-height: 48px; }
  .booking-form input[type="date"] { display: block; max-width: 100%; }
  #contatti .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .short-label { display: inline; }
  .long-label { display: none; }
  main section { scroll-margin-top: calc(53px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; animation: none; }
}
