/*
Theme Name: Porto Child — Portipark
Template: porto
Description: Tema filho do Porto com o aspeto do protótipo Portipark.
Version: 1.1.0
Text Domain: portipark
*/

/*
 * Values copied from the prototype's stylesheet (_reference/prototype.html), with the classes prefixed "pp-"
 * and applied to Porto's markup (header, menu, page band, sidebar, footer).
 */

/* ---------- Tokens ---------- */
:root {
	--pp-ink: #30363c;
	--pp-navy: #4c5d6d;
	--pp-navy2: #394955;
	--pp-orange: #ee7202;
	--pp-orange-hover: #f7b46b;
	--pp-mint: #fff0df;
	--pp-sand: #f8e8d7;
	--pp-muted: #484f56;
	--pp-label: #3d454d;
	--pp-text: #343a40;
	--pp-line: #dde3e7;
	--pp-soft: #f3f5f6;
	--pp-light: #e1e4e6;
	--pp-light2: #dde1e3;
	--pp-white: #fff;
	--pp-shadow: 0 16px 50px rgba(76, 93, 109, 0.12);
	--pp-font: "Century Gothic", Montserrat, "Trebuchet MS", Aptos, Arial, sans-serif;
}

/*
 * Porto paints hovers, buttons and the current menu item with its skin colours (blue #0088cc, red, teal by default).
 * Map them to the prototype palette so no Porto default colour shows up anywhere.
 */
:root {
	--porto-primary-color: #4c5d6d;
	--porto-primary-color-inverse: #fff;
	--porto-primary-dark-5: #43525f;
	--porto-primary-dark-10: #394955;
	--porto-primary-dark-15: #303d47;
	--porto-primary-dark-20: #27313a;
	--porto-primary-light-5: #556878;
	--porto-primary-light-7: #596c7d;
	--porto-primary-light-10: #5f7385;
	--porto-primary-inverse-dark-10: #e6e6e6;
	--porto-secondary-color: #ee7202;
	--porto-secondary-color-inverse: #fff;
	--porto-secondary-dark-5: #d56602;
	--porto-secondary-dark-10: #c45e00;
	--porto-secondary-dark-15: #a35001;
	--porto-secondary-dark-20: #8a4401;
	--porto-secondary-light-5: #fd7f12;
	--porto-secondary-light-7: #fd8622;
	--porto-secondary-light-10: #fd8c2b;
	--porto-secondary-inverse-dark-10: #e6e6e6;
	--porto-tertiary-color: #394955;
	--porto-tertiary-color-inverse: #fff;
	--porto-quaternary-color: #30363c;
	--porto-quaternary-color-inverse: #fff;
	--porto-dark-color: #30363c;
}

body,
h1, h2, h3, h4, h5, h6,
#header .main-menu > li.menu-item > a,
#header .main-menu .popup a,
#header .main-menu .popup a *,
#nav-panel .mobile-menu a,
#nav-panel .mobile-menu a *,
input, button, select, textarea {
	font-family: var(--pp-font) !important;
}

body {
	background: var(--pp-white);
	color: var(--pp-ink);
	font-size: 16px;
	line-height: 1.5;
}

h1, h2, h3, h4 {
	font-weight: 700;
}

/*
 * Links underlined, as in the prototype (the browser's default). Porto's own Bootstrap keeps this, but the one it
 * compiles on a real server (uploads/porto_styles/bootstrap.css) removes it, so it is set here for every server.
 */
a {
	text-decoration: underline;
}

a:not([href]):not([class]) {
	text-decoration: none;
}

:focus-visible {
	outline: 3px solid var(--pp-orange) !important;
	outline-offset: 3px;
}

/* Classic themes wrap group content in an extra div: let the children take part in the grid/flex layouts. */
[class*="pp-"] > .wp-block-group__inner-container {
	display: contents;
}

.pp-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 22px;
}

/* ---------- Service notice bar (.alert) ---------- */
.pp-alert {
	background: var(--pp-navy);
	color: var(--pp-white);
	padding: 9px 22px;
	font-size: 13px;
	line-height: 1.5;
}

/* One bar per notice (layout.php): a thin line between them. */
.pp-alert + .pp-alert {
	border-top: 1px solid #ffffff26;
}

.pp-alert-in {
	max-width: 1200px;
	margin: auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.pp-alert strong {
	color: var(--pp-orange);
	white-space: nowrap;
}

.pp-alert a {
	margin-left: auto;
	color: var(--pp-white);
	text-decoration: none;
	font-weight: 700;
	white-space: nowrap;
}

.pp-alert a:hover {
	color: var(--pp-white);
}

.pp-alert-dot {
	width: 7px;
	height: 7px;
	background: var(--pp-orange);
	border-radius: 50%;
	display: inline-block;
	flex: none;
	box-shadow: 0 0 0 4px #ee720225;
}

/* ---------- Header (.header, .head-main, .nav) ---------- */
/* Porto adds a 3px top border to this header type; the prototype has only the bottom line. */
#header,
#header .header-main {
	border-top: 0 !important;
}

#header .header-main {
	background: var(--pp-white);
	border-bottom: 1px solid #e7ece8;
}

/* When it sticks on scroll, Porto shrinks the logo and hides the icons; the prototype header stays the same. */
#header.sticky-header .logo {
	max-width: none !important;
	width: 180px;
}

#header.sticky-header .logo img.sticky-logo {
	display: none !important;
}

#header.sticky-header .logo img.standard-logo {
	display: inline-block !important;
	transform: none !important;
}

#header.sticky-header .header-right-top {
	display: flex !important;
}

#header.sticky-header .header-right-bottom {
	margin: 0 !important;
}

#header.sticky-header .searchform-popup {
	display: block !important;
}

@media (min-width: 541px) {
	#header.sticky-header .header-contact {
		display: block !important;
	}
}

#header .header-main .header-container {
	max-width: 1200px;
	min-height: 0;
	margin: auto;
	padding: 16px 22px;
	display: flex;
	align-items: center;
	gap: 30px;
}

/*
 * As in the prototype (.brand), the logo itself is the flex item: 180px, shrinking to 164px (to nothing at
 * 1080px or less) so that the menu stays on one line. Porto's .header-left box is dropped.
 */
#header .header-main .header-container > .header-left {
	display: contents;
}

#header .main-menu {
	flex-wrap: nowrap;
}

#header .logo {
	flex: 0 1 auto;
	width: 180px;
	min-width: 164px;
	max-width: none;
	margin: 0;
	line-height: 0;
}

#header .logo img {
	width: 100%;
	max-width: none;
	height: auto;
	max-height: none;
}

#header .header-main .header-right {
	flex: 1;
	display: flex !important;
	align-items: center;
	gap: 30px;
	padding: 0;
}

#header .header-right-bottom {
	order: 1;
	flex: 1;
	margin: 0;
}

#header .header-right-top {
	order: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

#header .header-contact {
	margin: 0;
	padding: 0;
	border: 0;
}

@media (min-width: 821px) {
	#header .header-main #main-menu {
		display: block;
		margin: 0;
		text-align: left;
	}

	#header .main-menu {
		display: flex;
		align-items: center;
		gap: 2px;
	}
}

#header .main-menu > li.menu-item {
	margin: 0;
}

#header .main-menu > li.menu-item > a {
	border-radius: 10px;
	color: var(--pp-ink);
	background: transparent;
	font-size: 13.065px;
	font-weight: 750;
	line-height: 1.5;
	letter-spacing: 0;
	padding: 12px 11px;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
}

/*
 * As the prototype: a group is highlighted (grey background, orange text) only when the mouse is on it or its
 * dropdown is open. Porto paints the current section and hovered items blue, with selectors that also cover
 * "current + hover", so every state is listed here (current section included) to win over them.
 */
#header .main-menu > li.menu-item.active > a,
#header .main-menu > li.menu-item:hover > a,
#header .main-menu > li.menu-item.active:hover > a {
	background: transparent;
	color: var(--pp-ink);
}

#header .main-menu > li.menu-item > a:hover,
#header .main-menu > li.menu-item.active > a:hover,
#header .main-menu > li.menu-item.pp-open > a,
#header .main-menu > li.menu-item.pp-open:hover > a,
#header .main-menu > li.menu-item.active.pp-open > a,
#header .main-menu > li.menu-item.active.pp-open:hover > a {
	background: var(--pp-soft);
	color: var(--pp-orange);
}

/* The prototype has a space (0.28em of the 13.065px menu font) plus 5px between the word and the arrow. */
#header .main-menu > li.has-sub > a::after {
	content: "⌄";
	font-size: 10px;
	margin-left: 8.66px;
	color: var(--pp-muted);
	border: 0;
	position: static;
	display: inline;
}

/* Dropdown (.mega): header row + two columns of items with a description. */
/* Porto makes "no link" items ignore the mouse (pointer-events: none); here they are the buttons that open the groups. */
#header .main-menu > li.has-sub > a.nolink,
#nav-panel .mobile-menu > li.has-sub > a.nolink {
	pointer-events: auto;
	cursor: pointer;
}

/* No animations, as in the prototype: Porto slides the dropdown and its links 5px down (0.3s) on hover and fades link colours (0.2s). */
#header .main-menu .popup,
#header .main-menu .popup li.menu-item > a,
#header .main-menu > li.menu-item:hover .popup,
#header .main-menu > li.menu-item:hover li.menu-item > a {
	transform: none;
	transition: none;
}

/* Porto also fades header and footer links and the logo; the prototype doesn't. */
#header a,
#header .logo img,
#header .searchform *,
#nav-panel .mobile-nav-wrap,
#nav-panel .arrow,
#footer a,
#footer li {
	transition: none;
}

/* Porto's "back to top" button (no theme option to turn it off): the prototype has none. */
#topcontrol {
	display: none !important;
}

/* Porto hides dropdowns with top:-3000px and shows them on hover; here they open on click (class pp-open), as in the prototype. */
#header .main-menu > li.has-sub:hover > .popup {
	top: -3000px;
}

#header .main-menu > li.has-sub.pp-open > .popup {
	top: 100%;
}

/*
 * Hidden, as in the prototype: a closed dropdown parked at -3000px still widens the page on narrow screens.
 * !important because Porto's script sets display:block inline on some of them.
 */
#header .main-menu > li.has-sub:not(.pp-open) > .popup {
	display: none !important;
}

/*
 * Porto draws the dropdown (will-change) and the header (backface-visibility) as separate GPU layers at fractional
 * positions, which rounds their text 1px off the prototype's. Draw them with the page.
 */
#header .main-menu .popup {
	will-change: auto;
}

#header.header-loaded .header-main {
	-webkit-backface-visibility: visible;
	backface-visibility: visible;
}

#header .main-menu > li.has-sub > .popup {
	left: 0 !important;
	right: auto;
	width: min(660px, 90vw);
	padding-top: 12px;
	margin: 0;
	background: none;
	box-shadow: none;
	border: 0;
}

#header .main-menu > li.has-sub:nth-last-child(-n+3) > .popup {
	left: auto !important;
	right: 0;
}

#header .main-menu > li.has-sub > .popup > .inner {
	background: var(--pp-white);
	border: 1px solid var(--pp-line);
	border-radius: 20px;
	box-shadow: var(--pp-shadow);
	padding: 20px;
	max-height: calc(100dvh - 180px);
	overflow-y: auto;
}

#header .main-menu .popup ul.sub-menu {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: auto;
	min-width: 0;
	padding: 0;
	margin: 0;
	background: none;
	box-shadow: none;
	border: 0;
}

