/* Barra de pesquisa no menu */
.menu-barra-pesquisa {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 8px 0;
    background: none;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-red: #e60000;
    --accent-red-soft: rgba(230, 0, 0, 0.25);
    --surface-dark: #0a0a0a;
    --surface-black: #000000;
    --focus-ring: #ffffff;
}

html, body {
    font-family: 'Arial', sans-serif;
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(230, 0, 0, 0.18), transparent 60%),
        linear-gradient(160deg, #110000 0%, var(--surface-dark) 45%, var(--surface-black) 100%);
    color: #fff;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

body {
    overflow-y: auto;
    margin-top: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (min-width: 769px) {
    body {
        scroll-snap-type: y mandatory;
    }
}

@media (max-width: 768px) {
    body {
        scroll-snap-type: none;
    }
}

::selection {
    background: var(--accent-red-soft);
    color: #ffffff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

@media (min-width: 769px) {
    section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(90deg, rgba(180, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.75) 70%);
    backdrop-filter: blur(8px);
    padding: 0 clamp(18px, 5vw, 50px);
    padding-top: max(0px, env(safe-area-inset-top));
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(230, 0, 0, 0.18);
}

@supports (padding: max(0px)) {
    @media (max-width: 390px) {
        header {
            height: 65px;
            padding: max(0px, env(safe-area-inset-top)) 12px 0 12px;
        }
    }
}

.logo {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s ease, filter 0.35s ease;
    position: absolute;
    left: clamp(18px, 5vw, 50px);
    top: 65%;
    transform: translateY(-50%);
    isolation: isolate;
}

.logo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72%;
    height: 52%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(230, 0, 0, 0.26) 0%, rgba(230, 0, 0, 0) 72%);
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.logo:hover {
    filter: brightness(1.14);
    transform: translateY(-50%) scale(1.03);
}

.logo img {
    height: clamp(60px, 15vw, 200px);
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(230, 0, 0, 0.45)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35)) contrast(1.1) saturate(1.14);
    transition: transform 0.35s ease, filter 0.35s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

.logo:hover img {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 22px rgba(230, 0, 0, 0.66)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)) contrast(1.12) saturate(1.2);
}

.logo:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
}

.logo span {
    color: #e60000;
}

/* Menu Hamburger */
.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 8px 4px;
    border: none;
    background: none;
    transition: all 0.3s ease;
}

