/* Agile Cars */

@font-face { font-family: Manrope; src: url('assets/manrope.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('assets/space.woff2') format('woff2'); font-style: normal; font-weight: 300 700; font-display: swap; }

:root {
  --blue: #0041fc;
  --blue-hover: #0034c9;
  --blue-soft: #eef2ff;
  --gold: #f9c05a;
  --gold-hover: #ffce78;
  --ink: #191d24;
  --muted: #5b6470;
  --paper: #f5f5f0;
  --surface: #fff;
  --night: #161b22;
  --line: #dbddd7;
  --body: Manrope, Arial, sans-serif;
  --display: 'Space Grotesk', Arial, sans-serif;
  --radius: 4px;
  --container: 1240px;
  --gutter: 40px;
  --header-height: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; text-wrap: balance; }
p { max-width: 66ch; text-wrap: pretty; }
strong { font-weight: 700; }
::selection { color: var(--ink); background: var(--gold); }
[hidden] { display: none !important; }

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible, .buyback :focus-visible, .contact :focus-visible { outline-color: var(--gold); }

.sprite { display: none; }
.icon { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: 104px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 20px; background: #fff; color: var(--ink); border: 2px solid var(--blue); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* ---------- Tipografia ricorrente ---------- */

.eyebrow { width: fit-content; margin-bottom: 20px; padding: 4px 11px 4px 13px; border-radius: 2px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.section-title { font-size: clamp(40px, 4.7vw, 66px); line-height: 1.05; letter-spacing: -.05em; }
.section-intro { font-size: 18px; color: var(--muted); line-height: 1.75; }

/* ---------- Pulsanti e collegamenti ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 13px 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.button:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 20px #0041fc2e; }
.button:active { transform: none; box-shadow: none; }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: var(--gold-hover); box-shadow: 0 8px 20px #f9c05a40; }
.button-outline { background: transparent; color: var(--ink); border-color: #c9ccc4; }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }


/* Le frecce si muovono nella direzione in cui portano. */
.trail-down, .trail-right, .to-top .icon { transition: transform .25s var(--ease); }
a:hover > .trail-down, button:hover > .trail-down { transform: translateY(3px); }
a:hover > .trail-right, button:hover > .trail-right { transform: translateX(4px); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- Testata ---------- */

.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-height); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 22px #14202f0a; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { flex-shrink: 0; }
.brand img { width: 184px; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav > a { position: relative; padding-block: 8px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.site-nav > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--blue); transition: right .25s var(--ease); }
.site-nav > a:hover::after, .site-nav > a[aria-current='true']::after { right: 0; }
.site-nav .mobile-contact { display: none; }
.header-cta { min-height: 46px; padding: 10px 20px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .menu-close, .menu-toggle[aria-expanded='true'] .menu-open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-close { display: block; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 660px; margin: 0 20px; border-radius: 6px; background: #11151e; color: #fff; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 58%; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10141af5 0%, #10141ae6 24%, #10141a8c 46%, #10141a00 78%); }
.hero-content { padding-top: 84px; padding-bottom: 96px; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: none; font-size: clamp(64px, 8.4vw, 124px); line-height: 1; letter-spacing: -.065em; }
.hero h1 em { font-style: normal; color: var(--gold); }
/* Testi che si alternano in dissolvenza (seconda riga del titolo, punti di forza). */
.rotator { display: grid; }
.rotator > * { grid-area: 1 / 1; opacity: 0; transform: translateY(.2em); filter: blur(8px); transition: opacity 1.8s ease, transform 1.8s var(--ease), filter 1.8s ease; }
.rotator > .is-active { opacity: 1; transform: none; filter: none; transition-duration: 1.3s; transition-delay: .5s; }
.rotator > .is-leaving { transform: translateY(-.15em); }
/* Prima comparsa: la frase resta nascosta finché lo script non toglie la classe. */
.rotator-wait .hero-rotator > .is-active { opacity: 0; transform: translateY(.2em); filter: blur(8px); }
.br-mobile { display: none; }
.hero-description { max-width: 440px; margin-top: 28px; font-size: 18px; line-height: 1.75; color: #d4d9e2; }
.hero .button-row { margin-top: 34px; }

.hero-stamp { position: absolute; right: 52px; bottom: 72px; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; color: #fff; transition: transform .3s var(--ease), color .2s; }
.hero-stamp::before { content: ''; position: absolute; inset: 7%; border: 1.5px solid currentColor; border-radius: 50%; background: #10141a40; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-stamp:hover { transform: scale(1.05); color: var(--gold); }
.stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp-ring text { fill: currentColor; font-family: var(--display); font-size: 16px; font-weight: 700; }
.stamp-core { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border: 1.5px solid currentColor; border-radius: 50%; transition: transform .3s var(--ease); }
.stamp-core .icon { width: 28px; height: 28px; }
.hero-stamp:hover .stamp-core { transform: rotate(-20deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-sell { display: none; }


/* ---------- Soluzioni ---------- */

.selection { padding-top: 92px; }
.section-heading { margin-bottom: 46px; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.heading-values { gap: 18px; width: min(100%, 410px); margin: 0; padding: 6px 0 0; list-style: none; }
.heading-values li { display: flex; align-items: center; gap: 16px; }
.heading-values strong { display: block; font-size: 18px; line-height: 1.4; letter-spacing: -.015em; }
.heading-values p { font-size: 16px; color: var(--muted); line-height: 1.5; }
/* Lo sfondo dell'icona si riempie in senso orario, come una lancetta: parte quando il punto compare
   e si chiude quando arriva il successivo (0,5 s + 5 s = intervallo di 5,5 s in script.js).
   Il cerchio ha raggio 13 e tratto 26, quindi il tratto disegna un disco pieno. */
.value-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; color: var(--blue); }
.sweep { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sweep circle { fill: none; stroke: #dbe3ff; stroke-width: 26; stroke-dasharray: 100; stroke-dashoffset: 0; }
.has-motion .sweep circle { stroke-dashoffset: 100; }
.has-motion .is-counting .sweep circle, .has-motion .is-leaving .sweep circle { stroke-dashoffset: 0; }
.has-motion .is-counting .sweep circle { transition: stroke-dashoffset 5s linear .5s; }
.value-icon .icon { position: relative; width: 24px; height: 24px; }
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.car-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid #e7e8e1; border-radius: 6px; overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px #14202f14; }
.car-photo { position: relative; overflow: hidden; background: #e9ecf0; }
.car-photo img { width: 100%; height: 240px; object-fit: cover; transition: transform .65s var(--ease); }
.car-photo img[src$='golf.webp'] { object-position: 50% 82%; }
.car-card:hover .car-photo img { transform: scale(1.04); }
.car-photo::after { content: ''; position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; background: var(--surface); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.car-tag { position: absolute; left: 16px; top: 16px; padding: 4px 11px; background: #fff; font-size: 16px; font-weight: 800; line-height: 1.6; letter-spacing: .02em; }
.car-tag.new { background: var(--gold); }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.car-category { margin-bottom: 8px; font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.car-body h3 { margin-bottom: 10px; font-size: 26px; letter-spacing: -.04em; }
.car-body > p:not([class]) { color: var(--muted); }
.car-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.car-price strong { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; color: var(--ink); }
.car-note { display: flex; align-items: center; gap: 8px; margin: 6px 0 22px; font-size: 16px; color: var(--muted); }
.car-note .icon { width: 18px; height: 18px; color: var(--blue); }
.car-cta { width: 100%; margin-top: auto; }
.illustrative { margin-top: 22px; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ---------- Chi siamo ---------- */

.agile-story { padding-top: 16px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.story-visual { position: relative; align-self: stretch; min-height: 460px; overflow: hidden; border-radius: 6px; }
.story-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.story-label { position: absolute; left: 0; bottom: 0; padding: 22px 34px 22px 28px; background: var(--gold); font-family: var(--display); font-size: 32px; line-height: 1.08; letter-spacing: -.05em; clip-path: polygon(0 0, 86% 0, 100% 22%, 100% 100%, 0 100%); }
.story-copy .section-title { font-size: clamp(38px, 3.9vw, 54px); }
.story-copy .section-intro { margin-top: 24px; }
.check-list { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.check { display: grid; margin-top: 1px; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: #fff; }
.check .icon { width: 15px; height: 15px; stroke-width: 2.4; }

/* ---------- Ritiro ---------- */

.buyback { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.buyback::before { content: ''; position: absolute; right: -240px; top: -260px; width: 520px; height: 380px; background: var(--gold); transform: rotate(32deg); }
.buyback .eyebrow { background: #fff; color: var(--blue); }
.buyback-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 110px; align-items: center; }
.buyback h2 { font-size: clamp(48px, 5.5vw, 80px); line-height: 1.04; letter-spacing: -.055em; }
.buyback h2 em { font-style: normal; color: var(--gold); }
.buyback-grid > div > p:not(.eyebrow) { max-width: 440px; margin-top: 26px; color: #e2e9ff; line-height: 1.75; }
.buyback-grid .button { margin-top: 32px; }
.buyback-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.buyback-steps li { display: flex; gap: 22px; padding: 26px 0; border-top: 1px solid #ffffff40; }
.buyback-steps li:last-child { border-bottom: 1px solid #ffffff40; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--display); font-size: 16px; font-weight: 600; }
.buyback-steps h3 { margin-bottom: 6px; font-size: 22px; letter-spacing: -.03em; line-height: 1.25; }
.buyback-steps p { color: #d7e0ff; }

/* ---------- Garanzia ---------- */

.warranty-section { background: var(--surface); }
.warranty-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 100px; align-items: center; }
.warranty-number { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; padding: 20px; background: var(--gold); clip-path: polygon(0 0, 85% 0, 100% 21%, 100% 100%, 0 100%); }
.warranty-number .icon { position: absolute; left: 24px; top: 24px; width: 40px; height: 40px; stroke-width: 1.6; }
.warranty-number strong { font-family: var(--display); font-size: 150px; font-weight: 500; line-height: 1.1; letter-spacing: -.08em; }
.warranty-number span { font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.warranty-grid .section-title { font-size: clamp(36px, 3.7vw, 52px); }
.warranty-grid .section-intro { margin-top: 24px; }
.inline-link { color: var(--blue); font-weight: 700; white-space: nowrap; text-decoration: underline; text-decoration-color: #0041fc59; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.inline-link:hover { text-decoration-color: currentColor; }
.inline-link .icon { display: inline-block; width: 15px; height: 15px; margin-left: 4px; vertical-align: -1px; }
.warranty-fine { max-width: 580px; margin-top: 16px; font-size: 16px; color: var(--muted); line-height: 1.75; }

/* ---------- Domande ---------- */

.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; }
.faq-layout .section-intro { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue); }
.faq-icon { position: relative; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-list details[open] .faq-icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.faq-list details[open] .faq-icon::after { transform: rotate(0); }
.faq-list details > p { padding: 0 60px 24px 0; color: var(--muted); line-height: 1.8; }

/* ---------- Contatti ---------- */

.contact { background: var(--night); color: #fff; padding-bottom: 76px; }
.contact-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; padding-bottom: 56px; margin-bottom: 44px; border-bottom: 1px solid #ffffff29; }
.contact-top h2 { font-size: clamp(58px, 7.2vw, 98px); line-height: 1; letter-spacing: -.055em; }
.contact-top h2 em { font-style: normal; color: var(--gold); }
.contact-top > div > p:not(.eyebrow) { margin-bottom: 24px; color: #c8d0da; }
.contact-details { display: grid; grid-template-columns: 1fr 1.05fr 1.3fr 1.2fr; gap: 32px; margin: 0; }
.contact-details > div { min-width: 0; }
.contact-details dt { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--gold); font-size: 16px; font-weight: 800; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.contact-details dt .icon { width: 20px; height: 20px; margin-top: 2px; }
.contact-details dd { margin: 0; color: #d4d9e1; line-height: 1.85; overflow-wrap: anywhere; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: #fff; text-decoration: underline; text-decoration-color: #ffffff55; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.contact-link:hover { color: var(--gold); text-decoration-color: var(--gold); }
.contact-link .icon { width: 16px; height: 16px; }

/* ---------- Piè di pagina ---------- */

.site-footer { padding: 36px 0 24px; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 30px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.footer-brand img { width: 46px; }
.footer-main > p { font-size: 16px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 16px; }
.footer-links > * { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.footer-links button { padding: 0; border: 0; background: none; }
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links .icon { width: 16px; height: 16px; }
.footer-legal { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 56px; margin: 0; padding-block: 22px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.footer-legal dt { font-weight: 700; }
.footer-legal dd { margin: 0; color: var(--muted); }
.footer-note { max-width: none; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; color: var(--muted); }

/* ---------- Finestre ---------- */

.dialog { width: min(600px, calc(100% - 32px)); max-height: 90dvh; padding: 42px; overflow-y: auto; border: 0; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 30px 100px #0004; }
.dialog::backdrop { background: #07111dbf; backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: background-color .2s, color .2s; }
.dialog-close:hover { background: var(--ink); color: #fff; }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog .eyebrow { margin: 0 44px 12px 0; }
.dialog h2 { margin-bottom: 14px; font-size: 32px; letter-spacing: -.04em; }
.dialog p { color: var(--muted); line-height: 1.75; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.request-form label { display: grid; gap: 6px; font-size: 16px; font-weight: 700; }
.request-form input, .request-form select, .request-form textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #c3c9d3; border-radius: var(--radius); background: #fff; font-size: 18px; transition: border-color .2s; }
.request-form input:hover, .request-form select:hover, .request-form textarea:hover { border-color: var(--muted); }
.request-form textarea { min-height: 96px; resize: vertical; }
.request-form .full { grid-column: 1 / -1; }
.request-form .form-note { font-size: 16px; font-weight: 400; }
.optional { font-weight: 400; color: var(--muted); }
.request-result { margin-top: 24px; padding: 22px; border-radius: 8px; background: var(--blue-soft); }
.request-result h3 { margin-bottom: 8px; font: 800 19px var(--body); }
.request-result .button { margin-top: 16px; }
.edit-request { display: block; margin-top: 14px; padding: 0; border: 0; background: none; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.privacy-copy p + p { margin-top: 14px; }
.privacy-copy h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 700; }

/* ---------- Comparsa ---------- */

.reveal { transition: opacity .7s, transform .7s var(--ease); }
.motion-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(20px); }

/* ---------- Schermi ampi ---------- */

@media (min-width: 1600px) {
  :root { --container: 1360px; }
  .hero { min-height: 740px; }
  .hero-content { padding-top: 104px; }
}

/* ---------- Tablet orizzontale ---------- */

@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .header-inner { gap: 22px; }
  .brand img { width: 160px; }
  .site-nav { gap: 20px; }
  .hero { min-height: 620px; }
  .hero h1 { font-size: 92px; }
  .hero-content { padding-top: 70px; }
  .hero-stamp { right: 36px; }
  .car-grid { gap: 18px; }
  .car-body { padding: 22px; }
  .car-body h3 { font-size: 24px; }
  .car-photo img { height: 210px; }
  .story-grid { gap: 50px; }
  .buyback-grid { gap: 60px; }
  .buyback::before { right: -320px; }
  .warranty-grid { gap: 56px; }
  .faq-layout { gap: 50px; }
  .contact-details { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .footer-legal { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 960px) and (min-width: 851px) {
  .site-nav > a[href='#garanzia'] { display: none; }
}

/* ---------- Tablet verticale ---------- */

@media (max-width: 850px) {
  :root { --header-height: 76px; }
  .section { padding-block: 76px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .site-nav { position: absolute; top: var(--header-height); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px var(--gutter) 24px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 16px 24px #0000001a; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a::after { bottom: -1px; }
  .site-nav .mobile-contact { display: block; border-bottom: 0; color: var(--blue); }
  .hero { margin-inline: 14px; min-height: 640px; }
  .hero h1 { font-size: 84px; }
  .hero-image { object-position: 64% 50%; }
  .hero-shade { background: linear-gradient(90deg, #10141afa, #10141ac4 50%, #10141a26); }
  .hero-stamp { right: 28px; bottom: 56px; width: 150px; height: 150px; }
  .stamp-core { width: 54px; height: 54px; }
  .section-heading { margin-bottom: 34px; }
  .heading-row { display: block; }
  .heading-values { width: 100%; margin-top: 26px; padding-top: 0; }
  .car-grid { grid-template-columns: 1fr 1fr; }
  .car-grid > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .car-grid > :last-child .car-photo img { height: 100%; min-height: 260px; }
  .story-grid { gap: 36px; }
  .story-label { font-size: 28px; padding: 18px 28px 18px 22px; }
  .buyback-grid { grid-template-columns: 1fr; gap: 40px; }
  .warranty-grid { grid-template-columns: .75fr 1.25fr; gap: 36px; }
  .warranty-number strong { font-size: 116px; }
  .warranty-number { min-height: 240px; }
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-top { gap: 36px; }
  .contact-top h2 { font-size: 70px; }
}

/* ---------- Smartphone ---------- */

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .section { padding-block: 64px; }
  .brand img { width: 156px; }
  .section-title { font-size: 42px; }
  .button { padding: 12px 20px; min-height: 50px; }

  .hero { margin-inline: 10px; min-height: 0; }
  .hero-content { padding-top: 48px; padding-bottom: 48px; }
  .hero .eyebrow { max-width: 260px; }
  .hero h1 { font-size: clamp(50px, 13vw, 78px); line-height: 1.04; }
  .br-mobile { display: inline; }
  .hero-description { margin-top: 22px; }
  .hero-image { object-position: 68% bottom; opacity: .8; }
  .hero-shade { background: linear-gradient(180deg, #10141af2 0%, #10141ae6 50%, #10141a99 100%); }
  .hero .button-row { margin-top: 28px; gap: 6px 24px; }
  .hero-stamp { display: none; }
  .hero-sell { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 16px 12px 12px; border: 1.5px solid currentColor; border-radius: 8px; background: #10141a40; color: #fff; font-size: 16px; line-height: 1.4; transition: color .2s; }
  .hero-sell:hover { color: var(--gold); }
  .hero-sell > span:nth-child(2) { flex: 1; }
  .hero-sell strong { display: block; }
  .hero-sell-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 50%; }
  .hero-sell-icon .icon { width: 22px; height: 22px; }


  .value-icon { width: 46px; height: 46px; }
  .value-icon .icon { width: 22px; height: 22px; }

  .selection { padding-top: 60px; }
  .section-heading { margin-bottom: 30px; }
  .car-grid { grid-template-columns: 1fr; gap: 20px; }
  .car-grid > :last-child { grid-column: auto; display: flex; }
  .car-grid > :last-child .car-photo img, .car-photo img { height: 230px; min-height: 0; }
  .car-body { padding: 22px 22px 24px; }
  .car-body h3 { font-size: 26px; }

  .agile-story { padding-top: 8px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-visual { min-height: 0; height: 320px; }
  .story-label { font-size: 28px; }

  .buyback::before { width: 220px; height: 170px; right: -120px; top: -90px; }
  .buyback h2 { font-size: 50px; }
  .buyback-steps li { gap: 16px; padding-block: 22px; }
  .step-num { width: 40px; height: 40px; }

  .warranty-grid { grid-template-columns: 1fr; gap: 32px; }
  .warranty-number { min-height: 190px; align-items: flex-start; padding-left: 30px; clip-path: polygon(0 0, 90% 0, 100% 23%, 100% 100%, 0 100%); }
  .warranty-number strong { font-size: 120px; }
  .warranty-number .icon { left: auto; right: 30px; top: 50px; width: 52px; height: 52px; }
  .warranty-grid .section-title { font-size: 38px; }

  .faq-list summary { padding-block: 18px; gap: 16px; }
  .faq-list details > p { padding-right: 0; }

  .contact { padding-bottom: 52px; }
  .contact-top { display: block; padding-bottom: 36px; margin-bottom: 32px; }
  .contact-top h2 { font-size: 64px; }
  .contact-top > div + div { margin-top: 26px; }
  .contact-details { grid-template-columns: 1fr; gap: 28px; }

  .footer-main { display: block; padding-bottom: 24px; }
  .footer-main > p { margin-top: 12px; }
  .footer-links { margin-top: 18px; }
  .footer-legal { grid-template-columns: 1fr; gap: 14px; }

  .dialog { padding: 40px 22px 26px; border-radius: 10px; }
  .dialog h2 { font-size: 28px; }
  .request-form { grid-template-columns: 1fr; }
  .request-form .full { grid-column: auto; }
}

@media (max-width: 350px) {
  .contact-top h2 { font-size: 56px; }
  .hero h1 { font-size: 46px; }
}

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
  /* Senza alternanza i punti di forza si vedono tutti, uno sotto l'altro. */
  .heading-values > li { grid-area: auto; opacity: 1; transform: none; filter: none; }
}
