/*
Theme Name:     Vlog Child
Theme URI:      https://mekshq.com/theme/vlog
Description:    Child theme for the Vlog theme
Author:         meks
Author URI:     https://mekshq.com
Template:       vlog
Version:        0.1.0
*/

h1, h2, h3, h4 ,h5, h6 {letter-spacing: -0.03em;}
.vlog-header-middle .site-title img {
    max-height: 54px;
    margin-left: 5px;
}
.vlog-sticky-header .site-description {display:none}
.vlog-lay-a .entry-meta {margin-bottom: 5px;}
.vlog-lay-c .entry-meta {margin-bottom: 5px;}
.vlog-site-footer .mks_col {margin: 0 0 38px 0;}
.vlog-related-wrapper .vlog-lay-c .entry-content {display:none}
.vlog-ll-empty, .vlog-wl-empty {width: 180px;}
.mks_author_widget {text-align: initial;}
.comment-form-author, .comment-form-email {width: 50%;}
.comment-form-email {padding: 0px;}
.comment-form-cookies-consent label {margin-bottom: -2px;}
.vlog-sidebar .fbframe {padding: 0px;}
.vlog-site-footer .mks_author_widget {text-align: initial;}
.vlog-author .avatar, .vlog-rounded-photo {border-radius: 0%;}
.vlog-bg-box {padding: 36px 36px 30px 36px;}

@media (max-width: 450px) {
.action-item, .vlog-featured .action-item, .vlog-featured-info-2 .action-item, .vlog-format-inplay .action-item {width: 114px;}
.vlog-highlight .entry-title {padding-right: 0px;}
}
@media (max-width: 991px) {
.site-title img {max-height: 36px;}
}
@media (max-width: 767px) {
.vlog-comments {margin-top: 20px;}
.vlog-author .vlog-rounded-photo {margin-bottom: 0px;}
.vlog-bg-box {padding: 16px 36px 36px 36px;}
.vlog-ll-empty, .vlog-wl-empty {width: 330px;}
.vlog-site-footer .linkf {text-align:center;}
.comment-form-author, .comment-form-email, .comment-form-url {width: 100%;}
.vlog-bg-box {padding: 18px 18px 24px 18px!important;}
.vlog-author .vlog-rounded-photo {margin-bottom: 10px!important;}
.vlog-author .vlog-mod-head {display: none!important;}
}

/* Introduzione editoriale articolo (.entry-headline.h4) */
.single .entry-headline.h4 {
	font-weight: 400;
	font-size: 1.22em;
	line-height: 1.62;
	letter-spacing: -0.01em;
	color: #3f4a56;
	border-left: 3px solid #66AB01;
	padding: 4px 0 4px 18px;
	margin: 18px 0 28px 0;
}

.single .entry-headline.h4::before {
	content: "In questo articolo";
	display: block;
	font-size: 11px;
	font-weight: 700;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #66AB01;
	margin-bottom: 6px;
}

/* Stile .vlog-highlight (Avorio + bordo superiore verde #66AB01) */
.vlog-highlight {
	background: #f7f7f7 !important;
	color: #374151 !important;
	border: 1px solid #e7e5dc !important;
	border-top: 3px solid #66AB01 !important;
	border-radius: 6px !important;
}

.vlog-highlight .widget-title,
.vlog-highlight .widget-title span,
.vlog-highlight .entry-title,
.vlog-highlight .entry-title a,
.vlog-highlight h1,
.vlog-highlight h2,
.vlog-highlight h3,
.vlog-highlight h4,
.vlog-highlight h5,
.vlog-highlight h6,
.widget.vlog-highlight ul li a,
.vlog-highlight .action-item {
	color: #1f2937 !important;
}

.vlog-highlight .entry-title a:hover,
.vlog-highlight .entry-category a:hover,
.vlog-highlight .meta-item a:hover,
.widget.vlog-highlight ul li a:hover,
.vlog-highlight .action-item:hover,
.vlog-highlight .action-item:focus,
.vlog-highlight .action-item.comments:hover,
.vlog-highlight .action-item.comments:focus {
	color: #66AB01 !important;
	opacity: 1 !important;
}

