:root {
    /*--primaryColor: #097987;*/
	--primaryColor: #1c9d6f;
    /*--primarydarkColor: #00505d;*/
	--primarydarkColor: #027854;
    --lightGrey: #F8F8F8;
    --lightmediumGrey: #EEE;
    --regularGrey: #999;
    --textColor: #4b4f55;


  --primaryColor100: #e6f6f1; /* Molto chiaro */
  --primaryColor200: #c2eadd;
  --primaryColor300: #90ddc1;
  --primaryColor400: #1c9d6f; /* Colore principale */
  --primaryColor500: #178a62;
  --primaryColor600: #137652;
  --primaryColor700: #0f6143;
  --primaryColor800: #0a4d34;
  --primaryColor900: #073f2b; /* Molto scuro */



  --colorGrey100: #f9fafb;
  --colorGrey200: #f1f3f5;
  --colorGrey300: #e2e6ea;
  --colorGrey400: #cbd0d6;
  --colorGrey500: #9aa0a6;
  --colorGrey600: #6b7076;
  --colorGrey700: #4b4f55;
  --colorGrey800: #2e3135;
  --colorGrey900: #1c1e20;
}


/* === RESET === */

*::before,
*::after {
    box-sizing:border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin:0;
    padding:0;
}


* {
    box-sizing:border-box;
    margin:0;
    padding:0;
}


img,
picture,
video,
canvas {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}



body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-size: 1em;
    color: var(--textColor);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body.listpage,
body.sectionpage {
    background-color: var(--colorGrey200);
}


.sofia,
.din,
.din-condensed,
.din-semicondensed {
	font-family: "Sofia Sans Extra Condensed", sans-serif;
}



.container {
	/*width: calc(100% - 132px);*/
	max-width: 1400px;
	padding: 0 50px;
	margin: auto;
	/*margin-left: 132px;*/
}

img {
	width:100%;
}

b {
	font-weight:800;
}

strong {
	font-weight:600;
}

small {
	font-size: 80%;
}

ul, ol {
	padding-left: 2em;
}

a {
	text-decoration: none;
	color: var(--primarydarkColor)
}

.darkcolor a {
	color: var(--primaryColor200) !important;
	font-weight:600;
	text-decoration: underline;
}

p a {
	font-weight:600;
}

a:hover {
	text-decoration: underline;
	color: var(--primaryColor);
}

.darkcolor a:hover {
	color: #FFF !important;
}

a.nodecoration,
a.nodecoration:hover {
	text-decoration: none !important;
}
				

a.borderhover {
    text-decoration: none; 
    background-repeat: repeat-x;    
    background-image: linear-gradient(
        to right, 
        var(--primaryColor400) 0%, 
        var(--primaryColor400) 100%
    ); 
    background-size: 100% 2px; /* 100% larghezza, 2px altezza */
    background-position: 0 90%;  
    transition: background-size 0.3s ease;
}

/* Nascondi la linea di default */
a.borderhover {
    background-size: 100% 0px; 
}

a.borderhover:hover {
    background-size: 100% 2px; 
}

*:focus {
	outline: 0;
	/*box-shadow: 0 0 0 0 rgb(13 110 253 / 25%);*/
	box-shadow: none !important;
}

.noempty:empty,
[data-noempty=""],
[data-noempty="0"] {
	display:none;
}

.nowrap {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.only-3row {
	overflow: hidden;
	display: -webkit-box; /* Necessario per Chrome e Safari */
	-webkit-line-clamp: 3; /* Numero di righe da visualizzare */
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}

.fadeable.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.fadeable {
	transition: opacity 180ms ease;
	opacity: 1;
}

.clickable {
	cursor:pointer;
}

.arrow_down::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-width: 10px;
    border-style: solid;
	border-color:  var(--primaryColor700) transparent transparent transparent; 
	translate: 10px 10px;
	cursor:pointer;
    z-index: 1100;
}


.center {
	text-align:center;
}

.right {
	text-align:right;
}

.mt-5 {margin-top: 3rem !important}
.mt-4 {margin-top: 2rem !important}
.mt-3 {margin-top: 1rem !important}
.mb-5 {margin-bottom: 3rem !important}
.mb-4 {margin-bottom: 2rem !important}
.mb-3 {margin-bottom: 1rem !important}
.d-flex {display:flex}
.fw-300 {font-weight:300}
.fw-400 {font-weight:400}
.fw-500 {font-weight:500}
.fw-600 {font-weight:600}
.fw-700 {font-weight:700}
.fw-800 {font-weight:800}
.fw-900 {font-weight:900}


