:root {
    /* ---------------- Fonts ---------------- */
    --font-family-base: "Poppins", sans-serif;

    /* ---------------- Colors ---------------- */
    --color-primary: #191919;
    --color-secondary: #bf3548;
    --color-white: #ffffff;
    --color-dark: #0a0a0a;
    --color-dark-gray: #404040;
    --color-gray: #b6b6b7;
    --color-light-gray: #eeeeee;
    --color-background: #f5f5f5;
    --color-header-dark: #312f30;

    /* ---------------- Shadows ---------------- */
    --box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

    /* ---------------- Gradients ---------------- */
    --gradient-header: linear-gradient(to top, #000000 0%, transparent 100%);
    --gradient-card: linear-gradient(to bottom, #000000 0%, transparent 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    touch-action: pan-y;
}

* {
    font-family: var(--font-family-base);
}

body {
    background-color: var(--color-background);
}

a {
    color: inherit;
    text-decoration: none;
}

a.btn {
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Header and main margin styles  */
header > div.position-absolute {
    bottom: -50px;
}

.header-dark {
    height: 210px;
    background-color: var(--color-header-dark);
    border-radius: 0 0 40px 40px;
    background-image: url(../img/Base.svg);
}

.header-emblem {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
}

.header-emblem img {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 14px solid var(--color-background);
}

.main-indent-bottom {
    margin-bottom: 80px;
}

.main-indent-top {
    margin-top: 80px;
}

/* Text styles  */
.header-subtitle {
    font-size: 12px;
}

.header-subtitle-menu {
    font-weight: 400;
    font-size: 15px;
    color: var(--color-dark-gray);
}

.header-title {
    font-size: 16px;
    font-weight: bold;
}

.header-title-menu {
    font-weight: 700;
    font-size: 24px;
    color: var(--color-dark);
}

.home-title {
    font-size: 20px;
    font-weight: bold;
}

.text-title-card {
    font-weight: 700;
    font-size: 13px;
    color: #fefefe;
}

p.text-title-card {
    font-weight: 400;
    font-size: 12px;
}

.text-title-small {
    font-size: 10px;
    font-weight: 400;
    text-align: center;
    padding: 8px 16px;
}

.text-title {
    font-weight: 700;
    font-size: 26px;
    color: var(--color-white);
    text-align: center;
}

.title-section-home {
    padding-left: 8px;
}

.fs-sala {
    font-size: 20px !important;
}

.text-title-dark {
    font-weight: 700;
    font-size: 26px;
    text-align: center;
    color: var(--color-dark);
}

.text-title-menu {
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    color: var(--color-white);
}

.text-location {
    display: flex;
    font-weight: 400;
    font-size: 12px;
    color: var(--color-secondary);
    margin-bottom: 8px;
    align-items: center;
    gap: 0.3rem;
}

.text-secondary {
    font-weight: 500;
    font-size: 12px;
    text-align: justify;
    color: var(--color-gray) !important;
}

.text-subtitle-desc {
    font-weight: 600;
    font-size: 17px;
    color: var(--color-dark-gray);
}

.read-more-btn {
    font-weight: 600;
    color: #e53c16 !important;
}

.text-title-category {
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: var(--color-gray);
}

.text-btn-category {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    color: var(--color-secondary);
}

.text-subtitle-section {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-dark-gray);
}

.text-subtitle {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark);
}

.exhibit-number {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    width: 35px;
    height: 35px;
    box-shadow: var(--box-shadow);
    background: var(--color-white);
}

.exhibit-number p {
    margin: 0;
    font-weight: 500;
    font-size: 20px;
    text-align: center;
    color: var(--color-secondary);
}

/* Btn styles  */
.btn {
    font-weight: 600;
    font-size: 9px;
    border-radius: 10px;
    border: 0;
}

.btn-detail:hover,
.btn-detail:active,
:not(.btn-check) + .btn:active {
    color: var(--color-secondary);
    background-color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-detail {
    color: var(--color-white);
    background-color: var(--color-secondary);
    padding: 5px 14px;
}

.btn-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    left: 54%;
    bottom: -25%;
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.3);
    background-color: var(--color-white);
}

.btn-cat {
    background-color: #ececec;
}