/* Impedisce a jQuery (main.js) di attenuare titolo, categorie e meta con opacity: 0.4 su hover azioni */
.vlog-highlight .entry-header,
.vlog-highlight .entry-header > *,
.vlog-highlight .entry-actions,
.vlog-highlight .entry-actions > * {
	opacity: 1 !important;
}

.vlog-highlight .entry-category,
.vlog-highlight .entry-category a,
.vlog-highlight .meta-item,
.vlog-highlight .meta-item a,
.vlog-highlight .meta-item span {
	color: #6b7280 !important;
}

.vlog-highlight .widget-title {
	border-bottom-color: #e7e5dc !important;
}

/* Ottimizzazioni mobile header e titolo articolo */
@media (max-width: 991px) {
	#vlog-responsive-header .site-description {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.single .vlog-featured-1 .entry-actions,
	.single .entry-header + .entry-actions {
		display: flex !important;
		justify-content: center;
		align-items: flex-start;
		gap: 10px;
		flex-wrap: nowrap;
		padding: 12px 0 0 !important;
	}

	.single .vlog-featured-1 .entry-actions .action-item,
	.single .entry-header + .entry-actions .action-item {
		width: auto !important;
		flex: 0 1 auto;
		padding: 0 4px !important;
		font-size: clamp(8.5px, 2.5vw, 10px);
		white-space: nowrap;
	}
}

/* Scheda autore a fine articolo: nasconde titolo mantenendo solo logo e descrizione */
#vlog-author .vlog-mod-head,
#vlog-author .author-title {
	display: none !important;
}

@media (min-width: 768px) {
	#vlog-author .vlog-author.row {
		display: flex;
		align-items: center;
	}
	#vlog-author .vlog-author.row::before,
	#vlog-author .vlog-author.row::after {
		display: none !important;
	}
	#vlog-author .vlog-author > div:first-child {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#vlog-author .vlog-author .avatar,
	#vlog-author .vlog-author .vlog-rounded-photo {
		display: block;
		margin: 0 auto;
	}
}

/* Spaziatura verticale tra le voci degli elenchi puntati e numerati lato frontend */
.entry-content-single ul:not(.wp-block-gallery):not(.blocks-gallery-grid) li:not(:last-child),
.entry-content-single ol li:not(:last-child),
.page .entry-content ul:not(.wp-block-gallery):not(.blocks-gallery-grid) li:not(:last-child),
.page .entry-content ol li:not(:last-child) {
	margin-bottom: 6px;
}

.entry-content-single li > ul,
.entry-content-single li > ol,
.page .entry-content li > ul,
.page .entry-content li > ol {
	margin-top: 6px;
}

/* ==========================================================================
   Rifinitura tipografica e grafica della sola Homepage (body.home .vlog-section)
   ========================================================================== */

/* 1. Intestazioni sezioni magazine + filetto + prevenzione sovrapposizioni su mobile */
body.home .vlog-section .vlog-mod-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-top: 0;
	margin-bottom: 26px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e5e7eb;
}

body.home .vlog-section .vlog-mod-title {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

body.home .vlog-section .vlog-mod-title h4,
body.home .vlog-section .vlog-mod-title .h4 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	margin: 0;
}

body.home .vlog-section .vlog-mod-title h4::after,
body.home .vlog-section .vlog-mod-title .h4::after {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	background-color: #66AB01;
	margin-top: 8px;
	border-radius: 2px;
}

/* Separatore categorie con slash verde primario proporzionato ai link (12px, peso normale) */
.entry-category .sa-cat-sep {
	font-size: 12px;
	line-height: 20px;
	font-weight: 400;
	color: #66AB01;
}

/* 2. Pulsanti "Vedi tutte" e controlli slider nelle sezioni della homepage */
body.home .vlog-section .vlog-mod-actions {
	float: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	flex-shrink: 0;
}

