#cookie-law-info-bar {
	font-size: 15px;
	margin: 0 auto;
	padding: 12px 10px;
	position: absolute;
	text-align: center;
	box-sizing: border-box;
	width:100%;
	z-index: 9999;
	/* box-shadow:rgba(0,0,0,.5) 0px 5px 50px; */
	display: none;
	left:0px;
	font-weight:300;
	box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, 0.3);
}
#cookie-law-info-again {
	font-size: 10pt;
	margin: 0;
	padding:5px 10px;
	text-align: center;
	z-index: 9999;
	cursor: pointer;
	box-shadow: #161616 2px 2px 5px 2px;
}
#cookie-law-info-bar span {
	vertical-align: middle;
}

/** Buttons (http://papermashup.com/demos/css-buttons) */
.cli-plugin-button, .cli-plugin-button:visited {
	display: inline-block;
	padding: 9px 12px;
	color: #fff;
	text-decoration: none;
	position: relative;
	cursor: pointer;
	margin-left: 5px;
	text-decoration: none;
}
.cli-plugin-main-link {
	margin-left:0px;
	font-weight: 550; text-decoration: underline;
}
.cli-plugin-button:hover {
	background-color: #111;
	color: #fff;
	text-decoration: none;
}
.small.cli-plugin-button, .small.cli-plugin-button:visited {
	font-size: 11px;
}
.cli-plugin-button, .cli-plugin-button:visited,
	.medium.cli-plugin-button, .medium.cli-plugin-button:visited {
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
}
.large.cli-plugin-button, .large.cli-plugin-button:visited {
	font-size: 14px;
	padding: 8px 14px 9px;
}
.super.cli-plugin-button, .super.cli-plugin-button:visited {
	font-size: 34px;
	padding: 8px 14px 9px;
}
.pink.cli-plugin-button, .magenta.cli-plugin-button:visited {
	background-color: #e22092;
}
.pink.cli-plugin-button:hover {
	background-color: #c81e82;
}
.green.cli-plugin-button, .green.cli-plugin-button:visited {
	background-color: #91bd09;
}
.green.cli-plugin-button:hover {
	background-color: #749a02;
}
.red.cli-plugin-button, .red.cli-plugin-button:visited {
	background-color: #e62727;
}
.red.cli-plugin-button:hover {
	background-color: #cf2525;
}
.orange.cli-plugin-button, .orange.cli-plugin-button:visited {
	background-color: #ff5c00;
}
.orange.cli-plugin-button:hover {
	background-color: #d45500;
}
.blue.cli-plugin-button, .blue.cli-plugin-button:visited {
	background-color: #2981e4;
}
.blue.cli-plugin-button:hover {
	background-color: #2575cf;
}
.yellow.cli-plugin-button, .yellow.cli-plugin-button:visited {
	background-color: #ffb515;
}
.yellow.cli-plugin-button:hover {
	background-color: #fc9200;
}
.cli-plugin-button{ margin-top:5px; }
.cli-bar-popup{
	-moz-background-clip: padding;
	-webkit-background-clip: padding;
	background-clip: padding-box;
	-webkit-border-radius:30px;
	-moz-border-radius:30px;
	border-radius:30px;
	padding:20px;
}
.cli-powered_by_p{width:100% !important; display:block !important; color:#333; clear:both; font-style:italic !important; font-size:12px !important; margin-top:15px !important; }
.cli-powered_by_a{color:#333; font-weight:600 !important; font-size:12px !important;}

/**
 * Added extra space between each cookie bar action elements @since 1.8.9
 */
.cli-plugin-main-link.cli-plugin-button {
	text-decoration: none;
}
.cli-plugin-main-link.cli-plugin-button {
	margin-left: 5px;
}
.gdpr-container-fluid {
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}
.gdpr-row {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}
.gdpr-col-4 {
	-ms-flex: 0 0 33.333333%;
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
}
.gdpr-col-8 {
	-ms-flex: 0 0 66.666667%;
	flex: 0 0 66.666667%;
	max-width: 66.666667%;
}
.gdpr-align-items-stretch {
	-ms-flex-align: stretch!important;
	align-items: stretch!important;
}
.gdpr-d-flex {
	display: -ms-flexbox!important;
	display: flex!important;
}
.gdpr-px-0 {
	padding-left: 0;
	padding-right: 0;
}
.modal-backdrop.show {
	opacity: .8;
}
.modal-open {
	overflow: hidden
}

.modal-open .gdpr-modal {
	overflow-x: hidden;
	overflow-y: auto
}

.gdpr-modal.fade .gdpr-modal-dialog {
	transition: -webkit-transform .3s ease-out;
	transition: transform .3s ease-out;
	transition: transform .3s ease-out,-webkit-transform .3s ease-out;
	-webkit-transform: translate(0,-25%);
	transform: translate(0,-25%)
}

.gdpr-modal.show .gdpr-modal-dialog {
	-webkit-transform: translate(0,0);
	transform: translate(0,0)
}

.modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1039;
	background-color: #000
}

.modal-backdrop.fade {
	opacity: 0
}

.modal-backdrop.show {
	opacity: .5
}

.gdpr-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1050;
	display: none;
	overflow: hidden;
	outline: 0
}
.gdpr-modal a {
	text-decoration: none;
}
.gdpr-modal .gdpr-modal-dialog {
	position: relative;
	width: auto;
	margin: .5rem;
	pointer-events: none;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: left;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	min-height: calc(100% - (.5rem * 2))
}
@media (min-width: 576px) {
	.gdpr-modal .gdpr-modal-dialog {
		max-width:500px;
		margin: 1.75rem auto;
		min-height: calc(100% - (1.75rem * 2));
	}
}
@media (min-width: 992px) {
	.gdpr-modal .gdpr-modal-dialog {
		max-width: 900px;
	}
}
.gdpr-modal-content {
	position: relative;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid rgba(0,0,0,.2);
	border-radius: .3rem;
	outline: 0
}
.gdpr-modal .row {
	margin: 0 -15px;
}
.gdpr-modal .modal-body {
	padding: 0;
	position: relative;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}
.gdpr-modal .close {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1;
	padding: 0;
	background-color: transparent;
	border: 0;
	-webkit-appearance: none;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
}
.gdpr-modal .close:focus {
	outline: 0;
}
.gdpr-switch {
	display: inline-block;
	position: relative;
	min-height: 1px;
	padding-left: 70px;
	font-size: 14px;
}
.gdpr-switch input[type="checkbox"] {
	display:none;
}
.gdpr-switch .gdpr-slider {
	background-color: #e3e1e8;
	height: 24px;
	width: 50px;
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: .4s;
}
.gdpr-switch .gdpr-slider:before {
	background-color: #fff;
	bottom: 2px;
	content: "";
	height: 20px;
	left: 2px;
	position: absolute;
	transition: .4s;
	width: 20px;
}
.gdpr-switch input:checked + .gdpr-slider {
	background-color:rgb(99, 179, 95);
}
.gdpr-switch input:checked + .gdpr-slider:before {
	transform: translateX(26px);
}
.gdpr-switch .gdpr-slider {
	border-radius: 34px;
}
.gdpr-switch .gdpr-slider:before {
	border-radius: 50%;
}
.gdpr-tab-content>.gdpr-tab-pane {
	display: none;
}
.gdpr-tab-content>.active {
	display: block;
}
.gdpr-fade {
	transition: opacity .15s linear;
}
.gdpr-nav-pills {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
	-ms-flex-direction: column !important;
	flex-direction: column !important;
	align-items: stretch !important;
	-ms-align-items: stretch !important;
}
.nav.gdpr-nav-pills, .gdpr-tab-content {
	width: 100%;
	padding: 30px;
}
.nav.gdpr-nav-pills {
	background: #f3f3f3;
}
.nav.gdpr-nav-pills .gdpr-nav-link {
	border: 1px solid #0070ad;
	margin-bottom: 10px;
	color: #0070ad;
	font-size: 14px;
	display: block;
	padding: .5rem 1rem;
	border-radius: .25rem;
}
.nav.gdpr-nav-pills .gdpr-nav-link.active, .nav.gdpr-nav-pills .show>.gdpr-nav-link {
	background-color: #0070ad;
	border: 1px solid #0070ad;
}
.nav.gdpr-nav-pills .gdpr-nav-link.active {
	color: #ffffff;
}
.gdpr-tab-content .gdpr-button-wrapper {
	padding-top: 30px;
	margin-top: 30px;
	border-top: 1px solid #d6d6d6;
}
.gdpr-tab-content .gdpr-button-wrapper .btn-gdpr {
	background-color: #0070ad;
	border-color: #0070ad;
	color: #ffffff;
	font-size: 14px;
	display: inline-block;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: .375rem .75rem;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: .25rem;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.gdpr-tab-content p {
	color: #343438;
	font-size: 14px;
	margin-top: 0;
}
.gdpr-tab-content h4 {
	font-size: 20px;
	margin-bottom: .5rem;
	margin-top: 0;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
}


.cli-container-fluid {
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}
.cli-row {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}
.cli-col-4 {
	-ms-flex: 0 0 33.333333%;
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
}
.cli-col-8 {
	-ms-flex: 0 0 66.666667%;
	flex: 0 0 66.666667%;
	max-width: 66.666667%;
}
.cli-align-items-stretch {
	-ms-flex-align: stretch!important;
	align-items: stretch!important;
}
.cli-d-flex {
	display: -ms-flexbox!important;
	display: flex!important;
}
.cli-px-0 {
	padding-left: 0;
	padding-right: 0;
}
.cli-btn {
	cursor: pointer;
	font-size: 14px;
	display: inline-block;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: .5rem 1.25rem;
	line-height: 1;
	border-radius: .25rem;
	transition: all .15s ease-in-out;
}
.cli-btn:hover {
  opacity: .8;
}
.cli-read-more-link {
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
}
.cli-btn:focus {
	outline: 0;
}
.cli-modal-backdrop.cli-show {
  opacity: .8;
}
.cli-modal-open {
  overflow: hidden
}
.cli-barmodal-open {
  overflow: hidden
}
.cli-modal-open .cli-modal {
	overflow-x: hidden;
	overflow-y: auto
}
.cli-modal.cli-fade .cli-modal-dialog {
	transition: -webkit-transform .3s ease-out;
	transition: transform .3s ease-out;
	transition: transform .3s ease-out,-webkit-transform .3s ease-out;
	-webkit-transform: translate(0,-25%);
	transform: translate(0,-25%)
}
.cli-modal.cli-show .cli-modal-dialog {
	-webkit-transform: translate(0,0);
	transform: translate(0,0)
}
.cli-modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	background-color: #000;
	display: none;
}
.cli-modal-backdrop.cli-fade {
  opacity: 0
}
.cli-modal-backdrop.cli-show {
	opacity: .5;
	display: block;
}
.cli-modal.cli-show {
	display: block;
}
.cli-modal a {
	text-decoration: none;
}
.cli-modal .cli-modal-dialog {
	position: relative;
	width: auto;
	margin: .5rem;
	pointer-events: none;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: left;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	min-height: calc(100% - (.5rem * 2))
}
@media (min-width: 576px) {
	.cli-modal .cli-modal-dialog {
		max-width:500px;
		margin: 1.75rem auto;
		min-height: calc(100% - (1.75rem * 2))
	}
}
@media (min-width: 992px) {
	.cli-modal .cli-modal-dialog {
		max-width: 900px;
	}
}
.cli-modal-content {
	position: relative;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border-radius: .3rem;
	outline: 0
}
.cli-modal .row {
	margin: 0 -15px;
}
.cli-modal .modal-body {
	padding: 0;
	position: relative;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}
