/* LEGARYS Home — refinamento do Hero. Escopo: somente página inicial. */

.home .wp-block-cover.alignfull:first-of-type .wp-block-cover__background {
	opacity: .76 !important;
}

.home .wp-block-cover.alignfull:first-of-type .wp-block-cover__inner-container {
	width: min(100% - 32px, 920px);
	margin-inline: auto;
}

.home .wp-block-cover.alignfull:first-of-type h1 {
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 15, 45, .22);
}

.home .wp-block-cover.alignfull:first-of-type p {
	text-shadow: 0 1px 12px rgba(0, 15, 45, .22);
}

@media (max-width: 600px) {
	.home .wp-block-cover.alignfull:first-of-type {
		min-height: 88svh !important;
	}

	.home .wp-block-cover.alignfull:first-of-type .wp-block-cover__inner-container {
		box-sizing: border-box;
		width: calc(100% - 40px) !important;
		max-width: 390px !important;
		margin-inline: auto !important;
		padding-inline: 0 !important;
		overflow: visible;
	}

	.home .wp-block-cover.alignfull:first-of-type p:first-child {
		font-size: 13px !important;
		font-weight: 700 !important;
		line-height: 1.45 !important;
		letter-spacing: .12em !important;
		margin-bottom: 20px !important;
	}

	.home .wp-block-cover.alignfull:first-of-type h1 {
		font-size: clamp(23px, 6.35vw, 29px) !important;
		font-weight: 700 !important;
		line-height: 1.2 !important;
		letter-spacing: -.015em !important;
		margin-bottom: 26px !important;
		max-width: 100% !important;
		white-space: normal !important;
		overflow-wrap: anywhere !important;
		word-break: normal;
	}

	.home .wp-block-cover.alignfull:first-of-type h1 br {
		display: block;
	}

	.home .wp-block-cover.alignfull:first-of-type h1 {
		font-size: clamp(21px, 5.55vw, 26px) !important;
		line-height: 1.16 !important;
		margin-bottom: 22px !important;
	}

	.home .wp-block-cover.alignfull:first-of-type h1 + p {
		font-size: 18px !important;
		line-height: 1.48 !important;
		margin-bottom: 30px !important;
	}

	.home .wp-block-cover.alignfull:first-of-type h1 br {
		display: block;
	}

	/* Home: leitura progressiva das secoes */
	.home .entry-content > .wp-block-group.alignfull {
		box-sizing: border-box;
	}

	.home .entry-content > .wp-block-group.alignfull > * {
		max-width: 1120px;
	}

	.home .entry-content > .wp-block-group.alignfull h2 {
		text-wrap: balance;
	}

	.home .entry-content > .wp-block-group.alignfull .wp-block-columns {
		gap: 20px;
	}

	.home .entry-content > .wp-block-group.alignfull .wp-block-column > .wp-block-group {
		height: 100%;
		box-sizing: border-box;
	}

	@media (max-width: 781px) {
		.home .entry-content > .wp-block-group.alignfull {
			padding-left: 20px !important;
			padding-right: 20px !important;
		}

		.home .entry-content > .wp-block-group.alignfull .wp-block-columns {
			gap: 14px;
		}
	}

	.home .legarys-solutions-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
		margin-top: 30px;
	}

	.home .legarys-solution-family {
		background: #F6F8FB !important;
		padding: 30px 28px;
		border-top: 3px solid #031B4E;
		border-radius: 10px;
	}
	.home .legarys-solutions-grid,
	.home .legarys-solutions-grid * { box-sizing:border-box; }
	.home .legarys-solutions-grid { color:#46556A; }
	/* Contraste institucional: fundos claros */
	.home .legarys-solution-family .legarys-solution-kicker,
	.home .legarys-solution-family h3 { color:#0B3478 !important; }
	.home .legarys-solution-family > p:not(.legarys-solution-kicker) { color:#2F3B4D !important; }


	.home .legarys-solution-kicker {
		color: #5F6B7A;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .12em;
		margin: 0 0 24px;
	}

	.home .legarys-solution-family h3 {
		color: #031B4E;
		font-size: 21px;
		line-height: 1.2;
		margin: 22px 0 7px;
	}

	.home .legarys-solution-family h3:first-of-type { margin-top: 0; }
	.home .legarys-solution-family > p:not(.legarys-solution-kicker) { color:#46556A; line-height:1.55; margin-top:0; }
	.home .legarys-specialists-note { border-top:1px solid #D7E0EF; padding-top:20px; margin-top:24px !important; }
	.home .legarys-solutions-cta { text-align:center; max-width:760px; margin:38px auto 0; color:#46556A; line-height:1.6; }
	.home .legarys-solutions-cta a { color:#031B4E; font-weight:700; }

	.home .legarys-audiences {
		background:#FFFFFF !important;
		color:#46556A !important;
		margin: 0 calc(50% - 50vw) 48px;
		padding: 72px max(24px, calc((100vw - 1120px) / 2));
	}
	.home .legarys-audiences, .home .legarys-audiences * { box-sizing:border-box; }
	.home .legarys-audiences p { color:#46556A !important; }
	/* Para quem fazemos: painel azul, portanto todo o conteudo deve permanecer claro */
	.home .legarys-audiences {
		background:#062A66 !important;
		color:#FFFFFF !important;
		border-radius:18px;
	}
	.home .legarys-audiences .legarys-section-kicker { color:#D7E4FF !important; }
	.home .legarys-audiences h2, .home .legarys-audiences h3 { color:#FFFFFF !important; }
	.home .legarys-audiences p { color:#F2F6FF !important; }
	.home .legarys-audiences-list { border-top-color:rgba(255,255,255,.24) !important; }
	.home .legarys-audiences-list article { border-bottom-color:rgba(255,255,255,.24) !important; }
	.home .legarys-audiences-list article > span { color:#BFD2F5 !important; }
	.home .legarys-audiences a { color:#FFFFFF !important; }

	.home .legarys-section-kicker { color:#5F6B7A; font-size:13px; font-weight:700; letter-spacing:.14em; margin:0 0 12px; }
	.home .legarys-audiences > h2 { color:#031B4E; font-size:clamp(28px,4vw,46px); line-height:1.08; letter-spacing:-.025em; max-width:820px; margin:0 0 16px; }
	.home .legarys-audiences-intro { max-width:820px; font-size:18px; line-height:1.6; margin-bottom:36px; }
	.home .legarys-audiences-list { border-top:1px solid #D7E0EF; }
	.home .legarys-audiences-list article { display:grid; grid-template-columns:56px 1fr; gap:18px; padding:24px 0; border-bottom:1px solid #D7E0EF; }
	.home .legarys-audiences-list article > span { color:#5F6B7A; font-size:13px; font-weight:700; letter-spacing:.1em; padding-top:5px; }
	.home .legarys-audiences-list h3 { color:#031B4E; font-size:22px; margin:0 0 6px; }
	.home .legarys-audiences-list p { margin:0; line-height:1.55; }
	.home .legarys-audiences-cta { max-width:760px; margin:36px auto 0; text-align:center; line-height:1.6; }
	.home .legarys-audiences-cta a { color:#031B4E; font-weight:700; }
	.home .legarys-showcase-intro,
	.home .legarys-portfolio-intro { color:#46556A !important; font-size:18px; line-height:1.6; max-width:760px; margin:10px 0 30px; }
	.home .legarys-final-cta-text { color:#E8EEF8 !important; font-size:17px; line-height:1.6; max-width:720px; margin:18px 0 0; }
	@media (max-width:781px) {
		.home .legarys-final-cta-text { font-size:16px; line-height:1.55; margin-top:16px; }
	}

	@media (max-width: 781px) {
		.home .legarys-solutions-grid { grid-template-columns: 1fr; gap:16px; }
		.home .legarys-solution-family { display:block; width:100%; background:#F6F8FB !important; }
		.home .legarys-solution-kicker { margin-bottom:20px; }
		.home .legarys-solution-family h3 { margin-top:20px; margin-bottom:6px; }
		.home .legarys-solution-family > p:not(.legarys-solution-kicker) { margin-bottom:14px; }
		.home .legarys-solutions-cta { padding:8px 4px 0; }
		.home .legarys-solutions-cta p:last-child a { display:block; margin:10px 0; }
		.home .legarys-audiences { padding:56px 20px; margin-bottom:32px; }
		.home .legarys-audiences-list article { grid-template-columns:38px 1fr; gap:12px; padding:21px 0; }
		.home .legarys-audiences-list h3 { font-size:20px; }
		.home .legarys-audiences-intro { font-size:17px; }
	}

	@media (max-width: 600px) {
		.home .legarys-solutions-grid { display:grid !important; grid-template-columns:1fr !important; gap:16px !important; }
		.home .legarys-solution-family { display:block !important; width:100% !important; padding:24px 22px !important; background:#F6F8FB !important; border-top:3px solid #031B4E !important; border-radius:8px !important; }
		.home .legarys-solution-family h3 { color:#031B4E !important; font-size:20px; line-height:1.25; }
		.home .legarys-solution-family p { color:#46556A !important; font-size:16px !important; line-height:1.5 !important; }
		.home .legarys-solution-kicker { color:#5F6B7A !important; font-size:12px !important; }
		.home .legarys-audiences { display:block !important; width:auto !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; padding:42px 24px !important; background:#062A66 !important; color:#FFFFFF !important; border-radius:18px !important; }
		.home .legarys-audiences h2 { color:#FFFFFF !important; font-size:30px !important; line-height:1.12 !important; }
		.home .legarys-audiences h3 { color:#FFFFFF !important; font-size:20px !important; }
		.home .legarys-audiences p { color:#F2F6FF !important; font-size:16px !important; line-height:1.5 !important; }
		.home .legarys-audiences .legarys-section-kicker { color:#D7E4FF !important; font-size:12px !important; }
		.home .legarys-audiences-list article { display:grid !important; grid-template-columns:34px minmax(0,1fr) !important; gap:10px !important; }
		.home .entry-content > .wp-block-group.alignfull h2 {
			font-size: clamp(27px, 8vw, 34px) !important;
			line-height: 1.12 !important;
		}

		.home .entry-content > .wp-block-group.alignfull .wp-block-column > .wp-block-group {
			padding: 24px 22px !important;
		}

		/* Home 390px: leitura, toque e empilhamento final */
		.home .wp-block-cover.alignfull:first-of-type .wp-block-buttons {
			width: 100%;
			flex-direction: column;
			align-items: stretch;
		}
		.home .wp-block-cover.alignfull:first-of-type .wp-block-button,
		.home .wp-block-cover.alignfull:first-of-type .wp-block-button__link {
			width: 100%;
			box-sizing: border-box;
		}
		.home .entry-content > .wp-block-group.alignfull {
			padding-left: 20px !important;
			padding-right: 20px !important;
		}
		.home .entry-content > .wp-block-group.alignfull > .wp-block-columns {
			flex-direction: column;
		}
		.home .entry-content > .wp-block-group.alignfull .wp-block-cover:not(:first-of-type) {
			min-height: 340px !important;
		}
		.home .legarys-showcase-intro,
		.home .legarys-portfolio-intro {
			font-size: 16px !important;
			line-height: 1.55 !important;
			margin-bottom: 24px !important;
		}
		.home .legarys-audiences {
			padding: 36px 20px !important;
		}
		.home .legarys-audiences h2 {
			font-size: 28px !important;
		}
		.home .entry-content > .wp-block-group.alignfull:last-of-type .wp-block-buttons,
		.home .entry-content > .wp-block-group.alignfull:last-of-type .wp-block-button,
		.home .entry-content > .wp-block-group.alignfull:last-of-type .wp-block-button__link {
			width: 100%;
		}
		.home .entry-content > .wp-block-group.alignfull:last-of-type .wp-block-buttons {
			justify-content: stretch !important;
		}
	}

	.home .wp-block-cover.alignfull:first-of-type h1 + p {
		font-size: 19px !important;
		font-weight: 500 !important;
		line-height: 1.52 !important;
		letter-spacing: 0 !important;
		margin-bottom: 32px !important;
		max-width: 390px;
		margin-inline: auto;
	}

	.home .wp-block-cover.alignfull:first-of-type .wp-block-buttons {
		gap: 14px !important;
	}

	.home .wp-block-cover.alignfull:first-of-type .wp-block-button__link {
		min-height: 52px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 1.25;
	}
}

@media (min-width: 601px) and (max-width: 1024px) {
	.home .wp-block-cover.alignfull:first-of-type .wp-block-cover__inner-container {
		width: min(100% - 64px, 780px);
	}
	.home .entry-content > .wp-block-group.alignfull {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
	.home .entry-content > .wp-block-group.alignfull .wp-block-columns {
		gap: 18px;
	}
	.home .legarys-audiences {
		padding: 52px 36px !important;
	}
	.home .legarys-audiences > h2 {
		max-width: 720px;
	}
}

@media (min-width: 1025px) {
	.home .entry-content > .wp-block-group.alignfull > * {
		width: min(100%, 1120px);
		margin-left: auto;
		margin-right: auto;
	}
	.home .legarys-solutions-grid {
		align-items: stretch;
	}
	.home .legarys-solution-family {
		height: 100%;
	}
	.home .legarys-audiences-list article {
		align-items: start;
	}
}
