/* GLA Bike Apparel — bianco, rosso, nero. Un solo carattere: Saira (variabile, larghezza + peso). */

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(/assets/fonts/saira-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(/assets/fonts/saira-latin-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(/assets/fonts/saira-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url(/assets/fonts/saira-latin-ext-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #000;
  --white: #fff;
  --red: #ee2724;          /* rosso del logo */
  --red-press: #d01c18;
  --paper: #f7f7f9;        /* fondo delle foto prodotto */
  --ink: #141416;
  --ink-2: #5c5c63;        /* testo secondario su bianco */
  --ink-dark-2: #b4b4bb;   /* testo secondario su nero */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --cut: clamp(28px, 5.5vw, 88px);   /* taglio obliquo delle sezioni */
  --slant: -14deg;                    /* inclinazione dei bottoni, come la A */
  --focus: var(--black);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Saira', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0;
  font-style: italic;
  font-weight: 800;
  font-stretch: 116%;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
::selection { background: var(--red); color: var(--white); }
[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 14px; font-weight: 700;
}
.skip:focus { left: 12px; }

/* ---------- barra in alto ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--white); --focus: var(--white); box-shadow: 0 1px 0 var(--black); }
.topbar-in {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px);
}
.topbar-logo { display: block; flex: none; }
.topbar-logo img { display: block; width: 104px; height: auto; }
.sections { display: flex; gap: clamp(14px, 2vw, 26px); margin-left: auto; }
.sections a {
  text-decoration: none; font-weight: 600; font-stretch: 106%; font-size: 1rem;
  padding: 6px 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: background-size .2s;
}
.sections a:hover { background-size: 100% 2px; }
.langs { display: flex; gap: 2px; }
.topbar .langs { margin-left: 4px; }
.langs a {
  text-decoration: none; font-weight: 700; font-size: .875rem; letter-spacing: .02em;
  padding: 6px 7px; color: var(--ink-dark-2);
}
.langs a:hover { color: var(--white); }
.langs a[aria-current='page'] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); }
.topbar-wa {
  position: relative; isolation: isolate; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; color: var(--white); text-decoration: none;
  font-weight: 700; font-style: italic; font-stretch: 108%; font-size: 1rem;
}
.topbar-wa::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: skewX(var(--slant));
}
.topbar-wa:hover::before { background: var(--red-press); }
.topbar-wa:focus-visible { outline: none; }
.topbar-wa:focus-visible::before { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- bottoni a parallelogramma ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .78em 1.45em;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 1.2rem; font-weight: 700; font-style: italic; font-stretch: 108%; line-height: 1.1;
  color: var(--white); text-decoration: none;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: skewX(var(--slant));
  background: var(--btn-bg, var(--red));
  box-shadow: inset 0 0 0 2px var(--btn-line, transparent);
  transition: background-color .15s;
}
.btn:focus-visible { outline: none; }
.btn:focus-visible::before { outline: 3px solid var(--focus); outline-offset: 4px; }
.btn-red:hover { --btn-bg: var(--red-press); }
.btn-line { --btn-bg: transparent; --btn-line: var(--white); }
.btn-line:hover { --btn-bg: var(--white); color: var(--black); }
.btn-dark { --btn-bg: var(--black); }
.btn-dark:hover { --btn-bg: #2b2b2e; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; padding-left: 10px; }

/* ---------- hero: l'insegna del negozio ---------- */
.hero {
  background: var(--black); color: var(--white); --focus: var(--white);
  padding: clamp(36px, 7vw, 96px) 0 calc(var(--cut) + clamp(56px, 7vw, 104px));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  position: relative; z-index: 1;
}
.sign { display: block; width: min(100%, 1000px); height: auto; margin-left: -2.2%; overflow: visible; }
.hero-title {
  margin-top: clamp(26px, 4vw, 52px);
  font-size: clamp(2.15rem, 5.4vw, 4.4rem);
  max-width: 15ch;
}
.hero-lead { margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-dark-2); max-width: 46ch; }
.hero-addr { margin: 26px 0 0; font-size: .95rem; line-height: 1.7; color: var(--ink-dark-2); }

@media (prefers-reduced-motion: no-preference) {
  .sign-ride { animation: ride 1s cubic-bezier(.16, .8, .24, 1) .15s both; }
  .sign-place { animation: appear .6s ease-out .75s both; }
}
@keyframes ride {
  from { transform: translate(-90px, 58px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- foto a tutta larghezza sotto l'insegna ---------- */
.band {
  margin: calc(-1 * var(--cut)) 0 0;
  height: clamp(300px, 46vw, 640px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* ---------- chi siamo ---------- */
.about { padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 112px); }
.about-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-title { font-size: clamp(1.9rem, 3.5vw, 3rem); max-width: 17ch; }
.about-text p { font-size: 1.125rem; max-width: 58ch; }
.about-text p:last-child { margin-bottom: 0; }

/* foto del negozio: facciata alta a sinistra, due scatti dell'interno a destra */
.shop {
  display: grid; grid-template-columns: 1.12fr 1fr; grid-template-rows: auto auto;
  gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(40px, 6vw, 80px);
}
.shop img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.shop img:not(.shop-front) { aspect-ratio: 4 / 3; }
.shop-front { grid-row: 1 / span 2; }

/* ---------- prodotti ---------- */
.products { padding: 0 0 clamp(64px, 8vw, 120px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 10px 48px; margin-bottom: clamp(26px, 3.4vw, 44px);
}
.section-head h2, .brands h2, .store h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.cats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 40px) clamp(12px, 2.2vw, 30px);
  align-items: start;
}
.cats > :nth-child(3n + 2) { margin-top: clamp(28px, 5vw, 72px); }   /* colonna centrale sfalsata */
.cat figure { margin: 0; }
.cat img { display: block; width: 100%; height: auto; background: var(--paper); }
.cat figcaption { display: grid; gap: 2px; padding-top: 14px; }
.cat-name { font-style: italic; font-weight: 800; font-stretch: 112%; font-size: 1.3rem; line-height: 1.15; }
.cat-line { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }

/* ---------- marchi ---------- */
.brands {
  background: var(--black); color: var(--white); --focus: var(--white);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  padding: calc(var(--cut) + clamp(44px, 6vw, 88px)) 0 clamp(64px, 8vw, 112px);
}
.brand-stelvio { margin-top: clamp(24px, 3vw, 40px); }
.brand-photo { display: block; width: 100%; height: auto; }
.brand-text, .brand-castelli {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 8px clamp(20px, 4vw, 56px); align-items: baseline;
}
.brand-text { padding-top: 22px; }
.brand-castelli { margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; position: relative; }
.brand-castelli::before {
  content: ''; position: absolute; left: 0; top: 0; width: 56px; height: 6px;
  background: var(--red); transform: skewX(var(--slant)); transform-origin: left bottom;
}
.brands h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.brands p { margin: 0; color: var(--ink-dark-2); max-width: 56ch; font-size: 1.125rem; }
.brand-copy { display: grid; gap: 10px; }
.brands a { color: var(--white); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.brands a:hover { color: var(--red); }

/* ---------- negozio ---------- */
.store { padding: clamp(72px, 10vw, 140px) 0; }
.store-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.store-facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px clamp(18px, 3vw, 32px); margin: 28px 0 0;
}
.store-facts dt { font-weight: 700; font-style: italic; font-stretch: 108%; }
.store-facts dd { margin: 0; }
.store-facts dd p { margin: 0; }
.store-facts a, .doc a, .map-note a {
  text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; padding: 0 18px 4px 0; }
.hours td { padding: 0 0 4px; }

.map {
  --s: clamp(18px, 3vw, 44px);
  position: relative; display: flex; min-height: 440px; overflow: hidden;
  background: var(--black); color: var(--white); --focus: var(--white);
  clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%);
}
.map-cover {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px;
  padding: clamp(28px, 4vw, 48px) calc(var(--s) + clamp(20px, 3vw, 36px));
}
.map-streaks { align-self: flex-end; width: min(58%, 300px); height: auto; margin-bottom: auto; padding-bottom: 12px; }
.map-cover[hidden] { display: none; }
.map-addr { margin: 0; font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.12; }
.map-btn { margin-left: 10px; }
.map-note { margin: 0; font-size: .95rem; color: var(--ink-dark-2); max-width: 42ch; }
.map-note a { color: var(--white); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--black); color: var(--ink-dark-2); --focus: var(--white); padding: clamp(48px, 6vw, 80px) 0 40px; font-size: .98rem; }
.footer-in { display: grid; grid-template-columns: auto 1fr auto; gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.footer-logo { display: block; width: 150px; height: auto; }
.footer-addr { font-style: normal; line-height: 1.7; }
.footer a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: 3px; }
.footer-meta { display: grid; gap: 10px; justify-items: start; }
.footer-meta p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer .langs { margin-left: -7px; }
.footer-copy { font-size: .9rem; }

/* ---------- pagine di testo (note legali, privacy, 404) ---------- */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.doc-in { max-width: calc(70ch + 2 * var(--gutter)); margin: 0; margin-inline: auto; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; }
.doc h2 { font-size: 1.35rem; margin: 2em 0 .6em; font-stretch: 110%; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .6em; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.doc-updated { margin-top: 2.4em; color: var(--ink-2); font-size: .95rem; }
.doc-back { font-weight: 700; }
.notfound img { display: block; width: 200px; height: auto; margin-bottom: 36px; }
.nf-links { line-height: 2; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-in, .store-in { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr 1fr; }
  .shop-front { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cats > :nth-child(3n + 2) { margin-top: 0; }
  .cats > :nth-child(2n) { margin-top: clamp(24px, 6vw, 48px); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sections { display: none; }
  .topbar .langs { margin-left: auto; }
  .brand-text, .brand-castelli { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
}
@media (max-width: 520px) {
  .footer-in { grid-template-columns: 1fr; }
  .store-facts { grid-template-columns: 1fr; gap: 2px; }
  .store-facts dd { margin-bottom: 14px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .btn { font-size: 1.15rem; }
}
@media (max-width: 400px) {
  .topbar-wa span { display: none; }
  .topbar-wa { padding: 8px 12px; }
  .topbar-logo img { width: 92px; }
  .cat-name { font-size: 1.12rem; }
}
