/*
 Theme Name:   Basic Child
 Theme URI:    
 Description:  Basic Child Theme
 Author:       
 Author URI:   
 Template:     basic
 Version:      1.0.0
*/

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  font-size: 18px;
}

body {
  margin: 0; 
  font: 1rem/1.6 'Manrope', sans-serif;
  font-weight:500;
  color: #102C53;
  background: #f9f9fb;
  word-wrap: break-word;
}

#main {
  padding: 85px 0;
  margin: 0 auto;
  position: relative;
}
/* Small Devices */
@media (max-width: 991px) { 
	#main{
		padding: 25px 0;
	}   
}

.wrapper {	
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper #main {
  flex: 1 0 auto;
  width:100%;
}

#footer{
	background:#102C53;
	padding:0 20px;
}

.wrapper #footer {
  flex: 0 0 auto;
}

#content{
	width:100%;
	/*border:1px solid green;*/
}

.container{
	margin:0 auto;
	padding: 0;	
	/*border:1px solid red;*/
} 
/* Small Devices (sm Tablets, 576px and up) */
@media (min-width: 576px) { 
	.container{
		max-width:540px;
	}   
}
/* Medium Devices (md Desktops, 768px and up) */
@media (min-width: 768px) { 
	.container{
		max-width:720px;
	}    
}
/* Large Devices (lg Desktops, 992px and up) */
@media (min-width: 992px) { 
	.container{
		max-width:960px;
	}  
}
/* Extra Large Devices (xl Large Desktops, 1200px and up) */
@media (min-width: 1200px) { 
	.container{
		max-width:1140px;
	}     
}
/* Extra Extra Large Devices (xxl Large Desktops, 1400px and up) */
@media (min-width: 1400px) { 
	.container{
		max-width:1320px;
	}      
}

#toTop { 
  padding: 3px 6px; 
  background: #102C53;  
  transform: rotate(0deg);
  border-radius: 50px;
  width: 48px;
  height: 48px;
  font-weight:700;
}

#toTop::after{
  content: "\f343";
  font-family: "dashicons";
  font-size: 16px;
  line-height: 1;
}

#toTop:hover {
	opacity: 0.8;
	color:#000!important;
	border-radius: 50px;
}

/* Titoli */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.6em;
    color: #102C53; 
}

/* Scala tipografica */
h1 {
    font-size: 2.5rem;   /* 40px */
    line-height: 1.15;
}

h2 {
    font-size: 2rem;     /* 32px */
}

h3 {
    font-size: 1.5rem;   /* 24px */
}

h4 {
    font-size: 1.25rem;  /* 20px */
}

h5 {
    font-size: 1.125rem; /* 18px */
}

h6 {
    font-size: 1rem;     /* 16px */
    font-weight: 600;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{text-decoration:none;}

/* __________ images __________*/
.entry iframe { max-width: 100%; }
.entry img { max-width: 100%; height: auto; margin-bottom: 10px; margin-top: 8px; }
.alignleft img {display: block;margin: 0 auto 0 0;}
.alignright img {display: block;margin: 0 0 0 auto;}
img.alignleft, .alignleft { float: left; margin-top: 8px; margin-right: 20px; margin-left: 0; margin-bottom: 20px;}
img.alignright, .alignright { float: right; margin-top: 8px; margin-left: 20px; margin-right: 0; margin-bottom: 20px;}
.aligncenter, div.aligncenter, img.centered { display: block; margin-left: auto; margin-right: auto; }
.entry .attachment, .entry .caption, .entry .gallery-caption { text-align: center; }
.entry .attachment .navigation { height: 150px; }
.wp-caption, .attachment img { text-align: center; max-width: 100%; }
.wp-caption img { margin-top: 0; margin-bottom: 0;}
.wp-caption-text, .wp-caption p.wp-caption-text { font-size: 12px; color: #222; margin: 0 0 15px; }
.entry .wp-smiley { margin: 0; padding: 0; border: 0; }

.ombra, .attachment-thumbnail{
  box-shadow: 
  0 2px 4px rgba(0,0,0,0.1),
  0 8px 16px rgba(0,0,0,0.15);
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  border-top: 1px solid #DDDDDD;
  border-bottom: 1px solid #DDDDDD; 
  background-color: rgba(243, 243, 241, 0.6);  
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px); 
}

.site-header a { text-decoration: none; }

/* RIGA 1 */
.header-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /*padding: 2px 16px;*/
  min-height:74px;
}

.pre-title {
  display: inline-flex;
  padding: 4px 0px 4px 16px;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 90%;
  border-left: 1px solid #2942db;
  color: #2942db;
  letter-spacing: unset;
  margin-bottom: 24px;
}

.brand-left.logo-links {
	position: relative;
	display: inline-block;
	width: fit-content;
	max-width: 100%;
	line-height: 0;
}

