/* ═══ Top Dealers CRM Block — v3 (layout da mockup HTML) ════════════════ */

.tdcrm-wrap * {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

.tdcrm-wrap p {
  margin-bottom: 0 !important;
}

/* ── Alert override ───────────────────────────────────────────────────── */
.tdcrm-wrap .alert {
  --bs-alert-margin-bottom: 0 !important;
  --bs-alert-border-radius: 10px !important;
  margin-top: 1rem !important;
}
.tdcrm-wrap .alert-secondary {
  --bs-alert-bg: #f5f5f5 !important;
  --bs-alert-border-color: transparent !important;
}

/* ── Sezione spacer ───────────────────────────────────────────────────── */
.tdcrm-section {
  padding-bottom: 1rem;
}

/* ── Titolo sezione ───────────────────────────────────────────────────── */
.tdcrm-section-title {
  font-size: 2rem !important;
  color: #0a1628;
  margin-bottom: 0 !important;
}

/* ── Foto cover ───────────────────────────────────────────────────────── */
.tdcrm-img-cover {
  width: 100%;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
  border-radius: 20px;
}
.tdcrm-img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.tdcrm-logo {
  max-height: 150px;
  width: auto;
}

.tdcrm-dealer-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0a1628;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}

/* ── Righe indirizzo/contatti ─────────────────────────────────────────── */
.tdcrm-address-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px !important;
}
.tdcrm-address-line img {
  width: 16px;
  flex-shrink: 0;
  margin-top: -2px;
}
.tdcrm-address-line a {
  color: #000;
  text-decoration: none;
}
.tdcrm-address-line a:hover {
  color: #ce9d26;
}

/* ── Brand logos ──────────────────────────────────────────────────────── */
.tdcrm-brand-list strong {
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0a1628;
}
.tdcrm-brand-box {
  padding: .75rem 0 !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}
.tdcrm-brand-box img {
  width: 60px;
  height: auto;
  object-fit: contain;
}
.tdcrm-brand-fallback {
  font-size: .55rem !important;
  font-weight: 700;
  text-transform: uppercase;
  color: #0a1628;
  line-height: 1.2;
  text-align: center;
}
.tdcrm-brand-list .tdcrm-brand-box {
  margin-top: 0 !important;
}
.tdcrm-brand-list .tdcrm-wrap .alert-secondary {
    --bs-alert-bg: #f5f5f5 !important;
    --bs-alert-border-color: transparent !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Numeri usato ─────────────────────────────────────────────────────── */
.tdcrm-numbers {
  margin-top: 1rem !important;
}
.tdcrm-number-box {
  text-align: center;
  margin: 20px 0;
}
.tdcrm-number {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ce9d26;
}
.tdcrm-label {
  font-size: .8rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin-top: .35rem;
  line-height: 1.4;
}
.tdcrm-label span {
  font-weight: 400;
  text-transform: none;
}

/* ── Servizi ──────────────────────────────────────────────────────────── */
.tdcrm-servizi {
  margin: 20px 0;
}
.tdcrm-gold-block {
  /*background: #ce9d26 !important;*/
  color: #000000 !important;
  font-weight: 600;
  font-size: 1rem;
  filter: grayscale(0.15);
}
.tdcrm-servizi .tdcrm-gold-block {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem; 
    margin-top: 0 !important;
}
ul.tdcrm-servizi {
    display: flex;
    flex-wrap: wrap;       /* Permette agli elementi di andare a capo se lo spazio finisce */
    justify-content: center; /* Mantiene la lista centrata (visto che c'è la classe text-center) */
    padding-left: 0;       /* Rimuove il padding di default degli elementi ul */
    list-style: none;      /* Rimuove eventuali pallini della lista */
    gap: 15px;             /* Aggiunge spazio uniforme tra un elemento e l'altro */
}
ul.tdcrm-servizi li {
    margin-bottom: 0 !important; /* Sovrascrive il mb-3 di Bootstrap per evitare margini asimmetrici */
}
ul.tdcrm-servizi .tdcrm-gold-block {
    margin-bottom: 0;      /* Rimuove il margine inferiore predefinito dell'alert */
    display: inline-block;
}

/* ── Notice / errori ──────────────────────────────────────────────────── */
.tdcrm-notice {
  padding: .9rem 1.2rem;
  background: #f5f5f5;
  border-left: 4px solid #ce9d26;
  font-size: .9rem;
  border-radius: 4px;
  margin: 1rem 0;
}
.tdcrm-notice.tdcrm-error { border-left-color: #e53e3e; background: #fff5f5; }

/* ── Editor placeholder ───────────────────────────────────────────────── */
.tdcrm-editor-placeholder {
  border: 2px dashed #ce9d26;
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  background: #fdf9f0;
}
.tdcrm-editor-placeholder h3 { margin: 0 0 .5rem; font-size: 1rem; color: #0a1628; }
.tdcrm-editor-placeholder p  { margin: 0; font-size: .85rem; color: #888; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .tdcrm-number { font-size: 3rem; }
  .tdcrm-img-cover { min-height: 180px; }
}
