/*
Theme Name: 	Digiplus Child
Theme URI: 		http://thememascot.net
Description: 	Digital Marketing Agency Wordpress Theme. You can get more themes from here: https://themeforest.net/user/thememascot/portfolio
Author: 		ThemeMascot Team
Author URI: 	http://themeforest.net/user/thememascot
Version: 		6.0
Minimum Requires PHP:	8.1
Tested up to:	6.7
License: 		GNU General Public License v2 or later
License URI: 	http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 	digiplus-child
Template: 		digiplus
*/

#tribe-events-pg-template:has(#custom_course_details) {
    margin-top: 115px !important;
    background-color: var(--tec-color-background-events);
    margin: 0 auto;
    max-width: 1250px;
    padding: var(--tec-spacer-8) var(--tec-spacer-4) var(--tec-spacer-4);
}

#tribe-events-content, .tribe-events-header.tribe-events-header--has-event-search, .tribe-events-calendar-latest-past:not(.custom_one), .tribe-events-after-html, .tribe-events-calendar-list, .tribe-events-calendar-list-nav.tribe-events-c-nav, .tribe-events-c-subscribe-dropdown__container {
    display: none !important;
}

.custom_content .card_details_link:last-child .card_details {
    margin-bottom: 0 !important;
}

.custom_header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.custom_header .custom_header_subtitle {
    color: #6E7576;
    font-family: var(--tec-font-family-sans-serif);
    font-weight: var(--tec-font-weight-bold);
    text-transform: none;
    margin: 0;
    position: relative;
}

.custom_header_subtitle::before {
    position: absolute;
    right: -70px;
    bottom: 10px;
    content: "";
    background: var(--theme-color1);
    height: 3px;
    width: 54px;
}

.custom_header .custom_header_image {
    width: 100%;
    padding-right: 15px;
}

.title_list {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .2px;
    margin-bottom: 14px;
    margin-top: 60px;
    color: #06131F;
}

.custom_header .custom_header_content {
    width: 70%;
    padding-left: 0;
    padding-top: 20px;
    padding-bottom: 40px;
    justify-items: center;
}

.custom_header .custom_header_image img {
    border-radius: 24px 24px 24px 24px !important;
    border: none;
    box-shadow: none;
    height: 348px;
    width: 100%;
}

.card_details {
    display: flex;
    align-items: stretch;
    position: relative; 
    background-repeat: no-repeat; 
    background-position: top center;
    background-size: 100% auto;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 24px;
    color: #6E7576;
    box-shadow: 0px -2px 29px -4px rgba(0, 0, 0, 0.12);
}

.card_details_content {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 30px 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Immagine: deve riempire l'altezza della card */
.card_details_image{
    flex: 0 0 320px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
} 
.card_details_image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card_details_link:first-child {
    margin-top: 100px;
}

.card_details:last-child {
    margin-bottom: 50px;
}

.card_details_content_title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .2px;
    margin-bottom: 14px !important;
}

.card_details_content_date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px !important;
}

.card_details_meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.card_details_meta > div {
    background: rgb(215 215 215 / 15%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 14px 14px 12px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.card_details_label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.82;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.card_details_value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 4px !important;
}

.card_details_unit {
    font-weight: 700;
    opacity: 0.92;
}

.card_details_time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.78;
    letter-spacing: .04em;
    margin-top: 2px !important;
}

.card_details_slot_sep {
    opacity: 0.5;
    font-weight: 400;
}

.card_details_cta {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 28px;
    min-width: 150px;
    background-color:#1e6199;
    color:#fff;
}

.card_details_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card_details_link .card_details {
    transition: filter 0.2s, transform 0.2s;
}

.card_details_link:hover .card_details {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.card_details_cta_label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    opacity: 0.88;
    user-select: none;
}

.image_list_custom {
    height: 200px !important;
    width: auto;
    border-radius: 16px;
}

.content_list_custom:not(:last-child) {
    margin-bottom: 50px; 
    border-bottom: 1px solid #f3f3f3; 
    padding-bottom: 50px;
}

#custom_course_details .custom_content:last-child {
    margin-bottom: 90px;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-latest-past__event-featured-image-wrapper.custom_list_course {
    width: auto !important;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-latest-past__event.custom_article_list_course{
    justify-content: space-between;
}

.content_list_custom:hover .tribe-common-anchor-thin {
    border-bottom: 1px solid var(--tec-color-link-primary);
}
.content_list_custom:hover .tribe-events-calendar-latest-past__event-featured-image-link {
    opacity: var(--tec-opacity-icon-hover);
}
 
.sgd-filter-sidebar.sgd-fixed {
    z-index: 10 !important;
}

/*.card_details_image_img {
    max-width: 248px;
    height: auto;
}*/

@keyframes sgd-card-highlight {
    0%   { background-color: rgba(30, 97, 153, 0.15); }
    100% { background-color: rgba(30, 97, 153, 0); }
}
.card_details_link.sgd-target .card_details {
    animation: sgd-card-highlight 2s ease-out;
}

@media (max-width: 768px) {
    .custom_header {
        flex-direction: column;
        align-items: stretch;
    }
    .custom_header .custom_header_image,
    .custom_header .custom_header_content {
        width: 100%;
        padding: 0;
    }
    .custom_header .custom_header_image {
        margin-bottom: 16px;
    }
    .card_details {
        flex-direction: column;
        align-items: stretch;
    }
    .card_details_image{
        flex: 0 0 auto;
        max-width: 100%;
        /*height: 220px;*/
    }
    .card_details_content {
        padding: 24px 20px 16px;
    }
    .card_details_meta {
        grid-template-columns: 1fr;
    }
    .card_details_cta {
        flex-direction: row;
        justify-content: center;
        border-left: none;
        border-top: 2px dashed rgba(255, 255, 255, 0.45);
        padding: 18px 20px;
        min-width: unset;
        min-height: 56px;
    }
    .card_details_cta::before,
    .card_details_cta::after {
        top: -11px;
        left: unset;
        bottom: unset;
    }
    .card_details_cta::before { left: -13px; }
    .card_details_cta::after  { right: -13px; left: unset; }
    .card_details_cta_label {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: .22em;
    }
    .tribe-common.tribe-events.tribe-events-view.tribe-events-view--list:has(#custom_course_details) {
        margin-top: 0 !important;
    }
    .custom_header_image_img {
        object-fit: cover;
        object-position: right;
    }
}