main {
    padding: 3rem 0;
}
.newsletter-image {
    height: auto;
}
.item-acompanhe .area-image {
    height: 510px;
}
.newsletter-content p {
    -webkit-mask-image: none;
    mask-image: none;
}
.items-acompanhe .item-acompanhe h4.title {
    min-height: auto;
}
.items-acompanhe p.resume {
    -webkit-line-clamp: 6;
    max-height: calc(1.5em * 6);
}
.item-acompanhe .area-image img {
    object-position: top left;
}
.items-acompanhe .item-acompanhe > .left {
    height: 100%;
}
.item-acompanhe .item-footer {
    margin-top: 10px;
}

/* ===== FLIPBOOK MODAL ===== */
#flipbook-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#flipbook-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(5px);
}
#flipbook-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 16px 16px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Fechar */
#flipbook-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.5);
    transition: transform .2s;
}
#flipbook-close:hover { transform: scale(1.1); }
#flipbook-close svg   { width: 20px; height: 20px; }

/* Loading */
#flipbook-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    text-align: center;
    min-height: 100%;
    pointer-events: none;
}
#flipbook-loading-msg {
    min-width: 180px;
    text-align: center;
}
.spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.flipbook-error { color: #ff8080; font-size: 1rem; }

/* Área do livro — contém o overflow do zoom */
#flipbook-book-area {
    position: relative;
    width: 100%;
    height: calc(100vh - 170px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default;
    touch-action: none;
}
#flipbook-book-area:active { cursor: grabbing; }
#flipbook-book-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform-origin: 0 0;
    transition: transform .18s ease-out;
}
#flipbook canvas {
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}
/* Sombra nas páginas */
.page canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Controles */
#flipbook-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 8px 18px;
    color: #fff;
    font-size: .875rem;
    flex-wrap: wrap;
    justify-content: center;
}
#flipbook-controls button {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
#flipbook-controls button:hover    { background: rgba(255,255,255,.3); }
#flipbook-controls button:disabled { opacity: .3; cursor: default; }
#page-info { min-width: 72px; text-align: center; }
/* Botão reset zoom (texto) */
#btn-zoom-reset {
    width: auto !important;
    padding: 0 10px;
    border-radius: 20px !important;
    font-size: .8rem !important;
    min-width: 52px;
}
.controls-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.25);
    margin: 0 4px;
}

@media (max-width: 600px) {
    #flipbook-wrapper  { padding: 12px 8px 10px; gap: 10px; }
    #flipbook-controls { gap: 4px; padding: 6px 12px; font-size: .8rem; }
    #flipbook-controls button { width: 30px; height: 30px; font-size: 1rem; }
}

@media (max-width: 1200px) {
    .items-acompanhe {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-acompanhe .area-image {
        height: auto;
    }
}
@media (max-width: 950px) {
    .newsletter-content {
        padding: 1rem 0rem;
    }
    .items-acompanhe {
        grid-template-columns: 1fr;
    }
    .items-acompanhe p.resume {
        display: contents;
        -webkit-line-clamp: initial;
        max-height: none;
    }
}