/* ============================================================
   Calzati Sport — Bike & Ski · demo
   Concept: "Una montagna, due stagioni" — hero split con gradienti
   Palette: neve / granito / abete + lime Calzati + ghiaccio
   ============================================================ */

:root {
  --neve: #F4F3EE;
  --carta: #FFFFFF;
  --granito: #1E2422;
  --abete: #0E3327;
  --calzati: #B4E11C;
  --ghiaccio: #B9D3DE;
  --ghiaccio-scuro: #274B5A;
  --linea: #DFDCD0;
  --linea-scura: rgba(255, 255, 255, .18);
  --testo-chiaro: rgba(255, 255, 255, .78);
  --muto: rgba(30, 36, 34, .62);
  --maxw: 1180px;
  --ff: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--neve);
  color: var(--granito);
  font: 400 17px/1.6 var(--ff);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-stretch: 115%;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; }
h2 { font-weight: 760; }
h3 { font-weight: 720; }

p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.salta {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--calzati);
  color: var(--abete);
  font-weight: 700;
  padding: .6rem 1rem;
  text-decoration: none;
}
.salta:focus { left: 0; }

/* ---------- sezioni ---------- */
.section { padding: 4.6rem 0; }
.section--neve { background: var(--neve); color: var(--granito); }
.section--abete { background: var(--abete); color: #fff; }
.section--granito { background: var(--granito); color: #fff; }

.kicker {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muto);
}
.kicker::before {
  content: "";
  width: 0;
  height: 2.4rem;
  border-left: 2px dashed var(--calzati);
}
.section--abete .kicker,
.section--granito .kicker { color: var(--testo-chiaro); }
.section--granito .kicker::before { border-color: var(--ghiaccio); }

.section h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section .lead {
  max-width: 62ch;
  margin-top: .9rem;
  color: var(--muto);
}
.section--abete .lead, .section--granito .lead { color: var(--testo-chiaro); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font: 700 .88rem/1.2 var(--ff);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--lime { background: var(--calzati); color: var(--abete); }
.btn--lime:hover { background: #c8ef3a; }
.btn--blu { background: #0C2838; color: #fff; }
.btn--blu:hover { background: #16455e; }
.btn--outline { border-color: rgba(255, 255, 255, .65); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--abete); }
.btn--abete { background: var(--abete); color: #fff; }
.btn--abete:hover { background: #174a39; }

.link-sotto {
  color: var(--abete);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link-sotto:hover { color: var(--ghiaccio-scuro); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--abete);
  color: #fff;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .6rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  justify-self: start;
}
.brand-monti { width: 46px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; align-items: center; }
.brand-name {
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.08rem;
  letter-spacing: .05em;
  line-height: 1;
}
.brand-sub {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .28em;
  padding-left: .28em;
  margin-top: .16rem;
  color: rgba(255, 255, 255, .92);
  line-height: 1;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.site-nav a svg { width: 17px; height: 17px; opacity: .8; }
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1.5px;
}
.site-nav a:hover {
  color: var(--calzati);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.header-cta { justify-self: end; }
.btn--wa {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-size: .92rem;
  text-transform: none;
  letter-spacing: 0;
}
.btn--wa:hover { background: rgba(255, 255, 255, .16); }
.btn--wa svg { width: 18px; height: 18px; flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 2px;
  color: #fff;
  font: 700 .85rem var(--ff);
  padding: .5rem .8rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .header-inner { display: flex; gap: 1rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--abete);
    border-top: 1px dashed var(--linea-scura);
    padding: 1rem 1.25rem 1.4rem;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 1rem; }
  body.nav-open .site-nav { display: block; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - 62px);
  min-height: 560px;
  max-height: 880px;
  background: var(--granito);
  color: #fff;
  overflow: hidden;
}
.hero-half {
  position: absolute;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}
.hero-half--estate { left: 0; width: 50%; background-image: url("../img/hero-bike.jpg"); }
.hero-half--inverno { right: 0; width: 50%; background-image: url("../img/hero-ski.jpg"); }

/* gradienti come nel mock: estate verde da sinistra, inverno blu da destra */
.hero-half::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-half--estate::after {
  background: linear-gradient(to right, rgba(8, 36, 27, .88) 0%, rgba(8, 36, 27, .48) 34%, rgba(8, 36, 27, 0) 66%);
}
.hero-half--inverno::after {
  background: linear-gradient(to left, rgba(12, 40, 56, .88) 0%, rgba(12, 40, 56, .48) 34%, rgba(12, 40, 56, 0) 66%);
}

.hero-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 1rem;
  pointer-events: none;
}
.hero-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 64% 52% at 50% 50%, rgba(8, 36, 27, .56), rgba(8, 36, 27, .22) 55%, transparent 74%);
}
.hero-box { position: relative; max-width: 46rem; }
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-stretch: 120%;
  text-shadow: 0 2px 10px rgba(5, 22, 16, .45), 0 4px 32px rgba(5, 22, 16, .35);
}
.hero-sub {
  margin: 1rem auto 0;
  max-width: 44ch;
  font-size: clamp(1.08rem, 1.75vw, 1.26rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(5, 22, 16, .6), 0 2px 16px rgba(5, 22, 16, .45);
}

.hero-tag {
  position: absolute;
  z-index: 3;
  bottom: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  background: rgba(8, 36, 27, .55);
  padding: .5rem .85rem;
  font-size: .88rem;
  backdrop-filter: blur(3px);
}
.hero-tag--estate { left: 1.4rem; border-left: 3px solid var(--calzati); }
.hero-tag--inverno { right: 1.4rem; border-left: 3px solid var(--ghiaccio); }
.hero-tag strong { font-weight: 720; }

@media (max-width: 740px) {
  /* mobile: le due stagioni si impilano in verticale, split fisso 50/50 */
  .hero { height: 92svh; min-height: 600px; max-height: none; }
  .hero-half--estate { top: 0; bottom: auto; left: 0; width: 100%; height: 50%; }
  .hero-half--inverno { top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 50%; }
  .hero-tag--estate { top: 1rem; left: 1rem; bottom: auto; }
  .hero-tag--inverno { bottom: 1rem; right: 1rem; }
}

/* ---------- schede bici ---------- */
.bici-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.4rem;
}
@media (max-width: 900px) { .bici-grid { grid-template-columns: 1fr; } }

.card-bici {
  display: flex;
  flex-direction: column;
  background: var(--carta);
  border: 1px solid var(--linea);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.card-bici:hover { border-color: var(--abete); }
.card-media {
  display: grid;
  place-items: center;
  min-height: 215px;
  padding: 1.3rem;
  border-bottom: 1px solid var(--linea);
}
.card-media img { max-height: 185px; object-fit: contain; }
.card-body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  flex: 1;
}
.chips { display: flex; gap: .45rem; }
.chip {
  font-size: .72rem;
  font-weight: 720;
  padding: .24rem .55rem;
  border-radius: 2px;
}
.chip--nuova { background: var(--abete); color: var(--calzati); }
.chip--usata { background: var(--ghiaccio); color: var(--ghiaccio-scuro); }
.chip--tipo { border: 1px solid var(--linea); color: var(--muto); }
.card-body h3 { font-size: 1.32rem; }
.card-meta { font-size: .93rem; color: var(--muto); }
.card-foot {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px dashed var(--linea);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
}
.scheda-link { font-weight: 720; font-size: .93rem; color: var(--abete); }
.prezzo-muto { font-size: .8rem; color: var(--muto); white-space: nowrap; }

/* striscia usato */
.usato {
  margin-top: 1.6rem;
  background: var(--abete);
  color: #fff;
  border-radius: 2px;
  border-left: 4px solid var(--calzati);
  padding: 1.5rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.usato h3 { font-size: 1.28rem; }
.usato p { margin: .35rem 0 0; color: var(--testo-chiaro); font-size: .96rem; }

.bici-tutte {
  display: block;
  margin-top: 1.9rem;
  text-align: center;
}

/* ---------- bande estate ---------- */
.estate-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 3rem;
  margin-top: 2.2rem;
}
@media (max-width: 900px) { .estate-grid { grid-template-columns: 1fr; gap: 0; } }

.blocco { padding: 1.7rem 0 1.9rem; border-top: 1px dashed var(--linea-scura); }
.blocco:first-child { border-top: 0; padding-top: 0; }
.blocco h3 { font-size: 1.42rem; margin-bottom: .7rem; }
.blocco p { color: var(--testo-chiaro); max-width: 58ch; }

.noleggio-foto {
  margin: 1.4rem 0 1.1rem;
  display: grid;
  place-items: center;
  padding: 1.4rem 2.4rem;
  background: rgba(255, 255, 255, .045);
  border: 1px dashed var(--linea-scura);
  border-radius: 2px;
}
.noleggio-foto img { max-height: 240px; }
.noleggio-foto figcaption {
  margin-top: .7rem;
  font-size: .84rem;
  color: var(--testo-chiaro);
}

.prenota-box {
  margin-top: 1.2rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, .06);
  border-left: 3px solid var(--calzati);
  border-radius: 2px;
}
.prenota-box p { font-size: .95rem; margin-bottom: 1rem; }
.prenota-box .micro { font-size: .8rem; color: var(--testo-chiaro); margin-top: .7rem; }

/* righe dato (data sheet) */
.spec { margin: .2rem 0 0; }
.spec > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .5rem 0;
  border-top: 1px dashed var(--linea-scura);
  font-size: .95rem;
}
.spec > div:first-child { border-top: 0; }
.spec dt { color: var(--testo-chiaro); }
.spec dd { margin: 0; font-weight: 720; text-align: right; }
.spec .nota { grid-column: 1 / -1; font-size: .84rem; color: var(--testo-chiaro); }

