/*
Theme Name: This Is Acri
Theme URI: https://www.thisisacri.it/
Author: This Is Acri
Description: Tema magazine leggero e responsive per il blog di notizie This Is Acri. Nessuna dipendenza esterna (niente jQuery, Font Awesome o Google Fonts), home a sezioni configurabile, colori per categoria, ticker delle ultime notizie e menu mobile.
Version: 1.6.2
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thisisacri
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Variabili
   ========================================================================== */
:root {
	--tia-primary: #d62828;
	--ink: #111317;
	--text: #23262d;
	--muted: #6b7079;
	--line: #e6e7ea;
	--bg: #f3f4f6;
	--card: #fff;
	--dark: #121316;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--shadow-lg: 0 10px 30px -10px rgba(16, 24, 40, .25);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-read: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--gap: 24px;
	--nav-h: 54px;
	--surface: #fff;
	--surface-rgb: 255, 255, 255;
	--read: #1d2026;
	--lead: #4b4f57;
	--thumb-bg: #dfe1e5;
	--share-x: #111;
	--logo-light: block;
	--logo-dark: none;
	color-scheme: light;
}

/* Tema scuro: segue il dispositivo, oppure la scelta fatta col pulsante (data-theme) */
:root[data-theme="dark"] {
	--ink: #f1f2f4;
	--text: #d5d7dc;
	--muted: #9a9fa8;
	--line: #2c2f36;
	--bg: #0e0f12;
	--card: #181a1f;
	--dark: #0a0b0d;
	--surface: #181a1f;
	--surface-rgb: 24, 26, 31;
	--read: #e3e5e9;
	--lead: #b6bbc4;
	--thumb-bg: #23262c;
	--share-x: #3a3d45;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
	--shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .7);
	--logo-light: none;
	--logo-dark: block;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #f1f2f4;
		--text: #d5d7dc;
		--muted: #9a9fa8;
		--line: #2c2f36;
		--bg: #0e0f12;
		--card: #181a1f;
		--dark: #0a0b0d;
		--surface: #181a1f;
		--surface-rgb: 24, 26, 31;
		--read: #e3e5e9;
		--lead: #b6bbc4;
		--thumb-bg: #23262c;
		--share-x: #3a3d45;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
		--shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .7);
		--logo-light: none;
		--logo-dark: block;
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
iframe { border: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--tia-primary); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.015em;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--tia-primary); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--surface); color: var(--ink);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
}

.icon { display: inline-block; vertical-align: middle; flex: none; }

