/*
 Theme Name: Buddismo e Societa
Template: twentytwentyfour
Version: 1.0.0
*/

/***************************
 *  GENERAL ELEMENTS
 ***************************/
.wide-size {
	max-width: var(--wp--style--global--wide-size);	
}
.grid {
    display: flex;
    gap: 30px;
}
.posts_grid {
    flex-wrap: wrap;
}
.posts_grid .article-wrap {
        flex-basis: calc(25% - 23px);
        border: 0;
        padding-right: 0;
}
.numero-img {
	width: 100%;
	height: auto;
}

.grid figure {
    margin-bottom: 0;
}
a.entry-cat {
    font-weight: 700;
    font-size: 16px;
}
.num-details {
	display: flex;
    justify-content: space-between;
}
.pagination {
    text-align: center;
	width:100%;
	margin-top: 100px;
}
.pagination a {
	color:var(--wp--preset--color--black);
	margin: 0 5px;
}
.pagination .current {
	color: var(--wp--preset--color--custom-arancio);
}
/* * * * * * * * *
 * HEADER
 * * * * * * * * */
body, html {
	font-family: var(--wp--preset--font-family--montserrat);	
	color: var(--wp--preset--color--custom-base);
}
a {
	text-decoration: none;
	transition: all .3s ease;
}
a:hover {
	text-decoration: underline;
	opacity: .85;
}
a:focus {
    text-decoration: none !important;
}
.current-time {
    color: var(--wp--preset--color--base-2);
    font-size: small;
}

.top-bar-nav ul {
	gap:1px !important;
}
.top-bar, .btn-topbar a {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 400;
}
.fdl-ibisg img {
	filter: brightness(0) invert(1);
}
.scopri-bs a {
	color: var(--wp--preset--color--custom-arancio) !important;
}


.short-btn a {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 400;
}
.short-btn a:after {
	content:"";
	display: flex;
	width: 35px;
	height:35px;
}

.short-cerca a:after {
	background: url('https://wp-nr.ilnuovorinascimento.org/site/wp-content/uploads/2022/12/ico-search.svg') no-repeat center / 35px 35px;
	opacity:.6;
}

.main-carousel .wp-block-post {
	width: 800px;
	height: 600px;
	margin-right: 20px;
	display:flex;
}
.carousel-contain {
	width: 100%;
	border-radius: 70px;
}
/* * * * * * * * *
 * HOME
 * * * * * * * * */
.loghi-correlati {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
}
.loghi-correlati figure {
	display: flex;
    justify-content: center;
    align-items: center;
}
.footer-nav {
	list-style-type: none;
	margin:0;
	padding:0;
}
.f-col {
	align-self: stretch !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
	align-items: center;
}
.tax-title a {
	font-size: 16px;
	font-weight: 500;
	font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--custom-base);
}
.number-info {
	font-size: 24px;
	text-transform: uppercase;
}
.number-info .entry-cat {
	font-weight: 700;
	font-size: 24px;
	color: var(--wp--preset--color--custom-arancio);
}
.soundcloud-player {
	background: #e5e6e7;
	padding: var(--wp--preset--spacing--10);
	border-radius: 1rem;
}
.categories-nav {
    list-style: none;
    padding: 0;
	margin-bottom:35px;
}
.article-sottotitolo {
	font-weight:300;
	font-size: 24px;
}
.categories-nav a {
	color: var(--wp--preset--color--custom-base);
	font-weight: 500;
	font-size: 22px;
}
.single .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto;
    border-radius: 40px;
}
span.xxl-a {
    font-size: 28px;
    font-weight: 300;
    font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--custom-base);
}
.text-size {
	font-style:italic;
}
span.xs-a {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 16px;
    font-weight: 300;
	color: var(--wp--preset--color--custom-base);
	padding-left: 10px;
}
input[type=range] {
  	-webkit-appearance: none;
  	margin: 10px;
	padding: 0 10px 5px 10px;
}
input[type=range]:focus {
  	outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
	height: 2px;
	cursor: pointer;
	animate: 0.2s;
	background: var(--wp--preset--color--custom-gray);
	border-radius: 25px;
}
input[type=range]::-webkit-slider-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: rgb(255,255,255);
	background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(223,223,223,1) 100%);
	cursor: pointer;
	box-shadow: 0px 0px 3px rgb(143, 143, 143);
	-webkit-appearance: none;
	margin-top: -8px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  	background: var(--wp--preset--color--custom-base);
	border-radius: 25px;
}
.nav-header .wp-block-navigation-item ul li {
    border-bottom: 1px solid #e9e9e9;
}

