/* Massimiliano Poltroni – stile blu notte e oro. Mobile first: le regole base valgono per il telefono, i media query allargano. */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
	--mp-deep: #0a1825;
	--mp-navy-dark: #0f1f30;
	--mp-navy: #18324c;
	--mp-navy-mid: #1e3d5c;
	--mp-gold: #d1ba71;
	--mp-gold-light: #e8d898;
	--mp-cream: #f8f5ee;
	--mp-cream-dim: #e8e4dc;
	--mp-muted: #9aa8bb;
	--mp-line: rgba(209, 186, 113, 0.18);
	--mp-wrap: 1200px;
	--mp-gutter: 22px;
	--mp-serif: "Cormorant Garamond", Georgia, serif;
	--mp-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
	background: var(--mp-navy-dark);
	color: var(--mp-cream-dim);
	font-family: var(--mp-sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .entry-title, .page-title {
	font-family: var(--mp-serif);
	font-weight: 300;
	color: var(--mp-cream);
	line-height: 1.12;
	letter-spacing: 0;
}
h1, .entry-title, .page-title { font-size: 2.6rem; }
h2 { font-size: 2.2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.55rem; font-weight: 400; margin-bottom: 0.45em; }
h4 { font-size: 1.25rem; font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--mp-gold); }
strong, b { font-weight: 500; color: var(--mp-cream); }

a { color: var(--mp-gold); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--mp-gold-light); }

::selection { background: var(--mp-gold); color: var(--mp-navy-dark); }

/* ---------- GeneratePress: fondi scuri ovunque ---------- */

.site, .site-content, .inside-article, .one-container .site-content, .separate-containers .inside-article,
.separate-containers .comments-area, .separate-containers .page-header, .container.grid-container {
	background: transparent !important;
}
.separate-containers .site-main { margin: 0; }

/* ---------- Intestazione ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(15, 31, 48, 0.96) !important;
	border-bottom: 1px solid var(--mp-line);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.admin-bar .site-header { top: 46px; }
.inside-header { padding: 12px var(--mp-gutter); }
.site-logo img, .site-header .header-image { max-height: 42px; width: auto; }

.main-navigation, .main-navigation ul ul { background: transparent !important; }
.main-navigation .main-nav ul li a {
	color: var(--mp-cream-dim) !important;
	font-size: 0.74rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: transparent !important;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--mp-gold) !important; }
.main-navigation ul ul { background: var(--mp-navy-dark) !important; border: 1px solid var(--mp-line); }
.main-navigation .main-nav ul li.menu-cta > a {
	border: 1px solid var(--mp-gold);
	color: var(--mp-gold) !important;
	line-height: 1;
	padding: 12px 20px;
	margin: 12px 0 12px 14px;
}
.main-navigation .main-nav ul li.menu-cta > a:hover { background: var(--mp-gold) !important; color: var(--mp-navy-dark) !important; }
.menu-toggle, .main-navigation .menu-toggle { color: var(--mp-gold) !important; background: transparent !important; }
.main-navigation.toggled .main-nav > ul { background: var(--mp-navy-dark) !important; border-top: 1px solid var(--mp-line); }
.main-navigation.toggled .main-nav ul li a { padding: 14px var(--mp-gutter); }
.main-navigation.toggled .main-nav ul li.menu-cta > a { display: inline-block; margin: 14px var(--mp-gutter) 20px; padding: 14px 22px; }
.main-navigation.toggled .main-nav ul ul { border: 0; }

/* ---------- Sezioni delle pagine ---------- */

.full-width-content .site-content .content-area,
.full-width-content .inside-article,
.full-width-content .entry-content { padding: 0; margin: 0; }
.entry-content > .wp-block-group, .entry-content > .wp-block-cover { margin: 0; }

.mp-section, .mp-band, .mp-cta, .mp-hero {
	padding: 76px var(--mp-gutter);
	position: relative;
}
.mp-section > *, .mp-band > *, .mp-cta > *, .mp-hero > * {
	max-width: var(--mp-wrap);
	margin-left: auto !important;
	margin-right: auto !important;
}
.mp-narrow > * { max-width: 780px; }

