/* 
 * Ajustes Customizados & Modernos mantendo 100% da identidade visual do Divi
 * Carvalho de Souza Advocacia
 */

/* Parallax real e suave */
.et_parallax_bg {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (min-width: 981px) {
    .et_pb_section_parallax .et_parallax_bg {
        background-attachment: fixed;
    }
}

.et_pb_fullwidth_header {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.et_pb_fullwidth_header.et_pb_fullscreen {
    min-height: 80vh;
}

.et_pb_fullwidth_header_container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.et_pb_fullwidth_header_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Header Logo */
.header-logo {
    max-width: 85%;
    width: 620px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* Tipografia e Botões Divi */
.et_pb_module_header {
    font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.et_pb_button {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    margin-top: 15px;
}

.et_pb_button:hover {
    background: #ffffff;
    color: #333333 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Sliders / Blocos Coloridos */
.et_pb_slider {
    padding: 70px 20px;
    text-align: center;
}

.et_pb_slide_description {
    max-width: 960px;
    margin: 0 auto;
}

.et_pb_slide_title a,
.et_pb_slide_title {
    color: #ffffff !important;
    font-size: 32px;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 20px;
    display: block;
}

.et_pb_slide_content {
    font-size: 17px;
    line-height: 1.8em;
    color: #ffffff;
}

/* Acordeões / Saiba Mais (.et-learn-more) */
.et-learn-more {
    margin: 15px 0 25px 0;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.et-learn-more .heading-more {
    background: #f8fafc;
    padding: 14px 20px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    user-select: none;
}

.et-learn-more .heading-more:hover {
    background: #edf2f7;
    color: #0284c7;
}

.et-learn-more .heading-more::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #64748b;
    transition: transform 0.2s;
}

.et-learn-more.open .heading-more::after {
    content: '−';
    color: #0284c7;
}

.et-learn-more .learn-more-content {
    display: none;
    padding: 22px 24px;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.75em;
    color: #334155;
    border-top: 1px solid #e2e8f0;
}

.et-learn-more.open .learn-more-content {
    display: block;
}

/* Header & Logo Fix - Garante que a logo fique alinhada à esquerda sem sobrepor o menu */
#main-header {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    height: auto !important;
}

#main-header .container.et_menu_container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 10px 24px !important;
    height: 68px !important;
}

#main-header .logo_container {
    position: static !important;
    width: auto !important;
    max-width: 260px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

#main-header .logo_container a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

#main-header #logo {
    display: block !important;
    max-height: 44px !important;
    height: 44px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

#main-header #et-top-navigation {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-grow: 1 !important;
    height: auto !important;
    float: none !important;
    padding: 0 !important;
    margin-left: 20px !important;
    z-index: 20 !important;
}

#main-header nav#top-menu-nav {
    display: flex !important;
    align-items: center !important;
    float: none !important;
}

#main-header #top-menu {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 16px !important;
    float: none !important;
}

#main-header #top-menu li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

#main-header #top-menu li a {
    display: block !important;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 6px 4px !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
}

#main-header #top-menu li a:hover,
#main-header #top-menu li.current-menu-item a {
    color: #3a8b88 !important;
    font-weight: 700 !important;
}

@media (max-width: 1080px) {
    #main-header #top-menu {
        gap: 10px !important;
    }
    #main-header #top-menu li a {
        font-size: 12.5px !important;
    }
}

/* Menu Mobile Responsivo */
.mobile_menu_bar {
    display: none;
    cursor: pointer;
    font-size: 26px;
    color: #333333;
    padding: 10px;
}

#mobile-menu-dropdown {
    display: none;
    background: #ffffff;
    border-top: 1px solid #eee;
    padding: 10px 0;
}

#mobile-menu-dropdown.active {
    display: block;
}

#mobile-menu-dropdown a {
    display: block;
    padding: 12px 24px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

#mobile-menu-dropdown a:hover,
#mobile-menu-dropdown a.current {
    color: #01bac4;
    background: #fafafa;
}

@media (max-width: 980px) {
    #top-menu {
        display: none !important;
    }
    .mobile_menu_bar {
        display: block !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(37,211,102,0.6);
    color: #ffffff;
}

/* Grid & Cards de Artigos / Blog */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.article-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.article-card h3 a {
    color: #0f172a;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card h3 a:hover {
    color: #0284c7;
}

.article-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 12px 0 16px 0;
}

.article-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}
