/* Variáveis de Cores */
:root {
    --primary-color: #417b34;
    /* Verde Folha */
    --secondary-color: #66a057;
    /* Verde mais claro para destaque/hover */
    --text-color: #333333;
    /* Cinza escuro para texto */
    --light-gray: #f8f8f8;
    /* Cinza claro para fundos */
    --white: #ffffff;
}

/* Reset e Estilos Globais */
* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* Correção específica para mobile - aplicada globalmente */
/* Correção robusta para html e body no iPhone XR */
@media (max-width: 768px) {
    html {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 100px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: white;
}

nav ul li a.active {
    background-color: var(--white);
    color: none;
    border-bottom: 2px solid var(--primary-color);
}

/* Menu Hambúrguer */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsividade do Header */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
        backdrop-filter: blur(10px);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
        width: 200px;
        text-align: center;
        border-radius: 5px;
        transition: background-color 0.3s ease;
        color: #333333;
    }

    nav ul li a:hover {
        background-color: var(--light-gray);
        color: #333333;
    }

    nav ul li a.active {
        background-color: var(--light-gray);
        color: #333333;
        border-bottom: 2px solid var(--primary-color);
    }
}

/* home Section (Carousel) */
.home-section {
    position: relative;
    height: 630px;
    /* Altura da seção home */
    margin-top: 0px;
    /* Altura do cabeçalho fixo */
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Overlay escuro */
}

.home-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 630px;
    padding: 0 20px;
}

.home-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    /* Título branco no home */
}

.home-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: var(--secondary-color);
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0);
    z-index: 3;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Seção Inovação e Tecnologia (Sobre Nós) */
.inovacao-tecnologia-section {
    padding: 80px 0;
    background-color: var(--white);
}

.inovacao-tecnologia-section .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.inovacao-tecnologia-section .text-content {
    flex: 1;
    max-width: 600px;
}

.inovacao-tecnologia-section .text-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.inovacao-tecnologia-section .text-content p {
    font-size: 18px;
    line-height: 1.6;
}

.inovacao-tecnologia-section .image-content img {
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Seção Segmentos Atendidos (Serviços) */
.segmentos-atendidos-section {
    padding-top: 30px;
    padding-bottom: 50px;
    background-color: var(--light-gray);
    text-align: center;
}

.segmentos-atendidos-section h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.servico-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.servico-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.servico-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.servico-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.botoes-servicos-container {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
}

.botoes-servicos1,
.botoes-servicos2 {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: 0 15px;
}

.botoes-servicos1:hover,
.botoes-servicos2:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    cursor: pointer;
}

/* Seção Indústrias */
.industrias-section {
    padding: 30px 0;
    background-color: var(--white);
    text-align: center;
}

