/* Widgets opcionais (impostômetro, countdown, clima compacto, agro, revistas). */

.prestige-modules-home {
    margin: 1.25rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Home widgets are echoed after </header>, before <main>. */
body > .prestige-agro,
body > .prestige-countdown,
body > .prestige-clima-card,
body > .prestige-modules-home {
    margin-top: 1.25rem;
}

body > .prestige-agro + .prestige-modules-home,
body > .prestige-countdown + .prestige-modules-home,
body > .prestige-clima-card + .prestige-modules-home {
    margin-top: 0;
}

.prestige-impostometro {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-height: 0;
    height: auto;
}

.prestige-impostometro__nome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.12em;
    line-height: 1.05;
    min-width: 0;
}

.prestige-impostometro__marca {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    line-height: 1.1;
}

.prestige-impostometro__cidade {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.prestige-impostometro__grupos {
    display: flex;
    gap: 0.22rem;
    align-items: center;
    min-height: 0;
    height: auto;
}

.prestige-impostometro__grupo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    min-height: 0;
    height: auto;
}

.prestige-impostometro__digits {
    display: flex;
    gap: 2px;
    line-height: 1;
    min-height: 0;
    height: auto;
    align-items: stretch;
    justify-content: flex-end;
}

.prestige-impostometro__digit {
    position: relative;
    width: 1.05em;
    height: 1.35em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 2px;
    overflow: hidden;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.prestige-impostometro__digit::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.prestige-impostometro__label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
    opacity: 0.85;
    height: auto;
}

/* A regra antiga `.redes-nav div` esticava cada grupo; estes seletores vencem. */
.redes-nav .prestige-impostometro,
.redes-nav .prestige-impostometro div,
.prestige-faixa-util .prestige-impostometro,
.prestige-faixa-util .prestige-impostometro div {
    min-height: 0;
    height: auto;
}

.redes-nav .prestige-impostometro,
.prestige-faixa-util .prestige-impostometro {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    font-size: clamp(0.7rem, calc(var(--util-height, 53px) * 0.28), 1rem);
}

.prestige-faixa-util .prestige-impostometro__nome {
    flex-shrink: 0;
}

.prestige-faixa-util .prestige-impostometro__marca {
    font-size: 0.65em;
}

.prestige-faixa-util .prestige-impostometro__cidade {
    font-size: 0.85em;
}

.prestige-faixa-util .prestige-impostometro__label {
    font-size: 0.65em !important;
}

.redes-nav .prestige-impostometro__grupo,
.prestige-faixa-util .prestige-impostometro__grupo {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.redes-nav .prestige-impostometro__digits,
.prestige-faixa-util .prestige-impostometro__digits {
    justify-content: flex-end;
    align-items: stretch;
}

.prestige-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.7rem 1.1rem;
    margin: 0 0 0.75rem;
    background: #0b1f3a;
    color: #fff;
    border-radius: 10px;
    line-height: 1;
}

.prestige-countdown__titulo {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.prestige-countdown__blocos {
    display: flex;
    gap: 0.55rem;
}

.prestige-countdown__bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 2.6em;
}

.prestige-countdown__num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1em;
    padding: 0.28em 0.4em;
    background: #111;
    color: #fff;
    border-radius: 4px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    line-height: 1;
}

.prestige-countdown__lab {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
    line-height: 1;
}

.prestige-countdown.is-done .prestige-countdown__num {
    opacity: 0.5;
}

.prestige-faixa-util .prestige-countdown {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    justify-content: flex-start;
    gap: 0.4em;
    font-size: clamp(0.7rem, calc(var(--util-height, 53px) * 0.28), 1rem);
}

.prestige-faixa-util .prestige-countdown__num {
    background: #111;
    color: #fff;
    font-size: 1.1em;
}

.prestige-clima-card {
    background: #0b1f3a;
    color: #fff;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.prestige-clima-card__agora {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
}

.prestige-clima-card__agora > .bi {
    font-size: 2.4rem;
    line-height: 1;
}

.prestige-clima-card__agora-txt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-align: center;
}

.prestige-clima-card__cidade {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.prestige-clima-card__temp {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.prestige-clima-card__minmax {
    font-size: 0.8rem;
    opacity: 0.85;
}

.prestige-clima-card__dias {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0.7rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
}

.prestige-clima-card__dias li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    font-size: 0.75rem;
}

.prestige-clima-card__dia-nome {
    text-transform: capitalize;
    opacity: 0.85;
}

.prestige-clima-card__dias .bi {
    font-size: 1.1rem;
}

.prestige-faixa-util .prestige-clima-card {
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.75em;
    max-height: var(--util-height, 53px);
    overflow: hidden;
}

.prestige-faixa-util .prestige-clima-card__agora {
    gap: 0.4em;
}

.prestige-faixa-util .prestige-clima-card__agora > .bi {
    font-size: 1.25em;
}

.prestige-faixa-util .prestige-clima-card__temp {
    font-size: 1.1em;
}

.prestige-faixa-util .prestige-clima-card__dias {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 0.45em;
}

.prestige-faixa-util .prestige-clima-card__dias li {
    font-size: 0.7em;
}

.prestige-agro {
    display: flex;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 1.25rem auto 0.75rem;
    padding: 0.55rem 1.1rem;
    background: var(--cotacao-bg, #f3f4f6);
    border: 1px solid var(--cotacao-borda, #e5e7eb);
    border-radius: 8px;
    color: var(--cotacao-texto, inherit);
}

.prestige-modules-home .prestige-agro {
    margin-top: 0;
}

.prestige-agro__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem 1.5rem;
}

.prestige-agro__item {
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
    font-size: 0.92rem;
}

.prestige-agro__nome {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prestige-agro__val {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.prestige-agro__val small {
    opacity: 0.7;
    font-size: 0.75em;
    font-weight: 500;
}

.prestige-faixa-util .prestige-agro {
    margin: 0;
    padding: 0;
    width: auto;
    max-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    justify-content: flex-start;
    color: inherit;
    font-size: clamp(0.7rem, calc(var(--util-height, 53px) * 0.28), 1rem);
}

.prestige-faixa-util .prestige-agro__lista {
    justify-content: flex-start;
    gap: 0.4rem 1rem;
}

.flipbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    justify-content: start;
    margin: 1.5rem 0 3rem;
}

.flipbook-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.flipbook-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.flipbook-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.flipbook-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.flipbook-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.flipbook-card .btn {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.flipbook-card .btn:hover {
    background-color: #005177;
    color: #fff;
}