.mp-alt { background: linear-gradient(160deg, var(--mp-navy) 0%, var(--mp-navy-dark) 100%); border-top: 1px solid rgba(209, 186, 113, 0.08); border-bottom: 1px solid rgba(209, 186, 113, 0.08); }
.mp-band { background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-navy-mid) 100%); border-top: 1px solid rgba(209, 186, 113, 0.12); border-bottom: 1px solid rgba(209, 186, 113, 0.12); }

.mp-eyebrow {
	font-family: var(--mp-sans);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mp-gold);
	margin-bottom: 18px;
}
.mp-eyebrow::after { content: ""; display: block; width: 60px; height: 1px; background: var(--mp-gold); margin-top: 16px; }
.mp-center .mp-eyebrow::after { margin-left: auto; margin-right: auto; }
.mp-lead { font-size: 1.08rem; color: var(--mp-muted); max-width: 640px; }
.mp-center { text-align: center; }
.mp-center .mp-lead { margin-left: auto !important; margin-right: auto !important; }
.mp-muted { color: var(--mp-muted); }

/* Bottoni */
body .wp-block-button__link, body .mp-button {
	display: inline-block;
	background: var(--mp-gold);
	color: var(--mp-navy-dark) !important;
	border: 1px solid var(--mp-gold);
	border-radius: 0;
	padding: 15px 30px;
	font-family: var(--mp-sans);
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s, color 0.25s, transform 0.2s;
}
body .wp-block-button__link:hover, body .mp-button:hover { background: var(--mp-gold-light); transform: translateY(-1px); }
body .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--mp-cream) !important;
	border: 1px solid rgba(248, 245, 238, 0.35);
}
body .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--mp-gold); color: var(--mp-gold) !important; }
.wp-block-buttons { gap: 14px; margin-top: 2em; }
.mp-center .wp-block-buttons { justify-content: center; }

/* ---------- Apertura con foto ---------- */

.mp-hero-cover.wp-block-cover {
	min-height: 92vh !important;
	padding: 110px var(--mp-gutter) 64px;
	align-items: flex-end;
	background: var(--mp-deep);
}
.mp-hero-cover .wp-block-cover__image-background { object-position: 72% 30% !important; }
.mp-hero-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 24, 37, 0.98) 0%, rgba(10, 24, 37, 0.86) 42%, rgba(10, 24, 37, 0.25) 75%, rgba(10, 24, 37, 0.35) 100%);
	z-index: 1;
	pointer-events: none;
}
.mp-hero-cover .wp-block-cover__inner-container { position: relative; z-index: 3 !important; width: 100%; max-width: var(--mp-wrap); margin: 0 auto; color: var(--mp-cream); }
.mp-hero-cover h1 { font-size: 2.9rem; line-height: 1.06; margin-bottom: 0.45em; }
.mp-hero-cover .mp-lead { color: #b8c3d1; }
.mp-hero-cover.mp-hero-small.wp-block-cover { min-height: 72vh !important; }

.mp-creds { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.4em !important; padding-top: 1.6em; border-top: 1px solid var(--mp-line); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(209, 186, 113, 0.7); }
.mp-creds span strong { display: block; color: var(--mp-gold); font-size: 0.82rem; font-weight: 500; }

/* Apertura senza foto (pagine interne) */
.mp-hero { background: linear-gradient(135deg, var(--mp-deep) 0%, var(--mp-navy) 55%, var(--mp-navy-dark) 100%); overflow: hidden; padding-top: 96px; padding-bottom: 72px; }
.mp-hero::before { content: ""; position: absolute; top: -220px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(209, 186, 113, 0.08) 0%, transparent 70%); pointer-events: none; }
.mp-hero h1 { font-size: 2.7rem; }

/* ---------- Immagini ---------- */

.mp-portrait { position: relative; margin: 0 14px 14px 0 !important; }
.mp-portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(209, 186, 113, 0.45); z-index: 0; }
.mp-portrait img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: grayscale(100%) contrast(1.05); }
.mp-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--mp-line); }

/* ---------- Schede ---------- */

