@media (min-width: 1024px) {
.container {
  max-width: none !important;
  width: 90% !important;
}
}

.title{
display: 
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white a,
.text-white p {
  color: #fff !Important;
}

.block.block-html.text-white {
  border-radius: 8px;       /* bordi arrotondati */
  overflow: hidden;         /* evita che il contenuto “fuoriuscito” rompa i bordi */
}

img{
 border-radius: 8px;       /* bordi arrotondati */
  overflow: hidden;         /* evita che il contenuto “fuoriuscito” rompa i bordi */
}


.text-black,
.text-black h1,
.text-black h2,
.text-black h3,
.text-black h4,
.text-black h5,
.text-black h6,
.text-black p {
  color: #1d1d22 !Important;
}

/* PERSONALIZZAZIONE TOP BAR */ 
.main-header__advanced-search{
  display: none !important;
}

.main-header__search-form{
  display: none !important;
}

.main-header__top-bar {
      padding-top: 0px;
    padding-bottom: 0px;
}

/* BARRA DI RICERCA PERSONALIZZATA */
.block-search form {
  display: flex;
  align-items: center;
  gap: 10px; /* spazio tra input e bottone */
}

.block-search input {
  margin-bottom: 0 !important;
}

.sub-menu{
display:none;
}

.button.permalink {
display:none !important;
}

.main-navigation .navigation>li>ul{
background-color: #2B4395; !important
}

/* _________________________________________________________________________________________________________________ */

/* IMPOSTAZIONE FONT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

/* Font e stili base */
body {
    font-family: 'Nunito Sans', sans-serif;
    color: #1d1d22;
    line-height: 1.6;
    font-size: 1rem;
}

/* Paragrafi e testo */
p {
    font-family: 'Nunito Sans', sans-serif;
    color: #1d1d22;
}

/* Titoli */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #2B4395;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem; /* 56px */
}

h2 {
    font-size: 2.5rem; /* 40px */
}

h3 {
    font-size: 2rem; /* 32px */
}

h4 {
    font-size: 1.5rem; /* 24px */
}

h5 {
    font-size: 1.25rem; /* 20px */
}

h6 {
    font-size: 1rem; /* 16px */
}

/* Link */
a {
    color: #2B4395;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A4AECF;
    text-decoration: underline;
}

/* Bottoni */
button, .button, input[type="submit"] {
    background-color: #2B4395;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover, input[type="submit"]:hover {
    background-color: #000d6b;
}

/* IMPOSTAZIONE MOBILE _________________________________________________________________________________________________________________ */

/* Media query per tablet e schermi medi */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem; /* 40px invece di 56px */
    }

    h2 {
        font-size: 2rem; /* 32px invece di 40px */
    }

    h3 {
        font-size: 1.75rem; /* 28px */
    }

    h4 {
        font-size: 1.25rem; /* 20px */
    }

    h5 {
        font-size: 1.125rem; /* 18px */
    }

    h6 {
        font-size: 1rem; /* 16px */
    }

    body {
        font-size: 0.9375rem; /* 15px */
    }

    /* Aggiusta anche il testo sovrapposto alle immagini */
    .image-overlay-container p {
        font-size: 1rem;
    }
}

/* Media query per smartphone */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.875rem; /* 30px */
    }

    h2 {
        font-size: 1.5rem; /* 24px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    h4 {
        font-size: 1.125rem; /* 18px */
    }

    h5 {
        font-size: 1rem; /* 16px */
    }

    h6 {
        font-size: 0.875rem; /* 14px */
    }

    body {
        font-size: 0.875rem; /* 14px */
    }

    /* Riduci padding dei bottoni su mobile */
    button, .button, input[type="submit"] {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Aggiusta la barra di ricerca su mobile */
    .custom-search-form {
        margin: 1rem auto;
    }

    .custom-search-form form {
        flex-direction: column;
    }

    .custom-search-form button {
        width: 100%;
    }

    /* Aggiusta il testo sovrapposto alle immagini */
    .image-overlay-container p {
        font-size: 0.875rem;
    }
}