.riga-nome { padding: .55rem 0; border-top: 1px dashed var(--linea-scura); }
.riga-nome:first-of-type { border-top: 0; padding-top: 0; }
.riga-nome strong { font-weight: 720; }
.riga-nome span { display: block; font-size: .88rem; color: var(--testo-chiaro); }

/* officina */
.officina {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) { .officina { grid-template-columns: 1fr; gap: 1.6rem; } }
.officina img { border-radius: 2px; }
.bosch-badge {
  display: inline-block;
  background: #fff;
  border-radius: 2px;
  padding: .5rem .8rem;
  margin-top: 1.1rem;
}
.bosch-badge img { height: 44px; width: auto; }

/* ---------- inverno ---------- */
.pill-lab {
  display: inline-block;
  background: var(--calzati);
  color: var(--granito);
  font-weight: 720;
  font-size: .52em;
  padding: .3em .6em;
  border-radius: .18em;
  vertical-align: .32em;
  letter-spacing: 0;
  font-stretch: 100%;
}
.inverno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.2rem;
}
@media (max-width: 900px) { .inverno-grid { grid-template-columns: 1fr; } }

.inverno-foto { margin: 1.5rem 0 0; }
.inverno-foto img { border-radius: 2px; }
.inverno-foto figcaption { margin-top: .6rem; font-size: .84rem; color: var(--testo-chiaro); }

