/********** Template CSS **********/
:root {
    --primary: #8B2942;
    --secondary: #1E3A5F;
    --light: #F7F0E8;
    --dark: #1A2332;
    --bs-primary: #8B2942;
    --bs-secondary: #1E3A5F;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #6F2035;
    border-color: #6F2035;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
    font-weight: 600 !important;
}

.section-spacing {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    .section-spacing {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

.pt-6 {
    padding-top: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.search-widget-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #FFFFFF;
}

#search .row.g-4 {
    align-items: stretch;
}

#search .row.g-4 > [class*="col-"] {
    display: flex;
}

#search .product-item {
    width: 100%;
}

#search .product-item > .text-center {
    flex: 1 1 auto;
}

#search .product-item > .position-relative {
    flex: 0 0 260px;
    height: 260px;
    margin-top: auto;
    overflow: hidden;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.footer-logo {
    height: 56px;
    width: auto;
}

.info-term-btn {
    color: var(--primary) !important;
    text-decoration: none !important;
    vertical-align: super;
    font-size: 0.6em;
    line-height: 0;
    position: relative;
    top: -0.1em;
}

.enogastronomici-tooltip .tooltip-inner {
    max-width: 360px;
    text-align: left;
    font-size: 0.85rem;
}

.enogastronomici-term {
    white-space: nowrap;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.site-navbar {
    padding: 12px 1rem !important;
    min-height: 0;
    top: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 35, 50, 0.82) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color .3s ease, box-shadow .3s ease;
}

@media (min-width: 992px) {
    .navbar.site-navbar {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

.navbar.site-navbar.navbar-scrolled {
    background: var(--dark) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar.site-navbar .navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 0;
    display: flex;
    align-items: center;
}

.navbar-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    padding: 7px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.navbar-logo {
    display: block;
    height: 46px;
    width: auto;
    max-width: min(300px, 58vw);
    margin: 0;
    padding: 0;
}

.navbar.site-navbar .navbar-toggler {
    display: none;
}

.navbar-lang {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-lang .nav-item {
    position: relative;
}

.navbar-lang .nav-link {
    padding: 4px 0;
    color: var(--light);
    white-space: nowrap;
}

.navbar-lang .nav-link:hover,
.navbar-lang .nav-link:focus {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 4px 15px;
    color: var(--light);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.fixed-top {
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar-logo {
        max-width: min(220px, 52vw);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel-wrap {
    position: relative;
    height: calc(100dvh - 5.5rem);
    max-height: calc(100vh - 5.5rem);
    min-height: 460px;
    margin-bottom: 3rem;
    overflow: visible;
    z-index: 2;
}

.header-carousel {
    position: relative;
    height: 100%;
    margin-bottom: 0;
    overflow: visible;
}

.header-carousel .owl-stage-outer,
.header-carousel .owl-stage,
.header-carousel .owl-item,
.header-carousel .owl-height {
    height: 100% !important;
}

.header-carousel .owl-stage-outer {
    background: var(--dark);
    overflow: hidden;
}

.header-carousel .owl-carousel-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--dark);
}

.header-carousel .owl-carousel-item picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-carousel .owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .45);
    z-index: 1;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-inner .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-carousel .owl-carousel-inner h1.display-1 {
        font-size: clamp(1.75rem, 7.5vw, 2.75rem);
        line-height: 1.12;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        line-height: 1.4;
    }

    .header-carousel .owl-carousel-item.carousel-slide-mobile-bg {
        background: #f5f3ef;
    }

    .header-carousel .owl-carousel-item.carousel-slide-mobile-bg img {
        object-fit: contain;
        object-position: center center;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 80px;
    height: 80px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    z-index: 30;
    pointer-events: none;
}

.header-carousel .owl-nav::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transform: rotate(45deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: relative;
    width: auto;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    color: var(--primary) !important;
    transition: .5s;
    z-index: 1;
    pointer-events: auto;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    color: var(--dark) !important;
}

.page-header {
    margin-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** About ***/
.img-twice::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    background: var(--primary);
    border: 25px solid var(--light);
    border-radius: 6px;
    z-index: -1;
}


/*** Product ***/
.product-item {
    transition: .5s;
}

.product-item:hover {
    background: var(--primary) !important;
}

.product-item:hover * {
    color: var(--light);
}

.product-item:hover .border-primary {
    border-color: var(--light) !important;
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.product-item:hover .product-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-item .team-text {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
    transition: .5s;
}

.team-item:hover .team-title {
    top: -100px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}


/*** Provinces ***/
#provinces .province-item {
    display: flex;
    flex-direction: column;
    background: var(--light);
}

#provinces .province-image-wrap {
    flex: 0 0 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #FFFFFF;
    overflow: hidden;
}

#provinces .province-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

#provinces .province-item .team-text {
    flex: 0 0 100px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 22px;
    color: var(--light);
    background: var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: var(--dark);
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}