.mp-cards { gap: 2px !important; margin-top: 2.6em; }
.mp-cards + .mp-cards { margin-top: 2px; }
.mp-card {
	background: rgba(24, 50, 76, 0.45);
	border: 1px solid rgba(209, 186, 113, 0.1);
	padding: 36px 30px;
	transition: background 0.3s, border-color 0.3s;
}
.mp-card:hover { background: rgba(30, 61, 92, 0.6); border-color: rgba(209, 186, 113, 0.28); }
.mp-card > :last-child { margin-bottom: 0; }
.mp-card h3 a { color: var(--mp-cream); }
.mp-card h3 a:hover { color: var(--mp-gold); }
.mp-num { font-family: var(--mp-serif); font-style: italic; font-size: 1.05rem; color: var(--mp-gold); letter-spacing: 0.08em; margin-bottom: 0.6em; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.mp-tags span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(209, 186, 113, 0.85); border: 1px solid rgba(209, 186, 113, 0.25); padding: 4px 10px; line-height: 1.6; }
.mp-card-img { padding: 0; overflow: hidden; }
.mp-card-img > * { padding-left: 30px; padding-right: 30px; }
.mp-card-img > .wp-block-image { padding: 0; margin: 0 0 1.6em; overflow: hidden; }
.mp-card-img .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.6s ease; }
.mp-card-img:hover .wp-block-image img { transform: scale(1.04); }
.mp-card-img > :last-child { padding-bottom: 34px; }
.mp-more a, a.mp-more { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }

/* Riquadro credenziali */
.mp-credbox { background: rgba(24, 50, 76, 0.5); border: 1px solid rgba(209, 186, 113, 0.15); padding: 18px 26px; }
.mp-credbox p { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; margin: 0; border-bottom: 1px solid rgba(209, 186, 113, 0.08); font-family: var(--mp-serif); font-size: 1.12rem; color: var(--mp-cream); line-height: 1.35; }
.mp-credbox p:last-child { border-bottom: 0; }
.mp-credbox p::before { content: "✦"; flex: 0 0 34px; height: 34px; border: 1px solid rgba(209, 186, 113, 0.3); color: var(--mp-gold); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.mp-credbox small { display: block; font-family: var(--mp-sans); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mp-gold); margin-bottom: 4px; }

/* Numeri */
.mp-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 36px 20px !important; margin-top: 2.4em; margin-bottom: 0 !important; text-align: center; }
.mp-stats .wp-block-column { flex-basis: auto !important; }
.mp-stat-num { font-family: var(--mp-serif); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--mp-gold); margin: 0 0 10px; white-space: nowrap; }
.mp-stat-num sup { font-size: 0.5em; vertical-align: super; }
.mp-stat-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mp-muted); line-height: 1.5; margin: 0; }

/* Ruoli con foto */
.mp-roles { gap: 2px !important; margin-top: 2.6em; }
.mp-role { position: relative; overflow: hidden; min-height: 320px; }
.mp-role .wp-block-image { margin: 0; position: absolute; inset: 0; }
.mp-role .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mp-role:hover .wp-block-image img { transform: scale(1.05); }
.mp-role::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 24, 37, 0.95) 8%, rgba(10, 24, 37, 0.25) 70%); pointer-events: none; }
.mp-role > :not(.wp-block-image) { position: relative; z-index: 2; padding: 0 26px; }
.mp-role > h3 { margin-top: 190px; margin-bottom: 0.3em; }
.mp-role > p:last-child { padding-bottom: 26px; color: #b8c3d1; font-size: 0.95rem; }

/* Fasi del metodo */
.mp-steps { gap: 2px !important; margin-top: 2.6em; }
.mp-step { border: 1px solid rgba(209, 186, 113, 0.1); padding: 34px 28px; background: rgba(10, 24, 37, 0.35); }

/* Clienti */
.mp-clients { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.6em !important; background: rgba(209, 186, 113, 0.12); border: 1px solid rgba(209, 186, 113, 0.12); }
.mp-clients span { background: var(--mp-navy-dark); padding: 24px 10px; text-align: center; font-family: var(--mp-serif); font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(248, 245, 238, 0.7); transition: color 0.25s; }
.mp-clients span:hover { color: var(--mp-gold); }

/* Libri */
.mp-books { gap: 2px !important; margin-top: 2.6em; }
.mp-book { background: rgba(24, 50, 76, 0.45); border: 1px solid rgba(209, 186, 113, 0.1); padding: 28px; }
.mp-book .wp-block-image { margin: 0 0 1.4em; }
.mp-book .wp-block-image img { width: 130px; height: auto; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7); }
.mp-book h3 { font-size: 1.45rem; margin-bottom: 0.2em; }
.mp-sub { font-family: var(--mp-serif); font-style: italic; color: var(--mp-gold); font-size: 1.08rem; line-height: 1.35; }
.mp-book p { font-size: 0.95rem; color: var(--mp-muted); }
.mp-book p.mp-sub { color: var(--mp-gold); }

