/*
Theme Name: Peregrinazione
Theme URI: https://www.peregrinazione.nl
Author: TommyRocks
Description: Custom ACF Pro theme for Peregrinazione (Theo Hoogink) — mentoring, communication training, leadership development, burn-out guidance, etiquette training and family constellations. Rebuilt from the client's existing Site.pro site as a portable WordPress theme; every page's text and images are editable through a dedicated ACF options screen.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: peregrinazione
*/

:root {
	--pg-bg: #eeeeee;
	--pg-box: #ffffff;
	--pg-text: #333333;
	--pg-muted: #555555;
	--pg-accent: #ff8800;
	--pg-link: #0000ee;
	--pg-link-alt: #2185d8;
	--pg-max-width: 1000px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pg-bg);
	color: var(--pg-text);
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-weight: 400;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--pg-link);
}

a:hover,
a:focus {
	color: var(--pg-link-alt);
}

.pg-container {
	max-width: var(--pg-max-width);
	margin: 0 auto;
	background: var(--pg-box);
	padding: 0 24px;
}

/* Header */

.pg-header {
	background: var(--pg-bg);
}

.pg-header__inner {
	max-width: var(--pg-max-width);
	margin: 0 auto;
	padding: 24px;
	background: var(--pg-box);
	display: flex;
	align-items: flex-start;
	gap: 18px 32px;
	flex-wrap: wrap;
}

.pg-header__logo {
	order: 1;
}

.pg-header__brand {
	order: 2;
	margin-right: auto;
}

.pg-nav {
	order: 3;
}

.pg-header__logo img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.pg-header__brand h1 {
	margin: 0;
	color: var(--pg-accent);
	font-weight: 700;
	font-size: 26px;
	line-height: 1;
}

@media (min-width: 480px) {
	.pg-header__brand h1 {
		font-size: 30px;
	}
}

@media (min-width: 782px) {
	.pg-header__brand h1 {
		font-size: 36px;
	}
}

@media (min-width: 1000px) {
	.pg-header__brand h1 {
		font-size: 40px;
	}
}

.pg-header__brand p {
	margin: 4px 0 0;
	color: var(--pg-muted);
	font-style: italic;
	font-size: 15px;
}

/* Primary nav — sits beside the header brand (not its own full-width bar).
   6 top-level items only; items with children reveal a dropdown on
   hover/focus (desktop) or via the caret button (touch/keyboard). */

.pg-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px 20px;
	max-width: 480px;
}

.pg-nav__item {
	position: relative;
}

.pg-nav a {
	display: inline-block;
	padding: 4px 0;
	color: var(--pg-text);
	text-decoration: none;
	font-size: 14px;
}

.pg-nav a:hover,
.pg-nav a:focus {
	color: var(--pg-accent);
}

.pg-nav__caret {
	background: none;
	border: 0;
	padding: 0 0 0 4px;
	font-size: 10px;
	color: var(--pg-muted);
	cursor: pointer;
	vertical-align: middle;
}

.pg-nav__sub {
	display: none;
	list-style: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 220px;
	margin: 4px 0 0;
	padding: 6px 0;
	background: var(--pg-box);
	border: 1px solid #ddd;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	z-index: 30;
}

.pg-nav__sub a {
	display: block;
	padding: 8px 14px;
	white-space: nowrap;
}

.pg-nav__item:hover > .pg-nav__sub,
.pg-nav__item:focus-within > .pg-nav__sub,
.pg-nav__item.is-open > .pg-nav__sub {
	display: block;
}

.pg-nav__toggle {
	display: none;
}

