/* 

1. Add your custom Css styles below
2. Place the this code in your template: 

 <link href="css/custom.css" rel="stylesheet">

*/

@font-face {
    font-family: 'cormorantgaramond-regular';
    src: url('../fonts/cormorant_garamond/CormorantGaramond-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'avenirltstd-black';
    src: url('../fonts/avenir-font/AvenirLTStd-Black.otf') format('opentype');
}

@font-face {
    font-family: 'avenirltstd-medium';
    src: url('../fonts/avenir-font/AvenirLTStd-Medium.otf') format('opentype');
}

@font-face {
    font-family: 'avenir';
    src: url('../fonts/avenir-font/AvenirLTStd-Roman.otf') format('opentype');
}

:root {
    --primary-color: #3c3c3b;
    --accent-color: #c4ae6a;
    --accent-color-opacity: #c4ae6a31;
    --medium-color: #878787;
    --medium-color-opacity: #8787871d;
    --light-color: #fff;
}


body {
    font-family: "avenir", sans-serif;
    color: var(--primary-color);
}

h1,
h2 {
    text-transform: uppercase !important;
}

a {
    transition: color 0.3s !important;
}

@media screen and (min-width: 1582px) {
    .d-header-block {
        display: block !important;
    }

    .d-header-none {
        display: none !important;
    }
}

/*sub menu Emma Villas*/

@media screen and (min-width: 1582px) {
    .mega-menu-content {
        min-height: 300px;
    }

    .emma-submenu-column-content {
        min-height: 300px;
    }
}

.emma-submenu-column i::before {
    margin-left: 10px !important;
}

.emma-submenu-column-content-text {
    font-weight: 700 !important;
    color: #fff !important;
}

#mainMenu nav>ul>li.hover-active>a {
    color: var(--accent-color) !important;
}

.dark #mainMenu nav>ul>li:hover>a {
    color: var(--accent-color) !important;
}

#mainMenu nav>ul>li.mega-menu-item>.dropdown-menu {
    left: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
    -webkit-transition-duration: 0.3s !important;
    transition-duration: 0.3s !important;
}

.emma-submenu-column>p {
    padding-top: 3% !important;
    color: white !important;
    font-weight: 700 !important;
    transition: color 0.3s !important;
}

.emma-submenu-column:hover {
    &>.emma-submenu-column-content {
        filter: brightness(0.5) !important;
    }
    &>p {
        color: var(--accent-color) !important;
    }
}

.emma-submenu-column-content {
    display: flex;
    align-items: center;
    font-weight: 900 !important;
    font-size: 16px;
    filter: brightness(0.8) !important;
    transition: filter 0.3s !important;
}

.emma-submenu-column-content a {
    color: #fff !important;
}

/*sub menu Emma Villas*/

.inspiro-slider .slide .container,
.inspiro-slider .slide .container-wide {
    -webkit-align-self: centers !important;
    align-self: center !important;
}

@media (min-width : 576px) {

    .inspiro-slider .slide .container,
    .inspiro-slider .slide .container-wide {
        -webkit-align-self: end !important;
        align-self: end !important;
    }
}

.bg-overlay-darker {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    content: ' ';
    z-index: 0;
    background: rgba(0, 0, 0);
    opacity: .5;
}

.text-justify {
    text-align: justify !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
}


@media screen and (min-width: 1582px) {
    #mainMenu nav>ul>li .dropdown-menu {
        background-color: #000 !important;
        border-color: #000 !important;
        border-radius: 0% !important;
    }
}

/*end submenu*/

a:not(.btn):not(.badge):hover,
a:not(.btn):not(.badge):focus,
a:not(.btn):not(.badge):active,
#mainMenu nav>ul>li:hover>a {
    color: inherit;
}

.heading-text.heading-section h2:before {
    background-color: var(--accent-color) !important;
}

.heading-text.heading-section h4:before {
    background-color: var(--accent-color) !important;
}

.primary-color {
    color: var(--primary-color) !important;
}

.accent-color {
    color: var(--accent-color) !important;
}

.medium-color {
    color: var(--medium-color) !important;
}

