﻿/* ——— Parco: titolo + strip marchi ——— */
.dc-parco-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dc-parco-head__main {
  width: 100%;
  align-self: stretch;
  min-width: 0;
}
.dc-parco-head .dc-section__head {
  margin-bottom: 0;
}
.dc-parco-head .dc-section__head.dc-parco-head__title-row {
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem 0.85rem;
}
.dc-parco-salone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: nowrap;
  box-sizing: border-box;
  padding: 0.2rem 0.55rem 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 40, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: rgba(220, 228, 238, 0.95);
  white-space: nowrap;
}
.dc-parco-salone-badge__n {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--dc-gold);
}
.dc-parco-salone-badge__l {
  font-weight: 600;
  text-transform: lowercase;
}
.dc-parco-head__intro {
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: left;
  max-width: 40rem;
}
.dc-parco-head__intro:empty {
  display: none;
}

.dc-brands {
  position: relative;
  min-width: 0;
  padding: 0.65rem 0.5rem 0.75rem;
  border-radius: var(--dc-radius-lg);
  background: linear-gradient(165deg, rgba(21, 27, 38, 0.92), rgba(10, 13, 18, 0.98));
  border: 1px solid rgba(201, 162, 40, 0.22);
  box-shadow: 0 18px 48px -28px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* width: 100% qui rompeva la colonna CTA (stessa specificità, regola dopo il clamp in @media) */
.dc-brands:not(.dc-brands--cta-aside) {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}
.dc-brands.dc-brands--cta-aside {
  margin-inline: 0;
  width: 100%;
  min-width: 0;
}
@media (max-width: 959px) {
  .dc-brands.dc-brands--cta-aside {
    padding: 0.55rem 0.75rem 0.7rem;
    margin-top: 0.15rem;
  }
  .dc-brands--cta-aside .dc-brands__label {
    text-align: left;
    margin-bottom: 0.4rem;
  }
  .dc-brands--cta-aside .dc-brands__track {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    gap: 0.4rem 0.45rem;
    padding: 0.1rem 0.15rem 0.3rem;
  }
  .dc-brands--cta-aside .dc-brands__btn {
    padding: 0.38rem 0.45rem 0.42rem;
    font-size: 0.74rem;
  }
}
.dc-brands::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 40, 0.12), transparent 55%);
  opacity: 0.85;
}
.dc-brands__label {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--dc-gold);
}
.dc-brands__scroller {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: none;
}
@supports selector(::-webkit-scrollbar) {
  .dc-brands__scroller::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
.dc-brands__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.15rem 0.35rem 0.35rem;
  width: 100%;
  max-width: 100%;
  min-height: 5.5rem;
}
.dc-brands__item {
  flex: 0 0 auto;
}
.dc-brands__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 4.75rem;
  padding: 0.4rem 0.35rem 0.45rem;
  margin: 0;
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  background: rgba(16, 21, 29, 0.85);
  color: var(--dc-muted);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.dc-brands__btn:hover {
  border-color: rgba(201, 162, 40, 0.45);
  box-shadow: 0 8px 22px -12px rgba(201, 162, 40, 0.35);
  transform: translateY(-2px);
}
.dc-brands__btn:focus-visible {
  outline: 2px solid var(--dc-gold);
  outline-offset: 2px;
}
.dc-brands__btn.is-active {
  border-color: rgba(201, 162, 40, 0.65);
  background: rgba(201, 162, 40, 0.1);
  box-shadow: 0 0 0 1px rgba(201, 162, 40, 0.25) inset, 0 10px 28px -14px rgba(201, 162, 40, 0.45);
}
.dc-brands__logo-wrap {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
}
.dc-brands__logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.88);
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.dc-brands__btn:hover .dc-brands__logo,
.dc-brands__btn.is-active .dc-brands__logo {
  filter: brightness(0) invert(1) sepia(1) saturate(6) hue-rotate(5deg) opacity(1);
}
.dc-brands__logo.is-broken {
  display: none;
}
.dc-brands__fallback {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a0d12;
  background: linear-gradient(145deg, var(--dc-gold), #a88a1f);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dc-brands__logo-wrap.has-fallback .dc-brands__fallback {
  display: flex;
}
.dc-brands__cap {
  display: block;
  font-size: 0.58rem;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dc-muted);
  font-weight: 600;
}
.dc-brands__btn.is-active .dc-brands__cap {
  color: var(--dc-gold);
}

@media (prefers-reduced-motion: reduce) {
  .dc-brands__btn,
  .dc-brands__logo {
    transition: none;
  }
  .dc-brands__btn:hover {
    transform: none;
  }
}

