/* Responsividade para iPad (tablet) */
@media (max-width: 1024px) {

    .container {
        padding: 0;
    }

    /************************** SOBRE ***/
    .inicio {
        height: auto;
        min-height: 100vh;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .conteudo-inicio {
        gap: 1.1rem;
    }

    .badge-inicio {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    .proof-inicio {
        grid-template-columns: 1fr;
    }

    .proof-item {
        text-align: center;
    }

    .cta-group {
        width: 100%;
    }

    .cta-secondary {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    .sobre {
        height: auto;
        min-height: auto;
        overflow: visible;
        padding: 4rem 1rem;
    }

    .container-sobre {
        height: auto;
        gap: 2rem;
    }
    
    .headline-sobre {
        height: auto;
        position: relative;
    }

    .conteudo-sobre {
        top: 0;
        position: relative;
        flex-direction: column-reverse;
        height: auto;
        gap: 2rem;
    }

    .left-sobre {
        width: 100%;
        height: auto;
        gap: 1.5rem;
    }

    .right-sobre {
        width: 100%;
        height: auto;
        margin-top: 2rem;
    }

    .imagem-sobre {
        justify-content: center;
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .textos-sobre h1 {
        max-width: calc(100vw - 2rem);
        font-size: clamp(1.65rem, 7.7vw, 2.45rem);
        line-height: 1;
        white-space: nowrap;
    }

    .textos-sobre p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .redes-sociais {
        border-radius: 18px;
    }

    .redes-sociais a {
        min-height: 64px;
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    /************************** SERVIÇOS ***/

    .headline-servicos {
        flex-direction: column;
        height: auto;
    }

    .titulo-servicos {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .titulo-servicos h1 {
        font-size: 6rem;
    }

    .descricao-servicos {
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    .servicos-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /************************** PORTFOLIO ***/

    .container-portfolio {
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .headline-portfolio {
        flex-direction: column;
        height: auto;
    }

    .headline-portfolio .titulo {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .headline-portfolio .titulo {
        font-size: 6rem;
    }

    .headline-portfolio .descricao {
        width: 100%;
        text-align: left;
        font-size: 1rem;
        margin-top: 0.4rem;
    }

    .container-case {
        gap: 0;
        align-items: stretch;
    }

    .case1,
    .case3,
    .case5 {
        flex-direction: column;
        flex: 0 0 100%;
        width: 100%;
        gap: 1.2rem;
        min-height: auto;
        height: auto;
        justify-content: center;
    }

    .case2, 
    .case4 {
        flex-direction: column-reverse;
        flex: 0 0 100%;
        width: 100%;
        gap: 1.2rem;
        min-height: auto;
        justify-content: center;
    }
    
    .imagens-case {
        width: 100%;
        min-height: 340px;
        height: auto;
    }

    .compare-showcase {
        min-height: auto;
        height: auto;
    }

    .compare-panel {
        min-height: 240px;
    }

    .compare-panel img {
        max-height: 280px;
    }

    .textos-case {
        width: 100%;
        height: auto;
    }

    /************************** CONTATO ***/
    .contato {
        padding: 4rem 1rem;
        height: auto;
    }

    .container-contato {
        width: 100%;
        height: auto;
    }

    .headline-contato {
        flex-direction: column;
        height: auto;
    }

    .titulo-contato {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: left;
    }

    .titulo-contato h1 {
        font-size: 6rem;
    }

    .descricao-contato {
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
    }

    .descricao-contato a {
        text-decoration: none;
        color: var(--color-gray1);
        font-size: 1.1rem;
        letter-spacing: 0;
        line-height: 1.6;
        font-weight: bold;
    }


    .conteudo-contato {
        padding: 1rem;
        flex-direction: column-reverse;
    }

    .logo-contato {
        width: 100%;
        justify-content: center;
        min-height: auto;
    }

    .logo-contato img{
        width: min(100%, 420px);
        max-height: 480px;
        object-fit: cover;
    }

    .formulario-contato {
        width: 100%;
        min-height: auto;
    }

    .credits-column {
        width: auto;
        text-align: left;
        margin-top: 0;
    }

    .container-footer {
        grid-template-columns: 1fr;
    }

    .footer-column,
    .logo-column,
    .social-column {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .sobre {
        padding: 3rem 1rem 5.5rem;
    }

    .container-sobre {
        width: 100%;
        min-width: 0;
        gap: 1.5rem;
    }

    .headline-sobre {
        min-height: 96px;
    }

    .headline-scroll span {
        font-size: clamp(3.5rem, 18vw, 5rem);
    }

    .headline-scroll .divisor {
        width: 8px;
        height: 8px;
        margin: 0 24px;
    }

    .conteudo-sobre {
        width: 100%;
        min-width: 0;
        gap: 1.5rem;
    }

    .left-sobre,
    .right-sobre {
        min-width: 0;
        margin-top: 0;
    }

    .imagem-sobre {
        max-width: min(100%, 360px);
    }

    .imagem-sobre img {
        display: block;
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .textos-sobre {
        width: 100%;
        text-align: left;
    }

    .textos-sobre h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 0.98;
        letter-spacing: -0.04em;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .textos-sobre p {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .textos-sobre p br {
        display: none;
    }

    .redes-sociais {
        width: 100%;
    }

    .redes-sociais a {
        min-width: 0;
        min-height: 58px;
        padding: 0.9rem 1rem;
        font-size: 0.88rem;
    }

    .redes-sociais a .link-text {
        min-width: 0;
        gap: 12px;
    }

    .cv-shortcut {
        top: auto;
        right: 50%;
        bottom: calc(14px + env(safe-area-inset-bottom));
        grid-template-columns: 34px auto;
        min-height: 50px;
        padding: 0.45rem 0.8rem 0.45rem 0.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        transform: translateX(50%);
    }

    .cv-shortcut:hover,
    .cv-shortcut:focus-visible {
        transform: translateX(50%) translateY(-3px);
    }

    .cv-shortcut-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
    }

    .cv-shortcut-copy {
        min-width: 0;
    }

    .cv-shortcut-copy small,
    .cv-shortcut-format {
        display: none;
    }

    .cv-shortcut-copy strong {
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .fixed-button {
        width: 46px;
        height: 46px;
    }

    #backToTop {
        left: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        box-shadow: 0 12px 34px rgba(15, 23, 42, 0.22);
    }

    #whatsappButton {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .fixed-button i {
        font-size: 22px;
    }

    .free-your-mind {
        min-height: 58vh;
        padding: 4rem 0.85rem;
    }

    .container-free-your-mind {
        min-height: 42vh;
        gap: 0.45rem;
    }

    .line-container,
    .line-container.center,
    .line-container.right {
        justify-content: center;
        gap: 0.55rem;
    }

    .container-free-your-mind span {
        max-width: calc(100vw - 2rem);
        font-size: clamp(2rem, 9.2vw, 2.85rem);
        line-height: 0.92;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
        word-break: keep-all;
    }

    .free-your-mind .line {
        min-width: 14px;
        max-width: 24px;
        flex: 0 0 24px;
    }

    .portfolio {
        padding: 3rem 0.75rem;
    }

    .container-portfolio {
        padding: 0;
        gap: 1.5rem;
    }

    .titulo-servicos h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .servicos-cards {
        grid-template-columns: 1fr;
    }

    .card-servicos,
    .card-servicos-left {
        min-height: 260px;
    }

    .headline-portfolio .titulo {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .headline-portfolio .descricao {
        font-size: 0.95rem;
    }

    .portfolio-mobile-hint {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        min-height: 34px;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        border: 1px solid rgba(16, 185, 129, 0.18);
        background: rgba(16, 185, 129, 0.1);
        color: #047857;
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1.2;
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    }

    .portfolio-mobile-hint::after {
        content: "->";
        margin-left: 0.45rem;
        font-size: 1rem;
        line-height: 1;
    }

    .container-case {
        width: 100%;
        padding-bottom: 1rem;
        scroll-snap-type: none;
        touch-action: pan-x pan-y;
    }

    .case1,
    .case2,
    .case3,
    .case4,
    .case5 {
        padding: 0.8rem;
        border-radius: 18px;
        gap: 0.9rem;
    }

    .imagens-case,
    .slide,
    .compare-showcase {
        min-height: 280px;
        height: 280px;
        width: 100%;
    }

    .slide {
        border-radius: 14px;
    }

    .slide img {
        width: 100%;
        height: 100%;
        padding: 0.35rem;
    }

    .prev,
    .next {
        width: 42px;
        height: 42px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
    }

    .prev {
        left: 8px;
    }

    .next {
        right: 8px;
    }

    .compare-panel {
        min-height: 210px;
    }

    .compare-panel img {
        max-height: 240px;
    }

    .conteudo-textos-case {
        padding: 0.5rem;
    }

    .conteudo-textos-case h1,
    .conteudo-textos-case h2 {
        font-size: clamp(1.8rem, 11vw, 2.6rem);
        margin-bottom: 0.8rem;
    }

    .conteudo-textos-case p {
        font-size: 0.95rem;
        line-height: 1.55;
        padding-bottom: 1rem;
    }

    .titulo-contato h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .formulario-contato h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .btn {
        width: 100%;
    }
}
