/*
Theme Name: Italy4
Version: 0.1.0
Text Domain: italy4
*/
:root { --green: #06650b; --ink: #21231e; --rule: #dedfd6; color: var(--ink); font: 18px/1.55 Georgia, serif; background: #fafaf7; }
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1160px, 94%); margin-inline: auto; }
a { color: var(--green); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #cd8000; outline-offset: 2px; }
img, iframe, video, figure { max-width: 100%; }
img { height: auto; }
figure { margin-inline: 0; }
.skip-link:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.masthead { background: white; }
.masthead > .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.brand img { display: block; max-width: min(330px, 65vw); }
.masthead .navigation { background: #222; color: white; font: 600 16px/1.35 system-ui,sans-serif; }
.masthead .navigation ul { list-style: none; padding: 0; margin: 0; }
.masthead .navigation #primary-menu { display: flex; flex-wrap: wrap; }
.masthead .navigation li { position: relative; }
.masthead .navigation a, .masthead .navigation button { color: inherit; }
.masthead .navigation a { display: block; padding: 11px 9px; text-decoration: none; }
.masthead .navigation li.menu-item-has-children > a { padding-inline-end: 44px; }
.masthead .navigation a:hover, .masthead .navigation button:hover { background: #41443e; }
.masthead .navigation button { appearance: none; border: 0; background: transparent; font: inherit; cursor: pointer; }
.menu-toggle { min-height: 46px; }
.submenu-toggle { position: absolute; inset: 0 0 auto auto; width: 44px; height: 44px; display: grid; place-items: center; }
.submenu-toggle::before { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.submenu-toggle[aria-expanded=true]::before { transform: rotate(225deg); }
.masthead .navigation .sub-menu { background: #30332f; min-width: 13rem; padding-inline-start: .5rem; }
@media (min-width:761px) {
	.masthead .navigation #primary-menu > li > .sub-menu { position: absolute; z-index: 5; max-height: 65vh; overflow-y: auto; }
	.masthead .navigation #primary-menu > li:last-child > .sub-menu { right: 0; }
}
.masthead .navigation [hidden], .masthead .navigation #primary-menu[hidden] { display: none; }
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 28%); gap: clamp(24px, 4vw, 64px); padding-block: 32px 60px; }
.site-layout:not(:has(.sidebar)) { grid-template-columns: minmax(0, 840px); justify-content: center; }
main, .sidebar, .site-footer .wrap > div { min-width: 0; overflow-wrap: anywhere; }
h1,h2,h3 { line-height: 1.18; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--green); }
.crumbs,.byline { font: .85rem/1.6 system-ui,sans-serif; }
.sections { display:flex; flex-wrap:wrap; gap: .3em 1em; padding:0; list-style:none; }
.entry { font-size: 1.1rem; }
.entry table { display:block; max-width:100%; overflow-x:auto; }
.entry iframe[src*="youtube"] { width:100%; height:auto; aspect-ratio:16/9; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:24px; margin-block:30px; }
.card a { display:block; color:inherit; text-decoration:none; }
.card a:hover h2 { color:var(--green); text-decoration:underline; }
.card img { width:100%; aspect-ratio: 310/165; object-fit:cover; }
.card h2,.widget h2 { font-size:1.12rem; }
.sidebar .widget { margin-bottom:2rem; border-top:2px solid var(--green); }
.widget ul { padding-inline-start:1.1em; }
.archive-pages { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:.25em 1em; font:20px/1.35 "PT Serif",Georgia,serif; }
.archive-pages small { margin-inline-start:auto; }
.pagination .screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.pagination .nav-links { display:flex; align-items:center; flex-wrap:wrap; gap:3px; }
.pagination .page-numbers { padding:5px 10px; color:#666; text-decoration:none; }
.pagination a:hover { color:#111; text-decoration:underline; }
.pagination .current { background:var(--green); color:white; }
.category .cards { max-width:660px; padding:20px; gap:10px 2%; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0 0 20px; background:white; border-bottom:4px solid var(--green); }
.category .card img { display:block; }
.category .card h2 { margin:6px 0 0; color:#111; text-align:center; font:400 16px/1.35 "PT Serif",Georgia,serif; overflow-wrap:break-word; }
.category .archive-pages { max-width:660px; }
.site-footer { border-top:8px solid var(--green); background:#333; color:#ddd; padding-block:20px; font:20px/1.35 "PT Serif",Georgia,serif; }
.site-footer .wrap { max-width:1045px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4%; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { line-height:1.1; padding:5px 12px 5px 0; border-bottom:1px solid #444; }
.site-footer a { color:#ccc; text-decoration:none; }
.site-footer a:hover { color:white; text-decoration:underline; }
@media (max-width:760px) {
	.category .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.site-footer .wrap { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}
@media (max-width:520px) {
	.category .cards,.site-footer .wrap { grid-template-columns:1fr; }
	.pagination .page-numbers { min-height:44px; display:inline-grid; place-items:center; }
}
.box { border-inline-start:4px solid var(--green); padding:.6em 1em; background:#f0f3e9; margin-block:1em; }
.shortc-button { display:inline-block; padding:.5em 1em; background:var(--green); color:white; }
.highlight { background:#fff2a7; }
.one_half { width:48%; float:left; margin-inline-end:2%; }
.clear { clear:both; }
@media (max-width:760px) {
	.masthead .navigation #primary-menu { display:block; }
	.masthead .navigation .sub-menu { min-width:0; }
	.masthead .navigation li > a { min-height:44px; border-block-start:1px solid #494b46; }
	.site-layout { display:block; }
	.sidebar { display:none; }
	.one_half { float:none; width:100%; }
}
.masthead > .wrap { gap: 1rem; }
.partner { min-width:0; }
.partner img { display:block; }
@media (max-width:760px) {
	.masthead > .wrap { flex-wrap:wrap; }
	.masthead .partner { order:1; width:100%; }
}

.article-video iframe { display:block; width:100%; max-width:660px; height:auto; aspect-ratio:16/9; border:0; }
.article-video video { max-width:100%; height:auto; }

#reading-position-indicator {
	position: fixed;
	inset: auto 0 0;
	height: 4px;
	background: #ff8500;
	transform: scaleX(0);
	transform-origin: left;
	pointer-events: none;
	z-index: 9999;
}

.author-bio { display:flow-root; padding:1rem; border-top:2px solid var(--green); background:#fff; scroll-margin-top:1rem; }
.author-bio .avatar { float:inline-start; width:90px; height:90px; object-fit:cover; margin:0 1rem .5rem 0; }
.author-bio h2,.author-bio p { margin:0 0 .5rem; }
.related ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0; padding:0; list-style:none; }
.related a { display:block; text-align:center; text-decoration:none; color:inherit; font:400 16px/1.4 Georgia,serif; }
.related a:hover,.related a:focus-visible { color:var(--green); text-decoration:underline; }
.related img { display:block; width:100%; aspect-ratio:310/165; object-fit:cover; margin-bottom:.4rem; }
@media (max-width:760px) { .related ul { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .related ul { grid-template-columns:1fr; } }
