/*Home Page*/

.page-template-page-home {
    .site-header {
        position: fixed;
        background-color: transparent;

        a {
            color: #fff;
            transition: all 0.3s;
            text-decoration: none;
        }

        a:hover {
            color: var(--primary-orange-hover);
        }
    }

    .site-header.sticky {
        background-color: #008348;
    }

    .site-header label,
    .header-title,
    .menu-toggle,
    .search-toggle,
    .mobile-menu-toggle {
        color: #ffffff;
    }
}

.hero-block-title {
    gap: 50px;
    align-items: center;

    .title-part {
        font-size: 44px;
        color: var(--primary-dark-blue);
    }

    .spacer {
        height: 1px;
        background-color: #000000;
    }

    a {
        text-decoration: none;
        font-size: 14px;
        color: #2E2E2E;
    }
}

/*Slider block*/

.home-slider {
    height: fit-content;

    .home-slider-inner {
        height: fit-content;
        min-height: 100vh;
        background-color: #000000e5;
        display: flex;
        align-items: end;
        padding-top: 200px;
        padding-bottom: 56px;
    }
}

.home-slider {
    position: relative;
    overflow: hidden;

    .bg-layer {
        position: absolute;
        inset: 0;

        background-size: cover;
        background-position: center;

        opacity: 0;
        transform: scale(1.03);

        transition:
            opacity 0.8s ease,
            transform 8s linear;
    }

    .bg-current {
        opacity: 1;
        transform: scale(1);
    }

    .bg-next {
        opacity: 0;
    }

    .home-slider-inner {
        position: relative;
        z-index: 1;
    }

    .museum-slider {
        min-height: 66vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .museum-progress {
        width: 100%;
        height: 3px;
        background: rgba(255, 255, 255, .15);
        margin-top: 24px;
        overflow: hidden;
        position: absolute;
        bottom: 0;
        z-index: 100;
    }

    .museum-progress-fill {
        width: 0%;
        height: 100%;
        background: var(--primary-orange);
        /* same orange as active title */
    }
}

.museum-slide {
    align-items: center;
    gap: 45px;
    padding: 0 32px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(550px, 2fr));
    text-decoration: none;
}



.museum-slide-image {
    position: relative;
}

.museum-slide-image img {
    display: block;
    border-radius: 16px;
    height: 50vh;
    object-fit: cover;
    width: auto;
}

.museum-slide-top {
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
    position: relative;

    .divider-horizontal {
        height: 1px;
        background-color: #ffffff;
    }
}

.museum-slide-top h2 {
    color: var(--primary-orange);
    font-size: 30px;
    font-weight: 700;
    margin: 0px;
    padding: 0px;
    transition: all 0.3s;
    line-height: 1.2;
}

.see-all {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.museum-slide-content p {
    color: #bdbdbd;
    line-height: 1.7;
    transition: all 0.3s;
}

.museum-nav {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.museum-prev,
.museum-next {
    border: none;
    background: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
}

.museum-pagination {
    display: flex;
    gap: 18px;
}

.museum-pagination span {
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    opacity: .55;
    transition: .2s;
}

.museum-pagination span.active {
    color: #ff9b22;
    opacity: 1;
}

.museum-pagination .slider-marker {
    height: 16px;
    width: 16px;
    background-color: #b1b1b1;
    border-radius: 100%;
    border: 3px solid #fff;
    opacity: 0.7;
}

.museum-pagination .slider-marker.active {
    opacity: 1;
}

.museum-slide:hover {

    .museum-slide-top h2 {
        color: var(--primary-orange-hover);
    }

    .see-all {
        color: var(--primary-orange);
    }

    .museum-slide-content p {
        color: #e6e0e0;
    }
}

/*Exibiton block*/

.hero-exibitions {
    .hero-block-items {
        padding: 32px 0px;
    }
}

/*News Block*/

.hero-news {
    background-color: var(--background-secondary);

    .hero-block-items {
        padding: 32px 0px;
    }
}

/* =========================================================
   FEATURES BLOCK
========================================================= */

.features-block {
    position: relative;
    width: 100%;
    overflow: hidden;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.features-block-inner {
    width: 100%;
}


/* =========================================================
   ITEMS WRAPPER
========================================================= */

.feature-items {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 1px;

    /* Visinu slobodno prilagodi dizajnu */
    height: clamp(520px, 48vw, 760px);

    overflow: hidden;
}


/* =========================================================
   SINGLE FEATURE
========================================================= */

.feature-item {
    position: relative;

    display: block;

    flex: 1 1 0;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-decoration: none;
    color: inherit;

    cursor: pointer;

    transition:
        flex-grow 700ms cubic-bezier(0.22, 1, 0.36, 1),
        flex-basis 700ms cubic-bezier(0.22, 1, 0.36, 1);
}


.feature-items:hover .feature-item:hover {
    flex-grow: 4.5;
}


/* =========================================================
   LIGHT OVERLAY
========================================================= */

.feature-item-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.72) 35%,
            rgba(0, 0, 0, 0.35) 68%,
            rgba(0, 0, 0, 0.08) 100%);

    opacity: 0;

    transition: opacity 500ms ease;
}

