/*
 * Arquivo CSS para o banner de destaque da página inicial.
 * Contém estilos específicos para o brasão vertical.
 */

.cc-featured-banner .d-flex.flex-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100%;
}

/* Estilos globais para o brasão (Selo) */
.brasao-vertical {
    flex: 0 0 16;
    /* Proporção exata do desktop */
    width: 16.3% !important;
    height: auto !important;
    object-fit: contain !important;
    border-right: 0.25vw solid var(--color-semiwhite);
    /* Borda proporcional */
    border-radius: 0.75rem 0 0 0.75rem;
    background-color: var(--color-primary-700);
    /* Fallback se a classe não pegar */
}

/* Container do Banner Destaque */
.cc-featured-banner .d-flex.flex-grow-1 {
    flex: 1;
    min-width: 0;
}

.cc-featured-banner .cegovbr-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Imagem do Banner */
.cc-featured-banner img.w-100 {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 0.75rem 0.75rem 0 !important;
    display: block;
}

.cc-featured-banner .cegovbr-banner-link.d-block img.w-100 {
    border-radius: 0.75rem !important;
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 480px) {
    .brasao-vertical {

        border-right-width: 2px !important;
    }
}

/* Banner provisório exclusivo do topo do master. */
.cegovbr-top-app {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 27.782579rem);
	column-gap: 1.5rem;
	align-items: center;
	width: 100%;
	max-width: 67.25rem;
	min-height: 11.8125rem;
	margin-inline: auto;
	padding-inline: 7.0625rem;
	box-sizing: border-box;
	border-radius: 0.5rem;
	overflow: hidden;
	background: linear-gradient(180deg, #EEEEEE 0%, #D9F2EF 100%);
	color: #34495e;
}

.cegovbr-top-app__device {
	align-self: stretch;
	position: relative;
	min-width: 0;
	overflow: hidden;
}

.cegovbr-top-app__device img {
	position: absolute;
	width: 38rem;
	max-width: none;
	height: auto;
	left: -5rem;
	top: -2.5rem;
}

.cegovbr-top-app__content {
	position: relative;
	z-index: 1;
	min-width: 0;
	max-width: 27.782579rem;
}

.cegovbr-top-app .hero {
	margin: 0 0 0.65rem;
	color: #006557;
	font-family: 'Kanit', sans-serif;
	font-size: 1.875rem;
	font-style: normal;
	font-weight: 600;
	line-height: 103%;
	letter-spacing: 0;
}

.cegovbr-top-app .subtitulo {
	margin: 0 0 0.65rem;
	color: #465564;
	font-family: 'Kanit', sans-serif;
	font-size: 1rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

.cegovbr-top-app__stores {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cegovbr-top-app__store {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2rem;
	padding: 0.35rem 0.75rem;
	border: 0.0625rem solid #82949c;
	border-radius: 0.5rem;
	color: #34495e;
	background: transparent;
	text-decoration: none;
	line-height: 1;
	transition: border-color 0.2s ease-in-out, background 0.2s ease-in-out;
}

.cegovbr-top-app__store:hover,
.cegovbr-top-app__store:focus {
	border-color: #007465;
	color: #007465;
	background: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.cegovbr-top-app__store img,
.cegovbr-top-app__store svg {
	flex: 0 0 auto;
	width: 1.5rem;
	max-height: 1.75rem;
	color: currentColor;
}

.cegovbr-top-app__store>div>div {
	margin-bottom: 0.1rem;
	font-size: 0.5rem;
	line-height: 1;
}

.cegovbr-top-app__store strong {
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}


@media (max-width: 61.9375rem) {
    .cegovbr-top-app { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); padding-inline: 1.5rem; }
    .cegovbr-top-app__content { padding: 1rem; }
    .cegovbr-top-app__device {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    }
    .cegovbr-top-app .hero { font-size: 1.5rem; line-height: 1.15; }
    .cegovbr-top-app .subtitulo br { display: none; }
}

@media (max-width: 47.9375rem) {
    .cegovbr-top-app { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
    .cegovbr-top-app__device { order: 2; height: 4.5rem; -webkit-mask-image: none; mask-image: none; }
    .cegovbr-top-app__device img {
        width: 20rem;
        right: auto;
        left: 50%;
        top: -1rem;
        transform: translateX(-40%);
    }
    .cegovbr-top-app__content {
        min-width: 0;
        padding: 0.75rem 0.75rem 0.5rem;
        text-align: center;
    }
    .cegovbr-top-app .hero { font-size: 1.25rem; margin-bottom: 0.375rem; }
    .cegovbr-top-app .subtitulo { font-size: 0.875rem; line-height: 1.3; margin-bottom: 0.5rem; }
    .cegovbr-top-app__stores { justify-content: center; gap: 0.5rem; }
    .cegovbr-top-app__store { min-height: 2.75rem; box-sizing: border-box; }
}

/* Escala da composição desktop: referência de 67.25rem × 11.8125rem.
 * A unidade em acompanha a largura disponível, sem alterar o container do tema. */
#home-featured-banner:has(> .cegovbr-top-app) {
    container-type: inline-size;
}

@container (min-width: 48rem) {
    #home-featured-banner > .cegovbr-top-app {
        font-size: calc(100cqw / 67.25);
        grid-template-columns: 1fr 27.782579em;
        column-gap: 1.5em;
        max-width: none;
        min-height: 0;
        aspect-ratio: 1076 / 189;
        padding-inline: 7.0625em;
        border-radius: 0.5em;
    }
    #home-featured-banner .cegovbr-top-app__device {
        height: auto;
        order: 0;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }
    #home-featured-banner .cegovbr-top-app__device img {
        width: 40em;
        left: -5em;
        right: auto;
        top: -2.5em;
        transform: none;
    }
    #home-featured-banner .cegovbr-top-app__content {
        max-width: none;
        padding: 0;
        text-align: left;
    }
    #home-featured-banner .cegovbr-top-app .hero {
        font-size: 2.48625em;
        line-height: 1.03;
        margin-bottom: 0.25em;
    }
    #home-featured-banner .cegovbr-top-app .subtitulo {
        font-size: 1.243125em;
        line-height: 1.25;
        margin-bottom: 0.4em;
    }
    #home-featured-banner .cegovbr-top-app .subtitulo br { display: block !important; }
    #home-featured-banner .cegovbr-top-app__stores {
        gap: 1.5em;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    #home-featured-banner .cegovbr-top-app__store {
        box-sizing: border-box;
        width: 8.0625em;
        height: 2.4375em;
        min-height: 0;
        padding: 0.25em 0.375em;
        gap: 0.375em;
        border-width: 0.0625em;
        border-radius: 0.375em;
    }
    #home-featured-banner .cegovbr-top-app__store.app-store { width: 7.25em; }
    #home-featured-banner .cegovbr-top-app__store img,
    #home-featured-banner .cegovbr-top-app__store svg {
        width: 1.5em;
        height: 1.75em;
        max-height: 1.75em;
    }
    #home-featured-banner .cegovbr-top-app__store > div > div {
        font-size: 0.5em;
        margin-bottom: 0.2em;
    }
    #home-featured-banner .cegovbr-top-app__store strong { font-size: 0.9em; }
}
body.contrast-active .cegovbr-top-app { background: #000; }
body.contrast-active .cegovbr-top-app .hero,
body.contrast-active .cegovbr-top-app .subtitulo,
body.contrast-active .cegovbr-top-app__store { color: #fff; }
