/*!
Theme Name: Tema bv
Author: Barbara Vignoli
Author URI: https://barbaravignoli.it/
Description: tema custom realizzato per il Centro Studi Criminalità e Giustizia ETS
Version: 1.0.0
Text Domain: tema-bv
*/

/*per la scelta delle classi personalizzate non usare le classi di default di WP*/

/* WordPress Core
-------------------------------------------------------------- */
/*.alignnone {
  margin: 5px 20px 20px 0;
}*/

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float:right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%; /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/*vari*/

* {
	padding:0;
	margin:0;
	box-sizing:border-box;
} 

*:before,
*:after {
	box-sizing:border-box;
}

.clearer {
	clear: both;
}

.clearfix::before,
.clearfix::after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}

.clearfix::after {
  clear: both;
}

html, body {  /*permette lo scroll dell'header fixed*/
    overflow: auto;
}

img {
	max-width:100%;
	height:auto;
}

.alignnone {
  margin: 0px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: auto;
    max-width: 1000%;
}

.fluid {
  width: 100%;
  margin: 0;
}

.container {
  width: 1170px;
  margin: 0 auto;
}
    
.align-center {
	text-align:center;
}

.flex {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: start;
	flex-wrap: wrap;
}

.p-10 {
	padding:10px;
}

.p-20 {
	padding:20px;
}

.p-30 {
	padding:30px 0px;
}

.p-60 {
	padding:60px 0px;
}
.p-60-30 {
	padding-top:60px;
	padding-bottom:30px;
}

.p-nomargin {
	margin-bottom:0px;
}

.wp-block-list {
		padding-left:20px;
}

.wp-block-list li {
	font-family: 'Montserrat';
	font-size:1.3em;
	margin-bottom:10px;
}

.align-right  {
	text-align:right;
}

/*tipografia*/

/*font*/

/* cinzel-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: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/cinzel-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-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: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/cinzel-v25-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-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: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/cinzel-v25-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-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: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/cinzel-v25-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-800 - 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: 'Cinzel';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/cinzel-v25-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cinzel-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: 'Cinzel';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/cinzel-v25-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-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: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/montserrat-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-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: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/montserrat-v30-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-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: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/montserrat-v30-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-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: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/montserrat-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-800 - 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: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/montserrat-v30-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Cinzel', sans-serif;
	word-wrap: break-word;
	line-height: 1.2;
	margin-bottom: 20px;
}

h1  {
	font-size: 3.0em;
}

h2 {
	font-size: 2.2em;
}

h3  {
	font-size: 1.8rem;
}

h4  {
	font-size: 1.50em;
}  

h5 {
	font-size: 1.40em;
}

h6 {
	font-size: 1.30em;
}

body p,
a,
button,
.wp-block-latest-posts__post-excerpt{
	font-family: 'Montserrat', sans-serif;
	word-wrap: break-word;
}

/*colors*/

a {
	color:#00455E;
}

a:hover {
	color:#ffae00;
}
 
body p {
	font-size:1.3em;
	color:#000;
	line-height: 1.5;
	margin-bottom: 20px;
}

.has-nero-background-color {
	background-color:#000; 
}

.text-nero,
.has-nero-color {
	color:#000;
}

.has-grigiochiaro-background-color {
	background-color:#F2F2F2;
}

.has-blue-color {
	color:#00455E;
}

.bg-blue,
.has-blue-background-color  {
	background-color: #00455E;
}

.has-bianco-color,
.text-bianco {
	color:#fff;
}

.bg-bianco,
.has-bianco-background-color {
	background-color:#fff;
}

/*pulsanti*/

.wp-block-button__link {
	border-radius:15px !important;
	padding:10px 30px !important;
	border: 3px solid #00455E;
	color:#00455E;
	background-color:#fff !important;
	text-transform:uppercase;
}

.btn-width {
	display:block;
	width:39%;
}

.wp-block-button .wp-block-button__link:hover {
	background-color:#00455E !important;
	color:#fff;
	border:3px solid #00455E;
}

.btn-bianco a:hover {
	border: 3px solid#fff !important;
}
.btn-nero a {
	background-color:#000 !important;
	color:#fff;
}
.btn-red a {
	color:#cf0f10;
	border:3px solid #cf0f10 !important;
}

/*header*/

/*topbar*/

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar {
	padding: 10px 50px;
	width: 100%;
}
.topbar p {
	margin-bottom:0px;
	font-size:15px;
	color:#fff;
}

.topbar a {
	color:#fff;
	text-decoration:underline;
}

.menu-item-wrap {
	white-space: nowrap;
}

.logo img {
	width:200px;
}

.row{
	display: flex;
} 
.flex-row {
	flex-direction: row;
	justify-content: space-between;
    width: 100%;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 40px;
	align-items: center;
}

