/* =============================================================
   9COLONNE — CSS di brand per il child theme JNews
   -------------------------------------------------------------
   Estratto/adattato da css/main-stylesheet.css e css/style.css
   del sito storico. I colori e i font principali sono già
   impostati nativamente via Theme Mod di JNews
   (vedi inc/customizer-defaults.php): questo file copre solo ciò
   che il pannello Customizer non gestisce — in particolare il
   linguaggio visivo "flat" (bordi netti, niente arrotondamenti,
   ombre minime) tipico del sito 9Colonne, che di default JNews
   rende invece più "morbido".
   ============================================================= */

:root {
	--nc9-red: #B03131;
	--nc9-red-dark: #8B2323;
	--nc9-anthracite: #232323;
	--nc9-text: #4b4b4b;
	--nc9-text-light: #8b8b8b;
	--nc9-border: rgba(0, 0, 0, 0.15);
	--nc9-bg-page: #f0efef;
	--nc9-bg-card: #ffffff;
}

/* -------------------------------------------------------------
   1) Layout generale — sfondo pagina "grigio carta" come originale
   ------------------------------------------------------------- */
body {
	background-color: var(--nc9-bg-page);
}

.jeg_container,
.jeg_content_area,
.site-content,
.jeg_wrapper {
	background-color: transparent;
}

/* -------------------------------------------------------------
   2) Estetica "flat": niente arrotondamenti, bordi netti,
   coerenti con l'assenza quasi totale di border-radius
   nel sito storico (eccetto avatar/tondi).
   ------------------------------------------------------------- */
.jeg_post_category a,
.jeg_thumb .jeg_post_category a,
.jeg_readmore,
.jeg_block_loadmore a,
.btn,
.button,
input[type="submit"],
.jeg_pagenav_1 .page_number,
.jeg_share_button a,
.jeg_search_form input[type="text"] {
	border-radius: 0 !important;
}

.jeg_pl_lg_box .jeg_post_category a,
.jeg_pl_md_box .jeg_post_category a {
	border-radius: 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* -------------------------------------------------------------
   3) Tipografia — rifinitura dei pesi/maiuscolo tipici del
   menu e dei titoli di blocco (in aggiunta ai Theme Mod font).
   ------------------------------------------------------------- */
.jeg_main_menu > ul > li > a,
.jeg_mobile_menu > li > a,
.jeg_menu_style_1 > li > a,
.jeg_menu_style_2 > li > a,
.jeg_menu_style_3 > li > a,
.jeg_menu_style_5 > li > a {
	font-family: 'Titillium Web', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.jeg_block_heading .jeg_block_title,
.jeg_block_heading_1 .jeg_block_title,
.jeg_block_heading_2 .jeg_block_title,
.jeg_block_heading_3 .jeg_block_title {
	font-family: 'Titillium Web', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
}

.entry-content,
.entry-content p {
	font-family: 'Source Sans Pro', sans-serif;
}

/* -------------------------------------------------------------
   4) Header — riga superiore rossa piena come l'originale
   (.header { background-color: #B03131 }). JNews di norma usa
   uno sfondo chiaro per la riga logo: qui la portiamo rossa,
   testo/icone in bianco, per restare fedeli all'identità storica.
   Attivo solo se nell'Header Builder è stata assegnata la classe
   "nc9-header-red" alla riga superiore (vedi guida in README).
   ------------------------------------------------------------- */
.jeg_header_wrapper .nc9-header-red {
	background-color: var(--nc9-red);
	box-shadow: inset 0 -140px 200px -50px rgba(0, 0, 0, 0.15);
}

.jeg_header_wrapper .nc9-header-red,
.jeg_header_wrapper .nc9-header-red a,
.jeg_header_wrapper .nc9-header-red .jeg_main_menu > ul > li > a {
	color: #ffffff;
}

.jeg_header_wrapper .nc9-header-red .jeg_main_menu > ul > li > a:hover,
.jeg_header_wrapper .nc9-header-red .jeg_main_menu > ul > li.current-menu-item > a {
	background: rgba(0, 0, 0, 0.15);
	color: #ffffff;
}

/* Riga menu secondaria: sfondo bianco, link antracite maiuscolo,
   come .secondary-menu del sito storico. */
.jeg_header_wrapper .nc9-header-secondary {
	background-color: #ffffff;
	border-bottom: 1px solid var(--nc9-border);
}

.jeg_header_wrapper .nc9-header-secondary a {
	color: #3d3d3d;
	font-family: 'Titillium Web', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
}

.jeg_header_wrapper .nc9-header-secondary li:hover a {
	background: rgba(0, 0, 0, 0.06);
}

/* Claim testuale accanto al logo — shortcode [nc9_header_claim] */
.nc9-header-claim {
	line-height: 1.3;
	font-size: 14px;
	color: inherit;
}

.nc9-header-claim-title {
	display: block;
}

.nc9-header-claim-director strong {
	font-weight: 700;
}

/* Widget orologio header — sostituisce il vecchio div#clockContainer */
.nc9-clock {
	text-align: right;
	line-height: 1.2;
}

.nc9-clock-time {
	display: block;
	font-size: 22px;
	font-weight: 700;
	font-family: 'Titillium Web', sans-serif;
}

.nc9-clock-date {
	display: block;
	font-size: 12px;
	opacity: 0.85;
	text-transform: capitalize;
}

/* -------------------------------------------------------------
   5) Breaking news — striscia con etichetta rossa piena,
   coerente con .breaking-news .the-title del sito originale.
   Si applica al modulo "Breaking News" nativo di JNews.
   ------------------------------------------------------------- */
.jeg_breakingnews_title,
div.jeg_breakingnews_title {
	background-color: var(--nc9-red) !important;
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 0 !important;
}

.jeg_breakingnews {
	box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.04);
}

/* -------------------------------------------------------------
   6) Footer — variante scura coerente con l'antracite di brand.
   ------------------------------------------------------------- */
.jeg_footer.dark {
	background-color: var(--nc9-anthracite);
}

/* -------------------------------------------------------------
   7) Responsive — piccoli aggiustamenti per l'header su mobile
   ------------------------------------------------------------- */
@media (max-width: 768px) {
	.nc9-header-claim {
		font-size: 12px;
	}

	.nc9-clock-time {
		font-size: 18px;
	}
}
