/* JASh — jasheurope.com
   Foglio di stile unico per tutto il sito. */

/* ---------- Font: Jost (variabile, pesi 200–600) ---------- */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url('../fonts/jost-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  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: 'Jost';
  font-style: normal;
  font-weight: 200 600;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  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;
}

/* ---------- Colori e misure ---------- */
:root {
  --ink: #1b1d1c;
  --ink-2: #3c403d;
  --text: #4a4f4b;
  --muted: #5d625e;
  --faint: #6f746f;
  --green: #6CAE42;
  --green-dark: #4f8a2e;
  --green-light: #8fc66a;
  --bg: #f6f5f2;
  --card: #faf9f6;
  --photo-bg: #e4e0db;
  --gutter: clamp(20px, 4vw, 60px);
  --maxw: 1320px;
  --radius: 26px;
  --shadow: 0 34px 70px rgba(27, 29, 28, .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Jost', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--green-dark); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--green); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
strong, .w5 { font-weight: 500; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header / navigazione ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: clamp(18px, 2.6vw, 34px) var(--gutter);
}
.site-header .logo { display: block; }
.site-header .logo img { height: clamp(26px, 3.4vw, 40px); width: auto; display: block; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(16px, 2.6vw, 36px);
  font-size: 14px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green-dark); }

/* ---------- Elementi comuni ---------- */
.eyebrow {
  font-size: 13px; font-weight: 400; letter-spacing: .3em;
  text-transform: uppercase; color: var(--green-dark);
}
.pill {
  align-self: flex-start; font-size: 12px; font-weight: 400; letter-spacing: .3em;
  text-transform: uppercase; color: var(--green-dark);
  border: 1px solid rgba(108, 174, 66, .5); border-radius: 999px;
  padding: 7px 15px; white-space: nowrap;
}
.rule { width: 68px; height: 3px; background: var(--green); }
.btn {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 400; letter-spacing: .04em;
  padding: 15px 28px; border-radius: 999px;
}
.btn:hover { background: var(--green); color: #fff; }
.btn-outline {
  display: inline-block; color: var(--ink);
  font-size: 15px; font-weight: 400; letter-spacing: .04em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid rgba(27, 29, 28, .25);
}
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.note { font-size: 14px; font-weight: 300; color: var(--muted); }

.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.dot-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex: none;
}

.wrap { max-width: var(--maxw); width: 100%; margin: 0 auto; }

/* ---------- Riquadro principale a due colonne ---------- */
.feature-card {
  margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.feature-card .copy {
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(16px, 2.4vh, 28px); padding: clamp(32px, 5.5vw, 88px);
}
.feature-card .media { position: relative; background: var(--photo-bg); min-height: clamp(420px, 62vw, 860px); }
.feature-card .media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 88% 80%; display: block;
}
.hero-title { font-weight: 200; font-size: clamp(42px, 6.2vw, 96px); line-height: 1; letter-spacing: -.025em; }
.tagline { font-size: 14px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.lead { font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; line-height: 1.62; color: var(--muted); max-width: 44ch; text-wrap: pretty; }

/* ---------- Sezione testo a due colonne ---------- */
.split {
  padding: clamp(64px, 9vw, 140px) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 6vw, 100px);
}
.split .head { display: flex; flex-direction: column; gap: 22px; }
.split .body {
  display: flex; flex-direction: column; gap: 22px;
  font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; line-height: 1.7; color: var(--text);
}
.split .body p { text-wrap: pretty; }
.h2 { font-weight: 300; font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }

/* ---------- Fascia caratteristiche ---------- */
.feature-row {
  border-top: 1px solid rgba(27, 29, 28, .1);
  padding: clamp(18px, 2.4vw, 28px) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px clamp(18px, 2.8vw, 44px);
}
.feature-row li { letter-spacing: .06em; }

/* ---------- Intestazione di pagina ---------- */
.page-intro {
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 22px;
}
.page-title { font-weight: 200; font-size: clamp(40px, 5.6vw, 88px); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.page-intro--story { padding: clamp(40px, 7vw, 110px) var(--gutter) clamp(40px, 6vw, 90px); gap: 24px; }
.page-intro--story .page-title { font-size: clamp(42px, 6.4vw, 104px); max-width: 14ch; }

/* ---------- Prodotti ---------- */
.product .media {
  min-height: clamp(380px, 46vw, 680px); background: #fff;
  display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 60px);
}
.product .media img { position: static; width: 100%; max-width: 520px; height: auto; object-fit: contain; }
.product .copy { gap: clamp(16px, 2.2vh, 24px); padding: clamp(32px, 5vw, 80px); }
.product-name { font-weight: 500; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -.02em; }
.product-type { font-size: 14px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.product .lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; max-width: 46ch; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 20px; padding: 8px 0; }
.product .actions { gap: 12px 16px; }

.cta-band {
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band p { font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.4; color: var(--text); max-width: 40ch; text-wrap: pretty; }
.cta-band a { font-size: 15px; letter-spacing: .04em; }

/* ---------- Storia ---------- */
.photo-band {
  margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden;
  background: var(--photo-bg); box-shadow: var(--shadow);
  position: relative; height: clamp(300px, 46vw, 640px);
}
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.dark-band { background: var(--ink); color: #f2f4f2; padding: clamp(64px, 9vw, 140px) var(--gutter); }
.dark-band .inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.dark-band .eyebrow { color: var(--green-light); }
.dark-band .h2 { max-width: 20ch; }
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.belief { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid rgba(242, 244, 242, .2); padding-top: 24px; }
.belief .num { font-size: 15px; font-weight: 500; color: var(--green-light); }
.belief h3 { font-size: 24px; font-weight: 400; }
.belief p { font-size: 17px; font-weight: 300; line-height: 1.65; color: #c9cdca; text-wrap: pretty; }

.closing {
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.closing h2 { font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }

/* ---------- Manuali ---------- */
.manual-intro { padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.manual-intro h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
.manual-intro p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.lang-grid {
  list-style: none; margin: 0; padding: 0 var(--gutter) clamp(48px, 6vw, 90px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.lang-card {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; height: 100%;
  background: #fff; border: 1px solid #e3e0da; border-radius: 16px; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lang-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 23, 26, .10); border-color: var(--green); color: var(--ink); }
.lang-card .flag { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.lang-card .flag svg { width: 100%; height: 100%; display: block; }
.lang-card .name { font-size: 18px; font-weight: 500; }
.lang-card .en { font-size: 13px; color: #7a8084; }
.lang-card .meta { display: flex; flex-direction: column; gap: 2px; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(60px, 10vw, 160px) var(--gutter); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto; border-top: 1px solid rgba(27, 29, 28, .08);
  padding: 18px var(--gutter) 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  font-size: 13px; font-weight: 300; color: var(--faint);
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .lang-card:hover { transform: none; }
}
.stack { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Selettore lingua ---------- */
.site-nav .lang-switch a {
  border: 1px solid rgba(27, 29, 28, .25); border-radius: 999px;
  padding: 4px 12px; letter-spacing: .08em;
}
.site-nav .lang-switch a:hover { border-color: var(--green); }

/* ---------- Cinese semplificato ---------- */
:lang(zh) {
  font-family: 'Jost', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
}
html:lang(zh) body { font-family: 'Jost', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif; }
html:lang(zh) .eyebrow, html:lang(zh) .pill, html:lang(zh) .tagline, html:lang(zh) .product-type { letter-spacing: .14em; }
html:lang(zh) .site-nav ul { letter-spacing: .08em; }
html:lang(zh) .hero-title, html:lang(zh) .page-title { font-weight: 300; line-height: 1.15; letter-spacing: 0; }
html:lang(zh) .h2, html:lang(zh) .closing h2 { letter-spacing: 0; line-height: 1.25; }
html:lang(zh) .split .body, html:lang(zh) .lead, html:lang(zh) .belief p { line-height: 1.85; }
html:lang(zh) .page-intro--story .page-title, html:lang(zh) .dark-band .h2 { max-width: none; }

/* ---------- Modelli P1 · P2 · P3 ---------- */
.page-intro .lead { max-width: 60ch; }
.model-grid {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.model-card {
  display: flex; flex-direction: column; height: 100%; color: var(--ink);
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 34px rgba(27, 29, 28, .09);
  transition: transform .15s, box-shadow .15s;
}
.model-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.model-media { position: relative; aspect-ratio: 4 / 3; background: #fff; }
.model-media img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; display: block; }
.model-media.media--photo { background: #2b1a0c; }
.model-media.media--photo img { inset: 0; width: 100%; height: 100%; }
.model-media.media--photo img { object-fit: cover; }
.model-copy { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px); flex: 1; }
.model-name { font-weight: 500; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -.02em; }
.model-short { font-size: 16px; font-weight: 300; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.model-link { margin-top: auto; padding-top: 8px; font-size: 15px; letter-spacing: .04em; color: var(--green-dark); }
.model-card:hover .model-link { color: var(--green); }

.split .spec-grid { padding: 4px 0 8px; }
.product .media.media--photo { padding: 0; background: #2b1a0c; position: relative; }
.product .media.media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 12% 50%; }
.product .media:not(.media--photo) img { max-height: clamp(340px, 42vw, 600px); width: auto; }
.crumbs { padding: 0 var(--gutter) clamp(16px, 2vw, 24px); font-size: 14px; letter-spacing: .06em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.others { padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 5vw, 70px); }
.others-title { display: block; padding: 0 var(--gutter) 22px; }
@media (prefers-reduced-motion: reduce) { .model-card:hover { transform: none; } }
.others .model-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }

/* ---------- Pagina OEM ---------- */
.oem-hero .copy .eyebrow { margin-bottom: -4px; }
.oem-hero .page-title { font-size: clamp(38px, 4.8vw, 72px); }
.oem-section {
  padding: clamp(64px, 9vw, 140px) var(--gutter);
  display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px);
}
.offer-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.offer-card {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(27, 29, 28, .09);
  padding: clamp(24px, 2.8vw, 36px);
}
.offer-card::before { content: ""; width: 28px; height: 3px; background: var(--green); margin-bottom: 6px; }
.offer-card h3, .steps h3 { font-size: 22px; font-weight: 400; line-height: 1.25; }
.offer-card p, .steps p { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(27, 29, 28, .15); padding-top: 22px; }
.steps .num { font-size: 15px; font-weight: 500; color: var(--green-dark); }
html:lang(zh) .offer-card p, html:lang(zh) .steps p { line-height: 1.85; }

/* ---------- Dati societari nel footer ---------- */
.site-footer .legal { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--faint); }

/* ---------- Pagina sicurezza / footer ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dark-band .inner.split-dark { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 6vw, 100px); }
.dark-body { display: flex; flex-direction: column; gap: 22px; font-size: clamp(17px, 1.4vw, 19px); font-weight: 300; line-height: 1.7; color: #c9cdca; }
.dark-body p { text-wrap: pretty; }
html:lang(zh) .dark-body { line-height: 1.85; }
