/**
 * Observatorio de TO — Page 584 Editorial — C7.16 Visual Refinement
 * Scope: Only loaded on Page 584 (is_page(584))
 * Namespace: .oto-home-*
 * Zero purple. Poppins via theme.
 * Visual ref: G1 hierarchy, PortalRBV simplicity, PortalUdi integration, own identity white+teal.
 */

/* ===================================================
   1. VARIABLES & RESET
   =================================================== */

:root {
    --oto-primary: #164B5B;
    --oto-dark: #0F3A47;
    --oto-text: #1F2328;
    --oto-meta: #667078;
    --oto-divider: #E3E7EA;
    --oto-alt: #F5F6F7;
    --oto-white: #FFFFFF;
}

/* ===================================================
   1b. ELEMENTOR CONTAINER WIDTH OVERRIDE (F8.2.6)
   =================================================== */

.elementor-584 .e-con {
    --container-max-width: 1200px !important;
}

/* ===================================================
   2. TICKER BAR
   =================================================== */

.oto-home-ticker-wrap {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 36px;
    padding: 0 24px;
    background: var(--oto-primary);
    color: var(--oto-white);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
}

.oto-home-ticker-label {
    flex-shrink: 0;
    margin-right: 16px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oto-home-ticker-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oto-home-ticker-content a {
    color: var(--oto-white);
    text-decoration: none;
}

.oto-home-ticker-content a:hover {
    text-decoration: underline;
}

/* ===================================================
   3. HEADER
   =================================================== */

.oto-home-header {
    position: relative;
    background: var(--oto-white);
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-header-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 66px;
    padding: 0 24px;
}

.oto-home-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
}

.oto-home-brand-pipe {
    display: block;
    width: 4px;
    height: 34px;
    background: var(--oto-primary);
    border-radius: 2px;
}

.oto-home-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--oto-primary);
    letter-spacing: -0.01em;
}

.oto-home-header-inner .oto-home-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-right: 16px;
}

.oto-home-header-inner .oto-home-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--oto-text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.oto-home-header-inner .oto-home-nav a:hover {
    color: var(--oto-primary);
}

/* ===================================================
   4. HAMBURGER
   =================================================== */

.oto-home-hamburger {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
}

.oto-home-hamburger svg {
    display: block;
}

/* ===================================================
   5. SEARCH
   =================================================== */

.oto-home-search-wrap {
    flex-shrink: 0;
}

.oto-home-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--oto-text);
    border-radius: 50%;
    transition: background 0.15s;
}

.oto-home-search-btn:hover {
    background: var(--oto-alt);
}

.oto-home-search-bar {
    display: none;
    background: var(--oto-white);
    border-top: 1px solid var(--oto-divider);
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-search-bar.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
}

.oto-home-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
}

.oto-home-search-bar form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.oto-home-search-bar input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--oto-divider);
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--oto-text);
    background: var(--oto-alt);
    outline: none;
}

.oto-home-search-bar input[type="search"]:focus {
    border-color: var(--oto-primary);
    background: var(--oto-white);
}

.oto-home-search-bar button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--oto-primary);
    color: var(--oto-white);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.oto-home-search-bar button[type="submit"]:hover {
    background: var(--oto-dark);
}

/* ===================================================
   6. MOBILE MENU
   =================================================== */

.oto-home-mobile-menu {
    display: none;
    background: var(--oto-white);
    border-top: 1px solid var(--oto-divider);
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-mobile-menu.is-open {
    display: block;
}

.oto-home-mobile-menu a {
    display: block;
    padding: 13px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--oto-text);
    text-decoration: none;
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-mobile-menu a:last-child {
    border-bottom: none;
}

.oto-home-mobile-menu a:hover {
    background: var(--oto-alt);
    color: var(--oto-primary);
}

/* ===================================================
   7. SECTION CONTAINER
   =================================================== */

.oto-home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.oto-home-section + .oto-home-section {
    margin-top: 48px;
}

/* ===================================================
   8. SECTION HEADING — NO TRACINHO
   =================================================== */

.oto-home-heading {
    margin-bottom: 20px;
}

.oto-home-heading h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--oto-text);
    line-height: 1.2;
}