.brand-left.logo-links img {
	display: block;
	height: auto;
	max-height: 46px;
	max-width: 100%;
	width: auto;
	margin-left:10px;
}

.brand-left .logo-link {
	position: absolute;
	top: 0;
	bottom: 0;
	display: block;
	z-index: 2;
}

.brand-left .logo-link-polimi {
	left: 0;
	width: 37%;
}

.brand-left .logo-link-qfinlab {
	left: 37%;
	width: 32.33%;
}

.brand-left .logo-link-matematica {
	left: 69.33%;
	right: 0;
}




/* RIGA 2 (più alta con logo centrato) */
.header-bottom{
  display: flex;
  align-items: center;
  justify-content: center;
  /*padding: 28px 16px;*/ /* più alta */
  background:#102C53;
  /*height:140px;*/
}

.header-bottom-wrapper{
	background: #102C53;padding:20px 0
}

/* Allinea immagine e testo in orizzontale */
.brand-center {
  display: flex;
  align-items: center;   /* allineamento verticale */
  gap: 16px;             /* spazio tra logo e testo */
  text-decoration: none; /* rimuove sottolineatura link */
  color: #ffffff;        /* testo bianco */
}

/* Logo */
.header-img img {
  display: block;
  height: 56px;  
  max-height: 56px;      /* regola in base a quanto lo vuoi grande */
  width: auto;
}

/* Testo */
.header-text {
  line-height: 1.2;
  font-size: 18px;
  font-weight:500;
}

.header-img{
	display:inline-block;
}

.header-text{
	font-weight: 500;
	display: inline-block;
	color: #fff;
	text-align: left;
	line-height: 22px;
	/*position: relative;
	top: 0px;*/
}

/* MOBILE */
@media (max-width: 991px){
	/* opzionale: logo centrale un po' più piccolo su mobile */
	.brand-center img{
		height: 46px;
	}  
	.header-text{
		font-size:80%;
		bottom:5px;
	} 
	/* per permettere positioning assoluto del menu rispetto alla riga 1 */
	.header-top{
		position: relative;
	}
}

.crumbs{
	text-transform: uppercase;
	font-variant: small-caps;
	padding: 0 20px 40px 20px;
	font-size:.7em;	
	font-weight:600;
}

.crumbs a:hover{
	color:#5050BE;
}

.crumbs .current{
	font-weight:300;
}

article.page,
article.post,
article[class*="post-"] {
    padding: 0 20px;
}

/* single-sm_seminars.php */
@media (max-width: 768px) {
	.seminar-cover img.alignleft {
		float: none;
		display: block;
		margin: 0 auto 30px auto; /* centrata + spazio sotto */
	}
	
	h1, h2, h3, h4, h5, h6 {		
		font-size:1.5rem;		
	}
	
}

.inform {
  margin-bottom: 2em;
  padding:0 0 20px 0;
  border-bottom: 1px dotted #e2e2e2;
}

.rtable {
  /*!
  // IE needs inline-block to position scrolling shadows otherwise use:
  // display: block;
  // max-width: min-content;
  */
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  overflow-x: auto;
  /*line-height:1em;*/
  /*white-space: nowrap;*/
  border-collapse: collapse;
  border-spacing: 0;
}

