@charset "UTF-8";

/*
Theme Name: The Yachting Voice Theme
Author: Tidiweb Solutions and Gusella Media & Design
Author URI: https://www.tidiweb.com
Version: 1.0
Description: Theme developed for The Yachting Voice
*/


/* Variables */
:root {

	--half-content-width: 512px;
	--strict-content-width: 782px;
	--std-content-width: 1360px;
	--large-content-width: 1600px;
	--wide-content-width: 1920px;
	

	--very-small-spacing: 5px;
	--small-spacing: 10px;
	--std-spacing: 20px;
	--double-spacing: 40px;
	--triple-spacing: 60px;
	--large-spacing: 80px;


	--std-icon-size: 28px;
	--menu-icon-size: 32px;
	--social-icon-size: 24px;

	--circle-diameter: 128px;


	/* Color palette */

	--white: #fff;
	--black: #000;

	--grey: #CCD2DB;
	--mid-grey: #8D98A6;
	--light-grey: #E5E9ED;
	--hotgrey: #A1AAB1;
	--flame: #F16234;


	/* Font Size */
	--font-size-xxs: 0.6rem;
	--font-size-xs: 0.765rem;
	--font-size-sm: 0.88rem;
	--font-size-normal: 1rem;
	--font-size-md: 1.2rem;
	--font-size-lg: 1.5rem;
	--font-size-xl: 1.8rem;
	--font-size-xxl: 2.3rem;
	--font-size-xxxl: 3.2rem;
    --date-font-size: 11px;
	
	--letter-spacing: normal;

	/* Line Height */
	--normal-line-height: 100%;
	--title-line-height: 120%;
	--medium-line-height: 135%;
	--high-line-height: 150%;
	--very-high-line-height: 180%;
	--double-line-height: 200%;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	-webkit-text-size-adjust: 100%;
	box-sizing: border-box;
	font-size: 17px;
	line-height: var(--high-line-height);
	color: var(--black);
}


/**
 * Reset specific elements to make them easier to style in other contexts.
 */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
form,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
	padding: 0;
	margin: 0;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}


.flex{
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-box-orient: horizontal;
	-moz-box-orient: horizontal;
	-webkit-box-direction: normal;
	-moz-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;

	flex-wrap: wrap;
}


body{
	font-family: 'DM Sans', sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
}

*{
	box-sizing: border-box;
}

h1,
.single .entry-content h2,
.single .entry-content h3{
	margin-top: var(--double-spacing);
	font-family: 'DM Serif Display';
}

.entry-content h2,
.entry-content h3.tidi-lpp__title{
	font-family: 'DM Sans', sans-serif;
}

h1,h2,h3,h4{
	line-height: normal;
}

h2,h3,h4{
  margin-bottom: var(--std-spacing);
}

h1{ font-size: var(--font-size-xl); }
h2{ font-size: var(--font-size-lg); }
h3{ font-size: var(--font-size-md); }
h4{ font-size: var(--font-size-nd); }

@media screen and (min-width: 782px) {
	h1{ font-size: var(--font-size-xxl); }
	h2{ font-size: var(--font-size-xl); }
	h3{ font-size: var(--font-size-lg); }
	h4{ font-size: var(--font-size-md); }
}

@media screen and (min-width: 1024px) {
	h1{ font-size: var(--font-size-xxxl); }
	h2{ font-size: var(--font-size-xxl); }
}


.uppercase{
	text-transform: uppercase;
}

ul{
	margin: 0;
	padding: 0;
}

ul,
ol{
	list-style-position: inside;
}

.empty-list{
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.circle-list{
	list-style-type: circle;
}

.horizontal-list{
	list-style-type: none;
}

.horizontal-list li{
	display: inline-block;
	vertical-align: top;
	margin: var(--small-spacing) var(--small-spacing);
}


.numbered-list{
    list-style: none;
    counter-reset: list-counter;
    padding-left: 0;
    margin-top: var(--std-spacing);
}

.numbered-list li{
    counter-increment: list-counter;
    position: relative;
    padding-left: var(--double-spacing);
    margin-bottom: var(--small-spacing);
}

.numbered-list li::before{
	content: counter(list-counter);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	color: white;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: var(--font-size-sm);
}

.indented-text{
	padding-left: var(--double-spacing);
}




a{
	text-decoration:none;
}

a:hover{
	cursor: pointer;
}

.clear{ clear:both; }

.alignLeft{ text-align: left; }
.alignRight{ text-align: right; }
.alignCenter{ text-align: center; }
.justified{ text-align:justify; }




/**
* TRANSITIONS
*/


h1,h2,h3,h4{
	-webkit-transition: font-size 0.3s ease-in-out;
	-moz-transition: font-size 0.3s ease-in-out;
	-ms-transition: font-size 0.3s ease-in-out;
	-o-transition: font-size 0.3s ease-in-out;
	transition: font-size 0.3s ease-in-out;
}


.home-header,
.site-header,
.half-header{
	-webkit-transition: height 0.5s ease-in-out;
	-moz-transition: height 0.5s ease-in-out;
	-ms-transition: height 0.5s ease-in-out;
	-o-transition: height 0.5s ease-in-out;
	transition: height 0.5s ease-in-out;
}


#topbar-logo img{
	-webkit-transition: width 0.5s ease-in-out;
	-moz-transition: width 0.5s ease-in-out;
	-ms-transition: width 0.5s ease-in-out;
	-o-transition: width 0.5s ease-in-out;
	transition: width 0.5s ease-in-out;
}

