/* ========================================================================================== */
/* VARIABILI
/* ========================================================================================== */
:root {
    --colore-main: #0069AF;
    --colore-secondario: #008be8;
    --colore-sfondo: #00223a;
}
body {
    font-family: 'Open Sans', sans-serif;    

}
body,
#navigazione {
    padding-right: 0 !important;
}
/* ========================================================================================== */
/* UTILITIES E TIPOGRAFIA
/* ========================================================================================== */
.bg-scuro {
    background-color: var(--colore-sfondo);
}
.text-black {
    color: black;
}
.text-accent {
    color: var(--colore-main);
}
.sans-serif {
    font-family: 'Open Sans', sans-serif !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}
h5 {
    font-size: 1.1rem;
}

.serif  {
    font-family: 'Playfair Display', serif !important;
}
#the-content p {
    font-size: 1.1rem;
    line-height: 2rem;
}
.rem1 {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}
.x2 {
    font-size: 1.5rem;
}
.x3 {
    font-size: 3rem;
}
.icona-menu,
.icona-ricerca,
.icona-commenti {
    font-size: 1.3rem !important;
}
#the-content > p:first-child:first-letter {
    color: var(--colore-main);
    float: left;
    font-size: 4rem;
    line-height: 4rem;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
}
a {
    color: var(--colore-main);
    transition: 1s;
    text-decoration: none;
}
a:hover {
    color: var(--colore-secondario);
}
.btn-underline {
    text-transform: uppercase;
    transform: 1s;
}
.btn-underline:hover {
    color: #ebebeb;
}
.btn-underline::after {
    content: "";
    display: block;
    border-bottom: 2px solid white;
    width: 30px;
    padding-top: 2px;
    margin: 0 auto;
}
.separatore-doppia-riga {
    border-bottom: 6px double #000;
}
.border-accent {
    border-color: var(--colore-main) !important;
}
.titolo-sezione {
    position: absolute; 
    font-size: 1rem;
    text-transform: uppercase; 
    font-weight: 800; 
    padding: 0 2rem; 
    transform: translate(-50%, -50%);
}
#logo {
    transition: 1s;
}
.logo-nonsticky {
    height: 70px;
}
.logo-sticky {
    height: 50px;
}
mark {
    background: none !important;
    padding: 0 !important;
}

.cardvideo {
	width: 300px; 
    height: 163px;
}
/* ========================================================================================== */
/* MENU DI NAVIGAZIONE
/* ========================================================================================== */
#icona-menu {
    color: white;
    transition: 1s;
}
#icona-menu:hover {
    color: var(--colore-main) !important;
}
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    border: none !important;
    outline: none;
    box-shadow: none;
}
#search-toggler {
    padding: .25rem .75rem;
}

#navbar {
    background-color: white;
}

#menu-principale li a {
    display: block;
    color: black;
    transition: 1s;
    padding: 6px 15px;
	font-size: 15px !important;
    font-weight: 300;
    border-bottom: 1px solid #ebebeb;
}

.offcanvas-header {
	padding: 0.5rem 15px !important;
}

#menu-principale li a:hover {
    background-color: var(--colore-main);
    color: white;
}
.dropdown-menu {
    background-color: #222222;
    border-radius: 0;
    padding: 0;
    border: 0;
}
.sottomenu-categorie a,
#menu-categorie li a,
.menu-footer li a {
    color: black;
    transition: 1s;
    text-transform: uppercase;
    font-size: .9rem;
}
.menu-footer li a {
    padding: .2rem 0;
}
#menu-categorie li a.nav-link {
    font-weight: 600 !important;
    padding: .5rem !important;
}
.sottomenu-categorie a:hover,
#menu-categorie li a:hover,
.menu-footer li a:hover {
    color: var(--colore-main);
}
/* ========================================================================================== */
/* SLIDER
/* ========================================================================================== */
.titolo-slide a {
    text-decoration: none;
}

/* ========================================================================================== */
/* BLOCCHI EDITORIALI
/* ========================================================================================== */
.home-data-articolo .data-giorno,
.single-data-articolo .data-giorno {
    font-size: 3rem;
    font-weight: 700;
    color: var(--colore-main);
    line-height: 2.2rem;
}
.home-data-articolo .data-mese,
.single-data-articolo .data-mese {
    font-size: .9rem;
    color: var(--colore-main);
}
.home-data-articolo .data-anno,
.single-data-articolo .data-anno {
    font-size:1rem;
    line-height: 1rem;
    color: var(--colore-main);
}
.home-titolo-articolo a {
    font-weight: 800;
    font-size: 1.6rem;
    color: black;
    text-decoration: none;
}
.home-titolo-articolo-small {
    font-size: 1rem;
    line-height: 1.5rem;
}
.home-titolo-articolo-small a {
    font-weight: 800;
    color: black;
    text-decoration: none;
    margin: 0;
    padding: 0;
}
.home-autore {
    font-size: .8rem;
    color: black;
    font-family: 'Open Sans', sans;
}
.home-leggi-tutto {
    color: var(--colore-main);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}