/*
 * "Estacionar" (3 + 2) and "Infrações e reboques" (5 + 4): items top to bottom in two columns that stack on their
 * own, as the prototype's two .mega-column (8px apart). The header spans both; pp-menu-split-N breaks after item N.
 */
#header .main-menu > li.pp-menu-columns > .popup ul.sub-menu,
#nav-panel .mobile-menu > li.pp-menu-columns.open > ul.sub-menu {
	display: block !important; /* The mobile menu's open lists are display: grid !important. */
	columns: 2;
	column-gap: 8px;
}

#header .main-menu > li.pp-menu-columns > .popup ul.sub-menu > li,
#nav-panel .mobile-menu > li.pp-menu-columns.open > ul.sub-menu > li {
	break-inside: avoid;
	margin-top: 8px !important;
}

#header .main-menu > li.pp-menu-columns > .popup ul.sub-menu > li.pp-menu-title,
#nav-panel .mobile-menu > li.pp-menu-columns.open > ul.sub-menu > li.pp-menu-title {
	column-span: all;
	margin: 0 0 4px !important;
}

#header .main-menu > li.pp-menu-split-3 > .popup ul.sub-menu > li:nth-child(5),
#header .main-menu > li.pp-menu-split-5 > .popup ul.sub-menu > li:nth-child(7),
#nav-panel .mobile-menu > li.pp-menu-split-3.open > ul.sub-menu > li:nth-child(5),
#nav-panel .mobile-menu > li.pp-menu-split-5.open > ul.sub-menu > li:nth-child(7) {
	break-before: column;
}

#header .main-menu .popup ul.sub-menu > li.menu-item {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
}

#header .main-menu .popup ul.sub-menu > li.menu-item > a {
	display: block;
	padding: 11px 12px;
	border: 0;
	border-radius: 12px;
	color: var(--pp-ink);
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	/* 16px as in the prototype (.mega a inherits it): it sets the height of the description line. */
	font-size: 16px;
	line-height: 1.5;
	background: none;
}

#header .main-menu .popup ul.sub-menu > li.menu-item > a:hover,
#header .main-menu .popup ul.sub-menu > li.menu-item > a:focus-visible {
	background: var(--pp-soft);
}

#header .main-menu .popup ul.sub-menu > li > a b {
	display: block;
	font-size: 13px;
}

#header .main-menu .popup ul.sub-menu > li > a small {
	color: var(--pp-muted);
	font-size: 11px;
}

#header .main-menu .popup ul.sub-menu > li.pp-menu-title {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--pp-line);
	margin-bottom: 4px;
}

#header .main-menu .popup ul.sub-menu > li.pp-menu-title > a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 4px 12px;
	border-radius: 0;
}

#header .main-menu .popup ul.sub-menu > li.pp-menu-title > a:hover {
	background: none;
}

#header .main-menu .popup ul.sub-menu > li.pp-menu-title b {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Icon buttons (.icon-btn): news and search. */
.pp-icon-btn,
#header .header-contact a.pp-icon-btn,
#header .searchform-popup .search-toggle {
	border: 1px solid var(--pp-line);
	background: var(--pp-white);
	color: var(--pp-ink);
	width: 40px;
	height: 40px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
	padding: 0;
	margin: 0;
}

.pp-icon-btn:hover,
#header .header-contact a.pp-icon-btn:hover,
#header .searchform-popup .search-toggle:hover {
	border-color: var(--pp-orange);
	color: var(--pp-orange);
}

#header .searchform-popup .search-toggle i,
#header .searchform-popup .search-toggle .search-text {
	display: none;
}

#header .searchform-popup .search-toggle::before {
	content: "⌕";
}

/* Search panel as the prototype's .site-search: 420px, a field of its own and a "Pesquisar" button beside it. */
#header .searchform-popup .searchform {
	border: 1px solid var(--pp-line);
	border-radius: 16px;
	box-shadow: var(--pp-shadow);
	padding: 16px;
	background: var(--pp-white);
	width: min(420px, calc(100vw - 32px));
	/* 8px under the header bar (the button sits 26px above its bottom) and 14px past the button, as in the prototype. */
	top: 65px;
	right: -14px !important;
}

/* Phones: 20px from the screen edge, as the prototype (the button is 16px from it). */
@media (max-width: 991px) {
	#header .searchform-popup .searchform {
		right: 4px !important;
	}
}

#header .searchform-popup .searchform-fields {
	display: flex;
	gap: 8px;
	height: auto;
	border: 0;
	border-radius: 0;
	background: none;
}

#header .searchform-popup .searchform .text {
	flex: 1;
	min-width: 0;
}

#header .searchform-popup .searchform input {
	width: 100% !important; /* Porto fixes it at 190–318px depending on the screen, and at most 220px */
	max-width: none !important;
	height: auto !important;
	border: 1px solid var(--pp-line) !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	background: var(--pp-white);
	color: var(--pp-ink);
	font-size: 16px;
	line-height: 24px;
}

#header .searchform-popup .searchform .button-wrap {
	flex: none;
}

#header .searchform-popup .searchform button {
	height: 100%;
	border-radius: 11px !important;
	padding: 12px 16px !important;
	background: var(--pp-navy) !important;
	color: var(--pp-white) !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
}

#header .searchform-popup .searchform button:hover {
	background: var(--pp-orange) !important;
}

#header .searchform-popup .searchform button i {
	display: none;
}

#header .searchform-popup .searchform button::after {
	content: "Pesquisar";
}

#header .searchform-popup .searchform input::placeholder {
	color: #484f56;
	opacity: 1;
}

/* Mobile menu button (.mobile-toggle). */
#header .mobile-toggle {
	border: 1px solid var(--pp-line);
	background: var(--pp-white);
	color: var(--pp-ink);
	width: 40px;
	height: 40px;
	border-radius: 13px;
	font-size: 17px;
	line-height: 38px;
	text-align: center;
	text-decoration: none; /* Porto's button is a link: its underline drew a line under ☰ */
	padding: 0;
	margin: 0;
}

#header .mobile-toggle i {
	display: none;
}

#header .mobile-toggle::before {
	content: "☰";
}

/* Mobile menu (prototype .nav.mobile-open): white panel over the page, groups open into the two-column dropdown. */
#header {
	position: relative;
}

#nav-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--pp-white);
	border-top: 1px solid var(--pp-line);
	box-shadow: var(--pp-shadow);
	padding: 12px 16px 18px;
	max-height: calc(100dvh - 90px);
	overflow-y: auto;
}

#nav-panel > .container,
#nav-panel .mobile-nav-wrap,
#nav-panel .menu-wrap {
	padding: 0;
	margin: 0;
	background: none;
}

/* Only the panel scrolls, as in the prototype: Porto caps its inner wrapper (406px on a phone) with a scroll of its own. */
#nav-panel .mobile-nav-wrap {
	max-height: none !important;
	overflow: visible !important;
}

#nav-panel .mobile-menu li {
	border: 0 !important;
	margin: 0;
	padding: 0;
	position: relative;
}

#nav-panel .mobile-menu > li > a {
	display: block;
	padding: 13px 12px;
	border-radius: 10px;
	color: var(--pp-ink);
	font-size: 13px;
	font-weight: 750;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.5;
	text-decoration: none;
	background: none;
}

#nav-panel .mobile-menu > li > a:hover,
#nav-panel .mobile-menu > li.open > a {
	background: var(--pp-soft);
	color: var(--pp-orange);
}

#nav-panel .mobile-menu .arrow {
	top: 6px;
	right: 4px;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	color: var(--pp-muted);
	font-size: 10px;
}

#nav-panel .mobile-menu .arrow::before {
	content: "⌄";
	font-family: var(--pp-font);
}

#nav-panel .mobile-menu > li > ul.sub-menu {
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 8px;
	margin: 0 0 8px;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	background: var(--pp-white);
}

/* Porto's slide animation sets display:block inline; the prototype shows two columns. */
#nav-panel .mobile-menu > li.open > ul.sub-menu {
	display: grid !important;
}

#nav-panel .mobile-menu ul.sub-menu > li > a {
	display: block;
	padding: 11px 12px;
	border-radius: 12px;
	color: var(--pp-ink);
	/* As the prototype's .mega a: 16px/24px text, so the description lines have the same height. */
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
	text-decoration: none;
	line-height: 24px;
}

#nav-panel .mobile-menu ul.sub-menu > li > a b {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

#nav-panel .mobile-menu ul.sub-menu > li > a small {
	color: var(--pp-muted);
	font-size: 11px;
	line-height: 1.5;
}

#nav-panel .mobile-menu ul.sub-menu > li.pp-menu-title {
	grid-column: 1 / -1;
	border-bottom: 1px solid var(--pp-line) !important;
	margin-bottom: 4px;
}

#nav-panel .mobile-menu ul.sub-menu > li.pp-menu-title > a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 4px 12px;
}

#nav-panel .mobile-menu ul.sub-menu > li.pp-menu-title b {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#header .mobile-toggle[aria-expanded="true"] {
	border-color: var(--pp-orange);
	color: var(--pp-orange);
}

/* ---------- Page band (.page-hero) ---------- */
.page-top {
	background: var(--pp-navy) !important;
	color: var(--pp-white);
	border: 0 !important;
	padding: 44px 0 38px !important;
	min-height: 0;
}

.page-top > .container {
	max-width: 1200px;
	padding: 0 22px;
}

.page-top > .container > .row {
	margin: 0;
}

.page-top > .container > .row > div {
	padding: 0;
}

.page-top .breadcrumbs-wrap {
	position: static;
	margin: 0 0 17px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--pp-light2) !important;
}

.page-top ul.breadcrumb {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 1.5;
	text-transform: none;
}

.page-top ul.breadcrumb > li {
	padding: 0;
	font-size: 11px;
	color: var(--pp-light2) !important;
	text-transform: none;
}

.page-top ul.breadcrumb > li a {
	color: var(--pp-white) !important;
	text-decoration: none;
}

.page-top ul.breadcrumb > li {
	display: inline;
	margin: 0;
}

/* Separator as in the prototype: the text " / " between the links (Porto moves its delimiter aside). */
.page-top ul.breadcrumb > li .delimiter {
	display: inline !important;
	position: static !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
	width: auto !important;
	height: auto;
	font-size: 11px;
}

.page-top ul.breadcrumb > li .delimiter::before {
	content: " / ";
	white-space: pre;
	font-family: var(--pp-font);
	font-style: normal;
	font-weight: 400; /* Porto's icon font sets 900, which makes " / " wider than the prototype's */
	margin: 0;
	position: static;
}

.page-top .page-title-wrap {
	padding: 0;
	margin: 0;
}

.page-top .page-title {
	color: var(--pp-white) !important;
	font-size: clamp(34px, 4vw, 50px) !important;
	line-height: 1.03 !important;
	letter-spacing: -0.05em !important;
	font-weight: 700 !important;
	margin: 0 0 13px !important;
	padding: 0 !important;
	border: 0 !important;
	text-transform: none !important;
}

/* No description: the prototype's empty <p> lets the 13px and 20px margins collapse, leaving 20px before the tags. */
.page-top .page-title:has(+ .pp-page-meta) {
	margin-bottom: 0 !important;
}

.page-top .page-title::after {
	display: none !important;
}

.page-top .page-sub-title {
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: var(--pp-light) !important;
	opacity: 1; /* Porto dims it to 0.8. */
	max-width: 720px;
	margin: 0 !important;
	text-transform: none;
	font-weight: 400;
}