.A4 {
	width:100%;
	aspect-ratio: 1 / 1.4
}



/* BUTTON */

button {
	background-color: var(--primaryColor);
	color: #FFF;
	padding: .5em 1em;
	border:none;
	border-radius: 5px;
	cursor:pointer;
}


.btn {
	
	padding: .5em 1em;
	border:none;
	border-radius: 5px;
	cursor:pointer;					
}

.btn-primary {
	color: #FFF;
	background-color: var(--primaryColor400);
}

button:hover,
.btn-primary:hover {
	background-color: var(--primaryColor600);
}
				

				
/****
.openscheda {
	text-decoration: underline;
	text-decoration-color: var(--colorGrey400);
	text-decoration-style: dashed; 
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	cursor:pointer;
}


.openscheda:hover {
	text-decoration-color: var(--primaryColor400);
	text-decoration-style: dashed;
	color: var(--primaryColor600);
}
***/





/******** VIDEO *******/

.fit-video {
	width:100%;
}

.fit-video {
	height: 0;
	overflow: hidden !important;
	/*padding-bottom: 56.25%;*/ /* per YouTube*/
	/*padding-top: 30px;*/
	padding-bottom: 65%; /* per Radio Radicale*/
	position: relative;
}
.fit-video iframe,
.fit-video object,
.fit-video embed {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	overflow: hidden !important;
}
.fit-video::-webkit-scrollbar { 
	display: none; 
}
.fit-video iframe::-webkit-scrollbar { 
	display: none; 
}





/***** FORM *****/
			
.form-control,
.form-select {
	border-color: var(--colorGrey600)
}

.form-control:focus,
.form-select:focus {
	color: var(--primarydarkColor);
	background-color: #fff;
	border-color: var(--colorGrey600);
	outline: 0;
	/*box-shadow: 0 0 0 0 rgb(13 110 253 / 25%);*/
	box-shadow: none;
}




/* TITOLI */
				
h1 {
	font-family: "Sofia Sans Extra Condensed", sans-serif;
	font-size: 3em;
	color: var(--primaryColor700);
	line-height: .9em;
	letter-spacing: -.02em;
	font-weight:800;
	margin: 0 0 0 0;
}

.listpage h1 {
	font-size: 5em;
	letter-spacing: -.03em;
}

h2 {
	font-size: 1.5em;
	font-weight:600;
	line-height: 120%;
	letter-spacing: -.02em;
	margin: 1em 0 .5em 0;
}

h3 {
	font-size: 1.2em;
	font-weight:600;
	line-height: 120%;
	letter-spacing: -.01em;
}


h4 {
	font-size: 1.1em;
	font-weight:600;
	line-height: 120%;
	letter-spacing: -.01em;
}				





/* HEADER */


header {
    position: fixed;
    width:100%;
    background-color: var(--primaryColor600);
	color:#FFF;
    padding: 0 50px;
	box-shadow: 0px 0px 20px rgba(0, 0, 0, .3);
    display: flex;
    justify-content: space-between;
    align-content: end;
    flex-wrap:wrap;
    height:100px;
	/*border-bottom: 1px solid #DDD;*/
    z-index: 1000;
}

.logo {
	position:relative;
}

.logo img {
	position:relative;
	height:70px;
	z-index:100
}

.fondologo {
	position:absolute;
	top:-30px;
	left:0;
	background-color: var(--primaryColor400);
	width:85px;
	height:120px;
}

.social {
    display:flex;
    color:#FFF;
}

.social img {
    margin: 20px 10px 5px 10px;
    width: 50px;
}

.social a div {
    display:none;
    font-size: 10px;
    font-weight:400;
    text-align:center;
    color:#FFF;
    
}

.social a:hover {
    text-decoration:none !important;
}

.social a:hover div {
    display: block;
    text-decoration: none;
}

#gotop {
   display:none;
   background-color: rgba(0,0,0,.3);
   color:#FFF;
   position: fixed;
   right: 50px;
   bottom: 100px;
   width: 50px;
   height: 50px;
   border-radius: 50%;
   cursor:pointer;
   z-index:1000;
}


