/* STYLE FOR CATALOG FRONT-END*/


.catalog-main-title {
    color: #382c23;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
    font-family: Garamond;
    font-size: 39.06px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 32px;
    margin-right: 16px;
}

.catalog-flex-container {
    flex-direction: row !important;
    padding-top: 0px !important;
}


.catalog-title-container {
    display: flex;
    justify-content: space-between;
}

.tool-button-container {
    margin-top:17px;   
    position: relative !important;
    top: -20px !important;
    align-content: flex-start !important;
}

/* Responsive styles - Mobile breakpoint at 544px */
@media (max-width: 544px) {
    
    .tool-button-container {
        position: absolute !important;
        margin: 210px 20px;
    }

    .catalog-title-container {
        justify-content: center;
    }


}

.catalog-title-wrapper {
    max-width: 80%;
}

.catalog-margin-top-bottom {
    margin-top: 32px;
    margin-bottom: 32px;
}

.catalog-description-title {
    font-size: 20px !important;
    margin-bottom: 16px;
}

.catalog-margin-bottom {
    margin-bottom: 74px;
}

.catalog-metadata-container h4 {
    color: #334350;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    margin-top: 16px;
}

.catalog-metadata-container p {
    color: #232F38;
    font-family: Lato;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}


.catalog-metadata-container div {
    margin-top: 8px;
}

.tourism-detail-page-multimedia-title-container {
    text-align: center;
    width: 100%;
    margin: 20px 0;
}

.tourism-detail-page-multimedia-title-container h3 {
    display: inline-block;
    position: relative;
    font-family: Garamond;
    font-size: 39.05px;
    font-weight: 700;
    color: #382c23;
    margin-top: 64px;
}


.tourism-multimedia-arrows-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Swiper Styles */
.variant-multimedia-fill-width {
    width: 100%;
    padding: 0 0 60px;
    background-color: #f8f8f8;
    margin-top: 40px;
}

.tourism-detail-page-multimedia-swiper {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.swiper-slide.multimedia-slide {
    height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.swiper-slide.multimedia-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tourism-detail-page-multimedia-arrow-left,
.tourism-detail-page-multimedia-arrow-right {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tourism-detail-page-multimedia-arrow-left:hover,
.tourism-detail-page-multimedia-arrow-right:hover {
    background-color: #382c23;
    color: #fff;
}

.video-item {
    position: relative;
}

.video-play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.video-play-button span {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #382c23;
    font-size: 24px;
}



.circle {
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.04);
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    color: #1E1E1E;
    border-color: #fff;
}

/* Base layout styles */
.main-container-detail-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 0px;
}

.half-width-container {
    flex: 1;
    min-width: 300px;
}

.half-width {
    width: 100%;
}

.left-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.catalog-right-content-wrapper {
    margin-left: 30px;
}

.catalog-margin-right-wrapper {
    margin-left: 30px;
}


.catalog-full-width { 
    width: 100% !important;
}


.catalog-bg-white {
    background-color: #fff !important;
}


.half-width.right-content {
    width: 50% !important;
}

/* Responsive styles - Mobile breakpoint at 544px */
@media (max-width: 544px) {
    .half-width.right-content {
        width: 100% !important;
    }
    
}


/* Related Items Grid Styles */

.catalog-related-items-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.catalog-related-items-button-wrapper {
    width:100%;
    text-align:right;
}

.catalog-related-items-button {
    width:200px;
    margin-right:24px;
}

/* CTA: bottone download PDF bibliografia (single catalogo) */
.catalog-bibliografia-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-width: 160px;
    height: 40px;
    padding: 8px 24px;
    border-radius: 3px;
    border: 1px solid #334350;
    background: #FFF !important;
    color: #232F38 !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 150% */
    text-decoration: none;
    margin-top: 24px;
}

.catalog-bibliografia-pdf-button:hover {
    border: 1px solid #5C6973;
    background: #ECF1F2 !important;
    color: #232F38 !important;
}


.related-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.related-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: var(--border-radius);
 /*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .related-item:hover {
   transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
} */

.related-item-image {
    height: 100%;
    overflow: hidden;
}

.related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-item-image img {
    transform: scale(1.05);
}

.related-item-content {
    padding: 15px;
}

.related-item-content h4 {
    color: #382c23;
    font-family: Garamond;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
}

.related-item-content h4 a {
    color: #382c23;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item-content h4 a:hover {
    color: #5a483a;
}

.related-item-category {
    color: #334350;
    font-family: Lato;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

/* Responsive styles - Mobile breakpoint at 544px */
@media (max-width: 544px) {
    .flex-container {
        flex-direction: column !important;
        gap: 20px;
    }
    
    .half-width-container {
        width: 100%;
    }
    
    .catalog-right-content-wrapper {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .catalog-main-title {
        font-size: 28px;
        text-align: center;
    }
    
    .tourism-detail-page-multimedia-title-container h3 {
        font-size: 28px;
        margin-top: 40px;
    }
    
    .swiper-slide.multimedia-slide {
        height: 200px;
    }
    
    .tourism-multimedia-arrows-container {
        justify-content: center;
    }
    
    .tourism-detail-page-multimedia-arrow-left,
    .tourism-detail-page-multimedia-arrow-right {
        width: 32px;
        height: 32px;
    }
    
    .video-play-button span {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .catalog-metadata-container {
        padding: 0 10px;
    }
}

/* Responsive styles for related items grid */
@media (max-width: 768px) {
    .related-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 544px) {
    .related-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 40px;
    }
    
    .related-item-image {
        height: 180px;
    }
    
    .related-item-content h4 {
        font-size: 18px;
    }

    .catalog-mobile-breadcrump {
        margin-top: 32px;
    }
}


/* Adjust for subsite */
.subsite-sharing-container {
    display: none !important;
  }
  
  .half-width.left-content {
      margin-top: 0 !important;
  }


  .single-poi-description-wrapper-opera span p {
    line-height: 28px;
}


/* Adjust for pubblications */

.half-width.right-content.pub-right-content {
    width: 70% !important;
}


@media (max-width: 544px) {
    .pub-flex-container {
        flex-direction: column-reverse !important;
    }
    .half-width.right-content.pub-right-content {
        width: 100% !important;
    }
}
