
/* ================================
   FONT
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Melodrama';
    src: url('../assets/fonts/Melodrama-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

.project-image {
    position: relative;
}

.project-image .et_pb_image_wrap {
    position: relative;
}

.project-image .et_pb_image_wrap::after {
    content: "+";
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90px;
    height: 90px;
    border-radius: 50%;

    background: rgba(91, 16, 24, 0.75);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 60px;
    font-weight: 300;
    line-height: 1;

    pointer-events: none;
}
/* ================================
   HERO
================================ */
#main-header,
#main-header.et-fixed-header {
    box-shadow: none !important;
}

body .et_pb_button_module_wrapper.et_pb_button_0_wrapper .et_pb_button.et_pb_button_0 {
    padding-top: 10px !important;
}

#top-menu li a,
.et_mobile_menu li a {
    font-family: 'Inter', sans-serif !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background-image: url('../assets/image/sfondo.png') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 100%;
    background-image: url('../assets/image/pattern_heros.svg') !important;
    background-repeat: repeat-y;
    background-position: left top;
    background-size: contain;
    z-index: 1;
}

.hero-section .et_pb_row,
.hero-section .et_pb_module {
    position: relative;
    z-index: 2;
}


/* ================================
   TYPOGRAPHY
================================ */

.titolo-editoriale,
.titolo-editoriale * {
    font-family: 'Melodrama', serif !important;
    font-weight: 300 !important;
    font-size: 40px !important;
    line-height: 52px !important;
    letter-spacing: -0.5px !important;
    color: #571217 !important;
}

.footer-titolo,
.footer-titolo * {
    font-family: 'Melodrama', serif !important;
    font-weight: 700 !important;
    font-size: 34px !important;
    line-height: 52px !important;
    letter-spacing: -0.5px !important;
    color: #571217 !important;
}

.footer-sottotitolo,
.footer-sottotitolo * {
    font-family: 'Melodrama', serif !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 24px !important;
    letter-spacing: -0.5px !important;
    color: #261315 !important;
}

.et_pb_text.hero-title,
.et_pb_text.hero-title .et_pb_text_inner,
.et_pb_text.hero-title .et_pb_text_inner * {
    font-family: 'Melodrama', serif !important;
    font-size: 48px !important;
    line-height: 0.95 !important;
    letter-spacing: -1px !important;
    font-weight: 600 !important;
    color: #571217 !important;
    text-transform: uppercase !important;
}

.body-elegant,
.body-elegant *,
.et_pb_text.body-elegant,
.et_pb_text.body-elegant .et_pb_text_inner,
.et_pb_text.body-elegant .et_pb_text_inner * {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px !important;
    line-height: 32px !important;
    font-weight: 300 !important;
    color: #571217 !important;
}

.body-elegant-black,
.body-elegant-black *,
.et_pb_text.body-elegant-black,
.et_pb_text.body-elegant-black .et_pb_text_inner,
.et_pb_text.body-elegant-black .et_pb_text_inner * {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    line-height: 25px !important;
    font-weight: 300 !important;
    color: #261315 !important;
}