.post-navigation .nav-post{
	-webkit-transition: border-color 0.3s ease-in-out;
	-moz-transition: border-color 0.3s ease-in-out;
	-ms-transition: border-color 0.3s ease-in-out;
	-o-transition: border-color 0.3s ease-in-out;
	transition: border-color 0.3s ease-in-out;
}

#off-canvas-menu ul.menu li a{
	-webkit-transition: color 0.3s ease-in-out;
	-moz-transition: color 0.3s ease-in-out;
	-ms-transition: color 0.3s ease-in-out;
	-o-transition: color 0.3s ease-in-out;
	transition: color 0.3s ease-in-out;
}

#off-canvas-menu .wp-block-social-links li{
	-webkit-transition: background-color 0.3s ease-in-out;
	-moz-transition: background-color 0.3s ease-in-out;
	-ms-transition: background-color 0.3s ease-in-out;
	-o-transition: background-color 0.3s ease-in-out;
	transition: background-color 0.3s ease-in-out;
}

.site-topbar-inner #topbar-logo,
.archive-card:hover .archive-card__thumbnail img{
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.popup__close,
.ht-social-share .ht-social-item,
.archive-card__author-name a{
	-webkit-transition: opacity 0.3s ease-in-out;
	-moz-transition: opacity 0.3s ease-in-out;
	-ms-transition: opacity 0.3s ease-in-out;
	-o-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
}

/**
* Gradients
*/

.has-black-to-dark-blue-gradient-background{
	background: rgb(0,0,0);
	background: -moz-linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(32,33,79,1) 60%);
	background: -webkit-linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(32,33,79,1) 60%);
	background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(32,33,79,1) 60%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#20214f",GradientType=1); 
}

.transparent-to-grey,
.has-transparent-to-grey-gradient-background{
	background: #CCD2DB;
	background: -webkit-linear-gradient(270deg, rgba(204, 210, 219, 1) 0%, rgba(204, 210, 219, 0) 100%);
	background: -moz-linear-gradient(270deg, rgba(204, 210, 219, 1) 0%, rgba(204, 210, 219, 0) 100%);
	background: linear-gradient(270deg, rgba(204, 210, 219, 1) 0%, rgba(204, 210, 219, 0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#CCD2DB", endColorstr="#CCD2DB", GradientType=1);
}



/**
 * Title & Text colors
 */

.has-white-color{
	color: var(--white);
}

.has-black-color{
	color: var(--black);
}



/**
* Buttons
*/
.button a{
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	text-align: center;
	font-size: var(--font-size-normal);
	font-weight: bold;
	text-transform: uppercase;
	padding: var(--small-spacing) var(--std-spacing);
	display: inline-block;
	margin: var(--std-spacing) auto;
}

.button a:hover{
	filter: brightness(107%);
	-webkit-filter: brightness(107%);
}






/***
* TOPBAR
*/

.site-topbar{
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
	text-align: center;
	padding: 0;
	z-index: 1000;
}



.site-topbar-inner{
	margin: 0 auto;
	padding: 0 var(--std-spacing);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	max-width: var(--std-content-width);
}

.site-topbar-inner #open-off-canvas-menu-button,
.site-topbar-inner #topbar-logo,
.site-topbar-inner .main-menu,
.site-topbar-inner #open-search-popup-button,
.site-topbar-inner #open-language-popup-button,
.site-topbar-inner .contact-menu{
	display: inline-block;
	vertical-align: middle;
}


.site-topbar-inner #open-off-canvas-menu-button img,
.site-topbar-inner #open-search-popup-button img,
.site-topbar-inner #open-language-popup-button{
	display: block;
}


.site-topbar-inner #open-off-canvas-menu-button img,
.site-topbar-inner #open-search-popup-button img{
	width: 20px;
	height: 20px;
}

.site-topbar-inner #open-language-popup-button{
	font-size: var(--font-size-xxs);
	border-radius: var(--double-spacing);
	background-color: rgba(0, 0, 0, .1);
	padding: var(--small-spacing);
	width: 37px;
	height: 37px;
	line-height: 170%;
	transition: 0.2s;
}

.site-topbar-inner #open-language-popup-button:hover{
	background-color: rgba(0, 0, 0, .2);
	color: var(--white) !important;
}

.site-topbar-inner #topbar-logo{
	margin-left: var(--std-spacing);
}

.site-topbar-inner #topbar-logo img{
	display: block;
	width: 150px;
	height: auto;
	padding: var(--std-spacing) 0;
}

.site-topbar-inner #topbar-logo .desktop-logo{ display: none; }
.site-topbar-inner #topbar-logo .mobile-logo{ display: block; padding: var(--std-spacing) 0; }

.site-topbar-inner .contact-menu a{
	margin: 0 4px;
}

@media screen and (min-width: 782px) {
	
	.site-topbar-inner #topbar-logo img{
		width: 180px;
	}

	.site-topbar-inner .contact-menu a{
		margin: 0 6px;
	}
}


