/* p2_secondo_template SECTION */
.p2_secondo_template-section {
    background-color: #fff;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* p2_secondo_template CONTAINER */
.p2_secondo_template-container {
    padding-left: 50px;
    padding-right: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* p2_secondo_template WRAPPER */
.p2_secondo_template-wrapper-imgcentral-textcentral {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

/* p2_secondo_template */
.p2_secondo_template-cols-xl-12.p2_secondo_template-cols-xs-12.p2_secondo_template-cols-sm-12.p2_secondo_template-cols-md-12.p2_secondo_template-cols-lg-12 {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 1400px;
}

.p2_secondo_template-section-title {
    line-height: 52px;
    font-size: 44px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    color: #000;
    text-align: center;
    padding-bottom: 60px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
}

.description-imgcentral-textcentral {
    font-size: 26px;
    line-height: 32px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    color: #000;
    text-align: center;
    padding-bottom: 30px;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
}

.accurate-results-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.img-fluid-second-section {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    align-self: flex-start;
}

/* MEDIA QUERIES */
/* p2_secondo_template CONTAINER */
@media (max-width: 409px) {

    .p2_secondo_template-container,
    .testo_centrale {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {

    .p2_secondo_template-container,
    .testo_centrale {
        padding-left: 50px;
        padding-right: 50px;

    }
}

@media (min-width: 700px) and (max-width: 870px) {

    .p2_secondo_template-container,
    .testo_centrale {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* p2_secondo_template */
@media (max-width: 699px) {
    .p2_secondo_template-cols-xl-12.p2_secondo_template-cols-xs-12.p2_secondo_template-cols-sm-12.p2_secondo_template-cols-md-12.p2_secondo_template-cols-lg-12 {
        padding-left: 0px;
        padding-right: 0px;
    }

}


/* < 369PX */
@media (max-width: 368px) {
    .p2_secondo_template-section-title {
        font-size: 31px;
        line-height: 40px;
    }
}


@media (min-width: 369px) and (max-width: 374px) {
    .p2_secondo_template-section-title {
        font-size: 31px;
        line-height: 40px;
    }
}

@media (min-width: 375px) and (max-width: 408px) {
    .p2_secondo_template-section-title {
        font-size: 32px;
        line-height: 41px;
    }
}

@media (min-width: 409px) and (max-width: 413px) {
    .p2_secondo_template-section-title {
        font-size: 33px;
        line-height: 40px;
    }
}

@media (min-width: 414px) and (max-width: 429px) {
    .p2_secondo_template-section-title {
        font-size: 32.5px;
        line-height: 40px;
    }
}

@media (min-width: 430px) and (max-width: 790px) {
    .p2_secondo_template-section-title {
        font-size: 34px;
        line-height: 41px;
    }
}

@media (min-width: 791px) and (max-width: 809px) {
    .p2_secondo_template-section-title {
        font-size: 35px;
        line-height: 42px;
    }
}

@media (min-width: 810px) and (max-width: 829px) {
    .p2_secondo_template-section-title {
        font-size: 36px;
        line-height: 43px;
    }
}

@media (min-width: 830px) and (max-width: 848px) {
    .p2_secondo_template-section-title {
        font-size: 37px;
        line-height: 44px;
    }
}

@media (min-width: 849px) and (max-width: 886px) {
    .p2_secondo_template-section-title {
        font-size: 38px;
        line-height: 45px;
    }
}

@media (min-width: 887px) and (max-width: 963px) {
    .p2_secondo_template-section-title {
        font-size: 39px;
        line-height: 46px;
    }
}

@media (min-width: 964px) and (max-width: 1066px) {
    .p2_secondo_template-section-title {
        font-size: 41px;
        line-height: 48px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .p2_secondo_template-section-title {
        font-size: 43px;
        line-height: 51px;
    }
}

@media (max-width: 963px) {
    .description-imgcentral-textcentral {
        font-size: 20px;
        line-height: 26px;
    }
}

@media (min-width: 964px) and (max-width: 1066px) {
    .description-imgcentral-textcentral {
        font-size: 22px;
        line-height: 28px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .description-imgcentral-textcentral {
        font-size: 24px;
        line-height: 30px;
    }
}


/* SECONDO BLOCCO */
.testo_centrale {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.paragrafo_18pixel {
    font-size: 18px;
    line-height: 24px;
    font-family: Inter, sans-serif;
    font-weight: 400;
    color: #000;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
    margin-block-end: 0px !important;
    margin-block-start: 0px !important;
    padding-bottom: 15px;
}

.paragrafo_bold_22pixel {
    font-size: 22px;
    line-height: 28px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    color: #000;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    margin-block-end: 0px !important;
    margin-block-start: 0px !important;
    padding-bottom: 15px;
}

.btn.btn-preventivo-p2_template.btn-blu-p2_template {
    border: solid 2px #000;
    border-radius: 30px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin-bottom: 60px;
}

.btn.btn-preventivo-p2_template.btn-blu-p2_template:hover {
    background-color: #000;
    color: #fff;
}

/* MEDIA PARGARFO 18 PIXEL */
@media (max-width: 1128px) {
    .paragrafo_18pixel {
        font-size: 16px;
        line-height: 22px;
    }

    .paragrafo_18pixel {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .paragrafo_18pixel {
        line-height: 20px;
        font-size: 14px;
    }
}

/* MEDIA PARGARFO BOLD 22 PIXEL */

@media (max-width: 1066px) {
    .paragrafo_bold_22pixel {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (min-width: 1067px) and (max-width: 1231px) {
    .paragrafo_bold_22pixel {
        font-size: 20px;
        line-height: 26px;
    }
}

/* BOTTONE */
@media (min-width: 315px) and (max-width: 450px) {
    .btn.btn-preventivo-p2_template.btn-blu-p2_template {
        font-size: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 314px) {
    .btn.btn-preventivo-p2_template.btn-blu-p2_template {
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

.accurate-results-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* IFRAME RESPONSIVE  */
.iframe-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    /*  height: 600px;  */
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
}

.iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.iframe-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.iframe-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.iframe-placeholder:hover .iframe-placeholder-img {
    transform: scale(1.03);
}

.iframe-placeholder-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: background-color 0.3s ease;
}

.iframe-placeholder:hover .iframe-placeholder-overlay {
    background-color: rgba(0, 0, 0, 0.55);
}

.iframe-placeholder-playbtn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.iframe-placeholder-playbtn i {
    font-size: 42px;
    color: #008BEE;
    margin-left: 4px;
}

.iframe-placeholder:hover .iframe-placeholder-playbtn {
    transform: scale(1.1);
    background-color: #fff;
}

.iframe-placeholder-text {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 699px) {
    .iframe-placeholder-playbtn {
        width: 60px;
        height: 60px;
    }

    .iframe-placeholder-playbtn i {
        font-size: 32px;
    }

    .iframe-placeholder-text {
        font-size: 15px;
    }
}

.iframe-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    /* garantisce che tutto dentro propaghi il click al contenitore */
}

.iframe-placeholder-img,
.iframe-placeholder-overlay,
.iframe-placeholder-playbtn,
.iframe-placeholder-playbtn i,
.iframe-placeholder-text {
    pointer-events: none;
}

.iframe-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    outline: none;
}

.iframe-placeholder:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 139, 238, 0.45);
}

.iframe-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.iframe-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
    pointer-events: none;
}

.iframe-placeholder-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #008bee;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.iframe-placeholder:hover .iframe-placeholder-overlay {
    background: rgba(0, 0, 0, 0.28);
}

.iframe-placeholder:hover .iframe-placeholder-btn {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    background-color: #0079d1;
}

@media (max-width: 640px) {
    .iframe-placeholder-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}


.iframe-container {
    position: relative;
    overflow: hidden;
}

.tour-3d-preview {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    background-color: #111;
}

.tour-3d-preview__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}

.tour-3d-preview__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.tour-3d-preview__cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-block;
    padding: 16px 32px;
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    white-space: nowrap;
    transition: transform 0.25s ease, filter 0.25s ease;
    pointer-events: none;
    border: solid 2px #ffffff;
    border-radius: 30px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-weight: 700;
    text-decoration: none;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
    padding-right: 30px;
    display: inline-block;
    margin-bottom: 30px;
}

.tour-3d-preview__cta:hover {
    transform: translate(-50%, -50%);
    background-color: #efefef !important;
    border: solid 2px #efefef;
    color: black;
}

.tour-3d-preview__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.tour-3d-preview:hover .tour-3d-preview__overlay {
    background-color: rgba(0, 0, 0, 0.35);
}

.tour-3d-preview:hover .tour-3d-preview__cta {
    transform: translate(-50%, -50%);
     background-color: #efefef !important;
    border: solid 2px #efefef;
    color: black;
}

.tour-3d-preview:focus-visible {
    outline: 3px solid #008bee;
    outline-offset: 3px;
}

@media (max-width: 699px) {
    .tour-3d-preview__cta {
        padding: 12px 20px;
        font-size: 14px;
    }
}