.tabella { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: .4rem; }
.tabella th, .tabella td {
  padding: .55rem 0;
  border-top: 1px dashed var(--linea-scura);
  text-align: left;
  font-weight: 400;
}
.tabella tr:first-child th, .tabella tr:first-child td { border-top: 0; padding-top: 0; }
.tabella td:last-child, .tabella th:last-child { text-align: right; font-weight: 720; white-space: nowrap; }
.tabella th { color: var(--testo-chiaro); font-weight: 400; }

.inverno-nota {
  margin-top: 1.1rem;
  font-size: .86rem;
  color: var(--testo-chiaro);
  max-width: 52ch;
}

.inverno-noleggio {
  margin-top: 2.8rem;
  padding-top: 1.7rem;
  border-top: 1px dashed var(--linea-scura);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.inverno-noleggio p { margin: 0; max-width: 58ch; color: var(--testo-chiaro); }

/* ---------- contatti ---------- */
.contatti-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 2.6rem;
  margin-top: 2.2rem;
}
@media (max-width: 900px) { .contatti-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

.sede { padding: 1.2rem 0 1.4rem; border-top: 1px dashed var(--linea); }
.sede:first-child { border-top: 0; padding-top: 0; }
.sede h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.sede p { margin: 0; color: var(--muto); font-size: .95rem; }

.contatto { padding: .8rem 0; border-top: 1px dashed var(--linea); }
.contatto:first-child { border-top: 0; padding-top: 0; }
.contatto dt { font-size: .82rem; color: var(--muto); }
.contatto dd { margin: .15rem 0 0; }
.contatto a { font-weight: 720; color: var(--abete); }

.prenota-panel {
  align-self: start;
  background: var(--abete);
  color: #fff;
  border-left: 4px solid var(--calzati);
  border-radius: 2px;
  padding: 1.6rem 1.5rem;
}
.prenota-panel h3 { font-size: 1.3rem; }
.prenota-panel p { color: var(--testo-chiaro); font-size: .95rem; margin: .7rem 0 1.2rem; }
.prenota-panel .micro {
  display: block;
  margin-top: .9rem;
  font-size: .8rem;
  color: var(--testo-chiaro);
}

/* ---------- footer ---------- */
.site-footer { background: var(--granito); color: rgba(255, 255, 255, .72); padding: 2.6rem 0 2.2rem; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .5rem; color: #fff; }
.footer-note { max-width: 52ch; font-size: .85rem; margin-top: .8rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; }
.footer-nav a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-nav a:hover { color: var(--calzati); }
.footer-legal {
  max-width: var(--maxw);
  margin: 1.6rem auto 0;
  padding: 1.2rem 1.25rem 0;
  border-top: 1px dashed var(--linea-scura);
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- pagina scheda bici ---------- */
.crumbs { margin: 2.4rem 0 1.6rem; }
.scheda-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .scheda-grid { grid-template-columns: 1fr; gap: 2rem; } }
.scheda-media {
  background: var(--carta);
  border: 1px solid var(--linea);
  border-radius: 2px;
  padding: 2.6rem;
  display: grid;
  place-items: center;
}
.scheda-media img { max-height: 430px; object-fit: contain; }
.scheda-info h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.scheda-brand { margin: .55rem 0 1rem; color: var(--muto); font-weight: 600; }
.scheda-desc { max-width: 56ch; }
.scheda-specs { margin-top: 1.6rem; border-top: 1px solid var(--linea); }
.scheda-specs > div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 1.6fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--linea);
  font-size: .95rem;
}
.scheda-specs dt { color: var(--muto); }
.scheda-specs dd { margin: 0; font-weight: 640; }
.mancante { color: var(--muto); font-style: italic; font-weight: 400 !important; }
.scheda-prezzo {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  background: var(--carta);
  border: 1px solid var(--linea);
  border-left: 4px solid var(--calzati);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.scheda-prezzo strong { font-size: 1.06rem; }
.scheda-prezzo small { display: block; color: var(--muto); font-size: .8rem; margin-top: .15rem; }

.altre-bici { margin-top: 3.4rem; padding: 1.6rem 0 3.4rem; border-top: 1px dashed var(--linea); }
.altre-bici ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 2.2rem; flex-wrap: wrap; }
.altre-bici a { font-weight: 720; color: var(--abete); }
.altre-bici span { display: block; font-weight: 400; font-size: .84rem; color: var(--muto); }

/* ---------- catalogo bici ---------- */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 1.8rem;
}
@media (max-width: 900px) { .catalogo-grid { grid-template-columns: 1fr; } }

/* filtri catalogo */
.filtri {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}
.filtro {
  padding: .45rem 1.05rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--carta);
  color: var(--granito);
  font: 600 .88rem var(--ff);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.filtro:hover { border-color: var(--abete); }
.filtro[aria-pressed="true"] {
  background: var(--abete);
  border-color: var(--abete);
  color: #fff;
}
.vuoto { margin-top: 1.6rem; color: var(--muto); }

.titolo-pagina { font-size: clamp(2rem, 4vw, 3rem); }