header {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 99998;
	padding:0px 0px 40px 0px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	transition: all .3s ease-out;
	background-color:#fff;
}

header nav .menu-item li {
	list-style-type:none;
}

header nav .menu li  {
	display:inline-block;
	text-transform: uppercase;
  	font-weight: 600;
  	font-size: 16px;
	padding:0px 20px;
	position: relative;
	font-weight:500;
}

header .menu .current-menu-item a {
	color:#00455E;
	/*border-bottom: 6px solid #5FB0DC;*/
}

header .menu li a {
	color:#000;
	transition: all .3s ease;
	text-decoration:none !important;
	padding-top: 20px;
	padding-bottom: 10px;
}

header .menu  li a:hover {
	color:#00455E;
	text-decoration:none;
}

/*menu-mobile*/

.navbar {
	float:right;
	cursor:pointer;
	margin-right:0px;
	display:none;
	padding: 6px;
	color:#fff;
	border:0px;
	background-color:#00455E;
}

.icon-bar {
	display:block;
	width:30px;
	height:3px;
	margin:5px;
	background-color:#fff;
}

/* pulsante hamburger */

.menu-toggle {
    display: none; /* Nascosto su desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#hamburger[aria-expanded=‘true’] + .menu{
  display:block;
}

/* sottomenu */

.sub-menu {
	position: absolute;
	top:30px;
	right:20; 
	background:#fff;
    display: none; /* Nascondi di default */
	transition:.5s;
}

.submenu-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 0.5rem;
	transition: all 0.3s ease;
}

.submenu-toggle.rotated {
	transform: rotate(180deg);
}

@media(min-width: 1024px){
	.menu li.expand-sub > .sub-menu {
    	display: block;
	}
}
/*
.submenu-toggle:focus {
 outline: none;
} */

.submenu-toggle:after {
	content:' \f0d7 ';
	font-family:fontAwesome;
}

.menu .sub-menu li {
    padding: 10px 20px !Important;
}

.sub-menu li a {
	color: #00455E;
}

.menu .sub-menu li:hover {
    background: #f4f4f4;
}

.menu .sub-menu li a {
    color:#00455E;
	font-size:16px;
}
.menu li:hover > .sub-menu {
    display: block;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 14px 0px;
}

/* focus */

a:focus,
a:focus-within,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
input[type="submit"]:focus,
input:not([type="submit"]):focus,
select:focus,
textarea:focus,
.kb-button:focus,
div>div>figure>img:focus,
div>div>figure>img:focus-within,
.wp-block-heading:focus,
.wp-block-heading:focus-within,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-button__link:active,
.wp-block-button__link:focus-visible,
.submenu-toggle:focus {
	outline:4px solid #ff5c4d;
}

/*titolo pagina*/
.sfondo-pattern {
	background-image: url('https://www.criminalitaegiustizia.it/wp-content/uploads/2025/08/sfondo-titoli.jpg');
 	background-size: cover;
 	background-position: center center;
 	background-attachment: scroll;
 	background-repeat: no-repeat;
}
.container-title {
	padding: 200px 0px 60px 0px;
}

/*modulo contatto*/

.form-colonne {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /*margin-bottom: 20px;*/
}

.form-colonne .campo {
  flex: 1 1 45%;
  min-width: 220px;
}

.form-colonne {
	margin-bottom:20px;
}

.campo p {
	margin-bottom:0px;
}

.form-colonne label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-colonne input {
  	width: 100%;
 	padding: 8px;
  	box-sizing: border-box;
	border-radius: 20px;
}

.wpcf7-textarea {
	width:100%;
	border-radius: 20px;
}

.wpcf7-submit {
	border-radius: 20px !important;
  	padding: 10px 30px !important;
  	border: 3px solid #000;
  	color: #000;
 	background-color: #fff !important;
}
.campo-bianco p,
.wpcf7-form-control-wrap,
.wpcf7-list-item a,
.campo-bianco-area p{
	color:#fff;
}

/*blog - archive */

.single footer {
	border-top:3px solid #00455E;
}
.articoli-sidebar li{
	margin-bottom:20px;
}

.box-articoli li {
	box-shadow: 2px 1px 5px 2px #3333334d;
	padding: 20px;
}

.box-articoli .wp-block-latest-posts__post-title {
	font-size:20px;
	padding-bottom:22px;
	text-transform:uppercase;
}

.box-articoli .wp-block-latest-posts__post-excerpt {
	font-size:18px;
}

.archive-title-container {
	padding: 120px 0px 60px 0px;
}

.archive-title-container h1 {
	font-size:40px;
}