@media screen and (min-width: 1280px) {

	.site-topbar-inner #topbar-logo{ margin-left: var(--double-spacing); }
	.site-topbar-inner #topbar-logo .desktop-logo{ display: block; }
	.site-topbar-inner #topbar-logo .mobile-logo{ display: none; }

	.site-topbar-inner .contact-menu a{	margin: 0 7px; }
}






/***
* STICKY TOPBAR
* Stato fixed della topbar
*/

.site-topbar.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 997;
  animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.site-topbar.is-sticky.is-hiding {
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* Versione scura quando è sticky (fuori dalla homepage) */
.site-topbar.is-sticky{
  background: rgba(255, 255, 255, 0.95);
}




/***
* MAIN MENU
*/

.site-topbar-inner .main-menu{
	display: none;
	list-style-type:none;
	width: calc( 99% - 20 - 148px - 144px);
	text-align: center;
	position: unset;
	top: unset;
	left: unset;
	height: auto;
	z-index: 2000;
	margin: 0 var(--std-spacing);
	padding: var(--std-spacing) var(--double-spacing) var(--std-spacing) var(--std-spacing);
}


/* Stato normale: tutte le voci bianche */
.site-topbar-inner .main-menu a {
    color: var(--white);
    opacity: 1;
    transition: opacity 0.2s ease;
}


/* Quando il mouse è nel menu: abbassa tutte */
.site-topbar-inner .main-menu:hover a {
    opacity: 0.5;
}

/* Ripristina solo la voce sotto il cursore */
.site-topbar-inner .main-menu li:hover > a {
    opacity: 1;
}



.site-topbar-inner .main-menu li{
	display: inline-block;
	vertical-align: middle;
}

.site-topbar-inner .main-menu li a:hover,
.site-topbar-inner .main-menu li.current_page_item a,
.site-topbar-inner .main-menu li.current-page-parent a,
.site-topbar-inner .main-menu li.current_page_item a,
.site-topbar-inner .main-menu li .sub-menu li.current_page_item a{
}


.site-topbar-inner .main-menu li a{
	font-size: var(--font-size-xxs);
	font-weight: 500;
	color: var(--white);
	margin: 0 auto;
	display: block;
	padding: 0 4px;
	text-align: center;
}


.site-topbar-inner .main-menu .sub-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transform: rotateX(-90deg);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s;
}


.site-topbar-inner .main-menu li.language-menu .sub-menu {
	text-align: left;
	width: 50px;
}

.site-topbar-inner .main-menu li.language-menu .sub-menu li:first-child{
	display: none;
}



.main-menu li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: rotateX(0deg);
}

.site-topbar-inner .main-menu li .sub-menu a{
	font-size: var(--font-size-xxxxs);
	color: var(--white);
}

.site-topbar-inner .main-menu li .sub-menu a:hover{
	color: var(--orange);
}




/***
* MENU LIGHTBAR
*/

.site-topbar.is-sticky .site-topbar-inner .main-menu a,
.site-topbar.is-sticky .site-topbar-inner .main-menu li a,
.site-topbar.is-sticky .site-topbar-inner .wp-social-link.has-white-color,

.light-topbar .site-topbar-inner .main-menu a,
.light-topbar .site-topbar-inner .main-menu li a,
.light-topbar .site-topbar-inner .wp-social-link.has-white-color {
    color: var(--black) !important;
}


.site-topbar.is-sticky .site-topbar-inner #open-off-canvas-menu-button img,
.site-topbar.is-sticky .site-topbar-inner #topbar-logo img,
.site-topbar.is-sticky .site-topbar-inner #open-search-popup-button img,

.light-topbar .site-topbar-inner #open-off-canvas-menu-button img,
.light-topbar .site-topbar-inner #topbar-logo img,
.light-topbar .site-topbar-inner #open-search-popup-button img{
	filter: invert(1);
	filter: brightness(0);
}


.site-topbar.is-sticky .site-topbar-inner .main-menu li a{
	font-weight: 400;
}



@media screen and (min-width: 1280px) {

	.site-topbar.is-sticky .site-topbar-inner #topbar-logo img,
	.light-topbar .site-topbar-inner #topbar-logo img{
		height: 120px;
		width: auto;
	}

	.site-topbar-inner #topbar-logo img{
		width: 140px;
	}
	
	.site-topbar-inner .main-menu{
		display: inline-block;
	}

}


@media screen and (min-width: 1280px) {

	.site-topbar-inner #topbar-logo img{
		width: 170px;
	}

	.site-topbar-inner .main-menu li a{
		font-size: var(--font-size-xs);
		padding: 0 var(--small-spacing);
	}

}


@media screen and (min-width: 1440px) {

	.site-topbar-inner .main-menu li a{	padding: 0 12px; }
	.es .site-topbar-inner .main-menu li a{	padding: 0 9px; }
	.fr .site-topbar-inner .main-menu li a{	padding: 0 9px; }
	.pl .site-topbar-inner .main-menu li a{	padding: 0 6px; }
}





/***
* OFF CANVAS MENU
*/

/* Overlay */
#off-canvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#off-canvas-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Pannello off-canvas */
#off-canvas-menu {
  position: fixed;
  z-index: 4000 !important;
  top: 0;
  left: 0;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  box-sizing: border-box;
}

#off-canvas-menu.is-open {
  transform: translateX(0);
}

#off-canvas-menu .wp-block-columns img{
	max-width: 90px;
}


/* Pulsante chiusura */
#close-off-canvas-menu-button {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

