@import url('/wp-content/themes/inmalta-child-theme/css/fonts.css');
@import url('/wp-content/themes/inmalta-child-theme/css/plugins.css');
@import url('/wp-content/themes/inmalta-child-theme/css/inmalta.css');

/* CSS custom base */
@import url('/wp-content/themes/inmalta-child-theme/assets/css/inmalta-custom.css');


/* =========================================================
   SLIDER - font titoli
========================================================= */
.inspiro-slider .page-header-caption h1,
.inspiro-slider .page-header-caption h2,
.inspiro-slider .page-header-caption h3 {
    font-weight: 550 !important;
}


/* =========================================================
   SLIDER - fix mobile
========================================================= */
@media (max-width: 991px) {
    .inspiro-slider.inmalta-slider .header-image-wrapper,
    .inspiro-slider.inmalta-slider .kenburns-bg {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .inspiro-slider.inmalta-slider .header-image-wrapper,
    .inspiro-slider.inmalta-slider .kenburns-bg,
    .inspiro-slider.inmalta-slider .header-image,
    .inspiro-slider.inmalta-slider .carousel-cell-image {
        width: 100% !important;
        height: 100% !important;
    }

    .inspiro-slider.inmalta-slider .carousel-cell-image {
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }

    .inspiro-slider.inmalta-slider .flickity-page-dots {
        bottom: auto !important;
        top: 65% !important;
        transform: translateY(-50%) !important;
    }
}


/* =========================================================
   SLIDER - fix abbassamento desktop
========================================================= */
@media (min-width: 992px) {
    #page-header {
        position: relative !important;
        top: 40px !important;
    }
}

@media (min-width: 992px) {
    .inspiro-slider.inmalta-slider .flickity-prev-next-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}


/* =========================================================
   FOOTER - fix rientranze e titoli
========================================================= */
.footer .inmalta-widget-menu ul.list {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
}

