/* ==========================================================================
   Visiting Rome (Visitors' Office) — Generations (legacy theme) port.
   This file is the pnac child theme's assets/visiting-rome.css with this
   compatibility block prepended and the sponsor-logo row appended. Keep the
   middle in sync with the pnac copy; only the top and bottom differ.
   The block below neutralises Bootstrap 4 / Generations base styles that
   would otherwise bleed into the page.
   ========================================================================== */

.vo-page {
	--global-palette2: #f9c04f;
	--global-palette3: #1a202c;
	--global-palette5: #98978f;
	--global-palette6: #a61e39;
	--global-body-font-family: "Manrope", sans-serif;
	--global-heading-font-family: "Domine", serif;
	background: #fff;
	color: #1a202c;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
}

/* Generations sets Merriweather / Playfair / Roboto and weight 300 on
   element selectors (body, p, input, h1…), which beat inheritance from
   .vo-page. Reset them so the page's own font stack applies. */
.vo-page p,
.vo-page li,
.vo-page dt,
.vo-page dd,
.vo-page span,
.vo-page summary,
.vo-page label,
.vo-page input,
.vo-page button,
.vo-page em,
.vo-page strong {
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	line-height: inherit;
}

.vo-page strong {
	font-weight: 700;
}

.vo-page input::placeholder {
	font-family: inherit;
}

/* Match the spacing of the Kadence version under the search box. */
.vo-page .vo-search-hint {
	margin-top: 22px;
}

.vo-page h1,
.vo-page h2,
.vo-page h3 {
	font-weight: 700;
	line-height: 1.2;
	padding-top: 0;
	margin-top: 0;
}

.vo-page p {
	margin-top: 0;
}

.vo-page ul,
.vo-page ol {
	margin-bottom: 0;
}

.vo-page a {
	color: var(--global-palette6);
}

.vo-page img {
	max-width: 100%;
	height: auto;
}

.vo-page dl,
.vo-page dd {
	margin-bottom: 0;
}

.vo-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
}

/* ==========================================================================
   Visiting Rome — Visitors' Office landing page
   Palette refs: 1 #1062ba blue · 2 #f9c04f gold · 3 #1A202C ink ·
   5 #98978f gray · 6 #a61e39 crimson · 9 #fff
   ========================================================================== */

.vo-page {
	--vo-ink: var(--global-palette3, #1a202c);
	--vo-crimson: var(--global-palette6, #a61e39);
	--vo-gold: var(--global-palette2, #f9c04f);
	--vo-gray: var(--global-palette5, #98978f);
	--vo-paper: #faf9f7;
	--vo-line: #e6e3dd;
	font-family: var(--global-body-font-family, Manrope, sans-serif);
}

.vo-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.vo-page h1,
.vo-page h2,
.vo-page h3 {
	font-family: var(--global-heading-font-family, Domine, serif);
}

/* --- Hero ------------------------------------------------------------- */

.vo-hero {
	position: relative;
	background-size: cover;
	background-position: center 30%;
	padding: clamp(72px, 11vw, 140px) 24px clamp(88px, 12vw, 150px);
	text-align: center;
}

.vo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 16, 24, 0.78) 0%, rgba(26, 22, 30, 0.62) 55%, rgba(20, 16, 24, 0.82) 100%);
}

.vo-hero-inner {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
}

.vo-eyebrow {
	color: var(--vo-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.vo-title {
	color: #fff;
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1.08;
	margin: 0 0 18px;
}

.vo-subtitle {
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.65;
	max-width: 640px;
	margin: 0 auto 36px;
}

/* --- Search ------------------------------------------------------------ */

.vo-search {
	position: relative;
	max-width: 620px;
	margin: 0 auto;
}

.vo-search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	color: var(--vo-gray);
	pointer-events: none;
}

#vo-search-input {
	width: 100%;
	padding: 18px 24px 18px 56px;
	font-size: 17px;
	font-family: inherit;
	color: var(--vo-ink);
	background: #fff;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
	outline: none;
}

#vo-search-input:focus {
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--vo-gold);
}

.vo-search-hint {
	position: relative;
	color: rgba(255, 255, 255, 0.65);
	font-size: 13.5px;
	margin: 14px 0 0;
}

.vo-search-results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	text-align: left;
	max-height: 420px;
	overflow-y: auto;
	z-index: 50;
}

.vo-search-results .vo-result-group {
	padding: 6px 0;
}

.vo-search-results .vo-result-group + .vo-result-group {
	border-top: 1px solid var(--vo-line);
}

.vo-search-results .vo-result-label {
	display: block;
	padding: 10px 20px 4px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vo-gray);
}

.vo-search-results button,
.vo-search-results a {
	display: block;
	width: 100%;
	padding: 11px 20px;
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 15.5px;
	text-align: left;
	color: var(--vo-ink);
	text-decoration: none;
	cursor: pointer;
}

.vo-search-results .vo-result-section {
	display: block;
	font-size: 12.5px;
	color: var(--vo-gray);
	margin-top: 2px;
}

