/* CSS dedicato solo per l'Header DI fjd */

/* HEADER FJD */


/* Reset base per body */
.header_fjd-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-sizing: border-box;
    font-family: Figtree, 'sans-serif';
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header_fjd-bar {
    max-width: 1600px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 50px 0 50px;
    box-sizing: border-box;
    font-family: Figtree, 'sans-serif';
    overflow: visible;
}

.logo_header {
    width: 185px;
    height: auto;
    object-fit: contain;
    display: block;
}

.desktop_no {
    display: none;
}


.header_fjd_buttons-container {
    display: flex;
    gap: 10px;
    flex: 0 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header_fjd_buttons-container::-webkit-scrollbar {
    display: none;
}


.flex_link_header_fjd {
    display: inline-flex;
    gap: 5px;
    white-space: nowrap;
}

.flex_link_header_fjd a {
    padding: 0 10px;
    border-right: 1px solid black;
    color: #8E8E8E;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    text-decoration: underline;
    font-weight: 500;
}

.flex_link_header_fjd a:last-child {
    border-right: none;
}

.flex_link_header_fjd a:hover {
    text-decoration: underline;
    cursor: pointer;
    color: #1a1a1a;
    font-weight: 500;
}

.flex_link_header_fjd a:active {
    text-decoration: underline;
    cursor: pointer;
}

.button_spacer_display_none {
    display: none;

}


.display_none_header_fjd {
    display: none;
    background-color: #1a1a1a;
}

/* Contenuto demo */
.demo-content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.demo-content h2 {
    color: #333;
    margin: 30px 0 15px 0;
}

.demo-content p {
    margin-bottom: 20px;
    color: #666;
}

.header_fjd-category-tabs-wrapper {
    overflow: hidden;
    position: relative;
}

.header_fjd-container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0px;
    display: flex;
    justify-content: flex-end;
}

.header_fjd-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    margin-left: 50px;
}

.header_fjd-category-tabs::-webkit-scrollbar {
    display: none;
}

.header_fjd-tab-item {
    flex-shrink: 0;
    padding: 10px 18px 10px 0px;
    border: none;
    border-radius: 25px;
    font-family: Figtree, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #8E8E8E;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: underline;

}

.header_fjd-tab-item:hover {
    color: white;
    text-decoration: underline;
}

.header_fjd-tab-item.active {
    text-decoration: underline;
    color: rgb(255, 255, 255);
    font-weight: 400;
}


.button_spacer {
    display: flex;
    gap: 10px;
}


.preventivo {
    width: 130px;
    height: 40px;
    font-size: 16px;
    font-family: Figtree, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: #FFDD23;
    color: #000000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: Figtree, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: #A3D3E9;
    color: #000000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    gap: 8px;
    width: 80px;
    height: 40px;
}

.demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: Figtree, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: #A3D3E9;
    color: #000000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    gap: 8px;
    width: 80px;
    height: 40px;
}

.demo:hover {
    background-color: #65a9c9;
}

.preventivo:hover {
    background-color: #d1b61f;
}

/* POPUP PREVENTIVO */
.popup_overlay,
.popup_overlay_rivenditore {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    touch-action: manipulation;
}

/* BOX */
.popup_preventivo_box,
.popup_rivenditore_box_ {
    background: #fff;
    width: 95%;
    max-width: 760px;
    border-radius: 14px;
    padding: 0 40px 40px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: popupShow 0.25s ease;
    font-family: Figtree, sans-serif;
    touch-action: manipulation;
}



/* ANIMAZIONE */
@keyframes popupShow {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* CLOSE BUTTON */
.popup_close,
.popup_close_rivenditore {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white
}

/* HEADER NERO */
.popup_header_fjd {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin: 0 -40px 10px;
}

.popup_header_fjd img {
    width: 200px;
}

/* TITOLI */
.popup_title_fjd {
    text-align: center;
    font-size: 38px;
    line-height: 44px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 10px;
    color: #000;
}
.popup_title_fjd2 {
    text-align: center;
    font-size: 38px;
    line-height: 44px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 10px;
    color: #000;
}

.popup_subtitle_fjd {
    text-align: center;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 25px;
}
.popup_subtitle_fjd2 {
    text-align: center;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 25px;
}

/* FORM */
.popup_form_fjd {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form_row {
    display: flex;
    gap: 20px;
}

.form_group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form_group label {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
    color: #000;
}
.form_2col label {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
    color: #000;
}

.form_group input,
.form_group select,
.form_group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #D9D9D9;
    font-size: 15px;
    font-family: Figtree;
    touch-action: manipulation;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    border-color: #FFDD23;
    outline: none;
    touch-action: manipulation;
}

/* PRIVACY */
.popup_privacy {
    font-size: 12px;
    line-height: 18px;
    color: #7f7f77;
    margin-top: -5px;
}

.bottone_popup_centrato {
    text-align: center;
}

/* BOTTONE GIALLO */
.popup_button {
    background: #FFDD23;
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 300px;
    text-align: center;
}
.popup_button2 {
    background: #FFDD23;
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 150px;
    text-align: center;
}

.popup_button:hover {
    background: #e5c821;
}
.popup_button2:hover {
    background: #e5c821;
}


/* DEMO FORM */
#overlay_demo {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup_demo_box {
    background: #fff;
    width: 95%;
    max-width: 760px;
    border-radius: 14px;
    padding: 0 40px 40px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: popupShow 0.25s ease;
    font-family: Figtree, sans-serif;
}

