/* RPM Verette – stili che riproducono l'aspetto del tema Themler originale. */

/* ---------- Struttura ---------- */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.rpm-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.rpm-main { min-height: 50vh; }
.rpm-content > :where(:not(.alignfull):not(.alignwide)) { margin-left: 20px; margin-right: 20px; }
.rpm-content > .alignfull { margin-left: 0; margin-right: 0; width: 100%; max-width: none; }
.rpm-content > * + * { margin-block-start: 0; }
.rpm-content p { margin-block-end: 10px; }

/* ---------- Header e menu ---------- */
.rpm-header .rpm-logo { margin: 0; }
.rpm-header .rpm-logo img { display: block; }
.rpm-nav .wp-block-navigation__responsive-container-open {
	width: 35px;
	height: 24px;
	padding: 0;
	background: url(../images/menu.png) no-repeat center / 35px 24px;
}
.rpm-nav .wp-block-navigation__responsive-container-open:hover,
.rpm-nav .wp-block-navigation__responsive-container-open:focus { background-image: url(../images/menu-hover.png); }
.rpm-nav .wp-block-navigation__responsive-container-open svg { opacity: 0; }
.rpm-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 100px 20px 40px; }
.rpm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: center; }
.rpm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: center; gap: 10px; }
.rpm-nav .wp-block-navigation-item__content {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 10px 20px;
	color: #fff;
}
.rpm-nav .wp-block-navigation-item__content:hover,
.rpm-nav .current-menu-item > .wp-block-navigation-item__content { color: #3177bd; }

/* ---------- Breadcrumbs e titoli ---------- */
.rpm-breadcrumbs a { color: #3177bd; }
.rpm-breadcrumbs a:hover { color: #dddddd; }
.rpm-page-title { line-height: 1.4286; }

/* ---------- Testo tra due linee (separatore Themler con testo) ---------- */
p.is-style-rpm-lined {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	padding: 10px 0;
	font-size: 13px;
	line-height: 1.4286;
	color: #777;
	text-transform: uppercase;
}
p.is-style-rpm-lined::before,
p.is-style-rpm-lined::after {
	content: "";
	flex: 0 1 18.75%;
	border-top: 1px solid #c7c7c7;
}

/* ---------- Trattino corto ---------- */
hr.wp-block-separator.is-style-rpm-short {
	width: 10%;
	min-width: 30px;
	border: 0;
	border-top: 2px solid #333 !important;
	margin: 10px auto !important;
	opacity: 1;
	background: none;
	height: 0;
}

/* ---------- Pulsante hero ---------- */
.wp-block-button.is-style-rpm-ghost .wp-block-button__link {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 10px 38px;
	line-height: 1.4286;
}
.wp-block-button.is-style-rpm-ghost .wp-block-button__link:hover { border-color: #fff; background: transparent; }

/* ---------- Icone (indirizzo, telefono, e-mail) ---------- */
p[class*="is-style-rpm-icon-"] { position: relative; padding-left: 27px; }
p[class*="is-style-rpm-icon-"]::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 18px;
	height: 18px;
	background: #c2c2c2;
	-webkit-mask: var(--rpm-icon) no-repeat center / contain;
	mask: var(--rpm-icon) no-repeat center / contain;
}
p.is-style-rpm-icon-marker { --rpm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.3 7 13 7 13s7-7.7 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
p.is-style-rpm-icon-phone { --rpm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
p.is-style-rpm-icon-mail { --rpm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2V5zm2 2v.5l8 5 8-5V7H4zm0 2.8V17h16V9.8l-8 5-8-5z'/%3E%3C/svg%3E"); }

/* ---------- Footer ---------- */
.rpm-footer h3 {
	color: #fff;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 30px;
	margin: 20px 0 10px;
}
.rpm-footer p {
	font-size: 14px;
	line-height: 28px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.rpm-footer .rpm-credits { margin: 0; }
.rpm-footer .wp-block-social-links { gap: 20px; font-size: 20px; }
.rpm-footer .wp-block-social-links .wp-social-link svg { width: 20px; height: 20px; }
.rpm-footer .wp-block-social-links .wp-social-link:hover { color: #8bb6e1 !important; }

/* ---------- Blog e barra laterale ---------- */
.rpm-widget-title { font-size: 48px; margin: 20px 0 10px; }
.rpm-search .wp-block-search__label { font-weight: 400; }
.rpm-search .wp-block-search__input { border: 1px solid #ccc; padding: 6px 12px; font-size: 14px; color: #777; border-radius: 0; }
.rpm-search .wp-block-search__button { margin-left: 10px; }
.rpm-list-title a { color: #555; }
.rpm-list-title a:hover { color: #3177bd; }
.rpm-post-meta { font-size: 11px; color: #777; border-top: 1px solid #eee; padding-top: 6px; }

/* ---------- Mappa ---------- */
.rpm-map iframe { display: block; width: 100%; border: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.rpm-header .rpm-header__inner { padding-left: 20px !important; padding-right: 20px !important; }
	.rpm-hero .rpm-hero__title { font-size: 40px !important; }
	.rpm-footer { padding-left: 20px !important; padding-right: 20px !important; }
	.rpm-with-sidebar { padding-left: 20px !important; padding-right: 20px !important; }
	.rpm-breadcrumbs { padding-left: 20px !important; }
	.rpm-widget-title { font-size: 30px; }
}

/* Colonne con altezza minima: contenuto centrato verticalmente come in Themler */
.wp-block-column.rpm-col-min { display: flex; flex-direction: column; justify-content: center; }
.wp-block-columns.are-vertically-aligned-center > .wp-block-column.rpm-col-min { align-self: stretch; }

/* Hero: occupa lo schermo sotto l'header */
.wp-block-cover.rpm-hero { min-height: calc(100vh - 85px) !important; }
body.admin-bar .wp-block-cover.rpm-hero { min-height: calc(100vh - 85px - var(--wp-admin--admin-bar--height, 32px)) !important; }

/* Modulo commenti: pulsante come nel tema originale */
.wp-block-post-comments-form input[type="submit"],
.wp-block-post-comments-form .wp-block-button__link {
	border-radius: 0;
	border: 0;
	padding: 5px 15px;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
}