#gotop::before {
  content: "";
  width: 20px;
  height: 20px;
  border-left: 5px solid white;
  border-bottom: 5px solid white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%) rotate(135deg);
  transition: background 1s ease;
}

#gotop:hover {
   background-color: rgba(0, 0, 0, .5);
}

nav {
    margin-left: 95px;
    height: 36px;
    align-self: end;
}

nav .mobilemenu {
    display:none;
}

nav ul {
    list-style:none;
    padding:0;
    margin: 0;
    /*display:flex;*/
}

nav li {
    list-style:none;
    display:inline-block;
    position: relative;
    /*border-left:1px solid #FFF;*/
}

nav li a {
    display: block;
    width:100%;
    padding: 0 10px;
    line-height: 40px;
    text-align:center;
    /*color:#FFF;*/
	color: #FFF;
    font-weight: 600;
    text-decoration: none;
    /*background-color: var(--primarydarkColor);*/
}

nav li:last-child:not(ul.subnav li) {
    /*border-right:1px solid #FFF;*/
}

nav li a:hover {
    text-decoration: none;
    color:#FFF;
    background-color: var(--primaryColor400);
}

nav li a.active {
	background-color: var(--primaryColor400);
	border-bottom: 20px solid var(--primaryColor400);
}


nav ul.subnav li {
    border-left-width:0;
}

nav ul.subnav {
    display:none;
    position: absolute;
    top: 40px;
    left:0;
    width: 200px;
    z-index:100;
}

nav ul.subnav li a {
    width:200px;
    text-align:left;
    border-top:1px solid var(--primaryColor);
}

nav li:hover ul.subnav,
nav li.open ul.subnav,
nav li:hover .fa.fa-caret-up,
nav li.open .fa.fa-caret-up {
    display:inline-block;
    opacity:1;
    color:#FFF;
}

nav li:hover .fa.fa-caret-down,
nav li.open .fa.fa-caret-down {
    display:none;
}

#home .nav-home {
	display:none;
}

.open-nav-mobile {
	display:none;
	color: #FFF;
	cursor:pointer;
	position: absolute;
	bottom: 100%;
	right: 0;
	left:0;
	height: 50px;;
	line-height: 50px;
	text-align: center;
}

.open-nav-mobile img {
	width:30px;
	margin:10px auto 0 auto
}

nav:hover .open-nav-mobile {
	background-color: var(--primaryColor400);
}

li .fa.fa-caret-up {
    display:none;
}



/* MAIN */

main {
	margin: 100px 0;
	min-height: 40vw;
}


/* FOOTER */

footer {
	min-height: 150px;
	padding: 50px 0;
	background-color: var(--primaryColor700);
	color: #FFF;
	font-size: .8em;
}

.formpage footer {
	margin-left:320px
}





/****** PAGINA (in generale) ****/

.header-page {
	padding: 50px 0 25px 0;
	border-bottom: 1px solid var(--colorGrey300);
	margin-bottom: 50px;
}

.header-banner {
	position:relative;
	z-index:100;
}

body.listpage .header-page.header-background {
	background-color: var(--primaryColor800);
}

body.sectionpage .header-page {
	display:flex;
	position: relative;
	min-height:200px;
	background-color: var(--primaryColor800);
	background-size:cover;
	margin-bottom:75px;
}