#close-off-canvas-menu-button:focus {
    outline: none;
}

#close-off-canvas-menu-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 50%;
}

#close-off-canvas-menu-button:hover {
	opacity: .6;
}

#close-off-canvas-menu-button svg {
  width: 20px;
  height: 20px;
}

/* Blocca scroll del body quando il menu è aperto */
body.off-canvas-open {
  overflow: hidden;
}

#off-canvas-menu ul.menu{
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#off-canvas-menu ul.menu li:first-child a{
	border-top: 1px solid var(--light-grey);
}

#off-canvas-menu ul.menu li a{
	display: block;
	padding: var(--std-spacing) 0;
	font-size: var(--font-size-xs);
	color: var(--black);
	font-weight: 500;
	border-bottom: 1px solid var(--light-grey);
}

#off-canvas-menu ul.menu li a:hover{
	color: rgba(0,0,0,.5);
}

#off-canvas-menu .wp-block-social-links li:hover{
	background-color: #eee !important;
}

#off-canvas-menu p{
	font-size: var(--font-size-xs);
}






/***
 * SITE HEADER
 */
.site-header h2{	
	font-family: "DM Serif Display";
}


.page-title{
	margin-bottom: var(--triple-spacing);
}


/***
* CONTENT SINGLE
*/

.single .entry-content p{
	line-height: 1.9;
	margin-bottom: var(--std-spacing);
}

.single .entry-content figure{
	margin-bottom: var(--double-spacing);
	max-width: 100%;
}

.single .entry-content .wp-block-list{
	margin-bottom: var(--double-spacing);	
}

.single .entry-content img{
	width: 100% !important;
	display: block;
}

.single .entry-content figcaption{
	font-size: var(--font-size-sm);
	font-style: italic;
	color: var(--hotgrey);
	text-align: center;
}

.single .entry-content a{
	color: var(--flame);
	text-decoration: underline;
}

.single .entry-content a.ht-social-item{
	color: var(--white);
}

.ht-social-share .ht-social-item {
  width: 30px;
  line-height: 30px;
}

.ht-social-share .ht-social-item:hover {
  opacity: .6;
  color: var(--white) !important;
}

.single .entry-content a:hover{
	color: var(--black);
}

/*
.site-main,
.page-sidebar{
	margin-top: 150px;
}
*/

.page-header{
	margin-top: 150px;
	text-align: center;
}

.entry-title{
	margin: var(--double-spacing) auto 70px auto;
	line-height: 115%;
}


/***
 * META SINGLE POST
 */

.post-meta-wrapper{
	position: relative;
}

.post-meta-wrapper .entry-categories,
.post-meta-wrapper .post-author-box{
	display: inline-block;
	vertical-align: middle;
}

.post-meta-wrapper .entry-categories{
	margin-right: var(--double-spacing);
	font-size: var(--font-size-sm);
}

.post-meta-wrapper .entry-categories a{
	color: var(--black);
  margin: 0;
  font-size: var(--font-size-xs);
  color: #111 !important;
  background-image: linear-gradient(var(--flame), var(--flame)) !important;
  background-position: 0 100% !important;
  background-repeat: no-repeat;
  background-size: 0 1px !important;
  transition: background-size .4s !important;
}

.post-meta-wrapper .entry-categories a:hover{
	background-size: 100% 1px !important;
}


.post-meta-wrapper .entry-categories::after{
	position: absolute;
	content: "";
	width: 20px;
	height: 1px;
	top: 0;
	bottom: 0;
	margin: auto auto auto 10px;
	background-color: #e5e5e5;
}

.post-meta-wrapper .post-categories{
	list-style-type: none;
}

.post-meta-wrapper .single-post-date,
.post-meta-wrapper .post-categories,
.post-meta-wrapper .post-categories li{
	display: block;
}

@media (min-width: 782px) {
	.post-meta-wrapper .single-post-date,
	.post-meta-wrapper .post-categories,
	.post-meta-wrapper .post-categories li{
		display: inline-block;
	}
}

.post-meta-wrapper .single-post-date,
.post-meta-wrapper .post-categories li a{
	color: var(--hotgrey);
	font-size: var(--font-size-xs);
}

.post-meta-wrapper .single-post-date::after{
	content: "for";
	color: var(--black);
	margin-left: 5px;
}


.post-author-box .author-avatar,
.post-author-box .author-content{
	display: inline-block;
	vertical-align: middle;
}

.post-author-box .author-avatar img{
	display: block;
	border-radius: var(--double-spacing);
}

.post-author-box .author-name{
	color: var(--hotgrey);
	margin-bottom: 3px;
	line-height: 60%;
	margin-left: 10px;
}

.post-author-box .author-name small{
	display: block;
	font-weight: normal;
	font-size: var(--font-size-xxs);
}

.post-author-box .author-name a{
	font-weight: normal;
	color: var(--black);
	font-size: var(--font-size-xs);
}




.site-content{
	max-width: var(--std-content-width);
	margin: 0 auto;
	padding: 0 var(--std-spacing);
}