.pp-eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pp-orange);
	display: flex;
	align-items: center;
	gap: 9px;
	line-height: 1.5;
	margin: 0;
}

.pp-eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: var(--pp-orange);
}

.pp-page-meta {
	margin: 20px 0 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pp-pill {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: #ffffff17;
	color: var(--pp-light);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.5;
}

/* ---------- Page body (.page-body, .page-layout, .content-card, .aside-card) ---------- */
body:not(.home) #main {
	background: var(--pp-soft);
	padding: 34px 0 64px;
}

body:not(.home) #main > .container {
	max-width: 1200px;
	padding: 0 22px;
}

/*
 * The prototype's <main> (page title band + content) is at least 65vh tall, so on a short page the footer stays
 * near the bottom of the window, with white space under the content. An invisible item over those two rows does
 * the same; the extra height goes to the empty row 4.
 */
.page-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto auto minmax(0, 1fr) auto; /* A plain 1fr row comes out too tall in Chrome. */
}

.page-wrapper > * {
	grid-column: 1;
}

.page-wrapper > .header-wrapper {
	grid-row: 1;
}

.page-wrapper > .page-top {
	grid-row: 2;
}

/* Porto's auto side margins would shrink it to its content inside the grid. */
.page-wrapper > #main {
	grid-row: 3;
	margin-left: 0;
	margin-right: 0;
}

.page-wrapper > .footer-wrapper {
	grid-row: 5;
}

.page-wrapper::after {
	content: "";
	grid-row: 2 / 5;
	grid-column: 1;
	min-height: 65vh;
	pointer-events: none;
}

/* Content and "Também pode precisar" card: one column on phones, as in the prototype (not Porto's Bootstrap columns). */
body:not(.home) #main .main-content-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	margin: 0;
}

body:not(.home) #main .main-content-wrap > * {
	width: auto;
	max-width: none;
	flex: none;
	margin: 0;
	padding: 0;
}

body:not(.home) #main .sidebar-content {
	margin: 0;
}

@media (min-width: 821px) {
	body:not(.home) #main .main-content-wrap {
		grid-template-columns: minmax(0, 1fr) 270px;
	}

	/* The prototype's aside card follows the scroll; the widget wrappers are only as tall as the card, so the column itself sticks. */
	body:not(.home) #main .main-content-wrap > .sidebar {
		position: sticky;
		top: 105px;
	}
}

body:not(.home) #content > article {
	background: var(--pp-white);
	border: 1px solid var(--pp-line);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 8px 24px rgba(76, 93, 109, 0.06);
	margin: 0;
}

body:not(.home) #content > article .page-content,
body:not(.home) #content > article .entry-content {
	margin: 0;
	padding: 0;
}

/* Separator line as the prototype's <hr>: the browser's own thin grey line (WordPress draws 2px in the text colour). */
body:not(.home) #content > article hr.wp-block-separator {
	border: 1px inset #808080 !important;
	background: none;
	color: #808080;
	height: 0;
	width: auto;
	max-width: none;
	opacity: 1;
	margin: 8px 0 !important;
}

body:not(.home) .main-content h2 {
	color: var(--pp-ink);
	font-size: 25px;
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin: 0 0 12px;
}

body:not(.home) .main-content h3 {
	color: var(--pp-ink);
	font-size: 17px;
	letter-spacing: 0;
	line-height: 1.5;
	margin: 24px 0 8px;
}

body:not(.home) .main-content p {
	font-size: 14px;
	color: var(--pp-text);
	line-height: 1.7;
	margin: 1em 0;
}

body:not(.home) .main-content ul {
	padding-left: 20px;
	color: var(--pp-text);
	font-size: 14px;
	line-height: 1.8;
	margin: 1em 0;
}

body:not(.home) .main-content ul li {
	font-size: 14px;
	line-height: inherit;
	color: var(--pp-text);
}

/* The prototype leaves h4 at the browser default (16px, bold, 1.33em margins). */
body:not(.home) .main-content h4 {
	color: var(--pp-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	margin: 1.33em 0;
}

/* The prototype leaves numbered lists at the default size. */
body:not(.home) .main-content ol,
body:not(.home) .main-content ol li {
	font-size: 16px;
	line-height: 1.5;
	color: var(--pp-ink);
}

/* The prototype's links take the text colour (a { color: inherit }). */
body:not(.home) .main-content a {
	color: inherit;
}

body:not(.home) #main .sidebar-content,
.sidebar-content .widget {
	margin: 0;
	padding: 0;
}

.pp-aside-card {
	background: var(--pp-soft);
	border: 1px solid var(--pp-line);
	border-radius: 18px;
	padding: 20px;
}

/* WordPress wraps the widget's shortcode in an empty paragraph, whose margin pushed the card down. */
.sidebar-content .widget > p:empty {
	display: none;
}

.pp-aside-card h3 {
	color: var(--pp-ink);
	font-size: 15px;
	letter-spacing: normal;
	line-height: 1.5;
	margin: 0 0 12px;
}

.pp-aside-card a {
	display: block;
	color: var(--pp-label);
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
	margin: 11px 0;
}

.pp-aside-card p {
	font-size: 11px;
	color: var(--pp-muted);
	margin: 11px 0;
}

/* ---------- Content components ---------- */
body:not(.home) .main-content p.pp-note,
.pp-note {
	background: var(--pp-mint);
	border: 1px solid #f2c89e;
	border-radius: 14px;
	padding: 14px 16px;
	color: var(--pp-navy);
	font-size: 12px;
	line-height: 1.5;
	margin: 18px 0;
}

.pp-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

/* Buttons right under the cards: the same 18px as above the cards (the prototype has none, the buttons touch the cards). */
.pp-info-grid + .wp-block-buttons {
	margin-top: 18px;
}

.pp-info-box {
	background: var(--pp-soft);
	border-radius: 14px;
	padding: 16px;
	margin: 0 !important;
}

body:not(.home) .main-content .pp-info-box p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--pp-muted);
}

body:not(.home) .main-content .pp-info-box p strong {
	display: block;
	font-size: 13px;
	color: var(--pp-ink);
}

body:not(.home) .main-content .pp-info-box p + p {
	margin-top: 5px;
}

/* The prototype's link is an inline <a> straight after the text block: no gap above it, and its line
   takes the box's 16px/24px strut, so the line is 24px tall with the 12px link on its baseline. */
body:not(.home) .main-content .pp-info-box p + p.pp-link-more {
	margin-top: 0;
	font-size: 16px;
	line-height: 1.5;
}

.pp-link-more a,
a.pp-link-more,
body:not(.home) .main-content .pp-link-more a {
	color: var(--pp-orange);
	font-weight: 800;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
}

.pp-link-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

/* Grid items: direct children, or the blocks inside WordPress's .wp-block-group__inner-container. */
.pp-link-grid > :not(.wp-block-group__inner-container),
.pp-link-grid > .wp-block-group__inner-container > * {
	background: var(--pp-soft);
	padding: 18px;
	border-radius: 15px;
	margin: 0 !important;
}

body:not(.home) .main-content .pp-link-grid h3 {
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 10px;
	color: var(--pp-orange); /* Approved palette: orange titles. */
}

/* Text under each zone (prototype: 12px with the card's paragraph line height and margins). */
body:not(.home) .main-content .pp-link-grid > div:not(.wp-block-group__inner-container) p {
	font-size: 12px;
	color: var(--pp-muted);
	margin: 12px 0;
}

body:not(.home) .main-content .pp-link-grid > .wp-block-group__inner-container > p {
	margin: 0;
}

.pp-link-grid a {
	display: block;
	font-size: 12px;
	line-height: 1.5;
	color: var(--pp-ink) !important;
	text-decoration: none;
	padding: 5px 0;
}

.pp-link-grid a:hover {
	color: var(--pp-orange) !important;
	text-decoration: underline;
}

body:not(.home) .main-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin: 16px 0;
}

/* Bootstrap puts captions under the table with padding; the prototype keeps the browser default (above, no padding). */
body:not(.home) .main-content caption {
	caption-side: top;
	padding: 0;
	text-align: center;
	color: inherit;
}

.main-content th,
.main-content td {
	padding: 12px 10px;
	border: 0;
	border-bottom: 1px solid var(--pp-line);
	text-align: left;
	vertical-align: top;
}

.main-content th {
	background: #f4f0eb;
	color: var(--pp-navy);
	font-size: 11px;
}

.main-content td {
	color: var(--pp-text);
}

body:not(.home) .main-content td a {
	color: var(--pp-label);
	font-weight: 800;
	text-decoration: none;
}

.main-content .wp-block-table,
.pp-table-wrap {
	overflow-x: auto;
	margin: 0;
}

.main-content .wp-block-details {
	border-bottom: 1px solid var(--pp-line);
	padding: 14px 0;
	margin: 0;
}

.main-content .wp-block-details summary {
	font-size: 14px;
	font-weight: 800;
	color: var(--pp-ink);
	cursor: pointer;
}

.main-content .wp-block-details > :not(summary) {
	margin-top: 8px;
}

/*
 * The answer as the prototype's .faq-answer: 16px text, line height 1.6, 12px above and below; its paragraphs
 * are separated by one blank line (the prototype's <br><br>).
 */
body:not(.home) .main-content .wp-block-details > p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--pp-ink);
	margin: 1.6em 0 0;
}

body:not(.home) .main-content .wp-block-details > summary + p {
	margin-top: 12px;
}

body:not(.home) .main-content .wp-block-details > p:last-child {
	margin-bottom: 12px;
}

.main-content .wp-block-details li {
	line-height: 1.6;
}

/* Rocha Prime tariff table and "Tarifários e horários" access box (.rocha-pricing, .tariff-access). */
.pp-rocha-pricing {
	border: 1px solid var(--pp-line);
	border-radius: 16px;
	margin: 20px 0;
	overflow-x: auto;
}

body:not(.home) .main-content .pp-rocha-pricing table {
	margin: 0;
	min-width: 420px;
	font-size: 14px;
}

body:not(.home) .main-content .pp-rocha-pricing caption {
	caption-side: top;
	text-align: left;
	padding: 14px 18px;
	background: var(--pp-mint);
	color: var(--pp-ink);
	font-weight: 800;
	border-bottom: 3px solid var(--pp-orange);
}

body:not(.home) .main-content .pp-rocha-pricing thead th {
	background: var(--pp-navy);
	color: var(--pp-white);
	font-size: 13px;
	padding: 17px 18px;
	vertical-align: middle;
}

.pp-rocha-pricing thead th small {
	display: block;
	font-weight: 400;
	font-size: 11px;
	margin-top: 4px;
	color: var(--pp-white);
}

body:not(.home) .main-content .pp-rocha-pricing tbody th {
	background: transparent;
	color: var(--pp-ink);
	font-size: 13px;
	font-weight: 700;
	padding: 18px;
	vertical-align: middle;
}

body:not(.home) .main-content .pp-rocha-pricing td {
	padding: 18px;
	vertical-align: middle;
	font-size: 16px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pp-rocha-pricing tbody tr:nth-child(even) {
	background: var(--pp-soft);
}

body:not(.home) .main-content .pp-rocha-pricing tbody tr:last-child > * {
	border-bottom: 0;
}

body:not(.home) .main-content p.pp-tariff-footnote {
	font-size: 12px;
	color: var(--pp-muted);
	margin: 8px 0;
}

.pp-tariff-access {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border: 1px solid var(--pp-line);
	border-left: 4px solid var(--pp-orange);
	background: var(--pp-soft);
	border-radius: 14px;
	margin: 0 0 28px;
}

body:not(.home) .main-content .pp-tariff-access h3 {
	margin: 0;
}

body:not(.home) .main-content .pp-tariff-access p {
	margin: 6px 0 0;
}

.pp-tariff-access .pp-btn {
	flex-shrink: 0;
}

/* Buttons (.btn, .btn-outline, .button-row): core buttons, plugin links and form submit. */
.wp-block-buttons,
.pp-button-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
}