.cli-modal .cli-modal-close {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1;
	padding: 0;
	background-color: transparent !important;
	border: 0;
	-webkit-appearance: none;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
}
.cli-modal .cli-modal-close:focus {
	outline: 0;
}
.cli-switch {
	display: inline-block;
	position: relative;
	min-height: 1px;
	padding-left: 70px;
	font-size: 14px;
}
.cli-switch input[type="checkbox"] {
	display:none;
}
.cli-switch .cli-slider {
	background-color: #e3e1e8;
	height: 24px;
	width: 50px;
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: .4s;
}
.cli-switch .cli-slider:before {
	background-color: #fff;
	bottom: 2px;
	content: "";
	height: 20px;
	left: 2px;
	position: absolute;
	transition: .4s;
	width: 20px;
}
.cli-switch input:checked + .cli-slider {
	background-color: #00acad
}
.cli-switch input:checked + .cli-slider:before {
	transform: translateX(26px);
}
.cli-switch .cli-slider {
	border-radius: 34px;
}
.cli-switch .cli-slider:before {
	border-radius: 50%;
}
.cli-tab-content {
background: #ffffff;
}
.cli-tab-content>.cli-active {
	display: block;
}
.cli-fade {
	transition: opacity .15s linear;
}
.cli-nav-pills {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
	-ms-flex-direction: column;
	flex-direction: column;
}
.cli-nav-pills, .cli-tab-content {
	width: 100%;
	padding: 30px;
}
@media (max-width: 767px) {
	.cli-nav-pills, .cli-tab-content {
	padding: 30px 10px;
	}
}
.cli-nav-pills {
	background: #f3f3f3;
}
.cli-nav-pills .cli-nav-link {
	border: 1px solid #00acad;
	margin-bottom: 10px;
	color: #00acad;
	font-size: 14px;
	display: block;
	padding: .5rem 1rem;
	border-radius: .25rem;
	cursor: pointer
}
.cli-nav-pills .cli-nav-link.cli-active, .cli-nav-pills .cli-show>.cli-nav-link {
	background-color: #00acad;
	border: 1px solid #00acad;
}
.cli-nav-pills .cli-nav-link.cli-active {
	color: #ffffff;
}
.cli-tab-content .cli-button-wrapper {
	padding-top: 30px;
	margin-top: 30px;
	border-top: 1px solid #d6d6d6;
}
.cli-tab-content p {
	color: #343438;
	font-size: 14px;
	margin-top: 0;
}
.cli-tab-content h4 {
	font-size: 20px;
	margin-bottom: 1.5rem;
	margin-top: 0;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
}
/* Settings Popup */
.cli-container-fluid {
	padding-right: 15px;
	padding-left: 15px;
	margin-right: auto;
	margin-left: auto;
}
.cli-row {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}
.cli-col-4 {
	-ms-flex: 0 0 33.333333%;
	flex: 0 0 33.333333%;
	max-width: 33.333333%;
}
.cli-col-8 {
	-ms-flex: 0 0 66.666667%;
	flex: 0 0 66.666667%;
	max-width: 66.666667%;
	flex-direction: column;
}
.cli-align-items-stretch {
	-ms-flex-align: stretch!important;
	align-items: stretch!important;
}
.cli-d-flex {
	display: -ms-flexbox!important;
	display: flex!important;
}
.cli-px-0 {
	padding-left: 0;
	padding-right: 0;
}
.cli-btn {
	cursor: pointer;
	font-size: 14px;
	display: inline-block;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: .5rem 1.25rem;
	line-height: 1;
	border-radius: .25rem;
	transition: all .15s ease-in-out;
}
.cli-btn:hover {
  opacity: .8;
}
.cli-read-more-link {
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
}
.cli-btn:focus {
	outline: 0;
}
.cli-modal-backdrop.cli-show {
  opacity: .8;
}
.cli-modal-open {
  overflow: hidden
}
.cli-barmodal-open {
  overflow: hidden
}
.cli-modal-open .cli-modal {
	overflow-x: hidden;
	overflow-y: auto
}
.cli-modal.cli-fade .cli-modal-dialog {
	transition: -webkit-transform .3s ease-out;
	transition: transform .3s ease-out;
	transition: transform .3s ease-out,-webkit-transform .3s ease-out;
	-webkit-transform: translate(0,-25%);
	transform: translate(0,-25%)
}
.cli-modal.cli-show .cli-modal-dialog {
	-webkit-transform: translate(0,0);
	transform: translate(0,0)
}
.cli-modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1040;
	background-color: #000;
	-webkit-transform:scale(0);
	transform:scale(0);
	transition: opacity ease-in-out 0.5s;
}
.cli-modal-backdrop.cli-fade {
  opacity: 0;

}
.cli-modal-backdrop.cli-show {
	opacity: .5;
  -webkit-transform:scale(1);
  transform:scale(1);
}
.cli-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	transform: scale(0);
	overflow: hidden;
	outline: 0;
	display: none;
}
.cli-modal a {
	text-decoration: none;
}
.cli-modal .cli-modal-dialog {
	position: relative;
	width: auto;
	margin: .5rem;
	pointer-events: none;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	text-align: left;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	min-height: calc(100% - (.5rem * 2))
}
@media (min-width: 576px) {
	.cli-modal .cli-modal-dialog {
		max-width:500px;
		margin: 1.75rem auto;
		min-height: calc(100% - (1.75rem * 2))
	}
}
.cli-modal-content {
	position: relative;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border-radius: .2rem;
	box-sizing: border-box;
	outline: 0
}
.cli-modal .row {
	margin: 0 -15px;
}
.cli-modal .modal-body {
	padding: 0;
	position: relative;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}
.cli-modal .cli-modal-close:focus {
	outline: 0;
}
.cli-switch {
	display: inline-block;
	position: relative;
	min-height: 1px;
	padding-left: 38px;
	font-size: 14px;
}
.cli-switch input[type="checkbox"] {
	display:none;
}
.cli-switch .cli-slider {
	background-color: #e3e1e8;
	height: 20px;
	width: 38px;
	bottom: 0;
	cursor: pointer;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	transition: .4s;
}
.cli-switch .cli-slider:before {
	background-color: #fff;
	bottom: 2px;
	content: "";
	height: 15px;
	left: 3px;
	position: absolute;
	transition: .4s;
	width: 15px;
}
.cli-switch input:checked + .cli-slider {
	background-color: #61a229;
}
.cli-switch input:checked + .cli-slider:before {
	transform: translateX(18px);
}
.cli-switch .cli-slider {
	border-radius: 34px;
	font-size:0;
}
.cli-switch .cli-slider:before {
	border-radius: 50%;
}
.cli-tab-content {
background: #ffffff;
}
.cli-nav-pills {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	padding-left: 0;
	margin-bottom: 0;
	list-style: none;
	-ms-flex-direction: column;
	flex-direction: column;
}
.cli-nav-pills, .cli-tab-content {
	width: 100%;
	padding:5px 30px 5px 5px;
	box-sizing: border-box;
}
@media (max-width: 767px) {
	.cli-nav-pills, .cli-tab-content {
	padding: 30px 10px;
	}
}
.cli-nav-pills {
	background: #fff;
}
.cli-nav-pills .cli-nav-link {
	border: 1px solid #cccccc;
	margin-bottom: 10px;
	color:#2a2a2a;
	font-size: 14px;
	display: block;
	padding: .5rem 1rem;
	border-radius: .25rem;
	cursor: pointer
}
.cli-nav-pills .cli-nav-link.cli-active, .cli-nav-pills .cli-show>.cli-nav-link {
	background-color: #f6f6f9;
	border: 1px solid #cccccc;
}
.cli-nav-pills .cli-nav-link.cli-active {
	color:#2a2a2a;
}
.cli-tab-content .cli-button-wrapper {
	padding-top: 30px;
	margin-top: 30px;
	border-top: 1px solid #d6d6d6;
}
.cli-tab-content p {
	color: #343438;
	font-size: 14px;
	margin-top: 0;
}
.cli-tab-content h4 {
	font-size: 20px;
	margin-bottom: 1.5rem;
	margin-top: 0;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
}
/* Cookie Settings In Bar */
#cookie-law-info-bar .cli-nav-pills,#cookie-law-info-bar .cli-tab-content,#cookie-law-info-bar .cli-nav-pills .cli-show>.cli-nav-link,#cookie-law-info-bar a.cli-nav-link.cli-active{
	background: transparent;
}

#cookie-law-info-bar .cli-nav-pills .cli-nav-link.cli-active,#cookie-law-info-bar  .cli-nav-link,#cookie-law-info-bar .cli-tab-container p,#cookie-law-info-bar span.cli-necessary-caption,#cookie-law-info-bar .cli-switch .cli-slider:after
{
color:inherit;
}
#cookie-law-info-bar .cli-tab-header a:before
{
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
}
#cookie-law-info-bar .cli-row
{
	margin-top:20px;
}
#cookie-law-info-bar .cli-col-4
{
	-webkit-box-flex: 0;
	-ms-flex: 0 0 auto;
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}
#cookie-law-info-bar .cli-col-8
{
	flex-basis: 0;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	max-width: 100%;
}
.cli-wrapper {
	max-width: 90%;
	float: none;
	margin: 0 auto;
}
#cookie-law-info-bar .cli-tab-content h4
{
	margin-bottom:0.5rem;
}
#cookie-law-info-bar .cli-nav-pills .cli-nav-link
{
	padding: .2rem 0.5rem;
}
#cookie-law-info-bar .cli-tab-container
{
	display:none;
	text-align:left;
}

/* Popup Footer Styles */
.cli-tab-footer .cli-btn {
	background-color: #00acad;
	padding: 10px 15px;
	text-decoration:none;
}
.cli-tab-footer .wt-cli-privacy-accept-btn {
	background-color: #61a229;
	color: #ffffff;
	border-radius: 0;
}

.cli-tab-footer {
	width:100%;
	text-align:right;
	padding: 20px 0;
}
/* version 2.0 */
.cli-col-12
{
	width:100%;
}
.cli-tab-header
{
	display: flex;
	justify-content: space-between;
}
.cli-tab-header a:before {
	width: 10px;
	height: 2px;
	left: 0;
	top: calc(50% - 1px);
}
.cli-tab-header a:after {
	width: 2px;
	height: 10px;
	left: 4px;
	top: calc(50% - 5px);
	-webkit-transform: none;
	transform: none;
}
.cli-tab-header a:before {
	width: 7px;
	height: 7px;
	border-right: 1px solid #4a6e78;
	border-bottom: 1px solid #4a6e78;
	content: " ";
	transform: rotate(-45deg);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	margin-right:10px;
}
.cli-tab-header a.cli-nav-link  {
	position: relative;
	display: flex;
	align-items: center;
	font-size:14px;
	color:#000;
	text-transform: capitalize;

}
.cli-tab-header.cli-tab-active .cli-nav-link:before
{
	transform: rotate(45deg);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}