.right-borded-column{
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.left-borded-column{
    padding-left: 30px;
    border-left: 1px solid #eee;
}



/***
 * SIDEBAR
 */

.content-with-sidebar {
    width: 100%;
}

.content-full-width {
    width: 100%;
}

.page-sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.content-with-sidebar {
	    display: flex;
	    align-items: flex-start;
	    gap: var(--double-spacing);
	}

	.site-main.has-sidebar {
	    flex: 0 0 calc(100% - 340px - 40px);
	    min-width: 0;
	}

	.page-sidebar {
		display: block;
	    flex: 0 0 340px;
	    min-width: 0;
	    padding-left: var(--double-spacing);
	    border-left: 1px solid var(--light-grey);
	}

	.site-main{
		min-width: 0;
	}
}

/*
@media (max-width: 768px) {
    .content-with-sidebar {
        flex-direction: column;
    }

    .main-content.has-sidebar,
    .page-sidebar {
        flex: 0 0 100%;
    }
}*/

.page-sidebar .widget {
	margin-bottom: 30px;
	font-size: var(--font-size-sm);
}

.page-sidebar .widget_polylang{
	margin: var(--triple-spacing) auto;
}

/*
.page-sidebar .widget h2,
#open-newsletter-popup-button a{
  font-size: var(--date-font-size);
  font-weight: 500;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;

  background-color: #ffffff;
  display: block;
  height: 45px;
  line-height: 43px;
  border: 1px solid #e6c55d;
  text-align: center;
  position: relative;
  margin-top: 0;
}
*/

.page-sidebar .widget h4{
	display: block;
  text-align: center;
  background-color: #e6e6e6;
  color: var(--black);
  text-transform: uppercase;
  padding: var(--small-spacing) var(--std-spacing);
  font-size: var(--font-size-xxs);
}

.page-sidebar .widget h2{
	margin-bottom: 30px;	
}

#open-newsletter-popup-button{
	width: 100%;
	display: block !important;
}

#open-newsletter-popup-button a{
	line-height: normal;
}

#open-newsletter-popup-button a:hover{
	color: var(--orange);
}



.page-sidebar .widget.widget_recent_entries ul li{
	margin-bottom: var(--std-spacing);
}

.page-sidebar .widget.widget_recent_entries .wp-block-latest-posts__featured-image.alignleft{
	padding-bottom: 20px;
}

.page-sidebar .widget.widget_recent_entries .wp-block-latest-posts__featured-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.page-sidebar .widget.widget_recent_entries{
	line-height: 100%;
}

.page-sidebar .widget .dpt-title a.dpt-title-link,
.page-sidebar .widget.widget_recent_entries a {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #222 !important;

	line-height: 150% !important;
	background-image: linear-gradient(var(--orange), var(--orange)) !important;
	background-position: 0 100% !important;
	background-repeat: no-repeat;
	background-size: 0 1px !important;
	transition: background-size .4s !important;
}

.page-sidebar .widget .dpt-title a.dpt-title-link:hover,
.page-sidebar .widget.widget_recent_entries a:hover {
	/* color: var(--orange); */
	background-size: 100% 1px !important;
}

.page-sidebar .widget .display-post-types .dpt-meta,
.page-sidebar .widget .post-author,
.page-sidebar .widget.widget_recent_entries .wp-block-latest-posts__post-date {
    margin: 8px 0 0 0; /* rimuove eventuali margini di default */
    font-size: var(--date-font-size);
    text-transform: uppercase;
    line-height: 1;
    color: #aaa;
}



/***
 * TAG CLOUD / SINGLE POST TAGS nella SIDEBAR
 */

.page-sidebar .wp-block-tag-cloud a,
.current-post-tags a{
	display: inline-block;
	font-size: 9px !important;
	line-height: normal;
	letter-spacing: 1px;
	text-transform: uppercase;
	background: #f2f2f2;
	color: #777777;
	border: 1px solid transparent;
	padding: 6px 8px;
	margin-right: 8px;
	margin-bottom: 8px;
}

.page-sidebar .wp-block-tag-cloud a:hover,
.current-post-tags a:hover{
	text-decoration: underline;
}


.single-post-tags{
	margin-top: var(--double-spacing);
	font-size: var(--font-size-xs);
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.single-post-tags a{
  color: var(--black);
}

/***
 * CATEGORIES LIST
 */
.page-sidebar .wp-block-categories-list{
	list-style-type: none;
	list-style-position: inside;
	margin: 0;
	padding: 0;
}

.page-sidebar .wp-block-categories-list li {
	font-size: 13px;
	font-style: italic;
	font-weight: normal;
	color: #aaa;
}

.page-sidebar .wp-block-categories-list li a{
	text-transform: capitalize;
	color: #222;
}

.page-sidebar .wp-block-categories-list li a:hover{
	text-decoration: underline;
}






/* NAVIGAZIONE ARTICOLI */


.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 80px auto var(--double-spacing);
}

.post-navigation .nav-post {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 8px;
	text-decoration: none;
}

.post-navigation .nav-post .thumb img {
	width: 100px !important;
	height: 100px !important;
	object-fit: cover;
	border-radius: 6px; /* opzionale */
}


.post-navigation .nav-post.prev {
		flex-direction: column;
		text-align: right;
		align-items: flex-end;
	}

	.post-navigation .nav-post.next {
		flex-direction: column;
		text-align: left;
		align-items: flex-start;
	}


@media (min-width: 782px) {
	.post-navigation .nav-post.prev {
		flex-direction: row-reverse;
		text-align: right;
		align-items: center;
	}

	.post-navigation .nav-post.next {
		flex-direction: row;
		text-align: left;
		align-items: center;
	}
}