@media all and (min-width: 1024px) {
	.hidden-on-desktop {
		display: none !important;
	}
	.sticky-nav {
		position: -webkit-sticky;
		position: -moz-sticky;
		position: -o-sticky;
		position: -ms-sticky;
		position: sticky;
		top: -223px;
		z-index: 100;
	}
	.wp-block-navigation .has-child:where(:not(.open-on-click)):hover>.wp-block-navigation__submenu-container {
		min-width: 60vw !important;
		padding: var(--wp--preset--spacing--20);
		left: 0;
		right: auto;
		display: block;
		column-count: 3;
		box-shadow: 0 0 20px rgb(0 0 0 / 7%);
		border-bottom-left-radius: 30px;
		border-bottom-right-radius: 30px;
		border-top: 2px solid var(--wp--preset--color--custom-base);
	}	
}

/***************************
 *  NUMERI
 ***************************/
.nr-archive .numero-img {
    margin-bottom: 15px;
}
.trova-numeri {
	padding-bottom: 30px;
}
form.vai-bsnum {
    display: flex;
    justify-content: flex-end;
	align-items: center;
}
.form-container {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
}
select#anno {
	height: 36px;
	background: var(--wp--preset--color--white);
}
.vai-bsnum input#bsnum, select#anno {
    border: 1px solid var(--wp--preset--color--custom-gray);
    width: 80px;
	margin-left: 10px;
	border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
	border-top-right-radius: 0;
    border-bottom-right-radius: 0;
	padding: 9px;	
	font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--black);
}
.vai-bsnum input[type="submit"] {
    background: #8d9ba8;
    color: var(--wp--preset--color--base);
    border: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
    padding: 10px 15px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: 36px;
	border:0;
	margin:0;
	cursor: pointer;
}

@media all and (min-width: 600px) and (max-width: 1023px) {
	.wp-block-navigation .has-child:where(:not(.open-on-click)):hover>.wp-block-navigation__submenu-container {
		min-width: 70vw !important;
		padding: var(--wp--preset--spacing--20);
		left: 0;
		right: auto;
		display: block;
		column-count: 2;
		box-shadow: 0 0 20px rgb(0 0 0 / 7%);
		border-bottom-left-radius: 30px;
		border-bottom-right-radius: 30px;
		border-top: 2px solid var(--wp--preset--color--custom-base);
	}
	.grid.posts_grid .article-wrap {
        flex-basis: calc(50% - 15px);
    }
}
@media all and (max-width: 1023px) {
	/*.main-nav, .current-time {
		display: none !important;
	}
	.main-header {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		max-width: 100%;
	}
	.nav-header {
		margin-top: 0 !important;
		padding-bottom: 0 !important;
		padding-left: 0 !important;
	}*/
	.brand-header {
		flex-grow:1;
		padding-right: 0 !important;
	}
	.logo img {
		width: 100%;
		max-width: 400px;
	}
	
	.content-nav {
		border: 0;
	}
	
	.contacts-footer h4 {
		font-size: 2rem !important;
	}
	.contacts-footer p {
    	font-size: 1.3rem !important;
	}
	.contacts-footer .wp-block-button__link {
    	font-size: 1rem !important;
	}
	.contacts-footer .wp-block-image {
    	max-width: 200px;
	}
	.contacts-footer li.wp-social-link {
    	font-size: 20px;
    	padding: 10px;
	}
	.loghi-correlati {
    	grid-template-columns: repeat(2,minmax(0,1fr));
	}
	.utilities {
		display: none !important;
	}
}
	
@media all and (max-width: 781px) {
	body {
    	overflow-x: hidden;
	}
	
	header.wp-block-template-part {
    	padding-bottom: 30px;
    	border-bottom: 1px solid var(--wp--preset--color--secondary);
		margin-bottom: 30px;
	}
	.form-container {
        flex-direction: column;
    }
}
@media all and (max-width: 599px) {
	.logo-nr-esteso {
		display: none !important;
	}
	.logo-nr { 
		width: 75px;
		height: auto;
		min-height: 1px;
	}
	.top-bar {
		padding-top: 5px;
		padding-bottom: 5px;
	}
	.btn-topbar a {
		color:var(--wp--preset--color--dark) !important;	
		padding: 0 !important;
		font-size:13px;
	}
	.btn-topbar:first-child a:after {
		content:"|";
		display: inline-block;
		margin: 0 5px;
	}
	.loghi-footer {
    	flex-direction: column;
    	text-align: center;
	}
	.loghi-footer ul {
    	justify-content: space-evenly;
	}
	.text-size {
		display: block;
	}
	    .grid .article-wrap {
        width: calc(100%);
        padding-right: 0px !important;
        flex-basis: initial;
    }
}
@media all and (min-width: 600px) {
	.logo-nr {
		display: none;
	}
	.logo-nr-esteso {
		margin-top:0 !important;
	}
	
	.btn-topbar-abbonati a{ 
		background: var(--wp--preset--color--custom-arancio);
	}
	.btn-topbar a {
		color:var(--wp--preset--color--base) !important;	
		padding: 10px 15px !important;
	}
}

@media all and (max-width: 380px) {

	.loghi-correlati {
    	grid-template-columns: repeat(1,minmax(0,1fr));
	}
}