@media (max-width: 700px) {
	.pg-header__inner {
		flex-direction: column;
	}

	.pg-nav {
		width: 100%;
		order: 3;
	}

	.pg-nav__toggle {
		display: block;
		width: 100%;
		text-align: left;
		background: none;
		border: 0;
		border-top: 1px solid #ddd;
		margin-top: 12px;
		padding: 10px 0 0;
		font-size: 15px;
		font-weight: 600;
		color: var(--pg-text);
	}

	.pg-nav > ul {
		display: none;
		flex-direction: column;
		justify-content: flex-start;
		max-width: none;
		gap: 0;
		padding-bottom: 10px;
	}

	.pg-nav.is-open > ul {
		display: flex;
	}

	.pg-nav__sub {
		display: none;
		position: static;
		border: 0;
		box-shadow: none;
		padding: 0 0 4px 16px;
	}

	.pg-nav__item.is-open .pg-nav__sub {
		display: block;
	}
}

/* Hero — the band bleeds a copy of the hero photo into the page background
   either side of the content column (matches the original site), while the
   boxed image itself sits in a white frame/margin on top of that. */

.pg-hero-band {
	background-image: var(--pg-hero-img);
	background-size: cover;
	background-position: center;
}

.pg-hero {
	max-width: var(--pg-max-width);
	margin: 0 auto;
	padding: 24px;
	background: var(--pg-box);
}

.pg-hero img {
	width: 100%;
	height: auto;
}

.pg-hero__caption {
	color: var(--pg-muted);
	font-size: 13px;
	padding: 6px 24px 0;
}

/* Main content */

.pg-main {
	max-width: var(--pg-max-width);
	margin: 0 auto;
	background: var(--pg-box);
	padding: 32px 24px 48px;
}

.pg-block {
	margin-bottom: 40px;
}

.pg-block:last-child {
	margin-bottom: 0;
}

.pg-block--with-image {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
}

.pg-block__media {
	flex: 0 0 auto;
	width: 220px;
	text-align: center;
}

.pg-block__media img {
	max-width: 100%;
	border-radius: 4px;
}

.pg-block__media-caption {
	display: block;
	font: normal bold 17px "Arima Madurai", "Open Sans", serif;
	color: var(--pg-text);
	margin-top: 8px;
}

.pg-block__text {
	flex: 1 1 320px;
	min-width: 0;
}

.pg-block__heading {
	color: var(--pg-accent);
	font-weight: 700;
	font-size: 20px;
	margin: 0 0 12px;
}

.pg-block__body {
	font-size: 16px;
}

.pg-block__body p {
	margin: 0 0 14px;
}

.pg-block__body ul {
	margin: 0 0 14px;
	padding-left: 22px;
}

.pg-block__links {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.pg-block__links li {
	margin-bottom: 4px;
}

/* Footer — dark band, each column topped with a thin orange rule */

.pg-footer {
	background: #333333;
	color: #aaaaaa;
}

.pg-footer__inner {
	max-width: var(--pg-max-width);
	margin: 0 auto;
	padding: 40px 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.pg-footer__inner > * {
	border-top: 3px solid var(--pg-accent);
	padding-top: 16px;
	margin: 0;
}

.pg-footer__btw {
	font-style: italic;
}

.pg-footer h2 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #aaaaaa;
}

.pg-footer__contact p,
.pg-footer__links p {
	margin: 0 0 6px;
	font-size: 14px;
}

.pg-footer a {
	color: #0e6e9f;
	text-decoration: none;
}

.pg-footer a:hover {
	text-decoration: underline;
}

@media (max-width: 700px) {
	.pg-footer__inner {
		grid-template-columns: 1fr;
	}
}

/* Sign-up form (Contact Form 7) */

.pg-signup-form input[type="text"],
.pg-signup-form input[type="email"],
.pg-signup-form input[type="tel"],
.pg-signup-form textarea {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	margin-bottom: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: inherit;
	font-size: 15px;
}

.pg-signup-form textarea {
	max-width: 100%;
	min-height: 100px;
}

.pg-signup-form input[type="submit"] {
	background: var(--pg-accent);
	color: #fff;
	border: 0;
	padding: 12px 28px;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.pg-signup-form input[type="submit"]:hover {
	background: #e67a00;
}
