/*
 * Custom Style for Descubra Aldeia
 * Modern responsive website styling
 */

/* ========================================
   RESET & BASE STYLES
======================================== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65em;
    color: #8b8b8b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

html.html_stretched {
    background: #ffffff;
}

body.stretched {
    background: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #719430;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #88b93c;
}

h1, h2, h3, h4, h5, h6 {
    color: #222222;
    font-weight: 300;
    margin: 0.85em 0;
    font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1 { font-size: 33px; line-height: 1.1em; }
h2 { font-size: 28px; line-height: 1.1em; }
h3 { font-size: 22px; line-height: 1.1em; }
h4 { font-size: 16px; line-height: 1.3em; }
h5 { font-size: 14px; line-height: 1.3em; }
h6 { font-size: 12px; line-height: 1.3em; }

/* ========================================
   CONTAINER SYSTEM
======================================== */

.container, .container_wrap {
    max-width: 1410px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    clear: both;
}

.container {
    padding: 0 50px;
}

.container_wrap_logo .container {
    padding: 0 50px;
}

.template-page {
    width: 100%;
}

.content {
    width: 100%;
}

.units {
    width: 100%;
}

/* Flexbox Column System */
.flex_column {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    min-height: 1px;
    float: left;
    box-sizing: border-box;
}

.av_one_full { width: 100%; }
.av_one_half { width: 48%; margin-right: 4%; }
.av_one_third { width: 30.66%; margin-right: 4%; }
.av_one_fourth { width: 22%; margin-right: 4%; }

.first { margin-left: 0 !important; clear: left; }

/* Remove margin-right do último elemento em cada linha */
.av_one_third:nth-child(3n),
.av_one_fourth:nth-child(4n) {
    margin-right: 0 !important;
}

/* Container para flex columns */
.entry-content-wrapper {
    width: 100%;
    overflow: hidden;
}

.entry-content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Garante que os containers de cards tenham clearfix */
.template-page,
.post-entry {
    overflow: hidden;
}

.template-page::after,
.post-entry::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   HEADER STYLES
======================================== */

#header {
    position: relative;
    z-index: 999999;
    width: 100%;
}

.av_header_top #header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
}

#header.av_header_transparency {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#header.av_header_sticky {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#header_main {
    border: none;
    background: transparent;
}

.av-logo-container {
    height: 88px;
    line-height: 88px;
    position: relative;
    z-index: 999;
    background: transparent;
}

.inner-container {
    display: table;
    height: 88px;
    width: 100%;
}

/* Logo */
.logo {
    display: table-cell;
    vertical-align: middle;
    padding: 0;
    border: none;
    height: 88px;
    line-height: 88px;
    float: left;
}

.logo a {
    display: block;
    height: 88px;
    line-height: 88px;
}

.logo img {
    display: block;
    max-height: 100px;
    width: auto;
    border: none;
}

/* Navigation */
.main_menu {
    display: table-cell;
    vertical-align: middle;
    height: 88px;
    line-height: 88px;
    text-align: right;
    width: 100%;
}

.av-main-nav {
    float: right;
    position: relative;
    z-index: 100;
    font-weight: 600;
    font-size: 12px;
    line-height: 1em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.av-main-nav > li {
    border: none;
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    z-index: 100;
}

.av-main-nav > li > a {
    display: block;
    padding: 0 17px;
    line-height: 88px;
    height: 88px;
    color: #222222;
    text-decoration: none;
    position: relative;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.av-main-nav > li > a:hover,
.av-main-nav > li.current-menu-item > a,
.av-main-nav > li.current_page_item > a {
    color: #719430;
    border-bottom-color: #719430;
}

.avia-menu-text {
    position: relative;
    z-index: 10;
    transition: all 0.2s ease;
}

.avia-bullet,
.avia-menu-fx,
.avia-arrow-wrap,
.avia-arrow {
    display: none;
}

/* Mobile Menu */
.av-burger-menu-main {
    display: none;
    float: right;
    position: relative;
    z-index: 999;
    width: 40px;
    height: 88px;
    line-height: 88px;
}

.av-mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    margin-top: 24px;
    position: relative;
}

.av-burger-menu-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #222222;
    margin: 3px auto;
    transition: all 0.3s ease;
}

.av-mobile-nav {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e1e1e1;
    z-index: 998;
}

.av-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 50px;
}

.av-mobile-nav li {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.av-mobile-nav a {
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding: 10px 0;
}

.av-mobile-nav a:hover {
    color: #719430;
}

/* ========================================
   MAIN CONTENT
======================================== */

#main {
    position: relative;
    z-index: 1;
}

.all_colors {
    background: #ffffff;
}

.entry-content-wrapper {
    width: 100%;
}

/* ========================================
   SECTIONS
======================================== */

.avia-section {
    clear: both;
    width: 100%;
    float: left;
    min-height: 100px;
    position: relative;
    z-index: 1;
}

