/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

html, body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
}

/* lato-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../hello-theme-child-master/fonts/lato-v24-latin/lato-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url('../hello-theme-child-master/fonts/lato-v24-latin/lato-v24-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('../hello-theme-child-master/fonts/lato-v24-latin/lato-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: url('../hello-theme-child-master/fonts/lato-v24-latin/lato-v24-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: url('../hello-theme-child-master/fonts/lato-v24-latin/lato-v24-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 900;
  src: url('../hello-theme-child-master/fonts/lato-v24-latin/lato-v24-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* playfair-display-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  src: url('../hello-theme-child-master/fonts/playfair-display-v37-latin/playfair-display-v37-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  src: url('../hello-theme-child-master/fonts/playfair-display-v37-latin/playfair-display-v37-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('../hello-theme-child-master/fonts/playfair-display-v37-latin/playfair-display-v37-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  src: url('../hello-theme-child-master/fonts/playfair-display-v37-latin/playfair-display-v37-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* breadcrumb */
.rank-math-breadcrumb a:last-child {
    color: #1A6497;
    
}


/* SOTTOMENU VERTICALE SOLO PER IL MENU OFF CANVAS */
.elementor-widget-off-canvas .elementor-nav-menu .sub-menu {
  position: static !important;
  display: none;
  flex-direction: column;
  margin: 0 !important;
  padding: 0;
  box-shadow: none;
  background: none;
  width: 100% !important;
  min-width: unset !important;
  max-width: unset !important;
}

/* MOSTRA submenu SOLO quando il genitore ha classe .submenu-open */
.elementor-widget-off-canvas .elementor-nav-menu > li.menu-item-has-children.submenu-open > ul.sub-menu {
  display: flex !important;
}

/* Differenziazione stile sottomenu */
.elementor-widget-off-canvas .elementor-nav-menu .sub-menu .elementor-sub-item {
  font-size: 0.9em;
  padding-left: 20px;
  color: #555;
}


/* contenitore progetti */
.progetto-loc {
    width: 310px;
height: 455px;
min-width:310px;
max-width: 310px;
min-height: 455px;
max-height: 455px;
}

/* Formattazione Pagine Amministrative Fondazione */
.fondazione-doc h2,
h3,
h4 {
    font-family: "Lato", sans-serif;
}

.fondazione-doc h2 {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.fondazione-doc h3 {
    font-size: 23px;
    line-height: 33px;
    font-weight: 700;
        margin-bottom: -1px;
}

.fondazione-doc a {
    color: #1A6497;
}
.fondazione-doc ul,
.fondazione-doc ol {
    margin-left: 2%;
}

.fondazione-doc li {
    padding-left: 1%;
}

.fondazione-doc li:first-child {
    margin-top: 2%;
}

.fondazione-doc li:last-child {
    margin-bottom: 3%;
}

body.page-id-36 .fondazione-doc li:first-child {
    margin-top: -1%;
}

/* Archivi per anno */

.collapsible-archives {
  margin: 1em 0;
}
.collapsible-archives .archive-year {
  margin-bottom: 15px;
}
.collapsible-archives .toggle-year {
  background: #f1f1f1;
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: #000;
}


.collapsible-archives .toggle-year:hover {
color: #1A6497;
}

.collapsible-archives .archive-months {
  list-style: none;
  padding-left: 1em;
  margin: 0;
  font-size: 16px;
}
.collapsible-archives .archive-months li {
  margin: 4px 0;
}
.collapsible-archives .archive-months a {
  text-decoration: none;
  color: #1A6497;
}
.collapsible-archives .archive-months a:hover {
  color: #000;
}

/* ============================
   Archivi bandi (solo Anni)
   ============================ */
.archives-by-year {
  margin: 1em 0;
}
.archives-by-year ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 16px;
}
.archives-by-year li {
  margin: 15px 0;
}
.archives-by-year a {
  display: block;
  background: #f1f1f1;
  padding: 8px 12px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease;
}
.archives-by-year a:hover {
  color: #1A6497;
}

/* NASCONDE LOOP VUOTI */
.elementor-loop-empty {
  display: none;
}


/* LINK pagine articoli */
.articoli-link a {
    color: #326393;
    font-weight: 600;
}

/* H2 lungo negli articoli */
.sottotitolo-articoli {
    margin-top: -60px;
}

.titoli-articoli h2 {
    font-size: 30px;
    line-height: 41px;
    font-family: "Lato", sans-serif;
    font-weight: 900;
}

/* Nasconde il messaggio di default */
#bandi-home-section .no-bandi-message {
    display: none;
}

/* Se NON ci sono post, mostra il messaggio */
#bandi-home-section:not(:has(article, .elementor-post, .e-loop-item)) 
.no-bandi-message {
    display: block;
}

/* Se ci sono post, mostra il loop (opzionale, di solito già visibile) */
#bandi-home-section:has(article, .elementor-post, .e-loop-item) 
.no-bandi-message {
    display: none;
}




/* Laptop: da 1201px a 1366px */
@media (min-width: 1201px) and (max-width: 1366px) {
  .progetto-loc {
    width: 248px;
height: 425px;
min-width:248px;
max-width: 248px;
min-height: 425px;
max-height: 425px;
}
  
}



/* Tablet orizzontale: da 1025px a 1200px */
@media (min-width: 1025px) and (max-width: 1200px) {
    .progetto-loc {
    width: 210px;
height: 387px;
min-width:210px;
max-width: 210px;
min-height: 387px;
max-height: 387px;
}

/* H2 lungo negli articoli */
.sottotitolo-articoli {
    margin-top: 0;
}

  
}


/** mobile **/
@media only screen and (max-width: 767px) {

/* Formattazione Pagine Amministrative Fondazione */

.fondazione-doc h2 {
    font-size: 23px;
    line-height: 33px;
}

  .fondazione-doc ul,
  .fondazione-doc ol {
    margin-left: -7%;
}

.link-elenco a  {
  font-size: 14px;

}

.link-mail a[href^="mailto:"] {
  font-size: 14px; /* o qualsiasi valore ti serva */
}

/* gallery flex su mobile */

.wp-block-gallery {
    display: flex;
    flex-direction: column !important;
}

.wp-block-image {
width: 100% !important;
}

.elementor-loop-container:not(.elementor-posts-masonry) {
      align-items: flex-start; /* o auto */
  }



}

/* Centrare l'immagine nella colonna sinistra su tablet e mobile */
@media (max-width: 768px) {


}

/* Desktop: mantieni l'allineamento orizzontale */
@media (min-width: 769px) {
 
  }
}
