/*
Theme Name: Divi Child
Theme URI: https://www.ticinocommerciale.com/
Description: Child Theme per Divi
Author: iWebStudio
Template: Divi
Version: 1.0.0
Text Domain: divi-child
*/


/* ==========================================================
   CONTACT FORM 7
   Layout, campi, validazione e pulsanti
========================================================== */


/* ----------------------------------------------------------
   CF7 - Appiattimento paragrafi
---------------------------------------------------------- */

html body .wpcf7 form.wpcf7-form > p {
    margin: 0;
    display: contents;
}


/* ----------------------------------------------------------
   CF7 - Separatore orizzontale
---------------------------------------------------------- */

html body .wpcf7 form.wpcf7-form hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, .25);
    margin: 6px 0 20px;
}


/* ----------------------------------------------------------
   CF7 - Campi form
---------------------------------------------------------- */

html body .wpcf7 form .wpcf7-text,
html body .wpcf7 form .wpcf7-email,
html body .wpcf7 form .wpcf7-tel,
html body .wpcf7 form .wpcf7-number,
html body .wpcf7 form .wpcf7-date,
html body .wpcf7 form .wpcf7-select,
html body .wpcf7 form textarea.wpcf7-textarea {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    font-size: 15px;
    color: #242424 !important;
    padding: 14px 16px !important;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 12px;
}

html body .wpcf7 form .wpcf7-text:focus,
html body .wpcf7 form .wpcf7-email:focus,
html body .wpcf7 form .wpcf7-tel:focus,
html body .wpcf7 form .wpcf7-number:focus,
html body .wpcf7 form .wpcf7-date:focus,
html body .wpcf7 form .wpcf7-select:focus,
html body .wpcf7 form textarea.wpcf7-textarea:focus {
    border-color: #f26e20 !important;
    box-shadow: 0 0 0 3px rgba(242, 110, 32, .15);
}

html body .wpcf7 ::placeholder {
    color: #8a8a8a;
    opacity: 1;
}


/* ----------------------------------------------------------
   CF7 - Checkbox
---------------------------------------------------------- */

html body .wpcf7 .wpcf7-checkbox {
    display: block;
    padding: 4px 0;
}

html body .wpcf7 .wpcf7-checkbox .wpcf7-list-item {
    display: block;
    margin: 2px 0;
}

html body .wpcf7 .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    accent-color: #f26e20;
    cursor: pointer;
}

html body .wpcf7 .wpcf7-list-item-label {
    display: inline-block;
    vertical-align: middle;
    font-size: 13px;
    color: #242424;
    line-height: 1.4;
    cursor: pointer;
}


/* ----------------------------------------------------------
   CF7 - Pulsante invio
---------------------------------------------------------- */

html body .wpcf7 form .wpcf7-submit {
    display: inline-block;
    color: #f26e20 !important;
    background: transparent;
    border: 2px solid #f26e20;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all .2s ease;
}

html body .wpcf7 form .wpcf7-submit:hover,
html body .wpcf7 form .wpcf7-submit:focus {
    background: #f26e20;
    color: #fff !important;
    border-color: #f26e20;
}

html body .wpcf7 .wpcf7-spinner {
    margin-left: 10px;
}


/* ----------------------------------------------------------
   CF7 - Messaggi ed errori
---------------------------------------------------------- */

html body .wpcf7 form .wpcf7-not-valid-tip {
    font-size: 13px;
    color: #b00020;
    margin-top: 6px;
}

html body .wpcf7 form .wpcf7-response-output {
    border-radius: 4px;
    padding: 12px 14px;
    margin: 16px 0 0;
    font-size: 14px;
}

html body .wpcf7 form.sent .wpcf7-response-output {
    border: 1px solid #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
}

html body .wpcf7 form.invalid .wpcf7-response-output,
html body .wpcf7 form.unaccepted .wpcf7-response-output,
html body .wpcf7 form.aborted .wpcf7-response-output {
    border: 1px solid #b00020;
    background: #ffebee;
    color: #b00020;
}

html body .wpcf7 form .wpcf7-not-valid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 3px rgba(176, 0, 32, .08);
}


/* ----------------------------------------------------------
   CF7 - Upload file
---------------------------------------------------------- */

html body .wpcf7 form.wpcf7-form input[type="file"] {
    grid-column: 1 / -1;
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 12px;
    background: #fff;
    font-size: 15px;
    color: #444;
    box-sizing: border-box;
    margin-bottom: 14px;
}

html body .wpcf7 form.wpcf7-form input[type="file"]::file-selector-button,
html body .wpcf7 form.wpcf7-form input[type="file"]::-webkit-file-upload-button {
    background: #f26e20;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: filter .2s ease, transform .02s ease;
}


/* ==========================================================
   DIVI / DIVI DEN
   Correzioni layout esistenti
========================================================== */

@media all and (max-width: 767px) {

    .specials .et_pb_row:last-child .et_pb_column_1_2 .et_pb_blurb_container {
        display: block !important;
        margin-bottom: 30px;
    }

}

body .ragnar_tabs_the_track .et_pb_blurb .et_pb_blurb_container:before {
    content: "";
}

body .et_pb_main_blurb_image:after {
    content: "";
}


/* ==========================================================
   MENU SECONDARIO - LOGO AP GROUP
========================================================== */

#et-secondary-nav .ap-group-logo-menu > a {
    font-size: 0;
    line-height: 0;
    padding: 0 !important;
}

#et-secondary-nav .ap-group-logo-menu > a::before {
    content: "";
    display: block;

    width: 250px;
    height: 100px;

    background-image: url("https://www.ticinocommerciale.com/wp-content/uploads/2026/09/logo_ap_group_lungo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ==========================================================
   MENU SECONDARIO - ALLINEAMENTO TOP BAR
========================================================== */

#top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Telefono ed email */
#et-info {
    float: none;
    padding-bottom: 0;
}

/* Menu secondario */
#et-secondary-menu {
    float: none;
    display: flex;
    align-items: center;
}

/* Voci menu */
#et-secondary-nav {
    display: flex;
    align-items: center;
}

#et-secondary-nav > li {
    display: flex;
    align-items: center;
    margin-right: 25px;
}

#et-secondary-nav > li:last-child {
    margin-right: 0;
}

/* ==========================================================
   MOBILE MENU - AP GROUP LOGO
========================================================== */

@media (max-width: 980px) {

    /* Voce AP Group nel menu mobile */
    .et_mobile_menu .ap-group-logo-menu > a {
        display: block !important;

        width: 160px;
        height: 80px;

        padding: 0 !important;
        margin: 10px 0 !important;

        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;

        background-image: url("https://www.ticinocommerciale.com/wp-content/uploads/2026/09/logo_ap_group_lungo.png") !important;
        background-repeat: no-repeat !important;
        background-position: left center !important;
        background-size: contain !important;

        overflow: hidden;
    }

}