.micro-label,
.micro-label *,
.et_pb_text.micro-label,
.et_pb_text.micro-label .et_pb_text_inner,
.et_pb_text.micro-label .et_pb_text_inner *,
.micro-label-card,
.micro-label-card *,
.et_pb_text.micro-label-card,
.et_pb_text.micro-label-card .et_pb_text_inner,
.et_pb_text.micro-label-card .et_pb_text_inner * {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

.micro-label,
.micro-label *,
.et_pb_text.micro-label,
.et_pb_text.micro-label .et_pb_text_inner,
.et_pb_text.micro-label .et_pb_text_inner * {
    color: #261315 !important;
}

.micro-label-card,
.micro-label-card *,
.et_pb_text.micro-label-card,
.et_pb_text.micro-label-card .et_pb_text_inner,
.et_pb_text.micro-label-card .et_pb_text_inner * {
    color: #571217 !important;
}

.section-title,
.section-title *,
.et_pb_text.section-title,
.et_pb_text.section-title .et_pb_text_inner,
.et_pb_text.section-title .et_pb_text_inner * {
    font-family: 'Melodrama', serif !important;
    font-size: 48px !important;
    line-height: 52px !important;
    font-weight: 500 !important;
    color: #571217 !important;
}

.card-title,
.card-title *,
.et_pb_text.card-title,
.et_pb_text.card-title .et_pb_text_inner,
.et_pb_text.card-title .et_pb_text_inner * {
    font-family: 'Melodrama', serif !important;
    letter-spacing: 2px;
    font-size: 34px !important;
    line-height: 52px !important;
    font-weight: 500 !important;
    color: #571217 !important;
}


/* ================================
   SERVICE CARDS
================================ */

.service-card {
    font-family: 'Inter', sans-serif !important;
    background: #F0EAEB !important;
    border-radius: 28px !important;
    padding: 36px !important;
    min-height: 150px !important;
    height: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
}

.service-card .et_pb_blurb_content {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    width: 100%;
}

.service-card .et_pb_main_blurb_image {
    width: 55px;
    min-width: 55px;
    margin: 0 !important;
}

.service-card .et_pb_blurb_container {
    padding-left: 0 !important;
}

.service-card .et_pb_module_header {
    margin-bottom: 12px;
}


/* ================================
   PROJECT CARDS
================================ */

.project-card {
    position: relative !important;
}

.project-card .status-badge,
.project-card .status-badge .et_pb_button {
    position: absolute !important;
    right: 25px !important;
    bottom: 55px !important;
    z-index: 50 !important;
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    border-radius: 50% !important;
    background: #5b1018 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    white-space: normal !important;
}

.open-gallery-dama,
.open-gallery-cascia {
    color: inherit !important;
    text-decoration: none !important;
}


/* ================================
   GALLERY MODAL
================================ */

.gallery-modal {
    display: none;
}

.gallery-modal.is-open {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    padding: 90px 7vw !important;
    overflow-y: auto !important;
}

body.gallery-open {
    overflow: hidden !important;
}

.gallery-modal-title {
    display: none !important;
}

.gallery-modal-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.gallery-modal-close {
    
    position: fixed !important;
    top: 120px !important;
    right: 30px !important;
    z-index: 9999999999 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 50% !important;
    background: #5b1018 !important;
    color: #ffffff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.gallery-modal .foogallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 34px !important;
    width: 100% !important;
}

.gallery-modal .fg-item {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.gallery-modal .fg-thumb,
.gallery-modal .fg-thumb a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.gallery-modal .fg-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.fbx-light .fbx-inner,
.fbx-light .fbx-stage {
    max-width: 92vw !important;
    max-height: 92vh !important;
}

.fbx-light .fbx-item-current img {
    max-width: 92vw !important;
    max-height: 88vh !important;
}


/* ================================
   DIVI Z-INDEX FIX
================================ */

.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module {
    z-index: auto !important;
}


/* ================================
   TABLET / MOBILE MENU
   max-width: 980px
================================ */

@media (max-width: 980px) {
    
    .mobile_nav.opened .mobile_menu_bar {
        position: fixed !important;
        top: 40px !important;
        right: 40px !important;
        z-index: 10000 !important;
        display: block !important;
    }

    .mobile_nav.opened .mobile_menu_bar:before {
        content: "\4d" !important;
        background: #5b1018;
        color: #fff !important;
        border-radius: 50%;
        padding: 10px;
        font-size: 24px;
    }
    
    #logo {
        max-height: 90% !important;
    }
    
    .mobile_nav.opened .et_mobile_menu {
        background: #F2ECED !important;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 22px;
        padding: 60px 20px;
        z-index: 9999;
        overflow: hidden;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        transform: none !important;
        left: 0 !important;
        top: 0 !important;
    }

    .et_mobile_menu li {
        width: 100%;
        text-align: center;
    }

    .et_mobile_menu li a {
        color: #a77c82 !important;
        font-size: 38px;
        font-weight: 400;
        line-height: 1.25;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-bottom: none !important;
        padding: 0 !important;
    }

    .et_mobile_menu::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("../assets/image/sfondo.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 65%;
        z-index: -1;
    }

    .mobile_menu_bar:before {
        color: #5b1018 !important;
        font-size: 34px;
    }

    .mobile_nav.opened .mobile_menu_bar:before {
        content: "\4d";
        background: #5b1018;
        color: #fff !important;
        border-radius: 50%;
        padding: 10px;
        font-size: 24px;
    }
    
    .et_pb_text.hero-title,
    .et_pb_text.hero-title .et_pb_text_inner,
    .et_pb_text.hero-title .et_pb_text_inner * {
        font-family: 'Melodrama', serif !important;
        font-size: 28px !important;
        line-height: 0.95 !important;
        letter-spacing: -1px !important;
        font-weight: 600 !important;
        color: #571217 !important;
        text-transform: uppercase !important;
    }
}


/* ================================
   MOBILE
   max-width: 767px
================================ */

@media (max-width: 767px) {
    .reverse-mobile {
        display: flex !important;
        flex-direction: column !important;
    }

    .reverse-mobile .et_pb_column:first-child{
        order:2 !important;
    }

    .reverse-mobile .et_pb_column:last-child{
        order:1 !important;
    }
    /* Intro */ 

    .site-intro-bg {
        background-image: url('../assets/image/intro-mobile.svg') !important;
    }
    
    /* Hero */
    .hero-section::before {
        width: 360px !important;
        height: 360px !important;
        top: 48% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .hero-section .et_pb_row,
    .hero-section .et_pb_module {
        position: relative;
        z-index: 2;
    }

    /* Typography mobile */
    .section-title,
    .section-title *,
    .et_pb_text.section-title,
    .et_pb_text.section-title .et_pb_text_inner,
    .et_pb_text.section-title .et_pb_text_inner * {
        font-size: 38px !important;
        line-height: 46px !important;
        text-align: left !important;
    }
    
    .titolo-editoriale,
    .et_pb_text.titolo-editoriale,
    .et_pb_text.titolo-editoriale .et_pb_text_inner,
    .et_pb_text.titolo-editoriale .et_pb_text_inner * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        transform: none !important;
        position: relative !important;
        font-size: 28px !important;
        line-height: 32px !important;
    }
    
    .body-elegant,
    .et_pb_text.body-elegant,
    .et_pb_text.body-elegant .et_pb_text_inner,
    .et_pb_text.body-elegant .et_pb_text_inner * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        transform: none !important;
        position: relative !important;
    
        font-family: 'Inter', sans-serif !important;
        font-size: 16px !important;
        line-height: 23px !important;
        font-weight: 300 !important;
        color: #571217 !important;
    }

    .micro-label,
    .micro-label *,
    .et_pb_text.micro-label,
    .et_pb_text.micro-label .et_pb_text_inner,
    .et_pb_text.micro-label .et_pb_text_inner * {
        font-size: 14px !important;
        line-height: 18px !important;
        text-align: left !important;
    }

    /* Service card mobile */
    .service-card {
        height: auto;
        padding: 28px 24px;
    }

    /* Gallery mobile */
    .gallery-modal.is-open {
        padding: 80px 20px 40px !important;
    }

    .gallery-modal-close {
        top: 24px !important;
        right: 24px !important;
    }

    .gallery-modal .foogallery {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* Progetti title fix */
    .et_pb_row_5 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        padding-top: 40px !important;
        padding-bottom: 30px !important;
        overflow: visible !important;
    }

    .et_pb_text_7,
    .et_pb_text_8,
    .et_pb_text_7 .et_pb_text_inner,
    .et_pb_text_8 .et_pb_text_inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
        position: relative !important;
    }

    .et_pb_text_7,
    .et_pb_text_7 *,
    .et_pb_text_7 .et_pb_text_inner,
    .et_pb_text_7 .et_pb_text_inner * {
        font-size: 14px !important;
        line-height: 18px !important;
        text-align: left !important;
    }

    .et_pb_text_8,
    .et_pb_text_8 *,
    .et_pb_text_8 .et_pb_text_inner,
    .et_pb_text_8 .et_pb_text_inner * {
        font-size: 34px !important;
        line-height: 38px !important;
        text-align: left !important;
    }

    /* Generic mobile visibility classes */
    .mobile-visible-label,
    .mobile-visible-title,
    .mobile-visible-label .et_pb_text_inner,
    .mobile-visible-title .et_pb_text_inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
        position: relative !important;
    }

    .mobile-visible-label,
    .mobile-visible-label * {
        font-size: 14px !important;
        line-height: 18px !important;
        text-align: left !important;
    }

    .mobile-visible-title,
    .mobile-visible-title * {
        font-size: 34px !important;
        line-height: 38px !important;
        text-align: left !important;
    }

    /* Servizi title fix */
    #servizi .et_pb_row_9,
    #servizi .et_pb_row_10 {
        display: block !important;
        margin: 0 auto 12px auto !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    #servizi .et_pb_text_17,
    #servizi .et_pb_text_18,
    #servizi .et_pb_text_17 .et_pb_text_inner,
    #servizi .et_pb_text_18 .et_pb_text_inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    #servizi .et_pb_text_17 p {
        color: #261315 !important;
        font-family: Inter, sans-serif !important;
        font-size: 14px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        text-align: left !important;
        margin-bottom: 8px !important;
    }

    #servizi .et_pb_text_18 p {
        color: #571217 !important;
        font-family: Melodrama, serif !important;
        font-size: 34px !important;
        line-height: 38px !important;
        font-weight: 500 !important;
        text-align: left !important;
        margin-bottom: 28px !important;
    }
    
    body .et_pb_text.section-title,
    body .et_pb_text.section-title .et_pb_text_inner,
    body .et_pb_text.section-title .et_pb_text_inner h1,
    body .et_pb_text.section-title .et_pb_text_inner h2,
    body .et_pb_text.section-title .et_pb_text_inner h3,
    body .et_pb_text.section-title .et_pb_text_inner p {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 1px !important;
        overflow: visible !important;
        transform: none !important;
        position: relative !important;
    
        font-family: 'Melodrama', serif !important;
        font-size: 34px !important;
        line-height: 40px !important;
        color: #571217 !important;
        text-align: left !important;
    }
    
    .micro-label,
    .et_pb_text.micro-label,
    .et_pb_text.micro-label .et_pb_text_inner,
    .section-title,
    .et_pb_text.section-title,
    .et_pb_text.section-title .et_pb_text_inner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 20px !important;
        overflow: visible !important;
        transform: none !important;
        position: relative !important;
        z-index: 999 !important;
    }
}

/* ================================
   INTRO SITE
================================ */

#site-intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #f4f1ef;
    overflow: hidden;
    pointer-events: all;
}

.site-intro-bg {
    width: 100%;
    height: 100%;
    background-image: url('../assets/image/intro.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#site-intro.is-hidden {
    transform: translateX(-100%);
    transition: transform 1.1s cubic-bezier(.77, 0, .175, 1);
}

#site-intro {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999999 !important;
    background: #ffffff !important;
}