/* =========================================================
   FMC MOTO HONDA — proposta grafica, versione 2
   Stile racing: fondo nero, rosso sulle azioni, titoli Rajdhani
   maiuscoli, spigoli vivi. Tutto passa dai token qui sotto.
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- token ---------- */
:root {
  --bg:               #1F2731;   /* antracite bluastro: si vede fra i pannelli */
  --bg-2:             #0A0C0F;   /* nero: l'altro capo della sfumatura */
  --surface:          #FFFFFF;   /* pannelli chiari */
  --soft:             #F1F2F3;   /* schede dentro ai pannelli */
  --soft-2:           #E4E6E8;

  --ink:              #1A212A;   /* antracite profondo: blocchi scuri */
  --dark:             #1F2731;
  --dark-2:           #0D1014;   /* footer */
  --paper:            #FFFFFF;   /* la metà chiara dell'hero */

  --red:              #ED1D24;   /* rosso corsa */
  --red-hover:        #C91319;
  --red-light:        #FF4A50;
  --red-soft:         #FDE7E8;
  --red-soft-ink:     #B01219;

  --text:          #14171A;
  --muted:         #6B727A;
  --line:          #E3E5E7;
  --line-dark:     rgba(255,255,255,.16);

  --r-xl: 0;                     /* versione 2: tutto a spigolo vivo */
  --r-lg: 0;
  --r-md: 0;
  --r-sm: 0;
  --r-btn: 0;                    /* bottoni e chip */
  --r-round: 0;                  /* era 50%: cerchi di icone e social */

  --shell: 1240px;
  --gap: 22px;
  --head-h: 118px;               /* altezza header, ricalcolata via JS */
  --stage: var(--dark);          /* colore della sezione header + hero */

  /* linee astratte: la grafica 20799, ricolorata in rosso su trasparente.
     Si usa solo dietro alla pagina e sulla metà scura dell'hero. */
  --lines-img: url("../img/linee-sfondo.webp");
  --ease: cubic-bezier(.22,.8,.3,1);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(165deg, var(--bg) 0%, #151B23 46%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Rajdhani", "Heebo", sans-serif;
  line-height: 1.05; letter-spacing: .01em; font-weight: 700;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

p { color: var(--muted); }
strong { color: var(--text); font-weight: 700; }

.shell { width: min(var(--shell), 100% - 40px); margin-inline: auto; }
.section { margin-bottom: var(--gap); scroll-margin-top: calc(var(--head-h) + 14px); }

/* le linee stanno dietro a tutto e non si muovono con lo scorrimento */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--lines-img) center / cover no-repeat;
  opacity: .34;
}

/* ---------- sezioni a pannello ---------- */
.panel { border-radius: var(--r-xl); padding: clamp(30px, 4vw, 58px); }
.panel--white { background: var(--surface); }

.panel--white .prod,
.panel--white .svc,
.panel--white .news,
.panel--white .place { background: var(--soft); }
.panel--white .prod-shot,
.panel--white .news .ph,
.panel--white .place .ph { background: var(--surface); }