body.sectionpage .header-page::after {
	content: ' ';
	display:block;
	position: absolute;
	top:0;
	left:0;
	bottom:0;
	right:0;
	background: linear-gradient(90deg, #333, transparent);
	opacity: .5
}

body.sectionpage .container {
	/*margin-left: 94px;*/
}

body.sectionpage h1 {
	font-size: 5em;
	color:#FFF;
}

body.sectionpage .sottotitolo {
	font-size: 2em;
	line-height: 120%;
}

.header-page .sottotitolo {
	color:#FFF;	
}

a.occhiello {
	display: inline-block;
    font-family: "Sofia Sans Extra Condensed", sans-serif;
    background-color: #FFF;
    font-size: 1.1em;
    font-weight: 700;
    padding: 0.2em .7em;
    margin-bottom: 3em;
    text-transform: uppercase;
	transition: background 100ms ease-out, color 400ms ease-out;
}
a.occhiello:empty {
	background-color:transparent;
	pointer-events: none;
    cursor: default;
	margin-bottom: 4.2em;
}
a.occhiello:hover {
	background-color: var(--primaryColor400);
	color:#FFF;
	text-decoration:none;
}

.sottosezioni {
	display:grid;
	/*grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));*/
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	gap:50px
}

.sub-banner img {
	aspect-ratio: 16 / 7;
	object-fit: cover;
	object-position: center center;
}

.sub-banner-titolo {
	font-family: "Sofia Sans Extra Condensed", sans-serif;
	background-color:#FFF;
	padding: 15px;
	font-size: 1.5em;
	line-height:.9em;
	font-weight:700;
	transition: background 100ms ease-out, color 400ms ease-out;
}
a:hover .sub-banner-titolo {
	background-color: var(--primaryColor400);
	color:#FFF;
	text-decoration:none;
}

				
.rubrica {
	
}

.qualifica {
	font-style: italic;
}

.temi a {
	display: inline-block;
	font-size: .8em;
	font-weight: bold;
	background-color: var(--colorGrey500);
	color:#FFF;
	padding: 0 .5em;
	line-height: 2em;
	margin: .1em .7em 0 0;
	text-decoration: none;
	height: 2em;
	overflow: hidden;
	white-space: nowrap;
}

.temi a span {
	display: inline-block;
	font-size: .8em;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .3);
	margin-left: 1em;
	width: 1.6em;
	height: 1.6em;
	text-align: center;
	line-height: 1.8em;
	font-weight: 400;
}


.temi a:hover {
	background-color: var(--primaryColor);
}

.iconapagina img {
	width:100%;
	border: 1px solid var(--colorGrey500);
}


.page .testo p,
.page .testo ul,
.page .testo ol {
	width: 100%;
	max-width:700px;
	line-height:170%;
	text-align: justify;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
	margin-left: auto;
	margin-right: auto;
}

.page .testo h2,
.page .testo h3,
.page .testo h4 {
	width: 100%;
	max-width:700px;
	margin: 1.5em auto .5em auto;
	letter-spacing: -.02em;
}




/******* TABS ******/

.button-tab {
	display:flex;
	margin:0 0 -1px 0;
	padding:0;
}

.button-tab li {
	list-style-type: none;
	position: relative;
	padding: .5em 1em;
	background-color: var(--colorGrey300);
	border: 1px solid var(--colorGrey400);
	margin-right: -1px;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 1em;
	cursor: pointer;
	user-select: none;
	transition: all .3s ease;
}

.button-tab li::after {
	background-color: var(--colorGrey600);
}

.button-tab li.active {
	background-color: #FFF;
	border-bottom-color: #FFF;
	color: var(--primaryColor600);
}

.button-tab li:not(.active):hover {
	background-color: var(--colorGrey400);
}

.tab {
	opacity: 0;
	display: none;
	transition: opacity .3s ease;
}				

.tab.active {
	opacity: 1;
	display: block;
}

.tab-container {
	padding: 50px;
	background-color:#FFF;
	border:1px solid var(--colorGrey400);
}





/*** GO-NEXT/PREVIEW ***/


.go-arrow {
    position: fixed;
    top: 70%;
    width:50px;
    transform: translateY(-50%); 
    z-index: 1000; /* Assicura che sia sopra gli altri contenuti */
    cursor: pointer;
}

.go-previous {
    left: -15px;
}

.go-next {
    right: -15px;
}

.go-arrow::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-width: 30px; 
    border-style: solid;
    z-index: 1100;
}

.go-previous::after {    
    border-color: transparent var(--primaryColor700) transparent transparent; 
}

.go-next::after {
    border-color: transparent transparent transparent var(--primaryColor700);
}

.go-page {
    /* Impostazioni di layout e transizione */
    position:absolute;
    top: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
	min-height: 60px;
    background: var(--primaryColor400); 
    color:  #FFF; 
    white-space: nowrap; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 900;
}

.go-page a {
    color:  #FFF;
	text-decoration:none !important;
}

.go-previous .go-page {
    right:50px;
}

.go-previous:hover .go-page {
    right:-10px;
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
}

.go-next .go-page {
    left:0;
    
}
.go-next:hover .go-page {
    left:0;
    transform: translateX(-100%);   
    opacity: 1;
    visibility: visible;
}

.go-titolo {
	font-weight: 600;
}

.go-autore {
	font-size: .9em;
	font-weight: 300;
}





