.hnia-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;

    background: #17120f;
}

.hnia-hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1440px;

    margin: 0 auto;
    padding: 80px 5vw;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hnia-hero-title {
    width: 100%;
    max-width: 850px;
}

.hnia-hero-text {
    width: 100%;
    max-width: 500px;
}

.hnia-hero-button {
    margin-top: 34px;
}

/* Video background */

.hnia-hero .elementor-widget-html {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;
}

.hnia-hero .elementor-widget-html .elementor-widget-container {
    width: 100%;
    height: 100%;
}

.hnia-hero-video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}

/* Overlay */

.hnia-hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(12, 9, 7, 0.68) 0%,
            rgba(12, 9, 7, 0.48) 34%,
            rgba(12, 9, 7, 0.18) 60%,
            rgba(12, 9, 7, 0.08) 100%
        ),
        rgba(8, 6, 5, 0.08);
}

.hnia-hero-content {
    position: relative !important;
    z-index: 5 !important;
}































/* =========================================================
   COLLECTIONS
========================================================= */

.hnia-collections {
    position: relative;
    background: #f5f0e8;
}

.hnia-collections-header {
    max-width: 820px;
}

.hnia-collections-grid {
    display: flex;
    gap: 18px;
    width: 100%;
}


/* MAIN CARD */

.hnia-collection-main {
    position: relative;

    width: 62%;
    min-height: 720px;

    overflow: hidden;
    isolation: isolate;

    background: #b59c84;
}


/* SIDE */

.hnia-collections-side {
    width: 38%;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.hnia-collection-small {
    position: relative;

    flex: 1;
    min-height: 351px;

    overflow: hidden;
    isolation: isolate;

    background: #7c7165;
}



/* =========================================================
   COLLECTION CARD LAYERS — FIX
========================================================= */

.hnia-collection-main,
.hnia-collection-small {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Overlay */
.hnia-collection-main::after,
.hnia-collection-small::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(10, 7, 5, 0.00) 0%,
        rgba(10, 7, 5, 0.04) 38%,
        rgba(10, 7, 5, 0.24) 68%,
        rgba(10, 7, 5, 0.76) 100%
    );
}

/* Elementor wrappers sopra all'overlay */
.hnia-collection-main > .e-con-inner,
.hnia-collection-small > .e-con-inner,
.hnia-collection-main > .elementor-element,
.hnia-collection-small > .elementor-element,
.hnia-collection-content {
    position: relative !important;
    z-index: 5 !important;
}

/* Tutti i widget dentro il contenuto */
.hnia-collection-content .elementor-widget {
    position: relative;
    z-index: 6;
}



.hnia-collection-link {
    margin-top: 10px;
}



.hnia-collection-main,
.hnia-collection-small {
    transition:
        transform 0.45s cubic-bezier(.16,1,.3,1),
        box-shadow 0.45s cubic-bezier(.16,1,.3,1);
}

.hnia-collection-main:hover,
.hnia-collection-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(20, 12, 8, 0.12);
}

.hnia-collection-link {
    transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}

.hnia-collection-main:hover .hnia-collection-link,
.hnia-collection-small:hover .hnia-collection-link {
    transform: translateX(6px);
}


.hnia-collection-main,
.hnia-collection-small {
    position: relative;
}

.hnia-collection-card-link {
    position: absolute;
    inset: 0;

    z-index: 10;

    display: block;

    cursor: pointer;
}


.hnia-collection-content {
    position: relative;
    z-index: 11;

    pointer-events: none;
}


.hnia-collection-main,
.hnia-collection-small {
    cursor: pointer;
}

.hnia-collection-link {
    transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}

.hnia-collection-main:hover .hnia-collection-link,
.hnia-collection-small:hover .hnia-collection-link {
    transform: translateX(6px);
}




.hnia-collection-main,
.hnia-collection-small {
    position: relative;
}

/* Il wrapper Elementor del widget HTML deve diventare invisibile al layout */
.hnia-collection-main > .elementor-widget-html,
.hnia-collection-small > .elementor-widget-html {
    position: absolute !important;
    inset: 0 !important;

    z-index: 20 !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    pointer-events: auto !important;
}

/* Anche il contenitore interno Elementor deve occupare tutta la card */
.hnia-collection-main > .elementor-widget-html .elementor-widget-container,
.hnia-collection-small > .elementor-widget-html .elementor-widget-container {
    width: 100%;
    height: 100%;
}

/* Il link vero */
.hnia-collection-card-link {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    z-index: 1;

    cursor: pointer;
}




/* =========================================================
   FEATURED PRODUCTS — LUXURY EDITORIAL
========================================================= */

.hnia-featured-products {
    position: relative;
    background: #fbf8f2;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.hnia-featured-header {
    width: 100%;
    max-width: 820px;
}

