/* =====================================================================
 * stefanelli1968.it — TEMA NERO, foglio di base (25/11/2026)
 *
 * 🔑 Questo foglio NON sostituisce nulla: si carica per ULTIMO e ribalta.
 *    Spegnerlo (opzione `stf_tema_nero` a 0, oppure `?nero=0`) riporta il
 *    sito esattamente com'era: nessun file originale e' stato modificato.
 *
 * 🔑 Il grosso del lavoro lo fanno le VARIABILI, non le regole: sia Avada
 *    (`--awb-color1..8`, definite in `:root` dentro
 *    `uploads/fusion-styles/<hash>.min.css`) sia il tema figlio (`--stf-*`)
 *    fanno passare quasi tutti i colori di li'. Riscritte quelle, cambia il
 *    sito intero. Il file `generato-da-css-figlio.css` copre poi i colori
 *    scritti a mano nelle regole, uno per uno.
 *
 * 🔴 Avada passa molti colori come variabili dentro l'attributo `style=""`
 *    dell'elemento (`style="--awb-background-color:#ffffff"`). Un foglio
 *    esterno le batte solo con `!important`, e puo' colpirle solo per
 *    valore, con `[style*="..."]`: il CSS non sa leggere il valore di una
 *    proprieta', sa solo cercare una stringa nell'attributo.
 *
 * 🔴 Le fotografie dei prodotti hanno il FONDO BIANCO (misurate: 9 su 12).
 *    Il riquadro della foto resta quindi chiaro anche nel tema nero,
 *    altrimenti il catalogo si riempie di rettangoli bianchi storti.
 * ===================================================================== */

/* ------------------------------------------------------------------ *
 * 1. La palette di Avada, ribaltata.
 *    La scala va da 1 (la superficie piu' chiara) a 8 (il testo piu'
 *    scuro). Nel tema nero i due capi si scambiano: 1 diventa la
 *    superficie scura delle schede, 8 il testo chiaro.
 *    Le compagne -h -s -l -a servono ad Avada per calcolare da se' gli
 *    stati di passaggio del mouse: vanno riscritte anche quelle.
 * ------------------------------------------------------------------ */
:root {
  /* 🔑 UN SOLO COLORE DI FONDO per tutto il sito (#0f1114), chiesto
   * dall'utente il 25/11/2026: «sfondo uguale al colore dell'intero sito, che
   * non e' #000000». Prima erano due neri diversi — la pagina #08090b e le
   * sezioni che erano bianche #121419 — e la differenza si vedeva dietro i
   * titoli. Ora il buio e' uno solo e il contrasto lo danno le schede
   * BIANCHE dei prodotti, non un secondo grigio. */
  --awb-color1: rgba(23,26,31,1);    /* schede che restano scure, moduli */
  --awb-color1-h: 218; --awb-color1-s: 15%; --awb-color1-l: 11%; --awb-color1-a: 100%;
  --awb-color2: rgba(31,35,42,1);    /* superficie rialzata: tendine, quantita' */
  --awb-color2-h: 218; --awb-color2-s: 15%; --awb-color2-l: 14%; --awb-color2-a: 100%;
  --awb-color3: rgba(15,17,20,1);    /* IL colore del sito */
  --awb-color3-h: 216; --awb-color3-s: 14%; --awb-color3-l: 7%; --awb-color3-a: 100%;
  --awb-color4: rgba(95,208,138,1);  /* verde: alzato, su nero quello di prima spariva */
  --awb-color4-h: 143; --awb-color4-s: 55%; --awb-color4-l: 59%; --awb-color4-a: 100%;
  --awb-color5: rgba(74,168,236,1);  /* azzurro di sistema */
  --awb-color5-h: 205; --awb-color5-s: 81%; --awb-color5-l: 61%; --awb-color5-a: 100%;
  --awb-color6: rgba(160,165,176,1); /* testo tenue */
  --awb-color6-h: 221; --awb-color6-s: 9%; --awb-color6-l: 66%; --awb-color6-a: 100%;
  --awb-color7: rgba(23,26,31,1);
  --awb-color7-h: 218; --awb-color7-s: 15%; --awb-color7-l: 11%; --awb-color7-a: 100%;
  --awb-color8: rgba(233,234,238,1); /* testo, titoli, collegamenti */
  --awb-color8-h: 228; --awb-color8-s: 13%; --awb-color8-l: 92%; --awb-color8-a: 100%;

  /* 🔴 `color3` fa tre mestieri insieme: fondo della pagina, separatori e
   * bordo dei moduli. Nel tema chiaro poteva, perche' un grigio appena piu'
   * scuro del bianco serve a tutti e tre. Nel nero no: come fondo deve
   * essere il piu' scuro, come filo deve essere piu' CHIARO della
   * superficie, o sparisce. Quindi i due fili si dichiarano a parte. */
  --sep_color: #2c313a;
  --form_border_color: #363c47;

  /* La palette del tema figlio. `--stf-nero` e i suoi non si toccano: sono
   * gia' scuri e tengono in piedi le fasce nere che il sito aveva gia'. */
  --stf-grigio: #171a1f;
  --stf-bordo: #2c313a;
  --stf-testo: #e9eaee;
  --stf-testo-tenue: #a0a5b0;
  --stf-arancio: #f0ab1e;      /* l'arancio cupo dei fuochi, alzato per il nero */
  --stf-ombra: 0 10px 30px rgba(0,0,0,.55);

  /* Comodi per le regole qui sotto. */
  --nero-fondo: #0f1114;            /* IL colore del sito: pagina E sezioni */
  --nero-superficie: #171a1f;       /* le schede che restano scure */
  --nero-superficie-alta: #1f232a;
  --nero-filo: #2c313a;
  --nero-testo: #e9eaee;
  --nero-testo-tenue: #a0a5b0;
  --nero-foto: #ffffff;             /* il riquadro bianco sotto le foto prodotto */
}