/******* ELENCHI ******/

body.listpage h1 {
	text-align:center;
}

body.listpage .header-page {
	background-color: var(--colorGrey300);
	border-bottom: 1px solid var(--colorGrey400);
}

#list #moreinsert {
	width: 100%;
	padding: 50px 0;
	text-align:center
}

#list .more {

}


#list .documento {
	margin-bottom: .5em;
	line-height: 120%;
}

#list .documento span {
	display:block;
	font-weight: 600;
}


#list .documento a {
	color: var(--colorGrey600);   
}

#list .rubrica {
	font-weight: 600;
	margin-bottom: .5em;
}

#list .titolo {
	font-size: 1.5em;
	line-height: 120%;
	font-weight: 600;
}

#list .autore {
	margin-top: .5em;
}

#list .autore a {
	color:inherit;
	font-weight: 600;
}

#list [valore=""] {
	display:none;
}

#list .sommario {
	margin-top: 1em;
	font-weight: 300;
}

#list .temi {
	margin-top: 1em;
}

#list .list-tools {
	width:100%;
	display:flex;
	justify-content: space-between;
	gap:50px;
	margin-bottom: 20px;
}

.list-tools .change-view {
	text-align:right;
}

.list-tools .change-view button {
	display:flex;
	gap:20px;
	justify-content: space-between;
	background-color: var(--primaryColor400);
	color: #FFF;
	font-size: .8em;
}

button img {
	height: 1.2em;
	width:auto;
}

.results {
	width: 100%;
	padding-bottom: 25px;
	margin-bottom: 15px;
	/*border-bottom: 1px solid var(--colorGrey500);*/
}

.results.total {
	text-align:right;
}

.results.no-found {
	text-align:center;
}
				


/******************** .#LIST.GRID **********************/


#list .item {
	/*transition: ALL 2s;*/
}

#list.grid .gridview{
	display:none;
}

#list.grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
	/*justify-content: center;*/
}

#list.grid .list-head{
	display:none;
}

#list.grid .item-articolo {
	width: 33%;
	margin: 0;
	padding: 10px;
}

#list.grid .articolo {
	display: flex;
	font-size:.8em;
	padding: 15px;
	background-color:#FFF;
	/*border-top: 1px solid var(--colorGrey500);*/
}

#list.grid .iconapagina {
	width: 80px;
	min-width: 80px;
	padding-right: 10px;
}

#list.grid .titolo {
	font-size: 1.3em;
}

#list.grid .autore .autore-nome {
	display:inline;
}

#list.grid .autore::before {
	content: "di";
	/*margin-right: .3em;*/
}

#list.grid .qualifica {
	margin-left: 1em;
}

#list.grid .sommario {
	display:none;
}

#list.grid .datipagina {
	flex: 1
}

#list.grid .item-foto {
	width: 25%;
	margin: 0;
	padding: 10px;
}

#list.grid .foto {
	font-size:.8em;
	line-height: 1.3em;
	padding: 15px;
	background-color:#FFF;
	border: 1px solid var(--colorGrey300);
}
				
#list.grid .iconafoto {
	position:relative;
	width: 100%;
	margin-bottom: 1em;
}

#list.grid .iconafoto img {
	width: 100%;
}

#list .iconafoto .fotografo {
	font-size: 8px;
	position: absolute;
	bottom: 20px;
	right: -80px;
	width: 80px;
	height: 80px;
	line-height: 10px;
	rotate: -90deg;
}

#list.grid .evento-titolo {
	font-weight: 700;
}

#list.grid .evento-luogodata {
	font-weight:600;
}

/**
#list .evento-luogo:not(:empty):not([dataevento=""])::after {
	content: ",";
	padding-right: .5em;
}
**/

#list.grid .datifoto .fotografo {
	display:none;
}

#list.grid .persone {
	margin-top:1em;
}





/******************** #LIST.TABLE **********************/


#list.table .tableview{
	display:none;
}

#list.table .list-head {
	display:flex;
	margin-bottom: 10px;
	gap: 15px;
}

#list.table .item .articolo {
	width:100%;
	display:flex;
	margin-bottom: 10px;
	padding-bottom: 10px;
	padding-top: 5px;
	gap:0;
	border-top: 1px solid var(--colorGrey500);
	font-size:.8em;
}


