/* CSS dedicato solo per l'Header del clienti */

/* Reset base per body */
.clienti_header-container {
    position: sticky;
    top: var(--st-fixed-header-h, 125px);
    left: 0;
    width: 100%;
    background: #efefef;
    z-index: 1000;
    box-sizing: border-box;
    font-family: Inter, 'sans-serif';
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: none;
}

/* wrapper interno con max-width */
.clienti_header-bar {
    max-width: 1600px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 50px 0 50px;
    box-sizing: border-box;
    font-family: Inter, 'sans-serif';
    overflow: visible;
}

.clienti_header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 22px;
    color: #020202;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;

}

.clienti_title_display_none {
    display: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 22px;
    color: #020202;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.clienti_buttons-container {
    display: flex;
    gap: 10px;
    flex: 0 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 auto;
}

.clienti_buttons-container::-webkit-scrollbar {
    display: none;
}

.clienti_comment-group,
.clienti_iscrizione-group {
    width: auto;
    height: auto;
}

.clienti_comment-btn {
    font-size: 15px;
    line-height: 20px;
    border-radius: 18px;
    color: #008BEE;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-family: Inter;
}

.clienti_comment-btn:hover {
    color: #0077cc;
}

.clienti_iscrizione-btn {
    border: solid 2px #000;
    border-radius: 18px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 16px;
}

.clienti_iscrizione-btn:hover {
    background-color: black;
    color: white;
}

.flex_link_clienti {
    display: inline-flex;
    gap: 5px;
    white-space: nowrap;
}

.flex_link_clienti a {
    padding: 0 10px;
    border-right: 1px solid black;
    color: #828282;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 22px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    text-decoration: none;
}

.flex_link_clienti a:last-child {
    border-right: none;
}

.flex_link_clienti a:hover {
    text-decoration: underline;
    cursor: pointer;
    color: black;
}

.flex_link_clienti a:active {
    text-decoration: underline;
    cursor: pointer;
}

.button_spacer_display_none {
    display: none;

}


#contatti {
    scroll-margin-top: -160px;
}

#social {
    scroll-margin-top: 70px;
}

#raggiungerci {
    scroll-margin-top: 80px;
}

#forum {
    scroll-margin-top: 150px;
}

#lavora {
    scroll-margin-top: 70px;
}

#rivenditore {
    scroll-margin-top: 70px;
}

.display_none_clienti {
    display: none;
}

/* 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;
}

.clienti-category-tabs-wrapper {
    overflow: hidden;
    position: relative;
}

.clienti-container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0px;
    display: flex;
    justify-content: flex-end;
}

.clienti-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;
}

.clienti-category-tabs::-webkit-scrollbar {
    display: none;
}

.clienti-tab-item {
    flex-shrink: 0;
    padding: 10px 18px 0px 0px;
    border: none;
    border-radius: 25px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #828282;
    cursor: pointer;
    white-space: nowrap;
}

.clienti-tab-item:hover {
    color: black;
}

.clienti-tab-item.active {
    text-decoration: underline;
    color: black;
    font-weight: 400;
}


.button_spacer {
    display: flex;
}


.preventivo {
    width: 115px;
    height: 30px;
    font-size: 14px;
    font-family: Inter, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: transparent;
    color: #008BEE;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}

.button_spacer a {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    font-size: 14px;
    font-family: Inter, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: transparent;
    color: #45ab32;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    width: 70px;
    height: 30px;
    gap: 8px;
}

.button_spacer_display_none a,
.DEMO {
    display: inline-flex;
    align-items: center;
    justify-content: end;
    font-size: 14px;
    font-family: Inter, 'sans-serif';
    font-weight: 700;
    line-height: 22px;
    background-color: transparent;
      color: #45ab32;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    width: 50px;
    height: 30px;
    gap: 8px;
}

.button_spacer a:hover {
color: #378529;
}

.button_spacer_display_none a,
.DEMO:hover {
    color: #378529;
}

.preventivo:hover {
    color: #0077cc;
}

/* DESKTOP scrollspy active */
.flex_link_clienti a.active {
    text-decoration: underline;
    color: #000;
}



/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .clienti_header-bar {
        height: auto;
        padding: 5px 0px 5px 0px;
        gap: 15px;
        justify-items: center;
    }
}



/* Responsive Design - Mobile */
@media (max-width: 480px) {

    .clienti_title_display_none {
        font-size: 16px;
        line-height: 20px;
        max-width: 280px;
    }
}

/* Padding Responsive */
@media (max-width: 870px) {
    .clienti_header-container {
        padding-right: 0px;
    }
}