/* pannello scuro: trasparente, lascia passare il fondo con le righe */
.panel--dark { background: transparent; color: #fff; }
.panel--dark p,
.panel--dark .sec-head p { color: rgba(255,255,255,.72); }
.panel--dark strong { color: #fff; }
.panel--dark .eyebrow { color: var(--red-light); }
.panel--dark .eyebrow::before { background: var(--red-light); }
.panel--dark .link-more { color: #fff; }
.panel--dark .link-more:hover { color: var(--red-light); }
.panel--dark .svc,
.panel--dark .prod,
.panel--dark .news,
.panel--dark .place { background: rgba(12,15,20,.66); }   /* coprenti: il pannello sotto è trasparente */
.panel--dark .prod-shot,
.panel--dark .news .ph,
.panel--dark .place .ph { background: rgba(255,255,255,.08); }
.panel--dark .ico-btn { border-color: var(--line-dark); color: #fff; }
.panel--dark .gamma-foot { border-top-color: var(--line-dark); }
.panel--dark .about-marks li { background: rgba(255,255,255,.07); color: #fff; }
.panel--dark .place-list li { border-bottom-color: var(--line-dark); }
.panel--dark .place-list .ic { background: rgba(255,255,255,.08); }
.panel--dark .place-list b { color: rgba(255,255,255,.5); }
.panel--dark .tag { background: rgba(237,29,36,.18); color: #FF6A6F; }
.panel--dark .hrow { background: rgba(255,255,255,.05); }
.panel--dark .hrow--off { border-color: var(--line-dark); }

/* ---------- utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Rajdhani", sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); }
.eyebrow--light { color: rgba(255,255,255,.82); }
.eyebrow--light::before { background: #fff; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: clamp(28px, 3.4vw, 46px); flex-wrap: wrap;
}
.sec-head p { max-width: 46ch; margin-top: 12px; }
.sec-head h2 { margin-top: 16px; }

/* ---------- bottoni ---------- */
/* I fianchi di bottoni e voci di menu sono inclinati di 14°, la stessa
   pendenza della diagonale dell'hero: lo sfondo sta su un ::before
   con skewX, così il testo resta dritto. */
.btn {
  --btn-bg: transparent;
  --btn-bd: transparent;
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: var(--r-btn);
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: 1rem; letter-spacing: .1em;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  transform: skewX(-14deg);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--accent { --btn-bg: var(--red); color: #fff; }
.btn--accent:hover { --btn-bg: var(--red-hover); }
.btn--dark { --btn-bg: var(--ink); color: #fff; }
.btn--dark:hover { --btn-bg: var(--red); color: #fff; }
.btn--ghost { --btn-bd: var(--line); color: var(--text); }
.btn--ghost:hover { --btn-bd: var(--text); }
.btn--sm { padding: 11px 20px; font-size: .86rem; }

.ico-btn {
  width: 46px; height: 46px; border-radius: var(--r-round); flex: none;
  display: grid; place-items: center;
  background: transparent; border: 1.5px solid var(--line);
  transition: .25s var(--ease);
}
.ico-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
/* sopra alle foto serve un fondo pieno, altrimenti la freccia sparisce */
.panel--white .ico-btn { background: var(--surface); color: var(--text); }
.panel--dark .ico-btn { background: rgba(12,15,20,.72); color: #fff; }
.panel--white .ico-btn:hover, .panel--dark .ico-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ico-btn svg { width: 18px; height: 18px; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-btn);
  background: var(--red-soft); color: var(--red-soft-ink);
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-size: .85rem; font-weight: 700; letter-spacing: .12em;
}

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: .95rem; letter-spacing: .12em; color: var(--text);
}
.link-more:hover { color: var(--red); }
.link-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* =========================================================
   TOPBAR — trasparente sopra lo stage, chiara quando è agganciata
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;   /* fuori dal flusso: restringersi non sposta la pagina */
  color: #fff;
  transition: color .3s var(--ease);
}
.topbar::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s var(--ease);
}
.topbar.is-stuck { color: var(--text); }
.topbar.is-stuck::before { opacity: 1; }

.topbar-info {
  position: relative; z-index: 2;
  font-size: .78rem; font-weight: 600;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), border-color .3s var(--ease);
  max-height: 46px;
}
.topbar.is-stuck .topbar-info { max-height: 0; opacity: 0; border-color: transparent; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.hours { display: inline-flex; align-items: center; gap: 9px; opacity: .78; }
.hours svg { width: 14px; height: 14px; flex: none; }
.info-right { display: inline-flex; align-items: center; gap: 18px; }
.info-right a { opacity: .78; transition: opacity .2s var(--ease); }
.info-right a:hover { opacity: 1; }
.info-right svg { width: 15px; height: 15px; }

.nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; padding: 14px 0; transition: padding .3s var(--ease); }
.topbar.is-stuck .nav { padding: 10px 0; }

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.brand .logo-dark { display: none; }
.topbar.is-stuck .brand .logo-light { display: none; }
.topbar.is-stuck .brand .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 8px; margin-inline: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  position: relative; z-index: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: var(--r-btn);
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-size: 1.02rem; font-weight: 600; letter-spacing: .1em; white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links > li > a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent; transform: skewX(-14deg);
  transition: background .25s var(--ease);
}
.nav-links > li > a:hover, .nav-links > li.is-active > a { color: #fff; }
.nav-links > li > a:hover::before,
.nav-links > li.is-active > a::before { background: var(--red); }
.nav-links > li > a svg { width: 12px; height: 12px; opacity: .6; transition: transform .3s var(--ease); }
.has-mega:hover > a svg { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: var(--red);
  grid-template-columns: repeat(3, 4px);
  gap: 4.5px; place-content: center;
  transition: background .25s var(--ease);
}
.burger i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.burger:hover { background: var(--ink); }
.topbar.is-stuck .burger { background: var(--red); }

/* megamenu */
.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  width: min(340px, 92vw);
  background: var(--surface); color: var(--text); border-radius: var(--r-lg);
  border-top: 3px solid var(--red);
  box-shadow: 0 25px 50px rgba(0,0,0,.28);
  padding: 26px; visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .34s var(--ease), visibility 0s .34s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .34s var(--ease), visibility 0s;
}
.mega-grid { display: grid; grid-template-columns: 1fr; }
.mega-grid a {
  position: relative; display: block;
  padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line);
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-size: 1.05rem; font-weight: 600; letter-spacing: .08em;
  opacity: 0; transform: translateY(-10px);
  transition-property: opacity, transform, background-color, color, padding;
  transition-duration: .3s, .3s, .1s, .1s, .16s;
  transition-timing-function: var(--ease);
  transition-delay: 0s, 0s, 0s, 0s, 0s;
}
.mega-grid a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px;
  background: #fff; transition: width .25s var(--ease); z-index: 1;
}
.has-mega:hover .mega-grid a, .has-mega:focus-within .mega-grid a { opacity: 1; transform: none; }
/* il ritardo è solo su entrata e scorrimento: colore e sfondo restano immediati */
.mega-grid a:nth-child(2) { transition-delay: .04s, .04s, 0s, 0s, 0s; }
.mega-grid a:nth-child(3) { transition-delay: .08s, .08s, 0s, 0s, 0s; }
.mega-grid a:nth-child(4) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.mega-grid a:nth-child(5) { transition-delay: .16s, .16s, 0s, 0s, 0s; }
.mega-grid a:nth-child(6) { transition-delay: .20s, .20s, 0s, 0s, 0s; }
.mega-grid a:hover { background: var(--red); color: #fff; padding-left: 14px; padding-right: 14px; }
.mega-grid a:hover::after { width: 100%; }
.mega-foot { margin-top: 20px; display: grid; justify-items: start; }

/* menu mobile */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 14px 20px 78px; display: none; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-nav .m-top img { height: 44px; width: auto; }
.mobile-nav a {
  padding: 11px 4px;
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-size: 1.3rem; font-weight: 700; letter-spacing: .08em;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav .m-sub { display: grid; padding: 0; border: 0; }
.mobile-nav .m-sub a {
  padding: 9px 4px 9px 20px;
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-size: 1rem; font-weight: 600; letter-spacing: .08em;
  color: rgba(255,255,255,.66);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-nav .m-sub a:last-child { border-bottom: 1px solid var(--line-dark); }
.mobile-nav .m-sub a:active { color: var(--red-light); }
.mobile-nav .m-close { width: 44px; height: 44px; border-radius: var(--r-round); border: 1px solid var(--line-dark); display: grid; place-items: center; }
.mobile-nav .m-close svg { width: 18px; height: 18px; }

/* =========================================================
   BARRA FISSA A DESTRA (brochure, dove siamo, e-mail, telefono)
   ========================================================= */
.rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 110; display: grid; gap: 1px;
}
.rail-btn {
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--ink); color: #fff;
  transition: background .25s var(--ease);
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn span {
  position: absolute; right: 100%; top: 0; height: 100%;
  display: flex; align-items: center; padding: 0 18px;
  background: var(--red); color: #fff; white-space: nowrap;
  font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-weight: 700; font-size: .9rem; letter-spacing: .12em;
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.rail-btn:hover, .rail-btn:focus-visible { background: var(--red); }
.rail-btn:hover span, .rail-btn:focus-visible span { opacity: 1; transform: none; }

/* =========================================================
   STAGE — la sezione che contiene header e hero.
   Il colore cambia insieme alla slide.
   ========================================================= */
.stage {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--head-h);
  padding-bottom: clamp(26px, 3.4vw, 44px);
  margin-bottom: var(--gap);
  background: var(--stage);
  overflow: hidden;
  transition: background-color .85s var(--ease);
}
.stage::before {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 900px; border-radius: var(--r-round);
  right: -300px; top: -420px;
  background: radial-gradient(circle, rgba(255,255,255,.085), transparent 68%);
}

/* testata delle pagine interne: stessa fascia, senza slider */
.stage--page { min-height: 0; justify-content: flex-end; background: transparent; }
.stage--page::before { display: none; }
.page-head {
  position: relative; z-index: 2; color: #fff;
  padding-block: clamp(34px, 5vw, 76px) clamp(28px, 4vw, 58px);
}
.crumbs { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; opacity: .5; }
.crumbs strong { color: #fff; font-weight: 700; }
.page-head h1 {
  max-width: 34ch;                              /* i titoli lunghi devono stare su due righe */
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}
.page-head p { color: rgba(255,255,255,.72); max-width: 58ch; margin-top: 20px; font-size: 1.05rem; }

/* =========================================================
   HERO / SLIDER
   ========================================================= */
.hero {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(16px, 2.4vw, 30px) 0 clamp(76px, 9vh, 112px);
}
.hero-card {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: clamp(16px, 3vw, 44px); align-items: center;
}

/* il blocco di testo: resta fermo, cambia solo il contenuto */
.hero-box {
  color: #fff;
  padding: clamp(10px, 1.6vw, 26px) clamp(0px, 1vw, 16px) clamp(10px, 1.6vw, 26px) 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-box .eyebrow { color: rgba(255,255,255,.72); }
.hero-box .eyebrow::before { background: var(--red-light); }
.hero-copy { display: grid; }
.hslide {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.hslide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hslide .htitle {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);   /* è un h2 per la SEO, resta grande */
}
.hslide .htitle em { font-style: normal; color: var(--red-light); }
.hslide p { font-size: 1.05rem; max-width: 40ch; color: rgba(255,255,255,.74); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .btn--ghost { --btn-bd: rgba(255,255,255,.3); color: #fff; }
.hero-cta .btn--ghost:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: #fff; }

/* la moto è scontornata: niente card, galleggia sul colore della sezione */
.hero-media { position: relative; display: flex; }
.hero-shot { position: relative; flex: 1; min-height: 360px; }
.hero-shot::before {                 /* alone morbido dietro alla moto */
  content: ""; position: absolute; inset: 6% -4% 10% -4%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.14), transparent 68%);
  pointer-events: none;
}
.hero-shot::after {                  /* ombra a terra */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 11%; height: 34px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.42), transparent 70%);
  filter: blur(7px); pointer-events: none;
}
.hero-shot img {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  opacity: 0; transform: translateY(-38px);
  transition: opacity .55s var(--ease), transform .85s var(--ease);
}
.hero-shot img.is-on { opacity: 1; transform: none; }

/* comandi slider */
.hero-nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; color: #fff;
}
.dots { display: flex; gap: 10px; }
.dot {
  width: 54px; height: 6px; border-radius: var(--r-btn);
  background: rgba(255,255,255,.24); overflow: hidden; padding: 0;
  transition: background .25s var(--ease);
}
.dot:hover { background: rgba(255,255,255,.4); }
.dot i { display: block; height: 100%; width: 0; background: #fff; border-radius: var(--r-btn); }
.dot.is-on { background: rgba(255,255,255,.3); }

.hero-arrows { display: flex; align-items: center; gap: 10px; }
.counter { font-size: .82rem; font-weight: 700; letter-spacing: .06em; opacity: .66; margin-right: 6px; }
.counter b { color: #fff; opacity: 1; }
.rnd {
  width: 46px; height: 46px; border-radius: var(--r-round);
  border: 1.5px solid rgba(255,255,255,.26);
  display: grid; place-items: center; color: #fff;
  transition: .25s var(--ease);
}
.rnd:hover { background: #fff; color: #000; border-color: #fff; }
.rnd svg { width: 18px; height: 18px; }

/* =========================================================
   HERO DIVISO IN DIAGONALE (versione 2)
   Rosso a sinistra, bianco a destra. Il taglio parte sotto
   all'header, così il menu resta leggibile tutto sul rosso.
   --split-ang: inclinazione, --split-x: dove cade il taglio.
   ========================================================= */
.stage--split {
  --split-ang: 104deg;
  --split-x: 52%;
  background: transparent;       /* passa lo sfondo del body, linee comprese */
}
.stage--split::before { display: none; }          /* niente alone: si vede il body */
.stage--split::after {
  content: ""; position: absolute; z-index: 0;
  left: 0; right: 0; top: var(--head-h); bottom: 0;
  background: linear-gradient(var(--split-ang), transparent 0 var(--split-x), var(--paper) var(--split-x) 100%);
}

/* testo sul rosso */
.stage--split .hero-box { color: #fff; }
.stage--split .hero-box .eyebrow { color: rgba(255,255,255,.85); }
.stage--split .hero-box .eyebrow::before { background: #fff; }
.stage--split .hslide .htitle em { color: var(--red); }
.stage--split .hslide p { color: rgba(255,255,255,.86); }
.stage--split .hero-cta .btn--accent { --btn-bg: var(--red); color: #fff; }
.stage--split .hero-cta .btn--accent:hover { --btn-bg: #fff; color: #000; }
.stage--split .hero-cta .btn--ghost { --btn-bd: rgba(255,255,255,.55); color: #fff; }
.stage--split .hero-cta .btn--ghost:hover { --btn-bg: rgba(255,255,255,.14); --btn-bd: #fff; }

/* la moto sta sul bianco: niente alone né ombra, deve sembrare libera */
.stage--split .hero-shot::before,
.stage--split .hero-shot::after { display: none; }

/* moto grande, spinta verso il bordo destro: sborda dalla diagonale
   e invade la metà scura */
@media (min-width: 901px) {
  .stage--split .hero-shot img {
    inset: auto; margin: 0;
    right: min(0px, calc(86px - (100vw - var(--shell)) / 2));
    top: 50%;
    width: clamp(380px, 45vw, 1150px);
    height: auto; max-width: none; max-height: 64vh;
    transform: translateY(calc(-50% - 46px));
    transition: opacity .55s var(--ease), transform .85s var(--ease);
  }
  .stage--split .hero-shot img.is-on { transform: translateY(-50%); }
}

/* numero gigante in contorno dietro alla moto */
.hero-nums { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-num {
  position: absolute; right: 0;
  bottom: clamp(-96px, -5.5vw, -34px);        /* scende sotto alla moto, così si vede di più */
  font-family: "Rajdhani", sans-serif; font-weight: 700;
  font-size: clamp(13rem, 34vw, 40rem); line-height: .72;
  color: transparent; -webkit-text-stroke: 2px var(--red);
  opacity: 0; transition: opacity .6s var(--ease);
  pointer-events: none; user-select: none;
}
.hero-num.is-on { opacity: .42; }

/* comandi: pallini a sinistra sul nero, frecce a destra sul bianco */

.stage--split .dot { background: rgba(255,255,255,.45); }
.stage--split .dot.is-on { background: rgba(255,255,255,.5); }
.stage--split .counter { color: #000; opacity: .55; }
.stage--split .counter b { color: #000; }
.stage--split .rnd { color: #000; border-color: rgba(0,0,0,.22); }
.stage--split .rnd:hover { background: #000; color: #fff; border-color: #000; }

/* iPad in orizzontale: due colonne strette, la moto deve stare nella sua
   senza salire sopra al testo */
@media (min-width: 901px) and (max-width: 1199px) {
  .hero-card { grid-template-columns: 1fr .92fr; gap: 24px; }
  .stage--split .hero-shot img {
    right: 0; width: 100%; max-height: 46vh;
    transform: translateY(calc(-50% - 30px));
  }
  .stage--split .hero-shot img.is-on { transform: translateY(-50%); }
  .hero-num { font-size: clamp(9rem, 26vw, 20rem); bottom: -24px; }
  .hslide .htitle { font-size: clamp(2.1rem, 4.4vw, 3rem); }
  .hslide p { font-size: 1rem; }
}

/* in verticale la diagonale non ha senso: fascia rossa solo dietro
   all'header, hero tutto bianco con il testo scuro */
@media (max-width: 900px) {
  .stage--split::after { background: #fff; }
  .stage--split .hero-box { color: #000; }
  .stage--split .hero-box .eyebrow { color: var(--red); }
  .stage--split .hero-box .eyebrow::before { background: var(--red); }
  .stage--split .hslide .htitle em { color: var(--red); }
  .stage--split .hslide p { color: #555; }
  .stage--split .hero-cta .btn--accent { --btn-bg: var(--red); color: #fff; }
  .stage--split .hero-cta .btn--accent:hover { --btn-bg: var(--red-hover); color: #fff; }
  .stage--split .hero-cta .btn--ghost { --btn-bd: rgba(0,0,0,.2); color: #000; }
  .stage--split .dot { background: rgba(0,0,0,.14); }
  .stage--split .dot.is-on { background: rgba(0,0,0,.18); }
  .stage--split .dot i { background: var(--red); }
  /* impilato il numero uscirebbe dal riquadro della foto e finirebbe
     sopra al titolo: lo tengo dentro */
  .hero-num { font-size: clamp(6rem, 20vw, 11rem); bottom: 0; }
}

/* =========================================================
   SERVIZI
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: var(--soft); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.svc:hover { transform: translateY(-5px); }
.svc-ic {
  width: 58px; height: 58px; border-radius: var(--r-round);
  background: transparent; border: 1px solid var(--red); color: var(--red);
  display: grid; place-items: center; margin-bottom: 22px;
}
.svc-ic svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 10px; }
.svc p { font-size: .92rem; line-height: 1.55; }
.svc .link-more { margin-top: auto; padding-top: 22px; }

/* =========================================================
   CLAIM NUOVO / USATO
   ========================================================= */
.claim {
  background: var(--red); color: #fff; border-radius: var(--r-xl);
  padding: clamp(30px, 3.8vw, 54px);
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(26px, 3vw, 46px); align-items: center;
}
.claim :is(h1, h2) { margin-top: 16px; }
.claim--wide { grid-template-columns: 1fr; }
.claim--wide .claim-text { text-align: center; }
.claim--wide .eyebrow { justify-content: center; }
.claim--wide :is(h1, h2) {
  max-width: none; white-space: nowrap;      /* deve stare su una riga sola */
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
}
.claim-sub {
  margin: 14px auto 0; max-width: 60ch;
  color: rgba(255,255,255,.88); font-size: 1.05rem;
}
.claim :is(h1, h2) em { font-style: normal; color: #000; }
.claim-cta { display: grid; gap: 12px; }
.pick {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  background: rgba(0,0,0,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-lg); padding: 20px 22px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.pick:hover { background: #000; transform: translateY(-3px); }
.pick-k { display: block; font-family: "Rajdhani", sans-serif; text-transform: uppercase;
  font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; }
.pick-v { display: block; font-size: .85rem; color: rgba(255,255,255,.8); font-weight: 400; }
.pick .ico-btn { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.pick:hover .ico-btn { background: var(--red); border-color: var(--red); }

/* =========================================================
   GRIGLIA GAMMA
   ========================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod {
  position: relative; background: var(--surface);
  border-radius: var(--r-lg); padding: 14px 14px 22px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.prod:hover { transform: translateY(-6px); }
.prod-shot {
  position: relative; display: block; background: var(--soft);
  border-radius: var(--r-md); aspect-ratio: 16/10; overflow: hidden;
}
.prod-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
}
.prod:hover .prod-shot img { transform: scale(1.05); }
.prod-shot .ico-btn { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; }
.prod-shot .ico-btn svg { width: 15px; height: 15px; }
.prod-body { padding: 20px 8px 0; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { margin-bottom: 8px; }
.prod-body p { font-size: .9rem; line-height: 1.5; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; }
.prod-foot .n {
  font-family: "Rajdhani", sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--red); letter-spacing: .04em;
}

.gamma-foot {
  margin-top: clamp(26px, 3vw, 38px); padding-top: clamp(22px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.gamma-foot span { font-size: .95rem; font-weight: 600; color: var(--muted); }

/* =========================================================
   CHI SIAMO
   ========================================================= */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
.about-media > .ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--soft);
  aspect-ratio: 16/9;          /* le foto sono 16:9: forzando 4:3 venivano tagliate */
}
.about-media > .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-media > .ph--sm {
  position: absolute; right: -16px; bottom: -34px; width: 54%;
  aspect-ratio: 16/9; border: 7px solid var(--surface); border-radius: var(--r-md);
}

.about-text h2 { margin: 16px 0 22px; }
.about-text .eyebrow + p { margin-top: 18px; }   /* senza titolo di mezzo l'occhiello toccava il testo */
.about-text p + p { margin-top: 16px; }
.about-marks { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 30px; }
.about-marks li {
  display: flex; align-items: center; gap: 9px;
  background: var(--soft); border-radius: var(--r-btn); padding: 10px 18px;
  font-size: .86rem; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}
.about-marks svg { width: 21px; height: 21px; padding: 4px; flex: none; border-radius: var(--r-round); background: var(--red); color: #fff; }

/* =========================================================
   GALLERIA SHOWROOM
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .g {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--soft); aspect-ratio: 4/3.2;
}
.gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease);
}
.gallery .g:hover img { transform: scale(1.05); }

/* =========================================================
   OFFICINA
   ========================================================= */
.shop {
  background: transparent; color: #fff; border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 50px);
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(26px, 3vw, 46px); align-items: center;
}
.shop-body h2 { margin: 16px 0 18px; }
.shop-body p { color: rgba(255,255,255,.74); max-width: 48ch; }
.shop-list { display: grid; gap: 4px; margin: 28px 0 30px; }
.shop-list li { display: flex; gap: 16px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
.shop-list li:last-child { border-bottom: 0; }
.shop-list .ic {
  width: 42px; height: 42px; border-radius: var(--r-round); flex: none;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
}
.shop-list .ic svg { width: 19px; height: 19px; }
.shop-list div { font-size: .86rem; line-height: 1.45; color: rgba(255,255,255,.66); }
.shop-list b { display: block; color: #fff; font-size: .98rem; letter-spacing: -.02em; margin-bottom: 2px; }

.shop-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-media .ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255,255,255,.08); aspect-ratio: 16/10;
}
.shop-media .ph--tall { aspect-ratio: 3/4.3; }
.shop-media .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-media-col { display: grid; gap: 14px; align-content: center; }

/* =========================================================
   NEWS
   ========================================================= */
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.news {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.news:hover { transform: translateY(-5px); }
.news--lead { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; }
.news .ph { position: relative; background: var(--soft); overflow: hidden; min-height: 240px; }
.news .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.news-body p { font-size: .9rem; line-height: 1.55; }
.news-body .link-more { margin-top: auto; padding-top: 20px; }

.news-live {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 6px 13px; border-radius: var(--r-btn);
}
.news-live i { width: 7px; height: 7px; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.news--note { background: var(--red); color: #fff; }
.panel--white .news--note { background: var(--red); }
.news--note p { color: rgba(255,255,255,.82); }
.news--note strong { color: #fff; }
.news--note .link-more { color: #fff; }
.news-date {
  align-self: flex-start; text-align: center;
  background: rgba(255,255,255,.1); border-radius: var(--r-sm); padding: 8px 14px;
}
.news-date b { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.news-date span { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

/* =========================================================
   DOVE SIAMO
   ========================================================= */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.place {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden; padding: 14px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease);
}
.place:hover { transform: translateY(-5px); }
.place .ph { display: block; position: relative; background: var(--soft); aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r-md); }
.place .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-body { padding: 24px 14px 10px; }
.place-body h3 { margin: 14px 0 20px; line-height: 1.3; }
.place-list { display: grid; gap: 4px; }
.place-list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.place-list li:last-child { border-bottom: 0; }
.place-list .ic { width: 40px; height: 40px; border-radius: var(--r-round); flex: none; background: var(--soft-2); display: grid; place-items: center; }
.panel--white .place-list .ic { background: var(--surface); }
.place-list .ic svg { width: 17px; height: 17px; }
.place-list b { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.place-list div { font-size: .92rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.5; }
.place-list a:hover { color: var(--red); text-decoration: underline; }

/* =========================================================
   ORARI
   ========================================================= */
.hours-grid { display: grid; gap: 2px; }
.hrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 16px 20px; border-radius: var(--r-md); background: var(--soft);
}
.panel--white .hrow { background: var(--soft); }
.hrow b { font-size: 1rem; letter-spacing: -.02em; }
.hrow span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.hrow--off { background: transparent; border: 1px dashed var(--line); }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; }

.info-card {
  background: transparent; color: #fff; border-radius: var(--r-xl);
  padding: clamp(30px, 3.4vw, 46px); display: flex; flex-direction: column;
}
.info-card .eyebrow { color: rgba(255,255,255,.72); }
.info-card .eyebrow::before { background: var(--red-light); }
.info-card h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 16px 0 26px; }
.info-list { display: grid; gap: 4px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { width: 42px; height: 42px; border-radius: var(--r-round); flex: none; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.info-list .ic svg { width: 18px; height: 18px; }
.info-list b { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.info-list a, .info-list span { font-size: .98rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.5; }
.info-list a:hover { color: var(--red-light); }
.info-socials { display: flex; gap: 9px; margin-top: auto; padding-top: 28px; }
.info-socials a {
  width: 42px; height: 42px; border-radius: var(--r-round);
  border: 1px solid var(--line-dark); display: grid; place-items: center;
  transition: .25s var(--ease);
}
.info-socials a:hover { background: var(--red); border-color: var(--red); }
.info-socials svg { width: 17px; height: 17px; }

.form-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(30px, 3.4vw, 46px); }
.form-card h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 16px 0 10px; }
.cform { margin-top: 26px; display: grid; gap: 14px; }
.cform label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 4px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cform label span { color: var(--red); }
.cform label input, .cform label textarea { flex: 0 0 100%; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform input[type="text"], .cform input[type="email"], .cform textarea {
  width: 100%; padding: 15px 20px; border-radius: var(--r-md);
  background: var(--soft); border: 1.5px solid transparent;
  font-size: .95rem; font-weight: 500; letter-spacing: -.01em; color: var(--text);
  text-transform: none; outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.cform textarea { border-radius: var(--r-md); resize: vertical; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted); font-weight: 500; }
.cform input:focus, .cform textarea:focus { border-color: var(--red); background: var(--surface); }
.cform .check {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 11px;
  font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted);
}
.cform .check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.cform .check a { color: var(--text); text-decoration: underline; }
.cform .check b { color: var(--red); }
.cform .btn { justify-self: start; margin-top: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background-color: var(--dark-2); color: #fff; padding: clamp(50px, 6vw, 80px) 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand img { height: 42px; width: auto; }
.foot-brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 20px; max-width: 34ch; }
.foot h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; margin-bottom: 18px; }
.foot ul { display: grid; gap: 10px; }
.foot a { font-size: .92rem; color: rgba(255,255,255,.78); line-height: 1.45; }
.foot-lab { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 8px 0 6px; }
.foot-txt { display: block; font-size: .92rem; color: rgba(255,255,255,.6); line-height: 1.5; }
.foot a:hover { color: var(--red-light); }
.socials { display: flex; gap: 9px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: var(--r-round);
  border: 1px solid var(--line-dark); display: grid; place-items: center;
  transition: .25s var(--ease);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.foot-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.foot-bottom a:hover { color: #fff; }

/* =========================================================
   LIGHTBOX DELLE GALLERIE
   ========================================================= */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,10,13,.96);
  display: none; place-items: center;
  padding: clamp(54px, 7vw, 86px) clamp(16px, 8vw, 90px);
}
.lightbox.is-open { display: grid; }
.lightbox figure { display: grid; gap: 16px; justify-items: center; max-width: 100%; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 190px);
  width: auto; height: auto; object-fit: contain;
}
.lightbox figcaption {
  color: rgba(255,255,255,.72); font-size: .9rem; text-align: center; max-width: 62ch;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 52px; height: 52px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-dark);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--red); border-color: var(--red); }
.lb-close svg, .lb-prev svg, .lb-next svg { width: 20px; height: 20px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: "Rajdhani", sans-serif; font-weight: 700; letter-spacing: .16em;
  color: rgba(255,255,255,.6); font-size: .9rem;
}

/* =========================================================
   REVEAL
   ========================================================= */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .news--lead { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 900px) {
  .topbar-info { display: none; }   /* orari, social e contatti stanno nel footer */
  .nav-actions { margin-right: -12px; }   /* l'hamburger quasi a filo, con un filo d'aria */

  /* bottoni più compatti */
  .btn { padding: 12px 22px; font-size: .9rem; }
  .btn--sm { padding: 10px 16px; font-size: .82rem; }

  /* la barra dei contatti passa in basso, a tutta larghezza */
  body { padding-bottom: 58px; }
  .rail {
    top: auto; bottom: 0; left: 0; right: 0; transform: none;
    display: flex; gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
  }
  .rail-btn { flex: 1 1 0; min-width: 0; width: auto; height: 58px; gap: 5px; background: transparent; }
  .rail-btn + .rail-btn { border-left: 1px solid rgba(255,255,255,.28); }
  .rail-btn span {
    position: static; height: auto; padding: 0;
    background: none; opacity: 1; transform: none;
    font-size: .62rem; letter-spacing: .08em;
  }
  /* l'hero occupa esattamente una schermata: testo e bottoni prendono
     quello che serve, alla moto va tutto lo spazio che resta */
  .stage { height: 100svh; min-height: 0; }
  .hero { min-height: 0; padding-bottom: 64px; }
  .hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(32vh, 1fr);
    flex: 1; min-height: 0; gap: 10px;
  }
  .hero-media { min-height: 0; }
  .hero-shot { min-height: 32vh; height: 100%; aspect-ratio: auto; }
  .claim { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-media > .ph--sm { position: static; width: 100%; margin-top: 14px; border: 0; }
  .shop { grid-template-columns: 1fr; }
  .shop-media { grid-template-columns: 1fr 1fr; }
  .shop-media .ph--tall { aspect-ratio: 3/3.6; }
  .duo { grid-template-columns: 1fr; }
  .news--lead { grid-template-columns: 1fr; }
  .news .ph { min-height: 220px; }
  .gallery .g { aspect-ratio: 16/10; }
  .contact { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }

  /* il titolo della fascia rossa deve andare a capo, non sfondare */
  .claim--wide :is(h1, h2) { white-space: normal; font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .claim-sub { font-size: .98rem; }

  /* B. 1fr non scende sotto al contenuto: le etichette allargavano le celle */
  .rail-btn {
    overflow: hidden; padding: 0 2px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
  }
  .rail-btn svg { margin-inline: auto; }
  .rail-btn span {
    display: block; width: 100%; text-align: center;
    font-size: .56rem; letter-spacing: .03em;
  }

  /* C. dentro al menu mobile il bottone ereditava misure e bordo delle voci */
  .mobile-nav { overflow-x: hidden; }
  .mobile-nav .m-close { margin-right: -12px; }   /* stesso scarto dell'hamburger */
}

@media (max-width: 620px) {
  .nav-actions { margin-right: -8px; }
  /* i due bottoni dell'hero stanno su una riga sola, divisi a metà */
  .hslide .htitle { font-size: clamp(1.7rem, 7.2vw, 2.3rem); margin: 10px 0 8px; }
  .hslide p { font-size: .9rem; }
  .hero-cta { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; padding: 13px 8px; font-size: .76rem; letter-spacing: .05em; gap: 7px; }
  .hero-cta .btn svg { width: 14px; height: 14px; }

  .mobile-nav { padding: 14px 14px 78px; }        /* come il rientro della testata, più spazio per la barra */
  .mobile-nav .m-close { margin-right: -8px; }
  .mobile-nav .m-top img { height: 34px; }
  .about-media > .ph--sm { display: none; }   /* impilate facevano un blocco lunghissimo */
  .rail-btn { width: 44px; height: 44px; }
  .rail-btn svg { width: 17px; height: 17px; }
  .shell { width: min(var(--shell), 100% - 28px); }
  .brand img { height: 34px; }
  .nav-actions > .btn { display: none; }
  .info-right a:not([aria-label]) { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-nav { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .hero-arrows { justify-content: flex-end; gap: 6px; }
  .counter { margin-right: 10px; }
  .dots { justify-content: center; }
  .dot { flex: 1; }
  .shop-media { grid-template-columns: 1fr; }
  .shop-media .ph--tall { aspect-ratio: 16/10; }
  .gamma-foot { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* news singola: una sola notizia a tutta larghezza */
.news-grid--solo { grid-template-columns: 1fr; }

/* messaggio di esito dei form */
.form-msg { margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.is-ok { background: #e7f6ec; color: #14532d; }
.form-msg.is-err { background: #fdecec; color: #7f1d1d; }

/* freccia sui link che portano a siti esterni */
a[target="_blank"] > svg:last-child:has(> use[href="#ico-arrow-ur"]) { display: inline-block; width: .8em; height: .8em; margin-left: 4px; vertical-align: -.05em; }
.link-more[target="_blank"] > svg:last-child { width: 15px; height: 15px; margin-left: 0; vertical-align: baseline; }
