/*
 Theme Name:   GuerraVanni Theme
 description: >-
   GuerraVanni theme style
 Author:       Netstrategy
 Template:     twentytwenty
 Version:      1.0.0
*/


/* RELATED CSS */

.related.products ul.products {
    margin: 0 -15px;
}

.related.products ul.products li.product.custom-li-prod {
    width: calc(25% - 30px);
    padding-top: 25%;
    height: 0;
    overflow: hidden;
    margin: 0 15px;
}

.related.products ul.products li.product .custom-a-prod {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.custom-a-prod:hover:before {
    content: attr(data-name);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-flow: wrap row;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1;
    transition: 0.3s ease;
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
}

.related.products ul.products li.product.custom-li-prod .custom-img-prod {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    position: absolute;
}

@media(max-width: 768px) {
    .related.products ul.products li.product.custom-li-prod {
        width: calc(100% - 30px);
        padding-top: 100%;
        margin: 0 auto;
    }

    .related.products ul.products {
        margin: 0 !important;
    }
}

#news-grid .eael-entry-thumbnail {
    position: relative;
    height: 0;
    padding-top: calc(100% * 566 / 1080);
}

#news-grid .eael-entry-thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    height: auto;
}

#news-grid .eael-grid-post-holder {
    height: 570px;
    overflow: hidden;
    position: relative;
}

#news-grid a.eael-post-elements-readmore-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    border-radius: 0;
    padding: 20px;
    text-align: center;
    margin: 0;
}

#news-grid header.eael-entry-header {
    position: relative;
    display: block;
}

#news-grid p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.elementor-widget-nav-menu .elementor-nav-menu--dropdown .elementor-sub-item {
    padding: 10px;
    font-size: 1.5em;
    text-transform: uppercase;
}