﻿

#stickyAside.is-fixed {
    position: fixed;
    top: 140px;
    z-index: 1;
}

#stickyAside.is-fixed {
    width: var(--sticky-width, auto);
}

#stickyAside.is-bottom {
    position: absolute;
    top: unset;
    bottom: 105px;
}

/* Mobile: dropdown */
@media (max-width: 991.98px) {
    /* blindatura: nessuno stato sticky deve restare attivo */
    #stickyAside.is-fixed {
        top: 80px;
        
    }

    .sidebar-blog-category {
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
        box-shadow: 1px 1px 10px color(srgb 0 0 0 / 0.3);
    }

    .sidebar-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
        background: #f5f5f5;
        padding: 12px 16px;
        cursor: pointer;
    }

        .sidebar-title h4 {
            margin: 0;
            font-size: 16px;
        }

    /* chevron (freccia) a destra */
    #stickyAside .sidebar-title::after {
        content: "";
        width: 10px;
        height: 10px;
        margin-left: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg); /* ▼ */
        transition: transform 200ms ease;
    }
    /* quando aperto, freccia su */
    #stickyAside .sidebar-blog-category.open .sidebar-title::after {
        transform: rotate(-135deg); /* ▲ */
    }


    /* lista chiusa di default su mobile */
    #stickyAside .blog-cat {
        display: none;
        width: 100%;
    }

        #stickyAside .blog-cat li {
            display: block;
            width: 100%;
        }

            #stickyAside .blog-cat li a {
                display: block;
                width: 100%;
                padding: 10px 16px 10px 25px;
                border-top: 1px solid #eee;
                text-decoration: none;
                color: #333;
            }

            #stickyAside .blog-cat li.active a {
                background: #e9ecef;
                font-weight: 600;
            }

            #stickyAside .blog-cat li a:before {
                top: 10px;
            }

    /* aperto */
    #stickyAside .sidebar-blog-category.open .blog-cat {
        display: block;
    }
}


@media only screen and (max-width: 991px) {
    .header-top_two {
        display:none;
        padding: 15px 0px;
    }

    .fixed-header .outer-box {
        top:0px !important;
    }

    .projects-detail {
        padding: 0px 0px 90px;
    }
    .sidebar-page-container {

        padding: 0px 0px 80px;
    }
}


/* Stato disabilitato */
#btn_SendProva[disabled] {
    pointer-events: none;
    opacity: .8;
}

#btn_SendContattaci[disabled] {
    pointer-events: none;
    opacity: .8;
}



/* Spinner nel bottone */
.btn-style-seven {
    position: relative;
}

    .btn-style-seven .spinner {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 18px;
        height: 18px;
        border: 2px solid currentColor;
        border-top-color: transparent;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        display: none;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Durante il loading nascondo i testi del bottone e mostro lo spinner */
.btn-style-seven.is-loading .text-one,
.btn-style-seven.is-loading .text-two {
    opacity: 0;
}

.btn-style-seven.is-loading .spinner {
    display: block;
}

/* Flash di successo/errore sul bottone */
.btn-style-seven.flash-success, .btn-style-seven.flash-success:hover {
    box-shadow: 0 0 0 0 rgba(46,204,113,.7) !important;
    color: #fff !important;
    background: linear-gradient(to left, #2ecc71 0%, 2fab63 100%) !important;
}
    .btn-style-seven.flash-success::before {
        background: linear-gradient(to left, 2fab63 0%, #2ecc71 100%);
    }


.btn-style-seven.flash-error, .btn-style-seven.flash-error:hover {
    box-shadow: 0 0 0 0 rgba(231,76,60,.7) !important;
    background: #e74c3c !important;
    color: #fff !important;
}

.btn-style-seven.flash-success,
.btn-style-seven.flash-error {
    transition: background .2s, color .2s;
}

/* Alert form */
.form-alert {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.3;
}

    .form-alert.success {
        background: #eafaf1;
        border: 1px solid #2ecc71;
        color: #1e8449;
    }

    .form-alert.error {
        background: #fdecea;
        border: 1px solid #e74c3c;
        color: #a93226;
    }





.error-message {
    color: #b00020;
    font-size: 12px;
    margin: 6px 0;
    background: #fbd4d4;
    padding: 10px;
    border-radius: 8px;
}

.is-invalid {
    outline: 0;
    border-color: #b00020 !important;
    box-shadow: 0 0 0 2px rgba(176,0,32,.12);
}

.form-toast {
    position: relative;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

    .form-toast.toast-ok {
        background: #e9f7ef;
        color: #1e7e34;
        border: 1px solid #c7ebd6;
    }

    .form-toast.toast-error {
        background: #fdecea;
        color: #842029;
        border: 1px solid #f5c2c7;
    }




.scroll-to-top {
    border-radius: 4PX;
    bottom: 64px;
    right: 16px;
    width: 34px;
    height: 34px;
}

.service-block_five-more.variant {
    margin-top: 0 !important;
    margin-bottom: var(--margin-top-20);
}

.services-one_pattern-layer {
    background-size:cover;
}

.img-full-screen {
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
}


input.error, textarea.error {
    border: 1px solid red;
    background-color: #ffe6e6;
}

label.error {
    color: red;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

input[type=checkbox], input[type=radio] {
    display:inline-block;
    vertical-align:top;
    margin-right:10px;
    width:20px;
    height:20px;
    cursor:pointer;
}

.page-title.detail-news {
    padding: 80px 0px 60px;
}
.blog-single.detail-news h1 {
    line-height: 80px;
    font-weight: 700;
    font-size: 55px;
    padding-bottom: 10px;
}

.blog-single.detail-news h2 {
    line-height: 40px;
    font-size: 35px;
    padding-bottom: 10px;
}

.blog-single.detail-news h3 {
    line-height: 30px;
    font-size: 25px;
    padding-bottom: 10px;
}

.team_one-image {
    height:380px
}

.recensioni-list .testimonial-block {
    padding: 10px;
    border: 1px solid #dedede;
    margin-bottom: 50px;
}