/**
 * Contrasto testo sito pubblico (tema dark Zelio).
 *
 * In dark mode la scala neutral è invertita: .text-white e .text-900
 * diventano quasi neri e spariscono sullo sfondo scuro.
 */

[data-bs-theme="dark"] body {
  color: #ffffff;
}

/* Utility “chiare” che in dark diventano scure / poco leggibili */
[data-bs-theme="dark"] .text-white,
[data-bs-theme="dark"] .text-100,
[data-bs-theme="dark"] .text-200,
[data-bs-theme="dark"] .text-300,
[data-bs-theme="dark"] .text-400,
[data-bs-theme="dark"] .text-500,
[data-bs-theme="dark"] .text-600,
[data-bs-theme="dark"] .text-700,
[data-bs-theme="dark"] .text-800,
[data-bs-theme="dark"] .text-900 {
  color: #ffffff !important;
}

/* Bootstrap muted / secondary / body */
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-body-secondary,
[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] .text-black,
[data-bs-theme="dark"] .text-black-50 {
  color: #ffffff !important;
}

/* Titoli e link senza utility colore */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #ffffff;
}

[data-bs-theme="dark"] a:not(.btn):not(.text-primary):not(.nav-link):not([class*="text-linear"]) {
  color: #ffffff;
}

/* Navbar e off-canvas */
[data-bs-theme="dark"] .navbar-dark .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar-dark .navbar-nav .dropdown .dropdown-toggle:after {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .offCanvas__side-info .contact-list p,
[data-bs-theme="dark"] .offCanvas__side-info .contact-list h4 {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .section-footer .navigation a {
  color: #ffffff !important;
}

/* Form */
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .form-check-label,
[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .col-form-label {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] .form-select::placeholder,
[data-bs-theme="dark"] .form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}

/* Bottoni primary: testo bianco su viola */
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus,
[data-bs-theme="dark"] .btn-primary:active {
  color: #ffffff !important;
}

/* Accordion FAQ / collapse trigger */
[data-bs-theme="dark"] .accordion-button,
[data-bs-theme="dark"] [data-bs-toggle="collapse"].text-900,
[data-bs-theme="dark"] a[data-bs-toggle="collapse"] {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .shop-pagination__meta {
  color: #ffffff !important;
}

/* Card shop e contenuti secondari */
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-body,
[data-bs-theme="dark"] .bg-secondary-1 {
  color: #ffffff;
}

/* Primary più chiaro sul dark (il viola brand #6e4ef2 ha contrasto basso) */
[data-bs-theme="dark"] .text-primary,
[data-bs-theme="dark"] a.text-primary,
[data-bs-theme="dark"] .text-primary-1 {
  color: #b7a3ff !important;
}


