/**
Theme Name: pfmgroup
Author: Nextindustry
Author URI: https://nextindustry.net/
Description: PFM Group theme by Nextindustry
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pfmgroup
Template: astra
*/

/* Typography */
.has-small-font-size,
.has-medium-font-size,
.has-large-font-size,
.has-x-large-font-size {
    line-height: 1.4em;
}

.wp-block-quote {
    border: none;
    padding: 0;
    margin: 0 auto;
    font-style: normal;
    font-size: 1.4em;
}

ul.isogrid--- {
    margin-left: 0;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

ul.isogrid .wp-block-group--- {
    padding-top: .4em;
    padding-bottom: .4em;
}

ul.isogrid {
    grid-auto-rows: 1fr
}

ul.related-machines-list {
    margin-left: 0;
}

.pack-filter {
    flex-direction: row;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}

.pack-filter button {
    padding: 0.5em;
    width: calc(10%);
    font-size: .7em;
    background-color: #f5f5f5;
    color: #012c53;
    display: flex;
    flex-flow: column;
    align-items: center;
}

.pack-filter button:hover, .pack-filter button:active, .pack-filter button:focus {
    color: #012c53;
	background-color: #f5f5f5;
    opacity: 0.75;
}

@media only screen and (max-width:599px) {
    .pack-filter button {
        width: calc(22%);
    }
}

.pack-filter button.active {
    border: 1px solid #012c53;
    color: #012c53;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    flex-grow: 0;
}

/* TOP MARGIN CLASS */
.margin-top {
    margin-top: 3vw;
}

.single-post .entry-header {
    margin-top: 5vw;
}

/* RELATED CLASS */
.related-section-title {
    text-align: center;
    margin-top: 3vw;
}

.single-related h5,
.single-related h6 {
    text-align: center;
    font-weight: bold;
}

.single-related p {
    margin-bottom: 0;
    font-size: 14px;
}

.single-related {
    display: flex;
    margin: 10px;
    padding: 10px;
    flex-flow: column;
}

.related-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 3vw;
}

@media only screen and (max-width:768px) {
    .related-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-container-news {
    grid-template-columns: repeat(2, 1fr);
}

.single-related .img-container img {
    max-height: 100%;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

.single-related-machine .img-container img, .gasparin-machinery-section img, .related-items-gasparin .single-related img {
    filter: grayscale(1) brightness(1.1);
    transition: 0.5s;
}

.single-related-machine:hover .img-container img, .gasparin-machinery-section .wp-block-column:hover img, .related-items-gasparin .single-related:hover img {
    filter: none;
}

.single-related-app .img-container img {
    filter: invert(0.5);
}

figure.img-container {
    height: 17vw;
    position: relative;
}

@media only screen and (max-width:599px) {
    figure.img-container {
        height: 40vw;
    }
}

.single-related-app figure.img-container,
.single-related-pack figure.img-container {
    height: 8vw;
    min-height: 100px;
}

.single-related-news figure.img-container {
    height: 15vw;
}

.related-wrap-news {
    background: #f5f5f5;
    padding: 2vw;
}

.related-container-pack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25em;
}

.single-related-pack {
    width: 20%;
}

@media only screen and (max-width:599px) {
    .single-related-pack {
        width: 40%;
    }
}

.slick-slide>div {
    width: 100%;
}

/* standard gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    position: inherit;
    color: #252525;
    background: transparent;
}

.justify-content-center {
    justify-content: center;
}

.machine-intro-text {
    height: 150px;
    font-size: 14px;
}

.machine-intro-text p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media only screen and (max-width:599px) {
    .machine-intro-text {
        height: auto;
    }
}

ul.astra-megamenu {
    flex-wrap: wrap;
}

.ast-mobile-popup ul.main-header-menu li.menu-item a {
    border: 0;
}


/* MENU PRINCIPALE APPLICAZIONI*/

body.ast-desktop ul.main-header-menu ul.astra-megamenu li span.menu-text {
    display: flex;
    transition: none;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

body.ast-desktop ul.main-header-menu li.menu-item-10365 ul.astra-megamenu,
body.ast-desktop ul.main-header-menu li.menu-item-2312 ul.astra-megamenu {
    display: grid !important;
    grid-template-columns: repeat(10, 10%);
}

body.ast-desktop ul.main-header-menu li.menu-item-10365 ul.astra-megamenu li.menu-item-object-application,
body.ast-desktop ul.main-header-menu li.menu-item-2312 ul.astra-megamenu li.menu-item-object-application {
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}

body.ast-popup-nav-open ul.main-header-menu li.menu-item-has-children button.ast-menu-toggle {
    line-height: initial;
}

ul.main-header-menu li.menu-item-object-application span.menu-text img {
    width: 50px;
    filter: brightness(0.1);
}

ul.main-header-menu li.machines-submenu ul.astra-megamenu li.menu-item a {
    text-align: center;
}


/* Home 600 782*/
.product-list ul {
    margin-left: 0;
}
body.home div.product-list ul.columns-6{
		grid-template-columns:repeat(7, minmax(0, 1fr));
}

.product-list .wp-block-post-template.is-flex-container,
.wp-block-query-loop.is-flex-container {
    gap: 0.25em;
}

.product-list a {
    text-decoration: none !important;
    color: var(--wp--preset--color--ast-global-color-2) !important;
    font-size: 90%;
    line-height: 1.1em;
	transition: all .2s ease;
}

.product-list a:hover img {
	transition: all .2s ease;
}

.product-list h5 a:hover {
	color: #fff;
}

.product-list a:hover img {
	transform:scale(1.1);
}

.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li,
.wp-block-query-loop.is-flex-container.is-flex-container.columns-6>li {
    width: calc(10% - .25em);
}

.wp-block-post-template.is-flex-container.is-flex-container.columns-6>li,
.wp-block-query-loop.is-flex-container.is-flex-container.columns-6>li {
    width: calc(25% - .25em);
}

@media only screen and (min-width: 600px) and (max-width: 1023px) {

    .wp-block-post-template.is-flex-container.is-flex-container.columns-6>li,
    .wp-block-query-loop.is-flex-container.is-flex-container.columns-6>li {
        width: calc(14.5% - .25em);
    }
}

@media only screen and (min-width: 1024px) {

    .wp-block-post-template.is-flex-container.is-flex-container.columns-6>li,
    .wp-block-query-loop.is-flex-container.is-flex-container.columns-6>li {
        width: calc(10% - .25em);
    }
}

/* FEATURED IMAGE MACHINE */
figure.machine-fi-container {
    display: flex;
    justify-content: center;
}

figure.machine-fi-container img.machine-fi {
    max-height: 33vw;
    width: auto;
}

@media only screen and (max-width:599px) {
    .is-flex-container.applications-list>li {
        width: calc(20%);
    }
}

.is-flex-container.applications-list>li {
    width: calc(12.5%);
}

.is-flex-container.applications-list {
    margin: 0;
}

.alignfull-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

@media only screen and (min-width:922px) {
    .alignwide-section {
        margin-left: calc(-41vw + 50%);
        margin-right: calc(-41vw + 50%);
        max-width: unset;
        width: unset;
    }
}

/** TITOLO POST RESPONSIVE **/
@media only screen and (max-width:768px) {
    body.single-post h1.entry-title {
        font-size:1.88888888rem;
    }
}

/** SPS list **/
.sps-list figure {
    width: calc(50% - 1rem);
}

.sps-list {
    row-gap: 4em;
}

.latest-news-homepage ul {
    margin-left: 0;
}

.menu-item-object-application {
    padding: 0 !important;
}

.single-machine h1.single-machine-title {
    font-size: 60px;
}

@media only screen and (max-width:1440px) {
    .single-machine h1.single-machine-title {
        font-size: 45px;
    }
}

/* SPAZIO SOPRA TITOLO */
div#primary div.wp-block-cover div.wp-block-cover__inner-container h1 {
    padding-top: 56px;
}

/* READ MORE EXCERPT */
p.read-more {
    display: none;
}

/* STORE LOCATOR */
div#wpsl-stores, div#wpsl-direction-details, div#wpsl-gmap {
    height: 90vh!important;
}
#wpsl-wrap {
    margin-bottom: 0 !important;
}
#wpsl-wrap #wpsl-result-list ul li {
    padding: 10px 24px;
}
/* PAGINA PACKSTYLES */
.packstyles-list ul,
.event-list ul {
    margin-left: 0;
    justify-content: center;
}