.hamburger:hover {
    gap: 8px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* Menu Mobile */
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 380px);
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 0, 0, 0.95) 100%);
    padding: clamp(80px, 12vh, 120px) clamp(25px, 6vw, 50px) 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6), -5px 0 20px rgba(230, 0, 0, 0.2);
    z-index: 1002;
    border-left: 1px solid rgba(230, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.menu.active {
    right: 0;
}

.menu nav ul {
    list-style: none;
}

.menu nav ul li {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu.active nav ul li {
    opacity: 1;
    transform: translateX(0);
}

.menu.active nav ul li:nth-child(1) { transition-delay: 0.05s; }
.menu.active nav ul li:nth-child(2) { transition-delay: 0.1s; }
.menu.active nav ul li:nth-child(3) { transition-delay: 0.15s; }
.menu.active nav ul li:nth-child(4) { transition-delay: 0.2s; }
.menu.active nav ul li:nth-child(5) { transition-delay: 0.25s; }

.menu nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 12px 16px;
    border-left: 3px solid transparent;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.menu nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(230, 0, 0, 0.15);
    transition: width 0.3s ease;
    z-index: -1;
}

.menu nav ul li a:hover::before {
    width: 100%;
}

.menu nav ul li a:hover {
    color: #e60000;
    border-left-color: #e60000;
    padding-left: 24px;
    background-color: rgba(230, 0, 0, 0.08);
    text-shadow: 0 0 12px rgba(230, 0, 0, 0.25);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Clientes Section */
.clientes-section {
    padding: clamp(50px, 8vw, 80px) clamp(20px, 6vw, 50px);
    background: radial-gradient(1200px 600px at 15% 20%, rgba(230, 0, 0, 0.45), transparent 60%),
        linear-gradient(135deg, #6b0000 0%, #1a0000 40%, #0a0a0a 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.clientes-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 50px);
}

.clientes-left {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 4vw, 40px);
}

.clientes-title {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 250;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    line-height: 1;
    margin-top: clamp(-200px, -15vw, -280px); /* Sobe o titulo */
}

.divider {
    font-size: clamp(18rem, 34vw, 60rem);
    color: #fff;
    font-weight: 100;
    line-height: 0.5;
    transform: translateX(-80px) rotate(40deg) scaleX(0.08); /* Move para a esquerda + angulo/espessura */
    margin-left: 0;
    margin-top: clamp(-200px, -15vw, -280px); /* Move a linha para cima */
}

.clientes-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.clientes-mascote {
    margin-left: 10px;
}

.clientes-mascote img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: clamp(44px, 5vw, 60px);
    height: clamp(44px, 5vw, 60px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #fff;
}

.nav-btn:hover {
    background: rgba(230, 0, 0, 0.3);
    border-color: #e60000;
    transform: scale(1.1);
}

.clientes-carousel-controls {
    display: none;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.clientes-logos-container {
    flex: 1;
    overflow: hidden;
    max-width: 500px;
}

.clientes-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
}

.logo-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    cursor: default;
    aspect-ratio: 1;
    animation: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-card img {
    max-width: 70%;
    max-height: 600%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: none;
}

@media (min-width: 769px) {
    .carnaquiraz-card img {
        max-width: 96%;
        transform: translateX(4px) scale(1.12);
    }
}

.fernandinha-card {
    position: relative;
    z-index: 2;
}
.fernandinha-card img {
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%) scale(2.2);
    width: 100px;
    height: auto;
    max-width: none;
    max-height: none;
    z-index: 3;
    pointer-events: none;
}

/* Projetos Section */
.projetos-section {
    padding: clamp(50px, 8vw, 80px) clamp(20px, 6vw, 50px);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.70) 0%, rgba(10, 10, 10, 0.60) 50%, rgba(10, 10, 10, 0.70) 100%),
                url('../imagens&videos/projetos-imagens.jpg') center/cover fixed no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.projetos-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 50px);
}

.projetos-left {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 4vw, 40px);
}

.projetos-title {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 250;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    line-height: 1;
    margin-top: clamp(-120px, -12vw, -200px);
}

.projetos-divider {
    font-size: clamp(18rem, 34vw, 60rem);
    color: #fff;
    font-weight: 100;
    line-height: 0.5;
    transform: translateX(-80px) rotate(40deg) scaleX(0.08);
    margin-left: 0;
    margin-top: clamp(-120px, -8vw, -40px);
}

.projetos-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
}

.projetos-text {
    max-width: 720px;
    font-size: clamp(0.92rem, 1.35vw, 1.12rem);
    line-height: 1.6;
    color: #d9d9d9;
    letter-spacing: 0.3px;
    margin-top: clamp(-80px, -8vw, -20px);
}

.projetos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.projetos-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    transform: translateX(4px);
}

.projetos-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 0.7px #000;
    transform: translateX(0);
}

.projetos-btn:hover .projetos-btn-arrow,
.sobre-btn:hover .projetos-btn-arrow {
    transform: translateX(0);
}

.sobre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-color: #fff;
    color: #000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
}

.sobre-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    transform: translateX(4px);
}

/* Sobre Section */
.sobre-section {
    padding: clamp(50px, 8vw, 80px) clamp(20px, 6vw, 50px);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.70) 0%, rgba(10, 10, 10, 0.60) 50%, rgba(10, 10, 10, 0.70) 100%),
                url('../imagens&videos/sobre-imagem.jpg') center/cover fixed no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.sobre-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 50px);
}

.sobre-left {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 4vw, 40px);
}

.sobre-title {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 250;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    line-height: 1;
    margin-top: clamp(-120px, -12vw, -200px);
}

.sobre-divider {
    font-size: clamp(18rem, 34vw, 60rem);
    color: #fff;
    font-weight: 100;
    line-height: 0.5;
    transform: translateX(-80px) rotate(40deg) scaleX(0.08);
    margin-left: 0;
    margin-top: clamp(-120px, -8vw, -40px);
}

.sobre-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
}