.wp-block-button__link,
.pp-btn,
.nf-form-content input[type="submit"],
.nf-form-content input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 11px !important;
	background: var(--pp-navy) !important;
	color: var(--pp-white) !important;
	text-decoration: none !important;
	padding: 12px 16px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.5;
	height: auto !important;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.wp-block-button__link:hover,
.pp-btn:hover,
.nf-form-content input[type="submit"]:hover {
	background: var(--pp-orange) !important;
}

.pp-btn-outline {
	background: var(--pp-white) !important;
	color: var(--pp-ink) !important; /* The prototype's contrast block: ink, not navy. */
	border: 1px solid var(--pp-line);
}

.pp-btn-outline:hover {
	border-color: var(--pp-orange);
	background: #fff7ef !important;
	color: var(--pp-orange) !important;
}

/* "Pesquisar viatura" demonstration search (prototype .search-demo and .status-result). */
.pp-search-demo {
	display: flex;
	gap: 8px;
	margin: 18px 0;
}

.pp-search-demo input {
	flex: 1;
	min-width: 0;
	height: auto;
	border: 1px solid var(--pp-line);
	border-radius: 10px;
	padding: 12px;
	color: var(--pp-ink);
	background: var(--pp-white);
	box-shadow: none;
}

.pp-search-demo input::placeholder {
	color: #484f56;
	opacity: 1;
}

/* Porto sets small to 0.875em; the prototype keeps the browser's default. */
.pp-search-demo + p small {
	font-size: smaller;
}

.pp-status-result {
	display: none;
	background: #f5f2ee;
	padding: 16px;
	border-radius: 14px;
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.5;
}

.pp-status-result.is-shown {
	display: block;
}

/* Title, then each line (text, phones, link) on its own line, with a small gap after the title. */
.pp-status-result > b,
.pp-status-result > span {
	display: block;
}

.pp-status-result > b {
	margin-bottom: 8px;
}

.main-content .pp-status-result a.pp-link-more {
	color: var(--pp-orange);
}

/* Searching (portipark.js): a spinner in place of the button's text, the previous answer faded. */
.pp-btn.is-loading,
.pp-btn.is-loading:disabled {
	position: relative;
	color: transparent !important;
	background: var(--pp-navy);
	opacity: 1;
	cursor: progress;
}

.pp-btn.is-loading::after {
	content: "";
	position: absolute;
	inset: calc(50% - 9px) auto auto calc(50% - 9px);
	width: 18px;
	height: 18px;
	border: 2px solid #ffffff59;
	border-top-color: var(--pp-white);
	border-radius: 50%;
	animation: pp-map-spin 0.8s linear infinite;
}

.pp-status-result.is-loading {
	opacity: 0.45;
	transition: opacity 0.15s;
}

/* Forms (.form-demo) */
.pp-form input,
.pp-form-label input {
	width: 100%;
	border: 1px solid #cfdad3;
	border-radius: 10px;
	padding: 11px 12px;
	background: var(--pp-white);
	color: var(--pp-ink);
	font-size: 16px;
	min-width: 0;
}

.pp-form {
	margin: 18px 0 0;
}

.pp-form-label {
	display: grid;
	gap: 13px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--pp-ink);
	margin: 18px 0 0;
}

.nf-form-content {
	max-width: none !important;
	padding: 0 !important;
}

/* As the prototype's form (.form-demo): 13px between fields, the label line (18px) 6px above its 42px field. */
.nf-form-content .nf-field-container {
	margin-bottom: 13px;
}

/* The intro line is the form's first paragraph: 32px under "Formulário", 27px above the first field. */
.nf-form-fields-required {
	margin: 32px 0 27px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--pp-text);
}

.nf-form-content .ninja-forms-req-symbol {
	color: inherit;
}

.nf-form-content .nf-field-label,
.nf-form-content .label-above .nf-field-label {
	margin-bottom: 6px;
	line-height: 18px;
}

.nf-form-content .nf-field-label label {
	display: block;
}

.nf-form-content label,
.nf-form-content .nf-field-label label,
.nf-form-content .nf-label-span {
	font-size: 12px !important;
	font-weight: 750 !important;
	line-height: 18px;
	color: var(--pp-ink) !important;
}

.nf-form-content .ninja-forms-field:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
	border: 1px solid #cfdad3 !important;
	border-radius: 10px !important;
	padding: 11px 12px !important;
	background: var(--pp-white) !important;
	color: var(--pp-ink) !important;
	font-size: 12px !important;
	font-weight: 750; /* the prototype's fields sit inside their label and take its semi-bold */
	line-height: 18px;
	height: auto !important;
}

/* Select boxes as the prototype's: the browser's own box with its arrow (Porto removes it). */
.nf-form-content select.ninja-forms-field {
	appearance: auto !important;
	-webkit-appearance: auto !important;
	line-height: normal;
}

/* Date labels are a <span> in a <div> that keeps 16px text, which made the line 20px instead of 18px. */
.nf-form-content .date-container .nf-field-label {
	font-size: 12px;
}

/*
 * Option lists as the prototype's fieldsets: a bordered box whose title (legend, 16px) sits on the top border,
 * 16px above the options; each option is a row (button, 9px, text) and the rows are 12px apart.
 */
/* Room above the box for the half of the title that sits outside it (padding: a margin would collapse). */
.nf-form-content .listradio-container,
.nf-form-content .listcheckbox-container {
	padding-top: 12px;
}

.nf-form-content .listradio-container > .nf-field,
.nf-form-content .listcheckbox-container > .nf-field {
	margin: 0 2px;
	border: 1px solid var(--pp-line);
	border-radius: 12px;
	padding: 0 16px 16px;
}

.nf-form-content .listradio-container .nf-field-label,
.nf-form-content .listcheckbox-container .nf-field-label {
	display: table;
	margin: -13px 0 16px;
	padding: 0 6px;
	background: var(--pp-white);
	line-height: 24px;
}

.nf-form-content .listradio-container .nf-label-span,
.nf-form-content .listcheckbox-container .nf-label-span {
	font-size: 16px !important;
	line-height: 24px;
}

body:not(.home) .main-content .nf-form-content .list-wrap ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* !important: Ninja Forms spaces the options with margin-bottom: 5px !important and indents their text by 1.5em. */
body:not(.home) .main-content .nf-form-content .list-wrap li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 !important;
	padding: 0;
	line-height: 18px;
}

.nf-form-content .list-wrap li input {
	flex: none;
	margin: 3px 3px 0 5px !important;
}

.nf-form-content .list-wrap li label,
.nf-form-content .checkbox-wrap .nf-field-label label {
	margin: 0 !important;
	font-weight: 500 !important;
	color: #343a40 !important;
}

/* A single checkbox as the prototype's .checkrow: box, 9px, text on one line; its explanation below. */
.nf-form-content .checkbox-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	column-gap: 9px;
}

.nf-form-content .checkbox-wrap .nf-field-element {
	order: -1;
	display: flex;
	flex: none;
	width: auto;
}

.nf-form-content .checkbox-wrap .nf-field-element input {
	margin: 3px 3px 3px 4px;
}

.nf-form-content .checkbox-wrap .nf-field-label {
	flex: 1;
	margin: 0;
}

.nf-form-content .checkbox-wrap .nf-field-description {
	flex-basis: 100%;
	margin-top: 13px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--pp-text);
}