/* ===================================================
   9. BADGES — WHITE ON TEAL, NO TRACINHO
   =================================================== */

.oto-home-card-category {
    display: inline !important;
    width: auto !important;
    max-width: max-content;
    margin-bottom: 4px;
    background: transparent !important;
    border-radius: 0;
}

.oto-home-card-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content;
    padding: 3px 9px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #FFFFFF !important;
    background: #164B5B !important;
    border-radius: 3px;
    white-space: nowrap;
    text-decoration: none;
}

.oto-home-card-category *,
.oto-home-card-badge * {
    color: #FFFFFF !important;
}

.oto-home-card-badge:hover {
    background: #0F3A47 !important;
}

/* Remove any decorative traces on badges */
.oto-home-card-category::before,
.oto-home-card-badge::before,
.oto-home-card-category::after,
.oto-home-card-badge::after {
    display: none !important;
    content: none !important;
}

/* Remove traces from card containers */
.oto-home-card::before,
.oto-home-card::after,
.oto-home-list-item::before,
.oto-home-list-item::after,
.oto-home-compact-item::before,
.oto-home-compact-item::after,
.oto-home-feat-compact-item::before,
.oto-home-feat-compact-item::after,
.oto-home-card-link::before,
.oto-home-card-link::after {
    display: none !important;
    content: none !important;
}

/* Remove Elementor widget decorations */
.elementor-widget-text-editor::before,
.elementor-widget-text-editor::after,
.elementor-widget-heading::before,
.elementor-widget-heading::after {
    display: none !important;
    content: none !important;
}

/* ===================================================
   10. HERO LAYOUT (DESTAQUES)
   =================================================== */

.oto-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
}

.oto-home-hero-main {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
}

.oto-home-hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.oto-home-hero-secondary-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-height: 193px;
    flex: 1;
}

.oto-home-hero-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: inherit;
}

.oto-home-hero-main .oto-home-hero-link {
    min-height: 400px;
}

.oto-home-hero-secondary-item .oto-home-hero-link {
    min-height: 193px;
}

.oto-home-hero-placeholder {
    position: absolute;
    inset: 0;
    background: var(--oto-divider);
}

.oto-home-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 18px;
    background: linear-gradient(
        to top,
        rgba(15, 58, 71, 0.92) 0%,
        rgba(15, 58, 71, 0.50) 50%,
        rgba(15, 58, 71, 0) 80%
    );
    z-index: 1;
}

.oto-home-hero-title {
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.10;
    letter-spacing: -0.02em;
    color: var(--oto-white);
}

.oto-home-hero-main .oto-home-hero-title {
    font-size: clamp(28px, 2.8vw, 34px);
    display: block;
    overflow: visible;
}

.oto-home-hero-secondary .oto-home-hero-title {
    font-size: clamp(16px, 1.5vw, 19px);
    display: block;
    overflow: visible;
}

.oto-home-hero-secondary-item .oto-home-hero-title a {
    color: inherit;
    text-decoration: none;
}

.oto-home-hero-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.80);
}

.oto-home-hero .oto-home-card-badge {
    margin-bottom: 6px;
}

/* ===================================================
   10B. CAROUSEL
   =================================================== */

.oto-home-carousel {
    position: relative;
}

.oto-home-carousel-viewport {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 4px;
    overflow: hidden;
}

.oto-home-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.oto-home-carousel-slide--active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.oto-home-carousel-slide .oto-home-hero-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.oto-home-carousel-prev,
.oto-home-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--oto-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, opacity 0.2s;
    opacity: 0;
}

.oto-home-carousel:hover .oto-home-carousel-prev,
.oto-home-carousel:hover .oto-home-carousel-next {
    opacity: 1;
}

.oto-home-carousel-prev { left: 12px; }
.oto-home-carousel-next { right: 12px; }

.oto-home-carousel-prev:hover,
.oto-home-carousel-next:hover {
    background: #fff;
}

.oto-home-carousel-indicators {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
}