body.home .vlog-section .vlog-mod-actions .vlog-all-link {
	float: none;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.1;
	padding: 8px 14px;
	border: 1.5px solid #66AB01;
	border-radius: 3px;
	letter-spacing: 0.03em;
	color: #4d8300;
	background-color: transparent;
}

body.home .vlog-section.vlog-bg .vlog-mod-actions .vlog-all-link {
	background-color: #ffffff;
}

body.home .vlog-section .vlog-mod-actions .vlog-all-link:hover,
body.home .vlog-section .vlog-mod-actions .vlog-all-link:focus,
body.home .vlog-section.vlog-bg .vlog-mod-actions .vlog-all-link:hover,
body.home .vlog-section.vlog-bg .vlog-mod-actions .vlog-all-link:focus {
	color: #ffffff;
	background-color: #66AB01;
	border-color: #66AB01;
}

body.home .vlog-section .vlog-slider-controls {
	float: none;
	display: inline-flex;
	align-items: center;
	margin: 0;
}

body.home .vlog-section .vlog-slider-controls .owl-prev,
body.home .vlog-section .vlog-slider-controls .owl-next {
	height: 28px;
	width: 28px;
	padding: 4px 0;
	margin-top: 0;
}

/* 3. Rimozione badge "Nuovo articolo" e indicazioni temporali nelle card Posts della sola homepage */
body.home .vlog-section .module-posts .vlog-post .entry-meta,
body.home .vlog-section .module-posts .vlog-post .sa-new-article-meta,
body.home .vlog-section .module-posts .vlog-post .sa-recent-article-meta {
	display: none !important;
}

/* 4. Migliore leggibilità e stacco dal titolo delle descrizioni (excerpt) nelle card */
.vlog-post .entry-content {
	margin-top: 5px;
}

body.home .vlog-section .module-posts .vlog-post .entry-content,
body.home .vlog-section .module-posts .vlog-post .entry-content p {
	font-size: 14.5px;
	line-height: 1.62;
}

/* 5. Card, thumbnail, micro-zoom hover e badge VIDEO */
body.home .vlog-section .module-posts .vlog-post .entry-image {
	border-radius: 6px;
	overflow: hidden;
}

body.home .vlog-section .module-posts .vlog-post .entry-image img {
	transition: transform 0.35s ease;
}

body.home .vlog-section .module-posts .vlog-post .entry-image:hover img {
	transform: scale(1.03);
}

body.home .vlog-section .module-posts .vlog-format-label {
	border-radius: 3px;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* 6. Bilanciamento verticale immagine/testo in Layout B (Curiosità sorprendenti) su desktop/tablet */
@media (min-width: 768px) {
	body.home .vlog-section .vlog-lay-b > .row {
		display: flex;
		align-items: center;
	}

	body.home .vlog-section .vlog-lay-b > .row::before,
	body.home .vlog-section .vlog-lay-b > .row::after {
		display: none;
	}

	body.home .vlog-section .vlog-lay-b:not(:last-child) {
		padding-bottom: 28px;
		border-bottom: 1px solid #eceef0;
	}
}

/* 7. Hero Slider: scrim di contrasto migliorato */
body.home .vlog-featured-3 .vlog-cover-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.24) 55%, rgba(0, 0, 0, 0.34) 100%);
	pointer-events: none;
}

@media (max-width: 767px) {
	body.home .vlog-section .vlog-mod-head {
		margin-bottom: 18px;
		padding-bottom: 12px;
		gap: 8px 12px;
	}

	body.home .vlog-section .vlog-mod-title h4,
	body.home .vlog-section .vlog-mod-title .h4 {
		font-size: 17px;
		line-height: 1.3;
	}

	body.home .vlog-section .vlog-mod-actions .vlog-all-link {
		font-size: 11.5px;
		padding: 7px 12px;
	}

	body.home .vlog-section.vlog-bg {
		padding-top: 28px;
		padding-bottom: 28px;
	}

	body.home .vlog-section .vlog-post {
		margin-bottom: 24px;
	}

	body.home .vlog-featured-3 .owl-prev,
	body.home .vlog-featured-3 .owl-next {
		width: 34px !important;
		height: 34px !important;
		line-height: 32px !important;
	}

	body.home .vlog-featured-3 .owl-prev {
		left: 6px !important;
	}

	body.home .vlog-featured-3 .owl-next {
		right: 6px !important;
	}
}