.paragrafo-ind {
    font-size: 18px;
    font-weight: 400;
    line-height: auto;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.industrias-section .caixa-h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.industrias-section .texto-ind {
    font-size: 21px;
    line-height: 1.6;
    text-align: left;
    max-width: 630px;
}

.industrias-section #industrias-imagem {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Seção conteudos recentes */
.recent-content-section {
    width: 100%;

    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recent-content-section h2 {
    color: #417b34;
    margin-bottom: 50px;
    font-size: 2em;

}

.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.content-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    /* For scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.content-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.content-card {
    flex: 0 0 auto;
    width: 300px;
    min-width: 280px;
    margin: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

.content-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    scale: 1.025;
}

.content-card img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}

.content-card h3 {
    font-size: 1.2em;
    color: #28a745;
    padding: 15px;
    margin: 0;
}

.content-card p.date {
    font-size: 0.9em;
    color: #666;
    padding: 0 15px 15px;
    margin: 0;
}

.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
}

.arrow {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Seção Newsletter */
.newsletter-section {
    padding: 35px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter-section .newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.newsletter-section .icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-section .icon-text img {
    height: 30px;
}

.newsletter-section .icon-text h3 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 0;
}

.newsletter-section p {
    font-size: 18px;
}

.newsletter-section .newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-section .newsletter-form input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 250px;
}

.newsletter-section .newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-section .newsletter-form button:hover {
    background-color: #8ac579;
}

.icon-text img{
    width: 40px;
    height: 40px;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding-top: 30px;
    padding-bottom: 10px;
    font-size: 14px;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

footer .footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

footer .footer-logo p {
    max-width: 310px;
    padding-left: 70px;

}

footer .social-icons img {
    height: 24px;
    margin-right: 10px;
}

footer .footer-links h3,
footer .footer-contact h3 {
    color: var(--white);
    margin-bottom: 15px;
}

footer .footer-links ul {
    list-style: none;
}

footer .footer-links ul li a,
footer .footer-contact p {
    color: var(--white);
    margin-bottom: 10px;
    display: block;
}

footer .footer-links ul li a:hover {
    color: var(--secondary-color);
}

footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 15px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
}

.cookie-banner p {
    margin: 0 20px 0 0;
}

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: var(--secondary-color);
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    /* Correção ultra-agressiva para iPhone XR */
    *, *::before, *::after {
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100vw !important;
        position: relative !important;
    }
    
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    /* Forçar todos os elementos a respeitarem a viewport */
    div, section, header, main, footer, nav, ul, li, img, h1, h2, h3, h4, h5, h6, p, a, button, input {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .container {
        padding: 0 15px !important;
        max-width: 100vw !important;
        width: calc(100vw - 30px) !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Header responsivo */
    header {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }
    
    header .container {
        height: 70px;
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        overflow-x: hidden !important;
        padding: 0 15px !important;
    }

    .logo img {
        height: 80px;
    }

    /* Home Section responsiva */
    .home-section {
        height: 500px;
        margin-top: 70px;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    .carousel-container {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .carousel-slide {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .carousel-slide img {
        width: 100vw !important;
        max-width: 100vw !important;
        object-fit: cover !important;
    }

    .home-content {
        max-width: calc(100vw - 30px) !important;
        padding: 0 15px !important;
        width: calc(100vw - 30px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
    }

    .home-content h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .home-content p {
        font-size: 16px;
        margin-bottom: 20px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .home-button {
        display: block;
        font-size: 16px;
        padding: 12px 24px;
    }

    .image-content{
        display: none;
    }

    /* Seção Sobre responsiva */
    /* Seções principais - correção de overflow */
    .inovacao-tecnologia-section,
    .segmentos-atendidos-section,
    .industrias-section,
    .recent-content-section,
    .newsletter-section {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .inovacao-tecnologia-section {
        padding: 50px 0;
    }

    .inovacao-tecnologia-section .content-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
    }

    .inovacao-tecnologia-section .text-content h2 {
        font-size: 28px;
    }

    .inovacao-tecnologia-section .text-content h3 {
        font-size: 20px;
    }

    .inovacao-tecnologia-section .text-content p {
        font-size: 16px;
    }

    .inovacao-tecnologia-section .image-content img {
        width: 100%;
        max-width: 350px;
    }

    /* Seção Serviços responsiva */
    .segmentos-atendidos-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .grid-servicos {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px !important;
    }

    .servico-item {
        padding: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .servico-item h3 {
        font-size: 20px;
    }

    .servico-item p {
        font-size: 14px;
    }

    .botoes-servicos-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .botoes-servicos1,
    .botoes-servicos2 {
        font-size: 16px;
        padding: 12px 24px;
        margin: 0;
        width: 100%;
        max-width: 300px;
    }

    /* Seção Indústrias responsiva */
    .industrias-section .caixa-h3 {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .industrias-section .texto-ind {
        font-size: 18px;
        text-align: center;
        max-width: 100%;
    }

    .industrias-section #industrias-imagem {
        width: 100%;
        max-width: 400px;
    }

    /* Newsletter responsiva */
    .newsletter-section .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .newsletter-section .newsletter-form input {
        width: 100%;
        max-width: 300px;
    }

    .newsletter-section .newsletter-form button {
        width: 100%;
        max-width: 300px;
    }

    /* Footer responsivo */
    footer .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    footer .footer-logo p {
        padding-left: 0;
        max-width: 100%;
    }

    /* Cookie Banner responsivo */
    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .cookie-banner p {
        margin: 0;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */


    .home-content h1 {
        font-size: 24px;
    }

    .home-content p {
        font-size: 14px;
    }

    .home-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .inovacao-tecnologia-section .text-content h2 {
        font-size: 24px;
    }

    .segmentos-atendidos-section h2 {
        font-size: 24px;
    }

    .servico-item h3 {
        font-size: 18px;
    }

    .industrias-section .texto-ind {
        font-size: 16px;
    }

    .paragrafo-ind {
        font-size: 16px;
    }
}



@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    footer .footer-logo {
        text-align: center;
    }

    footer .footer-logo p {
        padding-left: 0;
        max-width: 100%;
        text-align: center;
    }

    footer .footer-links,
    footer .footer-contact {
        width: 100%;
        text-align: center;
    }

    footer .footer-links ul {
        padding: 0;
        text-align: center;
    }

    footer .footer-links ul li {
        text-align: center;
    }

    footer .footer-contact {
        text-align: center;
    }

    footer .social-icons {
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}




/* Media Queries para Responsividade Geral */

/* Telas menores (celulares em modo paisagem) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header .container {
        height: 70px;
    }

    .logo img {
        height: 80px;
    }

    .home-section {
        height: 500px;
        margin-top: 70px;
    }

    .home-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .home-content h1 {
        font-size: 28px; /* Aumentado para melhor legibilidade */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .home-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .home-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    .inovacao-tecnologia-section .content-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .inovacao-tecnologia-section .image-content {
        display: block; /* Garantir que a imagem seja exibida */
    }

    .inovacao-tecnologia-section .image-content img {
        width: 100%;
        max-width: 350px;
    }

    .segmentos-atendidos-section h2, .inovacao-tecnologia-section .text-content h2 {
        font-size: 28px;
    }

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

    .botoes-servicos-container {
        flex-direction: column;
        gap: 15px;
    }

    .industrias-section .caixa-h3 {
        flex-direction: column;
        gap: 30px;
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        overflow-x: hidden !important;
    }

    .industrias-section .texto-ind {
        text-align: center;
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .newsletter-section .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .newsletter-section .newsletter-form input,
    .newsletter-section .newsletter-form button {
        width: 100%;
        max-width: 300px;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Telas muito pequenas (celulares em modo retrato) */
@media (max-width: 480px) {
    .home-content h1 {
        font-size: 24px;
    }

    .home-content p {
        font-size: 14px;
    }

    .home-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .inovacao-tecnologia-section .text-content h2, .segmentos-atendidos-section h2 {
        font-size: 24px;
    }

    .servico-item h3 {
        font-size: 18px;
    }

    .industrias-section .texto-ind, .paragrafo-ind {
        font-size: 16px;
    }
}




/* Correção específica para iPhone XR (414px) */
@media (max-width: 414px) {
    /* Reset completo para iPhone XR */
    html, body {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Forçar todos os elementos a respeitarem a largura */
    * {
        max-width: 414px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Container principal */
    .container {
        width: 384px !important;
        max-width: 384px !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* Header */
    header {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
    
    header .container {
        width: 384px !important;
        max-width: 384px !important;
        padding: 0 15px !important;
    }
    
    /* Logo */
    .logo img {
        max-width: 200px !important;
        height: auto !important;
    }
    
    /* Home section */
    .home-section {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
    
    .carousel-container {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
    
    .carousel-slide {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
    
    .carousel-slide img {
        width: 414px !important;
        max-width: 414px !important;
        height: 100% !important;
        min-height: 630px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .home-content {
        width: 384px !important;
        max-width: 384px !important;
        padding: 0 15px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
    }
    
    /* Seções principais */
    .inovacao-tecnologia-section,
    .segmentos-atendidos-section,
    .industrias-section,
    .newsletter-section {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
    
    /* Grid de serviços */
    .grid-servicos {
        width: 384px !important;
        max-width: 384px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        grid-template-columns: 1fr !important;
    }
    
    .servico-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Seção indústrias */
    .industrias-section .caixa-h3 {
        width: 384px !important;
        max-width: 384px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        flex-direction: column !important;
    }
    
    .industrias-section #industrias-imagem {
        width: 100% !important;
        max-width: 354px !important;
        height: auto !important;
    }
    
    /* Footer */
    footer {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
    
    footer .container {
        width: 384px !important;
        max-width: 384px !important;
        padding: 0 15px !important;
    }
    
    footer .footer-logo img {
        max-width: 300px !important;
        height: auto !important;
    }
    
    /* Newsletter */
    .newsletter-section .container {
        width: 384px !important;
        max-width: 384px !important;
        padding: 0 15px !important;
    }
    
    .newsletter-form {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
    }
    
    .newsletter-form input {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Cookie banner */
    .cookie-banner {
        width: 414px !important;
        max-width: 414px !important;
        overflow-x: hidden !important;
    }
}