.vo-search-results button:hover,
.vo-search-results button:focus,
.vo-search-results a:hover,
.vo-search-results a:focus,
.vo-search-results .is-active {
	background: #f6f3ee;
	color: var(--vo-ink);
	box-shadow: none;
	border: 0;
}

.vo-search-results button:hover .vo-result-section,
.vo-search-results a:hover .vo-result-section,
.vo-search-results .is-active .vo-result-section {
	color: var(--vo-gray);
}

.vo-search-results .vo-result-empty {
	padding: 18px 20px;
	font-size: 15px;
	color: var(--vo-gray);
}

.vo-search-results .vo-result-empty a {
	display: inline;
	padding: 0;
	color: var(--vo-crimson);
	text-decoration: underline;
}

.vo-search-results mark {
	background: rgba(249, 192, 79, 0.45);
	color: inherit;
	padding: 0 1px;
	border-radius: 2px;
}

/* --- Topic anchors ------------------------------------------------------ */

.vo-topics {
	background: #fff;
	border-bottom: 1px solid var(--vo-line);
	position: sticky;
	top: var(--vo-sticky-offset, 0px);
	z-index: 40;
}

.vo-topics ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 6px;
	list-style: none;
	margin: 0;
	padding: 10px 0;
}

.vo-topics a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vo-ink);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.vo-topics a:hover {
	background: var(--vo-crimson);
	color: #fff;
}

/* --- Welcome ------------------------------------------------------------ */

.vo-welcome {
	background: var(--vo-paper);
	padding: clamp(48px, 7vw, 84px) 0;
}

.vo-welcome-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.vo-welcome-text h2 {
	font-size: clamp(28px, 3.4vw, 38px);
	color: var(--vo-ink);
	margin: 0 0 18px;
}

.vo-welcome-text p {
	font-size: 16.5px;
	line-height: 1.75;
	color: #3c4350;
	margin: 0 0 16px;
}

.vo-blessing {
	font-family: var(--global-heading-font-family, Domine, serif);
	font-size: 18px !important;
	color: var(--vo-crimson) !important;
}

.vo-office-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid var(--vo-line);
	border-top: 4px solid var(--vo-crimson);
	box-shadow: 0 6px 24px rgba(26, 32, 44, 0.07);
	overflow: hidden;
}

.vo-office-card img {
	display: block;
	width: 100%;
	height: 210px;
	object-fit: cover;
	object-position: center 35%;
}

.vo-office-card-body {
	padding: 24px 26px 28px;
}

.vo-office-card h3 {
	font-size: 20px;
	margin: 0 0 14px;
	color: var(--vo-ink);
}

.vo-office-card dl {
	margin: 0;
}

.vo-office-card dt {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vo-gray);
	margin: 14px 0 3px;
}

.vo-office-card dt:first-child {
	margin-top: 0;
}

.vo-office-card dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #3c4350;
}

.vo-office-card a {
	color: var(--vo-crimson);
	text-decoration: none;
	border-bottom: 1px solid rgba(166, 30, 57, 0.3);
}

.vo-office-card a:hover {
	border-bottom-color: var(--vo-crimson);
}

/* --- FAQ sections -------------------------------------------------------- */

.vo-section {
	padding: clamp(52px, 7vw, 88px) 0;
	background: #fff;
	scroll-margin-top: calc(70px + var(--vo-sticky-offset, 0px));
}

.vo-section-alt {
	background: var(--vo-paper);
}

.vo-section-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.vo-section-intro {
	position: sticky;
	top: calc(86px + var(--vo-sticky-offset, 0px));
}

.vo-section-intro h2 {
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.2;
	color: var(--vo-ink);
	margin: 0 0 14px;
	padding-top: 14px;
	border-top: 4px solid var(--vo-gold);
	display: inline-block;
}

.vo-section-intro p {
	font-size: 15.5px;
	line-height: 1.7;
	color: #5a6170;
	margin: 0;
}

/* Accordions */

.vo-faq {
	border-bottom: 1px solid var(--vo-line);
}

.vo-faq:first-child {
	border-top: 1px solid var(--vo-line);
}

.vo-faq summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 4px;
	cursor: pointer;
	list-style: none;
	transition: color 0.15s ease;
}

.vo-faq summary::-webkit-details-marker {
	display: none;
}

.vo-faq-q {
	font-family: var(--global-heading-font-family, Domine, serif);
	font-size: clamp(16.5px, 1.8vw, 19px);
	font-weight: 700;
	line-height: 1.45;
	color: var(--vo-ink);
}

.vo-faq summary:hover .vo-faq-q {
	color: var(--vo-crimson);
}

.vo-faq-icon {
	flex: 0 0 auto;
	position: relative;
	width: 22px;
	height: 22px;
	align-self: center;
}

.vo-faq-icon::before,
.vo-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background: var(--vo-crimson);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.vo-faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.vo-faq[open] .vo-faq-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.vo-faq[open] {
	background: linear-gradient(0deg, rgba(249, 192, 79, 0.06), rgba(249, 192, 79, 0.06));
	box-shadow: inset 3px 0 0 var(--vo-crimson);
}

.vo-faq[open] summary {
	padding-left: 16px;
}