/* ——— Demo home: mobile / touch / narrow viewports ——— */
.dc-section__head .dc-btn {
  flex-shrink: 0;
}
.dc-logo {
  flex-shrink: 0;
  min-width: 0;
}
.dc-brands__scroller {
  min-width: 0;
}
@media (max-width: 899px) {
  .dc-parco-head {
    gap: 0.85rem 1rem;
    margin-bottom: 1rem;
  }
  .dc-brands {
    padding: 0.5rem 0.4rem 0.55rem;
  }
  .dc-brands__track {
    min-height: 4.25rem;
    gap: 0.35rem;
    padding: 0.06rem 0.2rem 0.28rem;
  }
  .dc-brands__btn {
    width: 4.35rem;
    min-height: 4.35rem;
    padding: 0.3rem 0.26rem 0.38rem;
  }
  .dc-brands__logo-wrap {
    width: 2.65rem;
    height: 2.65rem;
  }
  .dc-brands__logo,
  .dc-brands__fallback {
    width: 2.1rem;
    height: 2.1rem;
  }
}
@media (max-width: 560px) {
  .dc-brands {
    padding: 0.42rem 0.28rem 0.48rem;
  }
  .dc-brands__label {
    margin-bottom: 0.32rem;
    font-size: 0.54rem;
    letter-spacing: 0.14em;
  }
  .dc-brands__track {
    min-height: 3.35rem;
    gap: 0.22rem;
    padding: 0.04rem 0.1rem 0.18rem;
  }
  .dc-brands__btn {
    width: 3.35rem;
    min-height: 3.35rem;
    padding: 0.18rem 0.12rem 0.22rem;
    gap: 0.18rem;
  }
  .dc-brands__logo-wrap {
    width: 1.85rem;
    height: 1.85rem;
  }
  .dc-brands__logo,
  .dc-brands__fallback {
    width: 1.42rem;
    height: 1.42rem;
  }
  .dc-brands__fallback {
    font-size: 0.5rem;
    border-radius: 7px;
  }
  .dc-brands__cap {
    font-size: 0.48rem;
    line-height: 1.1;
    max-width: 3.2rem;
  }
}
@media (max-width: 768px) {
  .dc-filters input,
  .dc-filters select {
    min-height: 2.75rem;
  }
}
@media (max-width: 1023px) {
  .dc-btn {
    min-height: 2.75rem;
  }
}
@media (max-width: 479px) {
  .dc-filters__search {
    flex-direction: row;
    align-items: center;
  }
  .dc-filters__search-btns {
    width: auto;
    justify-content: flex-end;
  }
  .dc-filters__search .dc-btn {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    margin-left: 0 !important;
  }
  .dc-cta-dealer__actions .dc-btn {
    width: 100%;
    justify-content: center;
  }
  .dc-btn {
    white-space: normal;
    text-align: center;
  }
  .dc-hero__slide {
    padding-top: 2.75rem;
    padding-bottom: 5.5rem;
  }
}

/* ——— Floating WhatsApp ——— */
.dc-wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #2fe066 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dc-wa-float:hover {
  color: #fff;
  text-decoration: none;
  transform: scale(1.06);
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 39, 0.35);
}
.dc-wa-float:focus-visible {
  color: #fff;
  text-decoration: none;
  outline: 2px solid var(--dc-gold);
  outline-offset: 3px;
}
.dc-wa-float__icon {
  display: block;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .dc-wa-float {
    transition: none;
  }
  .dc-wa-float:hover {
    transform: none;
  }
}
/* Font di sistema finché non c’è consenso «Preferenze» */
html.dc-fonts-pending {
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Cookie banner: assets/css/cookie-consent.css */
.dc-legal-links {
  font-size: 0.72rem;
  color: #64748b;
}
.dc-legal-links a,
.dc-legal-links__manage {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dc-legal-links__manage {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.dc-legal-doc__inner {
  max-width: min(46rem, 100%);
  margin: 0 auto;
}
.dc-legal-doc__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--dc-muted);
  margin-bottom: 1.25rem;
}
.dc-legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 1.35rem 0 0.45rem;
}
.dc-legal-doc p,
.dc-legal-doc ul {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--dc-text);
  margin: 0 0 0.65rem;
}
.dc-legal-doc ul {
  padding-left: 1.15rem;
}
.dc-legal-doc__inline-btn {
  border: 0;
  background: none;
  color: var(--dc-gold);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.dc-legal-doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.dc-legal-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
}
.dc-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}
.dc-legal-table th,
.dc-legal-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--dc-line);
  text-align: left;
  vertical-align: top;
}
.dc-legal-table th {
  background: var(--dc-surface);
  font-weight: 600;
}

.dc-sede-map--consent-pending:not(.leaflet-container) {
  display: grid;
  place-items: center;
  min-height: 14rem;
  background: var(--dc-surface);
  color: var(--dc-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}
.dc-sede-map--consent-pending:not(.leaflet-container)::before {
  content: attr(data-dc-map-placeholder);
  max-width: 22rem;
  line-height: 1.45;
}

