/*
Theme Name: morelli-bolzoni
Theme URI: https://example.com/morelli-bolzoni
Author: Nyx Solutions
Author URI: https://nyxsolutions.it
Description: Tema Custom Morelli Bolzoni.
Version: 1.0.1
Text Domain: morelli-bolzoni
*/

/* Overlay opaco per slider home */
.mb-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--mb-banner-overlay, 0.4));
    pointer-events: none;
    z-index: 1;
}

.rts-banner-slider-three .swiper-slide {
    position: relative;
}

.rts-banner-slider-three .banner-content {
    position: relative;
    z-index: 2;
}

.rts-banner-slider-three-area .banner-wrapper {
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.rts-banner-slider-three-area .rts-banner-slider-three {
    height: min(calc(100vh - 52px), 930px) !important;
}

.rts-banner-slider-three-area .banner-wrapper .banner-content {
    padding: clamp(170px, 21vh, 230px) 60px clamp(126px, 17vh, 184px) !important;
    transform: translateY(42px);
}

.rts-banner-slider-three .banner-content .desc {
    font-size: 22px;
    font-weight: 300;
}

.rts-banner-slider-three-area .banner-wrapper .banner-content .title {
    font-size: 70px;
    line-height: 1.08;
}

.rts-banner-slider-three-area .banner-wrapper .banner-content .title,
.rts-banner-slider-three-area .banner-wrapper .banner-content .desc {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
}

.rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area .banner-btn.one,
.rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area .banner-btn.two {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
}

body.home .rts-blog-area-three {
    background: #f6f8fa;
}

.mb-home-news-marquee {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #2f5a63;
    overflow: hidden;
    margin-top: -1px;
    transform: none;
    min-height: 52px;
}

.mb-home-news-marquee__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 52px;
}

.mb-home-news-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-height: 52px;
    animation: mb-home-marquee 40s linear infinite;
    will-change: transform;
}

.mb-home-news-marquee:hover .mb-home-news-marquee__track {
    animation-play-state: paused;
}

.mb-home-news-marquee__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 52px;
}

.mb-home-news-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0;
    margin-right: 54px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.mb-home-news-marquee__date {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 500;
}

.mb-home-news-marquee__sep {
    color: rgba(255, 255, 255, 0.38);
}

.mb-home-news-marquee__title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

@keyframes mb-home-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Icone card servizi grigio caldo + icona scura */
.rts-service-area .single-item .icon,
.rts-service-area .rts-service-wrapper-three .single-item .icon {
    background: #f4f1ed;
    border-radius: 12px;
    padding: 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.rts-service-area .single-item .icon img,
.rts-service-area .rts-service-wrapper-three .single-item .icon img {
    filter: grayscale(100%) brightness(0.25);
    width: 48px;
    height: 48px;
}

/* Card servizi altezza uniforme */
.rts-service-wrapper-three .single-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rts-service-wrapper-three .single-item .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
}
/* Gestione dimensioni logo (supporta SVG) */
.logo-area .logo img {
    max-height: 60px;
    width: var(--mb-logo-width, 160px);
    height: auto;
    display: block;
}