/* Stampa */
.mp-press { gap: 2px !important; margin-top: 2.6em; }
.mp-press-item { background: rgba(24, 50, 76, 0.45); border: 1px solid rgba(209, 186, 113, 0.1); padding: 0 0 30px; overflow: hidden; }
.mp-press-item > * { padding-left: 30px; padding-right: 30px; }
.mp-press-item .wp-block-image { padding: 0; margin: 0 0 1.4em; }
.mp-press-item .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.mp-press-item h3 { font-size: 2rem; margin-bottom: 0.1em; }

/* Citazioni e recensioni */
.mp-quote { border: 0 !important; padding: 0 !important; margin: 0; }
.mp-quote p { font-family: var(--mp-serif); font-weight: 300; font-style: italic; font-size: 1.8rem; line-height: 1.35; color: var(--mp-cream); }
.mp-quote cite { font-family: var(--mp-sans); font-style: normal; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mp-gold); }
.mp-testimonials .mp-card p:first-child { font-family: var(--mp-serif); font-size: 1.2rem; line-height: 1.5; color: var(--mp-cream-dim); font-style: italic; }
.mp-testimonials .mp-card p:first-child::before { content: "“"; display: block; font-size: 3.2rem; line-height: 0.6; color: var(--mp-gold); margin-bottom: 10px; font-style: normal; }
.mp-author { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mp-gold); margin-top: 1.4em; line-height: 1.5; }
.mp-author strong { color: var(--mp-cream); display: block; font-weight: 500; }

/* Galleria */
.mp-gallery { gap: 2px !important; margin-top: 2.6em; }
.mp-gallery .wp-block-image { margin: 0 !important; }
.mp-gallery .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(25%); transition: filter 0.4s; }
.mp-gallery .wp-block-image:hover img { filter: none; }

/* Liste */
.mp-checklist { list-style: none; padding: 0; margin-left: 0; }
.mp-checklist li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(209, 186, 113, 0.08); }
.mp-checklist li::before { content: "✦"; position: absolute; left: 0; top: 10px; color: var(--mp-gold); font-size: 0.8rem; }

/* Ultimi articoli */
.mp-posts.wp-block-latest-posts { margin-top: 2.6em; padding: 0; }
.mp-posts.wp-block-latest-posts.is-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.mp-posts.wp-block-latest-posts.is-grid li { margin: 0; width: auto; background: rgba(24, 50, 76, 0.45); border: 1px solid rgba(209, 186, 113, 0.1); padding-bottom: 26px; overflow: hidden; }
.mp-posts .wp-block-latest-posts__featured-image { margin: 0 0 18px; overflow: hidden; }
.mp-posts .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.6s; }
.mp-posts li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.04); }
.mp-posts .wp-block-latest-posts__post-title { display: block; padding: 0 24px; font-family: var(--mp-serif); font-size: 1.35rem; font-weight: 400; line-height: 1.25; color: var(--mp-cream); }
.mp-posts .wp-block-latest-posts__post-title:hover { color: var(--mp-gold); }
.mp-posts .wp-block-latest-posts__post-date, .mp-posts .wp-block-latest-posts__post-excerpt { padding: 0 24px; }
.mp-posts .wp-block-latest-posts__post-date { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mp-gold); margin-top: 10px; }
.mp-posts .wp-block-latest-posts__post-excerpt { font-size: 0.93rem; color: var(--mp-muted); margin-top: 8px; }

/* Invito finale */
.mp-cta { background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-deep) 100%); text-align: center; border-top: 1px solid var(--mp-line); overflow: hidden; }
.mp-cta::before { content: ""; position: absolute; left: 50%; top: -260px; width: 640px; height: 640px; margin-left: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(209, 186, 113, 0.09) 0%, transparent 70%); pointer-events: none; }
.mp-cta .mp-lead { margin-left: auto !important; margin-right: auto !important; }
.mp-cta .wp-block-buttons { justify-content: center; }
.mp-cta .mp-eyebrow::after { margin-left: auto; margin-right: auto; }

