/*
Theme Name: Oltrelavetta
Description: Twenty Twenty-Five with a navigation sidebar on the right of every page, listing the climbing areas and routes.
Template: twentytwentyfive
Version: 1.1
Requires at least: 6.7
Text Domain: oltrelavetta
*/

/* ---- Header: the strip of route sketches with the site title on top ---- */
.olv-banner {
	background: #fff url("assets/olrelavetta.jpg") center top / cover no-repeat;
	min-height: 288px;
	margin-top: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40);
	box-sizing: border-box;
}
.olv-banner-title {
	display: inline-block;
	background: rgba(255, 255, 255, 0.88);
	padding: 0.5em 0.9em 0.6em;
}
.olv-banner-title .wp-block-site-title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
	margin: 0;
}
.olv-banner-title .wp-block-site-title a {
	text-decoration: none;
}
.olv-banner-title .wp-block-site-tagline {
	font-size: var(--wp--preset--font-size--small);
	margin: 0.2em 0 0;
}
.olv-topnav {
	padding-top: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 781px) {
	.olv-banner {
		min-height: 180px;
		padding: var(--wp--preset--spacing--30);
	}
}

/* ---- Footer ---- */
.olv-footer {
	border-top: 1px solid var(--wp--preset--color--accent-6, #ddd);
	margin-top: var(--wp--preset--spacing--50);
}
.olv-footer .wp-block-site-title a {
	text-decoration: none;
}

/* ---- Sidebar ---- */
.olv-sidebar {
	font-size: var(--wp--preset--font-size--small);
	border-left: 1px solid var(--wp--preset--color--accent-6, #ddd);
	padding-left: var(--wp--preset--spacing--40);
}

/* The page tree: areas and groups are always visible, routes only for the
   group being viewed. */
.olv-menu,
.olv-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.olv-menu > li {
	margin-bottom: var(--wp--preset--spacing--30);
}
.olv-menu > li > a {
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.olv-menu ul {
	margin-top: 0.35em;
	padding-left: 0.9em;
}
.olv-menu li {
	line-height: 1.35;
	margin-bottom: 0.3em;
}
.olv-menu a {
	text-decoration: none;
}
.olv-menu a:hover,
.olv-menu a:focus {
	text-decoration: underline;
}
.olv-menu ul ul {
	display: none;
}
.olv-menu .current_page_item > ul,
.olv-menu .current_page_ancestor > ul {
	display: block;
}
.olv-menu .current_page_item > a {
	font-weight: 700;
	text-decoration: underline;
}

/* Old route pages contain fixed-width tables and large images. */
.olv-content table {
	max-width: 100%;
	height: auto;
}
.olv-content img {
	max-width: 100%;
	height: auto;
}

/* On phones the columns stack: drop the divider line. */
@media (max-width: 781px) {
	.olv-sidebar {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--accent-6, #ddd);
		padding-left: 0;
		padding-top: var(--wp--preset--spacing--40);
	}
}
