/**
 * Fotofolio 1 — sfondo pagine bianco (override CSS legacy MG scuro)
 */

html,
body {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

body > main,
main,
.main,
main.mg2025-main,
.mg2025-detail-layout,
.mg2025-profile-layout,
.mg2025-list-page,
.mg2025-homepage-layout,
.mg2025-page-photo-detail,
.list-with-sidebars-page,
.list-with-sidebars-page main,
.mg2025-gallery-container,
.mg2025-detail-layout .mg2025-photo-gallery,
.mg2025-profile-layout .mg2025-photo-gallery {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.bg-background,
.bg-black,
.bg-dark {
  background-color: #ffffff !important;
}

body .cms-article-show,
body .cms-article-show__content,
body .cms-article-show__body {
  background: #ffffff !important;
  color: var(--color-text, #1a1a1a) !important;
}

body .cms-article-show__hero {
  background: var(--color-background-secondary, #f5f7fa) !important;
}

:root,
body[data-active-theme="fotofolio_1"] {
  --theme-color-background: #ffffff !important;
  --bs-body-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #64748b;
  --color-text-muted: #64748b;
}

/* Testi scuri — override breadcrumb-final.css (h1/breadcrumb bianchi su sfondo nero legacy) */
body[data-active-theme="fotofolio_1"] {
  color: var(--color-text, #1a1a1a);
}

body[data-active-theme="fotofolio_1"] main,
body[data-active-theme="fotofolio_1"] .main {
  color: var(--color-text, #1a1a1a) !important;
}

body[data-active-theme="fotofolio_1"] main h1,
body[data-active-theme="fotofolio_1"] main h2,
body[data-active-theme="fotofolio_1"] main h3,
body[data-active-theme="fotofolio_1"] main h4,
body[data-active-theme="fotofolio_1"] .main h1,
body[data-active-theme="fotofolio_1"] h1 {
  color: var(--color-text, #1a1a1a) !important;
}

body[data-active-theme="fotofolio_1"] main p,
body[data-active-theme="fotofolio_1"] .container,
body[data-active-theme="fotofolio_1"] .min-h-screen {
  color: var(--color-text, #1a1a1a);
}

body[data-active-theme="fotofolio_1"] .text-gray-900 {
  color: #111827 !important;
}

body[data-active-theme="fotofolio_1"] .text-gray-600,
body[data-active-theme="fotofolio_1"] .text-gray-400 {
  color: #64748b !important;
}

body[data-active-theme="fotofolio_1"] #breadcrumb-nav a,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav a:link,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav a:visited,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-link,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-link:link,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-link:visited,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-separator,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-separator-icon,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-home-icon {
  color: var(--color-text-muted, #64748b) !important;
}

body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-current,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav a:hover,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-link:hover {
  color: var(--color-text, #1a1a1a) !important;
}

body[data-active-theme="fotofolio_1"] #breadcrumb-nav a:hover,
body[data-active-theme="fotofolio_1"] #breadcrumb-nav .breadcrumb-link:hover {
  color: var(--color-primary, #ff6900) !important;
}