.home-leggi-tutto::after {
    content: "";
    display: block;
    border-bottom: 2px solid var(--colore-main);
    width: 30px;
    padding-top: 2px;
}
.single-categoria {
    text-transform: uppercase;
}
.thumb_lanci_secondari_home {
    width: 80px !important;
    height: 80px !important;
}

/* ========================================================================================== */
/* VIDEO
/* ========================================================================================== */
.overlay {
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(19,19,19,0.5) 50%, rgba(24,24,24,0.8) 100%);
    transition: 1s;
    z-index: 100;
    width: 100% !important;
    height: 100% !important;
}
.video-titolo {
    font-size: 1.3rem;
    font-weight: 800;
}
.video-metadati {
    font-size: .9rem;
}

.slick-next:before, .slick-prev:before {
    color: black !important;
}
.archive-meta-video {
    min-height: 80px;
}

.at-above-post {
    margin-bottom: 1rem !important;
}
.tweet-card-body {
    min-height: 240px !important;
}
.tweet-box-bg {
    background-color: #f2f2f2 !important;
}

.masthead_singola {
    height: 30vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}




/* ========================================================================================== */
/* ICONA LIVE VIDEO
/* ========================================================================================== */
  
.circle {
    width: 15px !important;
    height: 15px !important;
    position: relative;
    background-color: red;
    border-radius: 50%;
    -webkit-animation: pulsate 2s ease-out;
    -webkit-animation-iteration-count: infinite; 
}
@-webkit-keyframes pulsate {
    0% {opacity: 0.5;}
    50% {opacity: 1.0;}
    100% {opacity: 0.5;}
}


.flag-icon-background, .flag-icon {
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat; 
}
.flag-icon {
    position: relative;
    display: inline-block;
    width: 1.3333333333em;
    line-height: 1em; 
}
.flag-icon:before {
    content: " "; 
}
.flag-icon.flag-icon-squared {
    width: 1em; 
}
.flag-icon-gbr {
    background-image: url(../images/flags/4x3/gbr.svg); 
}
.flag-icon-gbr.flag-icon-squared {
    background-image: url(../images/flags/1x1/gbr.svg); 
}
  
aside .widget-box img {
	max-width:100% !important;
	height: auto !important;
}
  
.subtitle {
	color: #0069AF;
	position: absolute;
	top:-30px;
	width: 150px;
	left: 50%;
	margin-left: -75px;
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 800;
	text-align: center;
}  

.blue-wrapper {
	background-color: #2271B3;
	padding: 20px;
	margin-bottom: 30px;
}  
  
/* ============================================================================================================== */
/* MEDIAQUERY
/* ============================================================================================================== */
@media only screen and (min-width: 320px) and (max-width: 767px) {
	
	#menu-principale li a {
	    padding: 0.4rem 15px;
		font-size: 0.95rem !important;
	}
	
}  
@media only screen and (min-width: 768px) and (max-width: 1400px) {
	#menu-categorie li a {
		font-size: 0.75rem !important;
	}
	#menu-categorie li:first-child a {
	    padding-left: 0 !important;
	}
	#menu-categorie li:last-child a {
	    padding-right: 0 !important;
	}
	
}  

@media only screen and (min-width: 768px) and (max-width : 1024px) {
	#menu-categorie li a {
		font-size: 10px !important;
	}
}

.text-white a {
	color:white !important;
}

.large-rectangle-ads a {
	display:block;
	width:100%;
    text-align:center;
}

html body .nav .menu-item-23921 a,
html body #main .nav .menu-item-23921 a {
	padding: .5rem !important;
	color: white !important;
}

#header {
	z-index: 99 !important;
}


.slick-video {
    max-width: 100%;
    margin: 0 auto;
}

.video-slide {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border: 10px solid white;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================================================================== */
/* VIDEO FLOATING
/* ============================================================================================================== */
#floating-video-container {
	position: relative;
	top: 0;
	right: 0;
	z-index: 99999;
    width: 100%;
    height: 100%;
    background-color: #333;
}

#floating-video-container.floating-video-top {
	transform: translateY(0) scale(1);
}

#floating-video-container.floating-video-bottom {
	transform: translateY(var(--bottom-translate, calc(100vh - 220px))) scale(0.85);
}

