/*
====================================================================
ETRUSCAFORM v2.9.6 — Dark Mode Contrast, Button Hover, Sans-Serif Headers
====================================================================
Data: 2026-02-11

Modifiche:
- Fix completo contrasti dark mode
- Testo bottoni arancioni hover → marrone (#39110e)
- Tutti gli header in font sans-serif (Outfit)
====================================================================
*/


/* ══════════════════════════════════════════════
   1. HEADERS — SOLO SANS-SERIF (Outfit)
   ══════════════════════════════════════════════ */

/* Hero principale */
.ef-hero__title,
.ef-hero__title em {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
}

.ef-hero__title em {
  font-style: italic;
  font-weight: 500 !important;
}

/* CTA title */
.ef-cta__title,
.ef-cta__title em {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
}

.ef-cta__title em {
  font-style: italic;
  font-weight: 500 !important;
}

/* Page hero titles */
.ef-about-hero__title,
.ef-contact-hero h1,
.ef-services-hero h1,
.ef-services-hero-v2 h1,
.ef-page-title,
.ef-page-header h1,
.top-header h1,
.top-header .header-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

/* WooCommerce / Shop page titles */
.woocommerce-shop .woocommerce-products-header__title,
.post-type-archive-product .woocommerce-products-header__title,
.tax-product_cat .woocommerce-products-header__title,
.woocommerce-shop .page-title,
.post-type-archive-product .page-title,
.tax-product_cat .page-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

/* E-learning hero */
.ef-el__hero-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
}

/* Section H2, H3 */
.ef-section__header h2,
.ef-about h2,
.ef-services-main-v2 h2,
.ef-service-card-v2 h3,
.ef-guidelines-header h2,
.ef-team-header h2,
.ef-guideline-tile h3 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

/* About stats number */
.ef-about-stats__number,
.ef-about__stat-number {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Single post CTA */
.ef-single-cta__content h3 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Wishlist heading */
.ef-wishlist-section h3 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Contact page title, CTA titles */
.ef-contact-cta h2,
.ef-contact-form-header h2,
.ef-contact-main h2 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
}


/* ══════════════════════════════════════════════
   2. BOTTONI ARANCIONI — Hover testo marrone
   ══════════════════════════════════════════════ */

/* Primary button (arancione): hover → testo marrone */
.ef-btn--primary:hover,
.ef-btn--primary:active,
.ef-btn--primary:focus {
  color: #39110e !important;
}

/* Header CTA button */
.ef-header__cta:hover,
.ef-header__cta:active {
  color: #39110e !important;
}

/* WooCommerce orange buttons */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover {
  color: #39110e !important;
}

/* WPBakery orange buttons */
.vc_general.vc_btn3:hover,
.vc_btn3-container a.vc_general:hover,
.vc_grid-item .vc_btn3:hover {
  color: #39110e !important;
}

/* Secondary button (arancione pieno nelle cards): hover → testo marrone */
.ef-btn--secondary:hover,
.ef-btn--secondary:active {
  color: #39110e !important;
}

/* E-learning card cart button on hover (becomes orange bg) */
.ef-el__card-cart:hover {
  color: #39110e !important;
}