.cli-tab-header {
	border-radius: 5px;
	padding: 12px 15px;
	cursor: pointer;
	transition: background-color 0.2s ease-out 0.3s, color 0.2s ease-out 0s;
	background-color:#f2f2f2;
}
.cli-modal .cli-modal-close {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
	-webkit-appearance: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	padding: 10px;
	background: transparent;
	border:none;
	min-width: 40px;
}
.cli-tab-container h4,.cli-tab-container h1 {
	font-family: inherit;
	font-size: 16px;
	margin-bottom: 15px;
	margin:10px 0;
}
#cliSettingsPopup .cli-tab-section-container {
	padding-top: 12px;
}
.cli-tab-container p ,.cli-privacy-content-text{
	font-size: 14px;
	line-height: 1.4;
	margin-top: 0;
	padding: 0;
	color: #000;
}
.wt-cli-privacy
{
	display:none;
}
.cli-tab-content
{
	display:none;
}
.cli-tab-section .cli-tab-content
{
	padding: 10px 20px 5px 20px;
}
.cli-tab-section
{
	margin-top:5px;
}
@media (min-width: 992px) {
	.cli-modal .cli-modal-dialog {
		max-width: 645px;
	}
}
.cli-switch .cli-slider:after{
	content: attr(data-cli-disable);
	position: absolute;
	right: 50px;
	color: #000;
	font-size:12px;
	text-align:right;
	min-width: 80px;
}
.cli-switch input:checked + .cli-slider:after
{
	content: attr(data-cli-enable);
}
.cli-privacy-overview:not(.cli-collapsed) .cli-privacy-content {
	max-height: 60px;
	transition: max-height 0.15s ease-out;
	overflow: hidden;
}
a.cli-privacy-readmore {
	font-size: 12px;
	margin-top: 12px;
	display: inline-block;
	padding-bottom: 0;
	cursor: pointer;
	color:#000;
	text-decoration: underline;
}
.cli-modal-footer {
	position: relative;
}
a.cli-privacy-readmore:before {
	content: attr(data-readmore-text);
}
.cli-collapsed a.cli-privacy-readmore:before {
	content: attr(data-readless-text);
}

.cli-collapsed .cli-privacy-content
{
	transition: max-height 0.25s ease-in;

}
.cli-privacy-content p
{
	margin-bottom:0;
}
.cli-modal-close svg {
	fill: #000;
}
span.cli-necessary-caption {
	color: #000;
	font-size: 12px;
}
.cli-tab-section.cli-privacy-tab {
	display: none;
}
#cookie-law-info-bar .cli-tab-section.cli-privacy-tab {
	display: block;
}
#cookie-law-info-bar .cli-privacy-overview {
	display: none;
}
.cli-tab-container .cli-row
{
	max-height: 500px;
	overflow-y: auto;
}
.cli-modal.cli-blowup.cli-out {
	z-index: -1;
}
.cli-modal.cli-blowup {
	z-index: 999999;
	transform: scale(1);

  }
  .cli-modal.cli-blowup .cli-modal-dialog {
	animation: blowUpModal 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }
  .cli-modal.cli-blowup.cli-out .cli-modal-dialog
  {
	animation: blowUpModalTwo 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }
  @keyframes blowUpContent {
	0% {
	  transform: scale(1);
	  opacity: 1;
	}
	99.9% {
	  transform: scale(2);
	  opacity: 0;
	}
	100% {
	  transform: scale(0);
	}
  }
  @keyframes blowUpContentTwo {
	0% {
	  transform: scale(2);
	  opacity: 0;
	}
	100% {
	  transform: scale(1);
	  opacity: 1;
	}
  }
  @keyframes blowUpModal {
	0% {
	  transform: scale(0);
	}
	100% {
	  transform: scale(1);
	}
  }
  @keyframes blowUpModalTwo {
	0% {
	  transform: scale(1);
	  opacity: 1;
	}
	50% {
		transform: scale(0.5);
		opacity: 0;
	  }
	100% {
	  transform: scale(0);
	  opacity: 0;
	}
  }
  .cli-tab-section .cookielawinfo-row-cat-table td, .cli-tab-section .cookielawinfo-row-cat-table th {
	font-size: 12px;
}
.cli_settings_button
{
	cursor: pointer;
}
/* Accessibility Fix */
.wt-cli-sr-only
{
	display: none;
	font-size:16px;
}
/* Changes for CCPA
Version : 1.8.9
*/
a.wt-cli-element.cli_cookie_close_button {
	text-decoration: none;
	color: #333333;
	font-size: 22px;
	line-height: 22px;
	cursor: pointer;
	position: absolute;
	right: 10px;
	top: 5px;
}
/* GDPR Bar Version 2 */
.cli-bar-container{
	float: none;
	margin: 0 auto;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	justify-content: space-between;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}
.cli-bar-btn_container {
	margin-left: 20px;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
	flex-wrap: nowrap;
}
.cli-style-v2 a
{
	cursor: pointer;
}
.cli-bar-btn_container a {
	white-space: nowrap;
}
.cli-style-v2 .cli-plugin-main-link
{
	font-weight:inherit;
}
.cli-style-v2
{
	font-size: 11pt;
	line-height: 18px;
	font-weight:normal;
}
#cookie-law-info-bar[data-cli-type="widget"] .cli-bar-container,#cookie-law-info-bar[data-cli-type="popup"] .cli-bar-container{
	display: block;
}
.cli-style-v2 .cli-bar-message {
	width: 70%;
	text-align: left;
}
#cookie-law-info-bar[data-cli-type="widget"] .cli-bar-message,#cookie-law-info-bar[data-cli-type="popup"] .cli-bar-message
{
	width:100%;
}
#cookie-law-info-bar[data-cli-type="widget"] .cli-style-v2 .cli-bar-btn_container {
	margin-top:8px;
	margin-left: 0px;
	flex-wrap: wrap;
}
/* #cookie-law-info-bar[data-cli-type="widget"] .cli-style-v2 .cli-bar-message {
	text-align: center;
} */
#cookie-law-info-bar[data-cli-type="popup"] .cli-style-v2 .cli-bar-btn_container {
	margin-top:8px;
	margin-left: 0px;
}
#cookie-law-info-bar[data-cli-style="cli-style-v2"] .cli_messagebar_head{
	text-align: left;
	/* padding-left: 15px; */
	margin-bottom: 5px;
	margin-top: 0px;
	font-size: 16px;
}
/* #cookie-law-info-bar[data-cli-type="widget"] .cli-bar-container.cli-style-v2 {
	padding-left: 0px;
	padding-right: 0px;
} */

.cli-style-v2 .cli-bar-message .wt-cli-ccpa-element,.cli-style-v2 .cli-bar-message .wt-cli-ccpa-checkbox {
	margin-top: 5px;
}
.cli-style-v2 .cli-bar-btn_container .cli_action_button ,
.cli-style-v2 .cli-bar-btn_container .cli-plugin-main-link,
.cli-style-v2 .cli-bar-btn_container .cli_settings_button
{
	margin-left: 5px;
}
.wt-cli-ccpa-checkbox label {
	font-size: inherit;
	cursor: pointer;
	margin: 0px 0px 0px 5px;
}
/* .cli-bar-container.cli-style-v2 {
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 2px;
	padding-bottom: 2px;
} */
#cookie-law-info-bar[data-cli-style="cli-style-v2"]
{
	padding: 14px 25px;
}
#cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="widget"]
{
	padding:32px 30px;
}
#cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="popup"] {
	padding: 32px 45px;
}
.cli-style-v2 .cli-plugin-main-link:not(.cli-plugin-button), .cli-style-v2 .cli_settings_button:not(.cli-plugin-button),.cli-style-v2 .cli_action_button:not(.cli-plugin-button){
	text-decoration: underline;
}
.cli-style-v2 .cli-bar-btn_container .cli-plugin-button {
	margin-top: 5px;
	margin-bottom: 5px;
}
a.wt-cli-ccpa-opt-out {
	white-space: nowrap;
	text-decoration: underline;
}
.wt-cli-necessary-checkbox {
	display: none !important;
}
@media (max-width: 985px) {
	.cli-style-v2 .cli-bar-message
	{
		width:100%;
	}
	.cli-style-v2.cli-bar-container
	{
		justify-content:left;
		flex-wrap: wrap;
	}
	.cli-style-v2 .cli-bar-btn_container {
		margin-left:0px;
		margin-top: 10px;
	}
	#cookie-law-info-bar[data-cli-style="cli-style-v2"],#cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="widget"],#cookie-law-info-bar[data-cli-style="cli-style-v2"][data-cli-type="popup"]
	{
		padding: 25px 25px;
	}
}
/* Settings popup footer section */
.wt-cli-ckyes-brand-logo {
	display: flex;
	align-items: center;
	font-size: 9px;
	color: #111111;
	font-weight: normal;
}
.wt-cli-ckyes-brand-logo img{
	width: 65px;
	margin-left: 2px;
}
.wt-cli-privacy-overview-actions {
	padding-bottom:0;
}
@media only screen and (max-width: 479px) and (min-width: 320px){

	.cli-style-v2 .cli-bar-btn_container {
		flex-wrap: wrap;
	}
}
/* Fix: HTML validation error due to the enclosing of <p> tags on category description */
.wt-cli-cookie-description {
	font-size: 14px;
	line-height: 1.4;
	margin-top: 0;
	padding: 0;
	color: #000;
}
/**
 * Variabili CSS Globali
 * Questi valori possono essere sovrascritti dal Customizer
 */