/* Dates: the prototype's browser date field (44px, "dd/mm/aaaa" and a calendar icon). */
.nf-form-content .date-container input[type="text"] {
	min-height: 44px;
	padding-right: 40px !important;
	background: var(--pp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%2330363c' stroke-width='1.4'%3E%3Crect x='2' y='3' width='12' height='11' rx='1.5'/%3E%3Cpath d='M2 6.5h12M5 1.5v3M11 1.5v3'/%3E%3C/svg%3E") no-repeat right 14px center !important;
}

/* The submit button fills the form's width, as in the prototype. */
.nf-form-content .submit-container input[type="submit"] {
	display: flex;
	width: 100%;
}

/* The prototype's form ends at its button: no field spacing after it (nor the 5px of the empty character-limit box). */
.nf-form-content .nf-field-container.submit-container {
	margin-bottom: 0;
}

.nf-form-content .submit-container .nf-input-limit {
	margin-top: 0;
}

.nf-form-content textarea.ninja-forms-field {
	min-height: 92px;
}

/*
 * File Uploads add-on: the prototype shows the browser's own file field ("Escolher ficheiro"), in the same box as
 * the other fields. The add-on hides that field behind a green "Select Files" button; show it instead (choosing a
 * file still starts the upload) and keep the progress bar invisible until a file is uploading.
 */
.nf-form-content .file_upload-container .nf-fu-fileinput-button {
	display: none !important;
}

.nf-form-content .file_upload-container input[type="file"] {
	display: block !important;
	visibility: visible !important;
	box-sizing: border-box;
	width: 100% !important;
	height: 44px !important;
	border: 1px solid #cfdad3;
	border-radius: 10px;
	padding: 11px 12px;
	background: var(--pp-white);
	color: var(--pp-ink);
	font-size: 12px;
	font-weight: 750;
}

/* The prototype's "Escolher ficheiro" button keeps the browser's own font (the site's rules make it inherit). */
.nf-form-content .file_upload-container input[type="file"]::file-selector-button {
	font-family: Arial, sans-serif;
	font-weight: 400;
}

.nf-form-content .file_upload-container .nf-fu-progress {
	height: 4px;
	margin: 6px 0 0;
	background: none;
	box-shadow: none;
}

.nf-form-content .file_upload-container .nf-fu-progress-bar {
	background: var(--pp-orange);
}

/*
 * Avença: the exit date is calculated (portipark.js) and cannot be edited. The fields' background rules use
 * --pp-white with !important, so the grey comes from redefining it here.
 */
.nf-form-content .pp-avenca-saida input[readonly] {
	--pp-white: var(--pp-soft);
	cursor: default;
}

/*
 * The add-on uploads the file as soon as it is chosen and then empties the browser's field ("Nenhum ficheiro
 * selecionado"). In a single-file field the uploaded file ("nome.pdf  Apagar") takes the field's place, in the
 * same box, as the prototype's field shows the chosen file; "Apagar" brings the empty field back.
 */
.nf-form-content .pp-file-single:has(.files_uploaded p) input[type="file"],
.nf-form-content .pp-file-single:has(.files_uploaded p) .nf-fu-progress {
	display: none !important;
}

.nf-form-content .file_upload-container .files_uploaded p {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin: 0;
	border: 1px solid #cfdad3;
	border-radius: 10px;
	padding: 11px 12px;
	background: var(--pp-white);
	color: var(--pp-ink);
	font-size: 12px;
	font-weight: 750;
	line-height: 18px;
	overflow-wrap: anywhere;
}

.nf-form-content .file_upload-container .files_uploaded p + p {
	margin-top: 6px;
}

.nf-form-content .file_upload-container .files_uploaded .delete {
	margin-left: auto;
	color: var(--pp-orange);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.nf-form-content .ninja-forms-field:focus {
	border-color: var(--pp-orange) !important;
}

.nf-form-content .nf-field-description,
.nf-form-content .list-checkbox-wrap label,
.nf-form-content .list-radio-wrap label {
	font-weight: 500 !important;
	color: var(--pp-text) !important;
	font-size: 12px !important;
}

/* The editor puts the description in a <p>, which would take the theme's paragraph size. */
.nf-form-content .nf-field-description p {
	margin: 0 0 6px;
	font-size: inherit !important;
	line-height: 1.5;
}

/* In the text's colour, as the prototype's links (body:not(.home) .main-content a), but bold so it stands out. */
.nf-form-content .nf-field-description a {
	font-weight: 600;
}

/* Ninja Forms' "Help text" icon (a Font Awesome glyph that Porto's icon font draws as a black blob): a small "?" in
   the site's colours. The text still shows on hover. */
.nf-form-content .nf-help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	border: 1px solid var(--pp-orange);
	border-radius: 50%;
	background: transparent;
	color: var(--pp-orange);
	font: 700 11px/1 var(--pp-font);
	vertical-align: 1px;
	cursor: help;
}

.nf-form-content .nf-help::before {
	content: "?";
	font-family: inherit;
}

.nf-form-fields-required {
	font-size: 14px;
	color: var(--pp-text);
}

.nf-error-msg {
	color: #963d2b !important;
}

/* A field's error ("Este campo é obrigatório."): the size of the descriptions, not the theme's larger text. */
.nf-form-content .nf-error-wrap .nf-error-msg {
	margin-top: 4px;
	font-size: 12px !important;
	font-weight: 500;
	line-height: 1.5;
}

/* "Zona de estacionamento" (portipark.js): the button that opens "Qual é a minha zona?" takes the place of the
   description's link. */
.nf-form-content .nf-field-container:has(+ .pp-zone-street-open) .nf-field-description {
	display: none;
}

.nf-form-content .pp-zone-street-open {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: -10px 0 25px;
}

.nf-form-content .pp-zone-street-open .pp-zone-street-chosen {
	margin: 0;
	color: var(--pp-text);
	font-size: 12px !important;
	font-weight: 700;
}

.pp-zone-street-status:not(:empty) {
	margin: 8px 0 0;
}

.pp-zone-street-status:empty {
	margin: 0;
}

/* The window: over the page, its own scroll; the page behind does not move. */
html:has(.pp-zone-dialog[open]) {
	overflow: hidden;
}

.pp-zone-dialog {
	width: min(640px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	border: 0;
	border-radius: 18px;
	padding: 24px;
	background: var(--pp-white);
	color: var(--pp-text);
	box-shadow: var(--pp-shadow);
	font: 500 14px/1.5 var(--pp-font);
}

.pp-zone-dialog::backdrop {
	background: rgba(48, 54, 60, 0.6);
}

.pp-zone-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.pp-zone-dialog h2 {
	margin: 0;
	color: var(--pp-orange);
	font: 800 24px/1.2 var(--pp-font);
}

.pp-zone-dialog label {
	display: block;
	margin-bottom: 6px;
	color: var(--pp-label);
	font-size: 12px;
	font-weight: 700;
}

.pp-zone-dialog input {
	display: block;
	width: 100%;
	border: 1px solid #cfdad3;
	border-radius: 10px;
	padding: 11px 12px;
	background: var(--pp-white);
	color: var(--pp-ink);
	font: 500 16px/1.5 var(--pp-font); /* 16px: below it the iPhone zooms in on the field. */
}

.pp-zone-dialog input:focus {
	border-color: var(--pp-orange);
}

.pp-zone-dialog .pp-zone-street-status {
	font-size: 12px;
}

.pp-zone-dialog .pp-zone-street-results {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.pp-zone-dialog .pp-zone-street-results:empty,
.pp-zone-dialog .pp-zone-street-results[hidden] {
	display: none;
}

.pp-zone-dialog .pp-zone-street-results li {
	margin: 0;
	padding: 0;
}

.pp-zone-dialog .pp-zone-street-results button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: 6px;
	border: 1px solid var(--pp-line);
	border-radius: 10px;
	padding: 10px 12px;
	background: var(--pp-white);
	color: var(--pp-ink);
	font: 500 13px/1.4 var(--pp-font);
	text-align: left;
	cursor: pointer;
}

.pp-zone-dialog .pp-zone-street-results button:hover,
.pp-zone-dialog .pp-zone-street-results button:focus-visible {
	border-color: var(--pp-orange);
}

/* A zone of the list: its name above its streets. */
.pp-zone-dialog-zones button > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pp-zone-dialog .pp-zone-street-pick {
	white-space: nowrap;
	color: var(--pp-navy);
}

.pp-zone-dialog .pp-zone-street-map {
	margin: 16px 0 0;
	font-size: 12px;
}

.pp-zone-dialog .pp-zone-street-map a {
	color: var(--pp-text);
	font-weight: 600;
}

.nf-response-msg {
	background: var(--pp-mint);
	color: var(--pp-navy);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 12px;
	font-weight: 700;
}

/* ---------- Search box (.searchbox) ---------- */
.pp-searchbox {
	display: flex;
	background: var(--pp-white);
	border-radius: 14px;
	max-width: 520px;
	padding: 6px;
	box-shadow: 0 16px 35px #4c5d6d50;
	margin: 0;
}

.pp-searchbox input {
	border: 0;
	outline: 0;
	min-width: 0;
	flex: 1;
	padding: 13px;
	color: var(--pp-ink);
	font-size: 14px;
	background: transparent;
	box-shadow: none;
	height: auto;
}

/* As the prototype: the whole box shows the focus (:focus-within), not the field inside it. */
.pp-searchbox input:focus-visible {
	outline: 0 !important;
}

.pp-searchbox input::placeholder,
.pp-form input::placeholder,
.pp-form-label input::placeholder {
	color: var(--pp-muted);
	opacity: 1;
}

.pp-searchbox button {
	background: var(--pp-orange);
	color: var(--pp-white);
	border: 0;
	border-radius: 10px;
	padding: 12px 16px;
	font-weight: 850;
	font-size: 12px;
	line-height: 1.5;
}

.pp-searchbox button:hover {
	background: var(--pp-orange-hover);
}

/* ---------- Map (.map-card, .zone, .map-info) ---------- */
.pp-map-card {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	background: var(--pp-white);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 12px 36px #4c5d6d12;
}

.pp-map-card > * {
	min-width: 0;
}

.pp-map-real {
	height: 380px;
	position: relative;
	background: var(--pp-soft);
	overflow: hidden;
}

.pp-map-real::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(137deg, transparent 0 24%, #e7d1bc 24.3% 32%, transparent 32.3% 62%, #e7d1bc 62.4% 68%, transparent 68.2%), linear-gradient(31deg, transparent 0 42%, #e8d4c3 42.3% 48%, transparent 48.3%);
	opacity: 0.8;
}

.pp-map-real::after {
	content: "";
	position: absolute;
	inset: -5%;
	background: repeating-linear-gradient(90deg, transparent 0 72px, #fff 73px 78px, transparent 79px 133px), repeating-linear-gradient(0deg, transparent 0 58px, #fff 59px 64px, transparent 65px 111px);
	transform: rotate(-9deg);
	opacity: 0.75;
	pointer-events: none;
}

.pp-zones {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.pp-zones li {
	margin: 0;
	padding: 0;
	line-height: 1.5;
}

.pp-zone {
	position: absolute;
	z-index: 3;
	border-radius: 50%;
	border: 2px solid var(--pp-white);
	background: #ee7202a6;
	color: var(--pp-white) !important;
	font-size: 16px;
	font-weight: 850;
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	text-decoration: none !important;
	box-shadow: 0 4px 13px #4c5d6d35;
	transition: 0.15s;
}

.pp-zone:hover,
.pp-zone[aria-current] {
	transform: scale(1.12);
	background: var(--pp-navy);
	box-shadow: 0 0 0 5px #ee720288;
}

.pp-zA { left: 18%; top: 26%; }
.pp-zB1 { left: 41%; top: 21%; background: #e88b2a; }
.pp-zB2 { left: 51%; top: 36%; }
.pp-zC1 { left: 25%; top: 54%; }
.pp-zF1 { left: 70%; top: 58%; background: #d96f26; }
.pp-zF2 { left: 82%; top: 39%; background: #d96f26; }
.pp-zG1 { left: 63%; top: 20%; background: #d96f26; }
.pp-zG2 { left: 78%; top: 20%; background: #d96f26; }
.pp-zH1 { left: 55%; top: 75%; background: #d96f26; }
.pp-zH2 { left: 84%; top: 76%; background: #d96f26; }

/* Full map: zones listed one under the other (the map can scroll to reach them all). */
.pp-map-card.is-full .pp-map-real {
	overflow-y: auto;
}

.pp-map-card.is-full .pp-zone {
	position: relative;
	left: auto;
	top: auto;
	margin: 12px;
	background: #ee7202a6;
}

.pp-map-card.is-full .pp-zone:hover,
.pp-map-card.is-full .pp-zone[aria-current] {
	background: var(--pp-navy);
}

.pp-map-legend {
	position: absolute;
	z-index: 4;
	left: 14px;
	bottom: 13px;
	background: var(--pp-white);
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 10px;
	line-height: 1.5;
	color: var(--pp-muted);
	box-shadow: 0 5px 15px #4c5d6d22;
}

.pp-map-card.is-full .pp-map-legend {
	position: sticky;
	display: inline-block;
	margin: 0 14px 13px;
}

/* Google map of the zones (Settings → General, map.php): before it loads, the request in the schematic map's
   legend; then the map fills the area, with the round zone buttons at the centre of each zone's streets. */
.pp-map-legend .pp-map-consent {
	display: block;
	max-width: 260px;
	margin-top: 6px;
}

.pp-map-consent a {
	color: inherit;
}

.pp-map-consent button {
	display: block;
	margin: 0 0 4px;
	padding: 6px 11px;
	border: 0;
	border-radius: 999px;
	background: var(--pp-navy);
	color: var(--pp-white);
	font: inherit;
	font-size: 11px;
	font-weight: 750;
	cursor: pointer;
}

.pp-map-consent button:hover,
.pp-map-consent button:focus-visible {
	background: var(--pp-orange);
}

.pp-map-card.is-google .pp-map-real::before,
.pp-map-card.is-google .pp-map-real::after {
	display: none;
}

.pp-map-card.is-google .pp-gmap {
	display: block;
	width: 100%;
	height: 100%;
}

/* Loading the Google map: a spinner in place of the map. Also before the script runs, for a visitor who already
   asked for it (pp-gmap-remembered, set in the page by the map shortcode), so the schematic map does not flash. */
html.pp-gmap-remembered .pp-map-real:has(.pp-map-consent) > * {
	visibility: hidden;
}

html.pp-gmap-remembered .pp-map-real:has(.pp-map-consent)::after,
.pp-map-card.is-google.is-loading .pp-map-real::after {
	display: none;
}

html.pp-gmap-remembered .pp-map-real:has(.pp-map-consent)::before,
.pp-map-card.is-google.is-loading .pp-map-real::before {
	content: "";
	display: block;
	position: absolute;
	z-index: 5;
	inset: calc(50% - 18px) auto auto calc(50% - 18px);
	width: 36px;
	height: 36px;
	border: 3px solid #ee720240;
	border-top-color: var(--pp-orange);
	border-radius: 50%;
	background: none;
	opacity: 1;
	animation: pp-map-spin 0.8s linear infinite;
}

html.pp-gmap-remembered .pp-map-real:has(.pp-map-consent),
.pp-map-card.is-google.is-loading .pp-map-real {
	background: var(--pp-soft);
}

.pp-map-card.is-google.is-loading .pp-gmap {
	visibility: hidden;
}

@keyframes pp-map-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	html.pp-gmap-remembered .pp-map-real:has(.pp-map-consent)::before,
	.pp-map-card.is-google.is-loading .pp-map-real::before {
		animation-duration: 3s;
	}
}

/* The clicked street's name. */
.pp-gmap-info {
	font-size: 13px;
	font-weight: 700;
	color: var(--pp-ink);
}

/* The zones' buttons on the Google map, in a column on the left as on the prototype's full map (portipark.js): small,
   in columns of six from the top (A to F2, then F3 to H2), so every zone is in sight; more zones, more columns. */
.pp-gmap-column {
	display: grid;
	grid-template-rows: repeat(6, 30px);
	grid-auto-columns: 30px;
	grid-auto-flow: column;
	gap: 6px;
	margin: 10px;
	padding: 8px;
	/* A light panel, so the buttons stand out from the map. */
	background: #ffffffc7;
	border-radius: 14px;
	box-shadow: 0 2px 8px #4c5d6d26;
}

.pp-map-card .pp-gmap-column .pp-zone {
	position: relative;
	inset: auto;
	width: 30px;
	height: 30px;
	margin: 0;
	font-size: 11px;
	border-width: 1.5px;
	background: #ee7202a6;
}

.pp-map-card .pp-gmap-column .pp-zone:hover,
.pp-map-card .pp-gmap-column .pp-zone[aria-current] {
	background: var(--pp-navy);
}

/* "Vista inicial" (portipark.js), under the zones while one is chosen: back to the first view. */
.pp-gmap-reset {
	margin: 4px 0 0 10px;
	padding: 7px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--pp-white);
	color: var(--pp-ink);
	font: inherit;
	font-size: 12px;
	font-weight: 750;
	box-shadow: 0 2px 6px #4c5d6d40;
	cursor: pointer;
}

/* On a short map (phones) it sits at the top centre (portipark.js). */
.pp-gmap-reset.is-top {
	margin: 10px 0 0;
}

.pp-gmap-reset[hidden] {
	display: none;
}

.pp-gmap-reset:hover,
.pp-gmap-reset:focus-visible {
	background: var(--pp-navy);
	color: var(--pp-white);
}

/* Google map in full screen (its own button): room for the prototype's size. */
.pp-map-card :fullscreen .pp-gmap-column,
.pp-map-card .pp-gmap:fullscreen .pp-gmap-column {
	grid-template-rows: repeat(6, 58px);
	grid-auto-columns: 58px;
	gap: 12px;
	padding: 16px;
}

.pp-map-card :fullscreen .pp-gmap-column .pp-zone,
.pp-map-card .pp-gmap:fullscreen .pp-gmap-column .pp-zone {
	width: 58px;
	height: 58px;
	font-size: 16px;
	border-width: 2px;
}

.pp-map-info {
	padding: 34px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pp-kicker {
	color: var(--pp-orange);
	font-size: 10px !important;
	font-weight: 850;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.5;
	margin: 0 !important;
}

body:not(.home) .main-content .pp-kicker {
	line-height: 1.5;
}

.pp-map-info .pp-kicker {
	color: var(--pp-label);
}

.pp-map-info h3 {
	color: var(--pp-ink);
	font-size: 25px;
	letter-spacing: -0.04em;
	line-height: 1.5;
	margin: 8px 0;
}

.pp-map-info p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--pp-muted);
	margin: 0 0 20px;
}

.pp-map-result {
	min-height: 115px;
	background: var(--pp-soft);
	border-radius: 15px;
	padding: 16px;
	margin: 0 0 16px;
	line-height: 1.5;
}

.pp-map-result strong {
	display: block;
	font-size: 14px;
}

.pp-map-result span {
	font-size: 12px;
	color: var(--pp-muted);
	display: block;
	margin-top: 6px;
}

.pp-map-result .pp-badge {
	display: inline-block;
	margin-top: 10px;
	background: var(--pp-mint);
	color: #c45e00;
	border-radius: 30px;
	padding: 5px 9px;
	font-size: 10px;
	font-weight: 800;
}

/* Inside a content card (full map page) the card's h3 values apply, as in the prototype. */
body:not(.home) .main-content .pp-map-info h3 {
	font-size: 17px;
	line-height: 1.5;
	letter-spacing: -0.04em;
	margin: 24px 0 8px;
}

.pp-map-info .pp-button-row {
	margin: 0;
}

.pp-street-results {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pp-street-results [hidden] {
	display: none !important;
}

/* ---------- Home ---------- */
.home #main .container-fluid,
.home #main .main-content-wrap,
.home #main .main-content {
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}

.pp-section {
	padding: 55px 0;
	margin: 0 !important;
}

.pp-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 22px;
}

.pp-section-head p,
.pp-section-head h2 {
	margin: 0;
}

/* The link is a 12px line with no margin, aligned with the bottom of the text (prototype .section-head .link-more). */
.pp-section-head .pp-link-more {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

.pp-section-head .pp-kicker {
	color: var(--pp-label);
}

.pp-section h2 {
	margin: 6px 0 0;
	color: var(--pp-ink);
	font-size: clamp(25px, 3vw, 36px);
	letter-spacing: -0.04em;
	line-height: 1.1;
}

.pp-section-head-text p:not(.pp-kicker) {
	margin: 5px 0 0;
	color: var(--pp-muted);
	max-width: 560px;
	font-size: 14px;
	line-height: 1.5;
}

/* Photographs (.home-slideshow) */
.pp-slideshow {
	height: 334px;
	background: var(--pp-navy);
	position: relative;
	overflow: hidden;
	color: var(--pp-white);
}

.pp-slides,
.pp-slide,
.pp-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.pp-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0.7s;
	pointer-events: none;
}

.pp-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.pp-slide img {
	object-fit: cover;
	object-position: center 65%;
	max-width: none;
}

.pp-slideshow::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(22, 35, 45, 0.8), rgba(22, 35, 45, 0.33) 55%, rgba(22, 35, 45, 0.08));
	pointer-events: none;
}

.pp-slideshow-copy {
	position: relative;
	z-index: 1;
	padding-top: 42px;
	pointer-events: none;
}

.pp-slideshow-copy h1 {
	color: var(--pp-white);
	font-size: clamp(38px, 4.5vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.045em;
	margin: 12px 0 14px;
}

.pp-slideshow-copy p {
	max-width: 480px;
	margin: 0;
	color: var(--pp-white);
	font-size: 16px;
	line-height: 1.5;
}

/* Arrows on the sides of the photographs (since 22/10/2026: no photo details, pause button or dots). */
.pp-slideshow-controls[hidden] {
	display: none;
}

.pp-slide-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: rgba(22, 35, 45, 0.55);
	color: var(--pp-white);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s;
}

.pp-slide-arrow.is-prev {
	left: 16px;
}

.pp-slide-arrow.is-next {
	right: 16px;
}

.pp-slide-arrow span {
	display: block;
	margin-top: -3px;
}

.pp-slide-arrow:hover,
.pp-slide-arrow:focus-visible {
	background: rgba(22, 35, 45, 0.85);
}

/* Narrower screens: the title and text reach the left edge, so the arrows go to the bottom of the photo. */
@media (max-width: 1180px) {
	.pp-slide-arrow {
		top: auto;
		bottom: 14px;
		margin-top: 0;
	}
}

/* Map section (.home-map) */
.pp-home-map {
	background: var(--pp-white);
	padding-top: 36px;
	padding-bottom: 42px;
}

.pp-home-map .pp-map-card {
	border: 1px solid var(--pp-line);
}

.pp-home-map .pp-map-real {
	height: auto;
	min-height: 420px;
}

.pp-home-map .pp-map-info {
	padding: 26px;
}

.pp-home-map .pp-searchbox {
	border: 1px solid var(--pp-line);
	box-shadow: none;
	margin: 8px 0 20px;
	width: 100%;
	max-width: none;
}

.pp-home-map .pp-searchbox:focus-within {
	outline: 2px solid var(--pp-orange);
	outline-offset: 2px;
}

.pp-street-label {
	font-size: 12px;
	font-weight: 750;
	color: var(--pp-ink);
	margin: 0;
}

.pp-home-map .pp-map-result {
	min-height: 100px;
}

/* Quick access (.home-quick) */
.pp-home-quick {
	background: var(--pp-soft);
	padding: 36px 0;
}

.pp-quick-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pp-quick-grid p {
	margin: 0;
}

/* Card: drawn icon (40px), name and description, arrow (20px), as the prototype's approved home page cards. */
.pp-quick-grid a {
	min-height: 88px;
	height: 100%;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 20px;
	grid-template-rows: auto auto;
	column-gap: 14px;
	row-gap: 4px;
	align-content: center;
	padding: 16px 20px;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	background: var(--pp-white);
	color: var(--pp-ink);
	text-decoration: none;
	line-height: 1.5;
	box-shadow: 0 3px 12px rgba(76, 93, 109, 0.06);
	transition: 0.18s;
}

.pp-quick-grid a:hover {
	transform: translateY(-3px);
	box-shadow: var(--pp-shadow);
	border-color: #ebd8c5;
	color: var(--pp-ink);
}

.pp-quick-icon {
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
	width: 40px;
	height: 40px;
	color: var(--pp-orange);
	display: grid;
	place-items: center;
}

.pp-quick-grid strong {
	grid-column: 2;
	align-self: end;
	font-size: 14px;
	line-height: 1.2;
	color: #243746;
}

.pp-quick-grid a .pp-quick-description {
	grid-column: 2;
	font-size: 12px;
	color: var(--pp-muted);
}

.pp-quick-arrow {
	grid-column: 3;
	grid-row: 1 / 3;
	align-self: center;
	color: var(--pp-navy);
}

/* Residents and Rocha Prime panels (.two-panels, .feature-panel) */
.pp-two-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pp-panel {
	border-radius: 24px;
	padding: 30px;
	position: relative;
	overflow: hidden;
	min-height: 236px;
	margin: 0 !important;
	color: var(--pp-navy);
}

.pp-panel-res {
	background: var(--pp-mint);
}

.pp-panel-rocha {
	background: var(--pp-sand);
}

.pp-panel h3 {
	color: inherit;
	font-size: 25px;
	letter-spacing: -0.04em;
	line-height: 1.5;
	margin: 7px 0 9px;
	position: relative;
	z-index: 2;
}

.pp-panel p {
	font-size: 13px;
	line-height: 1.5;
	max-width: 410px;
	margin: 13px 0;
	position: relative;
	z-index: 2;
}

/* The prototype's button is inline, so its 8px margin adds to the paragraph's instead of collapsing. */
.pp-panel .wp-block-buttons {
	position: relative;
	z-index: 2;
	margin-top: 0;
	padding-top: 8px;
}

.pp-panel .pp-big-num {
	font-size: 94px;
	line-height: 0.8;
	position: absolute;
	right: 20px;
	bottom: 15px;
	margin: 0;
	opacity: 0.1;
	font-weight: 900;
	letter-spacing: -0.1em;
	z-index: 0;
}

/* Compact spacing only between the three lower home page blocks. */
.pp-home-benefits {
	padding-bottom: 28px;
}

.pp-home-tasks {
	padding-top: 28px;
	padding-bottom: 28px;
}

.pp-home-news {
	padding-top: 28px;
}

/* Next step band (.task-band) */
.pp-task-band {
	background: var(--pp-navy);
	color: var(--pp-white);
	border-radius: 25px;
	padding: 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 25px;
}

.pp-task-band p,
.pp-task-band h2 {
	margin: 0 !important;
}

.pp-task-band .pp-kicker {
	color: var(--pp-orange);
}

.pp-section .pp-task-band h2 {
	color: var(--pp-white);
	font-size: 25px;
	margin-top: 6px !important;
}

.pp-task-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pp-task-links a {
	border: 1px solid #ffffff39;
	border-radius: 999px;
	color: var(--pp-white);
	text-decoration: none;
	padding: 11px 14px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.5;
}

.pp-task-links a:hover {
	color: var(--pp-white);
	background: #ffffff1c;
}

/* News (.news-grid, .news) */
.pp-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

/* "Mostrar mais notícias" ([portipark_noticias carregar_mais="sim"]), centred under the cards. */
body .pp-news-more {
	margin: 22px 0 0;
	text-align: center;
}

.pp-news[id] {
	scroll-margin-top: 140px;
}

.pp-news {
	border: 1px solid var(--pp-line);
	background: var(--pp-soft);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(76, 93, 109, 0.05);
	line-height: 1.5;
}

.pp-news-top {
	height: 112px;
	background: linear-gradient(135deg, #f5ebe1, #f1b77e);
	position: relative;
	overflow: hidden;
}

.pp-news-top::before {
	content: "";
	position: absolute;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 1px solid #ffffff99;
	left: 25px;
	top: -40px;
	box-shadow: 0 0 0 20px #ffffff24, 0 0 0 40px #ffffff1e;
}

.pp-news:nth-child(3n+2) .pp-news-top {
	background: linear-gradient(135deg, #f9e0c4, #eab68f);
}

.pp-news:nth-child(3n) .pp-news-top {
	background: linear-gradient(135deg, #d8dee2, #738390);
}

.pp-news-content {
	padding: 17px;
}

.pp-news-content small {
	font-size: 10px;
	color: var(--pp-label);
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.pp-news-content h3 {
	color: var(--pp-ink);
	font-size: 16px;
	line-height: 1.22;
	letter-spacing: 0;
	margin: 8px 0;
}

.pp-news-content p {
	font-size: 12px;
	line-height: 1.5;
	color: var(--pp-muted);
	margin: 0 0 13px;
}

/* Inside a content card the card's text styles win, as in the prototype (Notícias page). */
body:not(.home) .main-content .pp-news-content h3 {
	font-size: 17px;
	line-height: 1.22; /* The news card's, not the content card's 1.5 (prototype: .news-content h3). */
	margin: 24px 0 8px;
}

body:not(.home) .main-content .pp-news-content p {
	font-size: 14px;
	line-height: 1.7;
	color: var(--pp-text);
}

.pp-news-content .pp-link-more,
.main-content .pp-news-content .pp-link-more {
	color: var(--pp-label);
	font-weight: 800;
	font-size: 12px;
	text-decoration: none;
}

/* ---------- Footer (.footer) ---------- */
#footer {
	background: var(--pp-navy2);
	color: var(--pp-light);
	padding: 40px 0 20px;
}

#footer .footer-main,
#footer .footer-bottom {
	background: none;
	padding: 0;
}

#footer .footer-main > .container,
#footer .footer-bottom > .container {
	max-width: 1200px;
	padding: 0 22px;
}

#footer .footer-main .row {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	gap: 30px;
	margin: 0;
}

#footer .footer-main .row > div {
	width: auto;
	max-width: none;
	flex: none;
	padding: 0;
}

#footer .widget {
	margin: 0;
}

#footer .widget-title,
#footer h3.widget-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pp-orange);
	line-height: 1.5;
	margin: 3px 0 14px;
}

#footer .widget_nav_menu ul,
#footer .widget_nav_menu li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0 !important;
}

#footer .widget_nav_menu li::before,
#footer .widget_nav_menu li > a::before {
	display: none;
}