/* Font Resize */
@media (max-width: 699px) {
    .clienti_iscrizione-btn,
    .clienti_comment-btn,

    .clienti_title_display_none {
        font-size: 14px;
        line-height: 19px;
    }
}

/* Gestione visibilità menu */
@media (min-width: 1252px) {
    .display_none_clienti {
        display: none;
    }


}

@media (max-width: 1350px) {
    .display_none_clienti {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .display_none_clienti::-webkit-scrollbar {
        display: none;
    }

    .display_none_clienti a {
        flex-shrink: 0;
        text-decoration: none;
        white-space: nowrap;
    }


    .flex_link_clienti {
        display: none !important;
    }

    .clienti_header-bar {
        padding: 5px 0px;
    }
}

/* Layout mobile con scroll */
@media (max-width: 1350px) {

    .clienti_header-title {
        display: flex;
        justify-content: center;
        text-transform: uppercase;
    }

    .clienti_header-bar {
        gap: 5px;
        display: flex;
        flex-direction: column;
        height: 85px;
    }

    .clienti_title_display_none {
        display: none;
    }

    .clienti_buttons-container,
    .display_none_clienti {
        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%;
    }

    .clienti_buttons-container::-webkit-scrollbar,
    .display_none_clienti::-webkit-scrollbar {
        display: none;
    }

    .clienti_buttons-container>*,
    .display_none_clienti>* {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .clienti_buttons-container {
        flex: 0 150 auto;
    }

    .clienti-category-tabs {
        margin-left: 50px;
    }



}

@media (min-width: 401px) and (max-width: 550px) {
    .clienti_buttons-container {
        flex: 0 150 auto;
    }
}

@media (max-width: 400px) {
    .clienti_buttons-container {
        flex: 0 150 auto;
    }
}


@media (max-width: 699px) {
    .clienti-tab-item {
        padding: 8px 10px 0px 0px;
        font-size: 14px;
    }

    button.preventivo {
        font-size: 13px;
        width: 95px;
        height: 25px;
    }

    .button_spacer_display_none a,
    .DEMO {
        font-size: 13px;
        width: 55px;
        height: 25px;
    }
}

@media (max-width: 409px) {
    .clienti-category-tabs {
        margin-left: 30px;

    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .clienti-category-tabs {
        margin-left: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .clienti-category-tabs {
        margin-left: 30px;
    }
}


/* --- Nuovo layout sotto i 950px --- */
@media (max-width: 1350px) {
    .clienti_header-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        height: auto;
        padding: 10px 0px;
    }

    /* Riga con titolo e bottoni */
    .clienti_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;
    }

    .clienti_header-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;
    }

    .clienti_title_display_none {
        display: none;
    }

    .clienti_buttons-container,
    .display_none_clienti {
        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;
    }

    .clienti_buttons-container::-webkit-scrollbar,
    .display_none_clienti::-webkit-scrollbar {
        display: none;
    }

    .clienti_buttons-container>*,
    .display_none_clienti>* {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .clienti_buttons-container {
        flex: 0 150 auto;
    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;
    }

    /*  .clienti_header-bar {
        padding: 10px 0px;
     } */

}


@media (max-width: 1100px) {

    .clienti_buttons-container,
    .display_none_clienti {
        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) {
    .clienti_top-row,
    .display_none_clienti {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;

    }

    .clienti_header-bar {
        padding: 10px 0px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .clienti_top-row,
    .display_none_clienti {
        padding-left: 50px;
        padding-right: 50px;
        width: 100%;
        box-sizing: border-box;

    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;


    }

    .clienti_header-bar {
        padding: 10px 0px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .clienti_top-row,
    .display_none_clienti {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .clienti-category-tabs {
        margin-left: 0px;
        margin-right: 0px;

    }

    .clienti_header-bar {
        padding: 10px 0px;
    }
}

@media (max-width: 379px) {
    .clienti_title_display_none {
display: block;
font-size: 16px;
        font-weight: 800;
        text-transform: uppercase;
        margin: 0;
        flex-shrink: 0;
    }

   .clienti_header-title {
        display: none;
    }
}

@media (max-width: 1250px) {
      .clienti-category-tabs {
        gap: 10px;
    }
}

@media (min-width: 1275px) and (max-width: 1350px) {
      .clienti-category-tabs {
       margin-left: 0px;
       margin-right: 0px;
    }
}

@media (max-width: 1280px) {
    .clienti_header-container {
        top: var(--st-fixed-header-h, 55px) !important;
    }


}


/* POPUP INFORMAZIONI */
/* POPUP GENERALE */
.informazioni-LiDAR-SLAM {
    display: none; 
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; 
    align-items: center;
    justify-content: center;

}

/* Sfondo Nero quando il popup è attivo */
.informazioni-LiDAR-SLAM.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.85); /* Nero profondo come richiesto */
    animation: unfoldInEstimate .5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Sfondo cliccabile (Overlay) */
.informazioni-popup-background_LiDAR {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Modal Bianco (Il contenuto) */
.informazioni-popup-modal_LiDAR {
    position: relative;
    background-color: #fff;
    color: #000;
    width: 90%;
    max-width: 650px;
    padding: 35px 50px;
    border-radius: 20px;
    z-index: 2;
    /* Animazione Zoom-In simile al tuo CSS */
    transform: scale(0);
    animation: zoomInEstimate 0.3s 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.informazioni-LiDAR-SLAM.show .informazioni-popup-modal_LiDAR {
    animation: zoomInEstimate 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


/* Animazioni (Copia delle tue esistenti per coerenza) */
@keyframes unfoldInEstimate {
    0% { transform: scaleY(0.005) scaleX(0); }
    50% { transform: scaleY(0.005) scaleX(1); }
    100% { transform: scaleY(1) scaleX(1); }
}

@keyframes zoomInEstimate {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}


/* Posizionamento della X */
.informazioni-close-btn_LiDAR {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px; /* Dimensione generosa per essere cliccabile */
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.informazioni-close-btn_LiDAR:hover {
    transform: scale(1.1); /* Effetto ingrandimento al passaggio */
}

/* Animazione di chiusura */
@keyframes zoomOutEstimate {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

/* Animazione inversa per il modal quando si chiude */
.informazioni-LiDAR-SLAM.hide .informazioni-popup-modal_LiDAR {
    animation: zoomOutEstimate 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Fade out sfondo */
.informazioni-LiDAR-SLAM.hide {
    animation: fadeOutOverlay 0.3s forwards;
}

@keyframes fadeOutOverlay {
    0% { background-color: rgba(0, 0, 0, 0.85); }
    100% { background-color: rgba(0, 0, 0, 0); }
}


.quote-title_popup {
    color: #000;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    padding-bottom: 5px;
    text-align: center;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
}

.quote-description_popup {
    padding-bottom: 0px;
    color: #8c8c8c;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
        margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    text-align: center;
}

#formInformazioni_droniDji{
    margin-top: 20px;
}

.quote-input-field_popup {
    box-shadow: none !important;
    background: transparent !important;
    color: rgb(0, 0, 0) !important;
    padding: 10px 20px 10px;
    border-radius: 6px !important;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px; 
    
}


.quote-privacy-check_popup {
    font-size: 9px !important;
    line-height: 15px !important;
    font-family: Inter, sans-serif !important;
    color: #393939 !important;
    font-weight: 400 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: -25px !important;
}

.quote-privacy-link_popup {
    text-decoration: underline !important;
    color: #000 !important;
    font-size: 9px !important;
    line-height: 15px !important;
    font-family: Inter, sans-serif !important;
    font-weight: 500 !important;
}

.quote-submit-button_popup {
    background-color: #008bee;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-family: Inter, 'sans-serif';
    transition: background-color 0.3s ease;
}

/* Contenitore input */
.input-group_popup {
    position: relative;
    margin-bottom: 20px;
}

/* Input normale */
.quote-input-field_popup,
.quote-input-field-textarea_popup {
    width: 100%;
    padding: 10px 20px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: none;
}

/* Label fluttuante */
.input-group_popup label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #777;
    pointer-events: none;
    background: #fff;
    padding: 0 5px;
    transition: all 0.2s ease;
}

/* Quando il campo ha focus o ha testo */
.input-group_popup input:focus + label,
.input-group_popup input:not(:placeholder-shown) + label,
.input-group_popup textarea:focus + label,
.input-group_popup textarea:not(:placeholder-shown) + label {
    top: -1px;
    font-size: 13px;
    color: #008bee; /* colore etichetta attiva */
}

/* Bordo blu quando focus */
.quote-input-field_popup:focus,
.quote-input-field-textarea_popup:focus {
    border: 1px solid #008bee;
}


/* Label di textarea normale */
.input-group_popup textarea + label {
    top: 20%;
    resize: none;
}

.input-group_popup textarea {
    resize: none;
}

.quote-button-container_popup {
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

input.error,
textarea.error,
select.error {
    border: 1px solid red;
}

input:not(.error),
textarea:not(.error),
select:not(.error) {
    border: 1px solid #ccc;
}


.popup_button2 {
    background: #008bee;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 116px;
    text-align: center;
}

.popup_button2:hover {
    background-color: #007BFF;
}