.vo-faq-a {
	padding: 2px 20px 26px 16px;
	font-size: 15.5px;
	line-height: 1.75;
	color: #3c4350;
}

.vo-faq-a p {
	margin: 0 0 14px;
}

.vo-faq-a p:last-child {
	margin-bottom: 0;
}

.vo-faq-a ul,
.vo-faq-a ol {
	margin: 0 0 14px;
	padding-left: 22px;
}

.vo-faq-a li {
	margin-bottom: 6px;
}

.vo-faq-a a {
	color: var(--vo-crimson);
	text-decoration: underline;
	text-decoration-color: rgba(166, 30, 57, 0.35);
	text-underline-offset: 2px;
}

.vo-faq-a a:hover {
	text-decoration-color: var(--vo-crimson);
}

/* Search-highlight flash */
.vo-faq.vo-flash {
	animation: vo-flash 1.6s ease 1;
}

@keyframes vo-flash {
	0%, 40% { background-color: rgba(249, 192, 79, 0.35); }
	100% { background-color: transparent; }
}

/* --- Guides & resources --------------------------------------------------- */

.vo-guides {
	background: var(--vo-ink);
}

.vo-guides-header {
	max-width: 640px;
	margin-bottom: 36px;
}

.vo-guides-header h2 {
	color: #fff;
	font-size: clamp(26px, 3vw, 34px);
	margin: 0 0 12px;
	padding-top: 14px;
	border-top: 4px solid var(--vo-gold);
	display: inline-block;
}

.vo-guides-header p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 15.5px;
	margin: 0;
}

.vo-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(32px, 5vw, 72px);
}

.vo-links li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.vo-links a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "title arrow" "desc arrow";
	align-items: center;
	column-gap: 16px;
	padding: 16px 2px;
	text-decoration: none;
	transition: padding 0.15s ease;
}

.vo-links a:hover {
	padding-left: 8px;
}

.vo-link-title {
	grid-area: title;
	font-family: var(--global-heading-font-family, Domine, serif);
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.vo-links a:hover .vo-link-title {
	color: var(--vo-gold);
}

.vo-link-desc {
	grid-area: desc;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 2px;
}

.vo-link-arrow {
	grid-area: arrow;
	font-size: 18px;
	color: var(--vo-gold);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.vo-links a:hover .vo-link-arrow {
	opacity: 1;
	transform: translateX(0);
}

/* --- Contact band ----------------------------------------------------------- */

.vo-contact {
	background: var(--vo-crimson);
	padding: clamp(56px, 7vw, 88px) 0;
	text-align: center;
	scroll-margin-top: calc(70px + var(--vo-sticky-offset, 0px));
}

.vo-contact h2 {
	color: #fff;
	font-size: clamp(28px, 3.4vw, 38px);
	margin: 0 0 16px;
}

.vo-contact p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	line-height: 1.7;
	max-width: 560px;
	margin: 0 auto 14px;
}

.vo-contact-email a {
	font-family: var(--global-heading-font-family, Domine, serif);
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 700;
	color: var(--vo-gold);
	text-decoration: none;
	border-bottom: 2px solid rgba(249, 192, 79, 0.4);
}

.vo-contact-email a:hover {
	border-bottom-color: var(--vo-gold);
}

.vo-contact-signoff {
	font-family: var(--global-heading-font-family, Domine, serif);
	margin-top: 10px !important;
}

/* --- Responsive -------------------------------------------------------------- */

@media (max-width: 900px) {
	.vo-welcome-grid,
	.vo-section-grid {
		grid-template-columns: 1fr;
	}

	.vo-section-intro {
		position: static;
	}

	.vo-links {
		grid-template-columns: 1fr;
	}

	.vo-topics ul {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.vo-topics ul::-webkit-scrollbar {
		display: none;
	}

	.vo-topics a {
		white-space: nowrap;
	}
}

/* --- Sponsor / partner logos, inside the hero (Generations port only) --- */

.vo-sponsors {
	position: relative;
	max-width: 720px;
	margin: 44px auto 0;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	text-align: center;
}

.vo-sponsors-kicker {
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.6;
	margin: 0 0 20px;
}

/* Two phrases, one per line. */
.vo-sponsors-kicker span {
	display: block;
}

.vo-sponsors-row {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 18px 44px;
	margin: 0;
	padding: 0;
}

.vo-sponsors-row li {
	margin: 0;
}

.vo-sponsors-row a {
	display: inline-block;
	line-height: 0;
	opacity: 0.95;
	transition: opacity 0.15s ease;
}

.vo-sponsors-row a:hover {
	opacity: 1;
}

.vo-sponsors-row img {
	height: 44px;
	width: auto;
	max-width: 280px;
	object-fit: contain;
}

.vo-sponsors-row .vo-logo-pnac img {
	height: 66px;
}

@media (max-width: 640px) {
	.vo-sponsors {
		margin-top: 32px;
		padding-top: 22px;
	}
	.vo-sponsors-row {
		gap: 14px 26px;
	}
	.vo-sponsors-row img {
		height: 34px;
		max-width: 220px;
	}
	.vo-sponsors-row .vo-logo-pnac img {
		height: 54px;
	}
}
