/* ==========================================================================
   Homepage URBS — card allineate a page-home-custom.php (hometest)
   ========================================================================== */

.urbs-home {
    font-family: 'Afacad', sans-serif;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: hidden;
    color: #000;
    background-color: #f2f2f2;
}

.urbs-home a {
    text-decoration: none !important;
    color: inherit;
    outline: none;
}

/* Visibilità responsive */
.urbs-home__block--desktop {
    display: none;
}

.urbs-home__block--desktop-tablet {
    display: block;
}

.urbs-home__block--mobile {
    display: none;
}

.urbs-home__block--not-desktop {
    display: none;
}

@media (min-width: 1025px) {
    .urbs-home__block--desktop {
        display: block;
    }

    .urbs-home__block--not-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .urbs-home__block--desktop-tablet {
        display: none !important;
    }

    .urbs-home__block--mobile {
        display: block;
    }

    .urbs-home__block--not-desktop {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .urbs-home__block--mobile {
        display: none !important;
    }

    .urbs-home__block--not-desktop {
        display: block;
    }
}

/* Hero video */
.urbs-home__hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.urbs-home__hero-link {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.urbs-home__hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.urbs-home__hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.urbs-home__hero-video.is-playing {
    opacity: 1;
}

@media (min-width: 768px) {
    .urbs-home__block--desktop-tablet.urbs-home__hero {
        min-height: 916px;
    }
}

@media (max-width: 767px) {
    .urbs-home__block--mobile.urbs-home__hero {
        aspect-ratio: 9 / 16;
        min-height: 0;
    }
}

/* Marquee */
.urbs-home__marquee {
    overflow: hidden;
    white-space: nowrap;
    background: #fff;
    padding: 15px 0 !important;
    width: 100%;
    line-height: normal;
}

.urbs-home__marquee-link {
    display: block;
    width: 100%;
}

.urbs-home__marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: urbs-home-marquee 6s linear infinite;
}

.urbs-home__marquee-text {
    font-family: 'Afacad', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

@keyframes urbs-home-marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Griglie — stesso sistema di page-home-custom (.urbs-section) */
.urbs-home .urbs-section {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    justify-content: flex-start !important;
    background-color: #f2f2f2 !important;
    line-height: 0;
}

.urbs-home .urbs-section * {
    line-height: normal;
}

.urbs-home .urbs-col {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.urbs-home .col-25 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
}

.urbs-home .col-50 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

.urbs-home .col-100 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Card prodotto — home, categorie, bestseller, negozio */
.urbs-home .product-box,
.urbs-grid-page .product-box,
.urbs-shop-page .product-box,
.urbs-bestseller .product-box {
    height: 520px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-right: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background-color: #f2f2f2 !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease-in-out;
    text-decoration: none;
    padding: 24px 20px 18px !important;
    gap: 6px;
}

.urbs-home .product-box h3,
.urbs-grid-page .product-box h3,
.urbs-shop-page .product-box h3,
.urbs-bestseller .product-box h3 {
    color: #000;
    font-size: 14px;
    font-weight: 400;
    margin: 0 !important;
    z-index: 2;
    font-family: 'Afacad', sans-serif;
    line-height: 1.35;
}

.urbs-home .product-box__price,
.urbs-grid-page .product-box__price,
.urbs-shop-page .product-box__price,
.urbs-bestseller .product-box__price {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    padding: 0;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Afacad', sans-serif;
    line-height: 1.3;
    text-align: left;
}

.urbs-home .product-box[href*="cupola-medium-fluo"] h3,
.urbs-home .product-box[href*="cupola-medium-fluo"] .product-box__price {
    color: #fff !important;
}

/* Card categoria — identiche a page-home-custom .category-box */
.urbs-home .category-box {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 40px !important;
    text-decoration: none;
    border: none !important;
}

.urbs-home .category-box h2 {
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    margin: 0 !important;
    font-family: 'Afacad', sans-serif;
    position: relative;
    z-index: 2;
}

@media (min-width: 769px) {
    .urbs-home .urbs-section .col-25:nth-child(4n) {
        border-right: none !important;
    }
}

@media (max-width: 768px) {
    .urbs-home .col-25 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    .urbs-home .product-box,
    .urbs-grid-page .product-box,
    .urbs-shop-page .product-box,
    .urbs-bestseller .product-box {
        height: 420px;
        padding: 20px 16px 14px !important;
    }

    .urbs-home .category-box {
        height: 350px;
        padding: 20px !important;
    }

    .urbs-home .category-box h2 {
        font-size: 15px;
    }

    .urbs-home .urbs-section .col-25:nth-child(2n) {
        border-right: none !important;
    }

    .urbs-home .urbs-section .col-50:nth-child(2n).product-box {
        border-right: none !important;
    }
}

.home .page-header,
.home .entry-header {
    display: none;
}