.hnia-featured-header .elementor-heading-title {
    color: #17120f;
}

.hnia-featured-header p {
    max-width: 540px;
}


/* ---------------------------------------------------------
   WOO WRAPPER
--------------------------------------------------------- */

.hnia-products-loop {
    width: 100%;
}


/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */

.hnia-products-loop ul.products {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    column-gap: 24px !important;
    row-gap: 58px !important;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* ---------------------------------------------------------
   PRODUCT CARD
--------------------------------------------------------- */

.hnia-products-loop ul.products li.product {
    position: relative;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;

    display: flex;
    flex-direction: column;

    background: transparent;

    text-align: left !important;

    overflow: visible;
}


/* ---------------------------------------------------------
   PRODUCT LINK
--------------------------------------------------------- */

.hnia-products-loop ul.products li.product > a {
    display: block;

    width: 100%;

    color: inherit;
    text-decoration: none;
}


/* ---------------------------------------------------------
   PRODUCT IMAGE
--------------------------------------------------------- */

.hnia-products-loop ul.products li.product img {
    display: block;

    width: 100% !important;
    height: auto !important;

    aspect-ratio: 3 / 4;

    margin: 0 0 20px !important;

    object-fit: cover !important;
    object-position: center top !important;

    background: #f0ebe4;

    transform-origin: center center;

    transition:
        transform 700ms cubic-bezier(.16,1,.3,1),
        filter 500ms ease;
}


/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.hnia-products-loop
ul.products
li.product
.woocommerce-loop-product__title {

    padding: 0 !important;

    margin:
        0
        0
        9px !important;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(
        23px,
        1.7vw,
        29px
    ) !important;

    font-weight: 400 !important;

    line-height: 1 !important;

    letter-spacing: -0.02em;

    color: #17120f !important;
}


/* ---------------------------------------------------------
   PRICE
--------------------------------------------------------- */

.hnia-products-loop
ul.products
li.product
.price {

    display: block;

    margin: 0 !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 12px !important;
    font-weight: 500 !important;

    line-height: 1.4;

    letter-spacing: 0.03em;

    color: #756a62 !important;
}


/* ---------------------------------------------------------
   OLD PRICE / SALE PRICE
--------------------------------------------------------- */

.hnia-products-loop .price del {
    margin-right: 6px;

    opacity: 0.45;
}

.hnia-products-loop .price ins {
    text-decoration: none;

    color: #17120f;
}


/* ---------------------------------------------------------
   REMOVE DEFAULT ADD TO CART
--------------------------------------------------------- */

.hnia-products-loop
ul.products
li.product
.button {

    display: none !important;
}


/* ---------------------------------------------------------
   SALE BADGE
--------------------------------------------------------- */

.hnia-products-loop
.onsale {

    position: absolute !important;

    top: 14px !important;
    left: 14px !important;
    right: auto !important;

    z-index: 4;

    min-width: auto !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 8px 10px !important;

    border-radius: 0 !important;

    background: rgba(23,18,15,.92) !important;

    color: #fffdf9 !important;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    font-size: 8px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   LUXURY HOVER
--------------------------------------------------------- */

.hnia-products-loop
ul.products
li.product:hover
img {

    transform: scale(1.035);

    filter:
        contrast(1.025)
        saturate(1.025);
}


/* Small editorial line under each product */

.hnia-products-loop
ul.products
li.product::after {

    content: "";

    display: block;

    width: 0;
    height: 1px;

    margin-top: 18px;

    background: #a6754c;

    transition:
        width 500ms cubic-bezier(.16,1,.3,1);
}

.hnia-products-loop
ul.products
li.product:hover::after {

    width: 44px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .hnia-products-loop ul.products {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        column-gap: 16px !important;
        row-gap: 42px !important;
    }

    .hnia-products-loop
    ul.products
    li.product
    .woocommerce-loop-product__title {

        font-size: 22px !important;
    }
}


/* =========================================================
   MOBILE — 3 PRODUCTS PER ROW
========================================================= */

@media (max-width: 767px) {

    .hnia-products-loop ul.products {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        column-gap: 8px !important;
        row-gap: 28px !important;
    }

    .hnia-products-loop
    ul.products
    li.product
    img {

        aspect-ratio: 3 / 4;

        margin-bottom: 10px !important;
    }

    .hnia-products-loop
    ul.products
    li.product
    .woocommerce-loop-product__title {

        margin-bottom: 5px !important;

        font-size: 15px !important;

        line-height: 1.02 !important;
    }

    .hnia-products-loop
    ul.products
    li.product
    .price {

        font-size: 9px !important;
    }

    .hnia-products-loop
    ul.products
    li.product::after {

        margin-top: 10px;
    }
}