.rtable,
.rtable--flip tbody {
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(left, ellipse, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 0 center, radial-gradient(right, ellipse, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 75%) 100% center;
  background-size: 10px 100%, 10px 100%;
  background-attachment: scroll, scroll;
  background-repeat: no-repeat;
}

/* __________ socialshare __________ */
.social_share { margin: 0; padding: 0; border:0; }

/*
.rtable td:first-child,
.rtable--flip tbody tr:first-child {
  background-image: linear-gradient(to right, white 50%, rgba(255, 255, 255, 0) 100%);
  background-repeat: no-repeat;
  background-size: 20px 100%;
}

.rtable td:last-child,
.rtable--flip tbody tr:last-child {
  background-image: linear-gradient(to left, white 50%, rgba(255, 255, 255, 0) 100%);
  background-repeat: no-repeat;
  background-position: 100% 0;
  background-size: 20px 100%;
}
*/

.rtable th {
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  background: #f2f0e6;
}

.rtable th,
.rtable td {
  padding: 6px 12px;
  border: 1px solid #d9d7ce;
}

.rtable--flip {
  display: flex;
  overflow: hidden;
  background: none;
}

.rtable--flip thead {
  display: flex;
  flex-shrink: 0;
  min-width: -webkit-min-content;
  min-width: -moz-min-content;
  min-width: min-content;
}

.rtable--flip tbody {
  display: flex;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.rtable--flip tr {
  display: flex;
  flex-direction: column;
  min-width: -webkit-min-content;
  min-width: -moz-min-content;
  min-width: min-content;
  flex-shrink: 0;
}

.rtable--flip td,
.rtable--flip th {
  display: block;
}

.rtable--flip td {
  background-image: none !important;
  border-left: 0;
}

.rtable--flip th:not(:last-child),
.rtable--flip td:not(:last-child) {
  border-bottom: 0;
}

.wtitle {    
    font-size: inherit;    
    text-transform: none;
	border-bottom: 1px dotted #104A49;
	color:inherit;
}

/*
.hidden {
	display: none;
	visibility: hidden;
}
*/

.hidden, .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top-menu{text-transform:uppercase}

a.more-link.more-but{text-decoration:none;}

.more-link {   
    padding: 6px 8px;   
}

ul.mybutton_grigio{	
    list-style:none;
	margin:0;
	padding:0;
}

.mybutton_grigio li{	
	background: #c4c4c4;
    background: -moz-linear-gradient(left,#c4c4c4 0%,#e8e8e8 50%,#c4c4c4 100%);
    background: -webkit-linear-gradient(left,#c4c4c4 0%,#e8e8e8 50%,#c4c4c4 100%);
    background: linear-gradient(to right,#c4c4c4 0%,#e8e8e8 50%,#c4c4c4 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c4c4c4', endColorstr='#c4c4c4',GradientType=1 );    
	white-space: nowrap;    
    font-size: 80%;
    text-shadow: -1px -1px 0 rgba(255,255,255,.3);
	padding:4px;
	margin:4px;
    box-shadow: 1px 1px 2px 0 #333;
    -webkit-box-shadow: 1px 1px 2px 0 #333;
    -moz-box-shadow: 1px 1px 2px 0 #333;
    color: #000;
    cursor: pointer;
    overflow: visible;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
}

.mybutton_grigio ul li a{
    color: #000!important;	
}

.mybutton_grigio ul li:hover {
    text-decoration: none;
    color: #666
}


.mybutton_grigio a::after{
    content: '➤';
    float: right;
    margin-left: 0;
    margin-right: 0;
	Z-index:1000;
}


#sidebar.block {    
    margin-top: 70px;	
	border-radius: 6px;
    -webkit-border-radius: 6px;
}

#widgetlist {
    border-radius: 6px;
    -webkit-border-radius: 6px;
	/*box-shadow: 1px 1px 4px rgba(0,0,0,.5);*/
	border:1px solid #ccc;
}

/*
.mybutton a:hover,.mybutton_grigio:hover {
    background: #d8d8d8;
    background: -moz-linear-gradient(left,#d8d8d8 0%,#f7f7f7 50%,#d8d8d8 100%);
    background: -webkit-linear-gradient(left,#d8d8d8 0%,#f7f7f7 50%,#d8d8d8 100%);
    background: linear-gradient(to right,#d8d8d8 0%,#f7f7f7 50%,#d8d8d8 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d8d8d8', endColorstr='#d8d8d8',GradientType=1 )
}

.mybutton {
    font-size: 90%;
    text-shadow: -1px -1px 0 rgba(0,0,0,.3);
    box-shadow: 1px 3px 7px 0 #333;
    -webkit-box-shadow: 1px 3px 7px 0 #333;
    -moz-box-shadow: 1px 3px 7px 0 #333;
    color: #fff;
    background: #104948;
    background: -moz-linear-gradient(left,#104948 0%,#1d8785 50%,#104948 100%);
    background: -webkit-linear-gradient(left,#104948 0%,#1d8785 50%,#104948 100%);
    background: linear-gradient(to right,#104948 0%,#1d8785 50%,#104948 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#104948', endColorstr='#104948',GradientType=1 )
}

.mybutton a,.mybutton a:hover,.mybutton:hover,a.mybutton_grigio {
    text-decoration: none
}

.mybutton a:hover,.mybutton:hover {
    color: #fff;
    background: #1d8783;
    background: -moz-linear-gradient(left,#1d8783 0%,#27b5b0 50%,#1d8783 100%);
    background: -webkit-linear-gradient(left,#1d8783 0%,#27b5b0 50%,#1d8783 100%);
    background: linear-gradient(to right,#1d8783 0%,#27b5b0 50%,#1d8783 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1d8783', endColorstr='#1d8783',GradientType=1 )
}
*/

a.suf-mag-category-all-posts{
	display: inline-block;
	padding: 5px 10px;
	background: #936;
    background-color: rgb(153, 51, 102);
	color: #fff;
	text-decoration: none;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	position: relative;
	background-color: #0b3d3d;
}

.suf-mag-category-all-posts::after {
    content: '➤';
    float: right;
    margin-left: 10px;
    margin-right: -5px;
}

a.suf-mag-category-all-posts:hover{
	color: #fff;	
	opacity: 0.8;
	text-decoration:none;
}

.wp-caption-text, .wp-caption p.wp-caption-text {
    font-size: 13px;
    color: #222;
    margin: 5px 0;
	padding: 12px 4px;
    /*background: #D8E4E4;*/
	background:#E4EBF0;
}

#widgetlist {    
    padding: 20px;    
    /*background: #D8E4E4;*/
	background:#F7F7F7;
}

.maxwidth {
    width: 98%;
    max-width: 100%;
}

img.resize {
    width: 100%!important;
    height: auto!important
}

#header {
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
	/*margin-top:10px;*/
}

p#designedby, p#copy {
    padding: 0 1em;
}