@media only screen and (max-width:599px) {
    .packstyles-list ul li {
        width: 45% !important;
    }
}
.wpsl-search{
    display: none;
}
/* PAGINA KOTAKT PFM GERMANY MAPPA */
body.page-id-743 .uagb-google-map__wrap{
	display: block;
}
.vertical-featured-uk img{
	max-height:33vw;
	width:auto;
}
@media only screen and (max-width:599px){
	body.home div#primary div.wp-block-cover h2{
		font-size:4rem !important;
	}
}
@media only screen and (max-width:420px){
	body.home div#primary div.wp-block-cover h2{
		font-size:3rem !important;
	}
}
footer.site-footer div.site-primary-footer-wrap section{
	margin:0;
}
@media only screen and (max-width:544px){
	footer.site-footer div.site-primary-footer-wrap section, footer.site-footer div.site-primary-footer-wrap figure{
		text-align:center;
	}
	footer.site-footer div.site-primary-footer-wrap .uagb-icon-list__wrap{
		margin: 0 10vw;
	}	
}
a.designed-package-category{
	font-size: 18px;
	font-weight:bold;
}
@media only screen and (max-width:599px){
	.related-container-news {
    grid-template-columns: 1fr;
}
	div.product-list li.type-application h5{
		font-size:14px;
	}
	div.product-list ul{
		grid-template-columns:repeat(3, 1fr)!important;
	}
		div#content div.entry-content div.categorie-macchine-list {
		grid-template-columns:repeat(2, 1fr) !important;
	}
}

/* GASPARIN */
.gasparin-machinery-section p{
	font-size:14px;
	text-align:center;
}
.gasparin-machinery-section h5.gasparin-title{
	margin:0;
}
.gasparin-machinery-section h5.gasparin-title a{
	color: #012c53;
}
@media only screen and (max-width: 1440px) {
	div#content div.entry-content div.categorie-macchine-list {
		display:grid;
		grid-template-columns:repeat(3, 1fr);
	}
}
.related-items-gasparin .single-related a{
	color:inherit;
}
/* TRADE SHOWS */
.trade-show-location, .trade-show-period {
	text-align:left;
	font-size:14px;
	line-height:1.2em;
	font-weight:bold;
	color: #666666;
}
h5.trade-show-title{
	margin-bottom:8px;
}
.category-eventi header.entry-header div.entry-meta,.category-events header.entry-header div.entry-meta {
	display:none;
}
.trade-show-box h5{
	font-size:22px !important;
	text-align:left;
}
button.eedee-gutenslider-prev,
button.eedee-gutenslider-next{
	display:none;
}