#footer .widget_nav_menu a {
	display: block;
	color: var(--pp-light2);
	text-decoration: none;
	font-size: 12px;
	line-height: 1.5;
	margin: 8px 0;
	padding: 0;
}

#footer a:hover {
	color: var(--pp-white);
	text-decoration: underline;
}

#footer p {
	margin: 12px 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--pp-light2);
	max-width: 260px;
}

.pp-footer-logo {
	margin: 0 0 13px !important;
}

.pp-footer-logo img {
	background: var(--pp-white);
	border-radius: 8px;
	padding: 4px;
	width: 190px;
	max-width: 100%;
	height: auto;
}

#footer .footer-bottom {
	margin-top: 30px;
}

#footer .footer-bottom > .container {
	/* The line spans the content width only, as in the prototype. */
	max-width: min(1156px, calc(100% - 44px));
	border-top: 1px solid #ffffff22;
	padding: 15px 0 0;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	min-height: 0;
}

/* Porto pads these below 991px and centres them on phones; the prototype does neither. */
#footer .footer-bottom > .container > .footer-left,
#footer .footer-bottom > .container > .footer-center,
#footer .footer-bottom > .container > .footer-right {
	padding: 0;
	margin: 0;
	text-align: left;
}

#footer .footer-bottom > .container {
	align-items: stretch;
}