.btn-cat h6 {
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

a.btn-cat:active,
.btn-photo:active {
    background-color: var(--color-secondary) !important;
}

a.btn-cat:active h6 {
    color: #ececec !important;
}

.btn-photo:active svg path {
    fill: var(--color-white);
}

.btn-close:focus {
    box-shadow: var(--box-shadow);
}

/* Background image in card swiper slide */
.bg-block {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-linear {
    width: 100%;
    height: 100%;
    background: var(--gradient-card);

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

/* Background image in miniere detail page*/

.bg-header-img {
    width: 100%;
    height: 526px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-header-img-menu {
    height: 339px !important;
}

.bg-linear-header {
    width: 100%;
    height: 100%;
    background: var(--gradient-header);

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

/* For IMG */
.fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.card-round {
    width: 70px;
}

.card-round .rounded-circle {
    width: 56px;
    height: 56px;
}

.card-round a .card-title {
    font-size: 14px;
    text-align: center;
    max-width: 6rem;
}

.btn-blur-circle {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: #a9a9a930;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grey line  */
.line-style {
    width: 100%;
    height: 1px;
    background-color: var(--color-gray);
}

/* Border Radius */
.rounded-custom {
    border-radius: 10px;
}

.bottom-radius-10 {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Description in detail page  */
#collapseText:not(.show) {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.collapse:not(.show) {
    display: none;
}

/* Swiper  */
.swiper {
    z-index: 0;
}

.swiper-slide {
    width: auto;
    background-color: transparent;
}
.swiper-slide .card {
    border: none;
}

.swiper-slide.gallery-miniere {
    width: 87px;
    height: 62px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
}

.view-slider {
    max-height: 50%;
}

.swiper {
    width: 100%;
    overflow: visible;
}

.swiper-slide-big-home {
    width: 178px;
    height: 220px;
}

.swiper-slide-big-home,
.card-in-grid-big div,
.card-in-grid div {
    box-shadow: var(--box-shadow);
}

/* Solo per la pagina miniere detail */
.swiper-itinerari.view-slider {
    overflow: visible;
}

.swiper-itinerari.view-slider .swiper-slide {
    width: 42%;
}

.swiper-itinerari.view-slider .swiper-wrapper {
    gap: 16px;
}

.card-in-grid {
    width: 100%;
    height: 141px;
}

.card-in-grid-big {
    width: 100%;
    height: 189px;
}

.timeline-2 .card-in-grid-big {
    width: 60vw;
}

.swiper-slide.miniere-gallery {
    width: 87px;
    height: 62px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
}

.swiper-slide.miniere-gallery .inactive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d9d9d9;
    opacity: 0.4;
    border-radius: 14px;
}

.swiper-slide.miniere-gallery img {
    border-radius: 14px;
}

.swiper-slide-mini {
    width: 87px;
    height: 62px;
}

.swiper-slide-mini div {
    box-shadow: var(--box-shadow);
}

/* Style for text limited to 2 lines */
.text-fixed-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-height: var(--line-height-base);
}

/* Style for text limited to 3 lines */
.text-fixed-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    line-height: var(--line-height-base);
    min-height: calc(1.5em * 3);
}

/* Mirror for SVG menu  */
.mirror {
    transform: scaleX(-1);
    transform-origin: center;
}

.mirror path,
.mirror line {
    stroke: var(--color-white);
}

/* TIMELINE  */
.timeline-2 .card-timeline {
    gap: 70px;
}
/* The actual timeline (the vertical ruler) */
.main-timeline-2 {
    position: relative;
}

/* The actual timeline (the vertical ruler) */
.main-timeline-2::after {
    content: "";
    position: absolute;
    width: 3px;
    background-color: var(--color-secondary);
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: -3px;
}

/* Container around content */
.timeline-2 {
    position: relative;
    background-color: inherit;
}

/* .timeline-2 .card {
  width: 240px;
} */

/* The circles on the timeline */
.timeline-2::after {
    display: flex;
    justify-content: center;
    align-items: center;
    content: "1";
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.06em;
    box-shadow: var(--box-shadow);
    position: absolute;
    width: 36px;
    height: 36px;
    left: -18px;
    background-color: var(--color-white);
    bottom: 50%;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left-2 {
    padding: 0px 40px 40px 0px;
    left: 0;
}

/* Place the container to the right */
.right-2 {
    padding: 0px 0px 20px 40px;
    left: 0;
}

/* Add arrows to the left container (pointing right) */
.left-2::before {
    content: " ";
    position: absolute;
    bottom: 50%;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right-2::before {
    content: " ";
    position: absolute;
    bottom: 50%;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    /* Place the timelime to the left */
    .main-timeline-2::after {
        left: 31px;
    }

    /* Full-width containers */
    .timeline-2 {
        width: 100%;
        padding-left: 70px;
        padding-right: 70px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .timeline-2::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left-2::after,
    .right-2::after {
        left: 12px;
    }

    .left-2::before {
        right: auto;
    }
}

/* btn cat search  */
.nav-second-level.active,
.nav-second-level:active {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
}

/* Search page styles */
/* Navs&Tabs  */
.search-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-left: 0;
    margin-bottom: 1rem;
}

.search-nav .nav-item {
    flex: 1;
    text-align: center;
}

.search-nav .nav-link.active,
.search-nav .show > .nav-link {
    font-weight: 600;
    font-size: 12px;
    color: #000;
    background-color: transparent;
}

.search-nav .nav-link {
    font-weight: 600;
    font-size: 12px;
    color: var(--color-gray);
}

.search-btn-more {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.91px solid var(--color-dark);
    border-radius: 9px;
    padding: 4px 13px;
    height: 31px;
    box-shadow: var(--box-shadow);
}

.search-btn-more a {
    font-weight: 600;
    font-size: 9px;
    color: var(--color-dark);
}

.search-btn-more:active {
    background-color: var(--color-dark);
}

.search-btn-more:active a {
    color: var(--color-gray);
}

footer {
    z-index: 999;
}

.footer-bg {
    background-color: var(--color-header-dark);
    border-radius: 20px;
}

.img-trim img {
    margin-left: -2px;
    margin-right: -2px;
}

.footer-row.row > * {
    padding-right: 0;
    padding-left: 0;
}

.footer-row {
    box-shadow: var(--box-shadow);
    height: 68px;
}

.footer-bg {
    background-color: #312f30;
}

.footer-icons-bottom {
    bottom: 12px;
}

.footer-link {
    color: var(--color-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-link:active svg path {
    fill: var(--color-secondary);
    stroke: var(--color-secondary);
}

.footer-link:active h6 {
    color: var(--color-secondary);
}

.footer-text {
    font-size: 0.8rem;
}

.footer-border-radius-left {
    border-radius: 10px 0 0 10px;
}

.footer-border-radius-right {
    border-radius: 0 10px 10px 0;
}

.footer-link-qr {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-secondary);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    position: absolute;
    z-index: 10;
    color: var(--color-light-gray);
    left: 50%;
    top: -50%;
    bottom: 0;
    margin-left: -32px;
}

.footer-link-qr:active {
    transform: scale(0.9);
}

.footer-link-qr h6 {
    font-size: 11px;
}

/* Hamburger menu  */
.accordion-button.after-hidden::after {
    display: none;
}

.accordion-item {
    background-color: var(--color-light-gray) !important;
    transition: var(--bs-accordion-transition);
    box-shadow: var(--box-shadow);
}

.accordion-button:not(.collapsed) {
    color: var(--color-primary);
    box-shadow: var(--box-shadow);
}

.accordion-button:not(.collapsed),
.accordion-item:active .accordion-header,
a.info-text-menu:active {
    color: var(--color-secondary);
    background-color: var(--color-light-gray);
}

.accordion-button:focus {
    border-radius: 10px 10px 0 0;
    box-shadow: var(--box-shadow);
}

.accordion-header {
    color: var(--color-primary);
}

.accordion-button {
    color: var(--color-primary);

    background-color: initial;

    overflow-anchor: none;
    transition: var(--bs-accordion-transition);
}

.info-title-menu {
    font-weight: 600;
    font-size: 14px;

    color: var(--color-primary);
    margin: 0;
}

.info-text-menu {
    font-weight: 400;
    font-size: 12px;
    color: var(--color-primary);
    margin: 0;
}

.link-privacy {
    font-weight: 400;
    font-size: 15px;
    text-transform: capitalize;
    text-align: center;
    color: var(--color-secondary);
}

.icon-language {
    width: 29px;
    border-radius: 5px;
    transition:
        transform 0.3s ease,
        outline-offset 0.3s ease,
        outline-color 0.3s ease;
}

.icon-language:hover {
    transform: scale(1.05);
}

.icon-language.active {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
    border: none;
    transform: scale(1.08);
}

.modal-slide-left .modal-dialog {
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
    margin: 0;
}

.modal-slide-left.show .modal-dialog {
    transform: translateX(0);
}

.modal-slide-left .modal-content {
    border: 0;
}

.main-icon {
    height: 93px;
}

.main-icon-big {
    height: 155px;
}

.container-menu-page {
    max-width: 90vw;
    padding: 24px 16px;
}

main.container-menu-page {
    margin-top: -40px;
    z-index: 1;
    position: relative;
    margin-bottom: 100px;
}

.container-menu-page {
    background: var(--color-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.link-disabled {
    pointer-events: none;
    color:  var(--color-secondary);
    opacity: 0.55;
    margin: 0;
}

.navigator-vetrine a {

    color:  var(--color-secondary);
}
.mineral-gallery {
    display: none;
}

.mineral-gallery:first-of-type {
    display: block;
}