#floating-video-wrapper {
	position: relative;
	overflow: hidden;
}


#floating-video-container.floating-video-bottom #floating-video-wrapper {
	width: 370px;
	max-width: calc(100vw - 40px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-video-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	background: rgba(0, 0, 0, 0.7);
	border: none;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	transition: background 0.2s ease;
	padding: 0;
}

.floating-video-close:hover {
	background: rgba(0, 0, 0, 0.9);
}

.floating-video-close svg {
	width: 16px;
	height: 16px;
}

.floating-video-player {
	width: auto;
	height: 100px;
	display: block;
	background: #000;
}

#floating-video-container.floating-video-top .floating-video-player {
	aspect-ratio: 16 / 9;
}

#floating-video-container.floating-video-bottom .floating-video-player {
	aspect-ratio: 16 / 9;
}

/* Responsive Mobile */
@media only screen and (max-width: 767px) {
	
	#floating-video-container.floating-video-top #floating-video-wrapper {
		width: 100%;
	}
	
	#floating-video-container.floating-video-bottom #floating-video-wrapper {
		width: 100%;
	}
	
	.floating-video-close {
		width: 28px;
		height: 28px;
		top: 6px;
		right: 6px;
	}
	
	.floating-video-close svg {
		width: 14px;
		height: 14px;
	}
}

/* Nascondi il video quando è chiuso */
#floating-video-container.floating-video-hidden {
	display: none !important;
}

/* ============================================================================================================== */
/* FLOATING VIDEO - HORIZONTAL LAYOUT
/* ============================================================================================================== */
.floating-video-horizontal-layout {
	display: flex;
	align-items: flex-start;
	background: #333;
	padding: 8px 12px;
	gap: 15px;
}

.live-indicator {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
    justify-content: flex-end;
}

.live-dot {
	width: 8px;
	height: 8px;
	background-color: #ff4444;
	border-radius: 50%;
	animation: livePulse 2s ease-in-out infinite;
}

.live-text {
	color: white;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.channel-info {
	flex-shrink: 0;
	text-align: left;
	line-height: 1.2;
}

.channel-name {
	color: var(--colore-secondario);
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}

.channel-type {
	color: var(--colore-secondario);
	font-size: 14px;
	font-weight: 400;
	opacity: 0.9;
	white-space: nowrap;
}

/* Logo Urania in grigio */
.logo-urania {
	filter: grayscale(100%) brightness(0.7);
	opacity: 0.3;
}

/* Animazione pallino lampeggiante */
@keyframes livePulse {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.4;
		transform: scale(0.8);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Responsive per mobile */
@media only screen and (max-width: 767px) {
	.floating-video-horizontal-layout {
		padding: 6px 10px;
		gap: 10px;
	}
	
	.live-dot {
		width: 7px;
		height: 7px;
	}
	
	.live-text {
		font-size: 10px;
	}
	
	#floating-video-wrapper {
		max-width: 200px;
	}
	
	.channel-name {
		font-size: 10px;
	}
	
	.channel-type {
		font-size: 9px;
	}
}
.page-link {
    color: #0069af !important;
}
.page-item.active .page-link {
    background-color: #0069af !important;
    border-color: #0069af !important;
    color: white !important;
}

.wp-block-gallery {
	display: grid;
	gap: 1.5rem;
	margin: 2rem 0;
}

.wp-block-gallery.columns-2 {
	grid-template-columns: repeat( 2, 1fr );
}

.wp-block-gallery.columns-default,
.wp-block-gallery.columns-3 {
	grid-template-columns: repeat( 3, 1fr );
}

.wp-block-gallery.columns-4 {
	grid-template-columns: repeat( 4, 1fr );
}

.wp-block-gallery.columns-5 {
	grid-template-columns: repeat( 5, 1fr );
}

.wp-block-gallery.columns-6 {
	grid-template-columns: repeat( 6, 1fr );
}

.wp-block-gallery.columns-7 {
	grid-template-columns: repeat( 7, 1fr );
}

.wp-block-gallery.columns-8 {
	grid-template-columns: repeat( 8, 1fr );
}

.wp-block-gallery.columns-9 {
	grid-template-columns: repeat( 9, 1fr );
}

.wp-block-gallery.columns-10 {
	grid-template-columns: repeat( 10, 1fr );
}

.wp-block-gallery.columns-11 {
	grid-template-columns: repeat( 11, 1fr );
}

.wp-block-gallery.columns-12 {
	grid-template-columns: repeat( 12, 1fr );
}

/* Stili per i blocchi immagine nella gallery */
.wp-block-gallery .wp-block-image {
	margin: 0;
	overflow: hidden;
	border-radius: 4px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wp-block-gallery .wp-block-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}


/* Stilizza le figcaption delle singole immagini */
.wp-block-image {
	position: relative;
	display: block;
	margin: 1.5rem 0;
	overflow: hidden;
}

.wp-block-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
	z-index: 1;
}