/* Contatti */
.mp-contact-info p { margin-bottom: 1.4em; }
.mp-contact-info small { display: block; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mp-gold); margin-bottom: 2px; }
.mp-contact-info a { color: var(--mp-cream); }
.mp-contact-info a:hover { color: var(--mp-gold); }
.mp-form { background: var(--mp-cream); padding: 10px; }
.mp-form iframe { display: block; min-height: 708px; }

/* ---------- Articoli ---------- */

.single .inside-article, .blog .inside-article, .archive .inside-article, .search .inside-article { padding: 34px var(--mp-gutter); }
.single .entry-header { max-width: 760px; margin: 0 auto 1.6em; text-align: center; }
.single .entry-title { font-size: 2.4rem; }
.entry-meta { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mp-gold); }
.entry-meta a { color: var(--mp-gold); }
.single .featured-image { max-width: 1000px; margin: 0 auto 2.4em !important; }
.single .featured-image img, .post-image img { border: 1px solid var(--mp-line); }
.single .entry-content { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 1.07rem; color: var(--mp-cream-dim); }
.single .entry-content h2 { font-size: 2rem; margin-top: 1.6em; }
.single .entry-content h3 { font-size: 1.5rem; margin-top: 1.4em; }
.single .entry-content a { text-decoration: underline; text-decoration-color: rgba(209, 186, 113, 0.4); text-underline-offset: 3px; }
.entry-content img { height: auto; }
.entry-content blockquote { border-left: 2px solid var(--mp-gold); padding-left: 22px; font-family: var(--mp-serif); font-style: italic; font-size: 1.3rem; color: var(--mp-cream); }
.entry-content pre { background: var(--mp-deep); color: var(--mp-cream-dim); border: 1px solid var(--mp-line); }
.single footer.entry-meta, .post-navigation { max-width: 720px; margin-left: auto; margin-right: auto; }
.post-navigation a { color: var(--mp-cream-dim); }

.mp-post-cta { margin: 3.4em 0 1em; padding: 34px 30px; background: linear-gradient(135deg, var(--mp-navy) 0%, var(--mp-navy-mid) 100%); border: 1px solid var(--mp-line); text-align: center; }
.mp-post-cta h2 { font-size: 1.9rem; margin-top: 0; }
.mp-post-cta .mp-eyebrow::after { margin-left: auto; margin-right: auto; }
.single .entry-content .mp-post-cta a.mp-button { text-decoration: none; }

/* Archivio del blog */
.blog .site-main, .archive .site-main, .search .site-main { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 40px var(--mp-gutter) 60px; max-width: calc(var(--mp-wrap) + 2 * var(--mp-gutter)); margin: 0 auto; }
.blog .site-main > *, .archive .site-main > *, .search .site-main > * { margin: 0 !important; }
.blog .page-header, .archive .page-header, .blog .paging-navigation, .archive .paging-navigation, .mp-blog-header { grid-column: 1 / -1; }
.blog article, .archive article, .search article { background: rgba(24, 50, 76, 0.45) !important; border: 1px solid rgba(209, 186, 113, 0.1); overflow: hidden; }
.blog .inside-article, .archive .inside-article, .search .inside-article { padding: 0 0 26px; display: flex; flex-direction: column; }
.blog .post-image, .archive .post-image { order: -1; margin: 0 0 18px !important; overflow: hidden; }
.blog .post-image img, .archive .post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; transition: transform 0.6s; }
.blog article:hover .post-image img, .archive article:hover .post-image img { transform: scale(1.04); }
.blog .entry-header, .archive .entry-header, .blog .entry-summary, .archive .entry-summary, .blog footer.entry-meta, .archive footer.entry-meta { padding: 0 24px; }
.blog .entry-title, .archive .entry-title { font-size: 1.45rem; font-weight: 400; }
.blog .entry-title a, .archive .entry-title a { color: var(--mp-cream); }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--mp-gold); }
.blog .entry-summary, .archive .entry-summary { font-size: 0.93rem; color: var(--mp-muted); }
.mp-blog-header { padding: 20px 0 30px; }
.mp-blog-header .page-title { font-size: 2.8rem; margin-bottom: 0.3em; }
.archive .page-header { padding: 20px 0 30px; }
.paging-navigation a, .paging-navigation .current { color: var(--mp-gold); }

/* ---------- Piè di pagina ---------- */