:root {
    /* COLORI PRINCIPALI - Personalizzabili */
    --color-primary: #E84855;           /* Rosso header/accenti */
    --color-primary-dark: #d13c48;      /* Rosso scuro hover */
    --color-secondary: #1a1a1a;         /* Nero testi */
    --color-text: #333333;              /* Testo principale */
    --color-text-light: #666666;        /* Testo secondario */
    --color-border: #e0e0e0;            /* Bordi */
    --color-bg: #ffffff;                /* Background */
    --color-bg-light: #f8f8f8;          /* Background secondario */
    
    /* FONT */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* DIMENSIONI FONT */
    --font-size-small: 0.75rem;         /* 12px */
    --font-size-base: 0.875rem;         /* 14px */
    --font-size-medium: 1rem;           /* 16px */
    --font-size-large: 1.125rem;        /* 18px */
    --font-size-h3: 1.25rem;            /* 20px */
    --font-size-h2: 1.5rem;             /* 24px */
    --font-size-h1: 2rem;               /* 32px */
    --font-size-hero: 2.5rem;           /* 40px */
    
    /* SPACING */
    --spacing-xs: 0.5rem;               /* 8px */
    --spacing-sm: 0.75rem;              /* 12px */
    --spacing-md: 1rem;                 /* 16px */
    --spacing-lg: 1.5rem;               /* 24px */
    --spacing-xl: 2rem;                 /* 32px */
    --spacing-2xl: 3rem;                /* 48px */
    
    /* LAYOUT */
    --container-max-width: 1400px;
    --sidebar-width: 300px;
    --header-height: 60px;
    --topbar-height: 50px;
    --ticker-height: 40px;
    
    /* TRANSITIONS */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* SHADOWS */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    
    /* BORDER RADIUS */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* =======================
   DARK MODE VARIABLES
   ======================= */
body.dark-mode {
    --color-bg: #1a1a1a;
    --color-bg-light: #2a2a2a;
    --color-text: #e0e0e0;
    --color-text-light: #a0a0a0;
    --color-secondary: #ffffff;
    --color-border: #3a3a3a;
}

/* Dark mode - Ticker */
body.dark-mode .news-ticker {
    background-color: #2a2a2a;
    border-top: 1px solid #3a3a3a;
}

body.dark-mode .ticker-label {
    background-color: var(--color-primary);
    color: #fff;
}

body.dark-mode .ticker-item {
    color: #e0e0e0;
}

body.dark-mode .ticker-item:hover {
    color: var(--color-primary);
}

/* Dark mode - Menu */
body.dark-mode .main-header {
    background-color: #1a1a1a;
}

body.dark-mode .main-nav {
    background-color: #1a1a1a;
}

body.dark-mode .primary-menu a {
    color: #f5f5f5;
}

body.dark-mode .primary-menu a:hover {
    color: var(--color-primary);
}

body.dark-mode .current-menu-item a {
    color: var(--color-primary);
}

/* Dark mode - Article content */
body.dark-mode .article-content {
    color: #f5f5f5;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content h3 {
    color: #ffffff;
}

body.dark-mode .article-content p {
    color: #f5f5f5;
}

body.dark-mode .article-title {
    color: #ffffff;
}

body.dark-mode .article-main {
    background-color: transparent;
}

body.dark-mode .article-header {
    background-color: transparent;
}

body.dark-mode .article-author .author-info {
    color: #e0e0e0;
}

body.dark-mode .article-author .author-name {
    color: #ffffff;
}

body.dark-mode .article-author .author-date {
    color: #a0a0a0;
}

body.dark-mode .related-title,
body.dark-mode .sidebar-title {
    color: #fff;
}

body.dark-mode .article-card-small-title {
    color: #fff;
}

body.dark-mode .article-card-small-meta {
    color: #a0a0a0;
}

body.dark-mode .author-box {
    background-color: #1a1a1a;
    border-color: #3a3a3a;
}

body.dark-mode .author-box-name {
    color: #fff;
}

body.dark-mode .author-box-bio,
body.dark-mode .author-box-meta {
    color: #a0a0a0;
}

body.dark-mode .post-navigation {
    border-color: #3a3a3a;
}

body.dark-mode .nav-label {
    color: #a0a0a0;
}

body.dark-mode .nav-title {
    color: #fff;
}

body.dark-mode .sidebar {
    background-color: #2a2a2a;
}

body.dark-mode .article-card,
body.dark-mode .article-card-small {
    background-color: #2a2a2a;
}

body.dark-mode .hero-article-title {
    color: #fff;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-gutter: stable; /* Riserva spazio scrollbar a destra SEMPRE - evita asimmetria visiva */
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

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

/* CONTAINER */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* UTILITIES */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.font-bold { font-weight: var(--font-weight-bold); }
.font-medium { font-weight: var(--font-weight-medium); }
/**
 * Header Styles
 * Top Bar + Logo + Menu + Ticker
 */

/* =======================
   TOP BAR (Social + Logo)
   ======================= */
.topbar {
    background-color: var(--color-primary);
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1000;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.topbar .container {
    position: relative;
    display: block;
    padding: 0;
    max-width: none; /* Full width per topbar */
    width: 100%;
}

.topbar-content {
    position: relative;
    display: flex;
    align-items: center;
}

/* Mobile menu toggle - nascosto su desktop */
.mobile-menu-toggle {
    display: none;
}

/* Social Icons a SINISTRA assoluto */
.topbar-social {
    display: flex;
    gap: var(--spacing-md);
    position: absolute;
    left: 0;
    z-index: 10;
    padding-left: var(--spacing-md);
}

.topbar-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: background-color var(--transition-fast);
}

.topbar-social a:hover {
    background-color: rgba(255,255,255,0.3);
    color: #fff;
}

.topbar-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Logo CENTRATO assoluto */
.topbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.topbar-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: #fff;
    font-size: 1.75rem;
    font-weight: var(--font-weight-black);
    letter-spacing: 1px;
}

.topbar-logo img {
    height: 45px;
    width: auto;
}

.topbar-logo .logo-icon {
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-logo .logo-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary);
}

/* Dark Mode Toggle a DESTRA assoluto */
.topbar-right {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 10;
    padding-right: var(--spacing-md);
}

.dark-mode-toggle {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

/* Icone con fade e rotazione */
.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
    position: absolute;
    transition: all 0.3s ease;
}

.dark-mode-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #fff;
}

.dark-mode-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    font-size: 18px;
}

body.dark-mode .dark-mode-toggle {
    border-color: rgba(255,255,255,0.5);
}

body.dark-mode .dark-mode-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-mode .dark-mode-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* =======================
   MAIN NAVIGATION
   ======================= */
.main-header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all var(--transition-normal);
}

/* Sticky compatto */
.main-header.sticky {
    box-shadow: var(--shadow-md);
}

.main-header.sticky .main-nav {
    padding: var(--spacing-sm) 0;
}

.main-header.sticky .sticky-logo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Navigation Container */
.main-nav {
    padding: var(--spacing-md) 0;
    transition: padding var(--transition-normal);
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: justify-content var(--transition-normal);
}

/* Quando sticky, mantieni menu centrato */
.main-header.sticky .main-nav .container {
    justify-content: center;
}

/* Logo sticky nascosto completamente in questo layout */
.sticky-logo {
    display: none;
}

.sticky-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    white-space: nowrap;
}

.sticky-logo .logo-icon {
    width: 28px;
    height: 28px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-logo .logo-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Menu principale */
.primary-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: var(--spacing-xs) 0;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    position: relative;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-secondary);
    padding: var(--spacing-xs);
}

/* =======================
   NEWS TICKER
   ======================= */
.news-ticker {
    background-color: var(--color-secondary);
    color: #fff;
    overflow: hidden;
    position: relative;
    height: var(--ticker-height);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-label {
    background-color: var(--color-primary);
    padding: 0 var(--spacing-lg);
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-items {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll var(--ticker-speed, 60s) linear infinite;
    white-space: nowrap;
}

.ticker-items:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--spacing-xl);
    height: 100%;
    color: #fff;
    font-size: var(--font-size-base);
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.ticker-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-primary);
}

.ticker-item::before {
    content: '●';
    margin-right: var(--spacing-md);
    color: var(--color-primary);
    font-size: 8px;
}

/* Animazione ticker */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/**
 * Componenti Riutilizzabili
 * Card articoli, badge categorie, meta info
 */

/* =======================
   CATEGORY BADGE
   ======================= */
.category-badge {
    display: inline-block !important;
    padding: 4px 12px;
    background-color: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    vertical-align: middle;
}

.category-badge:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
}

/* =======================
   POST META
   ======================= */
.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    text-transform: uppercase;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-meta .separator {
    color: var(--color-border);
}

/* =======================
   ARTICLE CARD - Standard
   ======================= */
.article-card {
    display: block;
    background-color: #fff;
    transition: transform var(--transition-fast);
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 10;
}

.article-card-content {
    padding: var(--spacing-md) 0;
}

.article-card-title {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card-title {
    color: var(--color-primary);
}

/* =======================
   ARTICLE CARD - Small (Sidebar)
   ======================= */
.article-card-small {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.article-card-small:last-child {
    border-bottom: none;
}

.article-card-small-image {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    overflow: hidden;
}

.article-card-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.article-card-small:hover .article-card-small-image img {
    transform: scale(1.1);
}

.article-card-small-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-small-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    color: var(--color-secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-small:hover .article-card-small-title {
    color: var(--color-primary);
}

.article-card-small-meta {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    text-transform: uppercase;
}

/* =======================
   HERO ARTICLE
   ======================= */
.hero-article {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.hero-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-article:hover .hero-article-image img {
    transform: scale(1.05);
}

.hero-article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-2xl);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
}

.hero-article-badges {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 8px;
    margin-bottom: 10px;
    margin-left: 0;
    padding-left: 0;
    width: auto;
    max-width: 100%;
}

.hero-article-title {
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    color: #fff;
    margin-bottom: var(--spacing-sm);
    margin-left: 0;
    padding-left: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-small);
    color: rgba(255,255,255,0.9);
}

.hero-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-category-text {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

/* =======================
   SECTION TITLE
   ======================= */
.section-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
    color: var(--color-secondary);
}

/* =======================
   SIDEBAR
   ======================= */
.sidebar {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.sidebar-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

/**
 * Breadcrumbs SEO
 */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .separator {
    color: var(--color-text-light);
    margin: 0 0.3rem;
}

/* Dark mode */
body.dark-mode .breadcrumbs {
    color: #b0b0b0;
}

body.dark-mode .breadcrumbs a {
    color: #b0b0b0;
}

body.dark-mode .breadcrumbs a:hover {
    color: var(--color-primary);
}

/**
 * SVG Icons (performance)
 */
.topbar-social svg,
.mobile-menu-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.icon-sun,
.icon-moon {
    width: 20px;
    height: 20px;
}

.icon-sun {
    stroke: currentColor;
    fill: none;
}

.icon-moon {
    fill: currentColor;
}

/**
 * Sezioni mobile-only (nascoste su desktop)
 */
.mobile-latest-news,
.mobile-popular {
    display: none;
}

/* Layout desktop nascosto su mobile/tablet */
.home-layout {
    display: none;
}

/* Desktop: mostra layout desktop, nascondi sezioni mobile */
@media (min-width: 1025px) {
    .mobile-latest-news,
    .mobile-popular {
        display: none;
    }
    
    .home-layout {
        display: grid;
    }
}

/* Mobile/Tablet: nascondi layout desktop, mostra sezioni mobile */
@media (max-width: 1024px) {
    .home-layout {
        display: none !important;
    }
    
    .mobile-latest-news,
    .mobile-popular {
        display: block;
    }
}

/* =======================
   BACK TO TOP BUTTON
   ======================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    
    /* Nascosto di default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    flex-shrink: 0;
}

/* Dark mode */
body.dark-mode .back-to-top {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Mobile: spostalo più in basso per non coprire la social bar sticky */
@media (max-width: 1024px) {
    .back-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* ================================================
   NAV SEARCH - Tasto cerca nel menu desktop
   ================================================ */

.nav-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* Bottone icona lente */
.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-light);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.nav-search-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.08);
}

.nav-search-toggle.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Box di ricerca: slide da destra */
.nav-search-box {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.nav-search-box.open {
    width: 260px;
    opacity: 1;
    pointer-events: all;
}

.nav-search-box form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 0 0.5rem 0 1rem;
    height: 34px;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.nav-search-box.open form {
    border-color: var(--color-primary);
}

.nav-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-secondary);
    font-size: 0.875rem;
    min-width: 0;
    width: 100%;
}