@media (min-width: 1180px) {
    .rts-header-area.header-three .logo-area {
        flex: 0 1 420px;
        justify-content: center !important;
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .rts-banner-slider-three-area .container {
        max-width: 1600px;
        width: 100%;
    }

    .rts-header-area.header-three .logo-area .logo {
        max-width: none !important;
        width: 100%;
        padding-right: 0 !important;
        display: flex;
        justify-content: center;
    }

    .rts-header-area.header-three .logo-area .logo img {
        width: 260px !important;
        max-width: none !important;
        max-height: none;
    }

    .rts-header-area.header-three .top-header-area {
        display: flex !important;
    }

    .rts-header-area.header-three .bottom-header-area .header-nav-area {
        display: block !important;
    }

    .rts-banner-slider-three-area .swiper-banner-btn {
        top: auto !important;
        bottom: 38px !important;
        left: auto !important;
        right: 28px !important;
        width: auto !important;
        transform: none !important;
        flex-direction: row !important;
        gap: 12px !important;
    }

    .rts-banner-slider-three-area .swiper-banner-btn .banner-btn {
        width: 58px !important;
        height: 58px !important;
    }
}

@media (max-width: 767px) {
    .rts-header-area.header-three .logo-area {
        max-width: none;
        width: auto;
        flex: 0 0 auto;
        padding-left: 16px !important;
        justify-content: flex-start !important;
    }

    .rts-header-area.header-three .logo-area .logo {
        padding-right: 0 !important;
        display: block;
    }

    .logo-area .logo img {
        width: 190px;
        max-height: none;
    }

    .mb-home-news-marquee__item {
        padding: 16px 0;
        margin-right: 34px;
        gap: 10px;
    }

    .mb-home-news-marquee__date {
        font-size: 12px;
    }

    .mb-home-news-marquee__title {
        font-size: 14px;
    }
}

/* Troncamento titoli blog a 2 righe con ellissi */
.single-blog .title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tooltip Bootstrap personalizzato */
.tooltip.mb-tooltip .tooltip-arrow::before {
    background: #0f172a;
}
.tooltip.mb-tooltip .tooltip-inner {
    background: #0f172a;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.mb-form-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.45;
}

.mb-form-notice.success {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.mb-form-notice.error {
    background: rgba(47, 90, 99, 0.1);
    color: #2f5a63;
    border: 1px solid rgba(47, 90, 99, 0.22);
}

.mb-recaptcha-note {
    margin-top: 12px;
    max-width: 420px;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(17, 24, 39, 0.68);
}

.mb-recaptcha-note a {
    color: inherit;
    text-decoration: underline;
}

.mb-recaptcha-note-footer {
    max-width: none;
    color: rgba(255, 255, 255, 0.68);
}

.mb-recaptcha-note-footer a {
    display: inline !important;
    white-space: nowrap;
    color: #33545b !important;
}

.mb-form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
}

.mb-form-consent input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.mb-form-consent a {
    color: #2f5a63;
    text-decoration: underline;
}

.mb-form-consent-footer {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.mb-form-consent-footer a {
    color: #ffffff;
    display: inline;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-subscribe-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0;
    align-items: start;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-subscribe-row > input[type="email"] {
    min-width: 0;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-subscribe-row .sub-btn {
    position: static;
    transform: none;
    align-self: start;
    white-space: nowrap;
    margin-left: -3px;
}

.rts-footer-area.footer-three {
    padding-top: 0;
}

.rts-footer-area {
    background: #eef4f2;
}

.rts-footer-area .footer-menu-area,
.rts-footer-area .footer-copyright-three {
    position: relative;
    z-index: 1;
}

.rts-footer-area .footer-menu-area::before,
.rts-footer-area .footer-copyright-three::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    bottom: 0;
    left: 50%;
    margin-right: -50vw;
    margin-left: -50vw;
    background: #33545b;
    z-index: -1;
}

.rts-footer-area .footer-menu-area,
.rts-footer-area .footer-copyright-three {
    padding-right: 24px;
    padding-left: 24px;
}

.rts-footer-area .footer-menu-area {
    padding-top: 26px;
    padding-bottom: 16px;
}

.rts-footer-area .footer-menu-area .footer-menu {
    padding-bottom: 16px;
    margin-bottom: 0;
    border-bottom: 0;
}

.rts-footer-area .footer-widget-wrapper-three {
    background: #eef4f2;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body,
.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .desc,
.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .date,
.rts-footer-area .footer-copyright-three .copyright,
.rts-footer-area .footer-copyright-three .copyright span,
.rts-footer-area .footer-copyright-three .footer-condition li a,
.rts-footer-area .mb-recaptcha-note-footer,
.rts-footer-area .mb-form-consent-footer span {
    color: #1f2937;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-title {
    color: #33545b;
}

.rts-footer-area .footer-copyright-three .copyright,
.rts-footer-area .footer-copyright-three .copyright span,
.rts-footer-area .footer-copyright-three .footer-condition li a,
.rts-footer-area .footer-copyright-three .copyright a {
    color: #eef4f2;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body a.phone,
.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body a.email,
.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-item-wrapper .widget-item .content .title a,
.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-item-wrapper .widget-item .content .date,
.rts-footer-area .footer-copyright-three .copyright a {
    color: #33545b;
}

.rts-footer-area .footer-copyright-three {
    border-top: 0;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-subscribe-row > input[type="email"] {
    background: #dde8e5;
    color: #111827;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .social-list li a {
    background: #dde8e5;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-subscribe-row > input[type="email"]::placeholder {
    color: rgba(17, 24, 39, 0.56);
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-form-consent-footer {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-form-consent-footer input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    margin-top: 3px;
    background: transparent;
    border-radius: 0;
    flex: 0 0 auto;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-form-consent-footer span {
    white-space: nowrap;
    display: inline-block;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-form-consent-footer span a {
    display: inline;
    color: #33545b;
}

.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .social-list li a {
    background: #dde8e5;
    color: #33545b;
}

.rts-contact-stats-area {
    overflow: hidden;
}

.rts-contact-stats-area::after {
    content: "";
    position: absolute;
    inset: 0;
    height: 82%;
    background: rgba(0, 0, 0, 0.48);
    z-index: -1;
}

.rts-contact-stats-area::before {
    background-attachment: fixed;
}

.rts-contact-stats-area .container {
    position: relative;
    z-index: 1;
}

.rts-contact-stats-area .rts-contact-stats-wrapper {
    overflow: visible;
    padding-bottom: 34px;
    margin-bottom: -12px;
}

.rts-contact-stats-area .rts-contact-stats-wrapper .single-contact-stats {
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

@media (max-width: 991px) {
    .rts-contact-stats-area::before {
        background-attachment: scroll;
    }
}

.rts-appointment-wrapper .rts-appointment-form-area {
    background: rgba(22, 44, 49, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.rts-appointment-wrapper .rts-appointment-form-area .title {
    color: #f5f7f7;
}

body.page-template-page-contatti .rts-contact-area::before {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.rts-appointment-wrapper .rts-appointment-form-area .mb-form-consent,
.rts-appointment-wrapper .rts-appointment-form-area .mb-form-consent span,
.rts-appointment-wrapper .rts-appointment-form-area .mb-recaptcha-note {
    color: rgba(255, 255, 255, 0.86);
}

.rts-appointment-wrapper .rts-appointment-form-area .mb-form-consent a,
.rts-appointment-wrapper .rts-appointment-form-area .mb-recaptcha-note a {
    color: #ffffff;
}

.rts-faq-area .rts-faq-wrapper .rts-faq-image-area .faq-counter-area {
    background: #2f5a63;
}

.rts-offcanvas-area,
.rts-offcanvas-area.active {
    background: #162c31;
}

.subtitle-three {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(47, 90, 99, 0.08);
    color: #991b0e !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
}

.rts-section-title .subtitle-three {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    min-height: 40px;
    border-radius: 999px;
    background: rgba(47, 90, 99, 0.08);
    color: #991b0e !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.15;
}

.mb-internal-layout-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: -1px;
}

.rts-service-area.about-bg-one.mb-internal-layout-section,
.rts-blog-area.mb-internal-layout-section,
.rts-blog-details-area.mb-internal-layout-section {
    margin: 0 !important;
    border-radius: 0 !important;
}

.mb-internal-container {
    max-width: 1480px;
    padding-left: 34px;
    padding-right: 34px;
}

.mb-hero .container {
    max-width: 1480px;
    padding-left: 34px;
    padding-right: 34px;
}

.main-nav-area ul li:hover > a,
.main-nav-area ul li.current-menu-item > a,
.main-nav-area ul li.current_page_parent > a,
.main-nav-area ul li.current-menu-ancestor > a {
    color: #991b0e !important;
}

body.post-type-archive-aree-di-competenza .main-nav-area ul li.current_page_parent:not(.current-menu-item) > a,
body.single-aree-di-competenza .main-nav-area ul li.current_page_parent:not(.current-menu-item) > a {
    color: #ffffff !important;
}

.mb-internal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(290px, 0.72fr);
    gap: 42px;
    align-items: stretch;
}

.mb-internal-layout--no-visual {
    grid-template-columns: minmax(0, 1.95fr) minmax(290px, 0.72fr);
    gap: 42px;
}

.mb-internal-content-col,
.mb-internal-sidebar-col {
    min-width: 0;
}

.mb-internal-content-col {
    padding-top: 56px;
    padding-bottom: 56px;
}

.mb-internal-sidebar-col {
    padding-top: 56px;
    padding-bottom: 56px;
    position: relative;
    align-self: stretch;
}

.mb-internal-content-col .title {
    font-weight: 300;
}

.mb-internal-content-col .service-details,
.mb-internal-content-col .rts-blog-details-wrapper,
.mb-internal-content-col .rts-service-wrapper,
.mb-internal-content-col .rts-blog-wrapper {
    height: 100%;
}

.mb-internal-sidebar-col .rts-widget-wrapper,
.mb-internal-sidebar-col .blog-sidebar {
    max-width: 100%;
}

.mb-internal-sidebar-col .rts-widget-wrapper .single-widget:last-child,
.mb-internal-sidebar-col .blog-sidebar .single-widget:last-child {
    margin-bottom: 56px;
}

.mb-internal-sidebar-col .single-widget.category-widget .widget-title,
.rts-service-details-area .rts-widget-wrapper .single-widget.category-widget .widget-title,
.blog-sidebar .single-widget.category-widget .widget-title {
    margin-bottom: 14px;
}

.mb-internal-sidebar-col .single-widget.category-widget .category-list li + li,
.rts-service-details-area .rts-widget-wrapper .single-widget.category-widget .category-list li + li,
.blog-sidebar .single-widget.category-widget .category-list li + li {
    margin-top: 10px;
}

.mb-internal-sidebar-col .single-widget.category-widget .category-list li a,
.rts-service-details-area .rts-widget-wrapper .single-widget.category-widget .category-list li a,
.blog-sidebar .single-widget.category-widget .category-list li a {
    padding: 14px 18px !important;
    font-size: 14px !important;
    line-height: 1.3;
}

.mb-internal-sidebar-col .single-widget.category-widget .category-list li.active > span,
.rts-service-details-area .rts-widget-wrapper .single-widget.category-widget .category-list li.active > span,
.blog-sidebar .single-widget.category-widget .category-list li.active > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px !important;
    font-size: 14px !important;
    line-height: 1.3;
    border-radius: 6px;
    background: #2f5a63;
    color: #ffffff;
}

.mb-internal-sidebar-col .single-widget.category-widget .category-list li a i,
.rts-service-details-area .rts-widget-wrapper .single-widget.category-widget .category-list li a i,
.blog-sidebar .single-widget.category-widget .category-list li a i {
    font-size: 14px !important;
}

.rts-service-details-area .rts-widget-wrapper .single-widget.contact-widget,
.mb-internal-sidebar-col .rts-widget-wrapper .single-widget.contact-widget {
    background: #162c31;
}

.rts-service-details-area .rts-widget-wrapper .single-widget.download-widget,
.mb-internal-sidebar-col .rts-widget-wrapper .single-widget.download-widget {
    background: #162c31;
}

.rts-service-details-area .rts-widget-wrapper .single-widget.mb-sidebar-contacts-widget,
.mb-internal-sidebar-col .rts-widget-wrapper .single-widget.mb-sidebar-contacts-widget,
.blog-sidebar .single-widget.mb-sidebar-contacts-widget {
    background: #2f5a63;
    color: #ffffff;
}

.rts-service-details-area .rts-widget-wrapper .single-widget.mb-sidebar-contacts-widget .widget-title,
.mb-internal-sidebar-col .rts-widget-wrapper .single-widget.mb-sidebar-contacts-widget .widget-title,
.blog-sidebar .single-widget.mb-sidebar-contacts-widget .widget-title {
    margin-bottom: 14px;
    color: #ffffff;
}

.mb-sidebar-contacts-widget__line {
    width: 92px;
    height: 3px;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.72);
}

.mb-sidebar-contacts-widget__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-sidebar-contacts-widget__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 16px;
    line-height: 1.45;
}

.mb-sidebar-contacts-widget__list li:last-child {
    margin-bottom: 0;
}

.mb-sidebar-contacts-widget__list li i {
    flex: 0 0 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    text-align: center;
}

.mb-sidebar-contacts-widget__list li a,
.mb-sidebar-contacts-widget__list li span {
    color: inherit;
}

.mb-sidebar-contacts-widget__list li a:hover {
    color: #ffffff;
}

@media (max-width: 1399px) {
    .mb-internal-container {
        max-width: 1320px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .mb-hero .container {
        max-width: 1320px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .mb-internal-layout {
        grid-template-columns: minmax(0, 1.82fr) minmax(270px, 0.7fr);
        gap: 34px;
    }

    .mb-internal-layout--no-visual {
        grid-template-columns: minmax(0, 1.82fr) minmax(270px, 0.7fr);
        gap: 34px;
    }
}

@media (max-width: 1199px) {
    .mb-internal-container,
    .mb-hero .container {
        padding-left: 26px;
        padding-right: 26px;
    }

    .mb-internal-layout,
    .mb-internal-layout--no-visual {
        grid-template-columns: minmax(0, 1.72fr) minmax(250px, 0.68fr);
        gap: 28px;
    }
}

@media (max-width: 991px) {
    .mb-internal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .mb-internal-content-col {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .mb-internal-sidebar-col {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.grecaptcha-badge {
    transform: scale(0.9);
    transform-origin: right bottom;
    opacity: 0.82;
}

@media (max-width: 767px) {
    .mb-recaptcha-note {
        font-size: 10px;
        line-height: 1.4;
    }

    .mb-form-consent {
        font-size: 12px;
    }

    .rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area {
        row-gap: 8px;
    }

    .rts-footer-area .footer-widget-wrapper-three .single-widget .widget-body .subscribe-area .mb-subscribe-row {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 0;
    }

    .grecaptcha-badge {
        transform: scale(0.82);
    }
}

/* Colore icone SVG nei project item */
.single-project-item .icon {
    color: #2f5a63 !important;
}

.single-project-item .icon svg,
.single-project-item .icon svg * {
    color: inherit !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

.mb-area-single-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.mb-area-single-heading__icon {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5f8fa 0%, #eef4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mb-area-single-heading__icon img {
    max-width: 42px;
    max-height: 42px;
    width: auto;
    height: auto;
}

.mb-area-single-heading__text {
    min-width: 0;
    display: flex;
    align-items: center;
}

.mb-area-single-heading .title {
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    text-wrap: balance;
}

.rts-service-details-area .rts-section-title.mb-area-single-heading .title {
    margin-bottom: 0;
    font-size: 40px !important;
    line-height: 1.04;
}

@media (max-width: 767px) {
    .mb-area-single-heading {
        gap: 16px;
        margin-bottom: 22px;
    }

    .mb-area-single-heading__icon {
        width: 74px;
        height: 74px;
    }

    .mb-area-single-heading__icon img {
        max-width: 36px;
        max-height: 36px;
    }

    .rts-service-details-area .rts-section-title.mb-area-single-heading .title {
        font-size: 22px !important;
        line-height: 1.08;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
        -webkit-hyphens: none;
        -ms-hyphens: none;
        text-wrap: balance;
    }
}

/* Archivio aree - card compatte con reveal orizzontale */
.service-item--compact {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 24px 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(47, 90, 99, 0.1);
    box-shadow: 0 16px 40px rgba(12, 24, 28, 0.06);
    cursor: pointer;
}

.service-item--compact .service-item-front {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    gap: 22px;
}

.service-item--compact .icon-number-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.service-item--compact .icon-number-area .icon {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5f8fa 0%, #eef4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.service-item--compact .icon-number-area .icon img {
    max-width: 42px;
    max-height: 42px;
    width: auto;
    height: auto;
}

.service-item--compact .icon-number-area .number {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(47, 90, 99, 0.42);
}

.service-item--compact > .title,
.service-item--compact .service-item-front .title,
.service-item--compact .service-hover-panel .title {
    margin: 0;
    font-size: 17px;
    line-height: 1.22;
    font-weight: 300;
}

.rts-service-area .rts-service-wrapper .service-item.service-item--compact .service-content-area.service-hover-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 24px !important;
    background: rgba(255, 255, 255, 0.965);
    transform: translateX(-102%);
    opacity: 0;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.service-item--compact .service-hover-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 90, 99, 0.08) 0%, rgba(47, 90, 99, 0) 52%);
    pointer-events: none;
}

.service-item--compact .service-hover-panel .service-hover-panel__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.service-item--compact .service-hover-panel > *:not(.service-hover-panel__link) {
    position: relative;
    z-index: 2;
}

.service-item--compact .service-hover-panel__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rts-service-area .rts-service-wrapper .service-item.service-item--compact .service-content-area.service-hover-panel .title {
    font-size: 15px;
    line-height: 1.18;
}

.service-item--compact .service-hover-panel .desc {
    margin: 0;
    color: #51606a;
    font-size: 14px;
    line-height: 1.55;
}

.service-item--compact .service-hover-panel .btn-primary-2 {
    align-self: flex-start;
    padding: 11px 16px;
    min-height: auto;
    font-size: 14px;
}

.rts-service-area .rts-service-wrapper .service-item.service-item--compact:hover .service-content-area.service-hover-panel {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 991px) {
    .service-item--compact {
        min-height: 250px;
        padding: 20px 20px;
    }

    .rts-service-area .rts-service-wrapper .service-item.service-item--compact .service-content-area.service-hover-panel {
        padding: 24px 20px !important;
        gap: 14px;
    }

    .service-item--compact > .title,
    .service-item--compact .service-item-front .title,
    .service-item--compact .service-hover-panel .title {
        font-size: 16px;
    }

    .rts-service-area .rts-service-wrapper .service-item.service-item--compact .service-content-area.service-hover-panel .title {
        font-size: 15px;
    }
}

/* Sidebar latest posts with thumbs */
.latest-with-thumb li {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.latest-with-thumb a.thumb {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.latest-with-thumb a.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.latest-with-thumb .thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}
.latest-with-thumb .meta a {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}
.latest-with-thumb .meta .date {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

@media (min-width: 992px) {
    .blog-sidebar {
        background: #f7f3f0;
        padding: 28px;
        border-radius: 18px;
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

.blog-sidebar .single-widget + .single-widget {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.blog-two.blog-inner {
    overflow: visible;
}

.blog-sidebar .widget-title {
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.blog-sidebar .widget-list li {
    margin-bottom: 10px;
}

.mb-sidebar-fixed {
    z-index: 10;
}

/* Hero globale */
.mb-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    padding: 78px 0 48px;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.mb-hero.no-bg {
    background:
        radial-gradient(circle at 88% 38%, rgba(176, 226, 236, 0.78) 0%, rgba(176, 226, 236, 0.44) 24%, rgba(124, 185, 197, 0.18) 52%, rgba(90, 150, 163, 0) 72%),
        #5a96a3;
}
.mb-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}
.mb-hero .container {
    position: relative;
    z-index: 2;
}
.mb-hero .title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

/* Sticky header color + logo swap */
.rts-sticky-header.is-sticky,
.rts-sticky-header.sticky {
    background: #2f5a63 !important;
}
.rts-sticky-header.is-sticky .logo img,
.rts-sticky-header.sticky .logo img {
    content: attr(data-sticky-logo);
}

.rts-sticky-header.is-sticky .rts-btn.btn-primary,
.rts-sticky-header.sticky .rts-btn.btn-primary {
    background: #991b0e !important;
    border-color: #991b0e !important;
    color: #fff !important;
}

.entry-content p,
.entry-content li,
.service-content p,
.service-content li,
.rts-blog-details-wrapper .inner-content-blog-details p,
.rts-blog-details-wrapper .inner-content-blog-details li {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}
.mb-breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #e5e7eb;
    font-weight: 500;
}
.mb-breadcrumbs li::after {
    content: "/";
    margin-left: 10px;
    color: #cbd5e1;
}
.mb-breadcrumbs li:last-child::after {
    content: "";
}
.mb-breadcrumbs a {
    color: #e5e7eb;
}
.mb-breadcrumbs .current {
    color: #fff;
}

@media (max-width: 767px) {
    .mb-hero {
        min-height: 285px;
        padding: 54px 0 34px;
    }

    .mb-hero .title {
        font-size: 26px;
        line-height: 1.08;
        margin-bottom: 8px;
    }

    .mb-breadcrumbs {
        gap: 8px;
        font-size: 14px;
    }

    .mb-breadcrumbs li::after {
        margin-left: 8px;
    }

    .rts-service-details-area .rts-section-title .title,
    .rts-service-details-area .single-widget .widget-title,
    .rts-service-details-area .single-widget .content .title {
        font-size: 24px;
        line-height: 1.1;
    }

    .rts-service-details-area .rts-widget-wrapper,
    .rts-service-details-area #chi-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        box-sizing: border-box;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget {
        padding: 24px 18px !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget.download-widget .download-list .download-item {
        gap: 16px;
        align-items: flex-start;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget.download-widget .download-list .download-item .content-area {
        min-width: 0;
        flex: 1 1 auto;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget.download-widget .download-list .download-item .content-area .content {
        min-width: 0;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget.download-widget .download-list .download-item .content-area .content .title {
        font-size: 20px;
        line-height: 1.2;
        word-break: break-word;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget.download-widget .download-list .download-item .donwload-btn {
        flex: 0 0 40px;
        margin-left: auto;
    }

    .rts-service-details-area .rts-widget-wrapper .single-widget.mb-sidebar-contacts-widget,
    .mb-internal-sidebar-col .rts-widget-wrapper .single-widget.mb-sidebar-contacts-widget {
        padding: 28px 18px !important;
    }

    .mb-sidebar-contacts-widget__list li {
        font-size: 15px;
    }
}

/* Home services slider: uniform cards + icon hover */
.rts-service-wrapper-four .swiper-wrapper {
    align-items: stretch;
}
.rts-service-wrapper-four .swiper-slide {
    height: auto;
    display: flex;
}
.rts-service-wrapper-four .single-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rts-service-wrapper-four .single-item .content {
    flex: 1 1 auto;
}
.rts-service-wrapper-four .single-item .icon img {
    transition: filter 0.2s ease;
}
.rts-service-wrapper-four .single-item:hover .icon img {
    filter: brightness(0) invert(1);
}

/* Service slider arrows */
.rts-service-wrapper-four {
    position: relative;
    padding: 0 20px;
}
.rts-service-wrapper-four .swiper {
    overflow: hidden;
    padding: 0;
}
.rts-service-wrapper-four .swiper .swiper-wrapper {
    padding: 0;
    box-sizing: border-box;
}
.rts-service-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.rts-service-navigation .rts-service-prev,
.rts-service-navigation .rts-service-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #2f5a63;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}
.rts-service-navigation .rts-service-prev:hover,
.rts-service-navigation .rts-service-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.16);
    background: #24464d;
}
.rts-service-pagination {
    margin-top: 20px;
}

.mb-areas-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.mb-areas-link:hover {
    background: rgba(47, 90, 99, 0.08);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
  .rts-service-wrapper-four {
    padding: 56px 0 0;
  }
  .rts-service-wrapper-four .swiper {
    padding: 0;
  }
  .rts-service-navigation {
    display: flex;
    margin-top: 18px;
  }
  .rts-service-navigation .rts-service-prev,
  .rts-service-navigation .rts-service-next {
    width: 42px;
    height: 42px;
  }
}

/* Anchor corretto per il tooltip dell'immagine Mara in home */
.rts-about-wrapper-three .about-image-area .about-link-mara {
  position: absolute;
  top: 235px;
  right: 0;
  display: block;
  max-width: 380px;
  z-index: 2;
}

.rts-about-wrapper-three .about-image-area .about-link-mara .about-thumb-two {
  position: static;
  display: block;
}

@media (max-width: 575px) {
  .rts-about-wrapper-three .about-image-area .about-link-mara {
    display: block;
    top: 285px;
  }
}

@media (max-width: 1179px) {
  .rts-banner-slider-three-area .rts-banner-slider-three {
    height: 680px !important;
  }

  .rts-banner-slider-three-area .swiper-banner-btn {
    top: auto !important;
    bottom: 38px !important;
    left: auto !important;
    right: 28px !important;
    width: auto !important;
    transform: none !important;
    flex-direction: row !important;
    gap: 12px !important;
  }

  .rts-banner-slider-three-area .swiper-banner-btn .banner-btn {
    width: 58px !important;
    height: 58px !important;
  }

  .rts-header-area.header-three .logo-area {
    max-width: none;
    width: auto;
    flex: 0 0 auto;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .rts-header-area.header-three .logo-area .logo {
    padding-right: 0 !important;
  }

  .logo-area .logo img {
    width: 205px;
    max-height: none;
  }

  .rts-banner-slider-three-area .swiper-slide {
    touch-action: pan-y !important;
  }

  .rts-banner-slider-three-area .banner-wrapper,
  .rts-banner-slider-three-area .banner-wrapper .banner-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    font-size: 46px !important;
    line-height: 1.04 !important;
    margin-bottom: 0 !important;
    max-width: 720px !important;
  }

  .rts-banner-slider-three-area .banner-heading-text {
    display: none !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .desc {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
    max-width: 560px !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content {
    padding: 156px 42px 116px !important;
    transform: translateY(16px);
  }
}

@media (max-width: 767px) {
  .rts-banner-slider-three-area .rts-banner-slider-three {
    height: min(calc(100vh - 52px), 720px) !important;
  }

  .rts-banner-slider-three-area .swiper-slide {
    touch-action: pan-y !important;
  }

  .rts-banner-slider-three-area .banner-wrapper,
  .rts-banner-slider-three-area .banner-wrapper .banner-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    font-size: 29px !important;
    line-height: 1.08 !important;
    margin-bottom: 0 !important;
  }

  .rts-banner-slider-three-area .banner-heading-text {
    display: none !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .desc {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: 320px !important;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content {
    padding: 132px 18px 70px !important;
    transform: none;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area .banner-btn {
    font-size: 13px !important;
    padding: 14px 20px !important;
    white-space: nowrap;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area .banner-btn i {
    margin-left: 8px;
  }

  .rts-about-wrapper-three .rts-about-content-area .content-item-wrapper .single-item {
    gap: 10px !important;
  }

  .rts-about-wrapper-three .rts-about-content-area .content-item-wrapper .single-item .icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .rts-about-wrapper-three .rts-about-content-area .content-item-wrapper .single-item .icon i {
    font-size: 16px !important;
  }

  .rts-about-wrapper-three .rts-about-content-area .content-item-wrapper .single-item .title {
    font-size: 17px !important;
    line-height: 1.1 !important;
  }
}

body.home .mb-home-prefooter {
  padding: 80px 0 40px;
  background: #ffffff;
}

body.home .mb-home-prefooter__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 1fr;
  gap: 56px;
  align-items: stretch;
}

body.home .mb-home-prefooter__col {
  display: flex;
  flex-direction: column;
}

body.home .mb-home-prefooter__title {
  margin: 0 0 18px;
  color: #222222;
  font-size: 24px;
  line-height: 1.2;
}

body.home .mb-home-prefooter__line {
  width: 120px;
  height: 3px;
  margin-bottom: 34px;
  background: #2f5a63;
}

body.home .mb-home-prefooter__contacts,
body.home .mb-home-prefooter__social,
.mb-home-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home .mb-home-prefooter__contacts li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: #222222;
  font-size: 16px;
  line-height: 1.45;
}

body.home .mb-home-prefooter__contacts li i {
  color: #2f5a63;
  font-size: 20px;
}

body.home .mb-home-prefooter__contacts li a,
body.home .mb-home-prefooter__intro,
body.home .mb-home-prefooter__consent,
body.home .mb-home-prefooter__recaptcha {
  color: #555555;
}

body.home .mb-home-prefooter__contacts li a:hover,
body.home .mb-home-prefooter__consent a,
body.home .mb-home-prefooter__recaptcha a,
body.home .mb-home-footer__links a:hover,
.mb-home-footer__credits a:hover,
.mb-home-footer__linkedin:hover {
  color: #2f5a63;
}

body.home .mb-home-prefooter__social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

body.home .mb-home-prefooter__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #2f5a63;
  color: #ffffff;
  border-radius: 4px;
  font-size: 16px;
}

body.home .mb-home-prefooter__intro {
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.7;
}

body.home .mb-home-prefooter__form,
body.home .mb-home-prefooter__newsletter {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.home .mb-home-prefooter__field {
  margin-bottom: 14px;
}

body.home .mb-home-prefooter__field input,
body.home .mb-home-prefooter__field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.2);
  background: transparent;
  padding: 0 0 14px;
  color: #222222;
  font-size: 16px;
  line-height: 1.45;
}

body.home .mb-home-prefooter__field input::placeholder,
body.home .mb-home-prefooter__field textarea::placeholder {
  color: #999999;
}

body.home .mb-home-prefooter__field textarea {
  min-height: 52px;
  resize: vertical;
}

body.home .mb-home-prefooter__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 1.45;
}

body.home .mb-home-prefooter__consent input {
  margin-top: 3px;
}

body.home .mb-home-prefooter__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 56px;
  margin-top: auto;
  padding: 15px 30px;
  border: 0;
  background: #2f5a63;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease;
}

body.home .mb-home-prefooter__button:hover {
  background: #24464d;
  color: #ffffff;
  transform: translateY(-1px);
}

body.home .mb-home-prefooter__button i {
  font-size: 16px;
}

body.home .mb-home-prefooter__recaptcha {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
}

.mb-home-footer {
  background: #2f5a63;
}

.mb-home-footer .container {
  max-width: 1360px;
}

.mb-home-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 36px;
  padding: 54px 0 44px;
}

.mb-home-footer__heading {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.mb-home-footer__rule {
  width: 100%;
  height: 2px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.38);
}

.mb-home-footer__col p,
.mb-home-footer__links li {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.55;
}

.mb-home-footer__col a,
.mb-home-footer__links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
}

.mb-home-footer__linkedin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 8px;
  border-radius: 3px;
  background: #ffffff;
  color: #2f5a63 !important;
  font-size: 15px;
}

.mb-home-footer__bottom {
  background: #2f5a63;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.mb-home-footer__copyright,
.mb-home-footer__credits {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.6;
}

.mb-home-footer__credits a {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 1199px) {
  body.home .mb-home-prefooter__grid,
  .mb-home-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  body.home .mb-home-prefooter {
    padding: 56px 0 24px;
  }

  body.home .mb-home-prefooter__grid,
  .mb-home-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.home .mb-home-prefooter__button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
    .subtitle-three,
    .rts-section-title .subtitle-three {
        font-size: 16px !important;
        padding: 9px 16px;
        min-height: 36px;
    }
}

@media (max-width: 420px) {
  .rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area {
    gap: 8px !important;
  }

  .rts-banner-slider-three-area .banner-wrapper .banner-content .banner-btn-area .banner-btn {
    font-size: 12px !important;
    padding: 13px 16px !important;
  }
}

@media (max-width: 767px) {
    .subtitle-three,
    .rts-section-title .subtitle-three,
    .rts-about-wrapper-three .rts-about-content-area .rts-section-title .subtitle-three,
    .rts-service-area .rts-section-title .subtitle-three,
    .rts-blog-area-three .rts-section-title .subtitle-three {
        display: inline-flex !important;
        margin: 0 auto 14px !important;
        padding: 7px 14px !important;
        min-height: 0 !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
    }

    .rts-section-title {
        text-align: center;
    }

    .rts-section-title .subtitle-three {
        justify-content: center;
    }
}


.mb-legal-page-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

.mb-legal-page-section .mb-internal-container {
    max-width: 1720px;
    padding-left: 42px;
    padding-right: 42px;
}

.mb-privacy-policy {
    max-width: 100%;
    width: 100%;
}

.mb-privacy-policy__intro {
    margin-bottom: 28px;
}

.mb-privacy-policy h3 {
    font-size: 30px;
    font-weight: 600;
    margin: 42px 0 18px;
}

.mb-privacy-policy h4 {
    font-size: 22px;
    font-weight: 600;
    margin: 28px 0 14px;
}

.mb-privacy-policy p,
.mb-privacy-policy li {
    font-size: 18px;
    line-height: 1.8;
    color: #425466;
}

.mb-privacy-policy ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
    list-style: disc;
}

.mb-privacy-policy li {
    margin-left: 0;
}

.mb-privacy-policy li::marker {
    color: #33545b;
}

.mb-privacy-policy li + li {
    margin-top: 8px;
}

.mb-privacy-policy__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0 8px;
}

.mb-privacy-policy__card {
    padding: 28px;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    background: #f8fafc;
}

.mb-privacy-policy__card ul {
    margin-bottom: 0;
}

.mb-privacy-policy ul > li strong {
    color: #1f2937;
}

.mb-privacy-policy__contact {
    padding: 28px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
}

.mb-privacy-policy__contact p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .mb-privacy-policy__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .mb-legal-page-section {
        padding-top: 42px !important;
    }

    .mb-legal-page-section .mb-internal-container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .mb-privacy-policy .title {
        font-size: 28px !important;
        margin-bottom: 16px;
    }

    .mb-privacy-policy h3 {
        font-size: 17px;
        margin: 24px 0 10px;
    }

    .mb-privacy-policy h4 {
        font-size: 15px;
    }

    .mb-privacy-policy p,
    .mb-privacy-policy li {
        font-size: 15px;
        line-height: 1.54;
    }

    .mb-privacy-policy__card,
    .mb-privacy-policy__contact {
        padding: 20px;
    }
}


/* Alleggerimento globale dei titoli */
.rts-section-title .title,
.mb-hero .title,
.rts-banner-slider-three-area .banner-wrapper .banner-content .title,
.mb-area-single-heading .title,
.blog-sidebar .widget-title,
.rts-service-details-area .rts-widget-wrapper .single-widget .widget-title,
.rts-footer-area .footer-widget-wrapper-three .single-widget .widget-title,
.mb-home-prefooter__title,
.rts-contact-area .contact-wrapper .title,
.rts-service-area .single-item .title,
.rts-blog-area .title,
.rts-blog-area-three .title {
    font-weight: 600 !important;
}

/* Offcanvas mobile submenu: espansione corretta con sfondo */
.rts-offcanvas-area .rts-offcanvas-menu nav ul li .submenu,
.rts-offcanvas-area .rts-offcanvas-menu nav ul li .sub-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 12px !important;
    padding: 8px 14px !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08) !important;
    overflow: hidden;
    box-shadow: none !important;
}

.rts-offcanvas-area .rts-offcanvas-menu nav ul li .submenu li,
.rts-offcanvas-area .rts-offcanvas-menu nav ul li .sub-menu li {
    margin: 0;
}

.rts-offcanvas-area .rts-offcanvas-menu nav ul li .submenu li a,
.rts-offcanvas-area .rts-offcanvas-menu nav ul li .sub-menu li a {
    padding: 10px 0 !important;
    font-size: 14px !important;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rts-offcanvas-area .rts-offcanvas-menu nav ul li .submenu li:last-child a,
.rts-offcanvas-area .rts-offcanvas-menu nav ul li .sub-menu li:last-child a {
    border-bottom: 0;
}

.rts-offcanvas-area .rts-offcanvas-menu nav ul li.active > .submenu,
.rts-offcanvas-area .rts-offcanvas-menu nav ul li.active > .sub-menu {
    display: block;
}