.post-navigation .nav-post .meta-nav{
	font-weight: 600;
	color: var(--black);
}

.post-navigation .nav-post .post-title{
	margin-top: 7px;
}

.post-navigation .nav-post .meta-nav,
.post-navigation .nav-post .post-title{
	font-size: var(--font-size-xs);	
	line-height: 135%;
	color: var(--black);
}

.post-navigation .nav-post:hover{
	border-color: var(--flame);
}







/**
 * CONTACT FORM
 */

/* Contenitore form */
.wpcf7 form {
    max-width: 700px;
    margin: 0 auto;
    font-family: inherit;
}

.wpcf7 p{
	margin-bottom: var(--small-spacing);
}

/* Campi input e textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Focus */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #0073aa;
    background: #fff;
    outline: none;
}

/* Label */
.wpcf7 label {
    font-weight: 600;
    font-size: var(--font-size-xs);
}

/* Bottone invio */
.wpcf7 input[type="submit"] {
    background: var(--black);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: var(--font-size-sm);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover bottone */
.wpcf7 input[type="submit"]:hover {
    background: var(--mid-grey);
}

/* Messaggi di risposta */
.wpcf7-response-output {
    margin-top: 20px;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: var(--font-size-xs);
}

/* Messaggio errore */
.wpcf7-not-valid-tip {
    font-size: var(--font-size-xs);
    color: #d63638;
}

/* Checkbox e radio */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    margin-right: 6px;
}




/**
 * contacts-section
 */

.page-contatti p,
.page-contatti a{
	font-size: .85em !important;
}

.contacts-section p,
.contacts-section .wp-block-list{
	margin-bottom: var(--std-spacing);
}

.contacts-section a{
	color: var(--black);
}

.contacts-section a:hover{
	text-decoration: underline;
}



/**
* FOOTER
*/

.site-footer{
	background-color: #232323;
	text-align: center;
}

.site-footer{
	color: var(--white);
	margin-top: var(--std-spacing);
}

.site-footer-inner{	
	margin: 0 auto;
	padding: 50px var(--double-spacing) var(--double-spacing) var(--double-spacing);
}

.site-footer .wp-block-columns{
	gap: var(--triple-spacing);
}

.site-footer .wp-block-columns .wp-block-column:first-child p{
	font-size: var(--font-size-xs);
}

.site-footer h4{
	text-transform: uppercase;
	font-weight: 700;
	font-size: var(--font-size-xs);
	letter-spacing: 8%;
}

.site-footer h5{
}

.site-footer .wp-block-latest-posts{
	text-align: left;
}

.site-footer .wp-block-latest-posts li{
	margin-bottom: var(--std-spacing);
}

.site-footer .wp-block-latest-posts a{
	font-size: var(--font-size-xs);
	color: var(--white);
	font-weight: 400;
}

.site-footer .wp-block-latest-posts a:hover{
	color: var(--orange);
}

.site-footer .wp-block-latest-posts .wp-block-latest-posts__post-date{
	text-transform: uppercase;
	font-size: var(--date-font-size);
}



.footer-social-section .wp-block-social-link-label{
	font-size: var(--date-font-size);
	text-transform: uppercase;
}

.footer-social-section .wp-block-social-links .wp-block-social-link.wp-social-link{
	margin: 0 10px;
}

.wp-block-social-link:hover{
	transform: none;
}

.copyright{
	font-weight: normal;
	font-size: var(--font-size-xs);
	color: var(--white);
}

.copyright .wp-block-group{
	padding: 0 var(--double-spacing);
}

.copyright .wp-block-verse,
.copyright .wp-block-verse a{
	font-size: 0.92em;
	color: var(--hotgrey);
}

.copyright .wp-block-columns{
	padding: var(--std-spacing) 0;
	margin: 0 auto;
	text-align: center;
}

.copyright .copyright-logo{
	line-height: 100%;
	margin: 0;
	text-align: center;
}

.copyright img{
	max-width: 280px;
	height: auto;
}

.copyright .wp-blok-columns img{
	max-width: 150px;
}

.copyright .powered-by img{
	width: 18px;
	height: 18px;
	vertical-align: middle;
}



/**
 * POLYLANG
 */

.copyright .widget_polylang{
}

.page-sidebar .widget_polylang ul,
.copyright .widget_polylang ul,
.copyright .menu{
	list-style-type: none;
}

.page-sidebar .widget_polylang ul{
	text-align: center;
}

.copyright .widget_polylang ul{
	text-align: center;
}

.copyright .menu{
	text-align: center;
}

.copyright-logo img{
	max-width: 256px;
}



@media (min-width: 782px) {

	.copyright .widget_polylang ul,
	.copyright .copyright-logo{	text-align: left;	}
	.copyright .menu{	text-align: right; }

}




.page-sidebar .widget_polylang ul li,
.copyright .widget_polylang ul li,
.copyright .menu li{
	display: inline-block;
	vertical-align: middle;
}

.page-sidebar .widget_polylang ul li a,
#language-popup ul li.language-menu a,
.copyright .widget_polylang ul li a,
.copyright .menu li a{
	display: block;
	font-size: var(--font-size-xsm);
	padding: var(--small-spacing) 8px;
	transition: opacity .2s ease-in-out;
}