.light-color {
    color: var(--light-color) !important;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

.bg-accent-color {
    background-color: var(--accent-color) !important;
}

.border-color-accent-color {
    border-color: var(--accent-color) !important;
}

.bg-accent-color-opacity {
    background-color: var(--accent-color-opacity) !important;
}

.bg-medium-color-opacity {
    background-color: var(--medium-color-opacity) !important;
}

.hover-accent-color:hover {
    color: var(--accent-color) !important;
}

.alert {
    display: none !important;
}

.min-vh-90 {
    min-height: 90vh !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.text-transform-none {
    text-transform: none !important;
}

.grid-item.no-overlay {
    cursor: auto !important;
}

@media (min-width : 768px) {
    .w-sm-25 {
        width: 25% !important;
    }

    .w-sm-75 {
        width: 75% !important;
    }
}

.w-max-content {
    width: max-content !important;
}

div.no-hr-last>hr:last-child {
    display: none !important;
}

.cormorant-title {
    font-family: "cormorantgaramond-regular", serif !important;
    font-weight: normal !important;
}

.avenir-text {
    font-family: "avenir", sans-serif !important;
    font-weight: normal !important;
}

.cormorant-title.fw-600 {
    font-weight: 600 !important;
}

.w-f-c {
    width: fit-content !important;
}

.flickity-button:hover {
    background-color: var(--accent-color) !important;
}

.heading-title-link {
    color: var(--accent-color) !important;
}

.dropcap-extra-large {
    font-size: 90px !important;
    height: 110px !important;
    line-height: 110px !important;
    width: 110px !important;
}

.intro-title {
    font-size: 60px !important;
    line-height: 1.1em !important;

    @media (max-width: 768px) {
        font-size: 40px !important;
    }
}

p.intro-title {
    font-size: 26px !important;
    line-height: 1.5em !important;
    font-weight: bold !important;
}

@media (max-width: 768px) {
    .media-tool-iframe {
        min-height: 300px !important;
    }

}

@media (min-width: 1582px) {
    .logo {
        display: flex;
        align-items: center;
    }
}

.p-dropdown.p-dropdown-invert .p-dropdown-content,
.p-dropdown.p-dropdown-invert ul.p-dropdown-content {
    left: auto !important;
    right: auto !important;
}

#mainMenu nav>ul>li {
    margin-left: 0px !important;
}

.mainMenu-open #header #mainMenu {
    overflow-y: hidden !important;
}

.logo a {
    height: auto;
    line-height: 0;
}

.logo a img {
    height: 50px;
}

@media (max-width: 1582px) {
    #header #logo>a img {
        max-height: 45px;
    }
}

@media (max-width: 769px) {
    #header #logo>a img {
        max-height: 35px;
    }
}

.footer-content .widget p,
.footer-content .widget>ul {
    font-size: 0.8em;
    margin-bottom: 10px;
}

@media (max-width: 769px) {
    .small-intro-sm {
        font-size: 26px !important;
    }
}

.footer-content a:hover {
    color: var(--accent-color) !important;
}

#footer .copyright-content {
    font-size: 0.8em;
    line-height: 1;
}

@media (max-width: 768px) {
    #footer .copyright-content .row>div {
        text-align: center !important;
    }

    #footer .copyright-content .row>div.logo-footer {
        margin-bottom: 16px;
    }

    #footer .copyright-content .row>div .logo-borsa-footer {
        display: block;
        margin: 0 auto 10px;
    }

    #footer .copyright-content .row>div.copyright-text {
        margin-top: 16px;
        justify-content: center !important;
    }

}

#footer .social-footer {
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#footer .social-footer a:hover {
    color: var(--accent-color);
}

.inspiro-slider .slide .container h1 {
    line-height: 1.5em;
}

/* .store-grid .post-item {
    height: 100%;
    float: none;
} */

.store-grid .post-item .post-item-wrap {
    height: 100%;
}

.store-grid .post-item .post-item-wrap .post-image img {
    max-height: 237px;
}

.store-grid .post-item .post-item-wrap .post-item-description p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    line-clamp: 3 !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.post-item .post-image .post-meta-category,
.post-item .post-slider .post-meta-category,
.post-item .post-video .post-meta-category,
.post-item .post-audio .post-meta-category,
.post-item .post-quote-img .post-meta-category {
    background-color: var(--accent-color);
}

/* ScrollToTop */

#scrollTop:hover {
    -webkit-transition: box-shadow 0.3s cubic-bezier(196, 174, 106, 1), background-color 0.05s linear 0.25s !important;
    transition: box-shadow 0.3s cubic-bezier(196, 174, 106, 1), background-color 0.05s linear 0.25s !important;
    background-color: transparent !important;
}


#scrollTop:after,
#scrollTop:before {
    background-color: var(--accent-color) !important;
}

/* ScrollToTop */

/* ACCORDION */

.ac-title.baseline-icon::before {
    align-self: center !important;
    align-self: anchor-center !important;
}

.backoffice-content a {
    color: var(--accent-color) !important;
}

.backoffice-content p {
    font-size: 16px !important;
}

span.backoffice-content {
    line-height: 1.25em !important;
    font-size: 16px !important;
}

.backoffice-content p {
    margin-bottom: 1% !important;
    line-height: 1.25em !important;
    font-size: 16px !important;
}

.heading-text.heading-section p:not(.backoffice-content p) {
    font-size: 16px !important;
    margin-bottom: 1% !important;
    line-height: 1.25em !important;
}

.text-italic {
    font-style: italic !important;
}

.backoffice-content>h1,
.backoffice-content>h2,
.backoffice-content>h3,
.backoffice-content>h4,
.backoffice-content>h5,
.backoffice-content>h6 {
    font-size: 30px;
    margin-bottom: 2% !important;
    line-height: 1.25em !important;
    font-family: "cormorantgaramond-regular", serif !important;
    font-weight: 500 !important;
}

.p-mb-small>p {
    margin-bottom: 0.5% !important;

    @media (max-width: 768px) {
        margin-bottom: 2% !important;
    }
}

.parallax-container {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 100% !important;
}

