/* ─── Sections ───────────────────────────────────────────────────── */
.imr-section {
  margin: 0 0 3.5rem;
}

.imr-section__head {
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #e2e2e2;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.imr-section__head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #0a0a0a;
}

.imr-section__head p {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.88rem;
}

/* ─── Kicker / eyebrow ───────────────────────────────────────────── */
.imr-kicker,
.imr-card__eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: #e8200c;
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.imr-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 3rem 2.5rem;
  background: #0a0a0a; /* fallback se immagine non carica */
  background-size: cover;
  background-position: center right;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.imr-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #e8200c;
  z-index: 1;
}

.imr-hero__copy,
.imr-hero__panel {
  position: relative;
  z-index: 1;
}

.imr-hero h1 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.0;
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.imr-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.imr-hero__logo {
  width: 100%;
  max-width: 180px;
  margin-bottom: 0.75rem;
  align-self: center;
  filter: brightness(0) invert(1);
}

.imr-hero__panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.imr-hero__panel strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.imr-hero__panel p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.imr-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.imr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.imr-actions .button {
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.65rem 1.4rem;
}

.imr-hero__promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.imr-mini-promo {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e8200c;
}

.imr-mini-promo strong,
.imr-mini-promo span:last-child {
  display: block;
}

.imr-mini-promo strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.3rem;
}

.imr-mini-promo span:last-child {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Trust list ─────────────────────────────────────────────────── */
.imr-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.imr-trust-list li {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Category grid ──────────────────────────────────────────────── */
.imr-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.imr-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid #e2e2e2;
  background: #fff;
  text-decoration: none;
  color: #0f0f0f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  border-left: 3px solid #e2e2e2;
}

.imr-card:hover {
  border-left-color: #e8200c;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  color: #0f0f0f;
}

.imr-card strong {
  display: block;
  margin: 0 0 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.imr-card span:last-child {
  font-size: 0.82rem;
  color: #6b6b6b;
}

/* ─── Banner grid ────────────────────────────────────────────────── */
.imr-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.imr-banner-grid--buell {
  grid-template-columns: 1.1fr 1.4fr;
  align-items: start;
}

.imr-banner {
  display: block;
  padding: 1.75rem;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.imr-banner h3 {
  margin: 0 0 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.imr-banner--dark {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
  border-top: 3px solid #e8200c;
}

.imr-banner--dark h3 {
  color: #fff;
}

.imr-banner--dark .imr-card__eyebrow {
  color: #e8200c;
}

.imr-banner--dark p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.imr-banner--accent {
  background: #0f0f0f;
  color: #fff;
  border: none;
  border-top: 3px solid #e8200c;
}

.imr-banner--accent h3 {
  color: #fff;
}

.imr-banner--accent .imr-card__eyebrow {
  color: #e8200c;
}

/* ─── Vehicle Finder ─────────────────────────────────────────────── */
.imr-finder {
  padding: 1.75rem;
  background: #f5f5f5;
  border: 1px solid #e2e2e2;
  border-top: 3px solid #0a0a0a;
}

.imr-finder__form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.imr-finder__form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.imr-finder__form input,
.imr-finder__form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  padding: 0 0.75rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.imr-finder__form input:focus,
.imr-finder__form select:focus {
  outline: none;
  border-color: #e8200c;
}

.imr-finder__form button[type="submit"] {
  min-height: 46px;
  background: #e8200c;
  border-color: #e8200c;
  color: #fff;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.imr-finder__form button[type="submit"]:hover {
  background: #a5170a;
}

.imr-finder__results {
  min-height: 72px;
  margin-top: 1.5rem;
}

.imr-result-note {
  margin-top: 1rem;
  color: #6b6b6b;
  font-size: 0.88rem;
}

/* ─── Results grid ───────────────────────────────────────────────── */
.imr-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.imr-results-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.imr-result-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border-left: 3px solid #e2e2e2;
  transition: border-left-color 0.15s;
}

.imr-result-card:hover {
  border-left-color: #e8200c;
}

.imr-result-card h3 {
  margin: 0 0 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.imr-result-card h3 a {
  color: #0f0f0f;
  text-decoration: none;
}

.imr-result-card h3 a:hover {
  color: #e8200c;
}

.imr-result-card strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  color: #e8200c;
}

/* ─── Garage summary ─────────────────────────────────────────────── */
.imr-garage-summary,
.imr-garage-match {
  padding: 1rem 1.25rem;
  border-left: 3px solid #ccc;
}

.imr-garage-summary {
  background: #f5f5f5;
  border: 1px solid #e2e2e2;
  border-left: 3px solid #0a0a0a;
}

.imr-garage-summary p,
.imr-garage-match p {
  margin-bottom: 0;
}

.imr-garage-summary span {
  font-weight: 700;
}

.imr-garage-match {
  margin-bottom: 1rem;
  border: 1px solid #e2e2e2;
  background: #fff;
}

.imr-garage-match.is-match {
  background: #f0fff0;
  border-color: #7cba3a;
  border-left-color: #5a9f1f;
}

.imr-garage-match.is-miss {
  background: #fff5f5;
  border-color: #f5a0a0;
  border-left-color: #e8200c;
}

/* ─── Compatibility box ──────────────────────────────────────────── */
.imr-compatibility-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e2e2;
  border-left: 3px solid #0a0a0a;
  background: #f5f5f5;
}

.imr-compatibility-box p:last-child {
  margin-bottom: 0;
}

/* ─── Buell section ──────────────────────────────────────────────── */
.imr-buell .imr-banner--dark {
  background: #0a0a0a;
  padding: 2rem;
}

.imr-buell .imr-banner--dark h3 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .imr-hero {
    grid-template-columns: 1fr;
  }

  .imr-hero__panel {
    display: none;
  }

  .imr-category-grid,
  .imr-banner-grid,
  .imr-banner-grid--buell,
  .imr-results-grid,
  .imr-finder__form,
  .imr-hero__promos {
    grid-template-columns: 1fr;
  }

  .imr-results-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imr-section__head {
    flex-direction: column;
    gap: 0.4rem;
  }
}