.mp-footer { background: var(--mp-deep); color: var(--mp-muted); padding: 64px var(--mp-gutter) 30px; border-top: 1px solid var(--mp-line); font-size: 0.95rem; }
.mp-footer-inner { max-width: var(--mp-wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; }
.mp-footer a { color: var(--mp-cream-dim); }
.mp-footer a:hover { color: var(--mp-gold); }
.mp-footer-logo img { max-width: 210px; height: auto; }
.mp-footer-title { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mp-gold); margin-bottom: 14px; }
.mp-footer-icf img { max-width: 170px; height: auto; margin-top: 10px; background: #fff; padding: 8px 10px; }
.site-info { background: var(--mp-deep) !important; color: var(--mp-muted) !important; border-top: 1px solid rgba(209, 186, 113, 0.08); font-size: 0.72rem; letter-spacing: 0.08em; }
.site-info a { color: var(--mp-cream-dim) !important; }

/* ---------- Animazione d'ingresso leggera ---------- */

@media (prefers-reduced-motion: no-preference) {
	.mp-hero-cover .wp-block-cover__inner-container > * { animation: mp-up 0.9s ease both; }
	.mp-hero-cover .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: 0.12s; }
	.mp-hero-cover .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: 0.24s; }
	.mp-hero-cover .wp-block-cover__inner-container > *:nth-child(4) { animation-delay: 0.36s; }
	.mp-hero-cover .wp-block-cover__inner-container > *:nth-child(5) { animation-delay: 0.48s; }
}
@keyframes mp-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Schermi più larghi ---------- */

@media (min-width: 600px) {
	.mp-clients { grid-template-columns: repeat(3, 1fr); }
	.mp-posts.wp-block-latest-posts.is-grid, .blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr 1fr; }
	.mp-two-cols { columns: 2; column-gap: 40px; }
	.mp-two-cols li { break-inside: avoid; }
}

@media (min-width: 782px) {
	.admin-bar .site-header { top: 32px; }
	.mp-stats { grid-template-columns: repeat(4, 1fr); }
	.mp-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
	.mp-hero-cover.wp-block-cover { align-items: center; }
	.mp-hero-cover::after { background: linear-gradient(90deg, rgba(10, 24, 37, 0.97) 0%, rgba(10, 24, 37, 0.85) 38%, rgba(10, 24, 37, 0.2) 72%, rgba(10, 24, 37, 0.1) 100%); }
	.mp-hero-cover .wp-block-cover__inner-container > * { max-width: 640px; }
	.mp-role { min-height: 420px; }
	.mp-role > h3 { margin-top: 270px; }
}

@media (min-width: 960px) {
	:root { --mp-gutter: 48px; }
	h1, .page-title { font-size: 3.8rem; }
	h2 { font-size: 3.1rem; }
	.mp-section, .mp-band, .mp-cta { padding-top: 110px; padding-bottom: 110px; }
	.mp-hero { padding-top: 140px; padding-bottom: 110px; }
	.mp-hero h1 { font-size: 4rem; }
	.mp-hero-cover h1 { font-size: 4.9rem; }
	.mp-stat-num { font-size: 4rem; }
	.mp-clients { grid-template-columns: repeat(4, 1fr); }
	.mp-posts.wp-block-latest-posts.is-grid, .blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: repeat(3, 1fr); }
	.mp-quote p { font-size: 2.5rem; }
	.single .entry-title { font-size: 3.2rem; }
}

/* Niente margine extra sotto l'ultimo blocco di ogni sezione */
.mp-section > :last-child, .mp-band > :last-child, .mp-cta > :last-child, .mp-hero > :last-child,
.mp-card > :last-child, .wp-block-column > :last-child { margin-bottom: 0 !important; }
.wp-block-group__inner-container > :last-child { margin-bottom: 0 !important; }

/* Telefono: foto in alto, testo sotto, così il viso resta libero */
@media (max-width: 781px) {
	.mp-hero-cover.wp-block-cover { padding-top: 330px; min-height: 0 !important; align-items: flex-start; }
	.mp-hero-cover .wp-block-cover__image-background { height: 430px !important; bottom: auto !important; object-position: 80% 12% !important; }
	.mp-hero-cover::after { background: linear-gradient(180deg, rgba(10, 24, 37, 0.15) 0, rgba(10, 24, 37, 0.1) 180px, rgba(10, 24, 37, 1) 430px); }
	.mp-hero-cover.mp-hero-small.wp-block-cover { padding-top: 250px; min-height: 0 !important; }
	.mp-hero-small .wp-block-cover__image-background { height: 340px !important; }
	.mp-hero-small::after { background: linear-gradient(180deg, rgba(10, 24, 37, 0.2) 0, rgba(10, 24, 37, 0.15) 120px, rgba(10, 24, 37, 1) 340px) !important; }
}