.avia-full-stretch {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.av-parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.av-parallax-inner {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   BUTTONS
======================================== */

.avia-button {
    display: inline-block;
    padding: 12px 16px 10px 16px;
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.2em;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    border: 2px solid;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    position: relative;
    color: #ffffff;
    background-color: #719430;
    border-color: #719430;
    font-family: inherit;
    transition: all 0.3s ease;
}

.avia-button:hover {
    background-color: #88b93c;
    border-color: #88b93c;
    color: #ffffff;
}

.avia-color-theme-color {
    background-color: #719430;
    border-color: #719430;
    color: #ffffff;
}

.avia-color-light {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.avia-color-light:hover {
    background-color: #ffffff;
    color: #719430;
}

.avia-color-custom {
    background-color: #FF6F00 !important;
    border-color: #FF6F00 !important;
    color: #ffffff !important;
}

.avia-size-medium {
    padding: 16px 20px 14px 20px;
    font-size: 13px;
}

.avia-size-large {
    padding: 20px 30px 18px 30px;
    font-size: 14px;
}

/* ========================================
   SPECIAL HEADINGS
======================================== */

.av-special-heading {
    width: 100%;
    clear: both;
}

.av-special-heading-tag {
    font-weight: 300;
    margin: 0;
    padding: 0;
}

.av-special-heading-h1 .av-special-heading-tag {
    font-size: 50px;
    line-height: 1.1em;
}

.av-special-heading-h2 .av-special-heading-tag {
    font-size: 36px;
    line-height: 1.1em;
}

/* ========================================
   TEXT BLOCKS
======================================== */

.av_textblock_section {
    width: 100%;
    clear: both;
}

.avia_textblock {
    clear: both;
}

/* ========================================
   ICONBOX
======================================== */

.iconbox_content_container {
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.iconbox_content_container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.iconbox_content {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iconbox_icon {
    margin-bottom: 20px;
}

.iconbox_content_title {
    font-size: 28px;
    font-weight: 600;
    color: #719430;
    margin-bottom: 15px;
}

.iconbox_content_desc {
    color: #8b8b8b;
    font-size: 13px;
}

/* Equalização de altura para cards em linha */
.flex_column.av_one_fourth {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.flex_column.av_one_fourth .iconbox_content_container {
    flex: 1;
    min-height: 200px;
}

/* Garante que todos os cards av_one_fourth tenham altura igual */
.entry-content-wrapper .flex_column.av_one_fourth {
    align-items: stretch;
}

/* Solução específica para grids de cards */
.statistics-grid,
.features-grid,
.categories-grid,
.benefits-grid,
.gallery-grid,
.three-columns-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.statistics-grid .flex_column,
.features-grid .flex_column,
.categories-grid .flex_column,
.benefits-grid .flex_column,
.gallery-grid .flex_column,
.three-columns-grid .flex_column {
    display: flex;
    flex-direction: column;
}

/* Para mobile, volta ao comportamento padrão */
@media only screen and (max-width: 767px) {
    .statistics-grid,
    .features-grid,
    .categories-grid,
    .benefits-grid,
    .gallery-grid,
    .three-columns-grid {
        display: block;
    }
    
    .statistics-grid .flex_column,
    .features-grid .flex_column,
    .categories-grid .flex_column,
    .benefits-grid .flex_column,
    .gallery-grid .flex_column,
    .three-columns-grid .flex_column {
        display: block;
    }
}

/* ========================================
   IMAGES
======================================== */

.av-image-container {
    position: relative;
    display: block;
}

.avia_image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

/* ========================================
   FOOTER
======================================== */

#footer {
    background: #f8f8f8;
    color: #8b8b8b;
    border-top: 1px solid #e1e1e1;
    padding: 50px 0 0 0;
    position: relative;
    z-index: 1;
}

#footer .container {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

#footer .widget {
    margin-bottom: 30px;
}

#footer .widgettitle {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#footer .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer .menu li {
    margin: 5px 0;
}

#footer .menu a {
    color: #8b8b8b;
    font-size: 13px;
    text-decoration: none;
}

#footer .menu a:hover {
    color: #719430;
}

.social_bookmarks {
    margin: 10px 0;
}

.social_bookmarks a {
    display: inline-block;
    margin-right: 10px;
    font-size: 16px;
    text-decoration: none;
}

.copyright {
    background: #f8f8f8;
    border-top: 1px solid #e1e1e1;
    padding: 20px 0;
    color: #8b8b8b;
    font-size: 12px;
    text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media only screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .av_one_half {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .av_one_fourth {
        width: 48%;
        margin-right: 4%;
        margin-bottom: 30px;
    }
    
    .av_one_fourth:nth-child(2n) {
        margin-right: 0;
    }
}

@media only screen and (max-width: 767px) {
    /* Mobile Header */
    .main_menu {
        display: none;
    }
    
    .av-burger-menu-main {
        display: block;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .av-logo-container {
        height: 70px;
        line-height: 70px;
    }
    
    .logo {
        height: 70px;
        line-height: 70px;
    }
    
    .logo a {
        height: 70px;
        line-height: 70px;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .av-mobile-nav {
        top: 70px;
    }
    
    .av-mobile-nav ul {
        padding: 20px;
    }
    
    /* Mobile Typography */
    .av-special-heading-h1 .av-special-heading-tag {
        font-size: 36px;
    }
    
    .av-special-heading-h2 .av-special-heading-tag {
        font-size: 28px;
    }
    
    /* Mobile Buttons */
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .avia-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 5px 0;
    }
    
    /* Mobile Layout */
    .av_one_half,
    .av_one_third,
    .av_one_fourth {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 30px;
        float: none;
    }

    /* Mobile Spacing */
    .avia-section {
        padding: 50px 0 !important;
    }
    
    .iconbox_content {
        padding: 20px;
    }
    
    /* Footer */
    #footer .container {
        flex-direction: column;
    }
    
    #footer .flex_column {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   UTILITIES
======================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.no-margin { margin: 0 !important; }
.no-padding { margin: 0 !important; }

/* Hero specific styles */
.hero-content {
    padding: 120px 0 !important;
    text-align: center !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* JavaScript Toggle Classes */
.mobile-menu-open .av-mobile-nav {
    display: block;
}

.mobile-menu-open .av-burger-menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-open .av-burger-menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .av-burger-menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu-open {
    overflow: hidden;
}