.archive-col {
	width:32%;
	border:1px solid #b1b1b1;
	margin-bottom: 40px;
}

.post-categories {
	list-style:none;
	margin-bottom:20px;
}

.container-navigation {
	padding-bottom:60px;
}

/*single.php*/

.box-single h1 {
	font-size:25px;
}
.img-post-container img {
	width: 100%;
 	height: 250px;
  	object-fit: cover; 
}

.single-title-container {
	text-align:center;
	padding:40px 0px;
}

.flex-sidebar {
  display: flex;
  flex-wrap: wrap;
}

.box-single {
	width: 70%;
}

.sidebar {
	width: 30%;
}

.sidebar li {
	list-style-type:none;
}

.sidebar-container {
	border:1px solid #b1b1b1;
}

/*banca dati*/

.wpdt-c .wpDataTableFilterBox .wdt-filter-control,
#filterBox_table_1 label {
  font-size: 1.2rem !important;
}

/*footer*/

footer {
	background-color: #1F3A6D;
	font-size: 14px;
	list-style:none;
}

.footer-widgets-area  {
 	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
   	padding:60px 20px 40px 20px;
	list-style:none !important;
}

/* Singola colonna del footer */
.footer-first-column,
.footer-second-column,
.footer-third-column,
.footer-fourth-column {
    flex: 0 0 25%;
    box-sizing: border-box;
    min-width: 100px;
    padding: 10px 15px;
}

.footer-column p {
	font-size: 18px;
}

.menu-footer a {
	font-size: 18px;
	line-height: 1.8em;
}

.footer-column a,
.copyright-bar a {
	color:#000;
}
.footer-column a:hover,
.copyright-bar a:hover {
	color: #ffae00;
}

.copyright-bar { 
	flex-direction: column; /* Metti gli elementi in colonna */
	align-items: center;    /* Centra orizzontalmente */
	justify-content: center;/* Centra verticalmente se serve */
	text-align: center;     /* Allinea testo al centro */
	gap: 5px;                /* Spazio tra le due righe */
	padding: 10px;
	border-top: 2px solid #000;
}

.copyright-bar p {
	font-size:14px;
	color:#fff;
}
.copyright-bar a {
	color:#fff;
}

/** Desktop, iPad Pro **/

@media (min-width: 1400px) {
 	.kb-theme-content-width {
		max-width: 1170px !important;
  }
}

@media (min-width: 1024px) {
 	/*header .menu  .menu-item-has-children > .menu-item-wrap  a::after {
		content:' \f0d7 ';
		font-family:fontAwesome;
	 }	*/
	/*button.submenu-toggle {
		 display: none; 
	}*/  
} 

@media (min-width: 1170px) {
	.alignfull {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
}

@media (max-width: 1170px) {
	.container {
		width:100%;
		padding-left:15px;
		padding-right:15px;
	}	
}

@media (max-width: 1023.90px) {
    .sub-menu {
      	position: relative;
		background-color: #fff;
		top: 0px;
    }
	.submenu-closed {
		max-height: 0;
		opacity: 0;
		visibility: hidden;
		display:none;
	}
	.submenu-open {
		max-height: 500px; 
		opacity: 1;
		visibility: visible;
		display:block;
	}
	.archive-title-container {
		padding-top: 200px;}

}

@media (min-width: 768px) {
	.sidebar-container {
		margin-left: 60px;
		padding:40px;
		}
	.scroll {
		padding:10px 20px;
	}
}

/** Display 5.5", iPad Portrait, iPhone 6, 6s, 7, 8 portrait and landscape, iPhone 5s landscape **/
@media only screen and (max-width: 768px) {
	
	
	h1  {
		font-size: 2.6em;
	}	
	h2  {
		font-size: 2.2em;
	}
	.flex {
		flex-direction: column; 
        align-items: center; 
	}
	.flex-col, .footer-column {
		width:100%;
		flex:100%;
	}
	.flex-sidebar {
      	flex-direction: column;
    }
	.box-single,
    .sidebar {
     	 width: 100%;
    }
	.sidebar {
		margin-top:60px;
	}
	.sidebar-container {
		padding:20px;
	}
	header {
		top:0px;
	}
	header ul.menu {
		display:none;
	}
	.navbar {
		display:block;
	}
	.show {
		display:initial!important;
	}
	header nav .menu li {
		display:block;
	}
	header nav .menu {
		background-color: #fff;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 1000;
		padding:1rem;
		line-height: 40px;
	}
	header .menu li a {
		padding-bottom:0px;
	}
	.wp-block-list {
		padding-left:20px;
	}
}


/** Display 5.5", iPad Portrait, iPhone 6, 6s, 7, 8 portrait and landscape, iPhone 5s landscape **/
@media only screen and (max-width: 320px) {}