/* ==========================================================================
   Arrotondamento coerente (6px) per immagini contenuto, sidebar, correlati e scheda autore
   ========================================================================== */
.entry-content-single img:not(.wp-smiley):not(.emoji) {
	border-radius: 6px;
}

.single .entry-image,
.vlog-post .entry-image,
.vlog-sidebar .entry-image,
.vlog-related-wrapper .entry-image {
	border-radius: 6px;
	overflow: hidden;
}

.vlog-post .entry-image img,
.vlog-sidebar .entry-image img,
.vlog-related-wrapper .entry-image img {
	transition: transform 0.35s ease;
}

.vlog-post .entry-image:hover img,
.vlog-sidebar .entry-image:hover img,
.vlog-related-wrapper .entry-image:hover img {
	transform: scale(1.03);
}

#vlog-author.vlog-bg-box {
	border-radius: 6px;
}

/* ==========================================================================
   Step 1 — Scala gerarchica H1 / H2 / H3 nella pagina articolo (.single)
   ========================================================================== */
.single h1.entry-title {
	font-size: 32px;
	line-height: 1.22;
}

.single .entry-content-single h2 {
	font-size: 24px;
	line-height: 1.28;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 38px;
	margin-bottom: 14px;
}

.single .entry-content-single > h2:first-child {
	margin-top: 10px;
}

.single .entry-content-single h3 {
	font-size: 19px;
	line-height: 1.32;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-top: 28px;
	margin-bottom: 10px;
}

/* Step 3 — Corpo testo dell'articolo più leggibile (17px, interlinea 1.72) */
.single .entry-content-single,
.single .entry-content-single p,
.single .entry-content-single li {
	font-size: 17px;
	line-height: 1.72;
	color: #1f2937;
}

@media (max-width: 767px) {
	.single .entry-content-single,
	.single .entry-content-single p,
	.single .entry-content-single li {
		font-size: 16.5px;
		line-height: 1.68;
	}

	.single h1.entry-title {
		font-size: 26px;
		line-height: 1.25;
	}

	.single .entry-content-single h2 {
		font-size: 21px;
		line-height: 1.3;
		margin-top: 30px;
		margin-bottom: 12px;
	}

	.single .entry-content-single h3 {
		font-size: 18px;
		line-height: 1.35;
		margin-top: 24px;
		margin-bottom: 8px;
	}
}

/* Step 5 — Proporzione gerarchica nei correlati "Guarda anche" */
.single .vlog-related-wrapper .vlog-mod-title h4 {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.single .vlog-related-wrapper .vlog-post .entry-title {
	font-size: 18px;
	line-height: 1.32;
	font-weight: 700;
	letter-spacing: -0.01em;
}

@media (max-width: 767px) {
	.single .vlog-related-wrapper .vlog-post .entry-title {
		font-size: 17px;
		line-height: 1.34;
	}
}

/* Sidebar: peso e respiro più leggeri per i titoli dei post nei widget */
.vlog-sidebar .widget .entry-title,
.vlog-sidebar .widget .entry-title a {
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

/* Archivi di categoria: avvicina il sottotitolo al titolo e aumenta lo spazio verso il primo articolo */
body.category .vlog-mod-head {
	margin-bottom: 36px;
}

body.category .vlog-mod-head .vlog-mod-desc {
	margin-top: 6px;
}

body.category .vlog-mod-head .vlog-mod-desc p:first-child {
	margin-top: 0;
}