/* ANIMAZIONE */
@keyframes popupShow {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}


/* CLOSE BUTTON */
.popup_close_demo {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white
}

/* HEADER NERO */
.popup_demo_header_fjd {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin: 0 -40px 10px;
}

.popup_demo_header_fjd img {
    width: 200px;
}

/* TITOLI */
.popup_title_fjd_demo {
    text-align: center;
    font-size: 38px;
    line-height: 44px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 10px;
    color: #000;
}
.popup_title_fjd2_demo,
.popup_title_fjd_demo3,
.popup_title_fjd_demo4 {
    text-align: center;
    font-size: 38px;
    line-height: 44px;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 10px;
    color: #000;
}

.popup_subtitle_fjd_demo {
    text-align: center;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
}
.popup_subtitle_fjd_demo_ultimo {
    text-align: center;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 20px;
}
.popup_subtitle_fjd2_demo,
.popup_subtitle_fjd_demo3,
.popup_subtitle_fjd_demo4 {
    text-align: center;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    padding-bottom: 25px;
}

/* FORM */
.popup_form_fjd_demo {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form_row_ {
    display: flex;
    gap: 20px;
}

.form_group_demo {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form_group_demo label {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
    color: #000;
}

.form_group_demo input,
.form_group_demo select,
.form_group_demo textarea {
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-family: Figtree;
}

.form_group_demo input:focus,
.form_group_demo select:focus,
.form_group_demo textarea:focus {
    border-color: #FFDD23;
    outline: none;
}

/* PRIVACY */
.privacy {
    font-size: 12px;
    line-height: 18px;
    color: #7f7f77;
    margin-top: -5px;
}

.bottone_popup_centrato_demo {
    text-align: center;
}

/* BOTTONE GIALLO */
.demo_button {
    background: #A3D3E9;
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 300px;
    text-align: center;
}
.popup_button2_demo {
    background: #A3D3E9;
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 150px;
    text-align: center;
}

.demo_button:hover {
    background: #65A9C9;
}
.popup_button2_demo:hover {
    background: #65A9C9;
}

/* ERRORI */
.error_msg {
    color: red;
    font-size: 12px;
    margin-top: 0px;
    text-align: end;
    line-height: 18px; 
}



select,
input,
textarea {
    padding: 8px;
    border: 1px solid #bfbfbf;
    border-radius: 7px;
}

.checkbox_row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
}

.checkbox_row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.form_2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form_2col input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

.form_2col input:focus {
    border-color: #65A9C9;  
    outline: none;           

}

.form_group_demo select:focus {
    border-color: #65A9C9;  
    outline: none;           
}

.form_group_demo textarea:focus {
    border-color: #65A9C9;  
    outline: none;           
}


#demo_success {
    display: none;
}

input[type="checkbox"] {
    accent-color: #A3D3E9;
}





/* RESPONSIVE */
@media(max-width: 699px) {
    .form_row { flex-direction: column; }
}





/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .header_fjd-bar {
        height: auto;
        padding: 5px 0px 5px 0px;
        gap: 15px;
        justify-items: center;
    }
}



/* Responsive Design - Mobile */
@media (max-width: 480px) {

    .header_fjd_title_display_none {
        font-size: 16px;
        line-height: 20px;
        max-width: 280px;
    }
}

/* Padding Responsive */
@media (max-width: 870px) {
    .header_fjd-container {
        padding-right: 0px;
    }
}

/* Font Resize */
@media (max-width: 699px) {
    .header_fjd_iscrizione-btn,
    .header_fjd_comment-btn,

    .header_fjd_title_display_none {
        font-size: 14px;
        line-height: 19px;
    }
}

/* Gestione visibilità menu */
@media (min-width: 1252px) {
    .display_none_header_fjd {
        display: none;
    }


}