.oto-home-carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.oto-home-carousel-dot--active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .oto-home-carousel-viewport {
        min-height: 220px;
    }

    .oto-home-carousel-slide .oto-home-hero-link {
        min-height: 220px;
    }

    .oto-home-carousel-prev,
    .oto-home-carousel-next {
        width: 32px;
        height: 32px;
        opacity: 1;
    }

    .oto-home-carousel-prev { left: 8px; }
    .oto-home-carousel-next { right: 8px; }
}

@media (max-width: 480px) {
    .oto-home-carousel-viewport {
        min-height: 200px;
    }

    .oto-home-carousel-slide .oto-home-hero-link {
        min-height: 200px;
    }

    .oto-home-carousel-prev,
    .oto-home-carousel-next {
        display: none !important;
    }
}

/* ===================================================
   11. FEATURED + COMPACT (PROFISSÃO)
   =================================================== */

.oto-home-feat-compact {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
}

.oto-home-feat {
    min-width: 0;
}

.oto-home-feat-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.oto-home-feat-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--oto-divider);
}

.oto-home-feat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oto-home-feat-body {
    padding: 10px 0 0;
}

.oto-home-feat-title {
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.20;
    color: var(--oto-text);
}

.oto-home-feat-side {
    display: flex;
    flex-direction: column;
}

.oto-home-feat-compact-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-feat-compact-item:first-child {
    padding-top: 0;
}

.oto-home-feat-compact-item:last-child {
    border-bottom: none;
}

.oto-home-feat-compact-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.oto-home-feat-compact-image {
    flex: 0 0 115px;
    width: 115px;
    height: 78px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--oto-divider);
}

.oto-home-feat-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oto-home-feat-compact-body {
    flex: 1;
    min-width: 0;
}

.oto-home-feat-compact-title {
    margin: 0 0 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--oto-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   12. CARDS GRID (CIÊNCIA) — DESKTOP
   =================================================== */

.oto-home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.oto-home-card {
    min-width: 0;
}

.oto-home-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.oto-home-list-item > .oto-home-card-link {
    display: flex;
    flex-direction: row;
    gap: 14px;
    width: 100%;
}

.oto-home-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--oto-divider);
}

.oto-home-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oto-home-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--oto-divider);
}

.oto-home-card-body {
    padding: 10px 0 0;
}

.oto-home-card-title {
    margin: 0 0 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--oto-text);
}

.oto-home-card-date {
    display: block;
    margin-bottom: 0;
    font-size: 12px;
    color: var(--oto-meta);
}

.oto-home-card-excerpt {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--oto-meta);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   13. LIST LAYOUT (POLÍTICAS, ATUAÇÃO, AGENDA, ÚLTIMAS) — DESKTOP
   =================================================== */

.oto-home-list {
    display: flex;
    flex-direction: column;
}

.oto-home-list-item {
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-list-item:first-child {
    padding-top: 0;
}

.oto-home-list-item:last-child {
    border-bottom: none;
}

.oto-home-list-image {
    flex: 0 0 200px;
    width: 200px;
    height: 130px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--oto-divider);
}

.oto-home-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oto-home-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===================================================
   14. COMPACT LAYOUT (EM DESTAQUE) — DESKTOP
   =================================================== */

.oto-home-compact {
    display: flex;
    flex-direction: column;
}

.oto-home-compact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--oto-divider);
}

.oto-home-compact-item:last-child {
    border-bottom: none;
}

.oto-home-compact-image {
    flex: 0 0 100px;
    width: 100px;
    height: 68px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--oto-divider);
}

.oto-home-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oto-home-compact-body {
    flex: 1;
    min-width: 0;
}

.oto-home-compact-body .oto-home-card-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 2px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.oto-home-compact-body .oto-home-card-category {
    margin-bottom: 3px;
    font-size: 9px;
    padding: 2px 7px;
}

.oto-home-compact-body .oto-home-card-date {
    font-size: 11px;
    margin-bottom: 0;
}

/* ===================================================
   15. PLACEHOLDER
   =================================================== */

.oto-home-card-image-placeholder,
.oto-home-hero-placeholder,
.oto-home-card-placeholder {
    background: var(--oto-divider);
}

/* ===================================================
   16. SIDEBAR
   =================================================== */

.oto-home-sidebar {
    align-self: start;
}

.oto-home-sidebar-ad {
    margin-bottom: 20px;
}

