/**
 * Theme Name:   Astra Child
 * Description:  Tema per il sito di Luciano D'Alfonso.
 * Author:       Rebel Studio
 * Template:     astra
 * Version:      1.0.0
 * License:      GNU General Public License v2 or later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  astra-child
 */

body,
button,
input,
select,
textarea,
.ast-button,
.entry-content,
.site-content {
	font-family: var(--wp--preset--font-family--raleway, "Raleway", sans-serif);
	color: var(--wp--preset--color--text, #2f2f2f);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.wp-block-heading {
	font-family: var(--wp--preset--font-family--libre-baskerville, "Libre Baskerville", serif);
	font-weight: 400;
}

.box {
    --rebel-box-radius-large: 19px;
    background-color: 
color-mix(in srgb, var(--wp--preset--color--secondary) 90%, transparent);
    --rebel-box-radius-normal: 0px;
    border-radius: var(--rebel-box-radius-normal) var(--rebel-box-radius-large) var(--rebel-box-radius-normal) var(--rebel-box-radius-large);
    padding: 7px 24px;
    color: #fff;
    display: block;
}

.uagb-infobox__content-wrap.box-slogan .uagb-ifb-title-wrap{
    background-color: color-mix(in srgb, var(--wp--preset--color--secondary) 90%, transparent);
    --rebel-box-radius-large: 30px;
	--rebel-box-radius-normal: 0px;
	border-radius: var(--rebel-box-radius-normal) var(--rebel-box-radius-large) var(--rebel-box-radius-normal) var(--rebel-box-radius-large);
	padding: 1.5rem;
    max-width: 485px;
}

#three-column{
    margin-left:auto !important;
    margin-right:auto !important;
}

#three-column h2{
    margin-bottom:5px;
}

#three-column p{
    margin-bottom:0px;
}

/* Blocco Gutenberg: Ultime News */
.rebel-latest-news {
	--rebel-news-primary: var(--wp--preset--color--primary, #c54e56);
	--rebel-news-secondary: var(--wp--preset--color--secondary, #1d315e);
	--rebel-news-text: var(--wp--preset--color--text, #2f2f2f);
	--rebel-news-tertiary: var(--wp--preset--color--tertiary, #e9f7ff);
	margin: 0 auto;
	padding: 2rem 0;
}

.rebel-latest-news__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

.rebel-latest-news__intro {
	max-width: 640px;
}

.rebel-latest-news__eyebrow {
	position: relative;
	margin: 0 0 0.75rem;
	padding-left: 2.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rebel-news-text);
}

.rebel-latest-news__eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.75rem;
	height: 2px;
	background: var(--rebel-news-primary);
	transform: translateY(-50%);
}

.rebel-latest-news__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	color: var(--rebel-news-primary);
}

.rebel-latest-news__subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--rebel-news-text);
}

.rebel-latest-news__archive-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.6rem 1.5rem;
	border-radius: 999px;
	background: var(--rebel-news-primary);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.rebel-latest-news__archive-btn:hover,
.rebel-latest-news__archive-btn:focus {
	color: #fff;
	opacity: 0.88;
}

.rebel-latest-news__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 2.5rem;
	align-items: start;
}

.rebel-latest-news__featured-media {
	display: block;
}

.rebel-latest-news__featured-image {
	display: block;
	width: 100%;
}

.rebel-latest-news__featured-image--placeholder {
	background: var(--rebel-news-tertiary);
}

.rebel-latest-news__featured-body {
	padding-top: 1.25rem;
}

.entry-content p.rebel-latest-news__date {
	margin: 0 0 12px 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	color: var(--rebel-news-primary);
}

.category #primary, .archive #primary{
	margin-top: 0;
}

.single #primary{
	margin-bottom: 0;
}

.entry-content p.rebel-latest-news__badge {
	display: inline-block;
	margin: 0 0 0.85rem;
	padding:0.5rem 1rem;
	background: var(--rebel-news-secondary);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    --rebel-box-radius-large: 10px;
	--rebel-box-radius-normal: 0px;
	border-radius: var(--rebel-box-radius-normal) var(--rebel-box-radius-large) var(--rebel-box-radius-normal) var(--rebel-box-radius-large);
}

.rebel-latest-news__featured-title {
	margin: 0 0 0.7rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	line-height: 1.25;
}

