/* Rota Digital - Faixa de Marcas */
.rm-section {
	--rm-accent: #111;
	--rm-card-h: 92px;
	background: #fff;
	padding: 44px 0 20px;
	overflow: hidden;
}
.rm-section.rm-pending { display: none; }

.rm-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.rm-head { text-align: center; margin-bottom: 4px; }
.rm-title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: #111;
	line-height: 1.2;
}
.rm-sub { margin: 8px 0 0; color: #666; font-size: .95rem; }

/* Faixa que desliza */
.rm-marquee {
	overflow: hidden;
	/* espaço em cima/baixo para o cartão subir e a sombra aparecer */
	padding: 34px 0 56px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rm-track {
	display: flex;
	width: max-content;
	animation: rm-scroll var(--rm-dur, 40s) linear infinite;
	will-change: transform;
}
.rm-group { display: flex; gap: 22px; padding-right: 22px; }

/* Pausa quando o mouse está na faixa */
.rm-marquee:hover .rm-track,
.rm-marquee:focus-within .rm-track { animation-play-state: paused; }

@keyframes rm-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Cartão da marca: do tamanho do próprio logo */
.rm-card {
	position: relative;
	display: block;
	flex: 0 0 auto;
	height: var(--rm-card-h);
	border-radius: 16px;
	background: transparent;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
	overflow: hidden;
	text-decoration: none;
	color: #111;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
/* Marca sem logo: mostra o nome dentro de um cartão branco */
.rm-card--text { background: #fff; border: 1px solid #ececec; min-width: 150px; }
.rm-card:hover,
.rm-card:focus-visible {
	transform: translateY(-12px) scale(1.12);
	box-shadow: 0 20px 34px rgba(0, 0, 0, .22);
	z-index: 3;
	outline: none;
}

/* Frente: logo ou nome da marca */
.rm-front {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	transition: opacity .3s ease, transform .35s ease;
}
.rm-logo { height: 100%; width: auto; max-width: none; display: block; }
.rm-word {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #1a1a1a;
	padding: 0 22px;
	text-align: center;
	line-height: 1.1;
}

/* Celular */
@media (max-width: 600px) {
	.rm-section { --rm-card-h: 70px; padding-top: 32px; }
	.rm-title { font-size: 1.3rem; }
	.rm-word { font-size: 1.2rem; }
	.rm-group { gap: 16px; padding-right: 16px; }
}

/* Quem prefere menos movimento: sem animação, rola com o dedo */
@media (prefers-reduced-motion: reduce) {
	.rm-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.rm-track { animation: none; }
	.rm-group[aria-hidden="true"] { display: none; }
}