/* Form submit button (brown bg buttons — keep white text) */
.ef-form-submit:hover {
  color: var(--color-cream, #faf6f1) !important;
}


/* ══════════════════════════════════════════════
   3. DARK MODE — FIX COMPLETO CONTRASTI
   ══════════════════════════════════════════════

   Principi:
   - Background base: #0e0e0e
   - Cards/surfaces: #1a1a1a
   - Bordi: #2c2c2c
   - Testo primario: #f0f0f0  (WCAG AA su #0e0e0e)
   - Testo secondario: #a8a8a8 (WCAG AA su #0e0e0e)
   - Accent: #e89848 (più luminoso per contrasto)
   ══════════════════════════════════════════════ */

[data-theme="dark"] {
  --color-secondary: #e89848 !important;
}


/* --- 3.1 Backgrounds globali --- */

[data-theme="dark"] body {
  background-color: #0e0e0e !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-section,
[data-theme="dark"] .ef-section--cream,
[data-theme="dark"] .ef-section--corsi,
[data-theme="dark"] .ef-about {
  background-color: #0e0e0e !important;
}

[data-theme="dark"] .ef-services {
  background-color: #111111 !important;
}


/* --- 3.2 Hero sections --- */

[data-theme="dark"] .ef-hero {
  background: linear-gradient(135deg, #1a1008 0%, #12100c 50%, #0e0e0e 100%) !important;
}

[data-theme="dark"] .ef-hero__title,
[data-theme="dark"] .ef-hero__title em {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-hero__title em {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-hero__subtitle {
  color: rgba(240, 240, 240, 0.7) !important;
}

[data-theme="dark"] .ef-hero__badge {
  color: var(--color-secondary) !important;
  border-color: rgba(232, 152, 72, 0.5) !important;
}

/* Page heroes */
[data-theme="dark"] .ef-contact-hero,
[data-theme="dark"] .ef-about-hero,
[data-theme="dark"] .ef-services-hero,
[data-theme="dark"] .ef-services-hero-v2 {
  background: #111111 !important;
}

[data-theme="dark"] .ef-contact-hero h1,
[data-theme="dark"] .ef-about-hero__title,
[data-theme="dark"] .ef-services-hero h1,
[data-theme="dark"] .ef-services-hero-v2 h1 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-contact-hero p,
[data-theme="dark"] .ef-about-hero__subtitle,
[data-theme="dark"] .ef-services-hero p {
  color: rgba(240, 240, 240, 0.65) !important;
}

/* E-learning hero */
[data-theme="dark"] .ef-el__hero {
  background: linear-gradient(135deg, #1a1008 0%, #141210 40%, #0e0e0e 100%) !important;
}


/* --- 3.3 CTA Section --- */

[data-theme="dark"] .ef-cta {
  background: linear-gradient(135deg, #1e1208 0%, #161008 50%, #0e0e0e 100%) !important;
}

[data-theme="dark"] .ef-cta__title {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-cta__title em {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-cta__text {
  color: rgba(240, 240, 240, 0.7) !important;
}


/* --- 3.4 Typography globale --- */

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .lead,
[data-theme="dark"] li,
[data-theme="dark"] td,
[data-theme="dark"] th {
  color: #c4c4c4 !important;
}

[data-theme="dark"] .lead {
  color: #d4d4d4 !important;
}

/* Section labels (arancione) */
[data-theme="dark"] .section-label,
[data-theme="dark"] .section-label--light,
[data-theme="dark"] .ef-section-tag,
[data-theme="dark"] .ef-about-hero__tag,
[data-theme="dark"] .ef-el__hero-tag {
  color: var(--color-secondary) !important;
}

/* Section header paragraphs */
[data-theme="dark"] .ef-section__header p,
[data-theme="dark"] .ef-about p {
  color: #b8b8b8 !important;
}

[data-theme="dark"] .ef-section__header h2,
[data-theme="dark"] .ef-about h2 {
  color: #f0f0f0 !important;
}


/* --- 3.5 Cards --- */

[data-theme="dark"] .ef-corso-card-v2,
[data-theme="dark"] .ef-course-card,
[data-theme="dark"] .ef-post-card,
[data-theme="dark"] .ef-service-card {
  background: #1a1a1a !important;
  border: 1px solid #2c2c2c !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .ef-corso-card-v2:hover,
[data-theme="dark"] .ef-course-card:hover,
[data-theme="dark"] .ef-post-card:hover,
[data-theme="dark"] .ef-service-card:hover {
  border-color: var(--color-secondary) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .ef-corso-card-v2__title a,
[data-theme="dark"] .ef-course-card__title a,
[data-theme="dark"] .ef-post-card__title a,
[data-theme="dark"] .ef-service-card__title {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-corso-card-v2__excerpt,
[data-theme="dark"] .ef-course-card__excerpt,
[data-theme="dark"] .ef-post-card__excerpt,
[data-theme="dark"] .ef-service-card__desc,
[data-theme="dark"] .ef-service-card__number {
  color: #a8a8a8 !important;
}

[data-theme="dark"] .ef-corso-card-v2__link,
[data-theme="dark"] .ef-service-card__link {
  border-top-color: #2c2c2c !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-corso-card-v2__date,
[data-theme="dark"] .ef-post-card__meta {
  color: #909090 !important;
}

/* E-learning cards */
[data-theme="dark"] .ef-el__card {
  background: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-el__card-title {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-el__card-meta {
  color: #a8a8a8 !important;
}

[data-theme="dark"] .ef-el__card-cart {
  border-color: #2c2c2c !important;
  color: #d4d4d4 !important;
}

[data-theme="dark"] .ef-el__card-cart:hover {
  background: var(--color-secondary) !important;
  color: #39110e !important;
}


/* --- 3.6 About section --- */

[data-theme="dark"] .ef-about__image {
  background: linear-gradient(145deg, #1e1e1e, #111111) !important;
}

[data-theme="dark"] .ef-about__stats {
  background: #1a1a1a !important;
  border: 1px solid #2c2c2c !important;
}

[data-theme="dark"] .ef-about__stat-number {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-about__stat-label {
  color: #a8a8a8 !important;
}

/* Features */
[data-theme="dark"] .ef-feature {
  background: rgba(26, 26, 26, 0.5) !important;
}

[data-theme="dark"] .ef-feature__icon {
  background: rgba(232, 152, 72, 0.12) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-feature__title {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-feature__desc {
  color: #a8a8a8 !important;
}


/* --- 3.7 Buttons dark mode --- */

/* Primary (arancione) → testo scuro su hover */
[data-theme="dark"] .ef-btn--primary {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
  border-color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-btn--primary:hover {
  background: #f5b060 !important;
  color: #39110e !important;
}

/* Secondary (outline) → bordo e testo chiari, visibili */
[data-theme="dark"] .ef-btn--secondary {
  background: transparent !important;
  border: 2px solid rgba(240, 240, 240, 0.5) !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-btn--secondary:hover {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #39110e !important;
}

/* Outline */
[data-theme="dark"] .ef-btn--outline {
  border-color: rgba(240, 240, 240, 0.4) !important;
  color: #f0f0f0 !important;
  background: transparent !important;
}

[data-theme="dark"] .ef-btn--outline:hover {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #39110e !important;
}

/* Header CTA */
[data-theme="dark"] .ef-header__cta {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
}

[data-theme="dark"] .ef-header__cta:hover {
  background: #f5b060 !important;
  color: #39110e !important;
}

/* Form submit button — visibilità alta in dark mode */
[data-theme="dark"] .ef-form-submit,
[data-theme="dark"] button.ef-form-submit {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
  border: none !important;
}

[data-theme="dark"] .ef-form-submit:hover,
[data-theme="dark"] button.ef-form-submit:hover {
  background: #f5b060 !important;
  color: #39110e !important;
}

/* Contact page submit with ef-btn--primary class */
[data-theme="dark"] .ef-form-submit.ef-btn--primary {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
}


/* --- 3.8 Header dark mode --- */

[data-theme="dark"] .ef-header {
  background: rgba(14, 14, 14, 0.96) !important;
  backdrop-filter: blur(12px) !important;
}

[data-theme="dark"] .ef-header--scrolled {
  background: rgba(14, 14, 14, 0.99) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .ef-header__nav a,
[data-theme="dark"] .ef-nav-menu > li > a {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-nav-menu > li > a:hover {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-header__cart-toggle,
[data-theme="dark"] .ef-header__account {
  color: #f0f0f0 !important;
}


/* --- 3.9 Footer dark mode --- */

[data-theme="dark"] .ef-footer {
  background: #111111 !important;
}

[data-theme="dark"] .ef-footer__bottom {
  background: #0a0a0a !important;
  border-top: 1px solid #2c2c2c !important;
}

[data-theme="dark"] .ef-footer h4,
[data-theme="dark"] .ef-footer__column h4 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-footer p,
[data-theme="dark"] .ef-footer a,
[data-theme="dark"] .ef-footer__column ul li a {
  color: #a8a8a8 !important;
}

[data-theme="dark"] .ef-footer a:hover,
[data-theme="dark"] .ef-footer__column ul li a:hover {
  color: var(--color-secondary) !important;
}

/* Legacy footer (#content-footer-section) */
[data-theme="dark"] #content-footer-section {
  background: #111111 !important;
}

[data-theme="dark"] #content-footer-section,
[data-theme="dark"] #content-footer-section p,
[data-theme="dark"] #content-footer-section a {
  color: #a8a8a8 !important;
}

[data-theme="dark"] #content-footer-section .widget-title h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] #content-footer-section a:hover {
  color: var(--color-secondary) !important;
}


/* --- 3.10 Contact page dark mode --- */

[data-theme="dark"] .ef-contact-card {
  background: #1a1a1a !important;
  border: 1px solid #2c2c2c !important;
}

[data-theme="dark"] .ef-contact-card__icon {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-contact-card h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-contact-card a,
[data-theme="dark"] .ef-contact-card span {
  color: #b0b0b0 !important;
}

[data-theme="dark"] .ef-contact-card a:hover {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-contact-card__note {
  color: #808080 !important;
}

/* Contact form wrapper */
[data-theme="dark"] .ef-contact-form-wrapper {
  background: #1a1a1a !important;
  border: 1px solid #2c2c2c !important;
}

[data-theme="dark"] .ef-contact-form-header h2 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-contact-form-header p {
  color: #a8a8a8 !important;
}

[data-theme="dark"] .ef-contact-form label,
[data-theme="dark"] .ef-form-group label {
  color: var(--color-secondary) !important;
}

/* Form inputs */
[data-theme="dark"] .ef-contact-form input,
[data-theme="dark"] .ef-contact-form textarea,
[data-theme="dark"] .ef-contact-form select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #141414 !important;
  border: 1px solid #333333 !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(240, 240, 240, 0.3) !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: var(--color-secondary) !important;
  box-shadow: 0 0 0 3px rgba(232, 152, 72, 0.15) !important;
}

/* Privacy checkbox label */
[data-theme="dark"] .ef-form-checkbox label {
  color: #b0b0b0 !important;
}

[data-theme="dark"] .ef-form-checkbox a {
  color: var(--color-secondary) !important;
}

/* Contact CTA section */
[data-theme="dark"] .ef-contact-cta {
  background: #111111 !important;
}

[data-theme="dark"] .ef-contact-cta h2 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-contact-cta p {
  color: #b0b0b0 !important;
}

/* Contact main section */
[data-theme="dark"] .ef-contact-main h2,
[data-theme="dark"] .ef-contact-main h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-contact-main p {
  color: #b0b0b0 !important;
}


/* --- 3.11 Chi Siamo page dark mode --- */

/* About stats grid */
[data-theme="dark"] .ef-about-stats {
  background: #0e0e0e !important;
}

[data-theme="dark"] .ef-about-stats__item {
  background: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-about-stats__number {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-about-stats__label {
  color: #a8a8a8 !important;
}

/* Certifications */
[data-theme="dark"] .ef-cert-card,
[data-theme="dark"] .ef-cert-badge {
  background: rgba(232, 152, 72, 0.08) !important;
  border: 1px solid rgba(232, 152, 72, 0.2) !important;
  color: var(--color-secondary) !important;
}

/* Guidelines section */
[data-theme="dark"] .ef-guideline-tile {
  background: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-guideline-tile h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-guideline-detail {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-guideline-detail__content p {
  color: rgba(240, 240, 240, 0.85) !important;
}

[data-theme="dark"] .ef-guideline-detail__content h4 {
  color: var(--color-secondary) !important;
}

/* Team section */
[data-theme="dark"] .ef-team-card {
  background: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-team-card h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-team-card p {
  color: #a8a8a8 !important;
}


/* --- 3.12 E-learning page dark mode --- */

[data-theme="dark"] .ef-el__filters,
[data-theme="dark"] .ef-el__products {
  background: #0e0e0e !important;
}

[data-theme="dark"] .ef-el__cat-btn {
  background: #1a1a1a !important;
  border-color: #333333 !important;
  color: #d4d4d4 !important;
}

[data-theme="dark"] .ef-el__cat-btn:hover {
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-el__cat-btn.is-active {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #0e0e0e !important;
}

[data-theme="dark"] .ef-el__cat-count {
  background: rgba(232, 152, 72, 0.15) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-el__cat-btn.is-active .ef-el__cat-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #0e0e0e !important;
}

[data-theme="dark"] .ef-el__search-input {
  background: #1a1a1a !important;
  border-color: #333333 !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-el__search-input::placeholder {
  color: rgba(240, 240, 240, 0.3) !important;
}

[data-theme="dark"] .ef-el__search-icon {
  color: #909090 !important;
}

[data-theme="dark"] .ef-el__search-clear {
  color: #909090 !important;
}

[data-theme="dark"] .ef-el__price {
  background: #1a1a1a !important;
  border-color: #333333 !important;
}

[data-theme="dark"] .ef-el__price-label {
  color: #d4d4d4 !important;
}

[data-theme="dark"] .ef-el__price-range b {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-el__price-range span {
  color: #808080 !important;
}

[data-theme="dark"] .ef-el__price-track {
  background: #2c2c2c !important;
}

[data-theme="dark"] .ef-el__price-reset {
  color: #909090 !important;
  border-color: #333333 !important;
}

[data-theme="dark"] .ef-el__price-reset:hover {
  color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-el__bar {
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-el__bar-count {
  color: #b0b0b0 !important;
}

[data-theme="dark"] .ef-el__bar-count strong {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-el__bar-sort select {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-el__pag .page-numbers {
  background: #1a1a1a !important;
  border-color: #333333 !important;
  color: #d4d4d4 !important;
}

[data-theme="dark"] .ef-el__pag .page-numbers:hover {
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-el__pag .page-numbers.current {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #0e0e0e !important;
}


/* --- 3.13 Services page dark mode --- */

[data-theme="dark"] .ef-service-card-v2 {
  background: #1a1a1a !important;
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-service-card-v2 h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-service-card-v2 p {
  color: #a8a8a8 !important;
}

[data-theme="dark"] .ef-service-link-v2 {
  color: var(--color-secondary) !important;
}


/* --- 3.14 Filter buttons (corsi in partenza) --- */

[data-theme="dark"] .ef-filter-btn {
  border-color: #444444 !important;
  color: #d4d4d4 !important;
  background: transparent !important;
}

[data-theme="dark"] .ef-filter-btn:hover {
  border-color: var(--color-secondary) !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-filter-btn.is-active {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #0e0e0e !important;
}


/* --- 3.15 WPBakery content in dark mode --- */

[data-theme="dark"] .entry-content p,
[data-theme="dark"] .page-content p,
[data-theme="dark"] .site-main p,
[data-theme="dark"] .wpb_text_column p {
  color: #c4c4c4 !important;
}

[data-theme="dark"] .entry-content h1,
[data-theme="dark"] .entry-content h2,
[data-theme="dark"] .entry-content h3,
[data-theme="dark"] .entry-content h4,
[data-theme="dark"] .wpb_text_column h2,
[data-theme="dark"] .wpb_text_column h3,
[data-theme="dark"] .vc_custom_heading {
  color: #f0f0f0 !important;
}


/* --- 3.16 Misc dark mode --- */

/* Page header backgrounds */
[data-theme="dark"] .ef-page-header,
[data-theme="dark"] .top-header {
  background: #111111 !important;
}

[data-theme="dark"] .ef-page-title,
[data-theme="dark"] .top-header h1,
[data-theme="dark"] .top-header .header-title {
  color: #f0f0f0 !important;
}

/* Dark mode toggle */
[data-theme="dark"] .ef-dark-mode-toggle {
  background: #1e1e1e !important;
  border: 1px solid #444 !important;
  color: var(--color-secondary) !important;
}

[data-theme="dark"] .ef-dark-mode-toggle:hover {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
  border-color: var(--color-secondary) !important;
}

/* Back to top */
[data-theme="dark"] .ef-back-to-top,
[data-theme="dark"] .back-to-top-btn {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
}

[data-theme="dark"] .ef-back-to-top:hover,
[data-theme="dark"] .back-to-top-btn:hover {
  background: #f5b060 !important;
}

/* Mobile nav */
[data-theme="dark"] .ef-mobile-nav {
  background: #0e0e0e !important;
}

[data-theme="dark"] .ef-mobile-nav__menu > li > a {
  color: #f0f0f0 !important;
}

/* Cart sidebar */
[data-theme="dark"] .ef-cart-sidebar {
  background: #141414 !important;
}

[data-theme="dark"] .ef-cart-sidebar__header {
  background: #1a1a1a !important;
  border-bottom-color: #2c2c2c !important;
}

[data-theme="dark"] .ef-cart-sidebar__header h3 {
  color: #f0f0f0 !important;
}

/* Wishlist */
[data-theme="dark"] .ef-wishlist-section h3 {
  color: #f0f0f0 !important;
}

[data-theme="dark"] .ef-wishlist-empty {
  background: #1a1a1a !important;
}

[data-theme="dark"] .ef-wishlist-empty p {
  color: #a8a8a8 !important;
}

[data-theme="dark"] .ef-wishlist-btn {
  background: rgba(26, 26, 26, 0.95) !important;
}

/* Tables */
[data-theme="dark"] table {
  border-color: #2c2c2c !important;
}

[data-theme="dark"] .entry-content table tr:nth-child(even),
[data-theme="dark"] .modal-body table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .entry-content table thead,
[data-theme="dark"] .modal-body table thead {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .entry-content table tbody tr:hover,
[data-theme="dark"] .modal-body table tbody tr:hover {
  background: rgba(232, 152, 72, 0.06) !important;
}

/* Scrollbar dark mode */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #141414 !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #444444 !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary) !important;
}

/* Links global */
[data-theme="dark"] a {
  color: var(--color-secondary) !important;
}

[data-theme="dark"] a:hover {
  color: #f5b060 !important;
}

/* Fix: don't override button text color with link color */
[data-theme="dark"] .ef-btn a,
[data-theme="dark"] a.ef-btn,
[data-theme="dark"] a.ef-btn--primary,
[data-theme="dark"] a.ef-btn--secondary,
[data-theme="dark"] a.ef-btn--outline {
  color: inherit !important;
}

/* WooCommerce buttons in dark mode */
[data-theme="dark"] .woocommerce a.button,
[data-theme="dark"] .woocommerce button.button {
  background: var(--color-secondary) !important;
  color: #0e0e0e !important;
}

[data-theme="dark"] .woocommerce a.button:hover,
[data-theme="dark"] .woocommerce button.button:hover {
  background: #f5b060 !important;
  color: #39110e !important;
}

/* WPBakery buttons in dark mode */
[data-theme="dark"] .vc_general.vc_btn3 {
  background-color: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #0e0e0e !important;
}

[data-theme="dark"] .vc_general.vc_btn3:hover {
  background-color: #f5b060 !important;
  border-color: #f5b060 !important;
  color: #39110e !important;
}

/* No courses message */
[data-theme="dark"] .ef-no-courses {
  color: #a8a8a8 !important;
}


/*
====================================================================
FINE v2.9.6
====================================================================
*/