#list.table .iconapagina {
	width: 100px;
}

#list.table .datipagina {
	flex:1;
	display: flex;
	flex-wrap: wrap;
	gap:20px;
}

#list.table .documento {
	width: 150px;
}
#list.table .titolazione {
	flex:1;
}				
#list.table .autore {
	width: 200px
}

.titolazione .sottotitolo {
	font-size:1.3em !important;
	line-height: 140% !important;
	margin-top:.2em !important;
}

#list.table .autore.noempty:empty {
	display:block !important;	
}

#list.table .autore[valore=""] {
	display:block !important;	
}


#list.table .temi {
	width: 150px;
}


#list.table .foto {
	width:100%;
	display:flex;
	gap: 15px;
	margin-bottom: 20px;
	/*padding: 15px;*/
	/*background-color:#FFF;*/
	/*border: 1px solid var(--colorGrey300);*/
	font-size:1.2em;
	line-height: 1.3em;
}
				
#list.table .iconafoto {
	position:relative;
	width: 33%;
	max-width:400px;
}

#list.table .iconafoto img {
	width: 100%;
	border: 1vw solid #FFF;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#list.table .foto .datifoto {
	flex:1;
	align-self: end;
}

#list.table .iconafoto .fotografo {
	
}

#list.table .evento-titolo {
	font-weight: 700;
}

#list.table .evento-luogodata {
	font-weight:600;
}

#list.table .persone {
	margin-top:1em;
	font-size: .9em;
}





/* === STILI GLOBALI PER TUTTE LE LISTE === */


#lista {
    width: 100%;
    margin: 1em 0;
    transition: all 0.3s ease-in-out;
}

#lista .tr {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#lista .td {
    padding: 0.5em;
    overflow-wrap: break-word;
}

/* Comportamento responsive predefinito */
#lista.card-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    align-items: start;
}

#lista.table-view {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0.3em;
}

#lista.compact-view {
    display: flex;
    flex-direction: column;
    row-gap: 0.2em;
}

/* Comuni per card-view */
#lista.card-view .tr {
    display: block;
    border: 1px solid var(--colorGrey500);
    border-radius: 6px;
    padding: 1em;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Comuni per compact-view */
#lista.compact-view .tr {
    display: flex;
    justify-content: space-between;
    padding: 0.5em;
    border-bottom: 1px dashed #var(--colorGrey500);
    background: #fafafa;
    font-size: 0.9em;
}

#lista {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#lista.cambiando {
    opacity: 0;
}




/* === STILI SPECIFICI PER LISTA ARTICOLI === */

.lista-articoli.table-view .tr {
    display: grid;
    grid-template-columns: 
        80px             /* foto */
        1fr              /* rubrica */
        2fr              /* titolo */
        2fr              /* sottotitolo */
        1fr              /* autore */
        100px;           /* data */
    /*align-items: center;*/
    border-bottom: 1px solid #eee;
}

/* Allineamento */
.lista-articoli.table-view .td.foto {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lista-articoli.card-view .td.foto img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.lista-articoli.card-view .td.titolo {
    font-weight: bold;
    font-size: 1.2em;
}

.lista-articoli.card-view .td.sottotitolo {
    font-size: 0.95em;
    color: #666;
}

.lista-articoli.card-view .td.autore,
.lista-articoli.card-view .td.data {
    font-size: 0.85em;
    color: #999;
}

/* Vista compatta */
.lista-articoli.compact-view .td.titolo {
    font-weight: bold;
    flex: 1;
}

.lista-articoli.compact-view .td.autore {
    min-width: 120px;
    text-align: right;
}






/***************SEZIONE  TEMI **************/


.temi-proposte {
	display:flex;
	flex-wrap: wrap;
	gap:25px;
}



.temi-proposte a:hover .card {
	text-decoration:none;
	background-color: var(--primaryColor400);
	color:#FFF;
}

.temi-proposte .card {
	width:300px;
	display:grid;
	grid-template-columns: 100px 1fr;
	/*background-color: var(--colorGrey200);*/
	background-color: #FFF;
	border:none;
	overflow:hidden;
	transition: background 100ms ease-out, color 400ms ease-out;
}



.temi-proposte .card-banner{
	aspect-ratio: 1 / 1;
	overflow: hidden;
	width: 100px;
}

.card-titolo {
	font-family: "Sofia Sans Extra Condensed", sans-serif;
	padding: 15px;
    align-self: end;
    font-size: 1.5em;
    line-height: .9em;
    font-weight: 700;
}





/********** PAGINA NUMERO **********/
				
#numero .indice-numero,
#numero h1 {
	margin-left:350px;
	text-align:left;
}