.page-sidebar .widget_polylang ul li a,
#language-popup ul li.language-menu a{
	color: var(--black);

}

.copyright .widget_polylang ul li a,
.copyright .menu li a{
	color: var(--white);
}

.page-sidebar .widget_polylang ul li a:hover,
.copyright .widget_polylang ul li a:hover,
.copyright .menu li a:hover{
	text-decoration: underline;
	opacity: .8;
}

.page-sidebar .widget_polylang ul li,
#language-popup .lang-item ul li{
	padding: 0;
	margin: 0 var(--small-spacing);
}

.copyright .widget_polylang ul li{
	padding: 0;
	margin: 0 3px;
}

.page-sidebar .widget_polylang li a img,
#language-popup .lang-item a img,
.copyright .widget_polylang li a img{
	display: none;
}

.page-sidebar .widget_polylang li a img
.copyright .widget_polylang li a img{
	width: 24px;
	height: 24px;
}

#language-popup ul{
	list-style-type: none;
	list-style-position: inside;
	margin: 0;
	padding: 0;
	text-align: center;
}

#language-popup ul li.lang-item{
	display: inline-block;
	margin: 0 var(--std-spacing);
}

#language-popup ul li.lang-item a{
	display: block;
	width: 40px;
	height: 40px;
}

.page-sidebar .widget_polylang .lang-item a,
.copyright .widget_polylang .lang-item a{
	background-repeat: no-repeat;
	background-size: 24px 24px;
	width: 24px;
	height: 24px;
	padding: 0;
}

.page-sidebar .widget_polylang .lang-item{
	border-radius: 50%;
	box-shadow: 0 0 1px #ddd;
	transition: opacity .2s ease-in-out;
}

.page-sidebar .widget_polylang .lang-item:hover{
	opacity: .6;
}

#language-popup .lang-item{
	background-repeat: no-repeat;
	background-size: 40px 40px;
	width: 40px;
	height: 40px;
	padding: 0;	
}

.page-sidebar .widget_polylang .lang-item-en a,
#language-popup .lang-item-en,
.copyright .widget_polylang .lang-item-en a{
  background-image: url('images/flag-en-rounded.png') !important;
}

.page-sidebar .widget_polylang .lang-item-it a,
#language-popup .lang-item-it,
.copyright .widget_polylang .lang-item-it a{
  background-image: url('images/flag-it-rounded.png') !important;
}

.page-sidebar .widget_polylang .lang-item-fr a,
#language-popup .lang-item-fr,
.copyright .widget_polylang .lang-item-fr a{
  background-image: url('images/flag-fr-rounded.png') !important;
}

.page-sidebar .widget_polylang .lang-item-es a,
#language-popup .lang-item-es,
.copyright .widget_polylang .lang-item-es a{
  background-image: url('images/flag-es-rounded.png') !important;
}

.page-sidebar .widget_polylang .lang-item-pl a,
#language-popup .lang-item-pl,
.copyright .widget_polylang .lang-item-pl a{
  background-image: url('images/flag-pl-rounded.png') !important;
}

.page-sidebar .widget_polylang .lang-item-zh a,
#language-popup .lang-item-zh,
.copyright .widget_polylang .lang-item-zh a{
  background-image: url('images/flag-zh-rounded.png') !important;
}




/**
 * SEARCH RESULTS
 */

.search-results-wrapper{
	max-width: var(--strict-content-width);
	margin: 0 auto;
}

.search-results .search-result-count{
	margin-bottom: var(--std-spacing);
}

.search-results .search-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

/* Thumbnail */
.search-results .search-thumb {
    flex: 0 0 180px;
}

.search-results .search-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenuto */
.search-results .search-content {
    flex: 1;
}

/* Titolo */
.search-results .search-title {
    font-size: var(--font-size-normal);
    margin-bottom: 10px;
}

.search-results .search-title a {
    text-decoration: none;
    color: #222;
}

.search-results .search-title a:hover {
    color: var(--orange);
}

/* Estratto */
.search-results .search-excerpt {
    color: #222;
    line-height: 1.6;
    font-size: var(--font-size-sm);
    margin-bottom: 10px;
}