.nav-search-input::placeholder {
    color: var(--color-text-light);
}

.nav-search-submit {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

.nav-search-submit:hover {
    color: var(--color-primary);
}

/* Dark mode */
body.dark-mode .nav-search-toggle {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
}
body.dark-mode .nav-search-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
body.dark-mode .nav-search-box form {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.2);
}
body.dark-mode .nav-search-input {
    color: #f0f0f0;
}
body.dark-mode .nav-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Nascondi su mobile/tablet */
@media (max-width: 1024px) {
    .nav-search {
        display: none;
    }
}

/* ================================================
   PAGE STATICA (privacy, cookie, chi siamo, ecc.)
   ================================================ */

.page-wrapper {
    padding: var(--spacing-xxl) 0 4rem;
    background-color: var(--color-bg);
    min-height: 60vh;
}

.page-layout {
    max-width: 820px;
    margin: 0 auto;
}

.page-article {
    background-color: transparent;
    padding: 0;
}

.page-header {
    margin-bottom: var(--spacing-xxl);
}

.page-title {
    font-family: var(--font-family-heading, inherit);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1.2;
    margin: 0 0 0.75rem 0;
    position: relative;
    padding-left: 1.1rem;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background-color: var(--color-primary);
    border-radius: 3px;
}

.page-meta {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    margin: 0;
    padding-left: 1.1rem;
}

/* Tipografia contenuto pagina */
.page-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text);
}

.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 2.5rem 0 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.page-content h2::before {
    content: '';
    position: absolute;
    left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 65%;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.page-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 1.75rem 0 0.5rem;
}

.page-content p {
    margin: 0 0 1.1rem;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content a:hover {
    text-decoration: none;
}

/* Separatore orizzontale nel contenuto */
.page-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

/* Dark mode */
body.dark-mode .page-title,
body.dark-mode .page-content h2,
body.dark-mode .page-content h3 {
    color: #f0f0f0;
}

body.dark-mode .page-content {
    color: #d0d0d0;
}

/* Mobile */
@media (max-width: 767px) {
    .page-wrapper {
        padding: var(--spacing-xl) 0 2rem;
    }

    .page-title {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════════════════════════
   POPULAR CARD NUMBERED - Layout verticale con numero
   Usato in Hero Classica Pro
   ══════════════════════════════════════════════════════════ */

.popular-card-numbered {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.popular-card-number {
    font-size: 3rem;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 1;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.popular-card-content {
    flex: 1;
}

.popular-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.popular-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background-color: #f5f5f5;
}

.popular-card-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-card-link:hover .popular-card-image img {
    transform: scale(1.05);
}

.popular-card-meta {
    font-size: 0.6rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    /* Tronca con ellipsis se troppo lungo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-card-category {
    color: var(--color-primary);
    font-weight: 700;
}

.popular-card-time {
    color: var(--color-text-light);
}

.popular-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text);
    transition: color 0.2s ease;
    /* Tronca a 2 righe con ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-card-link:hover .popular-card-title {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 767px) {
    .popular-card-numbered {
        gap: 0.75rem;
        margin-bottom: 1.2rem;
    }
    
    .popular-card-number {
        font-size: 2rem;
        min-width: 35px;
    }
    
    .popular-card-title {
        font-size: 0.8rem;
    }
}
/**
 * Footer Styles - 4 colonne simmetriche
 */

.site-footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

/* 4 colonne con stesso gap dei widget articoli */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: 3rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b0b0b0;
    font-size: 0.875rem;
    text-decoration: none;
    word-break: break-word;
}

.footer-links a:hover {
    color: #E84855;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: #E84855;
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: #b0b0b0;
}

.footer-copyright a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Tablet: 2 colonne */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 colonna centrata */
@media (max-width: 767px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .footer-column,
    .footer-title {
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Dark mode */
body.dark-mode .site-footer {
    background-color: #1a1a1a;
}
/**
 * Extras — CalcioStyle Theme
 * Barra progresso lettura · Etichette speciali · Tempo lettura
 */

/* ═══════════════════════════════════════════════
   1. BARRA PROGRESSO LETTURA
   Linea fissa in cima, si riempie durante scroll
═══════════════════════════════════════════════ */

#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary, #e63946);
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    /* Piccolo glow per renderla più visibile */
    box-shadow: 0 0 6px rgba(230, 57, 70, 0.5);
}


/* ═══════════════════════════════════════════════
   2. ETICHETTE SPECIALI
═══════════════════════════════════════════════ */

.post-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    width: fit-content; /* FIX: Previeni allungamento nelle sidebar */
}

.label-icon {
    display: inline-block;
    font-size: 0.85em;
}

/* ── Variante CARD (sopra immagine) */
.post-label--card {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    font-size: 0.62rem;
    padding: 4px 8px;
    letter-spacing: 0.08em;
}

/* ── Variante SINGLE (nell'header articolo) */
.post-label--single {
    font-size: 0.72rem;
    padding: 5px 10px;
}

/* ── Variante HERO (accanto alla categoria nell'hero principale) */
.post-label--hero {
    position: static !important;
    display: inline-flex !important;
    font-size: 0.65rem;
    padding: 4px 9px;
    vertical-align: middle;
}

/* ── Variante MINI (card sidebar) */
.post-label--mini {
    font-size: 0.58rem;
    padding: 2px 6px;
    margin-bottom: 4px;
    display: inline-flex;
}

/* ── Colori per tipo */
.label-breaking {
    background-color: #e63946;
    color: #fff;
    /* Pulsazione sottile per BREAKING */
    animation: breaking-pulse 2s ease-in-out infinite;
}
@keyframes breaking-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.80; }
}

.label-esclusivo {
    background-color: #f4a500;
    color: #fff;
}

.label-video {
    background-color: #111;
    color: #fff;
}

.label-intervista {
    background-color: #2563eb;
    color: #fff;
}

.label-anteprima {
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    color: #fff;
}

.label-ufficiale {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    color: #fff;
    animation: ufficiale-pulse 3s ease-in-out infinite;
}
@keyframes ufficiale-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
    50%       { opacity: 0.85; box-shadow: 0 0 4px 2px rgba(255,255,255,0.08); }
}

.label-dichiarazioni {
    background-color: #10b981;
    color: #fff;
}

.label-social {
    background-color: #0ea5e9; /* Sky blue per social media */
    color: #fff;
}

/* Posizionamento relativo sull'immagine card */
.article-card-image {
    position: relative;
}


/* ═══════════════════════════════════════════════
   3. HEADER ARTICOLO — layout con badge
═══════════════════════════════════════════════ */

.article-header-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

/* Toglie il margin-bottom dell'article-category originale
   ora gestito da article-header-top */
.article-header-top .article-category {
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════
   4. TEMPO DI LETTURA
═══════════════════════════════════════════════ */

.reading-time {
    color: var(--color-text-muted, #888);
    font-size: 0.82em;
    font-style: italic;
}

/* Dark mode */
body.dark-mode .reading-time {
    color: #666;
}

body.dark-mode #reading-progress-bar {
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.6);
}
/**
 * Single Post Styles
 * Layout articolo + sidebar + social share
 */

/* =======================
   SINGLE POST LAYOUT
   ======================= */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
    max-width: 100%;
    /* overflow-x removed - breaks position: sticky on sidebar */
}

/* =======================
   ARTICLE CONTENT
   ======================= */
.article-main {
    background-color: #fff;
    overflow-x: hidden; /* Doppia protezione contro overflow */
    max-width: 100%;
}

.article-header {
    margin-bottom: var(--spacing-xl);
}

.article-category {
    margin-bottom: var(--spacing-md);
}

.article-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Author Meta */
.article-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 2px;
}

.author-date {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}

/* Featured Image */
.article-featured-image {
    margin: var(--spacing-xl) 0 0 0;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Social Share Buttons - Sotto foto a destra */
.social-share {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-bottom: 2rem;           /* più spazio prima del testo */
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-md);
}

/* Prima riga di testo articolo — respiro extra */
.article-content > p:first-child,
.article-content > .wp-block-paragraph:first-child {
    margin-top: 0.5rem;
}

.social-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    border: none;
}

.social-share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-share-btn.facebook {
    background-color: #1877f2;
}

.social-share-btn.whatsapp {
    background-color: #25d366;
}

.social-share-btn.twitter {
    background-color: #000;
}

.social-share-btn.twitter svg {
    display: block;
    width: 16px;
    height: 16px;
}

.social-share-btn.email {
    background-color: #ea4335;
}

.social-share-btn.copy {
    background-color: #6c757d;
}

.social-share-btn.link {
    background-color: #0d6efd;
    color: #fff;
}

/* Article Content */
.article-content {
    font-size: var(--font-size-medium);
    line-height: 1.8;
    color: var(--color-text);
    overflow-x: hidden; /* FIX: Previeni scroll orizzontale su mobile */
    word-wrap: break-word;
}

.article-content p {
    margin-bottom: var(--spacing-lg);
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
}

.article-content h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.article-content li {
    margin-bottom: var(--spacing-sm);
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--color-primary-dark);
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
    width: auto !important; /* FIX: Forza responsive su iPad Pro */
}

/* ── Allineamento immagini: classic editor ── */
.article-content .aligncenter,
.article-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.article-content .alignleft,
.article-content img.alignleft {
    float: left;
    margin-right: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    margin-top: 4px;
}

.article-content .alignright,
.article-content img.alignright {
    float: right;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    margin-top: 4px;
}

/* ── Allineamento immagini: block editor (Gutenberg) ── */
.article-content figure.wp-block-image {
    margin: var(--spacing-lg) 0;
    max-width: 100% !important; /* FIX: Previeni overflow su mobile/iPad */
    width: 100% !important;
}

.article-content figure.wp-block-image img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