#footer .footer-bottom .footer-copyright {
	display: block;
}

#footer .footer-bottom,
#footer .footer-bottom .footer-copyright {
	color: #a8b1b8;
	font-size: 10px;
	line-height: 1.5;
}

/* ---------- Approved palette (prototype, October 2026) ---------- */

/* Orange titles on the light surfaces: content card, sidebar card, section heads, map panel, panels, news, link grids. */
body:not(.home) .main-content :is(h2, h3, h4),
body .pp-aside-card h3,
body .pp-section-head h2,
body .pp-map-info h3,
body .pp-panel h3,
body .pp-news-content h3,
body .pp-link-grid :is(h2, h3, h4) {
	color: var(--pp-orange);
}

/* Home page section labels in dark grey, balancing the orange titles. */
.pp-home-benefits .pp-kicker {
	color: var(--pp-label);
}

.pp-home-benefits .pp-big-num {
	color: var(--pp-orange);
	opacity: 0.22;
}

.pp-home-news .pp-news {
	background: var(--pp-white);
}

.pp-home-news .pp-news-top {
	background: linear-gradient(135deg, #fde8d9, #fad4bc);
}

.pp-home-news .pp-news-content .pp-link-more {
	color: var(--pp-orange);
}

/* ---------- Prototype of 20/10/2026 ---------- */

/* "Legislação e regulamentos": one row per document, its type and size on the right (.document-list). */
body:not(.home) .main-content .pp-document-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

body:not(.home) .main-content .pp-document-list li {
	border-bottom: 1px solid var(--pp-line);
	margin: 0;
	font-size: 14px;
}

body:not(.home) .main-content .pp-document-list li:last-child {
	border-bottom: 0;
}

body:not(.home) .main-content .pp-document-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 12px;
	color: var(--pp-ink);
	text-decoration: none;
	border-radius: 10px;
	font-weight: 700;
	line-height: 1.5;
}

body:not(.home) .main-content .pp-document-list a:hover {
	background: var(--pp-soft);
	color: var(--pp-orange);
}

.pp-document-list small {
	white-space: nowrap;
	color: var(--pp-muted);
	font-size: 11px;
	font-weight: 400;
}

/* "Pagar coima": one bordered box per situation (.payment-scenario). */
.pp-payment-guidance {
	display: grid;
	gap: 24px;
	margin-top: 24px;
}

.pp-payment-scenario {
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	padding: 24px;
}

body:not(.home) .main-content .pp-payment-scenario h3 {
	font-size: 21px;
	line-height: 1.4;
	margin: 0 0 14px;
}

body:not(.home) .main-content .pp-payment-scenario h4 {
	font-size: 16px;
	line-height: 1.5;
	margin: 24px 0 8px;
}

body:not(.home) .main-content .pp-payment-scenario ol {
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--pp-text);
}

body:not(.home) .main-content .pp-payment-scenario ol li {
	font-size: 14px;
	line-height: 1.8;
}

.pp-payment-scenario li + li {
	margin-top: 6px;
}

body:not(.home) .main-content .pp-payment-scenario a:not(.pp-btn) {
	color: var(--pp-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body:not(.home) .main-content .pp-payment-scenario .pp-payment-reminder {
	background: var(--pp-soft);
	border-left: 3px solid var(--pp-orange);
	border-radius: 0 8px 8px 0;
	padding: 14px 16px;
	margin: 22px 0 0;
}

/* "Tarifários e horários": each zone's hours and prices in a box that opens (.surface-zone). */
.pp-surface-tariffs {
	display: grid;
	gap: 12px;
	margin: 24px 0;
}

.pp-surface-zone {
	padding: 0;
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	overflow: hidden;
	scroll-margin-top: 130px;
}

.pp-surface-zone summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
	font-weight: 800;
	color: var(--pp-ink);
}

.pp-surface-zone summary::-webkit-details-marker {
	display: none;
}

.pp-surface-zone summary::after {
	content: "+";
	margin-left: auto;
	color: var(--pp-orange);
	font-size: 22px;
}

.pp-surface-zone[open] summary::after {
	content: "−";
}

.pp-surface-zone[open] summary {
	border-bottom: 1px solid var(--pp-line);
	background: var(--pp-soft);
}

.pp-surface-zone-code {
	background: var(--pp-orange);
	color: var(--pp-white);
	border-radius: 8px;
	padding: 7px 10px;
	white-space: nowrap;
	font-weight: 700;
}

.pp-surface-zone-body {
	padding: 0 20px 20px;
}

.pp-surface-hours {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 18px 0;
}

.pp-surface-hours > div {
	background: var(--pp-soft);
	padding: 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
}

/* Paragraphs inside a zone box: the prototype's "details p" margins. */
body:not(.home) .main-content .pp-surface-zone p {
	margin: 8px 0 0;
}

body:not(.home) .main-content .pp-surface-hours p {
	margin: 6px 0 0;
}

.pp-surface-table {
	width: fit-content;
	max-width: 100%;
	max-height: 480px;
	overflow: auto;
	border: 1px solid var(--pp-line);
	border-radius: 10px;
}

body:not(.home) .main-content .pp-surface-table table {
	margin: 0;
	width: auto;
	table-layout: auto;
	font-size: 13px;
}

body:not(.home) .main-content .pp-surface-table caption {
	text-align: left;
	padding: 12px;
	font-weight: 700;
	color: var(--pp-ink);
	/* On one line: the two-column tables (B1, F1…) widen to fit "Zona B1 · Tarifário por duração" (22/10/2026). */
	white-space: nowrap;
}

body:not(.home) .main-content .pp-surface-table thead th {
	position: sticky;
	top: 0;
	background: var(--pp-orange);
	color: var(--pp-white);
	z-index: 1;
}

body:not(.home) .main-content .pp-surface-table :is(th, td) {
	padding: 10px 14px;
	white-space: nowrap;
}

body:not(.home) .main-content .pp-surface-table td {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap; /* "0,30 €" on one line. */
}

body:not(.home) .main-content .pp-surface-table tbody th {
	text-align: left;
	font-weight: 500;
}

.pp-surface-table tbody tr:nth-child(even) {
	background: var(--pp-soft);
}

body:not(.home) .main-content .pp-surface-source {
	font-size: 12px;
	color: var(--pp-muted);
}

.pp-surface-zone summary:focus-visible,
.pp-surface-table:focus-visible {
	outline: 3px solid var(--pp-orange);
	outline-offset: 2px;
}

/* "Como pagar": the Via Verde logo next to its button. */
.pp-via-verde-access {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 8px 0;
}

.pp-via-verde-access img {
	width: 142px;
	height: 75px;
	object-fit: contain;
}

body:not(.home) .main-content .pp-via-verde-access .pp-btn {
	color: var(--pp-white);
	text-decoration: none;
}

/* A button in the text ("Identificar o condutor →", Via Verde) takes the text's line height, as the prototype's .btn. */
body:not(.home) .main-content :is(p, li, div) > .pp-btn {
	line-height: inherit;
}

/* Home page map panel: wider map (65/35), fixed title, orange search label, buttons one under the other. */
.pp-home-map .pp-map-card {
	grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
}

body .pp-home-map .pp-map-info h3.pp-home-zone-title {
	color: var(--pp-label);
	margin: 0 0 30px;
}

.pp-home-map .pp-street-label {
	color: var(--pp-orange);
	font-size: 15px;
}

.pp-home-map .pp-searchbox {
	margin-bottom: 24px;
}

.pp-home-map .pp-button-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.pp-home-map .pp-button-row .pp-btn {
	width: 100%;
}

.pp-home-map .pp-button-row .pp-btn-outline {
	border-color: var(--pp-orange);
}

.pp-map-result[hidden] {
	display: none;
}

.pp-map-result .pp-zone-tariff-link {
	display: inline-block;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-top: 10px;
}

/* News with photos: the card's photo (featured image) and the article (photo, date, title). */
.pp-news-top.pp-news-photo {
	display: block;
	height: 190px;
	min-height: 0;
	background: var(--pp-soft);
}

.pp-news-photo::before {
	display: none;
}

.pp-news-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pp-news-content h3 a {
	color: inherit;
	text-decoration: none;
}

.pp-news-content h3 a:hover {
	text-decoration: underline;
}

.pp-home-news .pp-news-photo img {
	transition: transform 0.18s ease;
}

.pp-home-news .pp-news-photo:hover img,
.pp-home-news .pp-news-photo:focus-visible img {
	transform: scale(1.035) translateY(-2px);
}

body:not(.home) .main-content .pp-news-date {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #626a71;
	margin: 0 0 12px;
}

.pp-news-article-photo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 18px 0 24px;
}