.rebel-latest-news__featured-title a,
.rebel-latest-news__item-title a {
	color: var(--rebel-news-primary);
	text-decoration: none;
}
.rebel-video-archive__item .rebel-latest-news__item-title a {
	font-size: 1.5rem;
}
.ast-404-layout-1 h1.page-title{
	margin-bottom:10px;
}

.rebel-latest-news__featured-title a:hover,
.rebel-latest-news__item-title a:hover,
.rebel-latest-news__read-more:hover {
	opacity: 0.85;
}

.rebel-latest-news__excerpt {
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--rebel-news-text);
}

.rebel-latest-news__read-more {
	display: inline-block;
	color: var(--rebel-news-secondary);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.rebel-latest-news__list {
	display: flex;
	flex-direction: column;
}

.rebel-latest-news__item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 2rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--rebel-news-text) 15%, transparent);
}

.rebel-latest-news__item:first-child {
	padding-top: 0;
}

.rebel-latest-news__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.rebel-latest-news__item-media {
	display: block;
}

.rebel-latest-news__item-image {
	display: block;
}

.rebel-latest-news__item-image--placeholder {
	background: var(--rebel-news-tertiary);
}

.rebel-latest-news__item-title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.2;
}
.entry-content p.rebel-latest-news__subtitle{
	margin-bottom: 0;
}

.entry-content rebel-latest-news__list p.rebel-latest-news__date{
	line-height: 1;
}
.ast-plain-container .entry-content[data-ast-blocks-layout] > .alignwide {
	margin-left: auto !important;
	margin-right: auto !important;
}

.image-auto img {
    height: auto !important;
}

.background-left{
	background-size: auto 100% !important;
	background-color:#76101e;
}

.etichetta{
	padding-left: 25px;
	position: relative;
}

.etichetta .uagb-heading-text:before{
	width:20px;
	height:2px;
	background-color: var(--wp--preset--color--primary);
	position: absolute;
	left: 0;
	top: 40%;
	display: block;
	content: '';
}

/* Blocco Gutenberg: Archivio News */
.rebel-news-archive {
	padding: 0;
}

.rebel-news-archive-page {
	padding: 0 0 4rem;
}

.rebel-news-archive-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 390px;
	margin-bottom: 2.5rem;
	background-size: cover;
	background-position: 59% 34%;
	background-repeat: no-repeat;
	display: flex;
    align-items: flex-end;
    justify-content: flex-end;
	padding: 0 20px;
}

.rebel-news-archive-hero__inner {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 40px 50px 1px 1px;
}

.rebel-news-archive-hero__title {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-family:var(--wp--preset--font-family--libre-baskerville, "Libre Baskerville", serif);
	font-size: 3em;
	font-weight: 400;
	line-height: 1.2;
	margin-bottom:30px;
    margin-top: 40px;
    margin-left: 30px;
    margin-right: 10px;
}

.rebel-news-archive__empty {
	margin: 0;
}

.rebel-news-archive__breadcrumb {
	margin-bottom:3rem;
}

.rebel-news-archive__breadcrumb .trail-items li::after {
	content: "/";
}

.ast-breadcrumbs .trail-browse, .ast-breadcrumbs .trail-items, .ast-breadcrumbs .trail-items li{
	display: inline;
}

/* Blocco Gutenberg: Potrebbero interessarti */
.rebel-related-posts {
	background: var(--rebel-news-tertiary);
	padding: 2.5rem 0;
}

.rebel-single-post .rebel-related-posts {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.rebel-related-posts__inner.ast-container {
	padding: 0 30px;
	display: flex;
	flex-direction: column;
}

.rebel-news-archive__featured{
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.rebel-news-archive__featured-media {
	display: block;
	min-width: 50%;
}

.rebel-news-archive__featured-body {
	padding-top: 0;
}

.rebel-news-archive__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 5rem 6.5rem;
}

.rebel-news-archive__item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.rebel-news-archive__item-media {
	display: block;
}

.rebel-news-archive__pagination {
	margin-top: 4rem;
	text-align: center;
}

.rebel-news-archive__pagination .wp-pagenavi {
	clear: both;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

/* Archivio categoria Video */
.rebel-video-archive__item.rebel-news-archive__item {
	display: flex;
	flex-direction: column;
	grid-template-columns: unset;
	align-items: stretch;
	gap: 1.25rem;
}

.rebel-video-archive__item-media {
	width: 100%;
}

.rebel-video-archive__item-media .rebel-latest-videos__embed,
.rebel-news-archive__featured-media .rebel-latest-videos__embed {
	width: 100%;
}

.rebel-single-post__social{
	padding:60px 0;
}

.rebel-single-post__social #social{
	display: flex;
    justify-content: space-between;
	align-items: center;
	max-width: 1290px;
	margin: 0 auto;
}

.rebel-single-post__social #social h5{
	font-size: 2em;
	color: var(--wp--preset--color--secondary);
}

