@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400&display=swap');

header.site-header {background-position:center center ;     min-height: 300px;   height: auto;}

.entry-footer .bso-posts {position: relative; margin-top:5rem; display: flex;    flex-flow: row; column-gap: 40px;}
@media (min-width: 200px) and (max-width: 575.98px)  {
		.entry-footer .bso-posts { flex-flow: column;}
}

#mediagalleryc .summary{display:none;}

#mediagalleryc .sliderbox::before {
  content: "Le nostre foto";
    font-family: "Prata", serif;
		display: block;
  font-size: 2rem;
  /*font-weight: bold;*/
  margin-bottom: 1rem;
  color: #fff;
}

.page-template-default .entry-header img.attachment-large {
    width: 100%;
    min-height: 218px;
    object-fit: cover;
}

body.bso-img-before_title #primary.container {    padding-top: 0rem;}

.sacramento_title {padding:10px;}
.sacramento_title .so-widget-sow-editor{text-align:center; width:80%;}
.sacramento_title h3{font-size:2rem !important; color:#fff !important;}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 {padding: 10px 2px 0px 10px !important;}

 @media (max-width: 575.98px) {

		 .sacramento_title.panel-widget-style {background-position: top right !important;  		background-size: contain !important;  		background-repeat: no-repeat !important;_padding-top:50px;}

.sacramento_title .so-widget-sow-editor{
		text-align:center; 
		width:90%; 
		}
}

#festa .summary{display:none}

/* Nasconde l'immagine di testata solo nella pagina Presepe Vivente */

.page-id-3345 #masthead {
    background-image: none !important;
    min-height: auto;
}

/* =========================
   FONT GENERALE + COLORI
========================= */
.page-id-3345 {
    font-family: Georgia, serif; /* sostituisci con il tuo preferito */
    background-color: #ffffff;
    color: #0b1c2d;
    margin: 0;
    padding: 0;
}

.page-id-3345 .entry-header .entry-title,
.page-id-3345 .entry-subtitle {
   font-family: Georgia, serif; /* sostituisci con il tuo preferito */
    font-weight: 700;
    color: #0b1c2d;
}

/* =========================
   SOTTOTITOLO CENTRATO
========================= */
.page-id-3345 .entry-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    margin: 15px 0 40px;
    color: #0b1c2d;
}

.page-id-3345 .bloccotesto{width:60%; margin:auto;}

/* =========================
   VIDEO FULLSCREEN SU FASCIA SCURA
========================= */
.page-id-3345 .pv-video {
    width: 100vw;
    height: 100vh;
    background-color: #0b1c2d;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.page-id-3345 .pv-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .page-id-3345 .pv-video iframe {
        width: 100vw;
        height: 56.25vw;
    }
}

/* =========================
   GALLERY ORIZZONTALE SU FASCIA SCURA
========================= */
.page-id-3345 .wp-block-gallery,
.page-id-3345 .gallery {
    background-color: #0b1c2d;
    padding: 40px 5%;
    display: flex;
    flex-wrap: wrap;        /* permette di andare a capo se lo schermo è stretto */
    justify-content: space-between; /* spazio tra le immagini */
    gap: 15px;
    border-radius: 12px;
}

/* FIGURE (wrapper immagine) */
.page-id-3345 .wp-block-gallery .blocks-gallery-item,
.page-id-3345 .gallery .gallery-item {
    flex: 1 1 calc(33.333% - 10px); /* tre immagini per riga */
    max-width: calc(33.333% - 10px);
    margin-bottom: 15px;
}

/* Immagini dentro figure */
.page-id-3345 .wp-block-gallery img,
.page-id-3345 .gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* SU MOBILE */
@media (max-width: 768px) {
    .page-id-3345 .wp-block-gallery .blocks-gallery-item,
    .page-id-3345 .gallery .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* =========================
   CONTENUTO BIANCO CON MARGINI LATERALI
========================= */
.page-id-3345 .entry-content {
    padding: 60px 12%; /* Margini laterali più ampi per testo */
    background-color: #ffffff;
    color: #0b1c2d;
    font-size: 1.25rem;
    line-height: 1.7;
}

/* =========================
   BLOCCHI INFORMAZIONE (UNO SOTTO L'ALTRO)
========================= */
.page-id-3345 .info-blocks {
    display: flex;
    flex-direction: column; /* forza i blocchi in colonna */
    gap: 30px; /* spazio tra i blocchi */
    margin: 60px 5%; /* margini laterali coerenti */
}

.page-id-3345 .info-block {
    background-color: #0b1c2d;
    color: #ffffff;
    padding: 25px 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    text-align: center;
}

.page-id-3345 .info-block h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f0c040 !important; /* colore visibile sullo sfondo scuro */
}

/* Link su blocchi info / gallery (sfondo scuro) */
.page-id-3345 .info-block a,
.page-id-3345 .pv-gallery a,
.page-id-3345 .pv-video a {
    color: #f0c040; /* giallo chiaro */
    text-decoration: underline;
}

.page-id-3345 .info-block a:hover,
.page-id-3345 .pv-gallery a:hover,
.page-id-3345 .pv-video a:hover {
    color: #ffd966; /* leggermente più chiaro al passaggio */
}

/*gallery*/


/* ===== CONTENITORE ===== */
.page-id-3345 .gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: 15px;
  padding: 20px 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Nasconde scrollbar */
.page-id-3345 .gallery::-webkit-scrollbar {
  display: none;
}
.page-id-3345 .gallery {
  scrollbar-width: none;
}

/* Disattiva colonne */
.page-id-3345 .gallery-item {
  float: none !important;
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  scroll-snap-align: start;
}

/* Altezza fissa delle anteprime */
.page-id-3345 .gallery-item {
  height: 300px;               /* puoi aumentare o diminuire */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Immagini: riempiono il contenitore */
.page-id-3345 .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fondamentale */
  object-position: center;     /* centra le verticali */
}


/* ===== FRECCE ===== */
.page-id-3345 .gallery::before,
.page-id-3345 .gallery::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

/* Freccia sinistra */
.page-id-3345 .gallery::before {
  left: 5px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* Freccia destra */
.page-id-3345 .gallery::after {
  right: 5px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .page-id-3345 .entry-content {
        padding: 40px 8%;
    }
    .page-id-3345 .info-blocks {
        margin: 40px 8%;
        flex-direction: column;
        gap: 20px;
    }
    .page-id-3345 .info-block {
        flex: 1 1 100%;
    }
}