/*
Theme Name: MasterStudy Child
Description: Child theme per MasterStudy
Template: masterstudy
Version: 1.0.0
*/

/* Import del CSS del tema padre - FONDAMENTALE */
@import url("../masterstudy/style.css");

/* Le tue personalizzazioni CSS vanno qui */

/* Fix course card image heights */
.stm_lms_courses__single--image__container {
    height: 270px !important;
    overflow: hidden;
}

.stm_lms_courses__single--image__container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ensure consistent card heights */
.stm_lms_courses__single {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stm_lms_courses__single__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stm_lms_courses__single--inner {
    flex: 1;
}

/* Nasconde completamente l'excerpt del corso */
.masterstudy-single-course-excerpt {
    display: none !important;
}

/* Nasconde il testo "Video lesson" dal curriculum */
.masterstudy-curriculum-list__meta {
    display: none !important;
}

/* Pulsante acquisto arancione con angoli arrotondati e bordo nero - versione aggiornata */
.masterstudy-buy-button__link {
    background-color: #ff9900 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    border-radius: 8px !important;
}

.masterstudy-buy-button__link:hover {
    background-color: #e88a00 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    border-radius: 8px !important;
}

/* Assicurati che il prezzo sia nero */
.masterstudy-buy-button__price,
.masterstudy-buy-button__price_regular {
    color: #000000 !important;
}

/* Mantieni anche la regola precedente per compatibilità con angoli arrotondati */
.stm-lms-buy-buttons .btn:not(.start-course).btn_big {
    background-color: #ff9900 !important;
    color: #000 !important;
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
}

.stm-lms-buy-buttons .btn:not(.start-course).btn_big:hover {
    background-color: #e88a00 !important;
    border: 2px solid #000000 !important;
    border-radius: 8px !important;
}

/* Nascondere categoria del corso (SAP ERP) */
.masterstudy-single-course-categories,
.masterstudy-single-course__topbar,
.single_product_after_title .meta_pull .xs-product-cats-left,
.meta-unit.categories {
    display: none !important;
}

/* Nascondere Add to Wishlist e Share button */
.masterstudy-single-course-wishlist,
.stm-lms-wishlist,
.masterstudy-single-course-share-button,
.masterstudy-single-course__buttons,
.masterstudy-single-course__sidebar .masterstudy-single-course__buttons {
    display: none !important;
}

/* MIGLIORAMENTO: Font più scuri per il contenuto del corso */
.stm_lms_course__content p,
.masterstudy-single-course-description__content p,
.wpb_wrapper p,
.masterstudy-single-course-description p,
.textwidget
{
    font-size: 16px !important;
    color: #000000 !important;
    line-height: 1.6 !important;
}

/* MIGLIORAMENTO: Titoli più scuri */
.masterstudy-single-course-description__content h3,
.masterstudy-single-course-description h3,
.wpb_wrapper h3,
.stm_lms_course__content h3 {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* MIGLIORAMENTO: Liste più scure */
.masterstudy-single-course-description__content ul li,
.masterstudy-single-course-description ul li,
.wpb_wrapper ul li,
.stm_lms_course__content ul li {
    color: #000000 !important;
}

/* MIGLIORAMENTO: Dimensioni testo selettorr tab */
li.masterstudy-single-course-tabs__item {
    font-weight: 900 !important;
    font-size: 20px !important;
}

/* Hide rating elements */
.average-rating-stars__top .average-rating-stars__av,
.average-rating-stars__reviews,
.average-rating-stars,
.rating {
    display: none !important;
}

/* Change number of stars */
.single_product_after_title .star-rating>span {
    width: 100% !important;
}

/* STM checkout page */
.stm_lms_cart__item_head {
    display: none !important;
}

/* STM size fonts cart */
.stm_lms_cart__item_price {
    font-weight: 700 !important;
    font-size: 20px !important;
}

.stm_lms_cart__item_title h4 a {
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Hide blog reply social buttons and separator */
#main > div > div.container.blog_main_layout_grid > div.blog_layout_list.sidebar_position_none > div.row.mg-bt-10,
#main > div > div.container.blog_main_layout_grid > div.blog_layout_list.sidebar_position_none > div.multiseparator,
#main > div.container > div > div > div > div.wp-die-message {
    display: none !important;
}

/* WooCommerce one page checkout modifications */
.cart_totals,
.woocommerce-additional-fields__field-wrapper,
.cclw_additional_fields,
.woocommerce-additional-fields,
.page-id-10 #footer,
.entry-header,
.page-id-10 .navxtBreads,
.page-id-10 .stm_breadcrumbs_unit,
#payment_heading,
#account_password_field > span > div,
#account_password_field > span > small,
a.about_paypal {
    display: none !important;
}

/* Stile per quantità e prezzo nel checkout - stesso stile di .name.more_details */
.cclw_qty .wrapper_qty,
.woocommerce-Price-amount bdi,
.woocommerce-Price-amount,
bdi .woocommerce-Price-currencySymbol,
.woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Specifico per la cella quantità */
td.cclw_qty {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Specifico per il wrapper della quantità */
.cclw_qty .wrapper_qty {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Specifico per il prezzo e simbolo euro */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Stile per quantità e prezzo nel checkout */
.cclw_qty .wrapper_qty,
.woocommerce-Price-amount bdi,
.woocommerce-Price-amount,
bdi .woocommerce-Price-currencySymbol,
.woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Specifico per la cella quantità */
td.cclw_qty {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Specifico per il wrapper della quantità */
.cclw_qty .wrapper_qty {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

/* Specifico per il prezzo e simbolo euro */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

.woocommerce-page label {
    font-weight: 600;
    color: #000;
}

.woocommerce-checkout .express-one-page-checkout-main h3.border_html {
    font-size: 22px !important;
    font-weight: 600;
}

.name.more_details {
    font-size: 16px;
    font-weight: 600;
}

.cclw-style-1 .price>.amount {
    color: #000;
}

/* Payment Checkout Column overwrite bootstrap */
.col-md-6 {
    width: 100% !important;
}

#payment > ul > li.wc_payment_method.payment_method_stripe > label {
    width: 62% !important;
}

/* Borders on checkout button */
.woocommerce #payment #place_order, 
#cclw_coupon_submit {
    border-radius: 5px !important;
    border: 1px solid #ddd !important;
}

/* Hide asterix from form */
.woocommerce form .form-row .required {
    visibility: hidden !important;
}


/* Hide MasterStudy thank you page section */
.masterstudy-thank-you-page {
    display: none !important;
}

/* Mobile Customization */
@media only screen and (max-width: 1024px) {
    .vc_section.vc_section-has-fill, 
    .vc_row-has-fill>.vc_column_container>.vc_column-inner {
        padding-top: 0px;
    }
    
    .vc_custom_1545201276017, 
    #main > div.container > div.post_type_exist.clearfix > div:nth-child(3) > div > div > div > div.ae1d4b53cfe0aff35d23e06ca38480e97.vc_empty_space {
        display: none !important;
    }
    
    #payment > ul > li.wc_payment_method.payment_method_stripe > label {
        width: 80% !important;
    }
}
