/* Home EN - layout desktop based on Figma node 1069:1741.
 * All rules are scoped to body.home so the header/menu and internal pages keep
 * their existing behaviour. */

@media (min-width: 769px) {
    body.home > main > .hero {
        min-height: 662px !important;
    }

    body.home .hero > div:last-child {
        max-width: 1008px !important;
        padding: 0 !important;
    }

    body.home .hero .titlephero h1 {
        max-width: 590px;
        margin: 0 0 18px;
        font-size: 48px !important;
        line-height: 1.06 !important;
        letter-spacing: -1.4px;
    }

    body.home .hero .titlephero p {
        max-width: 520px !important;
        margin: 0;
        font-size: 18px !important;
        line-height: 28px !important;
    }

    body.home .hero .boxhero {
        width: 348px;
        padding: 0;
    }

    body.home .hero .boxheroint {
        padding: 18px 7px !important;
    }

    body.home .hero .boxheroint a {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    body.home .home-institution-section {
        box-sizing: border-box;
        max-width: 1048px !important;
        margin: 100px auto !important;
        padding: 0 20px !important;
    }

    body.home .home-institution-section .bannerinstitucional {
        width: 100%;
        max-width: none;
        min-height: 260px;
        padding: 36px 64px !important;
        border-radius: 15px !important;
        box-shadow: none !important;
        background-position: center !important;
    }

    body.home .home-institution-section h2 {
        max-width: 590px;
        margin: 0 0 34px !important;
        font-size: 28px !important;
        line-height: 36px !important;
        letter-spacing: -.35px;
    }

    body.home .home-institution-section .bt {
        min-width: 170px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 11px 22px;
        border-radius: 8px;
        font-size: 14px !important;
        line-height: 20px !important;
    }

    body.home .home-institution-section .imginstitucional {
        align-self: flex-end;
        width: 383px;
        height: 272px;
        margin: 0 -24px -36px 10px;
        object-fit: contain;
    }

    body.home .home-categories-section .container,
    body.home .home-about-section > .container,
    body.home .home-machine-size-section > .container,
    body.home .home-business-section > .container,
    body.home > main > section:last-of-type > .container {
        width: min(100% - 40px, 1008px);
        max-width: 1008px;
    }

    body.home .home-categories-section .container {
        padding: 100px 0 104px !important;
    }

    body.home .home-categories-section .escolha1 {
        margin: 0 0 38px;
        font-size: 30px !important;
        line-height: 38px !important;
        font-weight: 700;
        text-align: center;
    }

    body.home .home-categories-section .categorias-container {
        overflow: visible;
        padding: 0 0 36px;
    }

    body.home .home-categories-section .categorias-wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        padding: 0;
    }

    body.home .home-categories-section .categoria-item {
        min-width: 0;
        padding: 0;
    }

    body.home .home-categories-section .categoria-card {
        height: 318px;
        border-radius: 14px;
    }

    body.home .home-categories-section .cat-link-card {
        right: 16px;
        bottom: 16px;
        left: 16px;
        min-height: 62px;
        padding: 14px 18px;
        border-radius: 9px;
    }

    body.home .home-categories-section .cat-link-card span {
        font-size: 15px !important;
        line-height: 20px !important;
    }

    body.home .home-about-section {
        padding: 100px 0 !important;
    }

    body.home .home-about-section .paginationquemsomos {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 64px !important;
    }

    body.home .home-about-section .paginationquemsomos > div > span,
    body.home > main > section:last-of-type span.d-4 {
        display: block;
        margin-bottom: 8px;
        font-size: 16px !important;
        line-height: 24px !important;
    }

    body.home .home-about-section h2 {
        min-height: 76px;
        margin: 0 0 28px;
        font-size: 30px !important;
        line-height: 38px !important;
        letter-spacing: -.35px;
    }

    body.home .home-about-section .home-about-video-frame {
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    body.home .home-about-section .btn-video-toggle {
        min-width: 132px;
        height: 40px;
        border-radius: 7px;
        font-size: 14px !important;
    }

    body.home .home-about-section .acordeon-item button {
        min-height: 62px;
        padding: 18px 0 !important;
        font-size: 16px !important;
        line-height: 24px !important;
    }

    body.home .home-about-section .acordeon-content p {
        margin: 0;
        padding: 0 34px 20px 0 !important;
        font-size: 15px !important;
        line-height: 24px !important;
    }

    body.home .home-machine-size-section {
        padding: 100px 0 !important;
    }

    body.home .home-machine-size-section h2 {
        margin: 0 0 44px;
        font-size: 30px !important;
        line-height: 38px !important;
    }

    body.home .home-machine-size-section .container > div {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    body.home .home-machine-size-section .maqpro {
        min-height: 326px;
        padding: 32px 28px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    body.home .home-machine-size-section .macroproicon {
        width: 62px !important;
        height: 62px !important;
        margin: 0 0 26px !important;
    }

    body.home .home-machine-size-section h3 {
        margin: 0 0 12px !important;
        font-size: 18px !important;
        line-height: 26px !important;
    }

    body.home .home-machine-size-section p {
        font-size: 15px !important;
        line-height: 24px !important;
    }

    body.home .home-machine-size-section .bt_medium_link2 {
        align-self: flex-start;
        font-size: 14px !important;
    }

    body.home .home-app-section {
        padding: 100px 0 !important;
    }

    body.home .home-app-section .container {
        width: min(100% - 40px, 1008px);
        max-width: 1008px;
    }

    body.home .home-app-section .apps {
        width: 100%;
        max-width: none;
        min-height: 258px;
        padding: 42px 58px !important;
        border-radius: 15px;
        box-shadow: none;
    }

    body.home .home-app-section .apps h2,
    body.home .home-app-section .apps h2 span {
        margin: 0 0 30px;
        font-size: 28px !important;
        line-height: 36px !important;
    }

    body.home .home-business-section {
        padding: 100px 0 !important;
    }

    body.home .home-business-section h2 {
        margin: 0 0 42px;
        font-size: 30px !important;
        line-height: 38px !important;
    }

    body.home .home-business-section .carousel-wrapper {
        left: -12px;
        width: calc(100% + 24px);
    }

    body.home .home-business-section .carousel-item > div {
        height: 210px !important;
        border-radius: 14px !important;
    }

    body.home .home-business-section .navnegocios {
        top: -76px;
    }

    body.home > main > section:last-of-type {
        padding: 100px 0 !important;
    }

    body.home > main > section:last-of-type h2 {
        margin: 0;
        font-size: 30px !important;
        line-height: 38px !important;
    }

    body.home > main > section:last-of-type .blog-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    body.home > main > section:last-of-type .blog-item article > div:first-child {
        height: 190px !important;
        border-radius: 14px !important;
    }

    body.home > main > section:last-of-type .blog-item h3 {
        min-height: 52px !important;
        font-size: 18px !important;
        line-height: 26px !important;
    }
}

@media (max-width: 768px) {
    body.home .home-institution-section,
    body.home .home-categories-section .container,
    body.home .home-about-section,
    body.home .home-machine-size-section,
    body.home .home-app-section,
    body.home .home-business-section,
    body.home > main > section:last-of-type {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    body.home .home-institution-section {
        margin: 0 auto !important;
    }

    body.home .home-categories-section .escolha1,
    body.home .home-about-section h2,
    body.home .home-machine-size-section h2,
    body.home .home-business-section h2,
    body.home > main > section:last-of-type h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
}
