/* =========================================================
   HEADER STICKY
   Utilizza lo stesso header, senza duplicazioni
   ========================================================= */

.main-header.is-sticky {
    padding-bottom: var(--sticky-header-height, 0);
}

    .main-header.is-sticky .header-lower {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        background-color: #ffffff;
        animation: headerSlideDown 0.35s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   PANNELLO LATERALE BRANCHES / ATM
   ========================================================= */

.main-header .nav-toggler .nav-content {
    display: none;
}

.main-header .nav-toggler.is-open .nav-content {
    display: block;
}

.main-header .tabs-content .tab {
    display: none;
}

    .main-header .tabs-content .tab.active-tab {
        display: block;
    }


/* =========================================================
   MENU OFFCANVAS MOBILE E TABLET
   Usa lo stesso menu desktop
   ========================================================= */

.mobile-menu-header,
.mobile-menu-backdrop {
    display: none;
}

@media only screen and (max-width: 1199px) {

    /*
     * Pulsante hamburger
     */

    .main-header .mobile-nav-toggler {
        display: block;
        cursor: pointer;
    }

    /*
     * Contenitore offcanvas
     */

    .main-header .main-menu {
        display: block !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 400px;
        max-width: 100%;
        height: 100vh;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 10002 !important;
        background-color: #ffffff;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    }

        .main-header .main-menu.is-open {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }


    /*
     * Intestazione del pannello
     */

    .main-header .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 90px;
        padding: 20px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .main-header .mobile-menu-logo {
        width: 170px;
        margin: 0;
    }

        .main-header .mobile-menu-logo img {
            display: block;
            width: 300px;
            max-width: 300px;
            height: auto;
        }

    .main-header .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #000000;
        font-size: 36px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
    }


    /*
     * Struttura interna
     */

    .main-header .main-menu .navbar-collapse {
        display: block !important;
        width: 100%;
    }

    .main-header .main-menu .navigation {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 0 40px;
    }

        .main-header .main-menu .navigation > li {
            display: block;
            float: none;
            width: 100%;
            margin: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        }

        .main-header .main-menu .navigation li {
            position: relative;
            width: 100%;
        }
            /* Voci del menu allineate a sinistra */
            .main-header .main-menu .navigation li > a {
                display: block;
                position: relative;
                width: 100%;
                padding: 15px 55px 15px 25px;
                text-align: left !important;
            }

            /* Nasconde la freccetta ereditata dal menu desktop */
            .main-header .main-menu .navigation li.dropdown > a::before {
                display: none !important;
                content: none !important;
            }


            /*
     * Sottomenu
     */

            .main-header .main-menu .navigation li.dropdown > ul {
                display: none !important;
                position: static !important;
                top: auto !important;
                left: auto !important;
                width: 100%;
                min-width: 0;
                margin: 0;
                padding: 0;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                transition: none !important;
                box-shadow: none;
                background-color: rgba(0, 0, 0, 0.025);
            }

            .main-header .main-menu .navigation li.dropdown.mobile-open > ul {
                display: block !important;
            }

            .main-header .main-menu .navigation li.dropdown > ul > li {
                border-top: 1px solid rgba(0, 0, 0, 0.06);
            }

                .main-header .main-menu .navigation li.dropdown > ul > li > a {
                    padding-left: 40px;
                }

            .main-header .main-menu .navigation li.dropdown > ul li.dropdown > ul > li > a {
                padding-left: 55px;
            }


            /* Indicatore + / − posizionato a destra */
            .main-header .main-menu .navigation li.dropdown > a::after {
                content: "+";
                position: absolute;
                top: 50%;
                right: 25px;
                left: auto;
                width: auto;
                height: auto;
                margin: 0;
                border: 0;
                transform: translateY(-50%);
                font-size: 22px;
                font-weight: 400;
                line-height: 1;
                text-align: center;
            }

            /* Quando il sottomenu è aperto */
            .main-header .main-menu .navigation li.dropdown.mobile-open > a::after {
                content: "−";
            }


    /*
     * Backdrop oscurato
     */

    .main-header .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10001 !important;
        background-color: rgba(0, 0, 0, 0.65);
        opacity: 0;
        visibility: hidden;
        cursor: pointer;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

        .main-header .mobile-menu-backdrop.is-open {
            opacity: 1;
            visibility: visible;
        }


    /*
     * Blocca lo scorrimento della pagina
     */

    body.mobile-menu-visible {
        overflow: hidden;
    }
}


@media only screen and (max-width: 575px) {

    .main-header .main-menu {
        width: 100%;
    }
}


@media only screen and (max-width: 1199px) {

    body.mobile-menu-visible
    .main-header.is-sticky
    .header-lower {
        animation: none !important;
        transform: none !important;
    }

    .main-header .header-lower {
        padding: 15px 0;
    }
}

@media only screen and (max-width: 991px) {
    .header-top .left-column {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .menu-area {
        justify-content: space-between;
        width: 100%;
    }

    .header-top.ais .option-list li a {
        font-size: 14px;
    }
}

@media only screen and (max-width: 599px) {
    .main-header .header-lower {
        padding: 15px 15px 15px 0;
    }
}

    .logo img {
        width: 300px;
        height: auto;
        max-width: 300px;
    }

    @media (min-width: 1200px) and (max-width: 1499px){
        .logo img {
            width: 200px;
            height: auto;
            max-width: 200px;
        }
    }

.footer-style-three .footer-top {
    border-top: 1px solid #e9e9e9;
}

.footer-style-three .footer-bottom {
    background: var(--secondary-color);
}

.footer-style-three .footer-widget:before {
    right: 0;
}

/* =========================================================
   PAGINE INTERNE: CONTENUTO A SINISTRA E FORM A DESTRA
   Basato sulla struttura card-details del template
   ========================================================= */

.internal-service-page {
    position: relative;
}

    /*
 * Evita che un overflow sugli elementi contenitori
 * impedisca il funzionamento di position: sticky.
 */
    .internal-service-page,
    .internal-service-page .auto-container,
    .internal-service-page .row,
    .internal-service-page .sidebar-side,
    .internal-service-page .cards-sidebar {
        overflow: visible !important;
    }

        .internal-service-page .row {
            align-items: flex-start;
        }


        /* =========================================================
   CONTENUTO PRINCIPALE
   ========================================================= */

        .internal-service-page .card-details-content {
            position: relative;
            padding-right: 65px;
            margin-right: 35px;
            margin-left: 0;
            padding-left: 0;
            border-left: none;
            border-right: 1px solid #e6e4e4;
        }

        @media (max-width: 1199px) {
            .internal-service-page .card-details-content {
                margin: 0px;
            }
        }

        @media (max-width: 991px) {
            .internal-service-page .card-details-content {
                padding: 0px;
                border: none;
            }
            .internal-service-page.card-details {
                padding-top: 70px;
            }
        }
            .internal-service-page .card-details-content > :first-child {
                margin-top: 0;
            }

            .internal-service-page .card-details-content .content-one,
            .internal-service-page .card-details-content .content-two,
            .internal-service-page .card-details-content .content-three,
            .internal-service-page .card-details-content .content-four {
                position: relative;
            }

            .internal-service-page .card-details-content h2 {
                margin-bottom: 22px;
            }

            .internal-service-page .card-details-content h3 {
                margin-top: 30px;
                margin-bottom: 15px;
            }

            .internal-service-page .card-details-content h6 {
                margin-bottom: 10px;
            }

            .internal-service-page .card-details-content p {
                margin-bottom: 20px;
                font-size: 17px;
                line-height: 1.8;
            }

            .internal-service-page .card-details-content ul:not(.accordion-box) {
                margin-bottom: 30px;
                padding-left: 0;
            }

                .internal-service-page .card-details-content
                ul:not(.accordion-box) > li {
                    position: relative;
                    margin-bottom: 12px;
                    padding-left: 25px;
                    font-size: 17px;
                    line-height: 1.7;
                }

                    .internal-service-page .card-details-content
                    ul:not(.accordion-box) > li::before {
                        position: absolute;
                        top: 11px;
                        left: 0;
                        width: 8px;
                        height: 8px;
                        border-radius: 50%;
                        background-color: var(--theme-color);
                        content: "";
                    }

            .internal-service-page .card-details-content img {
                max-width: 100%;
                height: auto;
            }


        /* =========================================================
   SIDEBAR STICKY
   ========================================================= */

        .internal-service-page .sidebar-side {
            align-self: stretch;
        }

.internal-sticky-sidebar {
    position: sticky;
    top: 85px;
    z-index: 10;
}

/* =========================================================
   TABLET E MOBILE
   ========================================================= */

@media only screen and (max-width: 1199px) {

    .internal-service-page .card-details-content {
        padding-right: 20px;
    }

    .internal-sticky-sidebar {
        top: 105px;
    }
}

@media only screen and (max-width: 991px) {

    .internal-service-page .card-details-content {
        padding-right: 0;
        padding-bottom: 50px;
    }

    .internal-service-page .cards-sidebar {
        padding-top: 0 !important;
    }

    /*
     * Su tablet e smartphone il form torna nel flusso normale,
     * sotto il contenuto.
     */
    .internal-sticky-sidebar {
        position: static;
    }
}

@media only screen and (max-width: 575px) {

    .internal-service-page .card-details-content {
        padding-bottom: 40px !important;
    }

    .internal-service-page .cards-sidebar {
        padding-bottom: 70px !important;
    }

    .sidebar-form-heading h3 {
        font-size: 23px;
    }
}

/* Permette a position: sticky di funzionare nelle pagine interne */
.boxed_wrapper.internal-sidebar-wrapper {
    overflow: visible !important;
}

    .boxed_wrapper.internal-sidebar-wrapper main,
    .boxed_wrapper.internal-sidebar-wrapper .internal-service-page,
    .boxed_wrapper.internal-sidebar-wrapper .auto-container,
    .boxed_wrapper.internal-sidebar-wrapper .row,
    .boxed_wrapper.internal-sidebar-wrapper .sidebar-side,
    .boxed_wrapper.internal-sidebar-wrapper .cards-sidebar {
        overflow: visible !important;
    }

@media only screen and (min-width: 992px) {

    .internal-service-page .row {
        display: flex;
        align-items: stretch;
    }

    .internal-service-page .sidebar-side {
        position: relative;
        align-self: stretch;
    }

    .internal-service-page .cards-sidebar {
        position: relative;
        height: 100%;
    }

    .internal-service-page .internal-sticky-sidebar {
        position: sticky !important;
        top: 85px;
        z-index: 10;
        width: 100%;
    }
}

/* =========================================================
   FORM APPOINTMENT NELLA SIDEBAR
   Mantiene il design appointment-section del template
   ========================================================= */

.sidebar-appointment-section.appointment-section {
    position: relative;
    padding: 0;
    background: transparent;
}

.sidebar-appointment-section .appointment-form {
    position: relative;
    width: 100%;
    padding: 35px 30px 32px;
    border-radius: 0;
    background-color: #ffffff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.10);
}

    /*
 * Il template potrebbe applicare una larghezza massima
 * al form della sezione originale.
 */
    .sidebar-appointment-section .appointment-form form {
        width: 100%;
        max-width: none;
    }


/* Titolo del form */

.sidebar-appointment-heading {
    position: relative;
    margin-bottom: 28px;
}

    .sidebar-appointment-heading .sub-title {
        display: block;
        margin-bottom: 8px;
    }

    .sidebar-appointment-heading h3 {
        margin: 0 0 12px;
        font-size: 27px;
        line-height: 1.25;
    }

    .sidebar-appointment-heading p {
        margin: 0;
        font-size: 15px;
        line-height: 1.65;
    }


/* Campi */

.sidebar-appointment-section
.appointment-form
.form-group {
    margin-bottom: 20px;
}

    .sidebar-appointment-section
    .appointment-form
    .form-group label {
        display: block;
    }

    .sidebar-appointment-section
    .appointment-form
    .form-group input,
    .sidebar-appointment-section
    .appointment-form
    .form-group textarea {
        width: 100%;
    }

    .sidebar-appointment-section
    .appointment-form
    .form-group textarea {
        display: block;
        min-height: 110px;
        padding-top: 18px;
        resize: none;
        background: #f5f4f4;
        border: 1px solid #f5f4f4;
        font-size: 17px;
        color: #a8a7a7;
        padding: 10px 20px;
        transition: all .5s ease;
    }


/*
 * Mantiene l'icona allineata correttamente
 * anche nel campo textarea.
 */
.sidebar-appointment-section
.sidebar-message-group
.icon-box {
    top: 48px;
}


/* Privacy */

.sidebar-privacy-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 22px;
}

    .sidebar-privacy-field input[type="checkbox"] {
        flex: 0 0 auto;
        width: 17px;
        height: 17px;
        margin-top: 3px;
    }

    .sidebar-privacy-field label {
        margin: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    .sidebar-privacy-field a {
        text-decoration: underline;
    }


/* Pulsante */

.sidebar-appointment-section .message-btn {
    margin: 0;
}

    .sidebar-appointment-section .message-btn .theme-btn {
        display: block;
        width: 100%;
        border: 0;
        text-align: center;
        cursor: pointer;
    }


/* Il contenitore sticky resta quello esterno */

.internal-sticky-sidebar
.sidebar-appointment-section {
    width: 100%;
}


/* Tablet e mobile */

@media only screen and (max-width: 1199px) {

    .sidebar-appointment-section .appointment-form {
        padding: 32px 24px 30px;
    }

    .sidebar-appointment-heading h3 {
        font-size: 24px;
    }
}

@media only screen and (max-width: 991px) {

    .sidebar-appointment-section {
        max-width: 650px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 575px) {

    .sidebar-appointment-section .appointment-form {
        padding: 30px 20px 28px;
    }
}

/* =========================================================
   PAGINA SERVIZIO: INTRODUZIONE CON LOGO
   ========================================================= */

.service-intro-box {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 35px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.service-intro-content {
    flex: 1 1 auto;
}

    .service-intro-content p {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.75 !important;
    }


/* =========================================================
   PAGINA SERVIZIO: TESTO IN EVIDENZA
   ========================================================= */

.service-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 35px 38px;
    border-left: 5px solid var(--theme-color);
    border-radius: 0;
    background-color: #f6f6f6;
}

.service-highlight-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--theme-color);
    color: #ffffff;
    font-size: 20px;
}

.service-highlight-content {
    flex: 1 1 auto;
}

.internal-service-page
.service-highlight-content h3 {
    margin: 0 0 12px;
}

.internal-service-page
.service-highlight-content p {
    margin: 0;
}


/* Immagine principale */

.internal-service-page
.content-one
.image-box .image {
    overflow: hidden;
    border-radius: 0;
}

.internal-service-page
.content-one
.image-box img {
    display: block;
    width: 100%;
    height: auto;
}


/* Mobile */

@media only screen and (max-width: 575px) {

    .service-intro-box {
        display: block;
        padding: 27px 24px;
    }

    .service-highlight-box {
        display: block;
        padding: 30px 24px;
    }

    .service-highlight-icon {
        margin-bottom: 18px;
    }
}

/* =========================================================
   CATEGORIE APPALTI
   ========================================================= */

.categories-faq .acc-content .content {
    padding: 0;
}

.categories-table-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background-color: #ffffff;
}

    .categories-table th,
    .categories-table td {
        padding: 18px 20px;
        border: 1px solid #e5e5e5;
        text-align: left;
        vertical-align: top;
    }

    .categories-table thead th {
        background-color: var(--theme-color);
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .categories-table th:first-child,
    .categories-table td:first-child {
        width: 90px;
    }

    .categories-table th:nth-child(2),
    .categories-table td:nth-child(2) {
        width: 230px;
    }

    .categories-table tbody tr:nth-child(even) {
        background-color: #f7f7f7;
    }

    .categories-table tbody tr {
        transition: background-color 0.2s ease;
    }

        .categories-table tbody tr:hover {
            background-color: #eeeeee;
        }

    .categories-table td {
        color: var(--text-color, #666666);
        font-size: 14px;
        line-height: 1.65;
    }

    .categories-table .category-code {
        color: var(--theme-color);
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
    }

    .categories-table .category-type {
        color: var(--title-color, #171717);
        font-weight: 700;
    }


/* Tablet e smartphone */

@media only screen and (max-width: 991px) {

    .categories-table {
        min-width: 850px;
    }

        .categories-table th,
        .categories-table td {
            padding: 16px 18px;
        }
}

@media only screen and (max-width: 575px) {

    .categories-faq .accordion-box .acc-content .content {
        padding: 0;
    }

    .categories-table {
        min-width: 760px;
    }

        .categories-table th,
        .categories-table td {
            padding: 14px 16px;
            font-size: 13px;
        }
}

/* =========================================================
   CATEGORIE APPALTI - LAYOUT A LARGHEZZA PIENA
   ========================================================= */

.categories-page {
    position: relative;
}

    .categories-page .auto-container {
        max-width: 1320px;
    }

    .categories-page .categories-faq {
        width: 100%;
    }

    .categories-page .accordion-box {
        width: 100%;
        max-width: none;
    }


/*
 * Compensa l'altezza dell'header sticky quando viene
 * eseguito scrollIntoView().
 */
.categories-accordion > .accordion {
    scroll-margin-top: 125px;
}


/* La tabella può sfruttare tutta la larghezza disponibile */

.categories-page .categories-table th:first-child,
.categories-page .categories-table td:first-child {
    width: 90px;
}

.categories-page .categories-table th:nth-child(2),
.categories-page .categories-table td:nth-child(2) {
    width: 260px;
}


/* Tablet */

@media only screen and (max-width: 991px) {

    .categories-accordion > .accordion {
        scroll-margin-top: 95px;
    }
}


/* Smartphone */

@media only screen and (max-width: 575px) {

    .categories-accordion > .accordion {
        scroll-margin-top: 80px;
    }
}

/* Scroll automatico accordion Abbonamenti */
.subscriptions-accordion > .accordion {
    scroll-margin-top: 125px;
}

@media only screen and (max-width: 991px) {

    .subscriptions-accordion > .accordion {
        scroll-margin-top: 95px;
    }
}

@media only screen and (max-width: 575px) {

    .subscriptions-accordion > .accordion {
        scroll-margin-top: 80px;
    }
}

/* =========================================================
   PAGINA NEWS
   ========================================================= */

.news-page .row {
    align-items: stretch;
}

.news-page .news-block {
    display: flex;
    margin-bottom: 30px;
}

.news-page .news-block-one {
    display: flex;
    width: 100%;
}

    .news-page .news-block-one .inner-box {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .news-page .news-block-one .content-box {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .news-page .news-block-one .lower-box {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }

        .news-page .news-block-one .lower-box .link-box {
            margin-top: auto;
        }


    /* Immagini uniformi */

    .news-page .news-block-one .image-box,
    .news-page .news-block-one .image,
    .news-page .news-block-one .overlay-image {
        width: 100%;
    }

        .news-page .news-block-one .image img,
        .news-page .news-block-one .overlay-image img {
            display: block;
            width: 100%;
            height: 260px;
            object-fit: cover;
        }


/* Freccia pagina precedente */

.news-page .pagination-previous {
    display: inline-block;
    transform: rotate(180deg);
}


/* Tablet */

@media only screen and (max-width: 991px) {

    .news-page .news-block-one .image img,
    .news-page .news-block-one .overlay-image img {
        height: 280px;
    }
}


/* Smartphone */

@media only screen and (max-width: 575px) {

    .news-page .news-block-one .image img,
    .news-page .news-block-one .overlay-image img {
        height: auto;
        min-height: 230px;
    }
}

/* =========================================================
   DETTAGLIO NEWS SENZA SIDEBAR
   ========================================================= */

.blog-details-page .blog-details-content {
    width: 100%;
}

.blog-details-page .news-detail-title {
    position: relative;
    padding: 30px 0 15px;
}

    .blog-details-page .news-detail-title h1 {
        margin: 0;
        color: var(--title-color, #171717);
        font-size: 46px;
        line-height: 1.2;
        font-weight: 700;
    }

.blog-details-page
.blog-details-content
.content-one
.image-box {
    width: 100%;
    margin-bottom: 40px;
}

    .blog-details-page
    .blog-details-content
    .content-one
    .image-box img {
        display: block;
        width: 100%;
        max-height: 620px;
        object-fit: cover;
    }


/* Capolettera del primo paragrafo */

.blog-details-page
.content-one
.text-box
p:first-child::first-letter {
    float: left;
    margin: 7px 10px 0 0;
    color: var(--theme-color);
    font-size: 58px;
    font-weight: 700;
    line-height: 44px;
}


/* Sezioni dinamiche */

.blog-details-page .news-article-section {
    margin-bottom: 35px;
}

    .blog-details-page
    .news-article-section
    .text-box {
        margin-bottom: 20px;
    }

    .blog-details-page
    .news-article-section
    .list-item {
        margin-top: 25px;
    }


/* Pulsanti condivisione e stampa */

.blog-details-page .option-list button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}


/* Navigazione */

.blog-details-page .post-nav-btn {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

    .blog-details-page .post-nav-btn .single-btn {
        min-width: 0;
    }

    .blog-details-page .post-nav-btn h4 a {
        overflow-wrap: anywhere;
    }


/* Tablet */

@media only screen and (max-width: 991px) {

    .blog-details-page .news-detail-title h1 {
        font-size: 38px;
    }
}


/* Smartphone */

@media only screen and (max-width: 767px) {

    .blog-details-page .news-detail-title h1 {
        font-size: 31px;
    }

    .blog-details-page .post-nav-btn {
        grid-template-columns: 1fr;
        gap: 30px;
    }

        .blog-details-page
        .post-nav-btn
        .single-btn.align-3 {
            text-align: left !important;
        }

    .blog-details-page
    .content-one
    .text-box
    p:first-child::first-letter {
        font-size: 48px;
        line-height: 38px;
    }
}


/* Stampa */

@media print {

    .main-header,
    .page-title,
    .main-footer,
    .post-tag-option,
    .author-box,
    .post-nav,
    .option-list {
        display: none !important;
    }

    .blog-details-page {
        padding: 0 !important;
    }

        .blog-details-page .content-side {
            width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
        }
}

/* =========================================================
   PAGINA CONTATTI
   ========================================================= */

/* Mappa senza ricerca filiali/ATM */

.contact-map-section.branches-section {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.contact-map-section .map-inner {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
}

.contact-map-section .map-box {
    position: relative;
    width: 100%;
    height: 570px;
}

.contact-map-section iframe {
    display: block;
    width: 100%;
    height: 570px;
    border: 0;
}


/* Modulo singolo, senza tab */

.contact-form-single .tabs-content,
.contact-form-single .tabs-content .tab {
    display: block;
    width: 100%;
}

    .contact-form-single .tabs-content .tab {
        opacity: 1;
        visibility: visible;
    }


/* Messaggio di conferma */

.contact-success-message {
    position: relative;
    margin-bottom: 35px;
    padding: 25px 30px;
    border-left: 4px solid var(--theme-color);
    background-color: #f5f5f5;
}

    .contact-success-message h3 {
        margin: 0 0 8px;
    }

    .contact-success-message p {
        margin: 0;
    }


/* Errori */

.contact-validation-summary {
    margin-bottom: 30px;
    padding: 20px 25px;
    border-left: 4px solid #b42318;
    background-color: #fff1f0;
}

    .contact-validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

.field-validation-error {
    display: block;
    margin-top: 7px;
    color: #b42318;
    font-size: 13px;
    line-height: 1.4;
}

.input-validation-error,
.contact-section input.input-validation-error,
.contact-section textarea.input-validation-error,
.contact-section select.input-validation-error {
    border-color: #b42318 !important;
}


/* Privacy */

.contact-privacy-field {
    min-height: auto !important;
}

.contact-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .contact-privacy-check input[type="checkbox"] {
        flex: 0 0 auto;
        width: 17px;
        height: 17px;
        margin-top: 3px;
    }

    .contact-privacy-check label {
        margin: 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .contact-privacy-check a {
        text-decoration: underline;
    }


/* Select nativa */

.contact-form-single select.wide {
    display: block;
    width: 100%;
}


/* Mobile */

@media only screen and (max-width: 767px) {

    .contact-map-section .map-box,
    .contact-map-section iframe {
        height: 430px;
    }
}

/* =========================================================
   PRIVACY E COOKIE POLICY
   ========================================================= */

.legal-page {
    position: relative;
}

    .legal-page .auto-container {
        max-width: 1200px;
    }

.legal-intro {
    max-width: 960px;
}

    .legal-intro .sub-title {
        display: block;
        margin-bottom: 12px;
    }

    .legal-intro h1 {
        margin-bottom: 22px;
    }

    .legal-intro p {
        font-size: 17px;
        line-height: 1.75;
    }

.legal-last-update {
    margin-top: 20px;
    font-size: 14px !important;
}

.legal-index {
    padding: 35px;
    border: 1px solid #e5e5e5;
    background-color: #f7f7f7;
}

    .legal-index h2 {
        margin-bottom: 25px;
        font-size: 26px;
    }

    .legal-index .row > div {
        margin-bottom: 12px;
    }

    .legal-index a {
        position: relative;
        display: block;
        padding-left: 20px;
        color: var(--title-color, #171717);
        font-weight: 600;
        line-height: 1.5;
    }

        .legal-index a::before {
            position: absolute;
            top: 9px;
            left: 0;
            width: 7px;
            height: 7px;
            background-color: var(--theme-color);
            content: "";
        }

        .legal-index a:hover {
            color: var(--theme-color);
        }

.legal-section {
    margin-bottom: 60px;
    scroll-margin-top: 125px;
}

    .legal-section:last-child {
        margin-bottom: 0;
    }

    .legal-section h2 {
        margin-bottom: 25px;
        padding-bottom: 18px;
        border-bottom: 1px solid #e5e5e5;
        font-size: 32px;
        line-height: 1.3;
    }

    .legal-section h3 {
        margin: 30px 0 15px;
        font-size: 22px;
        line-height: 1.4;
    }

    .legal-section p {
        margin-bottom: 18px;
        line-height: 1.8;
    }

    .legal-section a {
        color: var(--theme-color);
        text-decoration: underline;
    }

.legal-list {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

    .legal-list li {
        position: relative;
        margin-bottom: 12px;
        padding-left: 28px;
        line-height: 1.75;
    }

        .legal-list li::before {
            position: absolute;
            top: 11px;
            left: 0;
            width: 8px;
            height: 8px;
            background-color: var(--theme-color);
            content: "";
        }

.legal-contact-box,
.legal-highlight,
.legal-warning {
    margin: 25px 0;
    padding: 28px 32px;
    border-left: 4px solid var(--theme-color);
    background-color: #f7f7f7;
}

    .legal-contact-box p:last-child,
    .legal-highlight p:last-child,
    .legal-warning p:last-child {
        margin-bottom: 0;
    }

    .legal-highlight h3,
    .legal-warning h3 {
        margin-top: 0;
    }

.legal-table-wrapper {
    width: 100%;
    margin: 25px 0 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    background-color: #ffffff;
}

.cookie-table {
    min-width: 1050px;
}

.legal-table th,
.legal-table td {
    padding: 17px 19px;
    border: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background-color: var(--theme-color);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.legal-table td {
    font-size: 14px;
    line-height: 1.65;
}

.legal-table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

@media only screen and (max-width: 991px) {
    .legal-section {
        scroll-margin-top: 95px;
    }

        .legal-section h2 {
            font-size: 28px;
        }
}

@media only screen and (max-width: 575px) {
    .legal-index {
        padding: 28px 22px;
    }

    .legal-section {
        margin-bottom: 45px;
        scroll-margin-top: 80px;
    }

        .legal-section h2 {
            font-size: 25px;
        }

        .legal-section h3 {
            font-size: 20px;
        }

    .legal-contact-box,
    .legal-highlight,
    .legal-warning {
        padding: 24px 21px;
    }
}

.contact-validation-summary.validation-summary-valid {
    display: none !important;
}

.contact-section .form-inner .right-column .form-group .icon-box {
    top: 8px;
}

.contact-section .form-inner .left-column .form-group .icon-box {
    top: 15px;
}

/* =========================================================
   OFF-CANVAS PROVA GRATUITA
   ========================================================= */

body.trial-offcanvas-open {
    overflow: hidden;
}


/* Sfondo */

.trial-offcanvas-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background-color: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .trial-offcanvas-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }


/* Pannello */

.trial-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    width: min(620px, 100%);
    height: 100%;
    background-color: #ffffff;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
}

    .trial-offcanvas.is-open {
        transform: translateX(0);
        visibility: visible;
    }


/* Header */

.trial-offcanvas__header {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 30px 35px 26px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
}

.trial-offcanvas__subtitle {
    display: block;
    margin-bottom: 7px;
    color: var(--theme-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.trial-offcanvas__header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}


/* Chiusura */

.trial-offcanvas__close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    color: var(--title-color, #171717);
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

    .trial-offcanvas__close:hover {
        border-color: var(--theme-color);
        background-color: var(--theme-color);
        color: #ffffff;
    }


/* Corpo */

.trial-offcanvas__body {
    position: relative;
    flex: 1 1 auto;
    padding: 32px 35px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
}


/* Introduzione */

.trial-offcanvas__intro {
    margin-bottom: 30px;
}

    .trial-offcanvas__intro p {
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.7;
    }

.trial-offcanvas__promotion {
    position: relative;
    margin-top: 22px;
    padding: 20px 22px;
    border-left: 4px solid var(--theme-color);
    background-color: #f5f5f5;
}

    .trial-offcanvas__promotion strong,
    .trial-offcanvas__promotion span {
        display: block;
    }

    .trial-offcanvas__promotion strong {
        margin-bottom: 4px;
        color: var(--title-color, #171717);
        font-size: 18px;
    }

    .trial-offcanvas__promotion span {
        font-size: 14px;
        line-height: 1.6;
    }


/* Campi */

.trial-form-group {
    position: relative;
    margin-bottom: 20px;
}

    .trial-form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--title-color, #171717);
        font-size: 14px;
        font-weight: 700;
    }

    .trial-form-group input[type="text"],
    .trial-form-group input[type="email"],
    .trial-form-group input[type="tel"] {
        display: block;
        width: 100%;
        height: 54px;
        padding: 10px 16px;
        border: 1px solid #dddddd;
        background-color: #ffffff;
        color: var(--title-color, #171717);
        font-size: 15px;
        outline: none;
        transition: border-color 0.2s ease;
    }

    .trial-form-group input:focus {
        border-color: var(--theme-color);
    }


/* Privacy */

.trial-privacy {
    margin-top: 4px;
}

.trial-privacy__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .trial-privacy__row input[type="checkbox"] {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }

    .trial-privacy__row label {
        margin: 0;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.55;
    }

    .trial-privacy__row a {
        color: var(--theme-color);
        text-decoration: underline;
    }


/* Errori */

.trial-form-summary {
    margin-bottom: 25px;
    padding: 18px 20px;
    border-left: 4px solid #b42318;
    background-color: #fff1f0;
    color: #7a271a;
}

    .trial-form-summary[hidden] {
        display: none !important;
    }

    .trial-form-summary strong {
        display: block;
        margin-bottom: 7px;
    }

    .trial-form-summary ul {
        margin: 0;
        padding-left: 20px;
    }

.trial-field-error {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}

    .trial-field-error:empty {
        display: none;
    }

.trial-form-group .input-validation-error {
    border-color: #b42318 !important;
}


/* Invio */

.trial-form-actions {
    margin-top: 28px;
}

    .trial-form-actions .theme-btn {
        width: 100%;
    }

        .trial-form-actions .theme-btn:disabled {
            cursor: wait;
            opacity: 0.7;
        }

    .trial-form-actions p {
        margin: 12px 0 0;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }


/* Conferma */

.trial-form-success {
    padding: 55px 15px;
    text-align: center;
}

    .trial-form-success[hidden] {
        display: none !important;
    }

.trial-form-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 25px;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    font-size: 34px;
    font-weight: 700;
}

.trial-form-success h3 {
    margin-bottom: 13px;
    font-size: 29px;
}

.trial-form-success p {
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.7;
}


/* Smartphone */

@media only screen and (max-width: 575px) {

    .trial-offcanvas__header {
        padding: 24px 20px 21px;
    }

        .trial-offcanvas__header h2 {
            font-size: 25px;
        }

    .trial-offcanvas__close {
        width: 40px;
        height: 40px;
    }

    .trial-offcanvas__body {
        padding: 25px 20px 35px;
    }
}

.trial-form-group textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid #dddddd;
    background-color: #ffffff;
    color: var(--title-color, #171717);
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease;
}

    .trial-form-group textarea:focus {
        border-color: var(--theme-color);
    }

.trial-optional-label {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--text-color, #666666);
    font-size: 12px;
    font-weight: 400;
}

/* =========================================================
   HOMEPAGE APPALTITALIA
   ========================================================= */

/* Hero */

.home-banner .content-box {
    max-width: 760px;
}

    .home-banner .content-box h2 {
        max-width: 720px;
    }

.home-banner__text {
    max-width: 650px;
    margin: 22px 0 30px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.65;
}

.home-banner .btn-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.home-banner__secondary {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background-color: transparent !important;
}

    .home-banner__secondary:hover {
        border-color: var(--theme-color);
    }


/* Presentazione */

.home-intro-section {
    position: relative;
}

.home-intro-section__content {
    padding-right: 45px;
}

    .home-intro-section__content > p {
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 1.8;
    }

.home-intro-section__promo {
    margin: 30px 0;
    padding: 24px 26px;
    border-left: 4px solid var(--theme-color);
    background-color: #f5f5f5;
}

    .home-intro-section__promo strong,
    .home-intro-section__promo span {
        display: block;
    }

    .home-intro-section__promo strong {
        margin-bottom: 5px;
        color: var(--title-color, #171717);
        font-size: 20px;
    }

    .home-intro-section__promo span {
        line-height: 1.6;
    }

.home-intro-section__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--title-color, #171717);
    font-weight: 700;
}

    .home-text-link:hover {
        color: var(--theme-color);
    }

.home-intro-section__visual {
    position: relative;
    padding-left: 25px;
}

    .home-intro-section__visual .image-box {
        margin: 0;
    }

        .home-intro-section__visual .image-box img {
            display: block;
            width: 100%;
            min-height: 520px;
            object-fit: cover;
        }

.home-intro-section__benefits {
    position: absolute;
    right: 0;
    bottom: 35px;
    width: min(390px, calc(100% - 55px));
    background-color: #ffffff;
}

.home-intro-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e5e5;
}

    .home-intro-benefit:last-child {
        border-bottom: 0;
    }

    .home-intro-benefit img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .home-intro-benefit span {
        color: var(--title-color, #171717);
        font-weight: 700;
    }


/* Contenuti del servizio */

.home-journal-section {
    padding: 120px 0;
}

    .home-journal-section .growth-block-one .inner-box {
        height: 100%;
    }

    .home-journal-section .growth-block-one p {
        min-height: 110px;
    }

    .home-journal-section .growth-block-one .image img {
        width: 100%;
        height: 245px;
        object-fit: cover;
    }


/* Strumenti */

.home-tools-section {
    position: relative;
}

.home-tool-column {
    display: flex;
    margin-bottom: 30px;
}

.home-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 38px 34px;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

    .home-tool-card:hover {
        border-color: var(--theme-color);
        transform: translateY(-5px);
    }

    .home-tool-card .icon-box {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
        background-color: #f5f5f5;
    }

        .home-tool-card .icon-box img {
            max-width: 36px;
            max-height: 36px;
        }

    .home-tool-card h3 {
        margin-bottom: 16px;
        font-size: 24px;
        line-height: 1.35;
    }

    .home-tool-card p {
        flex: 1 1 auto;
        margin-bottom: 25px;
        line-height: 1.75;
    }

    .home-tool-card > a {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--title-color, #171717);
        font-weight: 700;
    }

        .home-tool-card > a:hover {
            color: var(--theme-color);
        }


/* Servizi */

.home-services-section .banking-tab-carousel .tab-btn {
    height: 100%;
}

    .home-services-section .banking-tab-carousel .tab-btn h3 {
        font-size: 20px;
        line-height: 1.3;
    }

.home-services-section
.tabs-content
.image-column
.image-box
.image img {
    display: block;
    width: 100%;
    min-height: 520px;
    object-fit: cover;
}

.home-services-section .content-box > p {
    margin-bottom: 28px;
    line-height: 1.8;
}

.home-services-section .inner-box {
    margin-bottom: 34px;
}

.home-service-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}


/* Numeri */

.home-funfacts .count-outer {
    white-space: nowrap;
}

.home-funfacts .funfact-block-one p {
    max-width: 250px;
    margin-right: auto;
    margin-left: auto;
}


/* CTA prova */

.home-trial-section .text-box h5 {
    line-height: 1.6;
}

    .home-trial-section .text-box h5 strong {
        color: var(--theme-color);
    }

.home-trial-section .image-box .image img {
    display: block;
    width: 100%;
    min-height: 620px;
    object-fit: cover;
}


/* FAQ */

.home-faq-section .category-box .category-list a {
    text-decoration: none;
}


/* News */

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

    .home-section-heading .sec-title {
        margin-bottom: 0;
    }

.home-news-section .news-block-one,
.home-news-section .news-block-one .inner-box {
    height: 100%;
}

    .home-news-section .news-block-one .content-box {
        display: flex;
        flex-direction: column;
        height: calc(100% - 260px);
    }

    .home-news-section .news-block-one .lower-box {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .home-news-section .news-block-one .link-box {
        margin-top: auto;
    }

    .home-news-section
    .news-block-one
    .image-box
    .image img,
    .home-news-section
    .news-block-one
    .image-box
    .overlay-image img {
        display: block;
        width: 100%;
        height: 260px;
        object-fit: cover;
    }


/* Tablet */

@media only screen and (max-width: 1199px) {

    .home-intro-section__content {
        padding-right: 10px;
    }

    .home-services-section
    .tabs-content
    .content-box {
        margin-right: 0 !important;
    }
}


@media only screen and (max-width: 991px) {

    .home-intro-section__content {
        margin-bottom: 50px;
        padding-right: 0;
    }

    .home-intro-section__visual {
        padding-left: 0;
    }

    .home-services-section
    .tabs-content
    .image-column {
        margin-bottom: 40px;
    }

    .home-services-section
    .tabs-content
    .image-box {
        margin-right: 0 !important;
    }

    .home-trial-section .content-column {
        margin-bottom: 45px;
    }
}


/* Smartphone */

@media only screen and (max-width: 767px) {

    .home-banner__text {
        font-size: 16px;
    }

    .home-banner .btn-box {
        align-items: stretch;
        flex-direction: column;
    }

        .home-banner .btn-box .theme-btn {
            width: 100%;
            text-align: center;
        }

    .home-intro-section__buttons,
    .home-service-buttons {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-intro-section__visual .image-box img {
        min-height: 420px;
    }

    .home-intro-section__benefits {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
    }

    .home-journal-section {
        padding: 90px 0;
    }

        .home-journal-section .growth-block-one p {
            min-height: 0;
        }

    .home-services-section
    .tabs-content
    .image-column
    .image-box
    .image img,
    .home-trial-section
    .image-box
    .image img {
        min-height: 360px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-news-section .news-block-one .content-box {
        height: auto;
    }
}


@media only screen and (max-width: 575px) {

    .home-intro-section__promo,
    .home-tool-card {
        padding: 24px 21px;
    }

    .home-intro-section__visual .image-box img {
        min-height: 330px;
    }

    .home-news-section
    .news-block-one
    .image-box
    .image img,
    .home-news-section
    .news-block-one
    .image-box
    .overlay-image img {
        height: 225px;
    }
}

@media only screen and (max-width: 1599px) {

    .banner-section .slide-item .bg-layer::after {
        position: absolute;
        inset: 0;
        z-index: 1;
        background-color: rgba(0, 0, 0, 0.3);
        content: "";
        pointer-events: none;
    }

    .banner-section .slide-item .outer-container,
    .banner-section .slide-item .pattern-layer {
        position: relative;
        z-index: 2;
    }
}

.square-icon {
    background: #f5f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.square-icon i {
    color: var(--theme-color);
}

/* Animazione testo descrittivo nello slider */

.banner-section .swiper-slide .content-box p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.banner-section .swiper-slide-active .content-box p {
    opacity: 1;
    transform: translateY(0);
}