/**
Theme Name: vitacomoda
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitacomoda
Template: astra
*/
.home-random-reviews-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

/* 3 per riga su desktop */
.review-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 20px;
    border-radius: 10px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: calc(33.333% - 17px);
    box-sizing: border-box;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.review-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.review-stars {
    color: #ff9900;
    margin-bottom: 10px;
}

.review-text p {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}

.review-product {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

/* Mobile: 1 colonna */
@media (max-width: 768px) {
    .review-card {
        width: 100%;
    }
}

/* Tablet: 2 colonne */
@media (min-width: 769px) and (max-width: 1024px) {
    .review-card {
        width: calc(50% - 17px);
    }
}
.vc-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.vc-category-card {
    position: relative;
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transform: translateY(0);
    transition: transform .45s cubic-bezier(.25,.8,.25,1), 
                box-shadow .45s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

.vc-category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 55px rgba(0,0,0,0.18);
}

.vc-category-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .55s ease;
}

.vc-category-card:hover .vc-category-image {
    transform: scale(1.12);
}

.vc-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.55) 100%);
    z-index: 2;
    opacity: 1;
    transition: opacity .35s ease;
}

.vc-category-card:hover .vc-category-overlay {
    opacity: 0.9;
}

.vc-category-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
}

.vc-category-info h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .vc-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vc-category-grid {
        grid-template-columns: 1fr;
    }
    .vc-category-card {
        height: 220px;
    }
}

/* Home — sezione prodotti (ex WPBakery row/column) */
.vc-home-products-section {
    padding: 40px 0;
    background: #ffffff;
}
.vc-home-products-section .vc-home-products-title {
    text-align: center;
    color: #2d5a27;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 30px;
    line-height: 1.2;
}
.vc-home-products-sep {
    width: 10%;
    max-width: 120px;
    height: 3px;
    background: #4caf50;
    border: none;
    margin: -20px auto 40px;
}

/* FAQ nativa (ex vc_accordion) */
.vc-migrated-faq__item summary {
    list-style: none;
}
.vc-migrated-faq__item summary::-webkit-details-marker {
    display: none;
}
.vc-migrated-faq__item[open] summary {
    margin-bottom: 4px;
}

/* WooCommerce — griglia prodotti uniforme (shop / categorie / negozi WCFM) */
.woocommerce ul.products {
    align-items: stretch;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

/* Layout Astra classico: link (img+titolo+prezzo) + pulsante + sold-by WCFM */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    background: #f7f7f7;
    border-radius: 11px 11px 0 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    order: 1;
    font-size: 0.95rem;
    line-height: 1.35;
    min-height: 4.05em;
    max-height: 4.05em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0.65em 0 0.35em;
}

.woocommerce ul.products li.product .ast-woo-product-category {
    order: 2;
    font-size: 0.8rem;
    line-height: 1.3;
    min-height: 1.3em;
    margin-bottom: 0.35em;
    color: #888;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link .price {
    order: 3;
    margin-top: auto;
    padding-top: 0.35em;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 2.8em;
}

/* Stelle subito sopra il pulsante (non sotto) */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link .review-rating {
    order: 4;
    min-height: 1.25em;
    margin: 0.35em 0 0;
}

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link .review-rating .star-rating {
    margin: 0;
}

.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product > a.button,
.woocommerce ul.products li.product > .added_to_cart {
    order: 5;
    margin-top: 0.5em !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Allinea pulsanti anche su prodotti senza recensione */
.woocommerce ul.products li.product:not(:has(.review-rating)) > .button::before,
.woocommerce ul.products li.product:not(:has(.review-rating)) > a.button::before {
    content: "";
    display: block;
    min-height: 1.25em;
    margin-bottom: 0.35em;
}

/* Negozi WCFM — blocco venditore in fondo, altezza uniforme */
.woocommerce ul.products li.product .wcfmmp_sold_by_container {
    order: 6;
    margin-top: 0.65em;
    padding-top: 0.65em;
    border-top: 1px solid #eee;
    min-height: 5.5em;
    font-size: 0.82rem;
    line-height: 1.35;
    flex-shrink: 0;
}

.woocommerce ul.products li.product .wcfmmp_sold_by_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em;
    min-height: 2em;
}

.woocommerce ul.products li.product .wcfmmp_sold_by_logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.woocommerce ul.products li.product .wcfmmp-store-rating {
    min-height: 1.2em;
    margin-top: 0.35em;
}

.woocommerce ul.products li.product .wcfm_vendor_badges {
    min-height: 1.5em;
    margin-top: 0.25em;
}

/* Fallback layout Astra con summary wrap (se attivo) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 11px 11px 0 0;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 10px 14px;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap .price {
    margin-top: auto;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap .review-rating {
    order: 4;
    min-height: 1.25em;
    margin: 0.35em 0 0;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap .button {
    order: 5;
    margin-top: 0.5em !important;
}

@media (max-width: 544px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 3.6em;
        max-height: 3.6em;
        -webkit-line-clamp: 2;
    }

    .woocommerce ul.products li.product .wcfmmp_sold_by_container {
        min-height: 5em;
    }
}