.article-content figure.wp-block-image.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.article-content figure.wp-block-image.aligncenter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.article-content figure.wp-block-image.alignleft {
    float: left;
    margin-right: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article-content figure.wp-block-image.alignright {
    float: right;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.article-content figure.wp-block-image figcaption {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.4rem;
    font-style: italic;
}

/* Clearfix per i float */
.article-content::after {
    content: '';
    display: table;
    clear: both;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* =======================
   SIDEBAR SINGLE
   ======================= */
.single-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

/* Widget sidebar - identici ai widget homepage */
.sidebar-widget {
    margin-bottom: var(--spacing-2xl);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Titolo widget sidebar — stanghetta con border-left, come section-header */
.sidebar-widget-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
    line-height: 1.2;
    border-radius: 0 2px 2px 0;
}

.sidebar-widget-title::before {
    display: none;
}

/* Dark mode sidebar */
body.dark-mode .sidebar-widget-title {
    color: #f5f5f5;
}

/* Related Articles Widget */
.related-articles {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xl);
}

/* Correlati INLINE sotto author box - layout a 3 colonne */
.related-articles-inline {
    background-color: transparent;
    padding: 0;
    margin-top: var(--spacing-2xl);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: var(--spacing-xl);
}

/* Stanghetta sinistra identica ai widget homepage */
.related-articles-inline .related-title {
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    padding-left: 1rem;
}

.related-articles-inline .related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 65%;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.related-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--color-primary);
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

/* =======================
   AUTHOR BOX
   ======================= */
.author-box {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    margin: var(--spacing-2xl) 0;
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.author-box-avatar {
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.author-box-bio {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.author-box-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}

.author-box-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Gravatar Social Links */
.author-box-social {
    display: flex;
    gap: 12px;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.author-box-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-box-social a:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.author-box-social a i {
    font-size: 16px;
}

.author-box-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--spacing-sm);
    position: relative;
    z-index: 10; /* Ensure clickable above other elements */
}

.author-box-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Mobile: Better touch target */
@media (max-width: 768px) {
    .author-box-link {
        display: block;
        padding: 12px 16px;
        background-color: var(--color-bg-light);
        border-radius: 4px;
        text-align: center;
        margin-top: var(--spacing-md);
        font-size: 15px;
        min-height: 44px; /* iOS touch target recommendation */
    }
    
    .author-box-link:active {
        background-color: var(--color-primary);
        color: #fff;
    }
}

/* =======================
   TAGS & NAVIGATION
   ======================= */
.article-tags {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    font-size: var(--font-size-small);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tag-link:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.nav-title {
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
}

.nav-title:hover {
    color: var(--color-primary);
}

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

/* =======================
   BREADCRUMBS
   ======================= */
.breadcrumbs {
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-small);
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-text-light);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    margin: 0 var(--spacing-xs);
}

/* Dark mode correlati inline */
body.dark-mode .related-articles-inline {
    border-top-color: rgba(255,255,255,0.1);
}

/* ── FIX: Immagini responsive su tablet ── */
@media (max-width: 1024px) {
    .article-content img,
    .article-content figure.wp-block-image img,
    .article-content figure img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block;
    }
    
    .article-content figure.wp-block-image,
    .article-content figure {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* =======================
   AUTHOR BOX - CLICKABLE NAME & AVATAR
   ======================= */
.author-box-avatar-link {
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.author-box-avatar-link:hover {
    transform: scale(1.05);
}

.author-box-name a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-box-name a:hover {
    color: var(--color-primary);
}

/* =======================
   AUTHOR ARCHIVE PAGE
   ======================= */
.author-archive-header {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-2xl);
    margin: var(--spacing-2xl) 0;
    text-align: center;
}

.author-archive-avatar {
    margin: 0 auto var(--spacing-lg);
}

.author-archive-avatar img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-archive-info {
    max-width: 600px;
    margin: 0 auto;
}

.author-archive-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.2;
}

.author-archive-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.author-archive-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-archive-bio {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin: var(--spacing-md) 0;
    line-height: 1.6;
}

.author-archive-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--spacing-md);
}

.author-archive-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-archive-social a:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.author-archive-social a i {
    font-size: 18px;
}

.author-posts-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: var(--spacing-xl) 0 var(--spacing-lg) 0;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .author-archive-header {
        padding: var(--spacing-xl);
    }
    
    .author-archive-avatar img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .author-archive-name {
        font-size: 1.5rem;
    }
    
    .author-archive-bio {
        font-size: 0.95rem;
    }
}

/* =======================
   MOBILE OVERFLOW FIX
   ======================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .single-post-layout,
    .article-main,
    .article-content {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Featured image - riduci padding per evitare tagli */
    .article-featured-image {
        margin: var(--spacing-md) 0 0 0;
        overflow: hidden;
    }
    
    /* Social share buttons - PERFETTAMENTE CENTRATI su mobile */
    .social-share {
        justify-content: center !important; /* Centrati = sempre visibili */
        padding: var(--spacing-md) 0 !important; /* Solo padding verticale */
        margin: 0 auto !important; /* Rimuovi margin laterali */
        gap: 10px;
        flex-wrap: wrap; /* Wrap se troppi pulsanti */
        max-width: 100%; /* Non overflow */
        text-align: center; /* Extra centratura */
    }
    
    .social-share-btn {
        width: 42px; /* Touch-friendly */
        height: 42px;
        font-size: 16px;
    }
    
    /* Forza tutte le immagini responsive */
    .article-content img,
    .article-content iframe,
    .article-content video,
    .article-content embed {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Previeni overflow su tabelle e pre */
    .article-content table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
    
    .article-content pre,
    .article-content code {
        overflow-x: auto;
        max-width: 100%;
    }
}

/* =======================
   EDITOR CLASSICO - ALLINEAMENTO CENTRO
   ======================= */
.article-content .aligncenter,
.article-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.article-content .wp-block-image.aligncenter,
.article-content figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Embed centrati (YouTube, Vimeo, etc) */
.article-content .aligncenter iframe,
.article-content .aligncenter embed,
.article-content .aligncenter object {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-content div.aligncenter {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/**
 * Responsive Styles - Mobile First
 */

/* MOBILE/TABLET: 0-1024px */
@media (max-width: 1024px) {
    
    /* ========== HEADER MOBILE ========== */
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .topbar-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Logo centrato */
    .site-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-logo a {
        font-size: 1.5rem;
    }
    
    .site-logo img {
        max-height: 35px;
    }
    
    /* Nascondi social topbar mobile */
    .topbar-social {
        display: none;
    }
    
    /* Menu desktop nascosto */
    .main-nav {
        display: none;
    }
    
    /* News ticker nascosto mobile */
    .news-ticker {
        display: none;
    }
    
    /* Mobile menu */
    .mobile-menu {
        display: block;
    }
    
    /* Hero slider visibile mobile */
    .hero-slider {
        display: block;
    }
    
    /* ========== LAYOUT MOBILE ========== */
    
    .home-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .home-main {
        width: 100%;
    }
    
    /* Articles grid mobile */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* ========== WIDGET SEZIONI MOBILE ========== */
    
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* ========== FOOTER MOBILE ========== */
    
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* ========== CATEGORIA MOBILE ========== */
    
    .category-hero-image {
        height: 250px;
    }
    
    .category-list-item {
        grid-template-columns: 1fr !important;
    }
    
    .category-list-image {
        width: 100%;
        height: 200px;
    }
    
    /* ========== SINGLE POST MOBILE ========== */
    
    .article-header-image {
        height: 250px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
}

/* DESKTOP: Nascondi elementi mobile */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    .hero-slider {
        display: none;
    }
}

/* TABLET: 768-1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Dark mode mobile */
body.dark-mode .mobile-menu {
    background-color: #0a0a0a;
}

body.dark-mode .mobile-menu-items a {
    color: #f5f5f5;
}
/**
 * Tablet Optimization: 768px - 1024px
 * iPad, Android Tablets, Landscape Phones
 */

@media (min-width: 768px) and (max-width: 1024px) {
    
    /* CONTAINER */
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    /* HEADER */
    .topbar {
        padding: 1.2rem 0;
    }
    
    .topbar-social a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .topbar-logo a {
        font-size: 1.6rem;
    }
    
    .primary-menu {
        gap: 1.5rem;
    }
    
    .primary-menu a {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }
    
    /* HOME LAYOUT */
    .home-layout {
        grid-template-columns: 1fr 250px;
        gap: 2rem;
    }
    
    .home-sidebar-left {
        display: none;
    }
    
    /* ARTICLES GRID 2 COLONNE */
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* HERO */
    .hero-article {
        min-height: 350px;
    }
    
    .hero-article-image {
        height: 350px;
    }
    
    .hero-article-title {
        font-size: 1.8rem;
    }
    
    /* WIDGET SEZIONI 2 COLONNE */
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    /* CATEGORIA */
    .category-hero-image {
        height: 0;
        padding-bottom: 56.25%;
    }
    
    .category-list-item {
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
    }
    
    .category-list-image {
        height: 150px;
    }
    
    /* SINGLE POST */
    .single-post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        width: 100%;
    }
    
    .article-header-image {
        height: 400px;
    }
    
    .article-main {
        padding: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    /* FOOTER 3 COLONNE */
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* TABLET PORTRAIT */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    
    .home-layout {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar-right {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Single post - layout a colonna singola */
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        width: 100%;
        margin-top: var(--spacing-2xl);
    }
}

/* TABLET LANDSCAPE */
@media (min-width: 1024px) and (max-width: 1024px) and (orientation: landscape) {
    
    .home-layout {
        grid-template-columns: 220px 1fr 220px;
    }
    
    .home-sidebar-left {
        display: block;
    }
    
    /* Single post - sidebar più stretta per iPad landscape */
    .single-post-layout {
        grid-template-columns: 1fr 250px;
    }
}
/**
 * Mobile Styles - Hamburger Menu + Hero Slider
 */

/* ========================================
   MOBILE + TABLET: 0-1400px
   Include iPad Pro 12.9" fullscreen (1366px CSS)
   Desktop 1401px+ (monitor 1440px+)
   ======================================== */

@media (max-width: 1024px) {
    
    /* HAMBURGER BUTTON */
    .mobile-menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 999999 !important; /* FIX: Massima priorità sopra tutto */
        position: relative;
    }
    
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
    }
    
    .hamburger-icon span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Hamburger animazione */
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* TOPBAR MOBILE */
    .topbar {
        position: sticky;
        top: 0;
        z-index: 99998; /* FIX: Sotto toggle ma sopra contenuto */
    }
    
    .topbar-content {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Logo centrato */
    .site-logo,
    .topbar-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
    
    .site-logo a,
    .topbar-logo a {
        font-size: 1.5rem;
    }
    
    .site-logo img,
    .topbar-logo img {
        max-height: 35px;
    }
    
    /* Nascondi elementi desktop */
    .topbar-social {
        display: none !important;
    }
    
    .main-header {
        display: none !important;
    }
    
    .news-ticker {
        display: none !important;
    }
    
    /* MOBILE MENU SIDEBAR */
    /* MOBILE MENU FULLSCREEN - Design pulito e professionale */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100vh; /* min-height invece di height per Safari iOS */
        height: auto; /* auto per permettere flexbox di calcolare correttamente */
        background-color: rgba(0, 0, 0, 0.97); /* Nero solido, no gradienti */
        z-index: 99997;
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* NON intercettare click quando chiuso */
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centratura verticale automatica */
        align-items: center; /* Centratura orizzontale automatica */
        overflow-y: auto;
        padding: 80px 20px 20px; /* Top per header, lati per safety */
    }
    
    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Riattiva click quando aperto */
    }
    
    .mobile-menu-items {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
        max-width: 400px; /* Ridotto per look più compatto */
    }
    
    .mobile-menu-items li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-items li:last-child {
        border-bottom: none; /* Pulito senza bordo finale */
    }
    
    .mobile-menu-items a {
        display: block;
        padding: 0.8rem 1.5rem; /* Ridotto da 1.2rem 2rem per compattare */
        color: #fff;
        text-decoration: none;
        font-size: 0.95rem; /* Ridotto da 1.1rem per vedere social e scroll */
        font-weight: 600;
        transition: color 0.2s, background-color 0.2s;
        text-align: center;
    }
    
    .mobile-menu-items a:hover,
    .mobile-menu-items .current-menu-item a {
        background-color: rgba(255, 255, 255, 0.1); /* Sottile highlight, no rosso */
        color: #fff;
    }
    
    /* Social nel menu mobile */
    .mobile-menu-social {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 2rem 1.5rem 0;
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-social a {
        width: 44px;
        height: 44px;
        background-color: rgba(255, 255, 255, 0.1); /* Pulito, no colori */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
        transition: background-color 0.2s, transform 0.2s;
    }
    
    .mobile-menu-social a:hover {
        background-color: rgba(255, 255, 255, 0.2); /* Subtle hover */
        transform: scale(1.05);
    }
    
    .mobile-menu-social a svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }
    
    .mobile-menu-social a i {
        font-size: 18px;
    }
    
    /* Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%  ;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        pointer-events: none; /* NON intercettare click quando chiuso */
        transition: all 0.3s ease;
        z-index: 99996; /* FIX: Sotto menu ma sopra contenuto */
        display: block;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto; /* Attiva click quando aperto */
    }
    
    /* HERO SLIDER MOBILE */
    .hero-slider {
        display: block !important;
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-bottom: 2rem;
        background-color: #000;
    }
    
    .hero-slides {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    
    .hero-slide {
        min-width: 100%;
        flex-shrink: 0;
        position: relative;
    }
    
    .hero-slide-image {
        width: 100%;
        height: 0;
        padding-bottom: 50%; /* FIX: Ridotto da 56.25% (16:9) a 50% (2:1) per mobile */
        position: relative;
        overflow: hidden;
        background-color: #000;
    }
    
    .hero-slide-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .hero-slide-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
        padding: 2rem 1.2rem 1.5rem;
    }
    
    .hero-slide-category {
        display: inline-block;
        background-color: var(--color-primary); /* FIX: Usa colore primario tema invece di rosso fisso */
        color: #fff;
        padding: 5px 14px;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.8rem;
        border-radius: 2px;
    }
    
    .hero-slide-title {
        color: #fff;
        font-size: 1.4rem;
        font-weight: 800;
        line-height: 1.3;
        margin: 0;
        text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .hero-slide-title a {
        color: #fff;
        text-decoration: none;
    }
    
    /* Slider dots */
    .hero-slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 1.2rem 0;
        background-color: #000;
    }
    
    .hero-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
    }
    
    .hero-slider-dot.active {
        background-color: var(--color-primary); /* Usa colore primario tema */
        width: 28px;
        border-radius: 4px;
    }
    
    /* HOME LAYOUT MOBILE */
    .home-layout {
        display: block !important;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .home-main {
        width: 100%;
    }
    
    /* GRID 1 COLONNA */
    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* WIDGET 1 COLONNA */
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* FOOTER MOBILE - gestito in footer.css */
}