.button,
.search-submit,
input[type="submit"],
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 20px;
	border: 0; border-radius: var(--radius-sm);
	background: var(--tia-primary); color: #fff;
	font-weight: 700;
	transition: filter .15s;
}
.button:hover, input[type="submit"]:hover { color: #fff; filter: brightness(1.1); }

/* ==========================================================================
   3. Barra superiore e ticker
   ========================================================================== */
.topbar { background: #0b0c0e; color: #d6d7da; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.topbar-date { white-space: nowrap; text-transform: capitalize; opacity: .85; }

.ticker { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ticker-label {
	flex: none;
	padding: 3px 10px;
	background: var(--tia-primary); color: #fff;
	border-radius: 4px;
	font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.ticker-track {
	display: flex; flex: 1; min-width: 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-list { display: flex; flex: none; gap: 0; margin: 0; padding: 0; list-style: none; }
.ticker-list li { white-space: nowrap; padding-right: 40px; position: relative; }
.ticker-list li::after { content: "•"; position: absolute; right: 16px; color: var(--tia-primary); }
.ticker-list a { color: #fff; }
.ticker-list a:hover { color: #ffb4b4; }
.ticker-track.is-running .ticker-list { animation: tia-ticker var(--ticker-duration, 40s) linear infinite; }
.ticker-track:hover .ticker-list, .ticker-track:focus-within .ticker-list { animation-play-state: paused; }
@keyframes tia-ticker { to { transform: translateX(-100%); } }

.social { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.social a {
	display: grid; place-items: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	transition: background .15s, color .15s;
}
.topbar-social { margin-left: auto; }
.topbar-social a { color: #d6d7da; }
.topbar-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (max-width: 767px) {
	.topbar-date, .topbar-social { display: none; }
	.ticker-label { font-size: 10px; }
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: relative; background: var(--surface); overflow: hidden; }
.site-header.has-image {
	background: linear-gradient(90deg, rgba(var(--surface-rgb), .96) 0%, rgba(var(--surface-rgb), .85) 35%, rgba(var(--surface-rgb), 0) 70%), var(--header-img) center / cover no-repeat;
}
.header-inner { display: flex; align-items: center; min-height: 140px; padding-top: 16px; padding-bottom: 16px; }
.branding { display: flex; align-items: center; gap: 18px; }
.branding .custom-logo { width: auto; max-height: 110px; }
.site-title { margin: 0; font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; }
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--tia-primary); }
.site-description { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-weight: 500; }

/* Se c'è il logo, il titolo resta accessibile ma visivamente secondario */
.wp-custom-logo .site-title { font-size: clamp(20px, 2.6vw, 30px); }

@media (max-width: 767px) {
	.header-inner { min-height: 84px; padding-top: 10px; padding-bottom: 10px; }
	.branding { gap: 12px; }
	.branding .custom-logo { max-height: 60px; }
	.site-description { font-size: 13px; }
	.site-header.has-image { background: linear-gradient(90deg, rgba(var(--surface-rgb), .95) 0%, rgba(var(--surface-rgb), .75) 60%, rgba(var(--surface-rgb), .3) 100%), var(--header-img) center / cover no-repeat; }
}

/* ==========================================================================
   5. Navigazione
   ========================================================================== */
.main-nav {
	position: sticky; top: 0; z-index: 50;
	background: var(--dark);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
	transition: box-shadow .2s;
}
.admin-bar .main-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .main-nav { top: 0; } }

.main-nav.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.main-nav::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: var(--tia-primary);
}
.nav-inner { display: flex; align-items: center; gap: 4px; height: var(--nav-h); }

.nav-toggle, .nav-close, .search-toggle, .nav-home {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	flex: none;
	padding: 0; border: 0; border-radius: var(--radius-sm);
	background: transparent; color: inherit;
}
.nav-drawer { min-width: 0; }
.nav-home { background: var(--tia-primary); width: 42px; height: 38px; color: #fff; }
.nav-home:hover { color: #fff; filter: brightness(1.1); }
.search-toggle { margin-left: auto; }
.search-toggle:hover, .nav-toggle:hover { background: rgba(255, 255, 255, .1); }

.nav-brand { display: none; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.nav-brand:hover { color: #fff; }

.nav-drawer .menu { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-drawer .menu > li { position: relative; }
.nav-drawer .menu a {
	display: block;
	padding: 0 14px;
	line-height: var(--nav-h);
	font-size: 13.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	color: #e9eaec;
	white-space: nowrap;
}
.nav-drawer .menu > li > a { position: relative; }
.nav-drawer .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 2px;
	background: var(--tia-primary);
	transform: scaleX(0); transform-origin: left;
	transition: transform .2s;
}
.nav-drawer .menu > li:hover > a::after,
.nav-drawer .menu > .current-menu-item > a::after,
.nav-drawer .menu > .current-menu-ancestor > a::after,
.nav-drawer .menu > .current-cat > a::after { transform: scaleX(1); }
.nav-drawer .menu a:hover { color: #fff; }

/* Sottomenu desktop */
.nav-drawer .sub-menu, .nav-drawer .children {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 230px;
	margin: 0; padding: 8px 0;
	list-style: none;
	background: var(--surface);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-drawer li:hover > .sub-menu,
.nav-drawer li:focus-within > .sub-menu,
.nav-drawer li:hover > .children,
.nav-drawer li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.nav-drawer .sub-menu a, .nav-drawer .children a { color: var(--text); line-height: 1.4; padding: 9px 18px; text-transform: none; letter-spacing: 0; font-size: 14.5px; }
.nav-drawer .sub-menu a:hover, .nav-drawer .children a:hover { background: var(--bg); color: var(--tia-primary); }

.drawer-head, .drawer-social, .sub-toggle, .nav-toggle { display: none; }

.search-panel { background: #1c1d21; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.search-panel[hidden] { display: none; }

.nav-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 12, .55); backdrop-filter: blur(2px); }
.nav-overlay[hidden] { display: none; }

/* Desktop: mostra il nome sito quando la barra è "attaccata" in alto */
@media (min-width: 1025px) {
	.main-nav.is-stuck .nav-brand { display: block; margin-right: 8px; padding-left: 8px; }
	.main-nav.is-stuck .nav-home { display: none; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
	.nav-drawer .menu a { padding: 0 10px; font-size: 12.5px; }
	.nav-drawer .menu > li > a::after { left: 10px; right: 10px; }
	.main-nav.is-stuck .nav-brand { display: none; }
	.main-nav.is-stuck .nav-home { display: grid; }
}

/* Mobile e tablet: menu a cassetto */
@media (max-width: 1024px) {
	.nav-toggle { display: grid; }
	.nav-home { display: none; }
	.nav-brand { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
	.main-nav.is-stuck .nav-brand { display: block; }

	.nav-drawer {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
		width: min(86vw, 360px);
		display: flex; flex-direction: column;
		background: var(--surface); color: var(--text);
		overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(-102%);
		transition: transform .25s ease;
		visibility: hidden;
	}
	.menu-open .nav-drawer { transform: none; visibility: visible; }
	.menu-open { overflow: hidden; }
	.menu-open .main-nav { z-index: 110; } /* il cassetto sta sopra l'overlay scuro */

	.drawer-head {
		display: flex; align-items: center; justify-content: space-between;
		padding: 8px 8px 8px 20px;
		background: var(--dark); color: #fff;
		border-top: 3px solid var(--tia-primary);
	}
	.drawer-title { font-weight: 900; text-transform: uppercase; }
	.nav-close { display: grid; }

	.nav-drawer .menu { flex-direction: column; padding: 8px 0; }
	.nav-drawer .menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
	.nav-drawer .menu a { flex: 1; color: var(--ink); line-height: 1.3; padding: 15px 20px; font-size: 15px; white-space: normal; }
	.nav-drawer .menu > li > a::after { display: none; }
	.nav-drawer .menu .current-menu-item > a, .nav-drawer .menu .current-cat > a { color: var(--tia-primary); box-shadow: inset 3px 0 0 var(--tia-primary); }

	.sub-toggle {
		display: grid; place-items: center;
		width: 48px; height: 48px; border: 0; background: transparent; color: var(--muted);
		transition: transform .2s;
	}
	.sub-open > .sub-toggle { transform: rotate(180deg); }

	.nav-drawer .sub-menu, .nav-drawer .children {
		position: static; flex-basis: 100%;
		display: none;
		min-width: 0; padding: 0 0 8px;
		background: var(--bg); box-shadow: none; border-radius: 0;
		opacity: 1; visibility: visible; transform: none;
	}
	.nav-drawer .sub-open > .sub-menu, .nav-drawer .sub-open > .children { display: block; }
	.nav-drawer .sub-menu li { border: 0; }
	.nav-drawer .sub-menu a { padding: 11px 20px 11px 34px; font-size: 14.5px; }

	.drawer-social { display: flex; justify-content: center; padding: 20px; margin-top: auto; }
	.drawer-social a { color: var(--ink); background: var(--bg); width: 42px; height: 42px; }
}

/* ==========================================================================
   6. Banner
   ========================================================================== */
.banner { margin-top: var(--gap); text-align: center; }
.banner .widget { margin: 0; padding: 0; background: none; box-shadow: none; }
.banner img { margin: 0 auto; border-radius: var(--radius-sm); }
.banner .widget-title { display: none; }

/* ==========================================================================
   7. Layout
   ========================================================================== */
.site-main { padding-bottom: 48px; }
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	margin-top: var(--gap);
	align-items: start;
}
.no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }
.no-sidebar .single-article,
.no-sidebar .comments,
.no-sidebar .post-navigation { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ==========================================================================
   8. Schede articolo
   ========================================================================== */
.post-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-lg); }

.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--thumb-bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.thumb-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--dark), #3a3c44);
	color: rgba(255, 255, 255, .25);
	font-size: 56px; font-weight: 900;
}

.post-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.post-card-title { margin: 0; font-size: 18px; line-height: 1.3; }
.post-card-title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s, color .15s; }
.post-card-title a:hover { color: var(--tia-primary); background-size: 100% 1px; }
.post-card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* tutta la scheda è cliccabile */
.post-card .badge, .post-card .entry-meta a { position: relative; z-index: 2; }
.post-card-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.badge {
	display: inline-block;
	padding: 3px 9px;
	background: var(--c, var(--tia-primary)); color: #fff;
	border-radius: 4px;
	font-size: 11px; font-weight: 800; letter-spacing: .05em; line-height: 1.5; text-transform: uppercase;
}
.badge:hover { color: #fff; filter: brightness(1.12); }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 13px; margin-top: auto; }
.entry-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta .icon { opacity: .75; }

/* Variante overlay (apertura) */
.post-card--overlay { justify-content: flex-end; min-height: 220px; background: var(--dark); }
.post-card--overlay .thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.post-card--overlay .thumb::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .9) 100%);
}
.post-card--overlay .post-card-body { position: relative; z-index: 1; flex: none; padding: 18px 20px; }
.post-card--overlay .post-card-title { font-size: 19px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.post-card--overlay .post-card-title a, .post-card--overlay .entry-meta, .post-card--overlay .entry-meta a { color: #fff; }
.post-card--overlay .post-card-title a:hover { color: #fff; }
.post-card--overlay .entry-meta { opacity: .9; }

/* Variante riga */
.post-card--row { flex-direction: row; }
.post-card--row .thumb { flex: 0 0 38%; aspect-ratio: auto; min-height: 170px; }
.post-card--row .post-card-body { padding: 18px 20px; }
.post-card--row .post-card-title { font-size: 20px; }

/* Variante mini */
.post-card--mini { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; background: none; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); overflow: visible; }
.post-card--mini:hover { box-shadow: none; }
.post-card--mini:last-child { border-bottom: 0; }
.post-card--mini .thumb { flex: 0 0 104px; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.post-card--mini .post-card-body { padding: 0; gap: 6px; }
.post-card--mini .post-card-title { font-size: 15.5px; font-weight: 700; }
.post-card--mini .entry-meta { font-size: 12px; }

@media (max-width: 600px) {
	.post-card-title { font-size: 17px; }
	.post-card--row .thumb { flex-basis: 120px; min-height: 0; aspect-ratio: 1; align-self: stretch; }
	.post-card--row .post-card-body { padding: 12px 14px; gap: 6px; }
	.post-card--row .post-card-title { font-size: 16px; }
	.post-card--row .post-card-excerpt { display: none; }
	.post-card--row .badge { font-size: 10px; padding: 2px 7px; }

	/* Su smartphone le griglie diventano un elenco compatto (la prima notizia resta grande) */
	.grid .post-card--card:not(:first-child) { flex-direction: row; }
	.grid .post-card--card:not(:first-child) .thumb { flex: 0 0 120px; aspect-ratio: 1; align-self: stretch; }
	.grid .post-card--card:not(:first-child) .post-card-body { padding: 12px 14px; gap: 6px; }
	.grid .post-card--card:not(:first-child) .post-card-title { font-size: 16px; }
	.grid .post-card--card:not(:first-child) .post-card-excerpt { display: none; }
	.grid .post-card--card:not(:first-child) .badge { font-size: 10px; padding: 2px 7px; }
}

/* ==========================================================================
   9. Home
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: repeat(2, 230px);
	gap: 12px;
	margin-top: var(--gap);
}
.hero .post-card { min-height: 0; border-radius: var(--radius); }
.hero .post-card:first-child { grid-column: span 2; grid-row: span 2; }
.hero .post-card:first-child .post-card-body { padding: 28px; }
.hero .post-card:first-child .post-card-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.hero .post-card:not(:first-child) .post-card-title { font-size: 16.5px; }

@media (max-width: 1024px) {
	.hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 380px repeat(2, 200px); }
	.hero .post-card:first-child { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) {
	.hero { margin-top: 12px; gap: 10px; grid-template-rows: 340px repeat(2, 180px); padding: 0 12px; }
	.hero .post-card:first-child .post-card-body { padding: 18px; }
	.hero .post-card:not(:first-child) .post-card-body { padding: 12px; }
	.hero .post-card:not(:first-child) .post-card-title { font-size: 14.5px; }
	.hero .post-card:not(:first-child) .badge,
	.hero .post-card:not(:first-child) .meta-author { display: none; }
}

.home-section { margin-bottom: 40px; }

.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--line);
}
.section-title { margin: 0 0 -2px; font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
.section-title span { display: inline-block; padding-bottom: 10px; border-bottom: 3px solid var(--c, var(--tia-primary)); }
.section-title span::before {
	content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px;
	background: var(--c, var(--tia-primary)); border-radius: 2px; vertical-align: 1px;
}
.section-more { display: inline-flex; align-items: center; gap: 4px; padding-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.section-more:hover { color: var(--c, var(--tia-primary)); }
.section-more .icon { transition: transform .15s; }
.section-more:hover .icon { transform: translateX(3px); }

.feature-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); }
.feature-list { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 18px; }
@media (max-width: 760px) { .feature-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.list-wrap { display: grid; gap: 16px; }

/* ==========================================================================
   10. Archivi
   ========================================================================== */
.archive-header {
	margin-bottom: var(--gap);
	padding: 22px 24px;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border-left: 5px solid var(--c, var(--tia-primary));
}
.archive-title { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); }
.archive-title span { color: var(--c, var(--tia-primary)); }
.archive-desc { margin-top: 8px; color: var(--muted); }
.archive-desc p:last-child { margin: 0; }
.archive-header .search-form { margin-top: 14px; }

.archive-list { display: grid; gap: 18px; }
.archive-list .post-card--card .post-card-title { font-size: clamp(22px, 2.6vw, 28px); }
.archive-list .post-card--card .thumb { aspect-ratio: 16 / 8; }
.archive-list .post-card--card .post-card-body { padding: 20px 24px 24px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--tia-primary); }
.breadcrumbs .sep { opacity: .5; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	background: var(--card); color: var(--ink);
	border-radius: var(--radius-sm); box-shadow: var(--shadow);
	font-weight: 700;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--tia-primary); color: #fff; }
.pagination .dots { background: none; box-shadow: none; }

.no-results, .error-404 { padding: 40px 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.error-404 { margin: var(--gap) 0 40px; }
.error-code { margin: 0; font-size: clamp(80px, 16vw, 140px); font-weight: 900; line-height: 1; color: var(--tia-primary); letter-spacing: -.05em; }
.no-results .search-form, .error-404 .search-form { max-width: 480px; margin: 20px auto; }

/* ==========================================================================
   11. Ricerca
   ========================================================================== */
.search-form { display: flex; gap: 0; width: 100%; }
.search-field {
	flex: 1; min-width: 0;
	height: 46px; padding: 0 16px;
	border: 1px solid var(--line); border-right: 0;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	background: var(--surface); color: var(--ink);
	-webkit-appearance: none; appearance: none;
}
.search-field:focus { outline: none; border-color: var(--tia-primary); }
.search-submit { height: 46px; padding: 0 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.search-panel .search-field { border-color: transparent; }

/* ==========================================================================
   12. Articolo singolo
   ========================================================================== */
.single-article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.entry-header { padding: 28px 40px 8px; }
.entry-header .breadcrumbs { margin-bottom: 16px; }
.entry-title { margin: 12px 0 14px; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; }
.entry-lead { margin: 0 0 16px; font-size: 20px; line-height: 1.5; color: var(--lead); font-family: var(--font-read); }

.entry-meta--single { padding: 14px 0 6px; border-top: 1px solid var(--line); gap: 8px 18px; font-size: 14px; }
.entry-meta--single .avatar { width: 32px; height: 32px; border-radius: 50%; }
.entry-meta--single .meta-author { gap: 8px; font-weight: 700; color: var(--ink); }
.meta-read::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 12px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }

.entry-media { margin: 16px 0 0; }
.entry-media img { width: 100%; max-height: 620px; object-fit: cover; }
.entry-media figcaption { padding: 8px 40px 0; color: var(--muted); font-size: 13px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 40px 0; }
.share-label { margin-right: 4px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.share a, .share button {
	display: grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%;
	color: #fff;
	transition: transform .15s, filter .15s;
}
.share a:hover, .share button:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.share-facebook { background: #1877f2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-x { background: var(--share-x); }
.share-copy { background: #6b7280; }
.share-copy.copied { background: #15803d; }

.entry-content {
	padding: 24px 40px 8px;
	font-family: var(--font-read);
	font-size: 19px; line-height: 1.75;
	color: var(--read);
	overflow-wrap: break-word;
}
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font); margin: 1.6em 0 .6em; }
.entry-content h2 { font-size: 1.45em; }
.entry-content h3 { font-size: 1.25em; }
.entry-content a { color: var(--tia-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 6px 0 6px 24px;
	border-left: 4px solid var(--tia-primary);
	font-size: 1.12em; font-style: italic; color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--font); font-size: 14px; font-style: normal; color: var(--muted); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-family: var(--font); font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content iframe, .entry-content video { width: 100%; border-radius: var(--radius-sm); }
.entry-content .wp-block-embed__wrapper iframe { aspect-ratio: 16 / 9; height: auto; }
.page-links { font-family: var(--font); font-weight: 700; }
.page-links a, .page-links > span { margin-left: 8px; }

.entry-footer { padding: 8px 40px 32px; }
.entry-footer .share { padding: 18px 0 0; border-top: 1px solid var(--line); margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 5px 12px; background: var(--bg); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--text); }
.tags a::before { content: "#"; opacity: .5; }
.tags a:hover { background: var(--tia-primary); color: #fff; }

@media (max-width: 600px) {
	.single-article { border-radius: 0; margin: 0 -16px; box-shadow: none; }
	.entry-header { padding: 20px 16px 4px; }
	.entry-lead { font-size: 18px; }
	.entry-media figcaption, .share { padding-left: 16px; padding-right: 16px; }
	.entry-content { padding: 20px 16px 4px; font-size: 18px; line-height: 1.7; }
	.entry-footer { padding: 4px 16px 24px; }
	.entry-content .alignwide, .entry-content .alignfull { margin-left: -16px; margin-right: -16px; max-width: none; width: auto; }
}

/* Allineamenti WordPress */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em auto; } }
.entry-content::after { content: ""; display: table; clear: both; }

/* Navigazione tra articoli */
.post-navigation { margin-top: var(--gap); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tia-primary); }
.post-navigation .nav-title { font-weight: 700; color: var(--ink); line-height: 1.35; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.related { margin-top: 40px; }

/* ==========================================================================
   13. Commenti
   ========================================================================== */
.comments { margin-top: 32px; padding: 28px 32px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.comments-title, .comment-reply-title { font-size: 22px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 24px; border-left: 2px solid var(--line); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; color: var(--muted); margin: 2px 0 8px 54px; }
.comment-content { margin-left: 54px; }
.reply { margin-left: 54px; font-size: 13px; font-weight: 700; }
.reply a { color: var(--tia-primary); }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
@media (max-width: 600px) {
	.comments { padding: 20px 16px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
	.comment-content, .comment-metadata, .reply { margin-left: 0; }
}

/* ==========================================================================
   14. Barra laterale e widget
   ========================================================================== */
.sidebar-inner { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: var(--gap); }
.admin-bar .sidebar-inner { top: calc(var(--nav-h) + 52px); }
.sidebar .widget { padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sidebar .widget_media_image, .sidebar .widget_block:has(> .wp-block-image:only-child) { padding: 0; }
.sidebar .widget img { margin: 0 auto; }

.widget-title, .widget .wp-block-heading { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.widget-title span { position: relative; }
.widget-title span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--tia-primary); }

.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { font-weight: 600; color: var(--ink); }
.widget li a:hover { color: var(--tia-primary); }
.widget select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.widget_recent_entries .post-date, .wp-block-latest-posts__post-date { display: block; font-size: 12.5px; color: var(--muted); }
.wp-block-latest-posts__featured-image img { border-radius: var(--radius-sm); }
.tagcloud a, .wp-block-tag-cloud a { display: inline-block; margin: 0 4px 6px 0; padding: 4px 10px; background: var(--bg); border-radius: 20px; font-size: 13px !important; }

@media (max-width: 1024px) {
	.sidebar-inner { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer { background: var(--dark); color: #b9bcc3; font-size: 15px; border-top: 4px solid var(--tia-primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.footer-about .custom-logo { max-height: 84px; width: auto; margin-bottom: 12px; }
.footer-name { margin: 0 0 6px; color: #fff; font-size: 20px; font-weight: 900; text-transform: uppercase; }
.footer-desc { max-width: 320px; }
.footer-social a { color: #fff; background: rgba(255, 255, 255, .08); }
.footer-social a:hover { background: var(--tia-primary); color: #fff; }
.site-footer .widget-title { color: #fff; border-color: rgba(255, 255, 255, .12); }
.site-footer .widget li { border-color: rgba(255, 255, 255, .08); }
.site-footer .widget li a { color: #e3e4e8; }
.site-footer a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; }
.copyright { margin: 0; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: #b9bcc3; }

.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	display: grid; place-items: center;
	width: 46px; height: 46px; padding: 0;
	border: 0; border-radius: 50%;
	background: var(--tia-primary); color: #fff;
	box-shadow: var(--shadow-lg);
}
.to-top[hidden] { display: none; }

/* ==========================================================================
   16. Accessibilità: movimento ridotto e stampa
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ticker-track { overflow-x: auto; }
}

@media print {
	.topbar, .main-nav, .sidebar, .share, .site-footer, .related, .comments, .post-navigation, .banner, .to-top, .author-box, .theme-toggle, .ticker-toggle, .breaking-bar, .topics-bar, .banner-article, .new-pill-wrap, .load-more-wrap { display: none !important; }
	body { background: #fff; color: #000; }
	.single-article { box-shadow: none; }
}

/* ==========================================================================
   17. Novità 1.1: sommario, box autore, più letti, tema scuro, video, moduli
   ========================================================================== */

/* Sommario sulle schede (in home solo negli articoli in evidenza) */
.post-card-summary {
	margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card--overlay .post-card-summary { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); -webkit-line-clamp: 2; }
.hero .post-card:first-child .post-card-summary { font-size: 16px; line-height: 1.5; -webkit-line-clamp: 3; max-width: 62ch; }
@media (max-width: 600px) {
	.hero .post-card:first-child .post-card-summary { font-size: 14.5px; }
	.hero .post-card:not(:first-child) .post-card-summary { display: none; }
}

/* Box autore */
.author-box {
	display: flex; align-items: flex-start; gap: 18px;
	margin-top: var(--gap); padding: 22px 24px;
	background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
	border-left: 5px solid var(--tia-primary);
}
.author-box-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; }
.author-box-body { min-width: 0; }
.author-box-label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.author-box-name { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--ink); }
.author-box-bio { margin: 0 0 10px; color: var(--text); font-size: 15px; line-height: 1.55; }
.author-box-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.author-box-links a { color: var(--tia-primary); }
.no-sidebar .author-box { max-width: 860px; margin-left: auto; margin-right: auto; }
.author-box--archive { margin: 14px 0 0; padding: 0; background: none; box-shadow: none; border-left: 0; align-items: center; }
.author-box--archive .author-box-avatar { width: 88px; height: 88px; }
.author-box--archive .author-box-bio { margin-bottom: 6px; }
@media (max-width: 600px) {
	.author-box, .no-sidebar .author-box { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 18px 16px; }
	.author-box--archive, .no-sidebar .author-box--archive { margin-left: 0; margin-right: 0; padding: 0; }
	.author-box-avatar { width: 56px; height: 56px; }
}

/* Più letti */
.popular-list { counter-reset: pop; }
.popular-list .post-card { counter-increment: pop; }
.popular-list .post-card::before {
	content: counter(pop); flex: none; width: 26px;
	color: var(--tia-primary); font-size: 26px; font-weight: 900; line-height: 1; text-align: center;
}
.popular-list .post-card--mini .thumb { flex-basis: 80px; }
.popular-empty { margin: 0; color: var(--muted); font-size: 14px; }

/* Pulsante tema chiaro/scuro */
.theme-toggle {
	display: grid; place-items: center;
	width: 44px; height: 44px; flex: none; margin-left: auto; padding: 0;
	border: 0; border-radius: var(--radius-sm);
	background: transparent; color: inherit;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .1); }
.theme-toggle + .search-toggle { margin-left: 0; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
	:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline-block; }
}

/* Logo alternativo per il tema scuro (solo nell'header) */
.site-header .logo-light-link { display: var(--logo-light); }
.site-header .logo-dark-link { display: var(--logo-dark); }

/* Link leggibili anche sul tema scuro */
@supports (color: color-mix(in srgb, red, white)) {
	:root[data-theme="dark"] { --tia-link: color-mix(in srgb, var(--tia-primary) 62%, #fff); }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) { --tia-link: color-mix(in srgb, var(--tia-primary) 62%, #fff); }
	}
}
.entry-content a { color: var(--tia-link, var(--tia-primary)); }

/* Ticker: pulsante pausa */
.ticker-toggle {
	display: grid; place-items: center; flex: none;
	width: 24px; height: 24px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .14); color: #fff;
}
.ticker-toggle[hidden] { display: none; }
.ticker-toggle:hover { background: rgba(255, 255, 255, .28); }
.ticker-toggle .icon-play { display: none; }
.ticker-toggle.is-paused .icon-play { display: inline-block; }
.ticker-toggle.is-paused .icon-pause { display: none; }
.ticker-track.is-paused .ticker-list { animation-play-state: paused; }

/* Video YouTube leggeri */
.yt-facade { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.yt-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .9; transition: opacity .2s; }
.yt-play:hover img, .yt-play:focus-visible img { opacity: 1; }
.yt-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }

/* Modulo segnalazioni */
.tia-report { margin-top: 1.5em; font-family: var(--font); font-size: 16px; line-height: 1.5; }
.tia-form p { margin: 0 0 16px; }
.tia-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tia-form input[type="text"], .tia-form input[type="email"], .tia-form textarea {
	width: 100%; padding: 11px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink);
	font-family: var(--font); font-size: 16px;
}
.tia-form textarea { min-height: 160px; resize: vertical; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-row--2 { grid-template-columns: minmax(0, 1fr); } }
.form-consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form-consent input { flex: none; margin-top: 4px; }
.req { color: var(--tia-primary); }
.tia-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); border-left: 4px solid; font-size: 15px; font-weight: 600; color: var(--ink); }
.form-notice--success { border-color: #15803d; background: rgba(21, 128, 61, .14); }
.form-notice--error { border-color: #b91c1c; background: rgba(185, 28, 28, .12); }

/* Accessibilità: focus ben visibile sulle barre scure, destinazione del link "Salta al contenuto" */
.topbar :focus-visible, .main-nav :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.site-main:focus { outline: none; }

/* ==========================================================================
   18. Novità 1.2: ultim'ora, temi, occhiello, video, opinioni, meteo, Adv
   ========================================================================== */

/* Striscia "Ultim'ora" */
.breaking-bar { background: #b91c1c; color: #fff; }
.breaking-inner { display: flex; align-items: center; gap: 12px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.breaking-label {
	flex: none; padding: 2px 9px;
	background: #fff; color: #b91c1c; border-radius: 4px;
	font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
	animation: tia-blink 1.6s ease-in-out infinite;
}
.breaking-link { flex: 1; min-width: 0; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breaking-link:hover { color: #fff; text-decoration: underline; }
.breaking-time { flex: none; font-size: 13px; font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; }
@keyframes tia-blink { 50% { opacity: .55; } }
@media (max-width: 600px) { .breaking-link { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; } }

/* Ticker: orario davanti a ogni notizia */
.ticker-time { margin-right: 6px; color: #ffb4b4; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Meteo nella barra superiore */
.topbar-weather { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; opacity: .95; }
@media (max-width: 600px) { .topbar-weather .weather-place { display: none; } }

/* Temi del giorno */
.topics-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.topics-inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.topics-label { flex: none; color: var(--tia-primary); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.topics-list { display: flex; gap: 8px; margin: 0; padding: 2px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.topics-list::-webkit-scrollbar { display: none; }
.topics-list a {
	display: block; padding: 5px 14px; white-space: nowrap;
	border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-size: 13.5px; font-weight: 700;
}
.topics-list a:hover, .topics-list a[aria-current] { background: var(--tia-primary); border-color: var(--tia-primary); color: #fff; }
@media (max-width: 600px) { .topics-label { display: none; } }
.home-section--topic .section-title span { border-bottom-color: var(--tia-primary); }

/* Occhiello e Adv */
.post-card-kicker, .entry-kicker { margin: 0; color: var(--tia-kicker, var(--tia-primary)); font-size: var(--tia-kicker-size, 12.5px); font-weight: 800; letter-spacing: var(--tia-kicker-track, .04em); text-transform: var(--tia-kicker-case, uppercase); line-height: 1.3; }
.entry-kicker { margin-top: 10px; font-size: calc(var(--tia-kicker-size, 12.5px) + 1.5px); }
.no-home-badges .post-card .badge { display: none; }
.post-card--overlay .post-card-kicker { color: #ffd0d0; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.adv-label {
	display: inline-block; margin-right: 6px; padding: 1px 7px;
	background: #f59e0b; color: #1b1300; border-radius: 3px;
	font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
}
.sponsored-notice { display: flex; align-items: center; gap: 8px; margin: 12px 40px 0; padding: 8px 12px; background: rgba(245, 158, 11, .14); border-left: 4px solid #f59e0b; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .sponsored-notice { margin: 12px 16px 0; } }
.meta-updated { color: var(--tia-primary); font-weight: 700; }

/* Anteprime video */
.thumb-play {
	position: absolute; left: 50%; top: 50%; z-index: 2;
	display: grid; place-items: center;
	width: 52px; height: 52px; margin: -26px 0 0 -26px;
	background: rgba(0, 0, 0, .65); color: #fff; border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
	transition: transform .2s, background .2s;
}
.thumb-play .icon { margin-left: 3px; }
.post-card:hover .thumb-play { background: var(--tia-primary); transform: scale(1.08); }
.post-card--mini .thumb-play { width: 30px; height: 30px; margin: -15px 0 0 -15px; box-shadow: none; }
.post-card--mini .thumb-play .icon { width: 14px; height: 14px; }

.video-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.video-strip .post-card--overlay { min-height: 0; aspect-ratio: 4 / 5; }
.video-strip .post-card-title { font-size: 16px; }
.video-strip .thumb-play { top: 38%; }
@media (max-width: 1024px) { .video-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .video-strip { gap: 10px; } .video-strip .post-card--overlay { aspect-ratio: 3 / 4; } .video-strip .post-card-title { font-size: 14.5px; } .video-strip .entry-meta, .video-strip .badge { display: none; } }

/* Opinioni */
.opinion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opinion-card { display: flex; gap: 14px; padding: 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.opinion-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.opinion-body { min-width: 0; }
.opinion-author { display: flex; flex-direction: column; margin: 0 0 6px; line-height: 1.25; }
.opinion-name { color: var(--ink); font-weight: 800; }
.opinion-role { color: var(--muted); font-size: 12.5px; }
.opinion-kicker { margin: 0 0 2px; color: var(--tia-kicker, var(--tia-primary)); font-size: var(--tia-kicker-size, 12.5px); font-weight: 800; letter-spacing: var(--tia-kicker-track, .04em); text-transform: var(--tia-kicker-case, uppercase); }
.opinion-title { margin: 0 0 4px; font-size: 17px; line-height: 1.3; font-family: var(--font-read); }
.opinion-title a:hover { color: var(--tia-primary); }
.opinion-date { margin: 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .opinion-grid { grid-template-columns: minmax(0, 1fr); } }

/* Carica altre notizie e pillola "nuove notizie" */
.more-grid:empty { display: none; }
.more-grid { margin-bottom: 20px; }
.load-more-wrap { display: flex; justify-content: center; margin: 24px 0 8px; }
.load-more[hidden] { display: none; }
.load-more { min-width: 240px; padding: 13px 28px; }
.load-more[aria-busy="true"] { opacity: .65; pointer-events: none; }
.js-more .pagination { display: none; }

.new-pill-wrap { position: sticky; top: calc(var(--nav-h) + 12px); z-index: 45; height: 0; display: flex; justify-content: center; pointer-events: none; }
.admin-bar .new-pill-wrap { top: calc(var(--nav-h) + 44px); }
.new-pill {
	pointer-events: auto; padding: 9px 20px;
	border: 0; border-radius: 999px;
	background: var(--tia-primary); color: #fff;
	font-size: 14px; font-weight: 800;
	box-shadow: var(--shadow-lg);
	animation: tia-pill .35s ease-out;
}
.new-pill[hidden] { display: none; }
@keyframes tia-pill { from { opacity: 0; transform: translateY(-10px); } }

/* Banner dentro l'articolo, con etichetta */
.banner-article { position: relative; clear: both; margin: 1.6em 0; padding: 22px 0 0; font-family: var(--font); }
.banner-tag { position: absolute; top: 0; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.banner-article .widget { margin: 0; }

/* Meteo (widget) */
.weather-now { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.weather-icon { font-size: 46px; line-height: 1; }
.weather-temp { margin: 0; color: var(--ink); font-size: 38px; font-weight: 900; line-height: 1; }
.weather-desc { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.sidebar .weather-days, .weather-days { margin: 0; padding: 0; list-style: none; }
.weather-days li { display: grid; grid-template-columns: 1fr auto auto 44px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.weather-days li:last-child { border-bottom: 0; }
.weather-day { color: var(--ink); font-weight: 700; }
.weather-range strong { color: var(--ink); }
.weather-rain { color: #2563eb; font-size: 12.5px; font-weight: 700; text-align: right; }
.weather-credit { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

/* 19. Servizi: farmacie di turno */
.tia-pharm__label{margin:12px 0 6px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--tia-muted,#666)}
.tia-pharm__label:first-child{margin-top:0}
.tia-pharm__item{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--tia-border,#e3e3e3);border-radius:8px;margin-bottom:6px}
.tia-pharm__item.is-now{border-left:4px solid var(--tia-primary,#c00);background:rgba(0,128,0,.05)}
.tia-pharm__name{font-size:1rem}
.tia-pharm__addr,.tia-pharm__period{font-size:.88rem;color:var(--tia-muted,#666)}
.tia-pharm__tel{font-weight:600;text-decoration:none}
.tia-pharm__note{margin:10px 0 0;font-size:.78rem;color:var(--tia-muted,#666)}

/* 20. Social e stile di lettura (v1.3) */
/* Tipografia da giornale */
.serif-titles .entry-title, .serif-titles .post-card-title, .serif-titles .entry-lead, .serif-titles .section-title, .serif-titles .archive-title, .serif-titles .opinion-card h3 {
	font-family: var(--font-read); letter-spacing: -.01em;
}
.serif-titles .entry-title { font-weight: 800; line-height: 1.12; }
.big-text .entry-content { font-size: 19px; line-height: 1.75; }
.big-text .entry-content > * { max-width: 68ch; }
.big-text .entry-content > .alignwide, .big-text .entry-content > figure, .big-text .entry-content > .tia-embed, .big-text .entry-content > iframe { max-width: 100%; }
/* Capolettera */
.has-dropcap .single-article .entry-content > p:first-of-type::first-letter {
	float: left; font-family: var(--font-read); font-size: 3.6em; line-height: .85; font-weight: 800;
	padding: 6px 10px 0 0; color: var(--tia-primary);
}
/* Citazioni evidenziate */
.entry-content .wp-block-pullquote, .entry-content blockquote.is-style-large {
	border: 0; border-top: 4px solid var(--tia-primary); border-bottom: 1px solid var(--line);
	padding: 18px 0; margin: 2em 0; text-align: left; font-family: var(--font-read);
}
.entry-content .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.entry-content .wp-block-pullquote p { font-size: clamp(22px, 3vw, 28px); line-height: 1.3; font-weight: 700; }
/* Credito foto e tempo di lettura */
.photo-credit { display: inline-block; font-style: italic; opacity: .85; }
.photo-credit::before { content: "· "; }
.entry-media figcaption .photo-credit:first-child::before { content: ""; }
.meta-read { color: var(--muted); }
.meta-read::before { content: "⏱ "; }
/* Barra di avanzamento lettura */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; background: transparent; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--tia-primary); transition: width .08s linear; }
/* Barra WhatsApp fissa (solo telefono) */
.share-sticky { display: none; }
@media (max-width: 820px) {
	.single .share-sticky {
		display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card, #fff);
		border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
	}
	.single { padding-bottom: 64px; }
	.share-sticky a, .share-sticky button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px; border: 0; font-weight: 700; text-decoration: none; cursor: pointer; }
	.share-sticky__wa { flex: 1; background: #25d366; color: #0b2e13 !important; }
	.share-sticky__fb, .share-sticky__copy { width: 48px; background: var(--bg); color: var(--ink); border: 1px solid var(--line) !important; }
}
/* Riquadro canali e newsletter */
.channels-box, .newsletter-box { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.channels-box__title { margin: 0 0 4px; font-weight: 800; font-size: 18px; }
.channels-box__text { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.channels-box__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.channels-box__btns a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; text-decoration: none; color: #fff; }
.btn-wa { background: #1fa855; } .btn-tg { background: #229ed9; } .btn-fb { background: #1877f2; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.newsletter-form input[type=email] { flex: 1 1 200px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card, #fff); }
.newsletter-form button { padding: 11px 18px; border: 0; border-radius: 8px; background: var(--tia-primary); color: #fff; font-weight: 700; cursor: pointer; }
.newsletter-box__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
/* Contenuti social incorporati */
.tia-embed { margin: 1.6em 0; max-width: 100%; }
.tia-embed iframe { max-width: 100%; }
.tia-embed--click { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg); text-align: center; }
.tia-embed__btn { padding: 11px 18px; border: 0; border-radius: 999px; background: var(--tia-primary); color: #fff; font-weight: 700; cursor: pointer; }
.tia-embed__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); font-family: var(--font); }
/* Correlati / più letti a fine articolo */
.related--popular { margin-top: 28px; }
/* Chi siamo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.team-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; text-decoration: none; }
.team-card img { border-radius: 50%; }
.team-card span { font-size: 13px; color: var(--muted); }
.contacts-box ul { list-style: none; margin: 10px 0 0; padding: 0; line-height: 1.9; }
/* Gerarchia home: un titolo di apertura dominante */
.hero .post-card:first-child .post-card-title { font-size: clamp(26px, 3vw, 40px); }
.hero .post-card:not(:first-child) .post-card-title { font-size: 15.5px; font-weight: 700; }

/* 21. App installabile (PWA) */
.pwa-banner {
	position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1000;
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px;
	background: var(--card, #fff); box-shadow: 0 8px 28px rgba(0,0,0,.18); max-width: 520px; margin: 0 auto;
}
.single .pwa-banner { bottom: calc(70px + env(safe-area-inset-bottom)); }
.pwa-banner img { border-radius: 9px; flex: none; }
.pwa-banner__t { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.pwa-banner__t strong { font-size: 14px; }
.pwa-banner__t span { color: var(--muted); }
.pwa-banner__ok { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--tia-primary); color: #fff; font-weight: 700; cursor: pointer; }
.pwa-banner__x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (display-mode: standalone) {
	body { padding-top: env(safe-area-inset-top); -webkit-tap-highlight-color: transparent; }
}

/* 22. Stile "agenzia": Ultima ora con orari, In immagini, In diretta */
.lastlist { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: ll; border-top: 1px solid var(--line); }
.lastlist__item { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lastlist__time { flex: none; min-width: 64px; font-weight: 800; font-size: 14px; color: var(--tia-primary); font-variant-numeric: tabular-nums; }
.lastlist__body { min-width: 0; line-height: 1.35; }
.lastlist__body a { font-weight: 700; font-size: 16.5px; text-decoration: none; }
.lastlist__body a:hover { color: var(--tia-primary); }
.lastlist__kicker { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--tia-kicker, var(--tia-primary)); margin-bottom: 2px; }
.widget .lastlist__body a { font-size: 15px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; margin-right: 6px; border-radius: 4px; background: var(--tia-primary); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tia-pulse 1.3s ease-in-out infinite; }
@keyframes tia-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-badge i { animation: none; } }
.photo-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.photo-strip .post-card { min-height: 190px; }
.photo-strip .post-card:first-child { grid-column: span 2; grid-row: span 2; min-height: 390px; }
.photo-strip .post-card-title { font-size: 14.5px; }
.photo-strip .post-card:first-child .post-card-title { font-size: 20px; }
@media (max-width: 820px) {
	.photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.photo-strip .post-card:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
	.photo-strip .post-card { min-height: 170px; }
}

/* 23. Agenda eventi */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.events__item { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.events__date { flex: none; width: 54px; text-align: center; border-radius: 8px; background: #0b6b3a; color: #fff; padding: 6px 0; line-height: 1.05; }
.events__date b { display: block; font-size: 22px; font-weight: 800; }
.events__date i { display: block; font-size: 12px; font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.events__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.events__body a { text-decoration: none; }
.events__body a:hover { color: var(--tia-primary); }
.events__meta { font-size: 13.5px; color: var(--muted); }
.event-info { margin: 0 0 20px; padding: 14px 16px; border-left: 4px solid #0b6b3a; background: var(--bg); border-radius: 6px; font-family: var(--font); }
.event-info p { margin: 4px 0; }
@media (min-width: 821px) { .section--events .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 24. Raccolta differenziata */
.waste__row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.waste__when { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.waste__items { display: flex; flex-wrap: wrap; gap: 6px; }
.waste__pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14.5px; }
.waste__none { color: var(--muted); font-size: 14.5px; }
.waste__hint { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.waste__alert { margin: 8px 0 0; padding: 8px 10px; border-left: 4px solid var(--tia-primary); background: var(--bg); font-weight: 700; font-size: 14px; }
.waste__week { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.waste__week li { padding: 6px 2px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.waste__week li.is-today { border-color: var(--tia-primary); box-shadow: inset 0 0 0 1px var(--tia-primary); }
.waste__week b { display: block; text-transform: uppercase; font-size: 11.5px; margin-bottom: 4px; }
.waste__dots { display: flex; justify-content: center; gap: 3px; min-height: 12px; }
.waste__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.waste__dots em { font-style: normal; color: var(--muted); }
.waste__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* 25. Dalla Calabria (feed) */
.regional { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.regional__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.regional__time { flex: none; min-width: 52px; font-weight: 800; font-size: 13.5px; color: #0b3d91; font-variant-numeric: tabular-nums; }
.regional__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.regional__body a { font-weight: 700; text-decoration: none; }
.regional__body a:hover { color: var(--tia-primary); }
.regional__src { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* 26. Tasto "Installa app" nella barra e finestra guida */
.install-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 14px; height: 36px; border: 0; border-radius: 999px; background: #fff; color: var(--tia-primary); font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.install-btn[hidden] { display: none; }
.install-btn svg { fill: currentColor; }
.install-btn:hover { background: #ffe9e9; }
.install-btn + .search-toggle, .install-btn + .theme-toggle { margin-left: 8px; }
@media (max-width: 480px) { .install-btn span { display: none; } .install-btn { width: 36px; padding: 0; justify-content: center; } }
.pwa-dialog { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); }
.pwa-dialog__box { max-width: 380px; padding: 22px; border-radius: 14px; background: var(--card, #fff); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.pwa-dialog__box strong { display: block; margin-bottom: 8px; font-size: 18px; }
.pwa-dialog__box p { margin: 0 0 16px; line-height: 1.5; }
.pwa-dialog__box button { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--tia-primary); color: #fff; font-weight: 700; cursor: pointer; }
.install-btn[hidden] + .search-toggle { margin-left: 0; }
.theme-toggle + .install-btn { margin-left: 8px; }

/* 27. Titolo "In evidenza" sopra il blocco di primo piano */
.hero-label-wrap { margin-top: 14px; margin-bottom: 10px; }
.hero-label { display: inline-block; margin: 0; padding: 4px 14px; background: var(--tia-primary); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; }

/* 28. Primo piano: foto più visibili, titolo leggibile */
.hero .post-card--overlay .thumb::after { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.25) 100%); }
.hero .post-card--overlay .post-card-body {
	padding-top: 56px;
	background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,0) 100%);
}
.hero .post-card:first-child .post-card-body { padding-top: 90px; }
.hero .post-card--overlay .post-card-title {
	font-weight: 800;
	text-shadow: 0 2px 6px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.hero .post-card:first-child .post-card-title { -webkit-line-clamp: 3; font-size: clamp(24px, 2.4vw, 32px); }
.hero .post-card--overlay .post-card-kicker, .hero .post-card--overlay .badge { text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.hero .post-card--overlay .post-card-summary { display: none; }
.hero .post-card:first-child .post-card-summary { display: -webkit-box; }

/* 29. Striscia "Il giorno di Acri", titolo con logo, colori per categoria */
.daystrip { display: flex; align-items: stretch; margin: 16px 0 6px; background: #111; color: #fff; border-radius: 14px; overflow: hidden; }
.ds-title { flex: none; display: flex; align-items: center; padding: 12px 20px; background: var(--tia-primary); font-weight: 900; font-size: 18px; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em; }
.ds-cell { flex: 1 1 0; min-width: 0; padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.ds-cell:last-child { border-right: 0; }
.ds-cell small { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #ff9a9a; }
.ds-cell b { font-size: 16.5px; line-height: 1.25; }
.ds-cell a { color: inherit; display: flex; flex-direction: column; gap: 3px; }
.ds-cell a:hover b { text-decoration: underline; }
.ds-range { font-size: 13px; color: #cfcfcf; }
.ds-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.daystrip .waste__pill { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.daystrip .waste__none { font-weight: 800; }
.ds-hint { font-style: normal; font-size: 12.5px; color: #d6d6d6; }
.ds-alert { font-style: normal; font-size: 12.5px; color: #ffd166; font-weight: 700; }
@media (max-width: 900px) {
	.daystrip { flex-wrap: wrap; }
	.ds-title { flex: 1 1 100%; padding: 9px 16px; }
	.ds-title br { display: none; }
	.ds-title::after { content: ""; }
	.ds-cell { flex: 1 1 50%; border-bottom: 1px solid rgba(255,255,255,.12); }
}

.hero-head { display: flex; align-items: center; gap: 14px; margin-top: 16px; margin-bottom: 12px; }
.hero-head__logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.hero-head__title { margin: 0; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.hero-head__title em { font-style: normal; color: var(--tia-primary); }
.hero-head__line { flex: 1; height: 4px; background: linear-gradient(90deg, var(--tia-primary), var(--tia-primary) 40%, transparent); border-radius: 2px; }

.hero .post-card .badge { display: inline-block; }
.hero .post-card--overlay { position: relative; }
.hero .post-card--overlay::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c, var(--tia-primary)); z-index: 2; pointer-events: none; }
.hero .post-card--overlay .thumb img { transition: transform .5s ease; }
.hero .post-card--overlay:hover .thumb img { transform: scale(1.05); }
.hero .post-card--overlay .meta-date { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 700; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .hero .post-card--overlay .thumb img { transition: none; } }

/* 30. Primo piano: foto più visibili, soprattutto nelle spalle */
.hero .post-card--overlay .post-card-body { padding-top: 40px; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,0) 100%); }
.hero .post-card:first-child .post-card-body { padding-top: 70px; }
.hero .post-card:not(:first-child) .post-card-body { padding: 26px 14px 14px; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,0) 100%); }
.hero .post-card:not(:first-child) .post-card-title { font-size: 15px; line-height: 1.25; -webkit-line-clamp: 3; }
.hero .post-card:not(:first-child) .post-card-kicker { margin-bottom: 3px; font-size: 11px; }
.hero .post-card--overlay .thumb::after { background: none; }
.hero .post-card--overlay .post-card-title { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.55); }
.hero .post-card--overlay .thumb img { filter: saturate(1.08); }

/* 31. Ticker sotto la striscia + striscia leggibile su telefono */
.daystrip:has(+ .ticker--strip) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ticker--strip { margin: 0 0 8px; padding: 9px 16px; background: #1f2023; color: #fff; font-size: 14px; border-radius: 0 0 14px 14px; border-top: 1px solid rgba(255,255,255,.1); }
.ticker--strip .ticker-toggle { color: #fff; }
.daystrip + .ticker--strip { margin-top: 0; }
@media (max-width: 900px) {
	.ds-title { flex: 1 1 100%; padding: 9px 16px; font-size: 15px; justify-content: flex-start; }
	.ds-title br { display: none; }
	.ds-cell { flex: 1 1 100%; padding: 10px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
	.ds-cell:last-child { border-bottom: 0; }
	.ds-cell b { font-size: 15.5px; }
	.ds-cell small { font-size: 10.5px; }
	.ds-cell:nth-child(2) { flex: 1 1 100%; }
}
@media (max-width: 480px) {
	.daystrip { border-radius: 10px; margin-top: 10px; }
	.ticker--strip { padding: 8px 12px; font-size: 13px; }
}

/* 32. Occhielli, foto uniformi, più letti, menu, animazioni, articolo, piè di pagina */
.post-card:not(.post-card--overlay) .post-card-kicker { color: var(--c, var(--tia-primary)); }
.post-card:not(.post-card--overlay):not(.post-card--mini) .post-card-kicker::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; background: var(--c, var(--tia-primary)); border-radius: 2px; }

.thumb { aspect-ratio: 3 / 2; }
.post-card--row .thumb { aspect-ratio: 3 / 2; min-height: 0; align-self: flex-start; }
.archive-list .post-card--card .thumb { aspect-ratio: 3 / 2; }
.thumb-placeholder { background: radial-gradient(circle at 30% 20%, #3a3c44, var(--dark) 70%); }
.thumb-fallback { width: 38%; max-width: 96px; height: auto; border-radius: 50%; opacity: .9; object-fit: contain; }

.popular-list .post-card::before { width: 44px; font-size: 44px; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--tia-primary); font-family: var(--font-serif, Georgia, serif); }
.popular-list .post-card:first-child::before { color: var(--tia-primary); -webkit-text-stroke: 0; }
.popular-list .post-card { align-items: center; }

.nav-brand__icon { width: 26px; height: 26px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: #fff; }
.nav-brand span { vertical-align: middle; }
.main-nav.is-stuck { box-shadow: 0 8px 24px rgba(0,0,0,.35); border-bottom: 2px solid var(--tia-primary); }

.js-reveal .home-section, .js-reveal .hero .post-card { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .home-section.is-in, .js-reveal .hero .post-card.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .home-section, .js-reveal .hero .post-card { opacity: 1; transform: none; transition: none; } }

.single-article .entry-media img { border-radius: var(--radius); max-height: 560px; }
.inline-related { clear: both; margin: 26px 0; padding: 14px 18px; border-left: 5px solid var(--tia-primary); background: var(--thumb-bg, #f1f2f4); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--font, inherit); }
.inline-related__label { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--tia-primary); }
.inline-related a { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.inline-related a:hover { color: var(--tia-primary); }
.entry-content blockquote, .entry-content .wp-block-quote { border-left: 5px solid var(--tia-primary); font-size: 1.18em; font-weight: 600; }

.footer-h { margin: 0 0 12px; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-redazione dl { margin: 0; display: grid; gap: 2px; font-size: 14px; color: #c9cacf; }
.footer-redazione dt { margin-top: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ff9a9a; }
.footer-redazione dd { margin: 0; }
.footer-redazione a, .footer-numeri a { color: #fff; }
.footer-numeri ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: #c9cacf; }
.footer-numeri li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 6px; }
.footer-numeri li a { font-weight: 800; white-space: nowrap; }
.thumb .thumb-fallback { width: 34%; max-width: 96px; height: auto; border-radius: 0; object-fit: contain; }
.post-card:hover .thumb .thumb-fallback { transform: none; }

/* 33. Video esterni (Facebook, YouTube) e finestra di riproduzione */
.post-card--ext .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card--ext .post-card-kicker { color: #ffd0d0; }
.vid-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.82); }
.vid-modal[hidden] { display: none; }
.vid-modal__box { position: relative; width: min(960px, 100%); }
.vid-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.vid-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-modal__close { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 26px; line-height: 1; cursor: pointer; }
.vid-open-body { overflow: hidden; }
