/* Divulgação dos apps do Guia Itália +: faixa fixa no celular, botões das lojas e chamada da home. */

.gim-appbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1039;
    display: flex; align-items: center; gap: 4px;
    padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid #E6E8EC; background: #fff; color: #141A22;
    box-shadow: 0 -8px 24px rgba(20, 26, 34, .08);
    font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
    animation: gim-appbar-in .42s cubic-bezier(.16, 1, .3, 1) both;
}
.gim-appbar[hidden] { display: none !important; }
@keyframes gim-appbar-in { from { transform: translateY(100%); } to { transform: none; } }
.gim-appbar-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; color: inherit !important; text-decoration: none !important; }
.gim-appbar-main img { flex: none; width: 44px; height: 44px; border: 1px solid #E6E8EC; border-radius: 10px; background: #fff; }
.gim-appbar-copy { flex: 1; min-width: 0; display: block; line-height: 1.25; }
.gim-appbar-copy strong { display: block; overflow: hidden; color: #141A22; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gim-appbar-copy small { display: block; overflow: hidden; color: #5A6372; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.gim-appbar-get { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 6px; background: var(--gim-primary, #B42318); color: #fff; font-size: 14px; font-weight: 700; }
.gim-appbar-close { flex: none; display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; background: none; color: #5A6372; font-size: 16px; cursor: pointer; }
.gim-appbar :focus-visible { outline: 2px solid var(--gim-primary, #B42318) !important; outline-offset: 2px !important; border-radius: 6px; }
html.gim-appbar-store .mkp-pwa-install { display: none !important; }
html.gim-appbar-on .scrollup { bottom: calc(var(--gim-appbar-stack, 64px) + 12px) !important; }

.dark-mode .gim-appbar { border-top-color: #2E333C; background: #15171C; color: #E8EAED; box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); }
.dark-mode .gim-appbar-copy strong { color: #E8EAED; }
.dark-mode .gim-appbar-copy small, .dark-mode .gim-appbar-close { color: #A9B0BB; }
.dark-mode .gim-appbar-main img { border-color: #2E333C; }

/* Botões das lojas */
.gim-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.gim-store {
    display: inline-flex; align-items: center; gap: 11px; min-height: 54px; padding: 7px 18px 7px 15px;
    border-radius: 6px; background: #141A22; color: #fff !important; text-decoration: none !important;
    transition: transform .18s cubic-bezier(.16, 1, .3, 1), background-color .18s ease;
}
.gim-store:hover { background: #2A323D; transform: translateY(-2px); }
.gim-store:active { transform: translateY(0) scale(.98); }
.gim-store:focus-visible { outline: 2px solid var(--gim-primary, #B42318) !important; outline-offset: 2px !important; }
.gim-store i { width: 26px; font-size: 25px; text-align: center; }
.gim-store span { display: block; line-height: 1.12; text-align: left; }
.gim-store small { display: block; color: #C9CED6; font-size: 12px; font-weight: 500; }
.gim-store b { display: block; color: #fff; font-size: 18px; font-weight: 700; }
.gim-stores-soon { margin: 0; color: #5A6372; font-size: 15px; }
.dark-mode .gim-store { background: #E8EAED; color: #141A22 !important; }
.dark-mode .gim-store:hover { background: #fff; }
.dark-mode .gim-store small { color: #4B5563; }
.dark-mode .gim-store b { color: #141A22; }
.dark-mode .gim-stores-soon { color: #A9B0BB; }

/* Chamada da home */
.gim-appcta {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 32px;
    min-height: 400px; overflow: hidden; padding: 44px 0 0 44px;
    border: 1px solid #E6E8EC; border-radius: 6px; background: #F7F8FA;
}
.gim-appcta-copy { padding-bottom: 44px; }
.gim-appcta h2 { margin: 0; color: #141A22; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.gim-appcta-copy > p { max-width: 54ch; margin: 10px 0 0; color: #4B5563; font-size: 17px; line-height: 1.5; }
.gim-appcta ul { display: grid; gap: 9px; margin: 20px 0 24px; padding: 0; list-style: none; }
.gim-appcta li { display: flex; align-items: center; gap: 10px; color: #141A22; font-size: 16px; font-weight: 600; line-height: 1.35; }
.gim-appcta li i { flex: none; width: 20px; color: var(--gim-primary, #B42318); font-size: 15px; text-align: center; }
.gim-appcta-more { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 8px; color: #141A22 !important; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.gim-appcta-more:hover { color: var(--gim-primary, #B42318) !important; }
.gim-appcta-more i { font-size: 12px; transition: transform .18s ease; }
.gim-appcta-more:hover i { transform: translateX(3px); }
.gim-appcta-phones { position: relative; min-height: 340px; }
.gim-appcta-phone { position: absolute; bottom: -150px; width: 214px; padding: 6px; border-radius: 34px; background: #141A22; box-shadow: 0 18px 40px rgba(20, 26, 34, .2); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.gim-appcta-phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.gim-appcta-phone.is-back { right: 36px; bottom: -190px; transform: rotate(6deg); }
.gim-appcta-phone.is-front { right: 190px; transform: rotate(-4deg); }
.gim-appcta:hover .gim-appcta-phone.is-back { transform: rotate(8deg) translateY(-10px); }
.gim-appcta:hover .gim-appcta-phone.is-front { transform: rotate(-5deg) translateY(-18px); }

.dark-mode .gim-appcta { border-color: #2E333C; background: #191C22; }
.dark-mode .gim-appcta h2, .dark-mode .gim-appcta li, .dark-mode .gim-appcta-more { color: #E8EAED !important; }
.dark-mode .gim-appcta-copy > p { color: #A9B0BB; }
.dark-mode .gim-appcta-phone { background: #000; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }

@media (max-width: 900px) {
    .gim-appcta { grid-template-columns: 1fr; gap: 0; padding: 28px 20px 0; }
    .gim-appcta-copy { padding-bottom: 20px; }
    .gim-appcta-phones { min-height: 196px; }
    .gim-appcta-phone { width: 176px; bottom: -190px; }
    .gim-appcta-phone.is-front { right: auto; left: calc(50% - 150px); }
    .gim-appcta-phone.is-back { right: calc(50% - 150px); bottom: -220px; }
}
@media (max-width: 480px) {
    .gim-stores { display: grid; grid-template-columns: 1fr; }
    .gim-store { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .gim-appbar { animation: none; }
    .gim-store, .gim-appcta-phone, .gim-appcta-more i { transition: none; }
}
