/* Benelli Miami (Riders Miami, authorized Benelli dealer). Layout follows benelli.com/us-en:
   black and white, condensed uppercase headings, full-bleed photos, black gallery, specs accordion. */
:root {
  --black: #000; --ink: #111; --grey-9: #1c1c1c; --grey-7: #4a4a4a; --grey-5: #8a8a8a;
  --grey-2: #e6e6e6; --grey-1: #f4f4f4; --white: #fff;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1280px; --pad: clamp(20px, 4vw, 48px); --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--grey-5); margin-bottom: 12px; display: block; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey-1); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--solid { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--solid:hover { background: var(--grey-9); color: var(--white); border-color: var(--grey-9); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.section:not(.section--dark) .btn:not(.btn--solid):hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--white); transition: background .25s; }
.header.is-solid, .header--solid { background: var(--black); }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { height: 50px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; border-left: 1px solid rgba(255,255,255,.35); padding-left: 14px; }
.brand__dealer { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: .08em; text-transform: uppercase; }
.brand__sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { opacity: .7; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.nav__toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 26px; height: 2px; background: currentColor; position: relative; margin: 0 auto; content: ""; }
.nav__toggle span::before { position: absolute; top: -8px; } .nav__toggle span::after { position: absolute; top: 8px; }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; transform: translateY(-120%); transition: transform .25s; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--grey-9); font-size: 20px; }
  .nav .btn { margin-top: 18px; border-bottom: 2px solid currentColor; }
  .brand img { height: 42px; }
  .brand__dealer { font-size: 18px; } .brand__sub { font-size: 10px; }
}

/* Video / photo hero */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; color: var(--white); background: var(--black); overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.75) 100%); }
.hero__content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(48px, 10vh, 110px); }
.hero__content p { font-family: var(--head); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.hero h1 { margin-bottom: 8px; }
.hero--model { height: 88vh; }
.hero__price { font-family: var(--head); font-size: 22px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 24px; }

/* Two-panel banner (benelli.com home) */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo__panel { position: relative; min-height: 70vh; color: var(--white); display: flex; align-items: flex-end; padding: clamp(28px, 4vw, 56px); text-decoration: none; overflow: hidden; background: var(--black); }
.duo__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.duo__panel:hover img { transform: scale(1.04); }
.duo__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.8) 100%); }
.duo__text { position: relative; z-index: 2; }
.duo__text .eyebrow { color: rgba(255,255,255,.8); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .duo__panel { min-height: 56vh; } }

/* Model range */
.range__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 18px; border: 1px solid var(--grey-2); background: var(--white); cursor: pointer; color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; border: 1px solid var(--grey-2); transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--black); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.card__img { aspect-ratio: 3 / 2; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 16px; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 18px 22px 22px; border-top: 1px solid var(--grey-2); display: flex; flex-direction: column; flex: 1; }
.card__type { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-5); }
.card h3 { margin: 4px 0 2px; font-size: 30px; }
.card__tag { font-family: var(--head); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-7); margin-bottom: 14px; }
.card__price { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--grey-7); }
.card__price strong { font-family: var(--head); font-size: 24px; color: var(--ink); }
.card[hidden] { display: none; }

/* Info strip */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.points + .points { margin-top: clamp(24px, 4vw, 56px); }
.points h3 { font-size: 26px; }
.points p { color: var(--grey-7); }
.section--dark .points p { color: rgba(255,255,255,.75); }
@media (max-width: 800px) { .points { grid-template-columns: 1fr; } }

/* Showroom + form */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 0 0 28px; }
.visit dt { font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.visit dd { margin: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #bdbdbd; border-radius: 0; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { border-color: #444; background: var(--grey-9); color: var(--white); }
.section--dark .field input:focus, .section--dark .field select:focus, .section--dark .field textarea:focus { outline-color: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--grey-7); }
.section--dark .consent { color: rgba(255,255,255,.7); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-weight: 600; min-height: 1.6em; }
.form__status.is-ok { color: #1a7f37; } .form__status.is-err { color: #c62828; }
.section--dark .form__status.is-ok { color: #6fdc8c; } .section--dark .form__status.is-err { color: #ff8a80; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* Model page */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--grey-2); }
.subnav__in { display: flex; align-items: center; gap: 28px; height: 56px; overflow-x: auto; white-space: nowrap; }
.subnav strong { font-family: var(--head); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; margin-right: auto; }
.subnav a { font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--grey-7); }
.subnav a:hover { color: var(--black); }
.subnav .btn { min-height: 38px; padding: 0 16px; font-size: 14px; color: var(--white); }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro__text p { color: var(--grey-7); }
.price-box { border-top: 3px solid var(--black); padding-top: 18px; margin: 28px 0; }
.price-box strong { font-family: var(--head); font-size: 44px; line-height: 1; display: block; }
.price-box small { color: var(--grey-5); font-size: 14px; display: block; margin-top: 6px; }
.colors__main { aspect-ratio: 3 / 2; background: var(--white); }
.colors__main img { width: 100%; height: 100%; object-fit: contain; }
.colors__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.colors__thumbs button { width: 92px; aspect-ratio: 3 / 2; padding: 4px; border: 1px solid var(--grey-2); background: var(--white); cursor: pointer; }
.colors__thumbs button[aria-pressed="true"] { border-color: var(--black); outline: 1px solid var(--black); }
.colors__thumbs img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; align-items: stretch; background: var(--grey-1); }
.feature + .feature { margin-top: 2px; }
.feature:nth-child(even) .feature__img { order: 2; }
.feature__img { min-height: 420px; background: var(--black); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__text { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.feature__text p { color: var(--grey-7); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature__img { order: 0; } .feature__img { min-height: 0; aspect-ratio: 4 / 3; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; background: var(--grey-9); cursor: zoom-in; aspect-ratio: 3 / 2; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery button:hover img { transform: scale(1.05); opacity: .85; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; width: 56px; height: 56px; cursor: pointer; line-height: 1; }
.lightbox__close { top: 8px; right: 8px; } .lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); } .lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

.specs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.specs__toggle { background: none; border: 0; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; cursor: pointer; color: var(--ink); }
.spec { border-top: 1px solid var(--grey-2); }
.spec:last-child { border-bottom: 1px solid var(--grey-2); }
.spec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; }
.spec summary::-webkit-details-marker { display: none; }
.spec summary::after { content: "+"; font-size: 30px; font-weight: 400; }
.spec[open] summary::after { content: "−"; }
.spec dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0 0 24px; }
.spec dl div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--grey-1); font-size: 16px; }
.spec dt { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--grey-5); }
.spec dd { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 700px) { .spec dl { grid-template-columns: 1fr; } }
.note { font-size: 14px; color: var(--grey-5); }

/* Text pages */
.page-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); background: var(--black); color: var(--white); }
.page-head p { max-width: 720px; color: rgba(255,255,255,.75); font-size: 19px; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 16px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-2); vertical-align: top; }
.table th { font-family: var(--head); letter-spacing: .1em; text-transform: uppercase; font-size: 15px; background: var(--grey-1); }

/* Footer */
.footer { background: var(--black); color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--grey-9); }
.footer h4 { color: var(--white); font-size: 17px; letter-spacing: .16em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--white); }
.footer .brand { margin-bottom: 18px; color: var(--white); }
.footer__legal { padding-top: 24px; font-size: 13px; color: var(--grey-5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__legal p { margin: 0; max-width: 820px; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
