/*
Theme Name: Paesaggio Che Vai
Author: KMSTUDIO
Version: 1.0
*/

:root {
	--pcv-font-family-primary: 'Inter Tight', sans-serif;
	--pcv-font-weight-normal-primary: 400;
	--pcv-font-weight-bold-primary: 600;
	--pcv-font-family-secondary: 'Kalnia', sans-serif;
	--pcv-font-weight-secondary: 500;

	--pcv-white: #f8f6f2;
	--pcv-grey: #eceae6;
	--pcv-green: #91b508;
	--pcv-yellow: #ffe800;
	--pcv-cyan: #0090df;
	--pcv-red: #d9000d;
}

html, body { min-height: 100vh; }
html { font-size: 18px; }
body {
	background-color: var(--pcv-white);
	color: #333;
	font-family: var(--pcv-font-family-primary);
	font-weight: var(--pcv-font-weight-normal-primary);
	padding: 0;
	margin: 0;
}
body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

a { color: var(--pcv-cyan); transition: opacity .3s; }
a:hover { opacity: .7; }

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { font-family: var(--pcv-font-family-secondary); font-weight: var(--pcv-font-weight-secondary); line-height: 1; }
b,strong { font-weight: var(--pcv-font-weight-bold-primary); }
p { margin: 0 0 1.5rem 0; line-height: 1.3; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-bottom: 4px solid #000;	border-radius: 100%; margin: 3rem 0; opacity: .05; }
figure { margin: 0; }
figure img { display: block; margin: 0 auto; }
figure.alignleft img { margin-left: 0; }
figure svg { display: block; max-width: 100%; margin: 0 auto; height: auto; }
nav ul { list-style: none; padding: 0; margin: 0; }
nav ul li a { text-decoration: none; }

.bg-grey { background-color: var(--pcv-grey); }

/* <FLEX WITH SEPARATOR> */
.flex-w-separator {
	--flex-w-separator-content: '';
	--flex-w-separator-width: 1px;
	--flex-w-separator-height: 1rem;
	--flex-w-separator-color: #000;
	--flex-w-separator-gap: 2rem;
	gap: var(--flex-w-separator-gap);
}
.flex-w-separator span,
.flex-w-separator div,
.flex-w-separator li {
	position: relative;
}
.flex-w-separator span + span::before,
.flex-w-separator div + div::before,
.flex-w-separator li + li::before {
	content: '';
	position: absolute;
	left: calc(-1 * var(--flex-w-separator-gap) / 2);
	top: 50%;
	width: var(--flex-w-separator-width);
	height: var(--flex-w-separator-height);
	color: var(--flex-w-separator-color);
	background: var(--flex-w-separator-color);
	opacity: .25;
	transform: translateY(-50%);
}
.flex-w-separator-content span + span::before,
.flex-w-separator-content div + div::before,
.flex-w-separator-content li + li::before {
	content: var(--flex-w-separator-content);
	top: 0;
	width: auto;
	height: 0;
	transform: translateX(-.1em);
 }
 /* </FLEX WITH SEPARATOR> */

/* <HAMBURGER> */
.hamburger-btn {
	position: relative;
	left: .5rem;
	display: block;
	padding: 1rem;
	cursor: pointer;
	box-sizing: content-box;
	z-index: 11;
}
.hamburger-bar {
	display: block;
	width: 1.5rem;
	height: 1.5px;
	background-color: #000;
	border-radius: 100px;
	margin: 0 0 6px;
}
.hamburger-bar:last-child { margin-bottom: 0; }
/* </HAMBURGER> */

/* <SIDENAV> */
.sidenav {
	position: fixed;
	top: 0; left: auto; right: -100%;
	background: var(--pcv-white);
	width: 85vw;
	max-width: 30rem;
	height: 100dvh;
	padding-top: 1rem;
	transition: right .5s;
	z-index: 1003;
}
.sidenav.expanded { right: 0; }
.sidenav nav.main { padding-bottom: 2rem; }
.sidenav nav.main > ul > li > a {
	display: block;
	font-size: 1.15rem;
	font-weight: var(--pcv-font-weight-bold-primary);
	padding: .75rem 2rem;
	color: inherit;
	transition: opacity .25s;
}
.sidenav nav.main > ul > li > a:hover { opacity: .8; }
.sidenav nav.main > ul li { position: relative; }
.sidenav nav.main > ul li.w-counter a { position: relative; padding-right: 0; }
.sidenav nav.main > ul li a span.counter { position: absolute; font-size: .5em; top: .3rem; right: auto; color: var(--sdvv-pale-chiffon); background: var(--sdvv-orange); padding: 0 .25rem; border-radius: 100px; line-height: 16px; }
.sidenav nav.main > ul ul {
	display: none;
	background: var(--sdvv-warm-white);
	margin-bottom: 1rem;
	padding: 1rem 0;
}
.sidenav nav.main > ul li.expanded ul { display: block; }
.sidenav nav.main > ul ul a {
	display: block;
	font-size: 1.3rem;
	font-weight: 800;
	color: #333;
	padding: 1rem 3rem;
	transition: background .25s;
}
.sidenav nav.main > ul ul a:hover { background: #eee; }
.sidenav-overlay {
    background-color: #000;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
	opacity: .5;
}
/* </SIDENAV> */

/* <WALKING TRAILS MAP> */
.walking-trails-map-container { padding: 3rem 0; }
.walking-trails-map { position: relative; width: fit-content; margin: 0 auto; }
.walking-trails-map .desc { position: absolute; top: 19%; left: 63%; max-width: 15rem; z-index: 1; }
.walking-trails-map .desc .icon { max-width: 1.25rem; }
.walking-trails-map .desc .icon img { margin-left: 0; }
.walking-trails-map .desc p { line-height: 1.3; font-size: .6rem; margin-top: .5rem; }
.walking-trails-map .walking-trails-map-pin,
.walking-trails-map .walking-trails-map-pin-shadow {
	position: absolute;
	aspect-ratio: .93;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78.842' height='90.788' viewBox='0 0 78.842 90.788'%3E%3Cellipse cx='39.421' cy='40.018' fill='%23ffe800' rx='39.421' ry='40.018'/%3E%3Cpath fill='%23ffe800' d='M39.638 90.788 19.746 71.042h39.783Z' /%3E%3Cg transform='translate(21.779 10.961)'%3E%3Cpath d='m17.619 26.681 7.087 7.12a3.933 3.933 0 0 1 .839 2.373l-.228 4.44-.508 8.48a2.561 2.561 0 0 1-5.115-.162c.048-2.905.414-5.763.635-8.679l.243-3.21a.705.705 0 0 0-.311-.532l-6.021-4.116-2.034 7a5.88 5.88 0 0 1-.966 1.953L4.657 51.505a2.5 2.5 0 0 1-3.4.994 2.467 2.467 0 0 1-.924-3.359L6.6 39.029a3.13 3.13 0 0 0 .42-.9l.681-2.89 1.519-6.68a5.716 5.716 0 0 1 .068-3.118l3.779-13.336a4.133 4.133 0 0 1 3.9-2.936 3.785 3.785 0 0 1 3.3 1.664l4.933 8.042a.8.8 0 0 0 .486.145l6.579-.574.149-1.022a.832.832 0 0 1-.372-.946 1.143 1.143 0 0 1 1.226-.858 1.129 1.129 0 0 1 1.064 1.033.81.81 0 0 1-.561.913l-.088.869a1.838 1.838 0 0 1 1.447 2.006 2 2 0 0 1-1.863 1.84l-1.2 9.548-2.423 18.921c-.053.416-.193.681-.622.727-.291.031-.766-.21-.712-.639l1.436-11.534 2.1-16.883-7.322.648a2.293 2.293 0 0 1-1.938-1l-2.68-3.54Z' /%3E%3Cpath d='M3.118 26.231a2.829 2.829 0 0 1-2.113-3.542l1.946-6.9c.127-.451.346-.906.909-.854l1.294.12-1.13-.766a.752.752 0 0 1-.328-.821c.182-.652.315-1.285.554-1.909a3.277 3.277 0 0 1 3.783-2.077 26.5 26.5 0 0 1 2.6.8.987.987 0 0 1 .611 1.309L7.267 26.387c-.107.392-.738.593-1.077.539a26.4 26.4 0 0 1-3.072-.694' /%3E%3Cpath d='M25.422 6.128a4.524 4.524 0 1 1-4-6.124 4.513 4.513 0 0 1 3.422 1.9 4.435 4.435 0 0 1 .576 4.221' /%3E%3C/g%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.walking-trails-map .walking-trails-map-pin {
	--pcv-tooltip-distance: 2rem;
	width: 1.15rem;
	transform: translate(-50%, -100%);
	z-index: 3;
	cursor: pointer;
	transition: width .3s;
	filter: drop-shadow(0 0 1px #0006);
}
.walking-trails-map .walking-trails-map-pin-shadow {
	width: 1rem;
	transform: translate(-50%, calc(-100% + 2px)) skewX(-50deg) scaleY(.5);
	transform-origin: 0 bottom;
	filter: grayscale() brightness(0);
	opacity: .1;
	z-index: 2;
}
.walking-trails-map .walking-trails-map-pin:hover { width: 1.35rem; }
.walking-trails-map .walking-trails-map-pin.show-tooltip { width: 1.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78.842' height='90.788' viewBox='0 0 78.842 90.788'%3E%3Cellipse cx='39.421' cy='40.018' fill='%23fff' rx='39.421' ry='40.018'/%3E%3Cpath fill='%23fff' d='M39.638 90.788 19.746 71.042h39.783Z' /%3E%3Cg transform='translate(21.779 10.961)'%3E%3Cpath d='m17.619 26.681 7.087 7.12a3.933 3.933 0 0 1 .839 2.373l-.228 4.44-.508 8.48a2.561 2.561 0 0 1-5.115-.162c.048-2.905.414-5.763.635-8.679l.243-3.21a.705.705 0 0 0-.311-.532l-6.021-4.116-2.034 7a5.88 5.88 0 0 1-.966 1.953L4.657 51.505a2.5 2.5 0 0 1-3.4.994 2.467 2.467 0 0 1-.924-3.359L6.6 39.029a3.13 3.13 0 0 0 .42-.9l.681-2.89 1.519-6.68a5.716 5.716 0 0 1 .068-3.118l3.779-13.336a4.133 4.133 0 0 1 3.9-2.936 3.785 3.785 0 0 1 3.3 1.664l4.933 8.042a.8.8 0 0 0 .486.145l6.579-.574.149-1.022a.832.832 0 0 1-.372-.946 1.143 1.143 0 0 1 1.226-.858 1.129 1.129 0 0 1 1.064 1.033.81.81 0 0 1-.561.913l-.088.869a1.838 1.838 0 0 1 1.447 2.006 2 2 0 0 1-1.863 1.84l-1.2 9.548-2.423 18.921c-.053.416-.193.681-.622.727-.291.031-.766-.21-.712-.639l1.436-11.534 2.1-16.883-7.322.648a2.293 2.293 0 0 1-1.938-1l-2.68-3.54Z' /%3E%3Cpath d='M3.118 26.231a2.829 2.829 0 0 1-2.113-3.542l1.946-6.9c.127-.451.346-.906.909-.854l1.294.12-1.13-.766a.752.752 0 0 1-.328-.821c.182-.652.315-1.285.554-1.909a3.277 3.277 0 0 1 3.783-2.077 26.5 26.5 0 0 1 2.6.8.987.987 0 0 1 .611 1.309L7.267 26.387c-.107.392-.738.593-1.077.539a26.4 26.4 0 0 1-3.072-.694' /%3E%3Cpath d='M25.422 6.128a4.524 4.524 0 1 1-4-6.124 4.513 4.513 0 0 1 3.422 1.9 4.435 4.435 0 0 1 .576 4.221' /%3E%3C/g%3E%3C/svg%3E"); }
.walking-trails-map .walking-trails-map-pin .walking-trails-map-pin-tooltip { display: none; }
.walking-trails-map-mobile-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.walking-trails-map-mobile-modal.is-open { opacity: 1; visibility: visible; }
.walking-trails-map-mobile-modal .walking-trails-map-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.walking-trails-map-mobile-modal .walking-trails-map-modal-box {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 20rem;
	padding: 1.5rem;
	border-radius: 1.5rem;
	box-shadow: 0 0 30px rgba(0,0,0,.1);
	z-index: 1;
}
.walking-trails-map-mobile-modal .walking-trails-map-modal-box h3 { font-size: 1.25rem; line-height: 1; margin: 0 0 .75rem; }
.walking-trails-map-mobile-modal .walking-trails-map-modal-box .region { font-size: .75rem; margin: 0 0 .25rem; }
.walking-trails-map-mobile-modal .walking-trails-map-modal-box a.button { font-size: .8rem; padding: .35rem .75rem; }
.walking-trails-map-mobile-modal .walking-trails-map-modal-close {
	position: absolute;
	top: .5rem;
	right: .75rem;
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #000;
	cursor: pointer;
}
body.post-type-archive-walking_trail .walking-trails-map-container { padding-top: 0; }
/* </WALKING TRAILS MAP> */

.button {
	display: inline-block;
	font-weight: var(--pcv-font-weight-bold-primary);
	font-size: 1rem;
	color: #000;
	background-color: var(--pcv-yellow);
	border-radius: 100px;
	border: 3px solid transparent;
	padding: .75rem 1.35rem;
	line-height: 1;
	letter-spacing: .5px;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	text-decoration: none;
}
.button.text-lowercase { font-size: .8rem; }
.button-black {
	color: var(--pcv-white);
	background-color: #000;
}

.button-arrow {
	display: inline-block;
	color: #000;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	text-decoration: none;
}
.button-arrow i { font-size: 1.2em; }

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { --bs-gutter-x: 2rem; position: relative; padding-top: var(--bs-gutter-y); padding-bottom: var(--bs-gutter-y); }
.container .text-container, .container-fluid .text-container { position: relative; max-width: 45rem; margin: 0 auto; }

.region { display: block; letter-spacing: .1rem; text-transform: uppercase; line-height: 1; }

.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: end; justify-items: center; margin: 3rem 0; }
.logos p { font-size: .75rem; line-height: 1.1; }
.logos .w-bar { border-left: 1px solid #0000001f; }

.error404-number { color: var(--pcv-red); font-family: var(--pcv-font-family-secondary); font-size: 1.5rem; font-weight: var(--pcv-font-weight-bold-primary); line-height: 1; }

main { padding-top: 3rem; }

.rough-border { position: absolute; bottom: -4px; left: 0; width: 100%; height: 8px; z-index: 1; }
.rough-border-top { top: -4px; }

.container-cover-img { --bs-gutter-x: 0 !important; }
.container-cover-img img { width: 100%; max-height: 35vw; object-fit: cover; }

.news-container .article-header h2 { font-size: 1.25rem; }
.news-container .article-header time { text-transform: lowercase; font-weight: var(--pcv-font-weight-bold-primary); }
.news-container p { font-size: .9rem; line-height: 1.3; }
.news-container figure img { border-radius: 1rem; }

header.int-page { text-align: center; margin-bottom: 3rem; }
header.int-page h1 { margin: 0; }
header.int-page .section { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1rem; }
header.int-page time { display: block; margin-top: .5rem; text-transform: lowercase; }
header.int-page .icon img { max-width: 3.5rem; }
header.int-page .region { font-size: .8rem; margin-top: .25rem; }

.layout-row { position: relative; }

.layout-row-icon-w-desc .icon { margin-bottom: 1rem; }
.layout-row-icon-w-desc .icon img { max-width: 3rem; }

.layout-row-cover { margin-bottom: 3rem; }
.layout-row-cover > .container-fluid { --bs-gutter-x: 0 !important; overflow: hidden; }
.layout-row-cover > .container-fluid img { width: 100%; max-height: 30vw; object-fit: cover; }
.layout-row-cover > .container-fluid .pcv-pictogram { position: absolute; max-width: 30vw; bottom: -4vw; right: -6vw; z-index: 1; }
.layout-row-cover.image-align-bottom > .container-fluid img { object-position: bottom; }

header.layout-row { position: fixed; top: 0; left: 0; width: 100%; z-index: 99; background-color: var(--pcv-white); }
header.layout-row > .container-fluid { --bs-gutter-y: .5rem; }
header.layout-row h1 { display: none; }
header.layout-row .logo { max-width: 15rem; }
header.layout-row .logo img { padding-right: 1rem; padding-bottom: .5rem; }
header.layout-row nav.main { display: none; }
header.layout-row .colored-border { position: absolute; bottom: -4px; left: 0; width: 100%; height: 8px; z-index: 1; }
header.layout-row .colored-border img { height: 100%; }

.section-header { text-align: center; margin: 3rem 0; }
.section-header h2 { font-size: 2rem; margin-bottom: 0; }

.layout-row-hero > .container-fluid { overflow: hidden; }
.layout-row-hero > .container-fluid img { max-height: 40vw; }
.layout-row-hero > .container-fluid .pcv-pictogram { position: absolute; max-width: 32vw; bottom: -4vw; left: -6vw; z-index: 1; }
.layout-row-hero .quote-intro { text-align: center; margin: 3rem auto; padding: 2rem 0; }
.layout-row-hero .quote-intro::before,
.layout-row-hero .quote-intro::after { content: ''; position: absolute; display: block; left: 0; width: 100%; height: 6px; border-radius: 100%; }
.layout-row-hero .quote-intro::before { top: 0; background-color: var(--pcv-yellow); }
.layout-row-hero .quote-intro::after { bottom: 0; background-color: var(--pcv-cyan); }
.layout-row-hero .quote-intro h2 { font-size: 1rem; line-height: 1.15; }

.layout-row-coming-soon { margin: 3rem 0; }
.layout-row-coming-soon p { font-size: 1.25rem; line-height: 1.1; font-weight: var(--pcv-font-weight-bold-primary); text-align: center; text-transform: uppercase; letter-spacing: .1rem; }

.layout-row-walking-trails .section-header { margin-bottom: 5rem; }

footer.layout-row { font-size: .75rem; text-align: center; margin-top: 5rem; background-color: #000; color: var(--pcv-white); }
footer.layout-row > .container { --bs-gutter-y: 2rem; }
footer.layout-row a { color: var(--pcv-yellow); }
footer.layout-row .colored-border { position: absolute; top: -4px; left: 0; width: 100%; height: 8px; transform: scaleX(-1); z-index: 1; }
footer.layout-row .colored-border img { height: 100%; }
footer.layout-row .logo-container p { font-size: .9em; margin-bottom: 1.5rem; }
footer.layout-row .logo { max-width: 23rem; margin: 0 auto 1rem; }
footer.layout-row .logo svg { margin-left: 0; padding: 0 2rem; }
footer.layout-row .logo .logotype { fill: var(--pcv-white); }
footer.layout-row .copyright { --flex-w-separator-gap: 0; }
footer.layout-row .legal { --flex-w-separator-content: '/'; --flex-w-separator-gap: 1.5rem; --flex-w-separator-color: var(--pcv-white); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #ffffff1f; }
footer.layout-row nav.main-footer { text-align: left; }
footer.layout-row nav.main-footer a { display: block; padding: .25rem 0 .25rem; font-weight: var(--pcv-font-weight-bold-primary); color: var(--pcv-white); }
footer.layout-row figure.icon svg { max-width: 3rem; }
footer.layout-row figure.icon svg path { fill: var(--pcv-white); }
body.post-type-archive-walking_trail footer.layout-row,
body.single-walking_trail footer.layout-row { margin-top: 2px; }

article.hentry .h2, article.hentry h2 { font-size: calc(1rem + .9vw); margin-bottom: 1rem; }
article.hentry .side-content figure img { width: 100%; }
article.hentry .wp-block-quote { font-size: 1.25rem; margin: 3rem 0; }
article.hentry .wp-block-image { width: 100%; margin: 3rem 0; }
article.hentry figure img { border-radius: 1rem; }
article.hentry ul { list-style: none; margin: 0; padding: 0; }
article.hentry ul li { position: relative; padding-left: 1.5rem; margin-bottom: .75rem; }
article.hentry ul li::before {
    content: '';
    position: absolute;
    top: .25em; left: 0;
    width: 1rem; height: 1rem;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10.2 2.7C5.5 2.4 2.5 5.1 2.8 10c.3 4.7 3.2 7.3 7.4 7.1 4.8-.2 7.1-3.2 7-7.5-0.1-4.4-2.5-6.7-7-6.9Z' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
article.hentry ul li:nth-child(3n + 1)::before { background-color: var(--pcv-green); }
article.hentry ul li:nth-child(3n + 2)::before { background-color: var(--pcv-cyan); }
article.hentry ul li:nth-child(3n)::before     { background-color: var(--pcv-red); }

body.single-walking_trail .info-detail { font-size: 1.25rem; line-height: 1; }
body.single-walking_trail .info-detail > i[class^="icon-"] { position: relative; font-size: 2.35rem; line-height: 1; }
body.single-walking_trail .info-detail > i.icon-flag { top: -.15rem; }
body.single-walking_trail .info-detail .label { font-size: .55rem; line-height: 1; text-transform: uppercase; margin-bottom: .1rem; letter-spacing: .1rem; }