/* HOME GRID _________________________________________________________________________________________________________________ */

/* Contenitore principale: griglia 2x2 */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Ogni card */
.home-grid > div{
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

/* Immagine all'interno del link */
.home-grid > div > img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

/* Zoom immagine al hover */
.home-grid > div:hover > img {
  transform: scale(1.05);
}

/* Overlay con titolo e descrizione centrati */
.home-grid > div::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

/* Overlay più scuro al hover */
.home-grid > div:hover::after {
  background: rgba(0,0,0,0.6);
}

/* Titolo e paragrafo centrati sopra l'immagine */
.home-grid > div > h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  margin: 0;
  text-align: center;
  z-index: 2;
  width: 90%;
}

.home-grid > div > p {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  margin: 0;
  text-align: center;
  z-index: 2;
  width: 90%;
}

/* Titolo in evidenza */
.home-grid > div > h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Paragrafo descrittivo */
.home-grid > div > p {
  font-size: 1rem;
  line-height: 1.2;
}

/* Link all'interno dei testi */
.home-grid > div > h1 a,
.home-grid > div > p a {
  color: white !important;
  text-decoration: none;
}

/* Responsivo: su schermi piccoli diventa 1 colonna */
@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-grid > div > h1 {
    font-size: 1.5rem;
  }

  .home-grid > div > p {
    font-size: 0.95rem;
  }
}

/* FLEX BLOCK _________________________________________________________________________________________________________________ */

.flex{
display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 20px;
align-items: center;
}

@media (max-width:  768px) {
  .flex {
    grid-template-columns: 1fr;
  }
}

.flex3{
display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 100px;
}

@media (max-width:  768px) {
  .flex3 {
    grid-template-columns: 1fr;
  }
}

/* TIMELINE _________________________________________________________________________________________________________________ */

/* Contenitore testo evento */
.tl-text-content-container {
    font-family: 'Nunito Sans', sans-serif;
    color: #1d1d22;
    line-height: 1.6;
}

/* Titolo principale evento (link incluso) */
.tl-text-content-container .tl-headline a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2B4395;
    font-size: 1.5rem; /* come h4 nel tema */
    text-decoration: none;
    transition: color 0.3s ease;
}

.tl-text-content-container .tl-headline a:hover {
    color: #2B4395;
    text-decoration: underline;
}

/* Data dell’evento */
.tl-text-content-container .tl-headline-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #666;
    font-size: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}

/* Descrizione evento */
.tl-text-content-container .tl-text-content {
    font-family: 'Nunito Sans', sans-serif;
    color: #1d1d22;
    font-size: 1rem;
    line-height: 1.6;
}

/* Spaziatura tra eventi */
.tl-timeline .tl-slide {
    margin-bottom: 2rem;
}

.tl-slidenav-next:hover,
.tl-slidenav-previous:hover {
  background: none !important;
  box-shadow: none !important;
}

/* TABELLA_________________________________________________________________________________________________________________ */

.info-block {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 50px;
}

@media (max-width:  768px) {
  .info-block {
    grid-template-columns: 1fr;
  }
}

.info-block th {
  background-color: #2B4395; /* blu scuro */
  color: #fff;               /* testo bianco */
  padding: 10px;
  font-size: 16px;
  text-align: center;
border-radius: 8px;   
}

.info-block td {
border-collapse: collapse;
 border: 1px solid #2B4395;
  padding: 8px;
border-radius: 8px; 
}

.info-block table {
border-collapse: collapse;
border-radius: 8px; 
}


/* FOOTER_________________________________________________________________________________________________________________ */

@media (min-width: 1024px) {
 .all-columns.menu-depth-2 .main-footer__col1 {
        max-width: 33% !important;
    }
}

