@charset "UTF-8";
/* CSS Document
Theme Name: Carpenteria 3P - Ricerca Live
Author: Si.Be Group
*/

/* NASCONDE SOLO IL POPUP NATIVO DI GROOVY, NON LA LENTE */
.gm-search.fullscreen .gm-search__fullscreen-container,
.gm-search.fullscreen .gm-search__txt {
    display: none !important;
}

body.c3p_search_aperto {
    overflow: hidden;
}

.c3p_search_popup {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.25s ease;
}

.c3p_search_popup.aperto {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.c3p_search_overlay {
    position: absolute;
    inset: 0;

    background: rgba(26, 26, 30, 0.88);
}

.c3p_search_box {
    width: 90%;
    max-width: 980px;
    max-height: calc(100vh - 110px);

    position: relative;
    z-index: 2;

    overflow: auto;

    background: #fff;
    color: #1d1d22;

    border-radius: 18px;

    padding: 58px 62px 52px;

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);

    transform: translateY(18px);
    transition: transform 0.25s ease;
}

.c3p_search_popup.aperto .c3p_search_box {
    transform: translateY(0);
}

.c3p_search_close {
    position: absolute;
    right: 26px;
    top: 24px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: #e9ecf4;

    cursor: pointer;

    transition: all 0.25s ease;
}

.c3p_search_close span {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 24px;
    height: 4px;

    border-radius: 4px;

    background: #1d1d22;

    transition: all 0.25s ease;
}

.c3p_search_close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.c3p_search_close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.c3p_search_close:hover {
    background: #ff1f10;
}

.c3p_search_close:hover span {
    background: #fff;
}

.c3p_search_head {
    max-width: 760px;

    margin-bottom: 32px;
}

.c3p_search_head span {
    display: block;

    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;

    color: #ff1f10;

    margin-bottom: 12px;
}

.c3p_search_head h2 {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;

    color: #1d1d22;
}

.c3p_search_head .linea_rossa {
    margin-top: 12px;
}

.c3p_search_form {
    width: 100%;

    position: relative;

    margin-bottom: 14px;
}

.c3p_search_input {
    width: 100%;
    height: 68px;

    border: none;
    border-radius: 10px;

    background: #e9ecf4;
    color: #1d1d22;

    font-size: 22px;
    line-height: 1.2;
    font-weight: 500;

    padding: 0 78px 0 24px;

    outline: none;

    transition: all 0.25s ease;
}

.c3p_search_input:focus {
    background: #dde2ee;
}

.c3p_search_submit {
    position: absolute;
    right: 10px;
    top: 50%;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 8px;

    background: #ff1f10;

    cursor: pointer;

    transform: translateY(-50%);

    transition: all 0.25s ease;
}

.c3p_search_submit:hover {
    background: #c9160c;
}

.c3p_search_submit span {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 17px;
    height: 17px;

    border: 3px solid #fff;
    border-radius: 50%;

    transform: translate(-60%, -60%);
}

.c3p_search_submit span::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: -7px;

    width: 11px;
    height: 3px;

    border-radius: 3px;

    background: #fff;

    transform: rotate(45deg);
}

.c3p_search_hint {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;

    color: rgba(29, 29, 34, 0.65);

    margin-bottom: 24px;
}

.c3p_search_results {
    width: 100%;
}

.c3p_search_status {
    width: 100%;

    padding: 22px 0 0;

    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;

    color: #1d1d22;
}

.c3p_search_results_list {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;

    margin-top: 26px;
}

.c3p_search_result {
    width: 100%;

    display: flex;
    align-items: stretch;
    gap: 16px;

    min-height: 118px;

    background: #f3f5fa;
    color: #1d1d22;

    border-radius: 12px;

    padding: 14px;

    text-decoration: none;

    transition: all 0.25s ease;
}

.c3p_search_result:hover {
    background: #e9ecf4;
    transform: translateY(-2px);
}

.c3p_search_result_img {
    width: 88px;
    flex: 0 0 88px;

    border-radius: 10px;

    overflow: hidden;

    background: #d8dce6;
}

.c3p_search_result_img img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.c3p_search_result_txt {
    flex: 1;

    min-width: 0;
}

.c3p_search_result_type {
    display: block;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;

    color: #ff1f10;

    margin-bottom: 8px;
}

.c3p_search_result h3 {
    font-size: 18px;
    line-height: 1.18;
    font-weight: 700;

    color: #1d1d22;

    margin-bottom: 7px;
}

.c3p_search_result p {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;

    color: rgba(29, 29, 34, 0.72);
}


/* PAGINA RISULTATI RICERCA */

.c3p_search_page {
    width: 100%;

    background: #e9ecf4;

    padding: 70px 0 100px;
}

.c3p_search_page_int {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.c3p_search_page_head {
    max-width: 900px;

    margin-bottom: 45px;
}

.c3p_search_page_breadcrumb {
    font-size: 12px;
    line-height: 1;
    font-weight: 800;

    color: #1d1d22;

    margin-bottom: 28px;
}

.c3p_search_page_breadcrumb a {
    color: #1d1d22;
    text-decoration: none;
}

.c3p_search_page_breadcrumb span {
    color: #ff1f10;
}

.c3p_search_page_head h2 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;

    color: #1d1d22;
}

