:root {
  --asphalt: #1c1f24;
  --asphalt-2: #2c313a;
  --red: #e10600;
  --red-dark: #b80500;
  --steel: #d3d8df;
  --paper: #ffffff;
  --mist: #f2f4f7;
  --ink: #1c1f24;
  --muted: #5d6470;
  --line: #e1e5ea;
  --green: #1f9a55;
  --blue: #2b7de9;
  --radius: 16px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.06; margin: 0 0 .5em; font-weight: 900; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hl { color: var(--red); }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ff6b62; margin-bottom: .8em; }
.eyebrow-red { color: var(--red); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }

.announce { margin: 0; background: var(--red); color: #fff; text-align: center; font-size: .9rem; padding: 9px 16px; }

.btn { display: inline-block; padding: .85em 1.6em; border-radius: 12px; background: var(--red); color: #fff; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid var(--red); cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-full { width: 100%; text-align: center; }
.btn:focus-visible, .seg-btn:focus-visible, select:focus-visible, .add:focus-visible, .part:focus-visible, .cart:focus-visible, summary:focus-visible { outline: 3px solid #ff9a94; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 70px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-size: 1.55rem; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.wordmark b { font-weight: 900; color: var(--red); }
.wordmark-light { color: #fff; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--red); }
.cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); }
.cart svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.800; stroke-linejoin: round; stroke-linecap: round; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.cart-count.has-items { background: var(--red); }

.hero { padding: 56px 0 64px; color: #fff; background:
  repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 14px, transparent 14px 40px),
  linear-gradient(160deg, var(--asphalt-2), var(--asphalt)); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero .hl { color: #ff4a42; }
.hero-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { padding: .45em .95em; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; font-size: .92rem; }
.hero-points li::before { content: "✓ "; color: #6fe0a0; }

.finder { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.4); border-top: 6px solid var(--red); }
.finder h2 { font-size: 1.5rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--mist); border-radius: 14px; margin-bottom: 10px; }
.seg-small { grid-template-columns: repeat(3, 1fr); }
.seg-btn { font: inherit; font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: 8px; padding: .6em .5em; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linejoin: round; stroke-linecap: round; }
.seg-btn.is-active { background: var(--ink); color: #fff; }
.seg-small .seg-btn { font-size: .88rem; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.sizes-moto { grid-template-columns: 1fr 1.4fr; }
.sizes label { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
select { font: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); padding: .6em .5em; border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.size-preview { margin: 16px 0 14px; color: var(--muted); font-size: .95rem; }
.size-preview b { color: var(--ink); font-size: 1.1rem; }

.section { padding: 76px 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--asphalt); color: #fff; }
.section-dark .lead { color: rgba(255,255,255,.78); }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.results-head h2 { margin-bottom: 0; }
.results-note { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tyre { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s; }
.tyre:hover { border-color: var(--red); }
.tyre-art { position: relative; background: var(--mist); border-radius: 12px; padding: 22px; margin-bottom: 14px; }
.tyre-art img { width: 120px; margin: 0 auto; }
.season { position: absolute; top: 10px; left: 10px; font-size: .74rem; font-weight: 800; padding: .3em .7em; border-radius: 8px; color: #fff; }
.s-estivo { background: #f2a100; color: var(--ink); }
.s-invernale { background: var(--blue); }
.s-4stagioni { background: var(--green); }
.tyre-line { margin: 0 0 .2em; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.tyre h3 { font-size: 1.3rem; margin-bottom: .2em; font-variant-numeric: tabular-nums; }
.tyre-note { color: var(--muted); font-size: .94rem; }
.tyre-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 1.55rem; font-weight: 900; letter-spacing: -0.02em; }
.add { font: inherit; font-weight: 800; font-size: .9rem; padding: .6em 1.1em; border-radius: 10px; background: var(--ink); color: #fff; border: 0; cursor: pointer; }
.add:hover { background: var(--red); }

.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.explain { margin-top: 22px; background: var(--asphalt-2); border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; padding: 18px 22px; }
.explain-title { margin: 0 0 .25em; font-weight: 900; font-size: 1.2rem; }
.explain-text { margin: 0; color: rgba(255,255,255,.8); }
.sidewall { background: radial-gradient(circle at 50% 50%, #3a404a, #23272e); border-radius: 26px; padding: 36px 26px; text-align: center; border: 10px solid #15181c; box-shadow: inset 0 0 0 2px #4a505a; }
.code { display: inline-flex; align-items: baseline; gap: 2px; flex-wrap: wrap; justify-content: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; color: #e6e9ee; letter-spacing: .02em; }
.code > span { color: #8c939e; }
.part { font: inherit; color: inherit; background: transparent; border: 0; padding: 0 .12em; border-radius: 8px; cursor: pointer; border-bottom: 3px dashed rgba(255,255,255,.25); }
.part:hover { background: rgba(255,255,255,.08); }
.part.is-active { background: var(--red); color: #fff; border-bottom-color: transparent; }
.code > .part + .part, .code > .part + .pair { margin-left: .3em; }
.pair { display: inline-flex; white-space: nowrap; }
.dot { margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(255,255,255,.2); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.dot-label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8c939e; }
.code-small { font-size: clamp(1.3rem, 3vw, 1.8rem); color: #8c939e; }
.code-small .part { color: #e6e9ee; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.perk { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.perk-icon { font-size: 1.8rem; margin-bottom: 10px; }
.perk strong { font-size: 1.1rem; }
.perk span:last-child { color: var(--muted); font-size: .94rem; }
.season-note { margin-top: 22px; background: #eaf2fd; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; padding: 16px 20px; }
.season-note p { margin: 4px 0 0; color: var(--muted); }

.faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.faq .lead { margin-bottom: 1.4em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border-radius: 14px; padding: 2px 20px; }
.faq-list summary { cursor: pointer; font-weight: 800; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin: 0 0 16px; color: var(--muted); }

.site-footer { background: var(--asphalt); color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }

@media (max-width: 1000px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .cart { margin-left: auto; }
  .hero-inner, .guide, .faq { grid-template-columns: 1fr; gap: 34px; }
  .finder { max-width: 480px; width: 100%; margin: 0 auto; }
  .results { grid-template-columns: 1fr; max-width: 480px; }
  .section { padding: 58px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .announce { font-size: .8rem; }
  .finder { padding: 20px 16px; }
  .sizes { gap: 6px; }
  .perks { grid-template-columns: 1fr; }
  .sidewall { padding: 26px 12px; border-width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
