/* ── BB Homepage ─────────────────────────────────── */

/* Nascondi titolo di pagina e breadcrumb */
.bb-home-tpl .page-header,
.bb-home-tpl .entry-header,
.bb-home-tpl .entry-title,
.bb-home-tpl h1.page-title,
.bb-home-tpl .woocommerce-breadcrumb,
.bb-home-tpl nav.woocommerce-breadcrumb {
    display: none !important;
}

/* Rimuovi padding/gutter/max-width dal contenitore Shoptimizer */
.bb-home-tpl #content.site-content {
    padding-inline: 0 !important;
    padding: 0 !important;
}
.bb-home-tpl #content.site-content > *,
.bb-home-tpl #content.site-content .col-full,
.bb-home-tpl .content-area,
.bb-home-tpl #primary,
.bb-home-tpl .site-main,
.bb-home-tpl article,
.bb-home-tpl .entry-content {
    max-width: none !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.bb-home-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* ── SECTION 1: VIDEO HERO ── */
.bb-home-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}
.bb-home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.bb-home-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    background: rgba(0,0,0,0.18);
}
.bb-home-hero__headline {
    font-family: 'Futura PT', sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 5vw, 64px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff !important;
    margin: 0;
    line-height: 1.1;
    max-width: 800px;
}

/* ── SECTION 2: BRAND MANIFESTO ── */
.bb-home-manifesto {
    padding: clamp(60px, 8vw, 120px) clamp(24px, 8vw, 160px);
    background: #fff;
}
.bb-home-manifesto__inner {
    max-width: 900px;
    margin: 0 auto;
}
.bb-home-manifesto__heading {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 22px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bb-fg, #000);
    margin: 0 0 32px;
}
.bb-home-manifesto__body {
    font-family: 'Futura PT', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.8;
    color: var(--bb-fg, #000);
    margin: 0;
}

/* ── SECTION 3: CATEGORY BOXES (2×2 desktop, 1-col mobile) ── */
.bb-home-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    background: #e8e8e8;
}
.bb-home-cat-box {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    text-decoration: none;
}
.bb-home-cat-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.bb-home-cat-box__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.bb-home-cat-box:hover .bb-home-cat-box__overlay {
    opacity: 1;
}
.bb-home-cat-box__overlay-text {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}
.bb-home-cat-mobile-cta {
    display: none;
}

/* ── INTER-SECTION: Classics label + CTA (tra section 3 e section 4) ── */
.bb-home-products-intro {
    background: #fff;
    text-align: center;
    padding: clamp(40px, 5vw, 72px) 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bb-home-products-intro__heading {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: 13px !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-fg, #000);
    margin: 0;
}
/* Il .bb-home-products__cta dentro questa zona non ha padding proprio */
.bb-home-products-intro .bb-home-products__cta {
    padding: 0;
    margin: 0;
}

/* ── SECTION 4: PRODUCT GRID ── */
.bb-home-products {
    background: #fff;
}
.bb-home-products__track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}
.bb-home-products__item {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f5f5;
}
.bb-home-products__item:hover .bb-home-cat-box__overlay {
    opacity: 1;
}
.bb-home-products__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bb-home-products__item:hover img {
    transform: scale(1.03);
}
.bb-home-products__cta {
    text-align: center;
    padding: 40px 24px 0;
    margin: 0;
}
.bb-home-products__cta a {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-fg, #000);
    text-decoration: none;
    border-bottom: 1px solid var(--bb-fg, #000);
    padding-bottom: 3px;
    transition: opacity 0.2s;
}
.bb-home-products__cta a:hover {
    opacity: 0.5;
}

/* ── SECTION 5: CLASSICS CTA ── */
.bb-home-classics-cta {
    padding: clamp(40px, 5vw, 72px) 24px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bb-home-classics-cta__label {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: 13px !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-fg, #000);
    margin: 0;
}
.bb-home-classics-cta__link {
    margin: 0;
    padding: 0;
}
.bb-home-classics-cta__link a {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bb-fg, #000);
    text-decoration: none;
    border-bottom: 1px solid var(--bb-fg, #000);
    padding-bottom: 3px;
    transition: opacity 0.2s;
}
.bb-home-classics-cta__link a:hover {
    opacity: 0.5;
}

/* ── SECTION 6: SCARPE + ACCESSORI ── */
.bb-home-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #e8e8e8;
}

@media (max-width: 767px) {
    .bb-home-duo {
        grid-template-columns: 1fr;
    }
}

/* ── MOBILE (≤767px) ── */
@media (max-width: 767px) {
    .bb-home-manifesto {
        padding: 48px 20px;
    }

    .bb-home-categories {
        grid-template-columns: 1fr;
        gap: 0;
        background: #fff;
    }
    .bb-home-cat-box {
        aspect-ratio: 4 / 5;
        width: 100%;
    }
    .bb-home-cat-mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px 24px;
        background: #fff;
    }
    .bb-home-cat-mobile-cta a {
        font-family: 'Futura PT', sans-serif;
        font-weight: 400;
        font-size: 13px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #000;
        text-decoration: none;
        border-bottom: 1px solid #000;
        padding-bottom: 3px;
    }

    /* Product grid → horizontal scroll carousel */
    .bb-home-products__track {
        grid-template-columns: unset;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1px;
        padding: 0;
    }
    .bb-home-products__track::-webkit-scrollbar {
        display: none;
    }
    .bb-home-products__item {
        flex: 0 0 75vw;
        scroll-snap-align: start;
        aspect-ratio: 3 / 4;
    }

    .bb-home-classics-cta {
        padding: 48px 20px;
    }

    .bb-home-duo {
        grid-template-columns: 1fr;
    }
}

/* ── SECTION 7: CLUB HERO ── */
.bb-home-club-hero {
    position: relative;
    width: 100%;
    background: #000;
}
/* Immagine scorre in altezza naturale — nessun ritaglio */
.bb-home-club-hero__bg {
    display: block;
    width: 100%;
    height: auto;
}
/* Overlay centrato in posizione assoluta sull'intera sezione */
.bb-home-club-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: rgba(0,0,0,0.22);
}
.bb-home-club-hero__logo {
    width: 400px;
    max-width: 60%;
    height: auto;
    filter: invert(1);
    margin-bottom: 36px;
}
.bb-home-club-hero__cta {
    font-family: 'Futura PT', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 3px;
    transition: border-color 0.2s, opacity 0.2s;
    cursor: pointer;
}
.bb-home-club-hero__cta:hover {
    border-color: #fff;
    opacity: 0.75;
}