.c3p_search_page_head .linea_rossa {
    margin-top: 12px;
}

.c3p_search_page_grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.c3p_search_page_item {
    min-height: 260px;

    display: flex;
    flex-direction: column;

    background: #fff;
    color: #1d1d22;

    border-radius: 14px;

    overflow: hidden;

    text-decoration: none;

    transition: all 0.25s ease;
}

.c3p_search_page_item:hover {
    transform: translateY(-3px);
}

.c3p_search_page_img {
    width: 100%;
    height: 180px;

    background: #d8dce6;

    overflow: hidden;
}

.c3p_search_page_img img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.c3p_search_page_txt {
    padding: 24px 24px 26px;
}

.c3p_search_page_type {
    display: block;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;

    color: #ff1f10;

    margin-bottom: 10px;
}

.c3p_search_page_txt h3 {
    font-size: 23px;
    line-height: 1.15;
    font-weight: 700;

    color: #1d1d22;

    margin-bottom: 12px;
}

.c3p_search_page_txt p {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;

    color: #1d1d22;
}

.c3p_search_page_empty {
    max-width: 760px;

    font-weight: 500;
    color: #1d1d22;
}

.c3p_search_pagination {
    margin-top: 45px;
}

.c3p_search_pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.c3p_search_pagination a,
.c3p_search_pagination span {
    min-width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    border-radius: 6px;

    background: #fff;
    color: #1d1d22;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.c3p_search_pagination .current,
.c3p_search_pagination a:hover {
    background: #ff1f10;
    color: #fff;
}


/* MEDIA FOR TABLET AND MOBILE DEVICE */

@media only screen and (max-width: 800px) {

    .c3p_search_popup {
        padding: 22px 0;

        align-items: flex-start;
    }

    .c3p_search_box {
        width: 92%;
        max-height: calc(100vh - 44px);

        padding: 48px 24px 34px;

        border-radius: 16px;
    }

    .c3p_search_close {
        right: 16px;
        top: 16px;

        width: 42px;
        height: 42px;
    }

    .c3p_search_close span {
        width: 21px;
        height: 4px;
    }

    .c3p_search_head {
        margin-bottom: 26px;
    }

    .c3p_search_head h2 {
        font-size: 31px;
        line-height: 1.15;
    }

    .c3p_search_input {
        height: 58px;

        font-size: 17px;

        padding-left: 17px;
        padding-right: 66px;
    }

    .c3p_search_submit {
        width: 42px;
        height: 42px;

        right: 8px;
    }

    .c3p_search_results_list {
        grid-template-columns: 1fr;
        gap: 12px;

        margin-top: 20px;
    }

    .c3p_search_result {
        min-height: 104px;

        gap: 13px;

        padding: 12px;
    }

    .c3p_search_result_img {
        width: 74px;
        flex-basis: 74px;
    }

    .c3p_search_result h3 {
        font-size: 17px;
    }

    .c3p_search_result p {
        font-size: 13px;
    }


    .c3p_search_page {
        padding: 55px 0 75px;
    }

    .c3p_search_page_head {
        margin-bottom: 36px;
    }

    .c3p_search_page_head h2 {
        font-size: 28px;
    }

    .c3p_search_page_grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .c3p_search_page_img {
        height: 210px;
    }

    .c3p_search_page_txt {
        padding: 22px 22px 24px;
    }

    .c3p_search_page_txt h3 {
        font-size: 22px;
    }

}


/* SEARCH MOBILE NEL MENU */

@media only screen and (max-width: 800px) {

    .gm-navigation-drawer .flex-grow-1 {
        flex-grow: 0 !important;
    }

    .gm-navigation-drawer .gm-mobile-action-area-wrapper {
        width: 100%;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        margin-top: 26px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .gm-navigation-drawer .gm-mobile-action-area-wrapper .gm-search.fullscreen {
        width: auto;
        min-width: 132px;
        height: 54px;

        border-radius: 40px;

        background: #eef1f7;
        color: #5a5a5a;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px;

        padding: 0 24px;

        cursor: pointer;

        transition: all 0.25s ease;
    }

    .gm-navigation-drawer .gm-mobile-action-area-wrapper .gm-search.fullscreen:hover {
        background: #ff1f10;
        color: #fff;
    }

    .gm-navigation-drawer .gm-mobile-action-area-wrapper .gm-search.fullscreen i {
        width: 24px;
        height: 24px;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 24px;
        line-height: 1;

        color: currentColor;

        margin: 0;
        padding: 0;

        transition: all 0.25s ease;
    }

    .gm-navigation-drawer .gm-mobile-action-area-wrapper .gm-search__txt {
        display: inline-block !important;

        font-size: 0;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;

        color: currentColor;

        margin: 0;
        padding: 0;
    }

    .gm-navigation-drawer .gm-mobile-action-area-wrapper .gm-search__txt::after {
        content: "Cerca";

        font-size: 14px;
        line-height: 1;
        font-weight: 800;
        text-transform: uppercase;

        color: currentColor;
    }

}