#numero .datipagina .documento {
	display:none;
}
				





/********** PAGINA ARTICOLO **********/


#articolo .header-page {
	font-size: 1.2em;
	background-color:var(--colorGrey300);
	padding: 50px 0 25px 0;
	margin-top: 0;
	margin-bottom: 50px;
}

#articolo .header-page .container > *:not(.documento) {
	margin-left: 350px;
}

#articolo .documento {
	float:left;
	width: 300px;
	margin-left: 0;
	line-height: 130%;
}

#articolo .documento .pagina {
	font-size: .8em
}

#articolo .rubrica {
	margin-bottom: .5em;
}

#articolo [valore=""] {
	display:none;
}

#articolo .primapagina,
#numero .copertina {
	float:left;
	width: 300px;
	margin-top: -120px;
}

.primapagina img,
.copertina img {
	width:100%;
	border: 1px solid var(--colorGrey300);
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
	cursor: pointer
}				

#articolo .pagineseguenti {
	display: grid;
	grid-template-columns: repeat(auto-fit, 80px);
	justify-content: start;
	gap: 1em 1em;
	margin-top: 25px
}

#articolo .testo-articolo {

	
}

#articolo h1 {
	font-weight:800;
}

#articolo .autore {
	font-weight: 600;
}


#articolo .autore::before {
	content: "di";
	margin-right: .3em;
	font-weight: 400;
}

.autore .autore-nome {
	display:inline-block;
}

#articolo .sommario {
	font-weight: 600;
	font-size: 1.5em;
	letter-spacing: -.02em;
	margin-bottom: 2em;
	margin-left: 350px;
}

#articolo .temi {
	margin-top: 1em;
}

#articolo .testo {
	margin-left: 350px;
	font-size: 1.3em;
	line-height: 170%;
}

#articolo .testo p,
#articolo .testo ul,
#articolo .testo ol {
	font-family: times;
	width: 30em;
	max-width:100%;
	text-align: justify;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
}

#articolo .testo h2 {
	font-weight: 1.5em;
	margin: 2em 0 1em 0;
}

#articolo .testo .box {
	padding: 50px;
	margin: 100px 0 50px 0;
	border:1px solid var(--colorGrey400);
	background-color:var(--colorGrey200);
}

#articolo .testo .box p {
	width: 100%;
}

#articolo .testo .box h2 {
	margin-top: 0;	
}


#articolo .testo p.firma {
	text-align:right;
	font-weight:600;
}


#correlati .results {
	display:none;
}





/******** PERSONA ********/


.personpage {
	background-color: var(--colorGrey200);
}


#person .header-page {
	font-size: 1.2em;
	background-color: var(--colorGrey700);
	color:#FFF;
	padding: 50px 0 25px 0;
	margin-top: 0;
	margin-bottom: 50px;					
}

#person .header-page h1 {
	color:#FFF;
	/*text-shadow: 0 0 5px rgba(0,0,0,.4);*/
}
				



/********* PAGINE CATALOGO ****************/

.tab-catalogo,
.tab-speciale {
	display:grid;
	gap: 50px;
	grid-template-columns: 250px 1fr;
}

.singolo-documento .documento {
	display:none;
}

/***
.singolo-documento #list.table .iconapagina {
	width:200px;
}
****/

.descrizione-evento {
	font-size: 1.2em;
	margin-bottom: 50px;
}







/********* PAGINE LISTA ****************/

aside.list {
	position: fixed;
	top: 100px;
	bottom: 0;
	left:0;
	/*background-color: var(--colorGrey500);*/
	background-color: var(--primaryColor900);
	width: 320px;
	padding: 25px;
	transition: 1s ease-in;
}

aside:empty {
	display:none;
}

.wrap-form {
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	overflow: auto;
	padding:25px 25px 0 25px;
}

.columnsearch {
	/*background-color: var(--colorGrey500);*/
	/*background-color: var(--primaryColor900);*/
	
	border-color: transparent;
	color:#FFF;
	padding: 20px;
}

.columnsearch .title {
	font-size: 1.5em;
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
}