.p-lh-small>p {
    line-height: 1.2em !important;

    @media (max-width: 768px) {
        line-height: 1.4em !important;
    }
}

.ul-lh-small>ul {
    line-height: 1.2em !important;

    @media (max-width: 768px) {
        line-height: 1.4em !important;
    }
}

/* BACKOFFICE full page */

.clamp-text-1 {
    display: -webkit-box !important;
    line-clamp: 1 !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.clamp-text-2 {
    display: -webkit-box !important;
    line-clamp: 2 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.clamp-text-3 {
    display: -webkit-box !important;
    line-clamp: 3 !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* TIMELINE */

@media (max-width: 768px) {
    .timeline .timeline-item {
        margin-left: 7% !important;
    }
}

.timeline .timeline-item .timeline-year {
    right: 0px !important;
    left: auto !important;
}

.timeline .timeline-item .timeline-year {
    background-color: var(--accent-color);
    position: absolute !important;
    left: -8px !important;
    width: 50px !important;
    height: 34px !important;
    z-index: 3 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 5px 0 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.period-element-title {
    color: black !important;
}

.timeline-show-more-button:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

/* TIMELINE CUSTOM */

.timeline-custom {
    white-space: nowrap !important;
    cursor: pointer !important;

}

.timeline-custom ol {
    font-size: 0;
    width: 100%;
    transition: all 1s;
    scrollbar-width: none !important;
}

/* .timeline-custom ol::-webkit-scrollbar {
    display: none;
} */

.timeline-custom ol li {
    position: relative;
    display: inline-block;
    list-style-type: none;
    width: 160px;
    height: 2px;
    background: var(--medium-color);
}

.timeline-custom ol li:last-child {
    width: 280px;
}

.timeline-custom ol li:not(:first-child) {
    margin-left: 14px;
}

.timeline-custom ol li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 1px);
    bottom: 0;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--accent-color);
}

.timeline-custom ol li div {
    position: absolute;
    left: calc(100% + 7px);
    width: 280px;
    padding: 15px;
    font-size: 1rem;
    white-space: normal;
    color: black;
    border: 0.2px solid var(--accent-color);
}

.timeline-custom ol li div::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-custom ol li:nth-child(odd) div {
    top: -16px;
    transform: translateY(-100%);
}

.timeline-custom ol li:nth-child(odd) div::before {
    top: 100%;
    border-width: 8px 8px 0 0;
    border-color: var(--accent-color) transparent transparent transparent;
}

.timeline-custom ol li:nth-child(even) div {
    top: calc(100% + 16px);
}

.timeline-custom ol li:nth-child(even) div::before {
    top: -8px;
    border-width: 8px 0 0 8px;
    border-color: transparent transparent transparent var(--accent-color);
}

.timeline-custom .arrows {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.timeline-custom .arrows .arrow__prev:not(.disabled),
.timeline-custom .arrows .arrow__next:not(.disabled) {
    opacity: 0.5 !important;
}

.timeline-custom .arrows .arrow__prev:hover:not(.disabled) {
    transition: transform 0.3s ease-in-out !important;
    opacity: 1 !important;
}

.timeline-custom .arrows .arrow__next:hover:not(.disabled) {
    transition: transform 0.3s ease-in-out !important;
    opacity: 1 !important;
}

.timeline-custom .arrows .disabled {
    opacity: 0.2 !important;
}

.timeline-custom-img {
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    -ms-user-drag: none !important;
}

@media screen and (max-width: 599px) {

    .timeline-custom ol li:first-child {
        position: relative;
        display: inline-block;
        list-style-type: none;
        width: 10px;
        height: 2px;
        background: var(--medium-color);
    }
}

/* TIMELINE */

.pointer-events-none {
    pointer-events: none !important;
}

/* SLIDER TIMELINE */
.flickity-page-dots {
    display: none !important;
}

#slider-years .flickity-button:hover {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: transparent !important;
}

.inspiro-slider .flickity-button {
    line-height: 50px !important;
    width: 50px !important;
    height: 50px !important;
}

.inspiro-slider .flickity-button::before {
    line-height: 50px !important;
}

#itmap {
    width: 100%;
    height: 800px;
}

.marker-info {
    position: absolute;
    top: 0;
    right: -320px;
    width: 320px;
    max-height: 100%;
    max-width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: #222;
    overflow-y: auto;
    line-height: 1.4em;
    transition: all ease-in-out 0.6s;
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

.container-overlay {
    background-color: rgba(0, 0, 0, 0.4) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

.map-wrapper {
    padding: 20px 20px 0;
    background-color: #F7F8FC;
    position: relative;
}

.marker-info.show {
    right: 0;
}

.marker-info .marker-info-close {
    text-align: right;
}

.marker-info .marker-info-close>a {
    cursor: pointer;
    color: #222;
}

.marker-info .marker-info-description {
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
}

.marker-info .marker-info-url {
    margin-top: 10px;
}

.marker-info .marker-info-logo>img {
    max-width: 100%;
    /* max-height: 100px; */
}

@media screen and (max-width: 599px) {
    .map-wrapper {
        padding: 0;
    }

    #itmap {
        height: 500px;
    }
}