/* DESKTOP: Nascondi elementi mobile (solo sopra 1024px) */
/* Hero slider: nascosto su desktop vero (1025px+) */
@media (min-width: 1401px) {
    .hero-slider {
        display: none !important;
    }
}

/* Hamburger e menu mobile: nascosti da 1025px in su (desktop) */
@media (min-width: 1401px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Tablet: Hero slider ancora più compatto su iPad */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-slide-image {
        padding-bottom: 50%; /* FIX v1.6.9: Stessa proporzione del cellulare (era 35% troppo stretto) */
    }
}

/* Dark mode mobile */
body.dark-mode .mobile-menu {
    background-color: #0a0a0a;
}

body.dark-mode .mobile-menu-items a {
    color: #f5f5f5;
}

body.dark-mode .hero-slider-dots {
    background-color: #0a0a0a;
}
    
    /* ULTIME NOTIZIE MOBILE (compatte) */
    .mobile-latest-news {
        margin-bottom: 2rem;
        background-color: var(--color-bg-light);
        padding: 1.5rem 1rem;
        border-radius: 4px;
    }
    
    .mobile-section-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .mobile-section-title {
        font-size: 1rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--color-text);
        margin: 0;
        border-left: 4px solid var(--color-primary);
        padding-left: 10px;
        line-height: 1.2;
    }
    
    .mobile-section-title::before {
        display: none;
    }
    
    /* .mobile-section-link rimosso (link non più presenti) */
    
    .mobile-news-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-news-item {
        display: flex;
        gap: 1rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .mobile-news-item:last-child {
        border-bottom: none;
    }
    
    .mobile-news-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .mobile-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-news-content {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-news-category {
        font-size: 0.7rem;
        font-weight: bold;
        color: var(--color-primary);
        text-transform: uppercase;
        margin-bottom: 0.3rem;
    }
    
    .mobile-news-title {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
    }
    
    .mobile-news-title a {
        color: var(--color-text);
        text-decoration: none;
    }
    
    .mobile-news-meta {
        font-size: 0.7rem;
        color: var(--color-text-light);
        margin-top: 0.3rem;
    }
    
    /* PIÙ LETTI MOBILE */
    .mobile-popular {
        margin-bottom: 2rem;
        background-color: var(--color-bg-light);
        padding: 1.5rem 1rem;
        border-radius: 4px;
    }
    
    /* Dark mode */
    body.dark-mode .mobile-latest-news,
    body.dark-mode .mobile-popular {
        background-color: #2a2a2a;
    }
    
    body.dark-mode .mobile-news-item {
        border-bottom-color: rgba(255,255,255,0.1);
    }
    
    body.dark-mode .mobile-section-title {
        color: #f0f0f0;
    }
    
    body.dark-mode .mobile-section-link {
        color: #ff6b75;
    }
    
    body.dark-mode .mobile-news-title a {
        color: #f5f5f5;
    }
    
    /* Logo nel menu mobile */
    .mobile-menu-logo {
        padding: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1rem;
    }
    
    .mobile-menu-logo a {
        color: #fff;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: bold;
    }
    
    .mobile-menu-logo img {
        max-height: 40px;
        width: auto;
        display: inline-block;
    }
    
    body.dark-mode .mobile-menu-logo {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

/**
 * HIDE DESKTOP LAYOUT SU MOBILE/TABLET
 */
/**
 * HIDE DESKTOP LAYOUT SU MOBILE/TABLET
 * Changed from 1400px to 1024px - monitor 1366px should show desktop layout
 */
@media (max-width: 1024px) {
    .home-layout {
        display: none !important;
    }
}

/**
 * MENU DESKTOP — nascosto sotto 1024px (tablet e mobile)
 * Changed from 1366px to 1024px for consistency
 */
@media (max-width: 1024px) {
    .main-header {
        display: none !important;
    }
    
    .news-ticker {
        display: none !important;
    }
    
    /* Social topbar visibili solo su desktop vero */
    .topbar-social {
        display: none !important;
    }
}

/**
 * SHOW DESKTOP LAYOUT SOLO SU DESKTOP (>1024px)
 */
@media (min-width: 1025px) {
    .mobile-latest-news,
    .mobile-popular {
        display: none !important;
    }
}

/**
 * SINGLE POST MOBILE/TABLET (layout 1 colonna)
 */
@media (max-width: 1024px) {
    /* Layout 1 colonna */
    .single-post-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: var(--spacing-lg) 0 !important;
    }
    
    /* Container con meno padding laterale su mobile */
    .single-post-layout .container,
    body.single .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Nascondi sidebar */
    .single-sidebar {
        display: none !important;
    }
    
    /* Titolo più piccolo */
    .article-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* Immagine featured full width */
    .article-featured-image {
        margin: 0 -1rem !important;
        border-radius: 0 !important;
    }
    
    /* Social share mobile friendly */
    .social-share {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #fff !important;
        padding: 1rem !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        z-index: 100 !important;
        margin: 0 -1rem !important;
    }
    
    .social-share-btn {
        font-size: 1.2rem !important;
        padding: 0.75rem !important;
    }
}

/**
 * CATEGORY MOBILE/TABLET
 */
@media (max-width: 1024px) {
    /* Hero full width */
    .category-hero-image {
        height: 300px !important;
    }
    
    .category-hero-title {
        font-size: 1.5rem !important;
    }
    
    .category-hero-excerpt {
        display: none !important;
    }
    
    /* List 1 colonna */
    .category-list-content {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    
    .category-list-image {
        margin-bottom: 1rem !important;
    }
    
    .category-list-title {
        font-size: 1.25rem !important;
    }
}

/* =======================
   CORRELATI INLINE MOBILE
   ======================= */
@media (max-width: 767px) {
    .related-articles-grid {
        grid-template-columns: 1fr !important;
    }
    
    .related-articles-inline {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .related-articles-inline .related-title {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =======================
   AUTHOR PAGE MOBILE FIX
   Force articles visibility
   ======================= */
@media (max-width: 1024px) {
    .author-articles-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .author-articles-grid .article-card,
    .author-articles-grid article,
    .author-articles-grid > * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }
}

/* =======================
   TAGS MOBILE - Touch friendly
   ======================= */
@media (max-width: 768px) {
    .article-tags {
        position: relative;
        z-index: 1; /* Ensure above any background elements */
        padding-bottom: var(--spacing-xl);
    }
}

/* =======================
   FIX TAGS MOBILE - EXTRA AGGRESSIVE
   Assicura che i tag siano cliccabili
   ======================= */
@media (max-width: 768px) {
    /* Tags - massima priorità e spazio */
    .article-tags {
        position: relative;
        z-index: 10 !important; /* Molto alto */
        margin-bottom: var(--spacing-2xl) !important;
        padding-bottom: var(--spacing-xl) !important;
    }
    
    .tags-list {
        position: relative;
        z-index: 11 !important;
    }
    
    .tag-link {
        padding: 10px 16px !important; /* Ridotto da 12px 18px */
        font-size: 0.85rem !important; /* Ridotto da 0.95rem */
        min-height: 42px !important; /* Ridotto da 48px */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 12 !important;
        pointer-events: auto !important; /* Forzato */
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(232, 72, 85, 0.2) !important;
        margin-bottom: 8px !important; /* Spazio tra righe */
    }
    
    /* Author box - assicura che non si sovrapponga */
    .author-box {
        position: relative;
        z-index: 5; /* Più basso dei tag */
        margin-top: var(--spacing-2xl) !important;
        clear: both; /* Evita float overlap */
    }
}

/* =======================
   MOBILE SINGLE POST - SIZE ADJUSTMENTS
   v1.6.53 - Riduci H1 e contenuto per migliore leggibilità mobile
   ======================= */
@media (max-width: 768px) {
    /* H1 più piccolo su mobile */
    .article-title {
        font-size: 1.5rem !important; /* Da 1.75rem a 1.5rem = 24px */
        line-height: 1.3 !important;
    }
    
    /* Contenuto articolo più piccolo */
    .article-content {
        font-size: 0.95rem !important; /* Da 1rem a 0.95rem = 15.2px */
        line-height: 1.7 !important;
    }
    
    /* Headings nel contenuto proporzionati */
    .article-content h2 {
        font-size: 1.4rem !important;
    }
    
    .article-content h3 {
        font-size: 1.2rem !important;
    }
    
    /* Twitter/X embed fix - force responsive */
    .article-content .twitter-tweet,
    .article-content .twitter-tweet-rendered,
    .article-content iframe[src*="twitter.com"],
    .article-content iframe[src*="x.com"],
    .article-content blockquote.twitter-tweet {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* IMPORTANTE: NO text-align automatico - utente decide */
    .article-content,
    .article-content p,
    .article-content div {
        text-align: left !important; /* Default left, utente può override con editor */
    }
    
    /* Mantieni allineamenti impostati dall'utente */
    .article-content .aligncenter {
        text-align: center !important;
    }
    
    .article-content .alignright {
        text-align: right !important;
    }
    
    .article-content .alignleft {
        text-align: left !important;
    }
}
/**
 * MOBILE FIXES - Header compatto, Menu moderno, Dark mode
 */

/* ================================================
   MENU MOBILE/TABLET - Stili base (max 1024px)
   Funzionano sia su mobile che tablet
   ================================================ */

/* Il pannello menu - nascosto di default, fullscreen */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh; /* min-height invece di height per Safari iOS */
    height: auto; /* auto per permettere flexbox di calcolare correttamente */
    z-index: 99997 !important;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.97); /* Nero solido pulito */
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* NON intercettare click quando chiuso */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centratura verticale automatica */
    align-items: center; /* Centratura orizzontale automatica */
    padding: 80px 20px 20px; /* Top per header, lati per safety */
}

.mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important; /* Riattiva click quando aperto */
}

/* CRITICO: Assicura visibilità elementi interni menu (GLOBALE - tutte le dimensioni) */
.mobile-menu-items {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center !important; /* CENTRATO */
    width: 100% !important;
    max-width: 400px !important;
}

.mobile-menu-items li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-items a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
}

.mobile-menu-social {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-social a {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #fff !important;
}

.mobile-menu-search {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hamburger icon - stili globali (visibili su mobile E tablet) */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 17px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center !important; /* CENTRATO */
    width: 100% !important;
    max-width: 400px !important;
}

.mobile-menu-items li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-items a {
    display: block;
    padding: 0.8rem 1.5rem; /* Ridotto per compattare menu */
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem; /* Ridotto per vedere social */
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s;
    text-align: center !important; /* CENTRATO */
}

.mobile-menu-items a:hover,
.mobile-menu-items .current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.1); /* Pulito, no colori */
    color: #fff;
}

/* Social nel menu */
.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

.mobile-menu-social a {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.mobile-menu-social a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Subtle hover */
}

.mobile-menu-social a svg { width: 18px; height: 18px; fill: currentColor; }
.mobile-menu-social a i { font-size: 18px; }

/* Overlay oscuramento */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* NON intercettare click quando chiuso */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99996 !important; /* FIX CRITICO: Allineato a mobile.css invece di 1099 */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Attiva click quando aperto */
}