/* Blocco Gutenberg: Potrebbero interessarti */
.rebel-related-posts {
	background: var(--rebel-news-tertiary);
}

.rebel-related-posts__inner.ast-container{
	padding: 0 30px;
}

.rebel-related-posts__header {
	margin-bottom: 2.5rem;
}

.rebel-related-posts .rebel-latest-news__title {
	margin-bottom: 0;
}

/* Blocco Gutenberg: Sezione Video */
.rebel-latest-videos {
	--rebel-videos-primary: var(--wp--preset--color--primary, #c54e56);
	--rebel-videos-secondary: var(--wp--preset--color--secondary, #1d315e);
	--rebel-videos-text: var(--wp--preset--color--text, #2f2f2f);
	--rebel-videos-tertiary: var(--wp--preset--color--tertiary, #e9f7ff);
	margin: 0 auto;
	padding: 2.5rem 0;
	background: var(--rebel-videos-tertiary);
}

.rebel-latest-videos__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

/* Template single.php custom */
.rebel-single-post__header {
	padding-top: 0;
	padding-bottom: 1.25rem;
	padding-left: 0;
    padding-right: 0;
}

.single .entry-date.published{
    padding-left: 20px;
    text-transform: lowercase;
    color: var(--wp--preset--color--primary);
    font-size: 0.9rem;
}

.rebel-single-post__meta {
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	width: 100%;
}

.rebel-single-post__meta-sep {
	opacity: 0.6;
}


.rebel-single-post__header.ast-container{
	flex-direction: column;
	max-width: 880px !important

}

.single .ast-container .rebel-single-post > .ast-container{
	max-width: 880px !important;
	padding:0;
	margin-bottom: 30px;
}

.rebel-single-post .entry-title {
	margin-bottom: 0.6rem;
	font-family: var(--wp--preset--font-family--libre-baskerville, "Libre Baskerville", serif);
	color: var(--wp--preset--color--primary);
	font-size: 2.8rem;
}

article p{
	font-size: 1.1rem;
}

article strong{
	color: var(--wp--preset--color--secondary);
}
.rebel-single-post__subtitle {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	line-height: 1.45;
	font-weight: 400;
	font-style: italic;
	font-family: var(--wp--preset--font-family--libre-baskerville, "Libre Baskerville", serif);
	color: var(--wp--preset--color--secondary);
}

.rebel-single-post__breadcrumb {
	margin-bottom: 0.5rem;
}

input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type=reset], input[type=tel], input[type=date], select, textarea{
	border-radius: 30px !important;
}

.srfm-form-container .srfm-button{
	padding: 10px 80px;
	border-radius: 30px !important;
	border:1px solid var(--wp--preset--color--primary);
}

.srfm-form-container .srfm-form{
	row-gap: 5px;
}

.srfm-form-container .srfm-button:hover{
	background-color:#fff;
	color: var(--wp--preset--color--primary);
}

.rebel-single-post__breadcrumb .trail-items li::after {
	content: "/";
}

.rebel-single-post__hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 2rem;
}

.rebel-single-post__hero img {
	display: block;
	width: 100%;
	height: auto;
}

.rebel-latest-videos__intro {
	max-width: 720px;
}

.rebel-latest-videos__eyebrow {
	position: relative;
	margin: 0 0 0.75rem;
	padding-left: 2.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rebel-videos-text);
}

.rebel-latest-videos__eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1.75rem;
	height: 2px;
	background: var(--rebel-videos-primary);
	transform: translateY(-50%);
}

.rebel-latest-videos__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	color: var(--rebel-videos-primary);
}

.rebel-latest-videos__subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--rebel-videos-text);
}

.rebel-latest-videos__archive-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.6rem 1.5rem;
	border-radius: 999px;
	background: var(--rebel-videos-primary);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: opacity 0.2s ease;
}

.rebel-latest-videos__archive-btn:hover,
.rebel-latest-videos__archive-btn:focus {
	color: #fff;
	opacity: 0.88;
}