@media (min-width: 1024px) {
 .all-columns.menu-depth-2 .main-footer__col3 {
        max-width: 33% !important;
    }
}


.main-footer__top{
background-color: #2B4395; !important
}

.main-footer__bottom{
background-color: #2B4395; !important
}

/* Nasconde la colonna 2 del footer su schermi piccoli */
@media (max-width: 768px) {
  .main-footer__col2 {
    display: none !important;
  }
}

.navigation ul {
  display: none;
}

/* NAVIGAZIONE_________________________________________________________________________________________________________________ */

.menu-drawer {
    background-color: #2B4395 !important;
}

/*RICERCA_________________________________________________________________________________________________________________ */

table td {
  vertical-align: top !important;
}

/*FACETED BROWSE_________________________________________________________________________________________________________________ */

.faceted-results thead tr {
  background-color: #2b4395;
  color: #fff;
  border-radius: 8px;
}

.faceted-results thead tr th:first-child {
  border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
.faceted-results thead tr th:last-child {
  border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}

.faceted-results thead th {
  padding: 10px 16px;
  border: 1px;
}

.faceted-results tbody tr {
  box-shadow: 0px 0px 3px #808080 ;
border-radius: 8px;
  overflow: hidden;
}

.resource-list .resource{
 box-shadow: 0px 1px 6px rgba(51, 51, 51, .2);
border-radius: 8px;
  overflow: hidden;
}



  border: 1px solid #ddd !important;
  border-radius: 8px;
  overflow: hidden;
}
.faceted-results tbody td {
  padding: 12px 16px;
  vertical-align: top;
}
.faceted-results tbody tr + tr {
  margin-top: 10px;
}

/* Column widths */
.faceted-results th:nth-child(1),
.faceted-results td:nth-child(1) { width: 30%; }
.faceted-results th:nth-child(2),
.faceted-results td:nth-child(2) { width: 20%; }
.faceted-results th:nth-child(3),
.faceted-results td:nth-child(3) { width: 50%; }

.faceted-results td:nth-child(2) img {
  display: none !important;
}



.facets-container legend {
 font-family: 'Nunito Sans', sans-serif !important; 
  color: #2b4395 !important;
  /*text-transform: uppercase;  tutto maiuscolo */
  font-weight: 600; /* un po’ più marcato */
  font-size: 1rem; /* dimensione coerente col body */
  margin-bottom: 6px;
}

#helper-text-expand-collapse {
    display: none !important;
}

@media (max-width: 768px) {
  /* Nasconde la seconda colonna (Eventi collegati) */
  .faceted-results.tablesaw-swipe thead th:nth-child(2),
  .faceted-results.tablesaw-swipe tbody td:nth-child(2) {
    display: none;
  }
}

 /* Liste */
@media (min-width: 1200px) {
.faceted-browse-page .select-list {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    width: 100%;
}
}

/*MAPPING_________________________________________________________________________________________________________________ */

.mapping-map.leaflet-container {
    height: 70vh !important;
    position: relative !important;
}

/*STORIE_________________________________________________________________________________________________________________ */

@media (min-width: 1200px) {
.storia {
    max-width: 60%;
    margin: 0 auto !important;
}
}

/*VIDEO_________________________________________________________________________________________________________________ */

iframe{
width: 100%;
height: 38vh !important;
}

/*STORIE_________________________________________________________________________________________________________________ */

.asset .link-title {
    display: block;       /* per comportarsi come un blocco simile a h2 */
     font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #2B4395;
    line-height: 1.2;
}

 .link-title {
    padding-top: 1vh;
    padding-bottom: 1vh;
}

.asset .caption {
    font-family: inherit; /* eredita il font del sito */
    font-size: inherit;   /* dimensione font come p */
    font-weight: inherit; /* peso font come p */
    line-height: inherit; /* linea come p */
 margin-top: 0.5 rem;
font-style: normal; 
}
