@charset "UTF-8";
/*@import url(norm-layout.css);*/
@import url(menu.css);
@import url(norm-variabili.css);

/* --- multilingual BEGIN ---*/
body[lang=it] *[lang]:not([lang="it"]){display:none;}
body[lang=en] *[lang]:not([lang="en"]){display:none;}
body[lang=es] *[lang]:not([lang="es"]){display:none;}
/* --- multilingual END ---*/

/* layout home BEGIN */

/* layout home END */

/* tags BEGIN --*/
/* * {max-width: 98vw;} */
body { font-family: serif; font-size: 1.3em;}
p {text-align: justify; }
h1 {
  /* Set max and min font sizes */
  --max-font: 50;
  --min-font: 25;
  font-size: var(--font-responsive);
  text-align: left;
}
h1, h2 {font-variant: small-caps;}

a span, .item a {font-size: 0.9em;}

@media (min-width: 768px) {
  h1 {    font-size: calc(var(--max-font) * 1px);  }
}

@media (max-width: 768px) {
  h1  {    font-size: calc(var(--min-font) * 1px);  }
}

a {color: #f2da90}

figure {display: flex;
  align-items: center;
  justify-content: center;
}

/* tags END --*/

/* classi BEGIN ---*/
.center {text-align: center;}
.big {font-size: 150%;}
.red {color: red;}
.autore {text-align: right; font-style: italic; font-size: 110%;}
.flexcenter {/*per centrare*/
  display: flex;
  justify-content: center; 
}
.totalcenter { /*per centrare et verticaliter*/
  display: flex;
  justify-self: center;
  align-self: center;
}
.fl {float: left;}
.fr {float: right;}

.disciplina, .luogo, .affiliazione {font-size: .9em;}
.disciplina {font-style: italic;}
.luogo {font-variant: small-caps !important; color: orange !important;}

.desc /*descrizione nelle aree di ricerca*/ {
  border: solid orange thin;
  border-radius: 8px;
  box-shadow: white 0 0 14px;
  padding: 1%;
}

.desc::first-letter {
  font-weight: bold;
  font-size: 140%;
}
/* classi END ---*/

/* --- tooltip BEGIN --*/
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip {
  position: relative;
  display: inline;
  border-bottom: 1px dotted black;
  text-indent: 0px !important;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 160%;
  text-align: center;
/*   font-size: 90%; */
  background-color: white;
  color: black;
  border-radius: var(--rounded);
  padding: 5px;
  position: absolute;
  z-index: 5;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: var(--shadow);
}

.tooltiptext {
  min-width: 20vw; }
  
.tooltiptext img {max-width: 14vw;}
.tooltiptext a {color: blue;  }

/* --- tooltip END --*/


/* per pagine specifiche BEGIN -- */

#regolamento {text-align: center; 
  font-size: 180%; background: radial-gradient(orange, blue 80%); border-radius: 5px 20px 5px; width: 30%; min-width: 280px; margin: auto;}
#regolamento a {color: white;}

/* ---- home e membri BEGIN ---*/

.riga-flow {display: flex; 
  flex-wrap: wrap;
  justify-content: center;}
  
.item:not(.archivio) {
  flex: 20%;
  display: flex; 
  align-items: center; flex-direction: column;
}  

.item {
  margin: 1%; 
  padding: 10px;
  border-radius: 8px; box-shadow: var(--shadow);
}

.archivio {display: block; 
  align-items: left;}

.item, #archivio ::not(.news-card) div {
  box-shadow: var(--shadow);
  border-radius: var(--rounded); 
  padding-bottom: 2.5%; padding-top: 1%; 
}

:not(#sezioni).item {justify-content:flex-start;}

#sezioni .item img {justify-content:center;}

.item p {margin-top:auto}
.item p {bottom: 1px; text-align: center;
  /*width: 200px;*/ border-radius: 0px 0px 8px 8px; box-shadow: gray 3px 4px 3px;}

#content {padding: 1% 4% 1% 4%;}
#imglogo {/*max-width: calc(75% - 30vw );*/ /*calc(90% - 20vw*/
  margin: 0 0 0 4.25%;
  height: auto;
  max-width: 100%;
  z-index: 8;
  position: absolute;
  top: 30px;
  width: 450px;
} 