.rebel-latest-videos__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
	gap: 2rem;
	align-items: start;
}

.rebel-latest-videos__featured {
	display: block;
}

.rebel-latest-videos__embed {
	margin: 0;
}

.rebel-latest-videos__embed .wp-block-embed,
.rebel-latest-videos__embed .wp-block-embed__wrapper {
	margin: 0;
}

.rebel-latest-videos__embed iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.rebel-latest-videos__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.site-footer-above-section-1 img{
	max-width: 210px;
}

.ast-footer-copyright a{
	color:#fff;
	text-decoration: underline;
}

.wp-pagenavi a, .wp-pagenavi span{
	border:0;
}


.ast-footer-copyright a:first-child:after{
	content: '|';
	color: var(--wp--preset--color--primary);
	padding-left: 10px;
	padding-right: 0px;
}


#astra-footer-menu > .menu-item > .menu-link{
	text-transform: uppercase;
}

.ast-footer-html-1 img{
	max-width: 130px;
}

.entry-content p.rebel-latest-videos__subtitle {
	margin-bottom: 0;
}

/* ==========================================================================
   Media queries
   ========================================================================== */
 @media (min-width: 922px) {
	.ast-container {
		max-width: 1610px !important;
	}
}


@media (max-width: 1700px) {
	:root {
		--wp--custom--ast-wide-width-size: 1380px;
	}

	.entry-content[data-ast-blocks-layout] > .alignwide,
	.ast-builder-grid-row-container {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.uagb-container-inner-blocks-wrap,
	.ast-builder-grid-row-container,
	.ast-container {
		max-width: 1280px !important;
	}

	#three-column,
	#social {
		max-width: 1100px !important;
	}
}
@media (max-width: 1300px) {
	.rebel-news-archive-hero__title{	
		margin-left: 15px;
	}
}

@media (max-width: 976px) {
	.rebel-news-archive-hero__title {
		font-size: 2em;
	}

	#social ul.wp-block-social-links {
		gap: 15px;
	}
}


@media (max-width: 921px) {
	.rebel-latest-news__header {
		flex-direction: column;
		align-items: stretch;
	}

	.rebel-latest-news__archive-btn {
		align-self: flex-start;
	}

	.rebel-latest-news__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.rebel-news-archive-hero {
		min-height: 250px;
		padding: 10px;
		margin-bottom: 2.5rem;
	}

	.rebel-news-archive-hero__inner {
		padding: 0 20px 1px;
	}

	.rebel-news-archive-hero__title {
		font-size: 2em;
		padding:0;
		margin: 0 0 10px 0;
	}

	.rebel-news-archive-hero__inner.ast-container{
		padding: 0 8px;
	}

	.rebel-news-archive__featured {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.rebel-news-archive-page > .ast-container {
		padding: 0;
	}

	.rebel-news-archive__breadcrumb {
		margin-bottom: 2rem;
	}

	.rebel-news-archive__featured {
		flex-direction: column;
	}

	.rebel-news-archive__grid {
		grid-template-columns: 1fr;
	}

	.rebel-latest-videos__header {
		flex-direction: column;
		align-items: stretch;
	}

	.rebel-latest-videos__archive-btn {
		align-self: flex-start;
	}

	.rebel-latest-videos__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.rebel-latest-videos {
		padding: 1.5rem 1rem;
	}
}

@media (max-width: 768px) {
	.background-left {
		background-image: none !important;
	}

	.footer-widget-area img.alignright {
		float: none;
		margin-left: 0;
	}

	.rebel-single-post .entry-title {
		font-size: 2.2rem;
	}

	.rebel-single-post__subtitle {
		font-size: 1.2rem;
	}

	#primary {
		margin: 2em 0;
	}
}

@media (max-width: 550px) {
	.rebel-single-post .entry-title {
		font-size: 2rem;
	}
}

@media (max-width: 544px) {
	.rebel-latest-news__item {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 1rem;
	}

	.entry-content p.rebel-latest-news__badge {
		margin-bottom: 0.4rem;
	}

	.rebel-news-archive-hero {
		min-height: 200px;
		align-items: flex-end;
		justify-content: flex-start;
		padding: 0 10px 0 20px;
	}

	.rebel-news-archive-hero__inner {
		justify-content: flex-start;
		padding: 0 0 20px;
	}

	.rebel-news-archive-hero__title {
		font-size:1.8em;
	}

	.rebel-news-archive__item {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 1rem;
	}
}
