/* hero_p2 SECTION */
.hero_p2-section {
    background-color: #000;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* hero_p2 CONTAINER */
.hero_p2-container {
    padding-top: 60px;
    display: block;
    padding-bottom: 60px;
    padding-left: 50px;
    padding-right: 50px;
    margin-top: 125px;
}

/* hero_p2 WRAPPER */
.hero_p2-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

/* COLONNA SINISTRA */
.hero_p2-col-left {
    width: 50%;
    max-width: 700px;
    display: flex;
    justify-content: center;
}

/* hero_p2 CONTENT */
.hero_p2-content {
    padding-right: 10px;
    width: 100%;
}

/* SOTTOTITOLO */
.hero_p2-subtitle {
    font-family: Inter !important;
    font-size: 26px;
    line-height: 30px;
    color: #fff;
    font-weight: 500;
    text-align: left;
    margin-bottom: 35px
}

/* TITOLO PRINCIPALE */
.hero_p2-title {
    font-family: Inter;
    font-size: 50px;
    line-height: 58px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    margin-bottom: 45px;
}

/* DESCRIZIONE */
.hero_p2-description {
    margin-top: 20px;
    font-family: Inter;
    font-size: 18px;
    line-height: 10px;
    font-weight: 400;
    color: #fff;
    text-align: left;
    margin-bottom: 40px;
}

/* PULSANTE PREVENTIVO */
.btn-blu {
    width: 300px;
    height: 54px;
    background-color: #008bee;
    border: 0px;
    border-radius: 30px;
    font-family: Inter;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #fff !important;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.btn-bianco {
    width: 170px;
    height: 54px;
    background-color: #ffffff;
    border: 0px;
    border-radius: 30px;
    font-family: Inter;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #000000 !important;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    display: inline-block;
    align-content: center;
}

.btn-blu:hover {
    background-color: #0067b0 !important;
}

.btn-bianco:hover {
    background-color: #bdbdbd;
}

/* INFO AGGIUNTIVE */
.hero_p2-info {
    font-family: Inter;
    font-size: 16px;
    line-height: 22px;
    color: #fff !important;
    text-align: left;
    margin-bottom: 24px;
}

/* PULSANTI CONTATTO */
.hero_p2-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.btn-outline {
    border: 2px solid #fff !important;
    border-radius: 30px;
    border-color: #fff !important;
    cursor: pointer;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    margin-right: 20px;
    display: inline-block;
}

.btn-text-scrivici {
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-family: Inter;
}

.btn-text-scrivici:hover {
    background-color: #fff !important;
    color: #000 !important;
}

.bi-envelope-fill {
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 24px;
}

.bi-telephone-fill {
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 24px;
}

/* COLONNA A DESTRA CON IMMAGINE */
.hero_p2-col-right {

    width: 50%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* IMMAGINE */
.hero_p2-content-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container-hero_p2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero_p2-image {
    max-width: 100%;
    width: 80% !important;
    height: auto;
    display: block;
}

.img-fluid,
.hero_p2-image {
    max-width: 100%;
    width: 100% !important;
    height: auto;
    display: block;
}


/* MEDIA QUERIES */
/* CLASSI RESPONSIVE PER DIMENSIONI DIVERSE DI SCHERMO */
@media (max-width: 575.98px) {
    .order-xs-first {
        order: -1;
    }

    .order-xs-last {
        order: 1;
    }

    .order-xs-0 {
        order: 0;
    }

    .hero_p2-cols-xs-12 {
        width: 100%;
    }

    .hero_p2-cols-xs-6 {
        width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .order-sm-first {
        order: -1;
    }

    .order-sm-last {
        order: 1;
    }

    .order-sm-0 {
        order: 0;
    }

    .hero_p2-cols-sm-12 {
        width: 100%;
    }

    .hero_p2-cols-sm-6 {
        width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .order-md-first {
        order: -1;
    }

    .order-md-last {
        order: 1;
    }

    .order-md-0 {
        order: 0;
    }

    .hero_p2-cols-md-12 {
        width: 100%;
    }

    .hero_p2-cols-md-6 {
        width: 50%;
    }

    .hero_p2-cols-md-4 {
        width: 33.33%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero_p2-cols-lg-12 {
        width: 100%;
    }

    .hero_p2-cols-lg-6 {
        width: 50%;
    }

    .hero_p2-cols-lg-4 {
        width: 33.33%;
    }

    .hero_p2-cols-lg-3 {
        width: 25%;
    }
}

@media (min-width: 1200px) {
    .hero_p2-cols-xl-12 {
        width: 100%;
    }

    .hero_p2-cols-xl-6 {
        width: 50%;
    }

    .hero_p2-cols-xl-4 {
        width: 33.33%;
    }

    .hero_p2-cols-xl-3 {
        width: 25%;
    }
}

/* hero_p2 CONTAINER */
@media (max-width: 409px) {
    .hero_p2-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .hero_p2-container {
        padding-left: 50px;
        padding-right: 50px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .hero_p2-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* COLONNA SINISTRA */
@media (max-width: 991px) {
    .hero_p2-col-left {
        width: 50%;
        max-width: 495.5px;
    }
}

@media (max-width: 870px) {
    .hero_p2-col-left {
        width: 50%;
        max-width: 435px;
    }
}

@media (max-width: 699px) {
    .hero_p2-col-left {
        width: 100%;
        max-width: 100%;
    }
}

/* hero_p2 CONTENT */
@media (max-width: 699px) {
    .hero_p2-content {
        padding-right: 0px;
    }
}


@media (min-width: 700px) and (max-width: 870px) {
    .hero_p2-content {
        padding-right: 30px;
    }
}

/* SOTTOTITOLO */
@media (max-width: 943px) {
    .hero_p2-subtitle {
        font-size: 22px;
        line-height: 26px;
    }
}

@media (max-width: 409px) {
    .hero_p2-subtitle {
        line-height: 28px;
        font-size: 18px;
    }
}

@media (max-width: 369px) {
    .hero_p2-subtitle {
        line-height: 26px;
        font-size: 16px;
    }
}

/* TITOLO PRINCIPALE */
@media (min-width: 1220px) and (max-width: 2000px) {
    .hero_p2-title {
        padding-right: 50px;
    }
}

@media (max-width: 1231px) {
    .hero_p2-title {
        line-height: 54px;
        font-size: 46px;
    }
}

@media (max-width: 1066px) {
    .hero_p2-title {
        line-height: 51px;
        font-size: 43px;
    }
}

@media (max-width: 964px) {
    .hero_p2-title {
        font-size: 41px;
        line-height: 48px;
    }
}

@media (max-width: 887px) {
    .hero_p2-title {
        font-size: 39px;
        line-height: 46px;
    }
}

@media (max-width: 849px) {
    .hero_p2-title {
        font-size: 38px;
        line-height: 45px;
    }
}

@media (max-width: 830px) {
    .hero_p2-title {
        font-size: 37px;
        line-height: 44px;
    }
}

@media (max-width: 810px) {
    .hero_p2-title {
        font-size: 36px;
        line-height: 43px;
    }
}

@media (max-width: 791px) {
    .hero_p2-title {
        font-size: 35px;
        line-height: 42px;
    }
}

@media (max-width: 430px) {
    .hero_p2-title {
        font-size: 34px;
        line-height: 41px;
    }
}

@media (max-width: 414px) {
    .hero_p2-title {
        font-size: 32.5px;
        line-height: 40px;
    }
}

@media (max-width: 409px) {
    .hero_p2-title {
        font-size: 33px;
        line-height: 40px;
    }
}

@media (max-width: 375px) {
    .hero_p2-title {
        font-size: 32px;
        line-height: 41px;
    }
}

@media (max-width: 369px) {
    .hero_p2-title {
        font-size: 31px;
        line-height: 40px;
    }
}

/* DESCRIZIONE */
@media (max-width: 1128px) {
    .hero_p2-description {
        font-size: 16px;
        line-height: 22px;
    }

    .hero_p2-description-p {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
        padding-bottom: 6px;
    }
}

@media (max-width: 369px) {
    .hero_p2-description {
        line-height: 20px;
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* PULSANTE PREVENTIVO */
@media (max-width: 369px) {
    .btn-blu {
        width: 100%;
        max-width: 280px;
        font-size: 18px;
        line-height: 20px;
    }
}

@media (max-width: 349px) {
    .btn-blu {
        font-size: 17px;
        line-height: 19px;
    }
}

/* INFO AGGIUNTIVE */
@media (max-width: 830px) {
    .hero_p2-info {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 402px) {
    .hero_p2-info {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (max-width: 369px) {
    .hero_p2-info {
        text-align: center;
    }
}

/* PULSANTI CONTATTO */
@media (max-width: 575.98px) {
    .hero_p2-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-outline {
        margin-bottom: 15px;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width:712px) and (max-width:751px) {
    .btn-outline {
        padding-left: 18px;
        padding-right: 18px;
        margin-right: 10px;
    }
}

@media (min-width:752px) and (max-width: 1066px) {
    .btn-outline {
        padding-left: 20px;
        padding-right: 20px;
        margin-right: 10px;
    }
}

@media (max-width: 890px) {
    .bi-envelope-fill {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 801px) {
    .bi-envelope-fill {
        font-size: 15px;
        line-height: 21px;
    }
}

@media (max-width: 890px) {
    .bi-telephone-fill {
        font-size: 16px;
        line-height: 22px;
    }
}

@media (max-width: 801px) {
    .bi-telephone-fill {
        font-size: 15px;
        line-height: 21px;
    }
}

/* COLONNA A DESTRA CON IMMAGINE */
@media (max-width: 991px) {
    .hero_p2-col-right {
        width: 50%;
        max-width: 495.5px;
    }
}

@media (max-width: 870px) {
    .hero_p2-col-right {
        width: 50%;
        max-width: 435px;
    }
}

@media (max-width: 699px) {
    .hero_p2-col-right {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 414px) {
    .hero_p2-col-right {
        padding-top: 30px;
    }
}

/* IMMAGINE */
@media (max-width: 870px) {
    .hero_p2-content-img {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 699px) {
    .hero_p2-content-img {
        padding-top: 30px;
    }
}

@media (min-width: 992px) {
    .hero_p2-image {
        max-width: 570px;
    }
}

/* Order classes per riarrangiare le colonne */
.order-first {
    order: -1;
}

.order-last {
    order: 1;
}

.order-0 {
    order: 0;
}

@media (max-width: 1280px) {
    .hero_p2-container {
        margin-top: 0px !important;
    }
}


/* Container Principale */
.demo-popup-modal_p2 {
    background-color: #f5f5f5;
    /* Grigio chiarissimo quasi bianco */
    color: #000;
    font-family: 'Inter', sans-serif;
    /* O un font sans-serif pulito */
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Tipografia */
.demo-popup-modal_p2 h2 {
    color: #000;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
}

.demo-popup-modal_p2 p {
    padding-bottom: 0px;
    color: #8c8c8c;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    /* margin-bottom: 30px; */
}

.sottotitolo_step1 {
    margin-bottom: 10px !important;
}

.sottotitolo_step2 {
    margin-bottom: 25px !important;
}

.privacy-note_preventivo {
    font-size: 10px !important;
    line-height: 16px !important;
    font-family: Inter, sans-serif !important;
    color: #393939 !important;
    font-weight: 400 !important;
    margin-bottom: 0px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.quote-privacy-link_demo {
    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;
}

/* Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}



.demo-group_p2 label:first-child {
    box-shadow: none !important;
    background: transparent !important;
    /* color: rgb(0, 0, 0) !important; */
    padding: 10px 0 10px;
    border: none !important;
    /* border-bottom: 1px solid #ccc !important; */
    border-radius: 0 !important;
    width: 90%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #5c5c5c;
    font-weight: 400;
}

.demo-group_p2 label:not(:first-child) {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    font-size: 13px;
    cursor: pointer;
    line-height: 19px;
}

.demo-group_p2 input[type="checkbox"],
.demo-group_p2 input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    /* FONDAMENTALE */
    cursor: pointer;
    flex-shrink: 0;
}

/* Check */
.demo-group_p2 input[type="checkbox"]::after,
.demo-group_p2 input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #28a745;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.demo-group_p2 input[type="checkbox"]:checked::after,
.demo-group_p2 input[type="radio"]:checked::after {
    content: "✔";
    opacity: 1;

}


/* Barra di Avanzamento */
.progress-container_p2,
.progress-container_p2-2 {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 50%;
}

.progress-bar_p2,
.progress-bar_p2-2 {
    width: 80px;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill_p2 {
    width: 50%;
    height: 100%;
    background-color: #28a745;
}

.progress-fill_p2-2 {
    width: 100%;
    height: 100%;
    background-color: #28a745;
}

.step-text_p2 {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    width: 50%;
}

/* Pulsante AVANTI (Pillola) */
.demo-next-btn_p2 {
    float: right;
    background: #45ab32;
    border: 2px solid #45ab32;
    color: #fff;
    /* padding: 12px 45px; */
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: -40px;
    border-radius: 30px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 25px;
    padding-right: 25px;
}

.demo-next-btn_p2:hover {
    background: #398f29;
    border: 2px solid #398f29;
    color: #fff;
}

#quanti-partecipanti-group {
    width: 40%;
}

/* Utility per nascondere/mostrare step */
.demo-step {
    display: none;
}

.demo-step.active_p2 {
    display: block;
}

/* Nasconde tutti gli step di default */
.demo-step {
    display: none;
}

/* Mostra solo lo step attivo */
.demo-step.active_p2 {
    display: block;
}

/* Container principale: ora si comporta come il tuo modal esistente */
.demo-popup_p2 {
    display: none;
    /* Nascosto di base */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* Molto alto per stare sopra a tutto */
    align-items: center;
    justify-content: center;
}

/* Sfondo Nero quando il popup è attivo */
.demo-popup_p2.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) */
.demo-popup-background_p2 {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

/* Modal Bianco (Il contenuto) */
.demo-popup-modal_p2 {
    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;
}

.form-group_p2 input.error,
.form-group_p2 textarea.error {
    border: 1px solid red;
}




/* 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 */
.demo-close-btn_p2 {
    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;
}

.demo-close-btn_p2:hover {
    transform: scale(1.1);
    /* Effetto ingrandimento al passaggio */
}

.back-btn_p2:hover {
    transform: scale(1.1);
    /* Effetto ingrandimento al passaggio */
}

@media (max-width: 369px) {
    .demo-popup-modal_p2 h2 {
        line-height: 26px;
        font-size: 20px;
    }
}

@media (min-width: 369px) and (max-width: 388px) {
    .demo-popup-modal_p2 h2 {
        line-height: 28px;
        font-size: 22px;

    }
}

@media (min-width: 389px) and (max-width: 409px) {
    .demo-popup-modal_p2 h2 {
        line-height: 30px;
        font-size: 24px;
    }
}

@media (min-width: 410px) and (max-width: 820px) {
    .demo-popup-modal_p2 h2 {
        line-height: 30px;
        font-size: 24px;
    }
}

@media (min-width: 821px) and (max-width: 943px) {
    .demo-popup-modal_p2 h2 {
        line-height: 34px;
        font-size: 28px;
    }
}

.error-message_p2 {
    color: #ea5858 !important;
    font-size: 10px;
}

.error-message_p2-2 {
    position: absolute;
    bottom: -15px;
    /* sotto l’input */
    left: 173px;
    color: #ea5858 !important;
    font-size: 10px;
    text-align: end;
    display: none;
}

.demo-group_p2 input[type="number"]:checked::after {
    border: none;
    border-bottom: 2px solid black;
    outline: none;
}

.demo-group_p2 {
    margin-bottom: 20px;
}

.demo-success-close-btn_p2 {
    background: #45ab32;
    border: 2px solid #45ab32;
    color: #fff;
    border-radius: 30px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 25px;
    padding-right: 25px;
}

.demo-success-close-btn_p2:hover {
    background: #398f29;
    border: 2px solid #398f29;
    color: #fff;
}



@media (max-width: 409px) {
    .demo-popup-modal_p2 {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .demo-popup-modal_p2 {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .demo-popup-modal_p2 {
        padding-left: 30px;
        padding-right: 30px;
    }
}


.title_demo_step2 {
    box-shadow: none !important;
    background: transparent !important;
    color: #5c5c5c;
    padding: 15px 0 20px;
    border: none !important;
    border-radius: 0 !important;
    width: 90%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* Riga di campi affiancati */
.form-row_p2 {
    display: flex;
    gap: 0px 10px;
    /* spazio tra le colonne */
    flex-wrap: wrap;
    /* su mobile si può andare a capo */
    margin-bottom: 10px;
}

/* Ogni input occupa metà larghezza della riga */
.form-row_p2>.form-group_p2 {
    flex: 1;
    min-width: 200px;
    /* evita di diventare troppo piccolo su mobile */
}

/* Campo messaggio larga tutta la riga */
.form-row_p2>.form-group_p2 textarea {
    width: 100%;
    min-height: 100px;
}

/* Stile dei label flottanti già pronto */
.form-group_p2 {
    position: relative;
    margin-bottom: 10px;
}

/* Input e textarea con bordo completo */
.form-group_p2 input,
.form-group_p2 textarea {
    width: 100%;
    padding: 10px 20px 10px;
    border: 1px solid #ccc;
    /* bordo completo */
    border-radius: 6px;
    /* arrotondato come prima */
    outline: none;
    font-size: 13px;
    background: transparent;
    transition: border-color 0.2s ease;
}

/* Focus sui campi */
.form-group_p2 input:focus,
.form-group_p2 textarea:focus {
    border-color: #45ab32;
    /* bordo nero al focus */
}

/* Label fluttuante */
.form-group_p2 label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #5c5c5c;
    pointer-events: none;
    background: #fff;
    padding: 0 4px;
    transition: all 0.2s ease;
}

/* Label che sale quando il campo è attivo o ha valore */
.form-group_p2 input:focus+label,
.form-group_p2 textarea:focus+label,
.form-group_p2 input.filled+label,
.form-group_p2 textarea.filled+label {
    top: -1px;
    font-size: 12px;
    color: #45ab32;
    display: block !important;
}

/* Messaggi di errore */
.form-group_p2 .errors {
    display: none;
    font-size: 12px;
    color: red;
    margin-top: 4px;
}

/* Mostra errori quando c'è required */
.form-group_p2.required .errors {
    display: block;
}

/* Textarea non ridimensionabile */
.form-group_p2 textarea {
    resize: none;
    min-height: 70px;
}

/* label {
    display: inline-flex !important
} */

.form-group_p2 textarea+label {
    top: 25px;
    /* sposta verso l’alto */
    font-size: 12px;
    /* più piccolo */
    color: #5c5c5c;
    /* opzionale */
}

.back-btn_p2 {
    position: absolute;
    top: 15px;
    /* stessa altezza della chiusura */
    left: 20px;
    /* spostata a sinistra */
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}


.quote-privacy-check-container_popup {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.privacy-note_preventivo_popup {
    font-size: 9px !important;
    line-height: 15px !important;
    font-family: Inter, sans-serif !important;
    color: #393939 !important;
    font-weight: 400 !important;
    margin-bottom: 0px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-top: -15px !important;
}

@media (max-width: 409px) {
    .form-row_p2 {
        gap: 7px 10px;
    }

    .step-text_p2 {
        font-size: 10px;
        line-height: 17px;
    }

    .demo-close-btn_p2 {
        font-size: 24px;
    }

    .back-btn_p2 {
        font-size: 19px;
        top: 19px;
    }
}

@media (max-width: 369px) {
    .error-message_p2-2 {
        left: 120px;
    }
}

/* ===== AUTOFILL SOLO POPUP DEMO P2 ===== */
#demo-popup-p2 input:-webkit-autofill,
#demo-popup-p2 input:-webkit-autofill:hover,
#demo-popup-p2 input:-webkit-autofill:focus,
#demo-popup-p2 textarea:-webkit-autofill,
#demo-popup-p2 textarea:-webkit-autofill:hover,
#demo-popup-p2 textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;

    -webkit-text-fill-color: #000 !important;
    caret-color: #000 !important;

    transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 699px) {
    .demo-next-btn_p2 {
        font-size: 13px;
        line-height: 17px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .demo-popup-modal_p2 {
        padding: 20px 26px;
    }
}

.hero_p2-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 569px) {
    .hero_p2-cta-buttons {
        gap: 0px;
    }

}