/* ═════════════════════════════════════════════
   MirkoRiparazioni — pagine interne: marche, modelli, guasti, note legali
   ═════════════════════════════════════════════ */

/* ── Pagine interne: hero + griglia marche ── */
.sub-hero { padding: 150px 0 40px; }
.crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 22px;
}
.crumb a { transition: color 0.2s ease; }
.crumb a:hover { color: var(--orange); }
.crumb span[aria-current] { color: var(--text); }

.brands { padding: 20px 0 110px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.brand-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(255, 107, 0, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.brand-card:hover { transform: translateY(-5px); border-color: rgba(255, 107, 0, 0.55); }
.brand-card:hover::after { opacity: 1; }
.brand-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.brand-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--orange);
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-name {
  font-size: 1.45rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1;
}
.brand-sub { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }
.brand-arrow {
  position: absolute; top: 24px; right: 24px;
  color: var(--orange); font-size: 1.2rem; font-weight: 800;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.brand-card:hover .brand-arrow { opacity: 1; transform: translateX(0); }

.brand-fallback {
  margin-top: 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 30px 32px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 107, 0, 0.4);
  background: var(--surface);
}
.brand-fallback h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.brand-fallback p { color: var(--text-muted); margin-top: 8px; max-width: 460px; }

.back-link {
  display: inline-block; margin-top: 36px;
  font-weight: 700; color: var(--text-muted);
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--orange); }

.legal-note { margin-top: 14px; }
.legal-note p {
  color: var(--text-muted); font-size: 0.75rem; line-height: 1.5;
  opacity: 0.75; max-width: 780px;
}

/* ── Selezione modello ── */
.model-search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px;
  max-width: 420px;
  padding: 12px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color 0.25s ease;
}
.model-search:focus-within { border-color: var(--orange); color: var(--orange); }
.model-search input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: inherit; font-size: 1rem; font-weight: 500;
  min-width: 0;
}
.model-search input::placeholder { color: var(--text-muted); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.model-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(255, 107, 0, 0.06);
}
.model-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.model-card[hidden] { display: none; }
.model-name { font-weight: 700; font-size: 1rem; }
.model-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.model-card:hover .model-cta { opacity: 1; transform: translateX(0); }
.model-empty { color: var(--text-muted); padding: 30px 0; font-weight: 600; }

@media (hover: none) {
  .model-cta { opacity: 1; transform: none; }
}

/* ── Riga garanzie ── */
.trust-row {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.trust-row li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-muted);
}
.trust-row svg { color: var(--orange); flex-shrink: 0; }

/* ── Guasti ── */
.fault-grid { display: flex; flex-direction: column; gap: 12px; }
.fault-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.fault-card:hover { border-color: rgba(255, 107, 0, 0.45); transform: translateX(3px); }
.fault-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.28);
  color: var(--orange);
}
.fault-icon svg { width: 24px; height: 24px; }
.fault-body h3 { font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.fault-body p { color: var(--text-muted); font-size: 0.88rem; margin-top: 3px; }
.fault-side {
  display: flex; align-items: center; gap: 18px;
  flex-shrink: 0;
}
.fault-price {
  font-size: 1.25rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fault-price.is-free { color: var(--orange); font-size: 1.05rem; }
.fault-price.is-promo { color: var(--orange); display: inline-flex; align-items: center; gap: 8px; }
.promo-tag {
  font-size: 0.62rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--orange); color: #0a0a0a;
  padding: 3px 8px; border-radius: 99px;
}
.fault-price.is-quote {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 700;
}

@media (max-width: 700px) {
  .fault-card {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .fault-side {
    grid-column: 1 / -1;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
  .fault-body p { font-size: 0.84rem; }
}

/* ── Pagine legali ── */
.legal { padding: 20px 0 110px; }
.legal-body { max-width: 780px; }
.legal-body h2 {
  font-size: 1.15rem; margin: 36px 0 12px;
  text-transform: none; letter-spacing: 0;
}
.legal-body p, .legal-body li { color: var(--text-muted); font-size: 0.95rem; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul { margin: 0 0 12px 20px; display: flex; flex-direction: column; gap: 9px; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--orange); text-decoration: underline; }
.legal-date { font-size: 0.82rem; opacity: 0.7; margin-top: 26px; }
.footer a { color: inherit; text-decoration: underline; }
.footer a:hover { color: var(--orange); }

@media (max-width: 640px) {
  .gdpr-inner { padding: 18px; }
  .gdpr-actions { width: 100%; }
  .gdpr-actions .btn { flex: 1; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sub-hero { padding: 120px 0 30px; }
  .brands { padding: 16px 0 80px; }
  .brand-fallback { padding: 26px 24px; }
}