body:not(.home) .main-content .pp-news-article-title {
	font-size: 26px;
	line-height: 1.3;
	margin: 0 0 22px;
	letter-spacing: -0.02em;
}

body:not(.home) .main-content .pp-news-article p {
	margin: 0 0 18px;
}

body:not(.home) .main-content .pp-news-article a {
	color: var(--pp-ink);
	text-decoration: underline;
}

body:not(.home) .main-content .pp-news-original {
	font-size: 12px !important;
}

@media (prefers-reduced-motion: reduce) {
	.pp-home-news .pp-news-photo img {
		transition: none;
	}

	.pp-home-news .pp-news-photo:hover img,
	.pp-home-news .pp-news-photo:focus-visible img {
		transform: none;
	}
}

/* ---------- Responsive (same breakpoints as the prototype) ---------- */
@media (max-width: 1080px) {
	#header .main-menu > li.menu-item > a {
		padding: 11px 7px;
		font-size: 12.06px;
	}

	#header .main-menu > li.has-sub > a::after {
		margin-left: 8.38px;
	}

	#header .header-main .header-container,
	#header .header-main .header-right {
		gap: 15px;
	}

	#header .logo {
		min-width: 0;
	}
}

/* Porto collapses the menu at 991px; the prototype only at 820px. */
@media (min-width: 821px) and (max-width: 991px) {
	#header .header-main #main-menu {
		display: block !important;
	}

	#header .header-main .main-menu {
		display: flex !important;
	}

	#header .mobile-toggle {
		display: none !important;
	}
}

@media (max-width: 820px) {
	#header .header-main .header-container {
		padding: 12px 16px;
		gap: 12px;
	}

	/* Menu button, logo, icons (as the prototype's mobile header). */
	#header .header-main .header-right {
		display: contents !important;
	}

	/* Flex and no desktop menu box, so nothing pushes the menu button. */
	#header .header-right-bottom {
		order: 1;
		flex: none;
		display: flex;
	}

	#header .header-main #main-menu {
		display: none;
	}

	#header .logo {
		order: 2;
	}

	#header .header-right-top {
		order: 3;
		margin-left: auto;
	}

	.pp-wrap,
	.page-top > .container,
	body:not(.home) #main > .container,
	#footer .footer-main > .container {
		padding: 0 18px;
	}

	#footer .footer-bottom > .container {
		max-width: calc(100% - 36px);
	}

	.pp-section {
		padding: 42px 0;
	}

	/* The map and quick access sections keep their own spacing (as in the prototype). */
	.pp-home-map {
		padding-top: 36px;
		padding-bottom: 42px;
	}

	.pp-home-quick {
		padding: 36px 0;
	}

	.pp-map-card {
		grid-template-columns: 1fr;
	}

	.pp-map-real {
		height: 330px;
	}

	.pp-map-info {
		padding: 25px;
	}

	.pp-task-band {
		align-items: flex-start;
		flex-direction: column;
	}

	#footer .footer-main .row {
		grid-template-columns: 1fr 1fr;
	}

	#footer .footer-main .row > div:first-child {
		grid-column: 1 / -1;
	}

	.pp-link-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pp-home-benefits {
		padding-bottom: 21px;
	}

	.pp-home-tasks {
		padding-top: 21px;
		padding-bottom: 21px;
	}

	.pp-home-news {
		padding-top: 21px;
	}

	.pp-slideshow {
		height: 324px;
	}

	.pp-slideshow-copy {
		padding-top: 34px;
	}

	.pp-home-map .pp-map-real {
		min-height: 330px;
	}

	.pp-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 540px) {
	.pp-alert {
		padding: 9px 14px;
	}

	.pp-alert-in {
		gap: 8px;
		font-size: 11px;
	}

	.pp-alert a {
		font-size: 10px;
		white-space: normal;
	}

	.pp-searchbox button {
		font-size: 10px;
		padding: 10px;
	}

	.pp-searchbox input {
		font-size: 12px;
		padding: 11px 8px;
	}

	#header .logo {
		width: 154px;
		min-width: 154px;
	}

	#header .header-contact {
		display: none;
	}

	.pp-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.pp-section-head .pp-link-more {
		margin-top: 2px;
	}

	.pp-two-panels {
		grid-template-columns: 1fr;
	}

	.pp-panel {
		min-height: 200px;
		padding: 24px;
	}

	.pp-map-real {
		height: 285px;
	}

	.pp-zone {
		width: 45px;
		height: 45px;
		font-size: 11px;
	}

	.pp-map-info {
		padding: 21px;
	}

	.pp-task-band {
		padding: 24px;
	}

	.pp-task-links {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.pp-task-links a {
		text-align: center;
		padding: 10px 7px;
	}

	.pp-news-grid {
		grid-template-columns: 1fr;
	}

	.pp-news {
		display: grid;
		grid-template-columns: 105px 1fr;
	}

	.pp-news-top {
		height: 100%;
		min-height: 125px;
	}

	.pp-news-content {
		padding: 14px;
	}

	#footer .footer-main .row {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	#footer .footer-bottom > .container {
		flex-direction: column;
	}

	body:not(.home) #content > article {
		padding: 20px;
	}

	.pp-info-grid,
	.pp-link-grid {
		grid-template-columns: 1fr;
	}

	.pp-tariff-access {
		flex-direction: column;
		align-items: flex-start;
	}

	body:not(.home) .main-content .pp-rocha-pricing td,
	body:not(.home) .main-content .pp-rocha-pricing tbody th,
	body:not(.home) .main-content .pp-rocha-pricing thead th {
		padding: 14px 12px;
	}

	.page-top {
		padding: 34px 0 30px !important;
	}

	body:not(.home) #main {
		padding: 22px 0 48px;
	}

	.pp-slideshow {
		height: 354px;
	}

	.pp-slideshow-copy p {
		font-size: 14px;
		max-width: 300px;
	}

	.pp-slide-arrow {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}

	.pp-slide-arrow.is-prev {
		left: 8px;
	}

	.pp-slide-arrow.is-next {
		right: 8px;
	}

	/* The prototype's later "approved" rule (min-height 88px) also overrides its phone min-height of 80px. */
	.pp-quick-grid {
		grid-template-columns: 1fr;
	}

	.pp-home-map .pp-map-real {
		min-height: 285px;
	}

	.pp-home-map .pp-map-info {
		padding: 21px;
	}

	.pp-home-map {
		padding-top: 28px;
	}
}

/* The home slideshow keeps its fade with "reduce motion" too (portipark.js: not tied to it). */
@media (prefers-reduced-motion: reduce) {
	.pp-quick-grid a {
		transition: none;
	}
}

/* Prototype of 20/10/2026, narrower screens. */
@media (max-width: 820px) {
	.pp-home-map .pp-map-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 540px) {
	body:not(.home) .main-content .pp-document-list a {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
		padding: 14px 4px;
	}

	.pp-payment-scenario {
		padding: 18px;
	}

	body:not(.home) .main-content .pp-payment-scenario h3 {
		font-size: 19px;
	}

	.pp-surface-zone summary {
		padding: 14px;
		gap: 10px;
	}

	.pp-surface-zone-body {
		padding: 0 12px 16px;
	}

	.pp-news-top.pp-news-photo {
		height: 100%;
		min-height: 145px;
	}

	.pp-news-content h3,
	body:not(.home) .main-content .pp-news-content h3 {
		font-size: 15px;
	}

	body:not(.home) .main-content .pp-news-article-title {
		font-size: 22px;
	}

	/* With the streets: the legend with the Google Maps request in a strip under the zones, not over them. */
	.pp-map-card:not(.is-full) .pp-map-real:has(.pp-map-consent) {
		height: 375px;
		min-height: 375px;
	}

	.pp-map-card:not(.is-full) .pp-map-real:has(.pp-map-consent) .pp-zones {
		position: absolute;
		inset: 0 0 90px;
	}

	.pp-map-card:not(.is-full) .pp-map-real:has(.pp-map-consent) .pp-map-legend {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.pp-map-legend .pp-map-consent {
		max-width: none;
	}

	/* Visitor who already asked for the Google map: its height from the start (no strip for the request). */
	html.pp-gmap-remembered .pp-map-card:not(.is-full) .pp-map-real:has(.pp-map-consent) {
		height: 285px;
		min-height: 285px;
	}


	/* Tariff tables on a phone: less room in the cells, so the three columns fit the screen (22/10/2026). */
	body:not(.home) .main-content .pp-surface-table :is(th, td) {
		padding: 9px 10px;
	}
}

/* The smallest phones: the tariff table title on two lines rather than a wider table. */
@media (max-width: 359px) {
	body:not(.home) .main-content .pp-surface-table caption {
		white-space: normal;
	}
}

/* ---------- Page not found (404.php) ---------- */
/* The search box of the hero, on the white card: a border instead of the shadow. */
.pp-404 .pp-searchbox {
	box-shadow: none;
	border: 1px solid var(--pp-line);
	margin-bottom: 28px;
}

.pp-404 ul {
	columns: 2 220px;
	padding-left: 18px;
}

.pp-404 li {
	margin-bottom: 8px;
	break-inside: avoid;
}
