/* ----- Chatbot css ----- */
#chatbot {
    height: 530px;
    width: 370px;
    max-width: 95%;
    max-height: 95%;
    position: fixed;
    z-index: 10001;
    bottom: 12px;
    right: 12px;
    display: none;
}

#close-chatbot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    text-align: center;
    line-height: 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 100%;
    border: thin solid #c55e5e;
    color: #c55e5e;
    cursor: pointer;
    z-index: 1;
}

#chatbot iframe {
    height: 100%;
    width: 100%;
    border: solid;
    border-width: thin;
    float: left;
    position: relative;
}

#chatbot-button {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 10000;
    cursor: pointer;
}

#chatbot-button img {
    width: 55px;
    height: 55px;
}

@media (max-width: 767px) {
    #chatbot {
        bottom: 2.5%;
        right: 2.5%;
    }
}

/* ---- Banner principal responsivo ---- */
/* Aplica apenas às sections de banner (mobile-height), sem afetar seções internas */
section.parallax.mobile-height,
section.no-padding.parallax.mobile-height {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* evita travamento em iOS */
    min-height: 400px;
}

/* Seções com parallax_active (simple-pro contact/proposal) */
section.parallax_active {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* ===== GI Carousel ===== */
.gi-carousel-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
section.parallax,
section.no-padding.parallax,
section.frontpage-banner,
section.parallax_active {
    position: relative;
    overflow: hidden;
}
.gi-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.gi-slide.active {
    opacity: 1;
}
.gi-slide[data-overlay="1"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
/* Ensure section content sits above the carousel */
section.parallax > *:not(.gi-carousel-wrapper):not(.gi-carousel-prev):not(.gi-carousel-next),
section.frontpage-banner > *:not(.gi-carousel-wrapper):not(.gi-carousel-prev):not(.gi-carousel-next),
section.parallax_active > *:not(.gi-carousel-wrapper):not(.gi-carousel-prev):not(.gi-carousel-next) {
    position: relative;
    z-index: 1;
}

/* ===== Carousel navigation buttons ===== */
.gi-carousel-prev,
.gi-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}
.gi-carousel-prev:hover,
.gi-carousel-next:hover {
    background: rgba(0, 0, 0, 0.65);
}
.gi-carousel-prev { left: 16px; }
.gi-carousel-next { right: 16px; }
@media (max-width: 767px) {
    .gi-carousel-prev { left: 6px; padding: 8px 10px; font-size: 16px; }
    .gi-carousel-next { right: 6px; padding: 8px 10px; font-size: 16px; }
}

/* Menu full-screen (Innovation/Digital/Web Agency): esconde setas do carrossel */
body.show-menu .gi-carousel-prev,
body.show-menu .gi-carousel-next {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* Garante que o header/menu fique acima do banner com carrossel */
body.show-menu header {
    z-index: 10002 !important;
}

/* ===== Social Networks Section ===== */
.gi-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 24px;
    padding: 10px 0 30px;
}
.gi-social-item {
    text-align: center;
    min-width: 90px;
}
.gi-social-item a {
    text-decoration: none;
    display: block;
}
.gi-social-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    font-size: 28px;
    background-color: #4a4e55;
    color: #fff !important;
    margin-bottom: 12px;
    transition: background-color 0.25s ease, transform 0.2s ease;
}
.gi-social-item a:hover .gi-social-icon {
    background-color: #363a40;
    transform: scale(1.08);
}
.gi-social-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    color: #333;
}
.gi-social-sub {
    display: block;
    font-size: 11px;
    color: #888;
}
/* Seções com fundo escuro (admin-black, simple-pro com parallax) */
.frontpage-social .gi-social-icon {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.frontpage-social .gi-social-item a:hover .gi-social-icon {
    background-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}
.frontpage-social .gi-social-label {
    color: #fff;
}
.frontpage-social .gi-social-sub {
    color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 575px) {
    .gi-social-row {
        gap: 20px 16px;
    }
    .gi-social-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}