/*
 * Black Friday 2026 – solo home (caricato da COMMONS/loaderindex.php).
 * .bf-topline  striscia sopra la navigazione (COMMONS/bfTopline.php)
 * .bf-hero     hero Black Friday (COMMONS/bfHero.php)
 * body.bf-tema tema nero di tutta la home, dal 23/11 al 28/11 o con ?blackfriday
 * Date e stato in zanBlackFriday() (CONFIGS/functions.php).
 */

/* ===== STRISCIA ===== */
.bf-topline {
    background: #050505;
    color: #f4efe7;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(217, 184, 108, .25);
}
.bf-topline-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 34px;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    color: inherit;
}
a.bf-topline-inner:hover {
    color: inherit;
    opacity: .85;
}
.bf-tl-tag {
    color: #d9b86c;
    font-weight: 600;
}
.bf-tl-dot {
    flex: 0 0 auto;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d9b86c;
    opacity: .7;
}
.bf-topline strong {
    color: #d9b86c;
    font-weight: 600;
}
.bf-countdown {
    color: #fff;
    font-weight: 600;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}
.bf-topline-attivo {
    background: linear-gradient(100deg, #a8823a 0%, #e9cf8c 35%, #d9b86c 60%, #b8913f 100%);
    color: #0a0a0a;
    border-bottom: 0;
}
.bf-topline-attivo .bf-tl-tag,
.bf-topline-attivo strong,
.bf-topline-attivo .bf-countdown {
    color: #000;
}
.bf-topline-attivo .bf-tl-dot {
    background: #000;
    opacity: .5;
}
@media (max-width: 599px) {
    .bf-topline {
        font-size: 10.5px;
        letter-spacing: .1em;
    }
    .bf-topline-inner {
        gap: 9px;
        height: 32px;
    }
    .bf-tl-desk {
        display: none;
    }
}

/* ===== HERO BLACK FRIDAY ===== */
.bf-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: -80px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 150px 20px 64px;
    display: flex;
    align-items: center;
    background: #050505;
    color: #fff;
}
.bf-hero-glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(55% 45% at 78% 38%, rgba(217, 184, 108, .22), transparent 70%),
        radial-gradient(45% 40% at 8% 95%, rgba(217, 184, 108, .08), transparent 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, #050505 0%, #0c0b09 100%);
}
.bf-hero-stemma {
    position: absolute;
    z-index: -1;
    width: min(115vw, 780px);
    right: -22%;
    bottom: -12%;
    opacity: .045;
    filter: brightness(0) invert(1);
    pointer-events: none;
}
.bf-hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.bf-hero-testo {
    max-width: 560px;
    text-align: center;
}
.bf-hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #e6cd8f;
}
.bf-hero-title {
    margin: 0 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.1rem, 16vw, 6.6rem);
    font-weight: 600;
    line-height: .92;
    letter-spacing: -.01em;
    text-transform: uppercase;
    color: #fff;
}
.bf-hero-title span {
    display: block;
}
.bf-hero-title span + span {
    font-weight: 200;
    letter-spacing: .02em;
}
.bf-hero-sconto {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    line-height: .85;
    letter-spacing: -.04em;
    color: #d9b86c;
    white-space: nowrap;
    padding: 0 .1em; /* il riempimento sfumato si ferma al bordo: spazio per l'ultimo glifo */
}
@supports (-webkit-background-clip: text) {
    .bf-hero-sconto {
        background: linear-gradient(100deg, #8c6a2c 0%, #d9b86c 22%, #f6e7bd 38%, #d9b86c 52%, #a8823a 70%, #f0dba0 88%, #b8913f 100%);
        background-size: 220% auto;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: bfLuce 7s linear infinite;
    }
}
@keyframes bfLuce {
    from { background-position: 0% center; }
    to { background-position: -220% center; }
}
.bf-hero-sconto-mob {
    font-size: clamp(5.6rem, 32vw, 9rem);
    margin: 0 0 16px;
}
.bf-hero-sconto-desk {
    display: none;
}
.bf-hero-sconto-desk span {
    font-size: .45em;
    vertical-align: .95em;
    margin-left: .04em;
}
.bf-hero-desc {
    margin: 0 auto 22px;
    max-width: 420px;
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}
.bf-hero-codice {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding: 13px 20px;
    border-radius: 10px;
    background: rgba(217, 184, 108, .12);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}
.bf-hero-codice-label {
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.bf-hero-codice-val {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .16em;
    color: #f3e2b3;
}
.bf-hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.bf-hero-buttons a {
    white-space: nowrap;
}
/* Mobile: "Zanetti Gioielli" grande, "dal 1959" sotto */
@media (max-width: 599px) {
    .bf-hero-eyebrow {
        flex-direction: column;
        gap: 4px;
        font-size: 1.2rem;
        letter-spacing: .16em;
    }
    .bf-eb-punto {
        display: none;
    }
    .bf-eb-anno {
        font-family: 'Montserrat', sans-serif;
        font-size: .68rem;
        letter-spacing: .32em;
        color: rgba(230, 205, 143, .8);
    }
}
@media (min-width: 768px) {
    .bf-hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}
@media (min-width: 992px) {
    .bf-hero {
        padding: 170px 48px 90px;
    }
    .bf-hero-inner {
        justify-content: space-between;
    }
    .bf-hero-testo {
        text-align: left;
    }
    .bf-hero-eyebrow {
        justify-content: flex-start;
    }
    .bf-hero-desc {
        margin-left: 0;
    }
    .bf-hero-buttons {
        justify-content: flex-start;
    }
    .bf-hero-sconto-mob {
        display: none;
    }
    .bf-hero-sconto-desk {
        display: block;
        font-size: clamp(9rem, 17vw, 15.5rem);
    }
    .bf-hero-stemma {
        right: -6%;
        bottom: -18%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bf-hero-sconto {
        animation: none;
    }
}

/* ===== TEMA NERO DELLA HOME ===== */
body.bf-tema {
    --primary: #f4efe7;
    --primary-dark: #000;
    --accent: #d9b86c;
    --accent-light: #f3e2b3;
    --bg-cream: #070707;
    --bg-white: #111;
    --text-dark: #ece7df;
    --text-muted: #948f87;
    --border-light: #232323;
    background-color: #070707;
    color: #ece7df;
}
body.bf-tema ::selection {
    background: #d9b86c;
    color: #000;
}

/* Header e navigazione */
body.bf-tema .site-header {
    background: rgba(7, 7, 7, .92);
    border-bottom-color: rgba(255, 255, 255, .06);
}
body.bf-tema .site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, .6);
}
body.bf-tema .header-logo img {
    filter: brightness(0) invert(1);
}
body.bf-tema .cart-badge {
    background: #d9b86c;
    color: #000;
}
body.bf-tema .mobile-nav-overlay {
    background: rgba(0, 0, 0, .65);
}

/* Bottoni: testo nero sui fondi chiari */
body.bf-tema .btn-primary {
    color: #0a0a0a;
    font-weight: 500;
}
body.bf-tema .btn-primary:hover {
    color: #000;
    box-shadow: 0 8px 28px rgba(217, 184, 108, .3);
}
body.bf-tema .btn-outline:hover,
body.bf-tema .btn-outline-dark:hover {
    color: #0a0a0a;
}

/* Servizi, perché Zanetti, garanzie: icone oro */
body.bf-tema .service-icon,
body.bf-tema .why-icon,
body.bf-tema .brand-category-header i {
    background: rgba(217, 184, 108, .1);
}
body.bf-tema .service-icon i,
body.bf-tema .why-icon i,
body.bf-tema .trust-badge-item i,
body.bf-tema .brand-category-header i {
    color: #d9b86c;
}
body.bf-tema .service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

/* Chi siamo */
body.bf-tema .experience {
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(217, 184, 108, .12), transparent 70%),
        #0b0b0b;
    border-top: 1px solid rgba(217, 184, 108, .18);
    border-bottom: 1px solid rgba(217, 184, 108, .18);
}

/* Boutique */
body.bf-tema .boutique-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 100%);
}

/* Brand: loghi bianchi su nero */
body.bf-tema .brand-item img {
    filter: brightness(0) invert(1);
    opacity: .5;
}
body.bf-tema .brand-item:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Prodotti: le foto restano su bianco */
body.bf-tema .product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
body.bf-tema .product-img .product-badge {
    color: #000;
}

/* Footer e barra fissa mobile (WhatsApp / chiama) */
body.bf-tema .site-footer {
    background: #000;
    border-top: 1px solid rgba(217, 184, 108, .25);
}
body.bf-tema .sticky-bar {
    background: #000;
    border-top: 1px solid rgba(217, 184, 108, .3);
}
body.bf-tema .sticky-bar a:hover {
    background: #151515;
}
body.bf-tema .sticky-bar i {
    color: #d9b86c;
}
