/*
Theme Name:     Embark - Child Theme
Theme URI:      http://themovation.com/embark
Template:       embark
Author:         Themovation
Author URI:     http://themovation.com
Version:        1.0
Text Domain:    embark
Domain Path:    /languages/
*/


/* = Theme customization starts here
-------------------------------------------------------------- */

.woocommerce div.product p.stock {
    font-size: 1.5em;
    font-weight: 500;
}

/* Eventi passati: griglia ordinata senza Masonry, ma con card uniformi */
body.category-eventi-passati .eventi-passati-grid-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
}

body.category-eventi-passati .eventi-passati-filter {
    max-width: 920px;
    margin: 0 auto 28px;
    text-align: center;
}

body.category-eventi-passati .eventi-passati-filter__title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.category-eventi-passati .eventi-passati-filter__form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 16px;
    align-items: flex-end;
}

body.category-eventi-passati .eventi-passati-filter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

body.category-eventi-passati .eventi-passati-filter__field label {
    font-weight: 600;
}

body.category-eventi-passati .eventi-passati-filter__field select {
    min-height: 42px;
}

body.category-eventi-passati .eventi-passati-filter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

body.category-eventi-passati .eventi-passati-filter__reset {
    text-decoration: underline;
}

body.category-eventi-passati .eventi-passati-filter .btn-primary {
    background-color: #b11d1d;
    border-color: #b11d1d;
    color: #fff;
}

body.category-eventi-passati .eventi-passati-filter .btn-primary:hover,
body.category-eventi-passati .eventi-passati-filter .btn-primary:focus,
body.category-eventi-passati .eventi-passati-filter .btn-primary:active {
    background-color: #8f1616;
    border-color: #8f1616;
    color: #fff;
}

body.category-eventi-passati .eventi-passati-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 30px;
    row-gap: 30px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

body.category-eventi-passati .eventi-passati-grid .mas-blog-post {
    float: none;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-width: 0;
    clear: none !important;
}

body.category-eventi-passati .eventi-passati-grid .mas-blog-post .post-inner {
    height: auto;
}

body.category-eventi-passati .eventi-passati-grid .mas-blog-post > a {
    display: block;
    width: 100%;
    aspect-ratio: 350 / 495;
    overflow: hidden;
}

body.category-eventi-passati .eventi-passati-grid .mas-blog-post > a > img,
body.category-eventi-passati .eventi-passati-grid .mas-blog-post > img,
body.category-eventi-passati .eventi-passati-grid .mas-blog-post img.wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.category-eventi-passati .post-nav {
    clear: both;
}

@media (max-width: 767px) {
    body.category-eventi-passati .eventi-passati-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 599px) {
    body.category-eventi-passati .eventi-passati-filter {
        text-align: left;
    }

    body.category-eventi-passati .eventi-passati-filter__title {
        text-align: center;
    }

    body.category-eventi-passati .eventi-passati-grid {
        grid-template-columns: 1fr !important;
    }

    body.category-eventi-passati .eventi-passati-filter__field {
        min-width: 100%;
    }
}