/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



.card-fields {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    color: var(--e-global-color-e635c8f);
}



/* === STAMPA/PDF INVOICE PULITO === */
@media print {
    /* Nascondi TUTTO tranne invoice */
    body * {
        visibility: hidden !important;
    }
    
    /* Mostra SOLO invoice e suoi figli */
    .pmpro,
    .pmpro * {
        visibility: visible !important;
    }
    
    /* Nascondi elementi WordPress */
    header,
    footer,
    nav,
    .site-header,
    .site-footer,
    .elementor-location-header,
    .elementor-location-footer,
    #wpadminbar,
    .pmpro_actions_nav {
        display: none !important;
    }
    
    /* Posiziona invoice in alto a sinistra */
    .pmpro {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 20px;
    }
    
    /* Forza mantenimento colori */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Nascondi pulsante print stesso */
    .pmpro_card_actions {
        display: none !important;
    }
    
    /* Imposta pagina */
    @page {
        size: A4;
        margin: 20mm;
    }
    
    /* Sfondo bianco */
    body {
        background: white !important;
    }
    
    /* Ottimizza tabella per stampa */
    .pmpro_table {
        page-break-inside: avoid;
    }
}



.card {
    background-color: var(--pmpro--color--base);
        border: 1px solid var(--pmpro--color--border--variation);
        border-radius: var(--pmpro--base--border-radius);
        box-shadow: var(--pmpro--box-shadow);
        display: flex;
        flex-direction: column;
        margin: var(--pmpro--base--spacing--medium) 0;
        overflow: hidden;
    }



#pmpro_actionlink-logout {
    display: none;
}

table caption+thead tr:first-child td, table caption+thead tr:first-child th, table colgroup+thead tr:first-child td, table colgroup+thead tr:first-child th, table thead:first-child tr:first-child td, table thead:first-child tr:first-child th {
    border-block-start: 0px solid hsla(0, 0%, 50%, .502);
}




.pmpro_form_submit {
    padding-top: 15px !important;
}


.pmpro_table_order-date a {
    pointer-events: none;
    color: black;
    text-decoration: none;
}



.half-fields p label {
    width: 50%;
}

.half-fields p {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
.half-fields p label {
    width: 48%;
}

.full-fields p {
    display: flex;
    flex-direction: column;
}

.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form input, .form textarea {
    border: 0px !important;
}


#pmpro_form_fieldset-informazioni-aggiuntive .pmpro_form_fields {
    display: flex;
    flex-direction: row;
    gap: var(--pmpro--base--spacing--medium);
    flex-wrap: wrap;
    justify-content: space-between;
}
#pmpro_form_fieldset-informazioni-aggiuntive .pmpro_form_fields div {
    width: 49%;
}

#richiesta_ammissione_div, #gdpr_div {
    width: 100% !important;
}

.checkbox label {
    display: block !important;
}
.pmpro {
    margin-top: 30px;
}

@media only screen and (max-width:1000px) {
    #pmpro_form_fieldset-informazioni-aggiuntive .pmpro_form_fields div {
        width: 48.6%;
    }
}

@media only screen and (max-width:768px) {
    #pmpro_form_fieldset-informazioni-aggiuntive div div {
        width: 100%;
    }
    .half-fields p label {
        width: 100%;
    }
    .half-fields p {
        flex-direction: column;
        justify-content: center;
    }
    #pmpro_form_fieldset-informazioni-aggiuntive .pmpro_form_fields div {
        width: 100%;
    }
    .pmpro_form_submit {
        justify-content: center;
        flex-direction: column !important;
    }
    section#pmpro_confirmation-1 p {
        text-align: center;
    }
    .pmpro h2 {
        text-align: center;
    }
    .pmpro_card_action_separator {
        display: none;
    }
    .pmpro_card_action {
        padding: 0 10px;
    }
}