@media screen and (min-width: 0px) and (max-width: 767px) { /* wordpress */
#imglogo {
  padding: 50px 0 0 3.25%;
  width: 85%;
}
}
 
@media screen and (max-width: 768px) {
  .item {
    flex: 45%;
  }
}

@media screen and (max-width: 600px) {
  .riga-flow {
    flex-direction: column;
  }
}

@media screen and (min-width: 768px) {
  p.logo {text-align: left; margin-left: 3%;}
  #container, #intestazione, #fondopagina {
  }
}
@media screen and (max-width: 768px) {
}

 /* ---- home e membri END ---*/
 
/* -- archivio eventi BEGIN */

.evento img, .subitem p img {max-width: 10vw /*300px*/; max-height: 7vw !important; min-height: 6vw; margin-top: -6% !important;}
.subitem {text-align: center; width: 98% !important;}
.subitem i {font-size: 95%;}
.more {text-align: center;}

/* -- archivio eventi END */

/* pagine eventi BEGIN */

.item img {max-width: 300px ; max-height: 20vw !important; min-height: 6vw;}

/* pagine eventi END */

/* per pagine specifiche END -- */

:target { /*evidenzia l'elemento target di un link */
  border: 2px solid #D4D4D4;
  background-color: white;
  color: black;
  font-weight: bold;
}



/* --- BEGIN style per attivi ---*/

#attivi {display: flex;}

.item-attivi {box-shadow: var(--shadow);
  padding: 2%; 
  border-radius: var(--rounded);}

/* --- END style per attivi ---*/


/* --- BEGIN style per archivio ---*/
#archivio {
  max-width: 100%; height:350px; 
  overflow-y: scroll; overflow-x: hidden; 
  border: dashed thin #C2BFA5; z-index: 0; 
  border-radius: 6px; 
  margin-top: 0px;
}

#archivio h3 {text-align: center;}

#archivio div.new {display: block; 
  min-height: 62px;}
#archivio div p:last-child {font-size: 110%;}

#archivio div {
  margin: 10px auto 2% auto;
  padding:1%;
  width: 90%;
  border-radius: 10px;
/*  position: relative;
  z-index: 3;*/
 }

 #archivio div img {
  margin-left: 2%; margin-right: 2%; margin-top: -4%; 
  border-radius: 8px;
  float: left;
  width: 200px;
  max-height: 150px; object-fit: scale-down;
}
 
/* --- END style per archivio --*/

/* modal images BEGIN */

.modal-hover-opacity img, img[onclick] {
 opacity:1;
 filter:alpha(opacity=100);
 -webkit-backface-visibility:hidden;
 cursor:pointer;
}
 
.modal-hover-opacity img:hover, img[onclick]:hover {
 opacity:0.60;
 filter:alpha(opacity=60);
 -webkit-backface-visibility:hidden;
}

.modal {
  z-index: 5;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  /* display: flex; when shown*/
  display: none; /* hide initially*/
  justify-content: center;
  align-items: center;
}
.modal-content {
  margin: auto;
}

#modalimg {
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  max-height: calc(100vh - 2rem);
  max-width: calc(100% - 2rem);
  object-fit: contain;
  border: 5px solid #000;
}

.modal-content {
  animation: fade 2s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#modalimg {
  animation: zoom 1s ease;
}
@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* modal images END */

#archivio .news-card {
  width: 90%;
  margin: 20px auto;
  padding: 1%;
}

.news-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 20px;
    align-items: start;
    	box-shadow: var(--shadow);
	border-radius: var(--rounded);
	padding-bottom: 2.5%;
	padding-top: 1%;
}

.news-card > a:first-child {
    grid-row: 1 / span 3;
}

.news-card > a:first-child img {
    width: 100%;
    height: auto;
    display: block;
}

.news-card h3,
.news-card p,
.news-card .read-more {
    margin-top: 0;
}


.event-date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.event-desc p {
    margin: 0 0 10px 0;
}