.feature-item:hover .feature-item-overlay {
    opacity: 1;
}


/* =========================================================
   CONTENT
========================================================= */

.feature-item-content {
    position: absolute;

    left: clamp(24px, 3vw, 60px);
    right: clamp(24px, 3vw, 60px);
    bottom: clamp(30px, 5vw, 80px);

    z-index: 2;

    opacity: 0;

    transform: translateY(32px);

    transition:
        opacity 350ms ease,
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: none;
}


.feature-item:hover .feature-item-content {
    opacity: 1;
    transform: translateY(0);

    transition-delay: 130ms;
}


/* =========================================================
   TITLE
========================================================= */

.feature-item-title {
    margin: 0 0 12px;

    font-size: clamp(30px, 2.3vw, 46px);
    line-height: 1.1;
    font-weight: 500;

    color: #A59573;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.feature-item-description {
    max-width: 850px;

    font-size: clamp(17px, 1.25vw, 24px);
    line-height: 1.5;

    color: rgba(165, 149, 115, 0.9);
}

.feature-item-description p {
    margin: 0;
}

.feature-item-description p+p {
    margin-top: 10px;
}


/* =========================================================
   OPTIONAL: image zoom
========================================================= */

/*
 * Ako želiš i veoma blag zoom fotografije,
 * background-image se ne može lijepo animirati direktno.
 *
 * Zato ovaj dio za sada ostaje bez zooma.
 * Ako želiš zoom, preporučujem <img> element umjesto
 * background-image.
 */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .feature-items {
        height: 600px;
    }

    .feature-items:hover .feature-item:hover {
        flex-grow: 4;
    }

    .feature-item-content {
        left: 30px;
        right: 30px;
        bottom: 40px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .feature-items {
        display: flex;
        flex-direction: column;

        height: auto;
        overflow: visible;
    }


    .feature-item {

        flex: none;

        width: 100%;
        height: auto;
        min-height: 420px;

        background-position: center;

        transition: none;
    }

    .feature-items:hover .feature-item:hover {
        flex-grow: initial;
    }


    /*
     * Content je uvijek vidljiv.
     */
    .feature-item-content {
        left: 24px;
        right: 24px;
        bottom: 28px;

        opacity: 1;
        transform: none;

        transition: none;

        pointer-events: auto;
    }

    .feature-item-overlay {
        opacity: 1;

        background:
            linear-gradient(to top,
                rgba(0, 0, 0, 0.94) 0%,
                rgba(0, 0, 0, 0.78) 36%,
                rgba(0, 0, 0, 0.32) 68%,
                rgba(0, 0, 0, 0.05) 100%);

        transition: none;
    }

    .feature-item-title,
    .feature-item-description {
        color: #A59573;
    }


    .feature-item-title {
        margin-bottom: 10px;

        font-size: 30px;
    }


    .feature-item-description {
        max-width: 100%;

        font-size: 17px;
        line-height: 1.45;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .feature-item {
        min-height: 360px;
    }

    .feature-item-content {
        left: 20px;
        right: 20px;
        bottom: 24px;
    }

    .feature-item-title {
        font-size: 27px;
    }

    .feature-item-description {
        font-size: 16px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .feature-item,
    .feature-item-overlay,
    .feature-item-content {
        transition: none !important;
    }
}