@media (max-width: 1350px) {
    .display_none_header_fjd {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .display_none_header_fjd::-webkit-scrollbar {
        display: none;
    }

    .display_none_header_fjd a {
        flex-shrink: 0;
        white-space: nowrap;
    }


    .flex_link_header_fjd {
        display: none !important;
    }

    .header_fjd-bar {
        padding: 5px 0px;
    }
}


/* Layout mobile con scroll */
@media (max-width: 1350px) {

    .header_fjd-title {
        display: flex;
        justify-content: center;
        text-transform: uppercase;
    }

    .header_fjd-bar {
        gap: 5px;
        display: flex;
        flex-direction: column;
        height: 85px;
    }

    .header_fjd_title_display_none {
        display: none;
    }

    .header_fjd_buttons-container,
    .display_none_header_fjd {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }

    .header_fjd_buttons-container::-webkit-scrollbar,
    .display_none_header_fjd::-webkit-scrollbar {
        display: none;
    }

    .header_fjd_buttons-container>*,
    .display_none_header_fjd>* {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header_fjd_buttons-container {
        flex: 0 150 auto;
    }

    .header_fjd-category-tabs {
        margin-left: 50px;
    }



}

@media (min-width: 401px) and (max-width: 550px) {
    .header_fjd_buttons-container {
        flex: 0 150 auto;
    }
}

@media (max-width: 400px) {
    .header_fjd_buttons-container {
        flex: 0 150 auto;
    }
}


@media (max-width: 699px) {
    .header_fjd-tab-item {
        padding: 8px 10px 0px 0px;
        font-size: 14px;
    }



    .button_spacer_display_none a {
        font-size: 13px;
        width: 55px;
        height: 25px;
    }
}

@media (max-width: 409px) {
    .header_fjd-category-tabs {
        margin-left: 30px;

    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .header_fjd-category-tabs {
        margin-left: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .header_fjd-category-tabs {
        margin-left: 30px;
    }
}


/* --- Nuovo layout sotto i 950px --- */
@media (max-width: 1350px) {
    .header_fjd-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        height: auto;
        padding: 10px 0px 0px;
    }

    /* Riga con titolo e bottoni */
    .header_fjd_top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1350px;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        padding: 0px 50px 10px;
    }

    .header_fjd-title {
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
        flex-shrink: 0;
    }

    .button_spacer_display_none {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .button_spacer {
        display: none;
    }

    .header_fjd_title_display_none {
        display: none;
    }

    .header_fjd_buttons-container,
    .display_none_header_fjd {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: start;
        width: 100%;
        padding: 0px 50px;
        box-sizing: border-box;
    }

    .header_fjd_buttons-container::-webkit-scrollbar,
    .display_none_header_fjd::-webkit-scrollbar {
        display: none;
    }

    .header_fjd_buttons-container>*,
    .display_none_header_fjd>* {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .header_fjd_buttons-container {
        flex: 0 150 auto;
    }

    .header_fjd-category-tabs {
        margin-left: 0px;
        margin-right: 0px;
    }

    /*  .header_fjd-bar {
        padding: 10px 0px;
     } */

}


@media (max-width: 1100px) {

    .header_fjd_buttons-container,
    .display_none_header_fjd {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        justify-content: flex-start;
        width: 100%;
    }



}


@media (max-width: 409px) {

    .header_fjd_top-row,
    .display_none_header_fjd {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .header_fjd-category-tabs {
        margin-left: 0px;
        margin-right: 0px;

    }

}

@media (min-width: 410px) and (max-width: 699px) {

    .header_fjd_top-row,
    .display_none_header_fjd {
        padding-left: 50px;
        padding-right: 50px;
        width: 100%;
        box-sizing: border-box;

    }

    .header_fjd-category-tabs {
        margin-left: 0px;
        margin-right: 0px;


    }

}

@media (min-width: 700px) and (max-width: 870px) {

    .header_fjd_top-row,
    .display_none_header_fjd {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .header_fjd-category-tabs {
        margin-left: 0px;
        margin-right: 0px;

    }

}

@media (max-width: 379px) {
    .header_fjd_title_display_none {
        display: block;
        font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
        flex-shrink: 0;
        color: white;
    }

    .header_fjd-title {
        display: none;
    }
}

@media (max-width: 1250px) {
    .header_fjd-category-tabs {
        gap: 10px;
        align-items: baseline;
    }
}

@media (min-width: 1275px) and (max-width: 1350px) {
    .header_fjd-category-tabs {
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media (min-width: 700px) {
    .preventivo_header {
        display: none;
    }

    .demo_header {
        display: none;
    }

    .bottone_store {
        display: none;
    }
}

@media (max-width: 699px) {
    .preventivo {
        display: none;
    }

    .demo {
        display: none;
    }

    .store_header {
        width: 100px;
        height: 40px;
        font-size: 16px;
        font-family: Figtree, 'sans-serif';
        font-weight: 700;
        line-height: 22px;
        background-color: #FFDD23;
        color: #000000;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
    }

    .preventivo_header {
        height: 40px;
        font-size: 16px;
        font-family: Figtree, 'sans-serif';
        font-weight: 700;
        line-height: 22px;
        color: #FFDD23;
        background-color: transparent;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
    }

    .demo_header {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-family: Figtree, 'sans-serif';
        font-weight: 700;
        line-height: 22px;
        color: #A3D3E9;
        background-color: transparent;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        gap: 8px;
        height: 40px;
    }
}


@media (max-width: 390px) {


    .preventivo_header,
    .demo_header,
    .store_header {
        width: 100%;
        height: 40px;
        padding: 0px 10px;
        font-size: 14px;
        line-height: 20px;

    }

    .logo_header {
        width: 140px;
    }
}

/* POPUP PREVENTIVO MOBILE  */
@media (max-width: 1000px) {

    .popup_preventivo_box,
    .popup_rivenditore_box_ {
        width: 100%;
        max-width: 95%;
        padding: 0 14px 18px;
        border-radius: 12px;
        max-height: 100vh;
        overflow: hidden; 
    }

    
    .popup_header_fjd {
        margin: 0 -14px 12px;
        padding: 12px 0;
    }
    .popup_header_fjd img {
        width: 130px;
    }


    .popup_close {
        top: 8px;
        right: 8px;
        font-size: 20px;
    }

    
    .popup_title_fjd,
    .popup_title_fjd2 {
        font-size: 22px;
        line-height: 28px;
        padding-bottom: 5px;
    }

    .popup_subtitle_fjd,
    .popup_subtitle_fjd2 {
        font-size: 13px;
        line-height: 18px;
        padding-bottom: 10px;
    }

    .form_row {
        display: flex;
        flex-direction: row; 
        gap: 10px;        
        }

    .form_group {
        flex: 1; 
    }

    .form_group label {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .form_group input,
    .form_group select,
    .form_group textarea {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }


    .popup_privacy {
        font-size: 10px;
        line-height: 14px;
        margin-top: -2px;
    }

    .popup_button,
    .popup_button2 {
        padding: 10px;
        font-size: 15px;
        border-radius: 8px;
    }

    .popup_form_fjd {
        gap: 6px;
    }
}


/* POPUP DEMO MOBILE  */
@media (max-width: 1000px) {

    .popup_demo_box {
        width: 100%;
        max-width: 95%;
        padding: 0 14px 18px;
        border-radius: 12px;
        max-height: 100vh;
        overflow: hidden; 
    }

    
    .popup_demo_header_fjd {
        margin: 0 -14px 12px;
        padding: 12px 0;
    }
    .popup_demo_header_fjd img {
        width: 130px;
    }


    .popup_close_demo {
        top: 8px;
        right: 8px;
        font-size: 20px;
    }

    
    .popup_title_fjd_demo,
    .popup_title_fjd2_demo,
    .popup_title_fjd2_demo3,
    .popup_title_fjd2_demo4 {
        font-size: 22px;
        line-height: 28px;
        padding-bottom: 5px;
    }

    .popup_subtitle_fjd_demo,
    .popup_subtitle_fjd_demo_ultimo {
        font-size: 13px;
        line-height: 18px;
        padding-bottom: 10px;
    }

    .form_row_ {
        display: flex;
        flex-direction: row; 
        gap: 10px;        
        }

    .form_group_demo {
        flex: 1; 
    }

    .form_group_demo label {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .form_group_demo input,
    .form_group_demo select,
    .form_group_demo textarea {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }


    .privacy {
        font-size: 10px;
        line-height: 14px;
        margin-top: -2px;
    }

    .demo_button,
    .popup_button2_demo {
        padding: 10px;
        font-size: 15px;
        border-radius: 8px;
    }

    .popup_form_fjd_demo {
        gap: 3px;
    }

    .form_2col label {
        font-size: 12px !important;
        line-height: 18px !important;
        margin-bottom: 2px !important;
    }

       input,
     select,
     textarea {
        padding: 6px !important;
        font-size: 13px;
        border-radius: 6px;
    }

     .popup_subtitle_fjd_demo_ultimo {
        display: none;
     }

     .checkbox_row {
        gap: 0px 20px;
     }
}



/* Rimuove sfondo giallo/azzurro dell'autocomplete */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #000 !important; /* colore testo */
}

[data-scrollspy-nav-mobile] {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
[data-scrollspy-nav-mobile] a {
    display: inline-block;
}

@media (max-width: 699px) {
    .header_fjd_top-row {
        justify-content: center !important;
    }
}