/* Logo dentro menu */
.mobile-menu-logo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
}

.mobile-menu-logo img { max-height: 28px; }
.mobile-menu-logo a { font-size: 1.2rem; font-weight: 800; color: #fff; text-decoration: none; }

body.dark-mode .mobile-menu {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Search nel menu mobile */
.mobile-menu-search {
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-search-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    transition: border-color 0.2s;
}

.mobile-search-inner:focus-within {
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.15);
}

.mobile-search-inner svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
}

.mobile-search-inner input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    min-width: 0;
}

.mobile-search-inner input::placeholder {
    color: rgba(255,255,255,0.45);
}

.mobile-search-inner button {
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.mobile-search-inner button:hover {
    background: #c73540;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    
    /* ========================
       1. HEADER MOBILE ULTRA COMPATTO
       ======================== */
    
    .topbar {
        padding: 0 !important;
        min-height: 56px !important;
        box-shadow: none !important;
    }
    
    /* Padding laterale topbar - icone non toccano i bordi */
    .topbar .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .topbar-content {
        min-height: 56px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .site-logo a,
    .topbar-logo a {
        font-size: 1.2rem !important;
    }
    
    .site-logo img,
    .topbar-logo img {
        max-height: 28px !important;
    }
    
    /* Hamburger compatto e allineato */
    .mobile-menu-toggle {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Dark mode toggle compatto e allineato */
    .dark-mode-toggle {
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Logo centrato esattamente */
    .topbar-logo,
    .site-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* Elimina social sinistra su mobile (troppo affollato) */
    .topbar-social {
        display: none !important;
    }
    
    /* ========================
       2. MENU MOBILE FULLSCREEN (anche su smartphone)
       ======================== */
    
    /* Nessuna ridefinizione del contenitore - usa CSS base fullscreen */
    
    /* ASSICURA che gli elementi interni siano VISIBILI */
    .mobile-menu-items {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important; /* CENTRATO */
        width: 100% !important;
        max-width: 400px !important;
    }
    
    /* Menu items puliti e professionali */
    .mobile-menu-items a {
        display: block !important;
        color: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0.8rem 1.5rem !important; /* Ridotto per compattare */
        font-size: 0.95rem !important; /* Ridotto per vedere social */
        transition: background-color 0.2s ease !important;
        text-align: center !important; /* CENTRATO */
    }
    
    .mobile-menu-items a:hover,
    .mobile-menu-items .current-menu-item a {
        background-color: rgba(255, 255, 255, 0.1) !important; /* Pulito, no gradienti */
    }
    
    .mobile-menu-items li {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Social menu pulito */
    .mobile-menu-social {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 2rem 1.5rem 0 !important;
        margin-top: 2rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .mobile-menu-social a {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.1) !important; /* Pulito, no colori */
        border-radius: 50% !important;
        transition: background-color 0.2s ease !important;
    }
    
    .mobile-menu-social a:hover {
        background-color: rgba(255, 255, 255, 0.2) !important; /* Subtle hover */
    }
    
    /* Overlay pulito */
    .mobile-menu-overlay {
        background-color: rgba(0, 0, 0, 0.6) !important;
        transition: opacity 0.3s ease !important;
    }
    
    /* ========================
       3. SOCIAL SHARE DARK MODE
       ======================== */
    
    body.dark-mode .social-share {
        background: #1a1a1a !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    body.dark-mode .social-share-btn {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }
    
    body.dark-mode .social-share-btn:hover {
        background-color: rgba(232, 72, 85, 0.2) !important;
    }
    
    /* Sticky social share moderno */
    .social-share {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    body.dark-mode .social-share {
        background: rgba(26, 26, 26, 0.95) !important;
        backdrop-filter: blur(10px);
    }
    
    /* ========================
       4. ANIMAZIONI EXTRA
       ======================== */
    
    /* Hamburger animato */
    .mobile-menu-toggle {
        transition: transform 0.3s ease !important;
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.9) !important;
    }
    
    /* Logo animato on scroll */
    .topbar.scrolled .topbar-logo {
        transform: translateX(-50%) scale(0.9) !important;
        transition: transform 0.3s ease !important;
    }
}

/* ========================
   TABLET ADJUSTMENTS
   iPad mini → iPad Pro landscape (768-1366px)
   ======================== */

@media (min-width: 768px) and (max-width: 1024px) {
    
    /* Mostra hamburger su tablet */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 999999 !important; /* FIX CRITICO: Allineato a mobile.css */
    }
    
    .topbar {
        padding: 0 !important;
        min-height: 70px !important;
    }
    
    /* Padding laterale tablet */
    .topbar .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    .topbar-content {
        min-height: 70px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Logo centrato su tablet */
    .topbar-logo,
    .site-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .site-logo a,
    .topbar-logo a {
        font-size: 1.4rem !important;
    }
    
    .site-logo img,
    .topbar-logo img {
        max-height: 32px !important;
    }
    
    /* Hero slider visibile anche su tablet */
    .hero-slider {
        display: block !important;
        position: relative;
        width: 100%;
        overflow: hidden;
        margin-top: 1rem;
        margin-bottom: 2rem;
        background-color: #000;
        border-radius: 8px;
    }
    
    .hero-slides {
        display: flex;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    
    .hero-slide {
        min-width: 100%;
        position: relative;
    }
    
    .hero-slide-image {
        position: relative;
        width: 100%;
        padding-bottom: 50% !important; /* FIX v1.6.9: Stessa proporzione cellulare (era 35% troppo stretto) */
        padding-top: 0 !important;
        overflow: hidden;
    }
    
    .hero-slide-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .hero-slide-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
        padding: 2.5rem 2rem 2rem;
    }
    
    .hero-slide-category {
        display: inline-block;
        background-color: var(--color-primary); /* FIX: Usa colore primario tema */
        color: #fff;
        padding: 5px 14px;
        font-size: 0.8rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.8rem;
    }
    
    .hero-slide-title {
        font-size: 1.75rem;
        line-height: 1.3;
        color: #fff;
        font-weight: 800;
    }
    
    .hero-slide-title a {
        color: #fff;
        text-decoration: none;
    }
    
    /* Dots slider tablet */
    .hero-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 1rem 0;
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(0,0,0,0.2);
        cursor: pointer;
        border: none;
        padding: 0;
    }
    
    .hero-slider-dot.active {
        background-color: var(--color-primary); /* Usa colore primario tema */
        width: 24px;
        border-radius: 5px;
    }
    
    /* Sezioni mobile visibili anche su tablet */
    .mobile-latest-news,
    .mobile-popular {
        display: block !important;
    }
    
    /* Nascondi main-header (menu desktop) su tablet */
    .main-header {
        display: none !important;
    }
    
    /* SIMMETRIA: stessa distanza dai bordi */
    .mobile-menu-toggle {
        padding: 0 !important;
        margin-left: 0 !important;
    }
    
    .topbar-right {
        padding-right: 0 !important;
    }
    
    /* Hamburger visibile su tablet */
    .mobile-menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    /* Nascondi menu desktop su tablet */
    .main-nav {
        display: none !important;
    }
    
    /* Menu slide visibile su tablet */
    .mobile-menu {
        display: flex !important; /* FLEX per mantenere centratura! */
    }
}

/**
 * FIX AGGIUNTIVI - Spazi e layout
 */
@media (max-width: 767px) {
    
    /* Rimuovi ogni gradiente/ombra dal topbar */
    .topbar,
    .topbar::before,
    .topbar::after {
        background-image: none !important;
        box-shadow: none !important;
    }
    
    /* Nascondi main-header (menu desktop) su mobile - causa la sfumatura! */
    .main-header {
        display: none !important;
    }
    
    /* SIMMETRIA: hamburger e toggle stessa distanza dai bordi */
    .mobile-menu-toggle {
        padding: 0 !important;
        margin-left: 0 !important;
    }
    
    .topbar-right {
        padding-right: 0 !important;
    }
    
    /* Riduci spazio header -> H1 single post */
    .single-post-layout {
        padding-top: 1rem !important;
    }
    
    .article-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .article-title {
        margin-top: 0 !important;
    }
    
    /* Hero homepage con spazio dall'header (simmetrica) */
    .hero-slider {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .home-page .container {
        padding-top: 0 !important;
    }
}

/* Footer tablet: gestito in footer.css */