.footer .inmalta-widget-menu ul.list li {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.footer .inmalta-widget-menu .inmalta-title-menu {
    font-weight: 700 !important;
}


/* =========================================================
   MEGAMENU - spaziature titoli e voci
========================================================= */
.inmalta-megamenu-2 .inmalta-widget-menu ul.list > li.inmalta-menu-heading {
    margin-top: 18px !important;
}

.inmalta-megamenu-2 .inmalta-widget-menu ul.list > li.inmalta-menu-heading:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-due .inmalta-megamenu-2 .inmalta-widget-menu .inmalta-title-menu {
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-due .inmalta-megamenu-2 .inmalta-widget-menu ul.list > li.nav-item {
    padding: 10px 0 !important;
}


/* =========================================================
   SLIDER PAGINE INTERNE - dimensioni desktop
========================================================= */
@media (min-width: 992px) {
    body:not(.home) .inmalta-slider {
        height: calc(550px + 150px) !important;
    }

    body:not(.home) .inmalta-slider .flickity-slider {
        height: 550px !important;
    }

    body:not(.home) .inmalta-slider .flickity-button {
        top: calc(50% - 90px);
    }

    body:not(.home) .inmalta-slider .flickity-page-dots {
        bottom: 180px;
    }
}


/* =========================================================
   SLIDER PAGINE INTERNE - testo desktop
========================================================= */
@media (min-width: 992px) {
    body:not(.home) .inmalta-slider .page-header-caption .header-image-title {
        text-align: left !important;
        width: calc(75% + 90px) !important;
    }

    body:not(.home) .inmalta-slider .page-header-caption .header-title {
        font-size: 65px !important;
        line-height: 1.1em !important;
        text-transform: uppercase;
        letter-spacing: -1px !important;
        max-width: 700px;
        margin-bottom: 20px;
    }

    body:not(.home) .inmalta-slider .page-header-caption .header-subtitle {
        max-width: 700px;
    }
}


/* =========================================================
   TITLE BLOCK
========================================================= */
.inmalta-title-block {
    background: #f4f4f4;
    padding: 80px 0 5px;
}

@media (max-width: 767px) {
    .inmalta-title-block {
        padding: 30px 0 5px;
    }
}


/* =========================================================
   TAB - overlay cliccabile
========================================================= */
.focus-tabs .tab-pane {
    position: relative;
}

.inmalta-tab-pane-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: block;
}

/* tutto il contenuto resta visibile ma non intercetta il click */
.focus-tabs .tab-pane .content,
.focus-tabs .tab-pane .content *,
.focus-tabs .tab-pane .btn,
.focus-tabs .tab-pane [data-bg-image],
.focus-tabs .tab-pane .col-lg-6 {
    pointer-events: none;
}


/* =========================================================
   TAB - desktop altezza fissa
========================================================= */
@media (min-width: 768px) {
    .focus-tabs .tab-content {
        overflow: hidden;
    }

    .focus-tabs .tab-pane .row.no-gutters {
        min-height: 620px;
        height: 680px;
    }

    .focus-tabs .tab-pane .content {
        min-height: 620px;
        height: 680px;
        overflow: hidden;
        position: relative;
    }

    .focus-tabs .tab-pane .content .focus-text {
        max-height: 100%;
        overflow: hidden;
        position: relative;
    }

    .focus-tabs .tab-pane [data-bg-image] {
        min-height: 620px;
        height: 680px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}


/* =========================================================
   TAB - mobile compatto
========================================================= */
@media (max-width: 767.98px) {
    .focus-tabs .tab-content {
        overflow: visible;
    }

    .focus-tabs .tab-pane .row.no-gutters {
        min-height: 0 !important;
        height: auto !important;
    }

    .focus-tabs .tab-pane .content {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: relative;
        margin-top: -15px !important;
        margin-bottom: 20px !important;
        padding: 30px 15px !important;
        background-color: transparent !important;
    }

    .focus-tabs .tab-pane .content .focus-text {
        max-height: none !important;
        overflow: visible !important;
        position: relative;
        padding-bottom: 10px !important;
    }

    .focus-tabs .tab-pane [data-bg-image] {
        min-height: 300px !important;
        height: auto !important;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .focus-tabs .tab-pane .content .btn {
        display: block;
        width: calc(80% - 40px);
        margin: auto;
    }
}


/* =========================================================
   SLIDE - immagine full width con crop
========================================================= */
.inmalta-slider .header-image,
.inmalta-slider .header-image img,
.inmalta-slider .carousel-cell-image {
    width: 100% !important;
    height: 100% !important;
}

.inmalta-slider .header-image-wrapper,
.inmalta-slider .kenburns-bg {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.inmalta-slider .carousel-cell-image {
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}


/* =========================================================
   TAB - overlay full row
========================================================= */
.focus-tabs .inmalta-tab-row {
    position: relative;
}

.focus-tabs .inmalta-tab-row .cta-overlay-full {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: block;
}

.focus-tabs .inmalta-tab-row > .col-lg-6,
.focus-tabs .inmalta-tab-row .content,
.focus-tabs .inmalta-tab-row .focus-text,
.focus-tabs .inmalta-tab-row .btn {
    position: relative;
    z-index: 10;
    pointer-events: none;
}


/* =========================================================
   ADMIN / BUILDER VISUAL FIX
========================================================= */
.inmalta-modules-list {
    display: block !important;
}


/* =========================================================
   MODULO TESTO - override completo
========================================================= */
.inmalta-module-text-content,
.inmalta-module-text-content * {
    font-family: var(--font-family) !important;
    color: var(--accent-color) !important;
}

/* paragrafi e testo base */
.inmalta-module-text-content p,
.inmalta-module-text-content li {
    font-size: 20px !important;
    line-height: 1.6em !important;
    font-weight: 400 !important;
    margin: 0 0 22px !important;
}

/* liste */
.inmalta-module-text-content ul,
.inmalta-module-text-content ol {
    margin: 0 0 22px !important;
    padding-left: 30px !important;
}

.inmalta-module-text-content li {
    margin-bottom: 6px !important;
}

/* titoli */
.inmalta-module-text-content h1,
.inmalta-module-text-content h2,
.inmalta-module-text-content h3,
.inmalta-module-text-content h4,
.inmalta-module-text-content h5,
.inmalta-module-text-content h6 {
    font-family: var(--font-family) !important;
    color: var(--accent-color) !important;
    font-weight: 500 !important;
    line-height: 1.2em !important;
    margin: 0 0 14px !important;
}

/* grassetti */
.inmalta-module-text-content strong,
.inmalta-module-text-content b {
    font-weight: 500 !important;
}

/* link stile inMalta */
.inmalta-module-text-content a {
    position: relative;
    padding: 2px 4px;
    color: var(--main-color) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--main-color);
    text-underline-offset: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.inmalta-module-text-content a:hover,
.inmalta-module-text-content a:focus {
    background-color: var(--main-color);
    color: #fff !important;
    text-decoration: none !important;
}

/* blockquote */
.inmalta-module-text-content blockquote {
    background: #f3f3f3 !important;
    padding: 25px 30px 25px 70px !important;
    position: relative;
}

.inmalta-module-text-content blockquote p {
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.5em !important;
    font-weight: 300 !important;
}


/* =========================================================
   COLONNE STICKY - base
========================================================= */
.inmalta-sticky-row {
    position: relative;
}


/* =========================================================
   FLICKITY - reset bottoni carousel
========================================================= */
.carousel .flickity-button {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    line-height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
}

.carousel .flickity-button:hover {
    background-color: var(--main-color) !important;
}

.carousel .flickity-button svg {
    width: 16px;
    height: 16px;
    fill: #000000 !important;
}

.carousel .flickity-button:hover svg {
    fill: #ffffff !important;
}


/* =========================================================
   GALLERIA CAROUSEL DESKTOP - proporzione fissa
========================================================= */
@media (min-width: 768px) {
    .inmalta-gallery-carousel-desktop .portfolio-item-wrap,
    .inmalta-gallery-carousel-desktop .portfolio-image {
        height: auto !important;
    }

    .inmalta-gallery-carousel-desktop .portfolio-image {
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }

    .inmalta-gallery-carousel-desktop .portfolio-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}


/* =========================================================
   MODULO FORM - micro spaziature
========================================================= */
.inmalta-module-form form > label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.inmalta-module-form form > input.form-control,
.inmalta-module-form form > .bootstrap-select,
.inmalta-module-form form > textarea.form-control {
    margin-top: 0;
}

.inmalta-module-form input[name="Name_First"] {
    margin-bottom: 12px;
}


/* =========================================================
   BOOTSTRAP SELECT - nasconde title option
========================================================= */
.bootstrap-select .dropdown-menu .dropdown-item.bs-title-option {
    display: none !important;
}

.bootstrap-select .dropdown-menu li:has(> .dropdown-item.bs-title-option) {
    display: none !important;
}

.bootstrap-select .dropdown-menu .inner.show {
    padding-top: 0 !important;
}

.bootstrap-select .dropdown-menu .dropdown-menu.inner li:first-child {
    margin-top: 0 !important;
}


/* =========================================================
   SFONDO GENERALE SITO
========================================================= */
body,
#main-content {
    background-color: #fafafa;
}


/* =========================================================
   BANNER
========================================================= */
.inmalta-banner-module .banner_widget {
    background: #fff;
    padding: 12px;
}

.inmalta-banner-module .inmalta-banner-carousel {
    position: relative;
}

.inmalta-banner-module .inmalta-banner-slide {
    width: 100%;
}

.inmalta-banner-module .inmalta-banner-slide a {
    display: block;
    width: 100%;
}

.inmalta-banner-module .inmalta-banner-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
}

/* reset completo bottoni flickity solo banner */
.inmalta-banner-module .flickity-prev-next-button {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: var(--main-color) !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.inmalta-banner-module .flickity-button {
    border-radius: 50% !important;
}

.inmalta-banner-module .flickity-button-icon {
    fill: #fff !important;
    width: 18px;
    height: 18px;
}

.inmalta-banner-module .flickity-prev-next-button.previous {
    left: 10px !important;
}

.inmalta-banner-module .flickity-prev-next-button.next {
    right: 10px !important;
}

.inmalta-banner-module .flickity-prev-next-button:hover {
    background: var(--main-color) !important;
    opacity: 0.9;
}

/* spazio sopra banner */
.inmalta-banner-module {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.inmalta-banner-module.single_sidebar_widget {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
}

@media (max-width: 767.98px) {
    .inmalta-banner-module {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .inmalta-banner-module.single_sidebar_widget {
        margin-top: 0 !important;
    }

    .inmalta-layout-col-sidebar .inmalta-banner-module:first-child,
    .inmalta-layout-col-right .inmalta-banner-module:first-child,
    .inmalta-layout-col .inmalta-banner-module:first-child {
        margin-top: 0 !important;
    }
}


/* =========================================================
   WIDGET FORM - mobile compatto
========================================================= */
@media (max-width: 767.98px) {
    .widget-form {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }

    .widget-form + br,
    .widget-form + br + br,
    .widget-form br {
        display: none !important;
    }
}


/* =========================================================
   DOWNLOAD TEMPLATE
========================================================= */
#download-template .features-list ul li,
#download-template .licenses .features ul li {
    min-height: 44px;
}

#download-template .features-list ul li span:first-child {
    white-space: nowrap;
}


/* =========================================================
   UTILITY
========================================================= */
.inmalta-btn-full-width {
    display: flex !important;
    width: 100%;
}


/* =========================================================
   BOTTONI MODULO - sovrascrittura colori
========================================================= */
.inmalta-module-button .btn,
.inmalta-module-button .btn:link,
.inmalta-module-button .btn:visited,
.inmalta-module-button .btn:focus,
.inmalta-module-button .btn:active {
    color: #fff;
}

.inmalta-module-button .btn.btn-color-1 {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.inmalta-module-button .btn.btn-color-1:before {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.inmalta-module-button .btn.btn-color-1:hover {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.inmalta-module-button .btn.btn-color-2 {
    background-color: var(--colore_4) !important;
    border-color: var(--colore_4) !important;
}

.inmalta-module-button .btn.btn-color-2:before {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.inmalta-module-button .btn.btn-color-2:hover {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.inmalta-module-button .btn.btn-color-3 {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.inmalta-module-button .btn.btn-color-3:before {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.inmalta-module-button .btn.btn-color-3:hover {
    background-color: transparent !important;
    border-color: var(--colore_4) !important;
    color: #fff !important;
}

.inmalta-module-button .btn.btn-giallo {
    background-color: var(--giallo) !important;
    border-color: var(--giallo) !important;
}

.inmalta-module-button .btn.btn-giallo:before {
    background-color: var(--giallo) !important;
    border-color: var(--giallo) !important;
}

.inmalta-module-button .btn.btn-giallo:hover {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.inmalta-module-button .btn.btn-arancio {
    background-color: var(--arancio) !important;
    border-color: var(--arancio) !important;
}

.inmalta-module-button .btn.btn-arancio:before {
    background-color: var(--arancio) !important;
    border-color: var(--arancio) !important;
}

.inmalta-module-button .btn.btn-arancio:hover {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.inmalta-module-button .btn.btn-rosso {
    background-color: var(--rosso) !important;
    border-color: var(--rosso) !important;
}

.inmalta-module-button .btn.btn-rosso:before {
    background-color: var(--rosso) !important;
    border-color: var(--rosso) !important;
}

.inmalta-module-button .btn.btn-rosso:hover {
    background-color: transparent !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.inmalta-module-button .btn.animate-btn,
.inmalta-module-button .animate-btn.btn {
    transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1) !important;
    position: relative;
    z-index: 1;
}

.inmalta-module-button .btn.animate-btn:before,
.inmalta-module-button .animate-btn.btn:before {
    display: block !important;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    z-index: -1;
    content: '';
    transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1) !important;
}

.inmalta-module-button .btn.animate-btn:hover:before,
.inmalta-module-button .animate-btn.btn:hover:before {
    left: 0;
    right: auto;
    width: 100%;
}

.inmalta-module-button .btn.btn-block {
    display: flex !important;
    width: 100% !important;
}


/* =========================================================
   FOOTER LOGOS
========================================================= */
.inmalta-footer-logos-wrap {
    background: #fafafa;
    padding: 30px 0;
}

.inmalta-footer-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.inmalta-footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inmalta-footer-logo-image {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 70px;
}

.inmalta-hide-desktop {
    display: none !important;
}

#footer .text-center {
    margin: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    .inmalta-hide-desktop {
        display: flex !important;
    }

    .inmalta-hide-mobile {
        display: none !important;
    }

    .inmalta-footer-logos-wrap {
        padding: 25px 0;
    }

    .inmalta-footer-logos-row {
        gap: 0;
    }

    .inmalta-footer-logo-image {
        max-width: 140px;
        max-height: 50px;
    }
}


/* =========================================================
   SCROLL TOP - Astra override
========================================================= */
#ast-scroll-top,
.ast-scroll-top,
.ast-scroll-to-top {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background-color: var(--main-color) !important;
    background-image: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#ast-scroll-top::before,
#ast-scroll-top::after,
.ast-scroll-top::before,
.ast-scroll-top::after,
.ast-scroll-to-top::before,
.ast-scroll-to-top::after {
    background: transparent !important;
    background-image: none !important;
}

#ast-scroll-top *,
.ast-scroll-top *,
.ast-scroll-to-top * {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#ast-scroll-top svg,
.ast-scroll-top svg,
.ast-scroll-to-top svg,
#ast-scroll-top i,
.ast-scroll-top i,
.ast-scroll-to-top i,
#ast-scroll-top span,
.ast-scroll-top span,
.ast-scroll-to-top span {
    color: #ffffff !important;
    fill: #ffffff !important;
}

#ast-scroll-top:hover,
.ast-scroll-top:hover,
.ast-scroll-to-top:hover {
    background-color: var(--main-color) !important;
    background-image: none !important;
    opacity: 0.9;
}


/* =========================================================
   UNDER FOOTER / SOCKET
========================================================= */
.socket .address p {
    margin-bottom: 3px;
    line-height: 1.3;
}

.inmalta-under-footer .address p {
    margin-bottom: 5px;
}

.inmalta-under-footer .address p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .socket {
        padding-bottom: 110px;
    }

    .socket .address {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .socket .address p {
        margin-bottom: 2px;
        line-height: 1.35;
    }

    .socket .address span {
        font-size: 13px !important;
    }

    .socket .credits {
        text-align: left !important;
        margin-top: 12px;
        font-size: 13px !important;
    }

    .socket .credits a,
    .socket .credits span {
        font-size: 13px !important;
    }
}


/* =========================================================
   PAGINAZIONE
========================================================= */
.inmalta-pagination .page-link {
    color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.inmalta-pagination .page-item.active .page-link {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #fff !important;
}

.inmalta-pagination .page-link:hover {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
    color: #fff !important;
}


/* =========================================================
   QUOTE - replica originale dinamica
========================================================= */
.inmalta-module-quote-content blockquote {
    position: relative;
    border-left: 8px solid var(--inmlt-quote-color, var(--main-color));
    padding: 20px 20px 20px 60px;
    margin: 0;
    font-size: 23px;
    line-height: 1.6;
    color: #555;
    font-weight: 400;
}

/* virgolette */
.inmalta-module-quote-content blockquote:before {
    content: "\201C";
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 40px;
    color: var(--inmlt-quote-color, var(--main-color));
    font-weight: bold;
}

/* grassetti più marcati */
.inmalta-module-quote-content blockquote strong {
    font-weight: 700;
}

/* link colore sito destinazione */
.inmalta-module-quote-content blockquote a {
    color: var(--inmlt-smart-link-color, var(--main-color));
    text-decoration: none;
    border-bottom: 3px solid var(--inmlt-smart-link-color, var(--main-color));
    transition: all 0.2s ease;
    font-weight: 700;
}

.inmalta-module-quote-content blockquote a:hover {
    background-color: var(--inmlt-smart-link-color, var(--main-color));
    color: #fff;
    border-bottom: 1px solid var(--inmlt-smart-link-color, var(--main-color));
}


/* =========================================================
   FAQ MODULE
========================================================= */
.inmalta-faq-module {
    padding: 55px 0;
    background: transparent;
}

.inmalta-faq-wrap {
    width: 100%;
}

.inmalta-faq-head {
    margin-bottom: 34px;
    padding: 0 22px;
}

.inmalta-faq-title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    color: #4a4a4a;
}

.inmalta-faq-intro {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.75;
    color: #666;
}

.inmalta-faq-list {
    border-top: 1px solid #e6e6e6;
}

.inmalta-faq-item {
    border-bottom: 1px solid #e6e6e6;
    background: transparent;
}

.inmalta-faq-question {
    width: 100%;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 26px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
    cursor: pointer;
}

.inmalta-faq-question:focus,
.inmalta-faq-question:active,
.inmalta-faq-question:hover {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.inmalta-faq-question-text {
    position: relative;
    display: inline-block;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 700;
    color: #2f2f2f;
    transition: color 0.25s ease;
}

.inmalta-faq-question-text::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    margin-top: 8px;
    background: var(--inmalta-main-color, var(--main-color));
    transition: width 0.3s ease;
}

.inmalta-faq-item:hover .inmalta-faq-question-text,
.inmalta-faq-item.is-open .inmalta-faq-question-text {
    color: var(--inmalta-main-color, var(--main-color));
}

.inmalta-faq-item:hover .inmalta-faq-question-text::after {
    width: 40px;
}

.inmalta-faq-item.is-open .inmalta-faq-question-text::after {
    width: 100%;
}

.inmalta-faq-toggle {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    position: relative;
    border-radius: 50%;
    border: 1px solid #d9d9d9;
    background: transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.inmalta-faq-item:hover .inmalta-faq-toggle,
.inmalta-faq-item.is-open .inmalta-faq-toggle {
    border-color: var(--inmalta-main-color, var(--main-color));
}

.inmalta-faq-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--inmalta-main-color, var(--main-color));
    border-bottom: 2px solid var(--inmalta-main-color, var(--main-color));
    transform: translate(-50%, -60%) rotate(45deg);
    transition: transform 0.25s ease;
}

.inmalta-faq-item.is-open .inmalta-faq-arrow {
    transform: translate(-50%, -35%) rotate(-135deg);
}

.inmalta-faq-answer {
    display: none;
    padding: 0 22px 26px 22px;
}

.inmalta-faq-item.is-open .inmalta-faq-answer {
    display: block;
}

.inmalta-faq-answer-inner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(0, 0, 0, 0.02);
}

.inmalta-faq-answer-icon {
    flex: 0 0 50px;
    width: 50px;
    height: auto;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 50px;
    line-height: 1;
    color: var(--inmalta-main-color, var(--main-color));
    margin-top: 6px;
    transition: transform 0.2s ease;
}

.inmalta-faq-answer-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.85;
    color: #555;
    padding-left: 30px;
}

.inmalta-faq-item:hover .inmalta-faq-answer-icon,
.inmalta-faq-item.is-open .inmalta-faq-answer-icon {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .inmalta-faq-module {
        padding: 42px 0;
    }

    .inmalta-faq-head {
        padding: 0 18px;
    }

    .inmalta-faq-title {
        font-size: 28px;
    }

    .inmalta-faq-question {
        padding: 22px 18px;
    }

    .inmalta-faq-question-text {
        font-size: 18px;
    }

    .inmalta-faq-answer {
        padding: 0 18px 22px 18px;
    }

    .inmalta-faq-answer-inner {
        gap: 16px;
        padding: 18px 20px;
    }

    .inmalta-faq-answer-icon {
        flex: 0 0 42px;
        width: 42px;
        font-size: 42px;
        margin-top: 5px;
    }

    .inmalta-faq-answer-text {
        font-size: 15px;
        line-height: 1.75;
        padding-left: 22px;
    }
}

@media (max-width: 767px) {
    .inmalta-faq-module {
        padding: 34px 0;
    }

    .inmalta-faq-head {
        margin-bottom: 22px;
        padding: 0 14px;
    }

    .inmalta-faq-title {
        font-size: 24px;
    }

    .inmalta-faq-intro {
        font-size: 15px;
        line-height: 1.65;
    }

    .inmalta-faq-question {
        padding: 18px 14px;
        gap: 14px;
    }

    .inmalta-faq-question-text {
        font-size: 16px;
        line-height: 1.45;
    }

    .inmalta-faq-toggle {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
    }

    .inmalta-faq-arrow {
        width: 8px;
        height: 8px;
    }

    .inmalta-faq-answer {
        padding: 0 14px 18px 14px;
    }

    .inmalta-faq-answer-inner {
        gap: 12px;
        padding: 16px 16px;
    }

    .inmalta-faq-answer-icon {
        flex: 0 0 34px;
        width: 34px;
        font-size: 34px;
        margin-top: 4px;
    }

    .inmalta-faq-answer-text {
        font-size: 14px;
        line-height: 1.7;
        padding-left: 14px;
    }
}

/* =========================================================
   LAYER SOPRA IMMAGINE INSERITA CON CARD
========================================================= */

/* WRAPPER LINK */
.inmalta-module-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

/* CONTENITORE */
.inmalta-module-image .blog_item_img {
    position: relative;
    overflow: hidden;
}

/* LIVELLO IMMAGINE (ZOOM VERO) */
.inmalta-module-image .blog_item_img::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.45s ease-out;
    z-index: 1;
}

/* ZOOM */
.inmalta-module-image-link:hover .blog_item_img::before,
.inmalta-module-image-link:focus .blog_item_img::before {
    transform: scale(1.05);
}

/* OVERLAY */
.inmalta-module-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--inmlt-image-link-color, var(--main-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

/* OVERLAY HOVER - COLORE IN TRASPARENZA SULL'IMMAGINE */
.inmalta-module-image-link:hover::after,
.inmalta-module-image-link:focus::after {
    opacity: 0.50;
}

/* =========================================================
   CTA
========================================================= */

/* CTA - bottone base */
.inmalta-module-cta .inmalta-cta-button {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* layer animato */
.inmalta-module-cta .inmalta-cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--inmlt-main_dark);
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

/* animazione hover */
.inmalta-module-cta .inmalta-cta-button:hover:before,
.inmalta-module-cta .inmalta-cta-button:focus:before {
    left: 0;
    right: auto;
    width: 100%;
}

/* =========================================================
   TEST DI INGLESE
========================================================= */

/* LINK NORMALI DEL TEST INGLESE, ESCLUSI GLI SMART LINK */
.test-inglese a:not(.inmlt-smart-link) {
    position: relative;
    padding: 2px 4px;
    color: var(--main-color) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--main-color);
    text-underline-offset: 4px;
    border-bottom: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.test-inglese a:not(.inmlt-smart-link):hover,
.test-inglese a:not(.inmlt-smart-link):focus {
    background-color: var(--main-color);
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* SMART LINK DEL TEST INGLESE */
.test-inglese .inmlt-smart-link,
.test-inglese .inmlt-smart-link:link,
.test-inglese .inmlt-smart-link:visited,
.test-inglese .inmlt-smart-link:active {
    position: relative;
    padding: 2px 4px;
    color: var(--inmlt-smart-link-color) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--inmlt-smart-link-color);
    text-underline-offset: 4px;
    border-bottom: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.test-inglese .inmlt-smart-link:hover,
.test-inglese .inmlt-smart-link:focus {
    background-color: var(--inmlt-smart-link-color);
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* =========================================================
   TESTIMONIAL
========================================================= */

.inmalta-testimonial-answer-inner .inmalta-faq-answer-text a:not(.inmlt-smart-link) {
    position: relative;
    padding: 2px 4px;
    color: var(--main-color) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--main-color);
    text-underline-offset: 4px;
    border-bottom: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.inmalta-testimonial-answer-inner .inmalta-faq-answer-text a:not(.inmlt-smart-link):hover,
.inmalta-testimonial-answer-inner .inmalta-faq-answer-text a:not(.inmlt-smart-link):focus {
    background-color: var(--main-color);
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.inmalta-testimonial-answer-inner .inmalta-faq-answer-text .inmlt-smart-link,
.inmalta-testimonial-answer-inner .inmalta-faq-answer-text .inmlt-smart-link:link,
.inmalta-testimonial-answer-inner .inmalta-faq-answer-text .inmlt-smart-link:visited,
.inmalta-testimonial-answer-inner .inmalta-faq-answer-text .inmlt-smart-link:active {
    position: relative;
    padding: 2px 4px;
    color: var(--inmlt-smart-link-color) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-decoration-color: var(--inmlt-smart-link-color);
    text-underline-offset: 4px;
    border-bottom: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.inmalta-testimonial-answer-inner .inmalta-faq-answer-text .inmlt-smart-link:hover,
.inmalta-testimonial-answer-inner .inmalta-faq-answer-text .inmlt-smart-link:focus {
    background-color: var(--inmlt-smart-link-color);
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* TESTIMONIAL - uniforma bottone zoom alle gallery */
.inmalta-testimonial-grid .portfolio-item .portfolio-description a.btn {
    display: inline-block;
    font-size: 14px !important;
    padding: 10px 20px !important;
    background-color: var(--main-color);
    color: #fff !important;
}

/* =========================================================
   ARTICOLI - LISTA BASE
========================================================= */

.inmalta-page-module-articles {
    margin-bottom: 40px;
}

.inmalta-articles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.inmalta-articles-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 30px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.inmalta-articles-item:hover {
    transform: translateY(-2px);
}

.inmalta-articles-thumb {
    margin: 0 0 18px;
    overflow: hidden;
}

.inmalta-articles-thumb-link {
    display: block;
}

.inmalta-articles-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
}

.inmalta-articles-content {
    padding: 0;
}

.inmalta-articles-meta {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.5);
}

.inmalta-articles-date {
    display: inline-block;
    margin-right: 10px;
}

.inmalta-articles-categories a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.inmalta-articles-categories a:hover,
.inmalta-articles-categories a:focus {
    color: var(--accent-color);
}

.inmalta-articles-item-title {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 500;
}

.inmalta-articles-item-title a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.inmalta-articles-item-title a:hover,
.inmalta-articles-item-title a:focus {
    color: var(--main-color);
}

.inmalta-articles-excerpt {
    margin-bottom: 18px;
}

.inmalta-articles-excerpt,
.inmalta-articles-excerpt p {
    font-size: 17px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.inmalta-articles-tags {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.inmalta-articles-tags a {
    color: var(--main-color);
    text-decoration: none;
    margin-right: 8px;
    transition: color 0.2s ease;
}

.inmalta-articles-tags a:hover,
.inmalta-articles-tags a:focus {
    color: var(--accent-color);
}

.inmalta-articles-read-more-wrap {
    margin-top: 18px;
}

.inmalta-articles-read-more {
    display: inline-block;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.inmalta-articles-read-more:hover,
.inmalta-articles-read-more:focus {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.inmalta-articles-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}

.inmalta-articles-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    background: transparent;
    transition: all 0.2s ease;
}

.inmalta-articles-page:hover,
.inmalta-articles-page:focus,
.inmalta-articles-page.current {
    background: var(--main-color);
    color: #fff;
}

.inmalta-articles-empty {
    font-size: 17px;
    line-height: 1.7;
    color: #666;
}


/* =========================================================
   ARTICOLI - INDICE / SIDEBAR
========================================================= */

/* =========================================================
   ARTICOLI - SIDEBAR / INDICE (versione migliorata)
========================================================= */

.inmalta-articles-index-block {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 18px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.inmalta-articles-index-block:hover {
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(0, 0, 0, 0.1);
}

.inmalta-articles-index-block h3 {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--main-color);
    position: relative;
    padding-left: 12px;
}

.inmalta-articles-index-block h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 14px;
    background: var(--main-color);
}

.inmalta-articles-index-block ul li {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.4;
}

.inmalta-articles-index-block a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.inmalta-articles-index-block a:hover {
    color: var(--main-color);
}

/* ULTERIORE DIFFERENZIAZIONE SOLO PER "ULTIMI ARTICOLI" */

.inmalta-articles-index-block.latest-posts {
    background: #fff;
    border-left: 3px solid var(--main-color);
}


/* =========================================================
   ARTICOLI - RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
    .inmalta-articles-list {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .inmalta-articles-item-title {
        font-size: 24px;
    }

    .inmalta-articles-excerpt,
    .inmalta-articles-excerpt p {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .inmalta-page-module-articles,
    .inmalta-page-module-articles-index {
        margin-bottom: 30px;
    }

    .inmalta-articles-thumb {
        margin-bottom: 16px;
    }

    .inmalta-articles-item {
        padding-bottom: 24px;
    }

    .inmalta-articles-item-title {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .inmalta-articles-meta {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .inmalta-articles-excerpt,
    .inmalta-articles-excerpt p {
        font-size: 15px;
        line-height: 1.65;
    }

    .inmalta-articles-pagination {
        gap: 8px;
        margin-top: 28px;
    }

    .inmalta-articles-page {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .inmalta-articles-index-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .inmalta-articles-index-block {
        margin-bottom: 24px;
    }

    .inmalta-articles-index-block h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .inmalta-articles-index-tag {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 13px;
    }
}








.inmalta-banner-module .inmalta-module-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.inmalta-banner-module .blog_item_img {
    position: relative;
    overflow: hidden;
}

.inmalta-banner-module .blog_item_img::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.45s ease-out;
    z-index: 1;
}

.inmalta-banner-module .inmalta-module-image-link:hover .blog_item_img::before,
.inmalta-banner-module .inmalta-module-image-link:focus .blog_item_img::before {
    transform: scale(1.05);
}

.inmalta-banner-module .inmalta-module-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--inmlt-image-link-color, var(--main-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.inmalta-banner-module .inmalta-module-image-link:hover::after,
.inmalta-banner-module .inmalta-module-image-link:focus::after {
    opacity: 0.50;
}

.inmalta-banner-module .blog_item_img img {
    position: relative;
    z-index: 0;
}