

.d-none {
    display: none;
}


body {
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


h2 {
    text-align: center;
    font-family:Crimson Text, serif;
    padding: 20px; 
    margin-top: 30px; 
    background-color: #f8f8f8;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.6em;
    }
}

h3 {
    font-family: Crimson Text, serif;
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    h3 {
        font-size: 1.6em;
        text-align: center;
    }
}



/*NARRATIVE PART*/

.top-image-container {
    position: relative;
    margin-left: 2%;
    margin-right: 2%;
    width: 96%;
    height: 100px;
    padding-top: 9%;
    overflow: hidden; /* Nasconde le parti fuori dal riquadro */
}

.top-img {
    position: absolute;
    left: 50%; 
    width: 100%;
    height: auto;
    transform: translate(-50%, -52%); 
    object-fit: cover; /* Ritaglia l'immagine per riempire il contenitore */
    filter: opacity(0.7);
}


.narrative-title {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    background-color: rgba(224, 224, 224, 0.8);
    font-size: 2.5vw;
    white-space: nowrap;
    padding: 10px;
}

@media (max-width: 1024px) {
    .narrative-title {
        font-size: 4vw !important;
        top: 21%;
    }
}

@media (max-width:768px) {
    .narrative-title {
        font-size: 6vw !important;
    }

    .top-img {
        transform: translate(-50%, -35%);
    }
}


/*OBJECT PART*/

.img-data-container {
    position: relative;
    display: flex;               
    align-items: flex-start;   
    margin-top: 50px;
    margin-bottom: 30px;
    margin-left: 10%;
    margin-right: 10%;
    
}

.data-container {
    padding-top: 20px;
}

.data-container a:link, .data-container a:visited {
    color: #4881a5;
}



.image-container {
    flex: 1;                /**/ 
    margin-right: 50px;  
    background-color: #f8f8f8;     
    padding: 15px;
    cursor: pointer;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-container {
    flex: 2;          /**/         
}

.obj-img {
    max-width: 100%;            
    height: 100%;  
    object-fit: contain;  /*mantiene proporzioni*/
               
}


@media (max-width: 768px) {
    .img-data-container {
        display: block; /*stacks the flex items on top of each other*/
    }

    .image-container {
        margin: 0 auto 30px auto;
        width: 300px;
        
    }


}


#map_btn {
    border-radius: 30px;
}

#map_btn:hover {
    background-color: #f1e4ce;
}



/*ARROWS*/
.arrow {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.left-arrow {
    left: -100px;  
}

@media (max-width: 1024px) {
    .left-arrow {
        left: -70px;
    }
}

@media (max-width: 768px) {
    .left-arrow {
        left: -25px;
        top: 25%;
        font-size: 2rem;
    }
}


.right-arrow {
    right: -100px
}

@media (max-width: 1024px) {
    .right-arrow {
        right: -70px;
    }
}

@media (max-width: 768px) {
    .right-arrow {
        right: -25px;
        top: 25%;
        font-size: 2rem;
    }
}


 
/* Tooltip base */
.arrow::after {     /*after : inserisce contenuto dopo l'elemento*/
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(99, 99, 99);
    border-radius: 15px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;  /*invisibile*/
    transition: opacity 0.3s;
    z-index: 2;
}

@media (max-width: 768px) {
    .arrow::after {
        white-space: wrap;
        text-align: center;
    }
}

.arrow:hover::after {
    opacity: 1;
}

.left-arrow::after {
    content: "previous object";
}

.right-arrow::after {
    content: "next object";
}

.disabled{
    color: rgb(148, 148, 148);
}

.disabled:hover::after{
    content: none;
    
}

.disabled:hover{
    cursor: default;
}




/*LIGHTBOX */
#lightbox {
    display: none;
}

.lightbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(248, 248, 248, 0.9); /*dietro non c'è niente*/
    z-index: 1000;
}

#lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 95%;
    background-color: #f8f8f8;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    text-align: center;
}

#close-btn {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#imageZoom { /*container*/
    width: 900px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

#main-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}






/*TABLE*/
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1.5px solid #efd199; 
}

tr:last-child td {
    border-bottom: none;
}

tr:last-child th {
    border-bottom: none;
}





/*ITEM DESCRIPTION*/

.item-description {
    margin-left: 10%;
    margin-right: 10%;

}

.item-description-text {
    text-align: justify;

}

button.btn {
    border-radius: 30px; 
    border: none;
}

button.btn:hover {
    background-color: #f1e4ce;
}


.show-more-text {
    overflow: hidden;
    max-height: 0px;
    transition: max-height 0.3s ease;
}

.show-more-text.expanded {
    max-height: none;
}




/*OTHER NARRATIVES*/

.other-narratives {
    padding-left: 15vw;
    padding-right: 15vw;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 40px;
    background-color: #f0dab3;
}

h4 {
    font-family:Crimson Text, serif;
    text-align: center;
    padding-bottom: 20px;
}

h5 {
    font-family:Crimson Text, serif;
    text-align: center;
}

.card {
    cursor: pointer;
}

.card-text {
    font-size: 90%;
    text-align: center;
    
}

.card-img-top {
    height: 250px; 
    object-fit: cover; /* Mantiene le proporzioni ritagliando l'immagine se necessario */
    width: 100%; 
}



/* FOOTER */ 
.footer {
    background-color: #8DADC1;
    margin: 0px;
    padding: 15px;
    clear: both;
    text-align: right;

}

.footer a {
    color: black; 
    text-decoration: none; 
}

.footer a:hover {
    text-decoration: underline; 
}


/*LINE*/
.line {
    background-color: #d18903;  
    height: 1px;
    border: none;
}