/* ------------------------------------------------------------------ *
 * 2. Il fondo della pagina e i contenitori che lo dichiarano a mano.
 * ------------------------------------------------------------------ */
html,
body,
body.fusion-body,
#wrapper,
#main,
.fusion-page-title-bar,
.avada-page-titlebar-wrapper {
  background-color: var(--nero-fondo) !important;
}
body, #main, .post-content, .fusion-text { color: var(--nero-testo); }

/* ------------------------------------------------------------------ *
 * 3. I colori che Avada scrive dentro `style=""` sul singolo elemento.
 *    Si colpiscono per valore: sono quelli censiti sulle pagine vere il
 *    25/11/2026. Un valore nuovo introdotto domani NON verra' preso: se
 *    compare una striscia bianca dove non te l'aspetti, e' questo.
 * ------------------------------------------------------------------ */
[style*="--awb-background-color:#ffffff"] { --awb-background-color: var(--nero-fondo) !important; }
[style*="--awb-backgroundcolor:#ffffff"]  { --awb-backgroundcolor:  var(--nero-fondo) !important; }
[style*="--awb-background-color:#fff;"]   { --awb-background-color: var(--nero-fondo) !important; }
[style*="--awb-background-color:#f5f6f8"] { --awb-background-color: var(--nero-fondo) !important; }
[style*="--awb-background-color:#f1f2f5"] { --awb-background-color: var(--nero-fondo) !important; }
[style*="--awb-form-bg-color:#ffffff"]    { --awb-form-bg-color:    var(--nero-superficie) !important; }
[style*="--awb-mobile-trigger-background-color:#f1f2f5"] { --awb-mobile-trigger-background-color: var(--nero-superficie-alta) !important; }
[style*="--awb-border-color:#e6e8ec"]     { --awb-border-color:     var(--nero-filo) !important; }
[style*="--awb-form-border-color:#e4e6ec"]{ --awb-form-border-color:#343842 !important; }
[style*="--awb-divider-color:#e2e4e9"]    { --awb-divider-color:    var(--nero-filo) !important; }
[style*="--awb-sep-color:#e6e8ec"]        { --awb-sep-color:        var(--nero-filo) !important; }

/* 🔑 Il testo scuro del marchio, #1b1c20, passato inline. Qui la distinzione
 * che conta: si schiarisce dove sta su una superficie diventata nera — i
 * titoli di sezione, la voce di menu attiva, il menu del telefono — e si
 * LASCIA dov'e' il testo di un bottone, perche' li' sotto c'e' il giallo o
 * il rosso del marchio, che non cambiano. Le due cose si distinguono dal
 * nome della proprieta': `--button_*` sono i bottoni, le `--awb-*` no. */
[style*="--awb-text-color:#1b1c20"]       { --awb-text-color:  var(--nero-testo) !important; }
[style*="--awb-title-color:#1b1c20"]      { --awb-title-color: var(--nero-testo) !important; }
[style*="--awb-active-color:#1b1c20"]     { --awb-active-color: var(--nero-testo) !important; }
[style*="--awb-mobile-color:#1b1c20"]     { --awb-mobile-color: var(--nero-testo) !important; }
[style*="--awb-mobile-trigger-color:#1b1c20"] { --awb-mobile-trigger-color: var(--nero-testo) !important; }
[style*="--awb-form-text-color:#1b1c20"]  { --awb-form-text-color: var(--nero-testo) !important; }
[style*="--awb-iconcolor:#1b1c20"]        { --awb-iconcolor:   var(--nero-testo) !important; }

/* ⚠️ Il rosso del marchio come TESTO su fondo nero arriva a 2,9:1: sotto il
 * minimo anche per un titolo grande (3:1). Nei titoli si usa la versione
 * accesa, 4,3:1. Il marchio non cambia — i bottoni e i fondi restano
 * #e22c22, cambia solo il rosso quando fa da inchiostro sul nero. */
[style*="--awb-text-color:#e22c22"]  { --awb-text-color:  #ff5147 !important; }
[style*="--awb-title-color:#e22c22"] { --awb-title-color: #ff5147 !important; }
[style*="--awb-iconcolor:#e22c22"]   { --awb-iconcolor:   #ff5147 !important; }
[style*="--awb-mobile-active-color:#e22c22"] { --awb-mobile-active-color: #ff5147 !important; }

/* I grigi di mezzo passati inline: sul fondo del sito stanno sotto 4,5:1.
 * Censiti su nove pagine il 25/11/2026 misurando il contrasto vero, non a
 * occhio: #44464d faceva 2,8 e #63666f 3,88. */
[style*="--awb-textcolor:#44464d"]   { --awb-textcolor:  #c3c7d0 !important; }
[style*="--awb-text-color:#63666f"]  { --awb-text-color: #a0a5b0 !important; }
[style*="--awb-body-color:#63666f"]  { --awb-body-color: #a0a5b0 !important; }
[style*="--awb-color-6:rgba(67,69,73,1)"] { --awb-color-6: rgba(160,165,176,1) !important; }

/* Avada ricopia la palette sul singolo elemento (`--awb-color-1`, col
 * trattino prima del numero) per i menu e qualche modulo: quelle copie
 * restano col valore chiaro e vanno ribaltate come l'originale. */
[style*="--awb-color-1:rgba(255,255,255,1)"] { --awb-color-1: rgba(23,26,31,1) !important; }
[style*="--awb-color-2:rgba(249,249,251,1)"] { --awb-color-2: rgba(31,35,42,1) !important; }
[style*="--awb-color-3:rgba(242,243,245,1)"] { --awb-color-3: rgba(15,17,20,1) !important; }
[style*="--awb-color-7:rgba(33,35,38,1)"]    { --awb-color-7: rgba(23,26,31,1) !important; }
[style*="--awb-color-8:rgba(20,22,23,1)"]    { --awb-color-8: rgba(233,234,238,1) !important; }

/* ------------------------------------------------------------------ *
 * 6. Moduli, tabelle e WooCommerce: le parti che Avada non copre con la
 *    palette perche' hanno un colore proprio.
 * ------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input[type="password"], select, textarea,
.select2-container--default .select2-selection--single {
  background-color: var(--nero-superficie) !important;
  border-color: #343842 !important;
  color: var(--nero-testo) !important;
}
::placeholder { color: #767b86 !important; }

table th, table td { border-color: var(--nero-filo) !important; }
thead th { background-color: var(--nero-superficie-alta) !important; }

.woocommerce-info, .woocommerce-message, .woocommerce-error,
.wc-block-components-notice-banner {
  background-color: var(--nero-superficie) !important;
  color: var(--nero-testo) !important;
}

/* Il velo che Avada mette sopra le fotografie degli hero resta com'e':
 * era gia' scuro, e serve a far leggere il testo bianco. */


/* ==== generato da genera-tema-nero.py leggendo stefanelli.css ==== */
/* ---- da stefanelli.css: 123 dichiarazioni ---- */
.stf .stf-titolo-sezione h2::after{background:var(--stf-rosso) !important}
.stf-fuochi .stf-titolo-sezione h2::after{background:var(--stf-arancio) !important}
.stf .stf-vedi-tutti{color:#ff5147 !important}
.stf .stf-btn{background:var(--stf-rosso) !important}
.stf .stf-btn:hover{background:#c62218 !important}
.stf .stf-btn--giallo{background:var(--stf-giallo) !important}
.stf .stf-btn--giallo:hover{background:#e6e600 !important}
.stf .stf-btn--chiaro{background:#181818 !important}
.stf .stf-btn--vuoto{border-color:#343434 !important}
.stf .stf-btn--vuoto:hover{background:#181818 !important}
.stf .stf-fascia{background:var(--stf-nero) !important}
.stf .stf-hero{background:var(--stf-nero) !important}
.stf .stf-hero::after{background:linear-gradient(100deg, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .74) 42%, rgba(10, 10, 12, .20) 100%) !important}
.stf .stf-hero .stf-occhiello{color:#ff5147 !important}
.stf .stf-sezione--grigia{background:var(--stf-grigio) !important}
.stf .stf-sezione--nera{background:var(--stf-nero) !important}
.stf .stf-cat{background:#181818 !important}
.stf .stf-cat-foto{background:#1d1d22 center/cover !important}
.stf .stf-cat:hover .stf-freccia{background:var(--stf-rosso) !important}
.stf-fuochi .stf-cat:hover .stf-freccia{background:var(--stf-arancio) !important}
.stf .stf-cat--scura{background:var(--stf-nero-2) !important}
.stf .stf-cat--scura .stf-freccia{border-color:rgba(52,52,52,0.5) !important}
.stf .stf-prod{background:#181818 !important}
.stf .stf-prod-foto{background:#17181d center/cover !important}
.stf .stf-carrello{background:var(--stf-nero) !important}
.stf .stf-tessera{background:#1d1d22 center/cover !important}
.stf .stf-tessera::after{background:linear-gradient(180deg, rgba(10, 10, 12, 0) 35%, rgba(10, 10, 12, .88) 100%) !important}
.stf .stf-porta{background:#111 center/cover !important}
.stf .stf-porta::after{background:linear-gradient(180deg, rgba(8, 8, 10, .62), rgba(8, 8, 10, .86)) !important}
.stf .stf-porta--armeria .stf-occhiello{color:#ff5147 !important}
.stf .stf-marchio{background:#181818 !important;color:#d6d7db !important}
.stf .stf-storia{background:var(--stf-nero) center/cover !important}
.stf .stf-storia::after{background:linear-gradient(90deg, rgba(10, 10, 12, .93) 0%, rgba(10, 10, 12, .55) 70%, rgba(10, 10, 12, .25) 100%) !important}
.stf .stf-avviso{background:#1c1716 !important;color:#d29189 !important}
.stf-fuochi .stf-avviso{background:#1d1b16 !important;color:#e1be79 !important}
.stf .stf-tappa-foto{background:#1d1d22 center/cover !important}
.stf .stf-tappa-anno{color:#ff5147 !important}
.stf .stf-tappa-anno::before{background:#181818 !important}
.stf .stf-ritratto{background:#16161a center/cover !important}
.stf .stf-ritratto::after{background:linear-gradient(90deg, rgba(10, 10, 12, .78) 0%, rgba(10, 10, 12, .12) 55%) !important}
.stf .stf-citazione{background:var(--stf-nero) center/cover !important}
.stf .stf-citazione blockquote::before{color:#ff5147 !important}
.stf .stf-valore{background:#181818 !important}
.stf .stf-valore-ico svg{stroke:#ff5147 !important}
.fusion-content-boxes .content-box-heading,
.fusion-content-boxes .heading-link .content-box-heading{color:#dddee3 !important}
.fusion-content-boxes .heading-link:hover .content-box-heading{color:#ff5147 !important}
.fusion-content-boxes .icon i{color:var(--awb-iconcolor, #ff5147) !important}
.stf-testata h2{color:#dddee3 !important}
.stf-testata h2::after{background:var(--stf-rosso) !important}
.stf-reparto--fuochi .stf-testata h2::after{background:var(--stf-arancio) !important}
.stf-vai{color:#ff5147 !important}
.stf-cat-nome a{border:1px solid #30353f !important;color:#dddee3 !important}
.stf-cat-nome a:hover{border-color:#ff5147 !important;color:#ff5147 !important}
.stf-cat-nome i{color:#ff5147 !important}
@media (min-width: 901px){.stf-menu .awb-menu__main-a:hover{background:var(--stf-grigio) !important}}
@media (min-width: 901px){.stf-menu .current-menu-item > .awb-menu__main-a,
    .stf-menu .current_page_item > .awb-menu__main-a,
    .stf-menu .current-menu-ancestor > .awb-menu__main-a{background:var(--stf-grigio) !important}}
@media (min-width: 901px){.stf-menu .stf-cta > .awb-menu__main-a{background:var(--stf-rosso) !important}}
@media (min-width: 901px){.stf-menu .stf-cta > .awb-menu__main-a:hover{background:#c62218 !important}}
@media (min-width: 901px){.stf-menu .stf-cta.current-menu-item > .awb-menu__main-a{background:var(--stf-rosso) !important}}
.stf-cs-rosso{color:#ff5147 !important}
.stf-cs-fotohero .fusion-column-wrapper::before{background:linear-gradient(90deg, #0d0d0f 0%, rgba(13, 13, 15, .55) 26%, rgba(13, 13, 15, 0) 62%) !important}
.stf-cs-fotogen .fusion-column-wrapper::before{background:linear-gradient(180deg, rgba(10, 10, 12, 0) 45%, rgba(10, 10, 12, .60) 100%) !important}
.stf-cs-firma p::after{background:var(--stf-rosso) !important}
.stf-cs-tappa::before{background:#181818 !important}
.stf-cs-anno{color:#ff5147 !important}
.stf-cs-quote p::before{color:#ff5147 !important}
.stf-cs-valori .content-box-wrapper{background:#181818 !important}
.stf-cs-porta .fusion-column-wrapper::before{background:linear-gradient(180deg, rgba(10, 10, 12, .45) 0%, rgba(10, 10, 12, .80) 42%, rgba(10, 10, 12, .95) 100%) !important}
.stf-ar-titolo .title-heading-left::after{background:var(--stf-rosso) !important}
.stf-ar-tutto{color:#ff5147 !important}
.stf-ar-tutto:hover{color:#ed756d !important}
.stf-ar-cat .fusion-column-inner-bg::after{background:linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, .12) 30%, rgba(10, 10, 12, .82) 62%, rgba(10, 10, 12, .96) 100%) !important}
.stf-ar-freccia{border:1px solid rgba(52,52,52,0.6) !important}
.stf-ar-cat:hover .stf-ar-freccia{background:var(--stf-rosso) !important}
.stf-ar-marchi span{background:#181818 !important}
.stf-ar-prod{background:#181818 !important}
.stf-ar-prod-foto{background:#16181c center/cover !important}
.stf-ar-cart{background:var(--stf-rosso) !important}
.stf-ar-cart:hover{background:#c62218 !important}
.stf-ar-tessera--dx .fusion-column-wrapper::before{background:linear-gradient(90deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, .55) 26%, rgba(10, 10, 12, .92) 52%) !important}
.stf-ar-tessera--sx .fusion-column-wrapper::before{background:linear-gradient(90deg, rgba(10, 10, 12, .92) 48%, rgba(10, 10, 12, .55) 74%, rgba(10, 10, 12, 0) 100%) !important}
@media (max-width: 900px){.stf-ar-tessera .fusion-column-wrapper::before{background:linear-gradient(180deg, rgba(10, 10, 12, .55) 0%, rgba(10, 10, 12, .88) 100%) !important}}
.stf-home-porta .fusion-column-wrapper::before{background:linear-gradient(90deg, rgba(10, 10, 12, .72) 0%, rgba(10, 10, 12, .40) 48%, rgba(10, 10, 12, .10) 100%) !important}
.stf-home-marchi span{color:#9da1a9 !important}
.stf-fu-cat{background:#181818 !important}
.stf-fu-cat:hover{border-color:#323842 !important}
.stf-fu-cat-foto{background:#16161a center/cover !important}
.stf-fu-freccia{border:1px solid #2a2e37 !important;color:#e9eaee !important}
.stf-fu-cat:hover .stf-fu-freccia{background:var(--stf-nero) !important}
.stf-fu-sol .fusion-column-inner-bg::after{background:linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, .22) 40%, rgba(10, 10, 12, .72) 70%, rgba(10, 10, 12, .95) 100%) !important}
.stf-fu-prodotti .stf-ar-cart{background:var(--stf-nero) !important}
.stf-fu-prodotti .stf-ar-cart:hover{background:var(--stf-rosso) !important}
.stf-co-ico{background:#1d1717 !important}
a.stf-co-val:hover{color:#ff5147 !important}
.stf-co-mappa{background:#171a1d !important}
.stf-co-carte .content-box-wrapper{background:#181818 !important}
.stf-co-form input[type="text"], .stf-co-form input[type="email"],
.stf-co-form input[type="tel"], .stf-co-form select, .stf-co-form textarea{background:#181818 !important}
@media (max-width: 900px){.fusion-tb-header .stf-barra{--awb-background-color:#000 !important;background-color:#000 !important}}
@media (max-width: 900px){.fusion-tb-header .stf-barra .stf-cta > .awb-menu__main-a,
  .fusion-tb-header .stf-barra .stf-cta > .awb-menu__main-a:hover,
  .fusion-tb-header .stf-barra .stf-cta.current-menu-item > .awb-menu__main-a{background:var(--stf-rosso) !important}}
.fusion-woo-product-slider .swiper-slide{background:#181818 !important}
.fusion-woo-product-slider .fusion-image-wrapper{background:#181818 !important}
.fusion-woo-product-slider .fusion-carousel-title a:hover{color:#ff5147 !important}
.fusion-woo-product-slider .fusion-carousel-meta a:hover{color:#ff5147 !important}
.fusion-woo-product-slider .fusion-carousel-item-wrapper{background:#181818 !important}
.fusion-woo-product-slider .awb-swiper-button{background:#181818 !important}
.fusion-woo-product-slider .awb-swiper-button:hover{background:var(--stf-nero) !important}
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button{background:var(--stf-giallo-ui, #f7c600) !important}
.single-product .single_add_to_cart_button:hover{background:var(--stf-giallo-scuro, #e0b300) !important}
.page .stf-legale-nota{border-top:1px solid #33353d !important}
.page mark{background:#201f19 !important;color:#ffd35c !important}
.stf-tabella-legale th, .stf-tabella-legale td{border:1px solid #33353d !important}
.stf-tabella-legale thead th{background:#16181c !important}
.stf-tabella-legale tr:nth-child(even) td{background:#16161c !important}
@media (max-width: 680px){.stf-tabella-legale tr{border:1px solid #33353d !important}}
@media (max-width: 680px){.stf-tabella-legale td{border-bottom:1px solid #30343c !important}}