/* Elenco dei corsi gratuiti (plugin MP Corsi) */
.mp-corsi-grid { display: grid !important; grid-template-columns: 1fr; gap: 2px !important; }
.mp-corsi-grid > .wp-block-column { flex-basis: auto !important; }
@media (min-width: 600px) { .mp-corsi-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mp-corsi-grid { grid-template-columns: repeat(3, 1fr); } }

/* WordPress limita i blocchi delle pagine alla "larghezza contenuto" (700px): le sezioni del sito vanno invece a tutta larghezza,
   con il contenuto interno largo fino a --mp-wrap. */
.entry-content.is-layout-constrained > .wp-block-cover,
.entry-content.is-layout-constrained > .wp-block-group {
	max-width: none !important;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.entry-content .mp-section > *, .entry-content .mp-band > *, .entry-content .mp-cta > *, .entry-content .mp-hero > *,
.entry-content .mp-section > .wp-block-group__inner-container > *,
.entry-content .mp-band > .wp-block-group__inner-container > *,
.entry-content .mp-cta > .wp-block-group__inner-container > *,
.entry-content .mp-hero > .wp-block-group__inner-container > * {
	max-width: var(--mp-wrap) !important;
}
.entry-content .mp-narrow > *, .entry-content .mp-narrow > .wp-block-group__inner-container > * { max-width: 780px !important; }
.entry-content .mp-hero-cover .wp-block-cover__inner-container { max-width: var(--mp-wrap) !important; }
.entry-content .mp-card > *, .entry-content .mp-credbox > *, .entry-content .wp-block-column > * { max-width: none !important; }
.full-width-content .entry-content.has-global-padding { padding-left: 0 !important; padding-right: 0 !important; }

/* Libri: griglia che regge anche cinque titoli */
.mp-books { display: grid !important; grid-template-columns: 1fr; }
.mp-books > .wp-block-column { flex-basis: auto !important; }
@media (min-width: 600px) { .mp-books { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .mp-books { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .mp-books { grid-template-columns: repeat(5, 1fr); } .mp-book { padding: 24px 20px; } .mp-book h3 { font-size: 1.3rem; } }

/* Video recensioni */
.mp-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2.6em; }
.mp-video { position: relative; display: block; padding: 0; border: 1px solid rgba(209, 186, 113, 0.12); background: var(--mp-deep); cursor: pointer; overflow: hidden; aspect-ratio: 4 / 5; }
.mp-video img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85); transition: transform 0.6s ease, filter 0.4s; }
.mp-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 24, 37, 0.92) 0%, rgba(10, 24, 37, 0.1) 55%); }
.mp-video:hover img, .mp-video:focus-visible img { transform: scale(1.04); filter: none; }
.mp-video-play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border: 1px solid var(--mp-gold); border-radius: 50%; background: rgba(15, 31, 48, 0.55); }
.mp-video-play::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--mp-gold); }
.mp-video:hover .mp-video-play { background: var(--mp-gold); }
.mp-video:hover .mp-video-play::before { border-left-color: var(--mp-navy-dark); }
.mp-video-nome { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; text-align: left; font-family: var(--mp-serif); font-size: 1.15rem; line-height: 1.2; color: var(--mp-cream); }
.mp-video-nome small { display: block; margin-top: 4px; font-family: var(--mp-sans); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--mp-gold); }
.mp-video-extra { display: none; }
.mp-video-tutte .mp-video-extra { display: block; }
.mp-video-altre { justify-content: center; }
.mp-video-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 12, 20, 0.92); }
.mp-video-modal[hidden] { display: none; }
.mp-video-box { position: relative; width: min(960px, 100%); }
.mp-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.mp-video-frame.verticale { width: min(420px, 100%, calc((100vh - 120px) * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; }
.mp-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-video-chiudi { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 1px solid var(--mp-gold); background: transparent; color: var(--mp-gold); font-size: 26px; line-height: 1; cursor: pointer; }
@media (min-width: 782px) { .mp-video-grid { grid-template-columns: repeat(4, 1fr); } }