.columnsearch input,
.columnsearch select {
	width: 100%;
}

.columnsearch label {
	display:block;
	margin-bottom: .3em;
	font-size: .9em;
	font-weight: bold;
}

.columnsearch>div {
	margin-bottom: .5em;
}


.columnsearch input.btn {
	width: auto;
	margin: 0 1em;
	background-color: #FFF;
	color: var(--colorGrey800); 
}

.parametro {
	width: 100%;
	font-size: 1em;
	margin-bottom:.5em;
}

.parametro strong {
	color: var(--primarydarkColor);
}

.container-list {
	/*width: calc(100% - 132px);*/
	max-width: 1200px;
	padding: 0 50px;
	/* margin: auto; */
	margin-left: 320px;
}


.container-list {
	/*padding-right: 100px; /* stesso valore di width dell'aside */*/
}

aside .open-list {
display:none;
background-color: var(--primaryColor600);
color:#FFF;
position: absolute;
right:-50px;
top: 118px;
width:50px;
height:50px;
padding:5px;
cursor:pointer;
}



/** RESPONSIVE **/



@media (max-width: 1400px) {
	
	.listpage h1,
	.sectionpage h1 {
		font-size: 4em
	}
	
	#list.grid .item {
		width: 50%;
	}					
}




@media screen and (max-width: 992px) {

	.container {
		margin-left:auto;
		width:100%;
		padding: 0 25px;
	}
	
	.container-list {
		margin-left:0;
	}
	
	aside.list {
		left:auto;
		right: 100%;
	}

	aside.list.open {
		left:0;
		right: auto;
	}
	
	aside .open-list {
		display:block;
	}


	.open-nav-mobile {
		display: inline-block;
	}
	
	nav ul {
		position:absolute;
		top:0;
		left:100%;
		right:0;
		opacity:0;
		transition: .3s ease-in;
	}
	

	nav.active ul {
		left:0;
		opacity:1;
	}

	nav {
		position: absolute;
		top: 100%;
		right: 0;
		height:auto;
		min-width:200px;
		padding:0 0 50px 0;
	}
	
	nav li {
		display:block;
		height: auto;
		background-color: var(--primaryColor600);
	}
	
	nav li a {
		padding: 5px 20px;
		text-align:left;
		border-top: 1px solid var(--primaryColor400);
	}

	.listpage h1,
	.sectionpage h1 {
		font-size: 3em
	}
	
	#list.grid .item {
		width: 50%;
	}
	
	#list.table .documento {
		width: 100%;
	}
	
	#articolo .primapagina,
	#numero .copertina {
		width: 150px;
		margin-top: -120px;
	}
	
	#numero .indice-numero,
	#numero h1,
	#articolo .sommario,
	#articolo .testo,
	#articolo .header-page .container > *:not(.documento) {
		margin-left: 180px;
		text-align:left;
	}
	
	#articolo .documento {
		float:none;
		margin-bottom: 20px;
	}
	
	
	.temi a {
		font-size:.7em;
	}
}




@media (max-width: 768px) {
	
	.container {
		padding: 0 25px;
	}

	.go-arrow {
		width:40px;
	}
	
	.go-arrow::after {
		border-width: 20px; 
	}

	.go-next:hover .go-page  {
		transform: translateX(-150%);
	}
	.go-previous:hover .go-page {
		transform: translateX(150%);
	}
	
	
	
	#list.grid .item {
		width: 100%;
	}
	
	#list.table .datipagina > div {
		width: 100%;
	}
	
	#numero .indice-numero,
	#numero h1,
	#articolo .sommario,
	#articolo .testo,
	#articolo .header-page .container > *:not(.documento) {
		width:100%;
		clear:both;
		margin-left:0;
		
	}
	#articolo .sommario,
	#articolo .testo {
		padding: 25px 10px
	}

	#articolo .primapagina,
	#numero .copertina {
		width: 200px;
		float:none;
		margin-top:0;
	}
	
	.testo-articolo {
		font-size: .8em;
		padding: 0 25px;
	}
}


@media (max-width: 576px) {

	header {
		padding: 0 25px;
	}

	.open-nav-mobile {
		padding: 0 20px;
		left: auto;
	}

	.go-arrow {
		width:30px;
	}
	
	.go-arrow::after {
		border-width: 15px; 
	}
	
}