/*
Theme Name: SLBM – Studio legale Bartolazzi Menchetti
Template: twentytwentyfive
Description: Tema figlio di Twenty Twenty-Five con i colori, i caratteri e l'intestazione della carta intestata dello Studio.
Version: 1.9.3
Requires at least: 6.5
Text Domain: slbm
License: GNU General Public License v2 or later
*/

/* Fascia d'apertura con BM in filigrana */
.slbm-hero {
	position: relative;
	overflow: hidden;
	background-color: #f3f7fb;
	background-image: url("assets/img/bm-filigrana.svg"), linear-gradient(135deg, #f3f7fb 0%, #e6f0f9 100%);
	background-repeat: no-repeat, no-repeat;
	background-position: right -2vw bottom -7vw, 0 0;
	background-size: min(46vw, 640px) auto, cover;
	border-bottom: 1px solid #dde5ee;
	padding: clamp(3.5rem, 8vw, 6.5rem) var(--wp--style--root--padding-right, 1.5rem) !important;
	margin-top: 0 !important;
}
.slbm-kicker {
	display: flex; align-items: center; gap: .8rem;
	color: #3988c2; font-size: .78rem !important; letter-spacing: .2em; text-transform: uppercase;
}
.slbm-kicker::before { content: ""; width: 36px; height: 1px; background: #3988c2; }
.slbm-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.2; margin-top: .6rem; }
.slbm-hero h1 em { color: #3988c2; }
.slbm-lead { color: #6b7684; font-size: 1.1rem; max-width: 40rem; }

/* Titoli di sezione con filetto */
.slbm-section { padding-top: clamp(3rem, 6vw, 4.5rem) !important; }
.slbm-section-title {
	display: flex; align-items: center; gap: 1rem;
	color: #3988c2 !important; font-size: 1rem !important;
	letter-spacing: .16em; text-transform: uppercase;
	margin-bottom: 1.8rem !important;
}
.slbm-section-title::after { content: ""; flex: 1; height: 1px; background: #dde5ee; }

/* Schede */
.slbm-card {
	position: relative;
	border: 1px solid #dde5ee; border-radius: 4px;
	padding: 1.8rem 1.7rem 1.5rem !important;
	background: #fff;
	transition: box-shadow .25s ease, transform .25s ease;
}
.slbm-card::before { content: ""; position: absolute; top: -1px; left: 1.7rem; width: 42px; height: 2px; background: #0085cc; }
.slbm-card:hover { box-shadow: 0 10px 30px rgba(57,136,194,.10); transform: translateY(-2px); }
.slbm-card h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.slbm-card p { font-size: .97rem; }
.slbm-role { color: #0085cc; font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem !important; }
.slbm-more a { font-weight: 600; font-size: .92rem; }

/* Fascia finale */
.slbm-cta { background: #f3f7fb; border-top: 1px solid #dde5ee; padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem !important; margin-top: clamp(3rem, 6vw, 4.5rem) !important; text-align: center; }
.slbm-cta h2 { color: #26303c !important; }

/* Profili */
.slbm-profile-sub { color: #3988c2; font-size: 1.05rem; margin-top: -.5rem !important; }
.slbm-note { border-left: 2px solid #869fbb; padding-left: 1.2rem; color: #6b7684; }
.slbm-card p { overflow-wrap: anywhere; }

/* Notizie */
.slbm-news { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }
.slbm-post { padding: 1.8rem 0 !important; border-bottom: 1px solid #dde5ee; }
.slbm-post h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: .3rem 0 .6rem !important; }
.slbm-post h2 a, .slbm-card h3 a { color: #26303c; }
.slbm-post h2 a:hover, .slbm-card h3 a:hover { color: #3988c2; text-decoration: none; }
.slbm-meta { gap: .4rem 1rem; color: #6b7684; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.slbm-meta a { color: #0085cc; }
.wp-block-post-excerpt__more-link { font-weight: 600; font-size: .92rem; }
.slbm-card .wp-block-post-title { font-size: 1.3rem; }

/* Mappa a due clic */
.slbm-map {
	margin-top: 1.2rem; min-height: 300px; border: 1px solid #dde5ee; border-radius: 4px;
	background: url("assets/img/bm-filigrana.svg") no-repeat right -30px bottom -40px / 260px auto, #f3f7fb;
	display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
	padding: 1.5rem; overflow: hidden;
}
.slbm-map p { margin: .35rem 0; }
.slbm-map-text { color: #6b7684; font-size: .85rem; max-width: 26rem; }
.slbm-map-alt { font-size: .85rem; }
.slbm-map-load {
	font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
	background: #0085cc; color: #fff; border: 0; border-radius: 3px; padding: .65rem 1.3rem;
}
.slbm-map-load:hover { background: #3988c2; }
.slbm-map.is-loaded { padding: 0; background: none; }
.slbm-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Social e note legali */
.slbm-social { gap: 1.1rem !important; margin-top: 1.4rem !important; }
.slbm-social .wp-social-link { color: #0085cc !important; }
.slbm-social .wp-social-link:hover { color: #3988c2 !important; }
.slbm-social.wp-block-social-links .wp-social-link svg { width: 1.35em; height: 1.35em; }
.slbm-legal { font-size: .78rem !important; margin-top: .8rem !important; }
.slbm-legal a { color: #6b7684; }
/* Modulo Contact Form 7 */
.wpcf7 label { display: block; font-size: .92rem; color: #26303c; margin-bottom: .9rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea {
	width: 100%; font: inherit; padding: .65rem .8rem; margin-top: .3rem;
	border: 1px solid #c9d8e8; border-radius: 3px; background: #fff;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid #0085cc33; border-color: #0085cc; }
.wpcf7 textarea { min-height: 9rem; }
.wpcf7 .wpcf7-acceptance { font-size: .88rem; color: #6b7684; }
.wpcf7 input[type=submit] {
	font: inherit; font-weight: 600; cursor: pointer; background: #0085cc; color: #fff;
	border: 0; border-radius: 3px; padding: .75rem 1.6rem;
}
.wpcf7 input[type=submit]:hover { background: #3988c2; }

.slbm-section .wp-block-list li { margin-bottom: .5rem; }

@media (max-width: 600px) { .slbm-firma span { display: none !important; } }

/* Articoli: titoli interni come quelli delle pagine */
.single-post .wp-block-post-title { font-size: clamp(1.9rem, 4vw, 2.6rem) !important; line-height: 1.2; }
.single-post .wp-block-post-content h2 {
	display: flex; align-items: center; gap: 1rem;
	font-size: 1rem !important; line-height: 1.4;
	letter-spacing: .16em; text-transform: uppercase;
	color: #3988c2 !important;
	margin-top: 2.6rem !important; margin-bottom: 1rem !important;
}
.single-post .wp-block-post-content h2::after { content: ""; flex: 1; height: 1px; background: #dde5ee; min-width: 2rem; }
.single-post .wp-block-post-content h3 { font-size: 1.3rem !important; color: #3988c2 !important; margin-top: 2rem !important; }