ul.top-menu{
	padding:0;
	margin:0;
}

.top-menu {
    position: relative;
    z-index: 1000;
    width: 100%;
    left: 0;
	height:auto;
	box-shadow:1px 1px 6px #666;	
}

.top-menu li{
	margin:0;
	padding:0;
}


.scheda33 {
    float: left;
    width: 33%
}

.scheda25 {
    float: left;
    width: 25%
}

.scheda50 {
	float:left;
    width: 50%
}

.scheda100 {
    float: left;
    width: 100%
}

.wrap_scheda_iniziativa {	
    width: 90% !important;
    height: 220px;
    text-align: center;
    margin: 8px auto;
    padding: 8px 0;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    cursor: pointer;
    box-shadow: 1px 1px 4px #353535;
    border: 1px solid #4a4a4a;
    font-size: 96%;
    overflow: hidden;
    min-height: 190px;
}

.wrap_scheda_iniziativa:hover {	
	opacity: 0.8;
}

.wrap_scheda_link{	
	width: 90% !important;
    height: 240px;
	min-height: 240px; 	
    text-align: center;
    margin: 8px auto;
    padding: 8px 0;
    border-radius: 6px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    cursor: pointer;
    box-shadow: 1px 1px 4px #bbb;
    font-size: 96%;
    overflow: hidden;
    min-height: 190px;	
	/*border: 1px solid #eee;*/
}

.wrap_scheda_link:hover {	
	opacity: 0.8;
}