.sobre-text {
    max-width: 720px;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: #d9d9d9;
    letter-spacing: 0.3px;
    margin-top: clamp(-80px, -8vw, -20px);
}

/* Contato Section */
.contato-section {
    padding: clamp(50px, 8vw, 80px) clamp(20px, 6vw, 50px);
    background: radial-gradient(1200px 600px at 15% 20%, rgba(230, 0, 0, 0.45), transparent 60%),
        linear-gradient(135deg, #6b0000 0%, #1a0000 40%, #0a0a0a 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contato-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 50px);
}

.contato-left {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 4vw, 40px);
}

.contato-title {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 250;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
    line-height: 1;
    margin-top: clamp(-120px, -12vw, -200px);
}

.contato-divider {
    font-size: clamp(18rem, 34vw, 60rem);
    color: #fff;
    font-weight: 100;
    line-height: 0.5;
    transform: translateX(-80px) rotate(40deg) scaleX(0.08);
    margin-left: 0;
    margin-top: clamp(-120px, -8vw, -40px);
}

.contato-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.contato-mascote {
    margin-bottom: 20px;
}

.contato-mascote img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.contato-text {
    max-width: 720px;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: #d9d9d9;
    letter-spacing: 0.3px;
    margin-top: clamp(-80px, -8vw, -20px);
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contato-link {
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.contato-link:hover {
    color: #e60000;
}


/* Responsive - Mobile pequeno (320px - 390px) */
@media (max-width: 390px) {
    header {
        height: 88px;
    }

    body {
        margin-top: 88px;
    }

    .logo {
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo img {
        height: clamp(62px, 18vw, 84px);
    }

    .hamburger {
        gap: 4px;
        padding: 6px;
    }

    .hamburger span {
        width: 24px;
        height: 2.2px;
    }

    .menu {
        width: 100%;
        padding: clamp(55px, 6vh, 70px) 12px 15px;
    }

    .menu nav ul li a {
        font-size: 14px;
        padding: 6px 8px;
    }

    .clientes-section,
    .projetos-section,
    .sobre-section,
    .contato-section {
        padding: 30px 12px;
    }

    .clientes-title,
    .projetos-title,
    .sobre-title,
    .contato-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .clientes-title {
        margin-top: 0;
    }

    .divider {
        font-size: 3rem;
        margin-top: 0;
        transform: rotate(40deg) scaleX(0.08);
    }

    .clientes-logos {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .footer-content {
        gap: 10px;
    }

    .footer-icon {
        width: 38px;
        height: 38px;
    }

    .footer-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-brand {
        height: clamp(54px, 14vw, 78px);
    }

    .footer-mascote {
        height: clamp(40px, 6vw, 60px);
    }
}

/* Responsive - Tablet pequeno (391px - 768px) */
@media (max-width: 768px) {
    header {
        padding: 0 20px;
        height: 100px;
    }

    body {
        margin-top: 100px;
    }

    .logo img {
        height: clamp(74px, 16vw, 100px);
    }

    .logo {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger {
        gap: 5px;
        padding: 7px;
    }

    .hamburger span {
        width: 28px;
        height: 2.6px;
    }

    .menu {
        width: 85vw;
        padding: clamp(70px, 10vh, 100px) clamp(20px, 5vw, 40px) 30px;
    }

    .menu nav ul li a {
        font-size: clamp(14px, 2vw, 18px);
        padding: 10px 12px;
    }

    .clientes-section {
        padding: 60px 20px;
    }

    .clientes-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .clientes-left {
        width: 100%;
        justify-content: center;
        gap: 20px;
        align-items: center;
    }

    .clientes-right {
        width: 100%;
        flex-direction: column;
        gap: 14px;
    }

    .clientes-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-top: 0;
    }

    .divider {
        font-size: 4rem;
        margin-top: 0;
        transform: rotate(40deg) scaleX(0.08);
    }

    .clientes-logos-container {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .clientes-logos.carousel-enabled {
        display: flex;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 0;
        width: 100%;
        transition: transform 0.35s ease;
        will-change: transform;
    }

    .clientes-logos.carousel-enabled .logo-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
        aspect-ratio: 16 / 9;
        padding: 16px;
    }

    .clientes-logos.carousel-enabled .logo-card img {
        max-width: 72%;
        max-height: 72%;
    }

    .clientes-carousel-controls {
        display: flex;
        align-items: center;
    }

    .clientes-mascote {
        display: none;
    }

    .fernandinha-card img {
        width: 125px;
        max-width: none;
        max-height: none;
        top: 38%;
        transform: translate(-50%, -50%) scale(2.8);
    }

    .nattan-card img {
        max-width: none;
        max-height: none;
        width: 88%;
        transform: scale(1.42);
    }

    .zecantor-card img {
        max-width: none;
        max-height: none;
        width: 90%;
        transform: scale(1.34);
    }

    .priscila-card img {
        max-width: none;
        max-height: none;
        width: 92%;
        transform: scale(1.38);
    }

    .projetos-section,
    .sobre-section,
    .contato-section {
        padding: 50px 20px;
    }

    .projetos-title,
    .sobre-title,
    .contato-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .projetos-text,
    .sobre-text,
    .contato-text {
        font-size: 0.92rem;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-name {
        font-size: 20px;
    }

    .footer-icon {
        width: 45px;
        height: 45px;
    }

    .footer-mascote {
        height: clamp(50px, 7vw, 80px);
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 15px;
        padding-top: max(0px, env(safe-area-inset-top));
        height: 94px;
    }

    body {
        margin-top: 94px;
    }

    .logo img {
        height: clamp(68px, 19vw, 92px);
    }

    .logo {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger {
        gap: 4px;
        padding: 6px;
    }

    .hamburger span {
        width: 25px;
        height: 2.4px;
    }

    .menu {
        width: 100%;
        padding: clamp(60px, 8vh, 80px) clamp(15px, 4vw, 30px) 20px;
    }

    .menu nav ul li {
        margin-bottom: 18px;
    }

    .menu nav ul li a {
        font-size: 14px;
        padding: 8px 10px;
        letter-spacing: 0.8px;
        touch-action: manipulation;
    }

    .clientes-section,
    .projetos-section,
    .sobre-section,
    .contato-section {
        padding: 35px 15px;
    }

    .clientes-left {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .clientes-title,
    .projetos-title,
    .sobre-title,
    .contato-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .divider {
        font-size: 3rem;
        transform: rotate(40deg) scaleX(0.08);
        margin-left: 0;
        margin-top: -30px;
    }

    .projetos-text,
    .sobre-text,
    .contato-text {
        font-size: 0.86rem;
    }

    .contato-info {
        flex-direction: column;
        gap: 6px;
    }

    .contato-link {
        font-size: 0.85rem;
    }

    .clientes-logos {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-left {
        text-align: left;
    }

    .footer-name {
        font-size: 18px;
    }

    .footer-mascote {
        height: clamp(40px, 6vw, 60px);
    }

    .footer-icon {
        width: 40px;
        height: 40px;
    }

    .footer-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0f0000 0%, #000000 100%);
    border-top: 1px solid rgba(230, 0, 0, 0.3);
    padding: clamp(10px, 4vw, 10px) clamp(20px, 5vw, 50px);
    position: relative;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-mascote {
    height: clamp(60px, 8vw, 100px);
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(230, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.footer-mascote:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 15px rgba(230, 0, 0, 0.5));
}

.footer-name {
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 14px rgba(230, 0, 0, 0.25);
}

.footer-brand {
    height: clamp(80px, 11vw, 140px);
    width: auto;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(230, 0, 0, 0.35));
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    justify-self: flex-end;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(230, 0, 0, 0.1);
    border: 2px solid rgba(230, 0, 0, 0.3);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    body.menu-open {
        overflow: hidden;
    }

    .video-section,
    .clientes-section,
    .projetos-section,
    .sobre-section,
    .contato-section {
        min-height: auto;
    }

    .projetos-section,
    .sobre-section {
        background-attachment: scroll;
    }

    .menu nav ul li a,
    .footer-icon,
    .projetos-btn,
    .sobre-btn,
    .nav-btn,
    .filter-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .menu nav ul li a {
        display: flex;
        align-items: center;
    }

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    span,
    a,
    li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-right,
    .narrativa-right,
    .concept-text,
    .texto,
    .video-projeto-container,
    .video-projeto-text,
    .content,
    .historia-text,
    .photos-text,
    .text-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }

    .hero-right p,
    .narrativa-right p,
    .video-projeto-text,
    .section-paragraph,
    .historia-paragraph,
    .photos-paragraph,
    .content p {
        width: 100%;
        max-width: 100% !important;
    }

    .subtitle,
    .hero-right h1,
    .topo h1,
    .narrativa-right h2,
    .concept-title,
    .video-projeto-title {
        display: block !important;
        width: 100%;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (pointer: coarse) {
    .logo:hover,
    .logo:hover img,
    .logo:hover::before,
    .logo-card:hover,
    .nav-btn:hover,
    .projetos-btn:hover,
    .sobre-btn:hover,
    .footer-icon:hover {
        transform: none;
    }

    .js-hover-text:hover,
    .js-hover-photo:hover,
    .hero-right p:hover,
    .hero-right h1:hover,
    .subtitle:hover,
    .narrativa-right p:hover,
    .narrativa-right h2:hover,
    .topo h1:hover,
    .concept-title:hover,
    .video-projeto-text:hover {
        transform: none !important;
    }
}

/* Legibilidade global mobile */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 16px;
        line-height: 1.65;
        letter-spacing: 0.01em;
    }

    p,
    li,
    label,
    input,
    textarea,
    button {
        font-size: clamp(1rem, 3.9vw, 1.08rem);
        line-height: 1.65;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.25;
        text-wrap: balance;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    p {
        text-wrap: pretty;
    }
}

@media (max-width: 390px) {
    body {
        font-size: 15.5px;
        line-height: 1.7;
    }

    p,
    li,
    label,
    input,
    textarea,
    button {
        font-size: clamp(0.98rem, 4.4vw, 1.04rem);
    }
}

/* Ajuste global para páginas de projeto em celulares pequenos */
@media (max-width: 390px) {
    .hero {
        min-height: auto;
    }

    .hero-left,
    .hero-right,
    .concept,
    .cenografia,
    .narrativa,
    .video-projeto-section,
    .video-section {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .hero-right {
        padding-top: 24px !important;
        padding-bottom: 36px !important;
    }

    .hero-right p,
    .texto,
    .narrativa-right p,
    .video-projeto-text,
    .video-intro,
    .concept-text {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .subtitle,
    .hero-right h1,
    .topo h1,
    .narrativa-right h2,
    .concept-title,
    .video-projeto-title {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }

    .img {
        height: 34vh !important;
    }

    .galeria img,
    .large,
    .concept-item.middle,
    .concept-item.bottom,
    .narrativa-left img {
        height: 230px !important;
    }

    .next-btn,
    .projetos-btn,
    .sobre-btn,
    .footer-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 320px) {
    .hero-left,
    .hero-right,
    .concept,
    .cenografia,
    .narrativa,
    .video-projeto-section,
    .video-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .subtitle,
    .hero-right h1,
    .topo h1,
    .narrativa-right h2,
    .concept-title,
    .video-projeto-title {
        font-size: 24px !important;
    }

    .hero-right p,
    .texto,
    .narrativa-right p,
    .video-projeto-text,
    .video-intro,
    .concept-text {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .img {
        height: 30vh !important;
    }
}

.footer-icon:hover {
    background: rgba(230, 0, 0, 0.3);
    border-color: #e60000;
    color: #e60000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .video-section {
        height: min(62svh, 560px);
        max-height: calc(100svh - 92px);
        background: #000;
    }

    .video-section video {
        object-fit: contain;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .video-section {
        height: min(56svh, 480px);
        max-height: calc(100svh - 94px);
    }
}

@media (max-width: 768px) {
    footer {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 20px;
    }

    .footer-left {
        text-align: left;
        width: 100%;
    }

    .footer-center {
        order: -1;
    }

    .footer-right {
        justify-self: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px 16px;
    }

    .footer-name {
        font-size: 24px;
    }

    .footer-icon {
        width: 45px;
        height: 45px;
    }

    .footer-icon svg {
        width: 24px;
        height: 24px;
    }

    .footer-brand {
        height: clamp(64px, 9vw, 100px);
    }
}