.oto-home-sidebar-label {
    font-size: 11px;
    color: var(--oto-meta);
    text-align: center;
    margin: 0 0 6px;
}

.oto-home-sidebar-ad-box {
    padding: 20px;
    background: var(--oto-alt);
    border: 1px solid var(--oto-divider);
    text-align: center;
}

.oto-home-sidebar-ad-box strong {
    display: block;
    font-size: 14px;
    color: var(--oto-primary);
    margin-bottom: 4px;
}

.oto-home-sidebar-ad-box p {
    font-size: 12px;
    color: var(--oto-meta);
    margin: 0;
}

.oto-home-sidebar-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--oto-text);
    margin: 20px 0 10px;
}

.oto-home-sidebar-social {
    font-size: 13px;
    color: var(--oto-meta);
    margin-top: 20px;
}

.oto-home-sidebar-social a {
    color: var(--oto-primary);
    text-decoration: none;
}

.oto-home-sidebar-social a:hover {
    text-decoration: underline;
}

/* ===================================================
   17. FOOTER (COMPACT)
   =================================================== */

.site-footer {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-footer .footer-inner,
.site-footer .site-info {
    display: none !important;
}

/* Compact footer (matches editorial-single.css) */
.oto-footer-site-info {
    background: #0e3440 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.oto-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px;
    color: rgba(255,255,255,.75);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.oto-footer-top {
    margin-bottom: 12px;
}

.oto-footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.oto-footer-sep {
    margin: 0 8px;
    opacity: .4;
}

.oto-footer-tagline {
    font-size: 12px;
    opacity: .7;
}

.oto-footer-nav {
    margin-bottom: 14px;
}

.oto-footer-nav a {
    display: inline-block;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 12px;
    margin-right: 16px;
    transition: color 0.2s;
}

.oto-footer-nav a:hover {
    color: #fff;
}

.oto-footer-bottom {
    color: rgba(255,255,255,.45);
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 12px;
}

/* ===================================================
   18. RESPONSIVE — TABLET (max-width: 1024px)
   =================================================== */

@media (max-width: 1024px) {
    .oto-home-header-inner .oto-home-nav {
        gap: 16px;
    }

    .oto-home-hero-main {
        min-height: 340px;
    }

    .oto-home-hero-main .oto-home-hero-link {
        min-height: 340px;
    }
}

/* ===================================================
   19. RESPONSIVE — TABLET (max-width: 768px)
   =================================================== */

@media (max-width: 768px) {
    .oto-home-header {
        border-bottom: none;
    }

    .oto-home-header-inner .oto-home-nav {
        order: 1;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: var(--oto-primary);
        padding: 12px 0;
    }

    .oto-home-header-inner .oto-home-nav::-webkit-scrollbar {
        display: none;
    }

    .oto-home-header-inner .oto-home-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 13px;
        color: var(--oto-white);
        font-weight: 500;
        padding: 0 16px;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        line-height: 1;
        transition: opacity 0.15s;
    }

    .oto-home-header-inner .oto-home-nav a:first-child {
        border-left: none;
        padding-left: 18px;
    }

    .oto-home-header-inner .oto-home-nav a:last-child {
        padding-right: 18px;
    }

    .oto-home-header-inner .oto-home-nav a:hover {
        opacity: 0.8;
    }

    .oto-home-hamburger {
        display: none;
    }

    .oto-home-header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 0 16px;
    }

    .oto-home-brand {
        margin-right: 16px;
    }

    .oto-home-search-wrap {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .oto-home-search-btn {
        width: 48px;
        height: 48px;
        color: var(--oto-primary);
    }

    .oto-home-search-btn svg {
        width: 24px;
        height: 24px;
    }

    .oto-home-search-form .oto-home-search-input {
        display: none;
    }

    .oto-home-search-bar.is-open .oto-home-search-form .oto-home-search-input {
        display: block;
    }

    .oto-home-brand-name {
        font-size: 18px;
    }

    .oto-home-section {
        padding: 0 16px;
    }

    .oto-home-section + .oto-home-section {
        margin-top: 28px;
    }

    .oto-home-heading h2 {
        font-size: 20px;
    }

    .oto-home-hero {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .oto-home-hero-main {
        min-height: 220px;
    }

    .oto-home-hero-main .oto-home-hero-link {
        min-height: 220px;
    }

    .oto-home-hero-main .oto-home-hero-title {
        font-size: 24px;
    }

    .oto-home-hero-secondary {
        flex-direction: row;
        gap: 10px;
    }

    .oto-home-hero-secondary-item {
        min-height: 140px;
    }

    .oto-home-hero-secondary-item .oto-home-hero-link {
        min-height: 140px;
    }

    .oto-home-hero-secondary .oto-home-hero-title {
        font-size: 15px;
    }

    /* Profissão: featured + compact on tablet */
    .oto-home-feat-compact {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .oto-home-feat-title {
        font-size: 19px;
    }

    .oto-home-feat-compact-image {
        flex: 0 0 105px;
        width: 105px;
        height: 72px;
    }

    .oto-home-feat-compact-title {
        font-size: 14px;
    }

    /* Ciência: 2 columns on tablet */
    .oto-home-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* List items: keep horizontal on tablet */
    .oto-home-list-item {
        gap: 12px;
    }

    .oto-home-list-image {
        flex: 0 0 140px;
        width: 140px;
        height: 95px;
    }

    .oto-home-compact-image {
        flex: 0 0 90px;
        width: 90px;
        height: 62px;
    }

    .oto-home-footer-inner,
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .oto-home-footer,
    .site-footer {
        padding: 28px 16px 22px !important;
    }

    .oto-home-footer-bottom,
    .site-footer .site-info {
        margin-top: 18px;
        padding-top: 12px !important;
    }

    .oto-home-mobile-menu.is-open {
        border-top: none;
    }

    /* When search is active: hide brand and trigger, show only search */
    .oto-home-header-inner.oto-search-active .oto-home-brand {
        display: none;
    }

    .oto-home-header-inner.oto-search-active .oto-home-nav {
        display: none;
    }

    .oto-home-header-inner.oto-search-active .oto-home-hamburger {
        display: none !important;
    }

    .oto-home-header-inner.oto-search-active .oto-home-search-btn {
        display: none;
    }

    /* SEARCH BAR — integrated into header flex layout */
    .oto-home-search-bar.is-open {
        position: static;
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        box-sizing: border-box;
        background: transparent;
        box-shadow: none;
        border: none;
        z-index: auto;
    }

    .oto-home-search-bar .oto-home-search-bar-inner {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 0;
    }

    .oto-home-search-bar .oto-home-search-form {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .oto-home-header-inner.oto-search-active .oto-home-search-form::before {
        content: "";
        display: flex;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2718%27 height=%2718%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23666%27 stroke-width=%272.5%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2711%27 cy=%2711%27 r=%278%27/%3E%3Cline x1=%2721%27 y1=%2721%27 x2=%2716.65%27 y2=%2716.65%27/%3E%3C/svg%3E") no-repeat center;
        background-size: contain;
    }

    .oto-home-search-bar .oto-home-search-input {
        flex: 1;
        min-width: 0;
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 8px 4px;
        font-size: 16px;
        outline: none;
        background: transparent;
    }

    .oto-home-search-bar .oto-home-search-input:focus {
        border-bottom-color: #164B5B;
    }

    .oto-home-search-bar .oto-home-search-submit-btn,
    .oto-home-search-bar button[type= submit] {
        display: none !important;
    }

    .oto-home-search-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        color: #333;
        cursor: pointer;
        border-radius: 50%;
        flex-shrink: 0;
        visibility: visible !important;
    }

    .oto-home-search-close:hover {
        background: #f0f0f0;
    }
}

/* ===================================================
   20. RESPONSIVE — MOBILE (max-width: 480px)
   =================================================== */

@media (max-width: 480px) {
    /* HAMBURGER - hidden on mobile per spec */
    .oto-home-hamburger {
        display: none !important;
    }

    /* Prevent horizontal overflow */
    .oto-home-section,
    .oto-home-hero {
        max-width: 100%;
        overflow: hidden;
    }

    /* TICKER */
    .oto-home-ticker-wrap {
        font-size: 12px;
        height: 32px;
        padding: 0 12px;
    }

    .oto-home-ticker-label {
        font-size: 10px;
        padding: 2px 8px;
        margin-right: 10px;
    }

    /* HEADER */
    .oto-home-header-inner {
        height: auto;
        min-height: 56px;
        padding: 0 12px;
    }

    .oto-home-search-bar {
        top: 0;
    }



    .oto-home-brand-name {
        font-size: 17px;
    }

    .oto-home-brand-pipe {
        height: 28px;
    }

    /* Reduce Destaques container top padding */
    .elementor-element-1a3760a5 {
        --padding-top: 24px;
    }

    /* SECTIONS - remove redundant padding */
    .oto-home-section {
        padding: 0;
    }

    .oto-home-section + .oto-home-section {
        margin-top: 44px;
    }

    .oto-home-heading {
        margin-bottom: 18px;
    }

    .oto-home-heading h2 {
        font-size: 21px;
    }

    /* DESTAQUES — separate carousel from secondary cards */
    .oto-opening {
        gap: 32px !important;
        padding-bottom: 32px !important;
        border-bottom: 1px solid var(--oto-divider) !important;
    }

    /* HERO SECONDARY — EXCLUSIVE SCOPE: .oto-secondary-rendered */
    .oto-secondary-rendered {
        padding-top: 8px;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .oto-secondary-rendered .oto-secondary-card {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(105px, 30%) minmax(0, 1fr) !important;
        gap: 14px !important;
        justify-content: start !important;
        overflow: hidden !important;
        min-height: 0 !important;
        flex: none !important;
        border-radius: 4px !important;
        background: transparent !important;
    }

    .oto-secondary-rendered .oto-secondary-card::after {
        display: none !important;
    }

    .oto-secondary-rendered .oto-secondary-card__image {
        position: relative !important;
        margin: 0 !important;
        overflow: hidden !important;
        border-radius: 4px !important;
    }

    .oto-secondary-rendered .oto-secondary-card__image img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        object-fit: cover !important;
        position: static !important;
    }

    .oto-secondary-rendered .oto-secondary-card__content {
        position: relative !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    .oto-secondary-rendered .oto-secondary-card__kicker .oto-kicker {
        color: var(--to-petroleo) !important;
    }

    .oto-secondary-rendered .oto-secondary-card__title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        color: var(--to-tinta) !important;
        -webkit-line-clamp: 3 !important;
    }

    .oto-secondary-rendered .oto-secondary-card__date {
        font-size: 12px !important;
        color: var(--to-muted) !important;
    }

    .oto-secondary-rendered .oto-secondary-card + .oto-secondary-card {
        padding-top: 16px !important;
        border-top: 1px solid var(--oto-divider) !important;
    }

    /* HERO MOBILE */
    .oto-home-hero {
        gap: 12px;
    }

    .oto-home-hero-main {
        min-height: 340px;
    }

    .oto-home-hero-main .oto-home-hero-link {
        min-height: 340px;
    }

    .oto-home-hero-main .oto-home-hero-title {
        font-size: 26px;
    }

    .oto-home-hero-secondary {
        flex-direction: column;
        gap: 12px;
    }

    .oto-home-hero-secondary-item {
        min-height: 130px;
    }

    .oto-home-hero-secondary-item .oto-home-hero-link {
        min-height: 130px;
    }

    .oto-home-hero-secondary .oto-home-hero-title {
        font-size: 17px;
    }
    /* SECONDARY ITEMS — COMPACT RECOVERY (carousel path: overlay is sibling of link) */
    .oto-home-hero-secondary-item {
        display: grid !important;
        grid-template-columns: 100px minmax(0, 1fr) !important;
        column-gap: 14px !important;
        align-items: center !important;
        min-height: 0 !important;
    }

    .oto-home-hero-secondary-item .oto-home-hero-link {
        grid-column: 1 !important;
        background-size: 100px 75px !important;
        background-position: left center !important;
        background-repeat: no-repeat !important;
        min-height: 75px !important;
        border-radius: 0 !important;
    }

    .oto-home-hero-secondary-item .oto-home-hero-overlay {
        grid-column: 2 !important;
        position: static !important;
        inset: auto !important;
        background: none !important;
        padding: 0 !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }

    .oto-home-hero-secondary-item .oto-home-card-badge {
        font-size: 11px !important;
    }

    .oto-home-hero-secondary-item .oto-home-hero-title {
        color: var(--to-tinta) !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .oto-home-hero-secondary-item + .oto-home-hero-secondary-item {
        padding-top: 12px !important;
        border-top: 1px solid var(--oto-divider) !important;
    }

    /* PROFISSÃO MOBILE: featured + compact */
    .oto-home-feat-compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .oto-home-feat-title {
        font-size: 18px;
    }

    .oto-home-feat-compact-link {
        display: grid !important;
        grid-template-columns: minmax(88px, 30%) minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    .oto-home-feat-compact-image {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 2;
        border-radius: 3px;
    }

    .oto-home-feat-compact-body {
        min-width: 0;
    }

    .oto-home-feat-compact-title {
        font-size: 15px;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .oto-home-feat-compact-excerpt {
        display: none !important;
    }

    /* CIÊNCIA MOBILE: featured + compact */
    .oto-home-cards {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .oto-home-cards .oto-home-card {
        border-bottom: 1px solid var(--oto-divider);
        padding: 12px 0;
    }

    .oto-home-cards .oto-home-card:first-child {
        padding-top: 0;
    }

    .oto-home-cards .oto-home-card:last-child {
        border-bottom: none;
    }

    /* First card = featured (full-width image) */
    .oto-home-cards .oto-home-card:first-child .oto-home-card-image {
        aspect-ratio: 16 / 9;
        margin-bottom: 8px;
    }

    .oto-home-cards .oto-home-card:first-child .oto-home-card-title {
        font-size: 18px;
    }

    /* Remaining cards = compact rows (horizontal editorial) */
    .oto-home-cards .oto-home-card:not(:first-child) {
        display: block !important;
    }

    .oto-home-cards .oto-home-card:not(:first-child) .oto-home-card-link {
        display: grid !important;
        grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100%;
    }

    .oto-home-cards .oto-home-card:not(:first-child) .oto-home-card-image {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
    }

    .oto-home-cards .oto-home-card:not(:first-child) .oto-home-card-body {
        padding: 0;
        min-width: 0;
    }

    .oto-home-cards .oto-home-card:not(:first-child) .oto-home-card-title {
        font-size: 16px;
        line-height: 1.3;
    }

    .oto-home-cards .oto-home-card:not(:first-child) .oto-home-card-excerpt {
        display: none;
    }

    /* LIST MOBILE: featured + compact */
    .oto-home-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .oto-home-list .oto-home-list-item {
        border-bottom: 1px solid var(--oto-divider);
        padding: 12px 0;
    }

    .oto-home-list .oto-home-list-item:first-child {
        padding-top: 0;
    }

    .oto-home-list .oto-home-list-item:last-child {
        border-bottom: none;
    }

    /* First item = featured */
    .oto-home-list .oto-home-list-item:first-child .oto-home-list-image {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 8px;
    }

    .oto-home-list .oto-home-list-item:first-child {
        flex-direction: column;
        gap: 0;
    }

    .oto-home-list .oto-home-list-item:first-child .oto-home-card-title {
        font-size: 18px;
    }

    /* F8 title fix: featured card link stacks vertically on mobile */
    .oto-home-list .oto-home-list-item:first-child .oto-home-card-link {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Remaining items = compact (horizontal editorial) */
    .oto-home-list .oto-home-list-item:not(:first-child) {
        display: block !important;
        border-bottom: 1px solid var(--oto-divider);
        padding: 12px 0;
        flex-direction: unset;
    }

    .oto-home-list .oto-home-list-item:not(:first-child) .oto-home-card-link,
    .oto-home-list-item:not(:first-child) .oto-home-card-link {
        display: grid !important;
        grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        align-items: start !important;
    }

    .oto-home-list .oto-home-list-item:not(:first-child) .oto-home-list-image,
    .oto-home-list-item:not(:first-child) .oto-home-list-image {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
        overflow: hidden !important;
        border-radius: 4px !important;
    }

    .oto-home-list .oto-home-list-item:not(:first-child) .oto-home-card-title,
    .oto-home-list-item:not(:first-child) .oto-home-card-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin: 0 0 2px !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
    }

    .oto-home-list .oto-home-list-item:not(:first-child) .oto-home-card-excerpt,
    .oto-home-list-item:not(:first-child) .oto-home-card-excerpt {
        display: none !important;
    }

    .oto-home-list .oto-home-list-item:not(:first-child) .oto-home-list-body,
    .oto-home-list-item:not(:first-child) .oto-home-list-body {
        padding: 0 !important;
        min-width: 0 !important;
    }

    /* COMPACT MOBILE */
    .oto-home-compact-item {
        display: block !important;
        padding: 12px 0;
        border-bottom: 1px solid var(--oto-divider);
        flex-direction: unset;
    }

    .oto-home-compact-item:first-child {
        padding-top: 0;
    }

    .oto-home-compact-item:last-child {
        border-bottom: none;
    }

    .oto-home-compact-item .oto-home-card-link {
        display: grid !important;
        grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        align-items: start !important;
    }

    .oto-home-compact-image {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3;
    }

    .oto-home-compact-body {
        min-width: 0 !important;
    }

    .oto-home-compact-body .oto-home-card-title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
    }

    /* CARDS EXCERPT HIDDEN */
    .oto-home-card-excerpt {
        display: none;
    }

    /* LIST BODY EXCERPT HIDDEN */
    .oto-home-list-body .oto-home-card-excerpt {
        display: none;
    }

    /* PUBLICIDADE MOBILE — compact */
    .elementor-widget-text-editor [style*="ANUNCIE"] {
        padding: 12px 14px !important;
    }

    .elementor-widget-text-editor [style*="max-width:970px"] {
        padding: 12px 14px !important;
        min-height: 0 !important;
        max-height: 120px !important;
    }

    .elementor-widget-text-editor [style*="padding:24px"] {
        padding: 12px 14px !important;
    }

    .oto-home-sidebar-ad-box {
        padding: 12px 14px !important;
    }

    .oto-home-sidebar-label {
        margin-bottom: 4px !important;
    }

    /* Reduce excessive gaps between ad/heading/sections */
    .oto-home-section .elementor-widget + .elementor-widget {
        margin-top: 0 !important;
    }

    .oto-home-section .elementor-widget {
        margin-bottom: 0 !important;
    }

    /* Siga o Observatório: compact */
    .oto-home-section .elementor-heading-title {
        margin-bottom: 6px !important;
    }

    .oto-home-section .elementor-widget-text-editor p {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
    }

    /* Footer — compact mobile */
    .oto-home-footer,
    .site-footer {
        padding: 20px 14px 16px !important;
    }

    .oto-home-footer-inner,
    .site-footer .footer-inner {
        gap: 16px !important;
    }

    .oto-home-footer h3,
    .site-footer h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .oto-home-footer p,
    .oto-home-footer li,
    .site-footer p,
    .site-footer li {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 2px !important;
    }

    .oto-home-footer-bottom,
    .site-footer .site-info {
        margin-top: 10px !important;
        padding-top: 8px !important;
        font-size: 11px !important;
    }
}

/* ===================================================
   20b. VERY SMALL MOBILE — KEEP HORIZONTAL
   =================================================== */

@media (max-width: 360px) {
    /* Section secondary items — keep horizontal */
    .oto-home-cards .oto-home-card:not(:first-child),
    .oto-home-list .oto-home-list-item:not(:first-child) .oto-home-card-link,
    .oto-home-compact-item .oto-home-card-link,
    .oto-home-feat-compact-link {
        grid-template-columns: minmax(100px, 34%) minmax(0, 1fr) !important;
    }

    /* Hero secondary — exclusive scope, keep horizontal */
    .oto-secondary-rendered .oto-secondary-card {
        grid-template-columns: minmax(95px, 30%) minmax(0, 1fr) !important;
    }
}

/* ===================================================
   21. REDUCED MOTION
   =================================================== */

@media (prefers-reduced-motion: reduce) {
    .oto-home-card-image img,
    .oto-home-list-image img {
        transition: none;
    }
}