.wrap_scheda {
	float:left;
    width: 96% !important;
    height: auto;
    text-align: center;
    margin: 5px;
    padding: 20px 0;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    cursor: pointer;
    /*box-shadow: 1px 1px 2px #666;*/
	border:1px solid #ddd;
	background: #f1f1f1;
	background: -moz-linear-gradient(-45deg,  #f1f1f1 33%, #ffffff 69%);
	background: -webkit-linear-gradient(-45deg,  #f1f1f1 33%,#ffffff 69%);
	background: linear-gradient(135deg,  #f1f1f1 33%,#ffffff 69%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f1f1', endColorstr='#ffffff',GradientType=1 );
	font-size: 90%;
	/*border:1px solid red;*/
}

.wrap_scheda:hover {
	background: #e0e0e0;
	background: -moz-linear-gradient(-45deg,  #e0e0e0 33%, #ededed 69%);
	background: -webkit-linear-gradient(-45deg,  #e0e0e0 33%,#ededed 69%);
	background: linear-gradient(135deg,  #e0e0e0 33%,#ededed 69%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e0e0', endColorstr='#ededed',GradientType=1 );
}

.wrap_scheda a{text-decoration:none;}

.entry-box {
  margin: 0;
}

.entry-box ul li {
    padding-left: 0;    
}

.boximage {
    width: 100%!important;
    height: auto!important
}

.boxdescription,.boxtitle {
    color: #fff!important;
    padding: 6px
}

.boxtitle {
    font-weight: 700;
    line-height: 1em;
    font-size: 1.1em!important
}

.boxdescription {
    font-size: 16px!important;
    line-height: 18px!important;
    height: auto
}

.menu-toggle,div.menu-menu-container,ul#menu-bruti_liberati_prize_menu.nav-menu,ul#menu-menu_principale.nav-menu {
    background: #f1f9f3
}

.menu-toggle {
    border: 0!important;
    color: #104b4a;
    padding: 8px;
    cursor: pointer
}

.menu-toggle div.linea {
    width: 38px;
    height: 3px;
    background-color: #104b4a;
    margin: 3px 0
}

.nivo-caption {
    background: transparent !important;
    /*color: #fff !important;*/
	color: #0067CE !important;
    margin: 0 !important;
	padding: 15px !important;
    font-size: 3em;
    /*text-shadow: -1px -1px 0 #071D1D,1px -1px 0 #071D1D,-1px 1px 0 #071D1D,1px 1px 0 #071D1D;*/
	text-shadow: -1px -1px 0 #ffffff,1px -1px 0 #ffffff,-1px 1px 0 #ffffff,1px 1px 0 #ffffff;
    line-height: 1em !important;
	/*z-index:10 !important;*/
}

.date1 {
	background: #003A75;    
    width:50px;
    height:50px;    
    color: #fff;
    text-align: center;
    padding: 0;    
    float: left;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    box-shadow: 1px 1px 4px #666;
    margin-right: 5px
}

.date1 span.month {
	height: 12px;    
    font-size: 80%;    
}

.date1 span.day,.date1 span.month,.date1 span.year {
    display: block;
    color: #fff;
    text-align: center
}

.date1 span.day {
    height: 16px;
    line-height: normal;
    padding: 4px 0 0;
    font-size: 100%
}

.date1 span.year {
    font-size: 70%
}

/*
.page_nav {
    margin: 0;
    padding: 3px
}

a.page-numbers,a.page-numbers:hover,span.page-numbers.current {
    margin-right: 3px;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 700
}

a.page-numbers {
    background: #bbb;
    text-decoration: none!important;
    color: #666!important
}

.main-navigation li a,a.page-numbers,a.page-numbers:hover,span.page-numbers.current {
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    box-shadow: 1px 1px 2px #666
}

a.page-numbers:hover,span.page-numbers.current {
    background: #ddd;
    color: #333!important
}
*/

/* =================================
   LAB TILES – Image Cards (2x2 -> 1)
   ================================= */

.lab-tiles { padding: 60px 0; }

.lab-tiles__grid{
  width: 98%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px){
  .lab-tiles__grid{ grid-template-columns: 1fr; }
}

/* Utility for screen readers */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Base tile */
.tile, a.tile {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: #fff;

  padding: 22px;
  min-height: 300px;

  border-radius: 16px;
  overflow: hidden;

  /* Image */
  background-image: var(--tile-bg);
  background-size: cover;
  background-position: center;

  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transform: translateZ(0);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}

/* Overlay: scuro SOPRA che sfuma (come volevi tu) + leggero sotto per leggibilità */
.tile::before{
  content:"";
  position:absolute;
  inset:0;
  /*background: linear-gradient( to bottom, rgba(0,0,0,.70) 0%, rgba(0,0,0,.45) 25%, rgba(0,0,0,.20) 50%, rgba(0,0,0,0) 75% );	*/
  opacity: 1;
  transition: opacity .28s ease;
}

/* Accent glow */
.tile::after{
  content:"";
  position:absolute;
  inset:-40px;
  background: radial-gradient(closest-side, rgba(255,255,255,.3), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity .28s ease;  
}

/* Content on top */
.tile > *{ position: relative; z-index: 1; }

.tile__top{
  display:flex;
  justify-content:flex-start;
}

.tile__pill{
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

/* Content */
.tile__content{
  display:flex;
  flex-direction:column;
  height: 100%;
  /*padding-top: 18px;*/
}

.tile__title{
  font-size: 2.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-shadow: 0 6px 22px rgba(0,0,0,.45);
}

.tile__desc{
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  max-width: 46ch;
  text-shadow: 0 6px 22px rgba(0,0,0,.45);
}

.tile__cta{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;

  color: #2942db;
  background: none;
  border: none;
  box-shadow: none;
  padding:5px 0;  
  /*border-bottom:1px solid transparent;*/
}

a.tile__cta{
  color: #2942db;
  text-decoration: none;
}

/* cerchio con freccia */
.tile__cta::after{
  content: "\f344";
  font-family: "dashicons";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  border-radius: 50%;

  background: #2942DB; /* blu cerchio */
  color: #fff;
  font-size: 11px;
  line-height: 1;
  
}

/* hover leggero 
.eventi-card.qfin-card:hover > .tile__cta{
  border-bottom: 1px solid #2942DB;
}
*/
.eventi-card.qfin-card .etichetta, .scheda-link .etichetta{
  border-bottom: 1px solid transparent;
}

.eventi-card.qfin-card:hover .etichetta, .scheda-link:hover .etichetta{
  border-bottom: 1px solid #67B3FF;
}


.tile__cta_archive{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;

  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;

  color: #fff;
  background: rgba(16,44,83,.92);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

a.tile__cta_archive{
	color:#fff;
	text-decoration:none;
}

.tile__cta_archive::after{
  content: "\f344";
  font-family: "dashicons";
  font-size: 16px;
  line-height: 1;
}

.tile__cta_archive:hover{
	opacity: 0.8;
	color:#fff;	
}


/* Hover / Focus */
.tile:hover{
  /*transform: translateY(-6px);*/
  color:#fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

/*.tile:hover::before{ opacity: .1; }*/
/*.tile:hover::after{ opacity: 1; transform: translateY(0); }*/
.tile:hover::after{ opacity: 1; }

.tile:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 18px 48px rgba(0,0,0,.18);
}

/* Optional: different “accent” per tile (solo per pill / CTA)
.tile--research .tile__cta{ background: rgba(10,60,130,.92); }
.tile--education .tile__cta{ background: rgba(12,90,60,.92); }
.tile--literacy .tile__cta{ background: rgba(120,90,0,.88); }
.tile--accent  .tile__cta{ background: rgba(120,0,0,.88); }
 */
 
@media (max-width: 420px){
  .tile{ min-height: 230px; padding: 18px; border-radius: 14px; }
  .tile__title{ font-size: 1.15rem; }
  .tile__desc{ font-size: .92rem; }
}

/* =================================
   qfl-grid – Image Cards (2x2 -> 1)
   ================================= */
:root{
  --card-radius: 12px;
  /*--overlay-grad: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.62));*/
  --overlay-grad: linear-gradient( to bottom, rgba(0,0,0,.70) 0%, rgba(0,0,0,.45) 25%, rgba(0,0,0,.20) 50%, rgba(0,0,0,0) 75% );
  --transition: 280ms cubic-bezier(.2,.9,.3,1);
}

.qfl-grid{
  display:grid;
  gap:18px;
  grid-template-columns: 1fr;
  /*margin: 24px 0;*/
  width: 98%;
  margin: 0 auto;
}

@media (min-width: 640px){
  .qfl-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .qfl-grid{ grid-template-columns: repeat(3, 1fr); }
}

.qfl-card{
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:var(--card-radius);
  min-height: 260px;
  text-decoration:none;
  color:inherit;

  /*background-image: var(--bg);*/
  background-size: cover;
  background-position: center;

  box-shadow: 0 6px 18px rgba(11,20,30,0.08);
  transform:translateZ(0);
  will-change: transform;
  transition: transform var(--transition), box-shadow var(--transition);
}

.qfl-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:20px;
  background: var(--overlay-grad);
  color:#fff;
  gap:8px;
  pointer-events:none;
}

.qfl-title{
  margin:0;
  color:#fff;
  font-size:1.25rem;
  font-weight:700;
  line-height:1.05;
}
.qfl-sub{
  margin:0;
  font-size:0.95rem;
  opacity:0.95;
}
.qfl-cta{
  margin-top:6px;
  font-size:0.9rem;
  font-weight:600;
  /*transform:translateY(6px);*/
  transition: transform var(--transition), opacity var(--transition);
}

.qfl-card:hover,
.qfl-card:focus{
  outline:none;
  /*transform: translateY(-6px);*/
  box-shadow: 0 18px 40px rgba(11,20,30,0.12);  
}

.qfl-card:focus{
  box-shadow: 0 0 0 4px rgba(10,120,200,0.12), 0 18px 40px rgba(11,20,30,0.12);
}

@media (max-width:420px){
  .qfl-title{ font-size:1.05rem; }
  .qfl-sub{ font-size:0.85rem; }
  .qfl-card{ min-height:180px; }
}


/******************************/
/* Paginazione */
/******************************/
.nav-links .page-numbers {
	background:transparent; /*importante per neutralizzare lo sfondo dello stile padre*/
}

.qfl-pagination {
    margin: 40px 0;
}

/* UL reset + layout orizzontale */
.qfl-pagination .page-numbers {	
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    margin: 0;
}

/* LI reset */
.qfl-pagination .page-numbers li {
    margin: 0;
}

/* Link e numeri */
.qfl-pagination .page-numbers a,
.qfl-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
	font-size:14px;
	font-weight:700;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Numeri normali */
.qfl-pagination .page-numbers a {
    color: #2840D5; /* blu */
    background: transparent;
}

/* Hover */
.qfl-pagination .page-numbers a:hover {
    background: #E7EEF3;
}

/* Pagina corrente */
.qfl-pagination .page-numbers .current {
    background: #E7EEF3; /* grigio chiaro */
    color: #2840D5;
    font-weight: 700;
}

/* Frecce prev/next */
.qfl-pagination .page-numbers .prev,
.qfl-pagination .page-numbers .next {
    font-size: 18px;
}
/********************************************/

/********************************************/
/* Wrapper lista */
.eventi-archive .scheda-wrapper{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Link cliccabile */
.scheda-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Card */
.scheda{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 15px;
  background: #E7EEF3;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  min-height: 240px;
  height: 300px;
}

/* Se non c'è immagine */
.scheda:not(:has(.scheda-img)) .scheda-content{
  grid-column: 1 / -1;
  padding: 16px 18px;
}

/* Hover */
.scheda-link:hover .scheda{
  box-shadow: 0 12px 35px rgba(16,24,40,.10);
  border-color: #d9e2ef;
}

/* Immagine */
.scheda-img{
  height: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px 0 0 18px;
}

/* Contenuto */
.scheda-content{
  padding: 16px 18px 16px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

/* Data */
.scheda-data,
.eventi-date{
  font-size: 14px;
  color: #102C53;
  font-weight: 700;
  margin-bottom: 8px;
  flex: 0 0 auto;
}

/* Titolo: massimo 2 righe */
.scheda-title{
  font-size: 22px;
  line-height: 1.2;
  color: #111827;
  margin: 0 0 5px 0;
  /*display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;*/
  overflow: hidden;
  flex: 0 0 auto;
}

/* Excerpt: massimo 4 righe */
.scheda-excerpt{
  color: #4b5563;
  line-height: 1.5;
  font-size: 15px;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
}

.scheda-excerpt p{
  margin: 0;
  padding: 0;
}

/* CTA sempre in basso */
.tile__cta{
  margin-top: auto;
  align-self: flex-start;
  flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 900px){
  .scheda{
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .scheda-img{
    height: 220px;
    min-height: 220px;
    border-radius: 18px 18px 0 0;
  }

  .scheda-content{
    padding: 16px 18px 18px 18px;
  }
}
/**************************************/

/* 
.eventi-archive .scheda-wrapper{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.scheda-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.scheda{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 15px;
  background: #E7EEF3;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 0;
  margin-bottom: 20px;  
}

.scheda:not(:has(.scheda-img)) .scheda-content{
	padding: 10px 15px;
	grid-column: 1 / -1;
}

.scheda-content{
   padding: 10px 15px;;
}

.scheda-link:hover .scheda{ 
  box-shadow: 0 12px 35px rgba(16,24,40,.10);
  border-color: #d9e2ef;
}

.scheda-img{
  border-radius: 14px 0 0 14px;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scheda-data{
  font-size: 14px;
  color: #102C53;
  font-weight:700;
  margin-bottom: 6px;
}

.scheda-title{
  font-size: 22px; 
  line-height: 1.2;
  color: #111827;
}

.scheda-excerpt{
  color: #4b5563;
  line-height: 1.6;
  font-size: 15px;
}

.scheda-excerpt p{
	padding-bottom:20px;
}

@media (max-width: 900px){
  .scheda{
    grid-template-columns: 1fr;
  }

  .scheda-img{
    min-height: 220px;
	border-radius: 16px 16px 0 0;
  }

  .tile__cta{
    align-self: flex-start;
  }
}
/**************************************/

.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

[class*="col-"] {
  float: left;
  padding: 15px;
  /*border: 1px solid red;*/
}

.row::after {
  content: "";
  clear: both;
  display: table;
}

@media only screen and (max-width: 768px) {
	/* For mobile phones: */
	[class*="col-"] {
		float:none;
		width: 100%;
		padding:10px 0;
	}  
}

/***********************************/
/*Menu Bruti Liberati*/
/**********************************/
/* Contenitore nav */
.bruti-liberati-menu {	
    display: flex;
	list-style: none;
    justify-content: center;
    align-items: center;
    gap: 50px;    
    margin: 0 0 30px 0;
    padding: 25px 0;
	border-bottom: 1px solid #e5e5e5;    
}

/* Elementi menu */
.bruti-liberati-menu li {
    position: relative;
}

/* Link */
.bruti-liberati-menu li a,
.bruti-liberati-menu li span {
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    /*text-transform: uppercase;*/
    color: #111;
    font-weight: 400;
    padding: 5px 0;
    display: inline-block;
}

/* Hover elegante con linea animata */
.bruti-liberati-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: #111;
    /*transition: width 0.3s ease;*/
}

.bruti-liberati-menu li a:hover::after {
    width: 100%;
}

/* Voce attiva */
.bruti-liberati-menu .current-menu-item span,
.bruti-liberati-menu .current-menu-item a {
    font-weight: 600;
}

.bruti-liberati-menu .current-menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: #111;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {

  .bruti-liberati-menu {
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    border-bottom: 1px solid #e9e9e9;
  }

  .bruti-liberati-menu li {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #f1f1f1;
  }

  .bruti-liberati-menu li:first-child {
    border-top: 0;
  }

  .bruti-liberati-menu li a,
  .bruti-liberati-menu li span {
    font-size: 14px;
    letter-spacing: 0.9px;
    padding: 8px 0;
  }

  /* Linea hover/active: più “soft” e centrata */
  .bruti-liberati-menu li a::after,
  .bruti-liberati-menu .current-menu-item::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
  }

  .bruti-liberati-menu li a:hover::after {
    width: 60%;
  }

  .bruti-liberati-menu .current-menu-item::after {
    width: 60%;
  }
}

/*
.navigation.pagination .page-numbers{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.navigation.pagination .page-numbers li{ margin:0; }
.navigation.pagination .page-numbers a,
.navigation.pagination .page-numbers span{
  display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:50%;
  text-decoration:none;font-weight:500;font-size:16px;
  transition:all .2s ease;
}
.navigation.pagination .page-numbers a{ color:#2f49d1; }
.navigation.pagination .page-numbers a:hover{ background:#f1f3f8; }
.navigation.pagination .page-numbers .current{
  background:#e9edf2;color:#1f2a37;font-weight:600;
}
*/

aside.meta span.date, aside.meta span.category a{
	font-size: 18px;
  font-weight: 700;
  color: #102C53;
}

.fa, .fa-brands, .fa-classic, .fa-regular, .fa-sharp, .fa-solid, .fab, .far, .fas {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display,inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: unset;
  text-rendering: auto;
}

/*
.scheda-img--fallback {
	position: relative;
	min-height: 260px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 24px;
	background: linear-gradient(135deg, #153a5b 0%, #2e6f95 100%);
}
*/

.scheda-img--fallback {
	position: relative;
	
	min-height: 0;
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	padding: 24px;
	background: linear-gradient(135deg, #153a5b 0%, #2e6f95 100%);
}

.scheda-home-img--fallback{
	height: 221px;	
}

.scheda-img--fallback::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14) 0, rgba(255,255,255,0) 38%),
		radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0) 32%),
		linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
	background-size: auto, auto, 28px 28px, 28px 28px;
	opacity: 0.55;
	pointer-events: none;
}

.scheda-img--fallback::after {
	content: "";
	position: absolute;
	width: 180px;
	height: 180px;
	right: -40px;
	top: -30px;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 50%;
	pointer-events: none;
}

.scheda-fallback-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #fff;
}

.scheda-fallback-kicker {
	display: inline-block;
	width: fit-content;
	padding: 2px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: rgba(255,255,255,0.14);
	backdrop-filter: blur(2px);
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 6px;
}

.scheda-fallback-date {
	font-size: 34px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.scheda-img--eventi {
	background: linear-gradient(135deg, #123a63 0%, #2c7fb8 100%);
}

.scheda-img--eventi::before {
	background:
		radial-gradient(circle at 22% 18%, rgba(255,255,255,0.15) 0, rgba(255,255,255,0) 38%),
		radial-gradient(circle at 82% 28%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0) 30%),
		linear-gradient(45deg, rgba(255,255,255,0.07) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.07) 75%, transparent 75%, transparent);
	background-size: auto, auto, 24px 24px;
}

.scheda-img--conferences {
	background: linear-gradient(135deg, #1f3a5a 0%, #4a78a8 100%);
}

.scheda-img--conferences::before {
	background:
		radial-gradient(circle at 22% 18%, rgba(255,255,255,0.15) 0, rgba(255,255,255,0) 38%),
		radial-gradient(circle at 82% 28%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0) 30%),
		linear-gradient(45deg, rgba(255,255,255,0.07) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.07) 75%, transparent 75%, transparent);
	background-size: auto, auto, 24px 24px;
}

.scheda-img--papers {
	/*background: linear-gradient(135deg, #6f6c64 0%, #9a978d 100%);*/
	background: linear-gradient(135deg, #774146 0%, #df7277 100%);
}

.scheda-img--papers::before {
	background:
		radial-gradient(circle at 22% 18%, rgba(255,255,255,0.15) 0, rgba(255,255,255,0) 38%),
		radial-gradient(circle at 82% 28%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0) 30%),
		linear-gradient(45deg, rgba(255,255,255,0.07) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.07) 75%, transparent 75%, transparent);
	background-size: auto, auto, 24px 24px;
}

.scheda-img--news {
	/*background: linear-gradient(135deg, #1f4d45 0%, #3f7f75 100%);*/
	background: linear-gradient(135deg, #1e434d 0%, #4a7c88 100%);
}

.scheda-img--news::before {
	background:
		radial-gradient(circle at 22% 18%, rgba(255,255,255,0.15) 0, rgba(255,255,255,0) 38%),
		radial-gradient(circle at 82% 28%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0) 30%),
		linear-gradient(45deg, rgba(255,255,255,0.07) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.07) 75%, transparent 75%, transparent);
	background-size: auto, auto, 24px 24px;
}


.resources-preview {
	margin: 18px 0 16px;
}

.resources-preview-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.resources-preview-list li {
	padding: 8px 0;
	border-top: 1px solid rgba(16, 44, 83, 0.10);
}

.resources-preview-list li:first-child {
	border-top: 0;
	padding-top: 0;
}

.resources-preview-date {
	display: block;
	font-size: 12px;
	line-height: 1.3;
	opacity: 0.75;
	margin-bottom: 2px;
}

.resources-preview-title {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
}