/**
 * Print styles for single posts
 *
 * Loaded with media="print" so all rules here apply only when printing.
 *
 * @package Circolo_Nautico_Ceriale
 */

/* ── Print-only header (logo + site title, first page only) ───────── */
.print-header {
	display: flex !important;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 0 0.75rem;
	margin-bottom: 0.25rem;
	border-bottom: 2px solid #334155;
}

.print-header img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: contain;
}

.print-site-name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a !important;
}

/* ── Print-only post title (replaces the one inside the hidden hero) ─ */
.print-post-title {
	display: block !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: #0f172a !important;
	margin: 1rem 0 0.25rem;
	line-height: 1.25;
}

.print-post-meta {
	display: block !important;
	font-size: 0.85rem;
	color: #64748b !important;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

/* ── Hide elements not needed in print ────────────────────────────── */
#navbar,
#mobile-menu,
.single-post-hero,
.entry-footer,
.post-navigation,
nav.navigation,
.sr-only,
.edit-link {
	display: none !important;
}

/* ── Footer: hide everything except the copyright line ────────────── */
#footer-main-content {
	display: none !important;
}

.footer-policy-links {
	display: none !important;
}

.footer-credits {
	display: none !important;
}

footer#contatti {
	background: #fff !important;
	color: #64748b !important;
	border-top: 1px solid #cbd5e1 !important;
	padding: 0.5rem 0 !important;
	margin-top: 2rem;
}

footer#contatti .border-t {
	border-top: none !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
	text-align: center !important;
	display: block !important;
}

footer#contatti .border-t > div {
	justify-content: center !important;
}

/* ── General print resets ─────────────────────────────────────────── */
body {
	font-size: 12pt;
	line-height: 1.6;
	color: #000 !important;
	background: #fff !important;
}

a {
	color: inherit !important;
	text-decoration: none !important;
}

.container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.site-content > section,
main > section {
	padding-top: 1rem !important;
	padding-bottom: 0 !important;
}

/* ── Content typography ───────────────────────────────────────────── */
.entry-content.prose {
	max-width: 100% !important;
	font-size: 12pt !important;
}

.entry-content img {
	max-width: 100% !important;
	page-break-inside: avoid;
	break-inside: avoid;
}

/* ── Pagination / orphans / widows ────────────────────────────────── */
p,
li {
	orphans: 3;
	widows: 3;
}

h1, h2, h3, h4, h5, h6 {
	page-break-after: avoid;
	break-after: avoid;
	color: #0f172a !important;
}

table, figure, blockquote {
	page-break-inside: avoid;
	break-inside: avoid;
}