/* Bottone */
.search-results .grid-readmore {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.search-results .search-read-more:hover {
    text-decoration: underline;
}

.search-no-results .search-form{
	margin-top: var(--std-spacing);
	margin-bottom: var(--std-spacing);
}


@media (max-width: 768px) {
    .search-results .search-item {
        flex-direction: column;
    }

    .search-results .search-thumb {
        flex: 0 0 auto;
        width: 100%;
    }
}



/**
 * SEARCH POPUP
 */

.popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.popup-logo{
	max-width: 240px;
	margin: 0 auto;
	display: block;
}

.popup__inner small{
	display: block;
	text-align: center;
	margin: 0 auto var(--std-spacing) auto;
	font-size: var(--font-size-xxs);
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
  width: 90%;
  max-width: 600px;
}

.popup__inner {
  background: rgba(255,255,255,.65);
  padding: 40px;
  border-radius: 5px;
}

.popup__inner  .lang-item{
	background-size: 36px 36px;
	width: 36px;
	height: 36px;
	transition: opacity .2s ease-in-out;
}

.popup__inner  .lang-item:hover{
	opacity: .8;
}

.popup__close {
  position: absolute;
  top: -20px;
  right: -20px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;

  border-radius: 50%;
  background-color: var(--black);
  width: 40px;
  height: 40px;
  line-height: normal;
  box-shadow: 0 0 3px #fff;
  text-transform: uppercase;
  font-size: var(--font-size-md);
}

.popup__close:hover {
	opacity: .6;
}

/* Stato attivo */
.popup.active {
  pointer-events: auto;
}

.popup.active .popup__overlay {
  opacity: 1;
}

.popup.active .popup__content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.site-topbar-inner .popup .lang-item{
	margin: 0 var(--std-spacing);
}

.site-topbar-inner .popup .lang-item,
.site-topbar-inner .popup .lang-item a{
	font-size: 0;
	color: #fff;
}



/* 
=========================================
   404 e SEARCH RESULTS
========================================= 
*/

.error404,
.search{
	padding: var(--std-spacing) var(--std-spacing);
	margin: var(--double-spacing) auto;
	max-width: var(--strict-content-width);
}



/**
 * SEARCH RESULTS
 */

.search-results-wrapper{
	max-width: var(--strict-content-width);
	margin: var(--double-spacing) auto 0 auto;
}

.search-results .search-result-count{
	margin-bottom: var(--std-spacing);
}

.search-results .search-item {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

/* Thumbnail */
.search-results .search-thumb {
    flex: 0 0 180px;
}

.search-results .search-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenuto */
.search-results .search-content {
    flex: 1;
}

/* Titolo */
.search-results .search-title {
    font-size: var(--font-size-normal);
    margin-bottom: 10px;
}


.search-results .search-title a  {
    margin: 0;
    font-size: inherit;
    color: #111 !important;

    background-image: linear-gradient(var(--flame), var(--flame)) !important;
    background-position: 0 100% !important;
    background-repeat: no-repeat;
    background-size: 0 1px !important;
    transition: background-size .4s !important;
}

.search-results .search-title a:hover {
    background-size: 100% 1px !important;
}


/* Estratto */
.search-results .search-excerpt {
    color: #222;
    line-height: 1.6;
    font-size: var(--font-size-sm);
    margin-bottom: 10px;
}

/* Bottone */
.search-results .grid-readmore {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.search-results .search-read-more:hover {
    text-decoration: underline;
}

.search-no-results .search-form{
	margin-top: var(--std-spacing);
	margin-bottom: var(--std-spacing);
}


@media (max-width: 768px) {
    .search-results .search-item {
        flex-direction: column;
    }

    .search-results .search-thumb {
        flex: 0 0 auto;
        width: 100%;
    }
}



/* 
=========================================
   AUTHOR ARCHIVE
========================================= 
*/

.archive.author h1{
	margin-bottom: var(--double-spacing);
}


/* 
=========================================
   ARCHIVE GRID
========================================= 
*/

.archive-title{
	margin-bottom: var(--double-spacing);
}

.archive-description{
	margin: var(--std-spacing) auto var(--triple-spacing) auto;
}

/* ----- Griglia principale ----- */
.archive-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: var(--double-spacing) var(--double-spacing);
	max-width: var( --responsive--alignwide-width, 1200px );
	margin: 0 auto;
}

@media ( max-width: 700px ) {
	.archive-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 1rem;
	}
}

/* ----- Singola card ----- */
.archive-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: none;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ----- Thumbnail ----- */
.archive-card__thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.archive-card__thumbnail img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}

.archive-card:hover .archive-card__thumbnail img {
	transform: scale( 1.02 );
}

/* ----- Body ----- */
.archive-card__body {
	padding: var(--std-spacing) 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ----- Meta: data + "for" + categorie ----- */
.archive-card__meta {
	font-size: 12px;
	color: #777;
	margin-bottom: 5px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
}

.archive-card__meta-sep {
	font-style: italic;
	color: #888;
}

.archive-card__categories a {
	color: #777;
	text-decoration: none;
	font-weight: 500;
}

.archive-card__categories a:hover {
	color: var(--black);
}


/* ----- Titolo ----- */
.archive-card__title {
	font-size: var(--font-size-md);
	line-height: 1.3;
	margin: 0 0 0.75rem;
	font-weight: 700;
}

.archive-card__title a {
	margin: 0;
	font-size: inherit;
	color: #111 !important;

	background-image: linear-gradient(var(--flame), var(--flame)) !important;
	background-position: 0 100% !important;
	background-repeat: no-repeat;
	background-size: 0 1px !important;
	transition: background-size .4s !important;
}

.archive-card__title a:hover {
	background-size: 100% 1px !important;
}



/* ----- Excerpt ----- */
.archive-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
	margin-bottom: 1.25rem;
	flex: 1;
}

.archive-card__excerpt p {
	margin: 0;
}

/* ----- Autore ----- */
.archive-card__author {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: auto;
}

.archive-card__author-avatar img {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	object-fit: cover;
	display: block;
}

.archive-card__author-info {
	display: flex;
	flex-direction: column;    
  line-height: 1.4;
}

.archive-card__author-label {
  font-size: 10px;
	color: #aaa;
	text-transform: none;
}

.archive-card__author-name,
.archive-card__author-name a{
    font-size:   12px;
    font-weight: 500;
    color: #111;
}

.archive-card__author-name a:hover{
	opacity: .5;
}

