/* === OUROFINO — Elementor Widgets ===
   Layout e responsividade via Tailwind CDN.
   Este arquivo cobre apenas o que Tailwind não resolve inline.
*/

/* Garante que ícones do Elementor (FontAwesome / SVG) dentro dos widgets
   herdem a cor branca e o tamanho definido pelo pai Tailwind */
.elementor-widget-ourofino_card_acesso .elementor-icon,
.elementor-widget-ourofino_hero_banner .elementor-icon,
.elementor-widget-ourofino_cards_grid  .elementor-icon {
    color: #fff;
    font-size: inherit;
    line-height: 1;
}

.elementor-widget-ourofino_card_acesso [class*="eicon-"],
.elementor-widget-ourofino_card_acesso [class*="fa-"],
.elementor-widget-ourofino_cards_grid  [class*="eicon-"],
.elementor-widget-ourofino_cards_grid  [class*="fa-"],
.elementor-widget-ourofino_hero_banner [class*="eicon-"],
.elementor-widget-ourofino_hero_banner [class*="fa-"] {
    color: #fff;
}

/* SVGs inline gerados pelo Elementor Icons Manager */
.elementor-widget-ourofino_card_acesso svg,
.elementor-widget-ourofino_cards_grid  svg,
.elementor-widget-ourofino_hero_banner svg {
    display: block;
}

/* ═══════════════════════════════════════════════
   WIDGET: Meta Section (Transparência 100%)
   ─────────────────────────────────────────────── */

/* Wrapper geral */
.of-ms-wrap {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #1a2340;
    background: #fff;
    padding: 40px 48px 48px;
    position: relative;
}

/* ── HEADER ──────────────────────────────────── */
.of-ms-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.of-ms-tag {
    display: inline-block;
    background-color: #F5C300;
    color: #1a2340;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    line-height: 1.4;
    letter-spacing: .01em;
    max-width: calc(100% - 72px);
}

.of-ms-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #10AD31;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(16,173,49,.35);
}

/* ── TÍTULO ──────────────────────────────────── */
.of-ms-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #072047;
    margin: 0 0 28px;
    line-height: 1.2;
}

/* ── DIVISOR ─────────────────────────────────── */
.of-ms-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 32px 0 !important;

}

/* ── BLOCO TEXTO ─────────────────────────────── */
.of-ms-block-text {
    margin-bottom: 24px;
}

.of-ms-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #072047;
    margin: 0 0 10px;
    line-height: 1.4;
}

.of-ms-content {
    font-size: 14px;
    line-height: 1.7;
    color: #3a4560;
}

.of-ms-content p {
    margin: 0 0 12px;
}

.of-ms-content p:last-child {
    margin-bottom: 0;
}

.of-ms-content a {
    color: #072047;
    text-decoration: underline;
}

/* ── ORGANOGRAMA ─────────────────────────────── */
.of-ms-block-org {
    position: relative;
    margin: 16px 0 32px;
    overflow-x: auto;
}

.of-ms-org {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--of-org-cols, 5), 1fr);
    grid-template-rows: repeat(var(--of-org-rows, 4), auto);
    gap: 20px 16px;
    padding: 20px 0;
    min-width: 580px;
}

.of-ms-org-svg {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.of-ms-org-node {
    grid-column: calc(var(--of-col) + 1);
    grid-row:    calc(var(--of-row) + 1);
    background-color: #072047;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 14px;
    border-radius: 6px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-shadow: 0 2px 8px rgba(7,32,71,.18);
}

/* ── MEMBROS TELA CHEIA ───────────────────────── */
.of-ms-block-members-full {
    margin-bottom: 24px;
}

.of-ms-manager-row {
    display: flex;
    justify-content: stretch;
    margin-bottom: 16px;
}

.of-ms-card--manager {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
}

.of-ms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── MEMBROS SPLIT ───────────────────────────── */
.of-ms-block-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 24px;
}

.of-ms-split-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

/* ── CARD DE MEMBRO ──────────────────────────── */
.of-ms-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #072047;
    color: #fff;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: opacity .15s ease, transform .15s ease;
    min-width: 130px;
    flex: 0 0 auto;
}

.of-ms-card:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.of-ms-card-name {
    display: block;
    font-weight: 700;
}

.of-ms-card-role {
    display: block;
    font-weight: 500;
    font-size: 12px;
    opacity: .85;
    margin-top: 2px;
}

/* ── RESPONSIVO ──────────────────────────────── */
@media (max-width: 768px) {
    .of-ms-wrap {
        padding: 28px 20px 32px;
    }

    .of-ms-block-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .of-ms-org {
        min-width: 480px;
    }
}

/* ── STATS DOTTED & PROGRESS ─────────────────── */
.of-ms-stats-title {
    font-size: 16px;
    font-weight: 800;
    color: #10AD31;
    margin: 0 0 16px;
    line-height: 1.3;
}

.of-ms-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.of-ms-stat-dotted {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.of-ms-stat-dotted .of-ms-stat-label {
    font-weight: 700;
    color: #072047;
    flex-shrink: 0;
    max-width: 80%;
}

.of-ms-stat-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e1;
    height: 1px;
    margin-bottom: 4px;
}

.of-ms-stat-value {
    font-weight: 800;
    color: #072047;
    flex-shrink: 0;
}

/* Progress bars in meta section */
.of-ms-stat-progress {
    margin-bottom: 8px;
}

.of-ms-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 4px;
}

.of-ms-stat-bar-bg {
    width: 100%;
    height: 18px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.of-ms-stat-bar-fill {
    height: 100%;
    background: #10AD31;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1s ease-out;
}

.of-ms-stat-bar-val {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

/* ── HIGHLIGHT BOX ────────────────────────────── */
.of-ms-highlight-box {
    background-color: #10AD31;
    color: #fff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(16,173,49,0.2);
}

/* ── FOOTER NOTE ──────────────────────────────── */
.of-ms-footer-note {
    text-align: center;
    font-size: 13px;
    color: #718096;
    margin-top: 40px;
    font-weight: 500;
}

/* ── INFO CARDS (Navy) ───────────────────────── */
.of-ms-info-card {
    background: #072047;
    color: #fff;
    padding: 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(7,32,71,0.15);
}

.of-ms-info-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    max-width: 70%;
}

.of-ms-info-value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

/* ── TABLE GRID ──────────────────────────────── */
.of-ms-block-table {
    margin: 32px 0;
}

.of-ms-th {
    background: #e2e8f0;
    color: #072047;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.of-ms-tr {
    margin-bottom: 4px;
}

.of-ms-td {
    background: #f1f5f9;
    padding: 20px;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .of-ms-info-card {
        flex-direction: column;
        text-align: center;
    }
    .of-ms-th { display: none; }
    .of-ms-tr { gap: 8px; margin-bottom: 24px; }
}

/* ── META SECTION UPDATES (Meta 4) ───────────── */
.of-ms-block-img img {
    width: 100%;
    height: auto;
    border-radius: 0 0 100px 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 32px 0;
}

.of-ms-btn {
    background: #072047;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.of-ms-btn:hover {
    background: #007CC1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,124,193,0.3);
}

@media (max-width: 768px) {
    .of-ms-block-img img { border-radius: 0 0 40px 40px; }
    .of-ms-btn { width: 100%; text-align: center; }
}