.wp-element-caption br {
	display: none !important;
}

.wp-block-image figcaption {
	display: block !important;
	pointer-events: none;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	color: #ffffff;
	padding: 0.5rem 0.5rem;
	font-size: 0.5rem;
	line-height: 1.6;
	font-weight: 500;
	margin: 0;
	z-index: 2;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	transition: all 0.3s ease;
}

.wp-block-image:hover figcaption {
	padding-bottom: 1.5rem;
}

.wp-block-image a {
	display: block;
	position: relative;
	z-index: 0;
}

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

/* Responsive: riduci gap su mobile */
@media (max-width: 768px) {
	.wp-block-gallery {
		gap: 1rem;
		margin: 1.5rem 0;
	}
}

/* ========================================================================================== */
/* PULSANTI SOCIAL SHARING
/* ========================================================================================== */
.ssbp-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
    justify-content: space-between;
	flex-direction: row;
	gap: 0.75rem;
}

.ssbp-li--facebook,
.ssbp-li--twitter,
.ssbp-li--linkedin,
.ssbp-li--whatsapp,
.ssbp-li--print {
	margin: 0;
	padding: 0;
    width: 100%;
}

.ssbp-btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.875rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.2;
	min-height: 48px;
	border: 1px solid transparent;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ssbp-btn:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-decoration: none;
}

.ssbp-btn:active {
	transform: translateX(2px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Icone */
.ssbp-btn > span:first-of-type {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 4px;
	background-color: rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
}

.ssbp-btn:hover > span:first-of-type {
	background-color: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

.ssbp-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ssbp-btn .color-icon {
	display: none;
}

/* Testo */
.ssbp-text {
	color: inherit;
	font-family: 'Open Sans', sans-serif;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: color 0.3s ease;
}

/* Facebook */
.ssbp-facebook {
	background-color: #4267B2 !important;
	color: #ffffff !important;
	border-color: #365899;
}

.ssbp-facebook:hover {
	background-color: #365899 !important;
	color: #ffffff !important;
}

/* Twitter */
.ssbp-twitter {
	background-color: #000000 !important;
	color: #ffffff !important;
	border-color: #1a1a1a;
}

.ssbp-twitter:hover {
	background-color: #1a1a1a !important;
	color: #ffffff !important;
}

/* LinkedIn */
.ssbp-linkedin {
	background-color: #0077b5 !important;
	color: #ffffff !important;
	border-color: #006399;
}

.ssbp-linkedin:hover {
	background-color: #006399 !important;
	color: #ffffff !important;
}

/* WhatsApp */
.ssbp-whatsapp {
	background-color: #25d366 !important;
	color: #ffffff !important;
	border-color: #20ba5a;
}

.ssbp-whatsapp:hover {
	background-color: #20ba5a !important;
	color: #ffffff !important;
}

/* Print */
.ssbp-print {
	background-color: #222222 !important;
	color: #ffffff !important;
	border-color: #1a1a1a;
}

.ssbp-print:hover {
	background-color: #1a1a1a !important;
	color: #ffffff !important;
}

/* Rimuovi stili inline che potrebbero interferire */
.ssbp-btn[style*="height"],
.ssbp-btn[style*="width"] {
	height: auto !important;
	width: auto !important;
}

/* Responsive iPad Air */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	.ssbp-list {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	
	.ssbp-list li {
		flex: 0 0 calc(33.333% - 0.5rem);
		max-width: calc(33.333% - 0.5rem);
	}

	#footer h4 {
		font-size: 18px !important;
	}

	#footer ul li,
	#footer ul li a {
		padding:0 !important;
		text-transform: none !important;
		font-size: 11px !important;
	}
	#menu-categorie li a.nav-link {
		padding: 0 !important;
		font-size: 11px !important;
        margin-bottom: 10px;
	}
	#footer p {
		font-size: 12px !important;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.ssbp-list {
		gap: 0.5rem;
		display: block !important;
	}

	.ssbp-list li {
		margin-bottom: 10px !important;
	}
	
	.ssbp-btn {
		padding: 0.625rem 0.875rem;
		min-height: 44px;
		font-size: 0.875rem;
		gap: 0.75rem;
	}
	
	.ssbp-btn > span:first-of-type {
		width: 28px;
		height: 28px;
	}
	
	.ssbp-btn svg {
		width: 16px;
		height: 16px;
	}
}