/* Go Print Brasil - CSS Completo
  Cores Baseadas na Logo: Preto (#000000), Amarelo (#FFCC00), Azul (#1A5B9C), Vermelho (#E3000F)
*/

:root {
    --color-black: #000000;
    --color-black-light: #1A1A1A;
    --color-yellow: #FFCC00;
    --color-blue: #1A5B9C;
    --color-red: #E3000F;
    --color-white: #FFFFFF;
    --color-gray-light: #F4F4F9;
    --color-gray-medium: #666666;
    --color-gray-dark: #333333;
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-gray-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-black);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-gray-light);
}

.bg-dark {
    background-color: var(--color-black-light);
    color: var(--color-white);
}

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

.text-white h2, .text-white p {
    color: var(--color-white);
}

/* ================= HEADER ================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

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

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-black);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-yellow);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ================= BUTTONS ================= */
.btn-primary {
    display: inline-block;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-yellow);
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-black);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-white);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.w-100 { width: 100%; }

/* ================= HERO ================= */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}


.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    filter: brightness(1.04) contrast(1.05) saturate(1.05);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.38) 0%,
        rgba(0,0,0,0.24) 48%,
        rgba(0,0,0,0.12) 100%
    );
    z-index: 1;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.stage-light {
    position: absolute;
    top: -20%;
    left: 10%;
    width: 150px;
    height: 150vh;
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.15) 0%, transparent 100%);
    transform: rotate(-30deg);
    filter: blur(20px);
}

.stage-light.right {
    left: auto;
    right: 10%;
    transform: rotate(30deg);
    background: linear-gradient(180deg, rgba(26, 91, 156, 0.15) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: #e0e0e0;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn-primary:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

/* ================= SOBRE & NÚMEROS ================= */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.sobre-texto p {
    font-size: 1.1rem;
    color: var(--color-gray-medium);
}

.numeros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.numero-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid var(--color-yellow);
    text-align: center;
}

.numero-card h3 {
    font-size: 2.5rem;
    color: var(--color-blue);
    margin-bottom: 0.5rem;
}

.numero-card p {
    font-weight: 600;
    margin: 0;
    color: var(--color-black);
}

.icon-equipe {
    color: var(--color-blue);
    margin-bottom: 0.5rem;
}

/* ================= SOLUÇÕES ================= */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-gray-medium);
}

.solucoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solucao-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-top: 4px solid transparent;
}

.solucao-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-red);
}

.solucao-icon {
    color: var(--color-yellow);
    margin-bottom: 1.5rem;
    background: var(--color-black);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.solucao-card h3 {
    font-size: 1.3rem;
}

.solucao-card p {
    color: var(--color-gray-medium);
    margin: 0;
}

/* ================= PORTFÓLIO INTERATIVO ================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer; /* Garante que mostra a mãozinha indicando clique */
    box-shadow: var(--shadow-soft);
}

.placeholder-img {
    width: 100%;
    height: 320px;
    background: linear-gradient(45deg, #111, #222);
    border: 1px solid #333;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .placeholder-img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 60%, rgba(0,0,0,0.4) 80%, transparent 100%);
    color: var(--color-white);
    transition: background var(--transition-speed);
}

.portfolio-item:hover .portfolio-info {
    background: linear-gradient(to top, rgba(0,0,0,1) 70%, rgba(26,91,156,0.8) 100%);
}

.portfolio-info h3 {
    color: var(--color-white);
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
}

.portfolio-info p {
    font-size: 0.9rem;
    margin: 0;
    color: #bbbbbb;
}

/* Indicação visual discreta e profissional para clicar */
.portfolio-hint {
    display: inline-block;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

/* ================= ESTRUTURA DO MODAL DA GALERIA ================= */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
}

.modal-wrapper {
    background-color: var(--color-black-light);
    border: 1px solid #222;
    max-width: 1000px;
    width: 100%;
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-wrapper h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-yellow);
    padding-bottom: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-modal:hover {
    color: var(--color-red);
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
}

.modal-gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid #333;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.modal-gallery-grid img:hover {
    transform: scale(1.02);
    border-color: var(--color-yellow);
}

/* ================= DIFERENCIAIS ================= */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.diff-card {
    background: #222;
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-yellow);
}

.diff-card h4 {
    color: var(--color-white);
    font-size: 1.2rem;
}

.diff-card p {
    color: #aaaaaa;
    margin: 0;
}

/* ================= PROCESSO ================= */
.processo-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.processo-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-black);
    color: var(--color-yellow);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
}

.processo-step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dddddd;
    z-index: 1;
}

.processo-step:last-child::before {
    display: none;
}

.processo-step h4 {
    font-size: 1.2rem;
}

/* ================= CONTATO ================= */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contato-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contato-texto h3 {
    color: var(--color-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contato-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contato-form {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-gray-light);
    transition: border-color var(--transition-speed) ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background-color: var(--color-white);
}

.btn-primary.w-100:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* ================= FOOTER ================= */
#footer {
    background-color: var(--color-black);
    color: #aaaaaa;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 350px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* ================= ANIMAÇÕES ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 992px) {
    .sobre-grid, .contato-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .processo-step::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner .nav-links, .header-inner .desktop-only {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    /* Modal Celular */
    .gallery-modal {
        padding: 20px 10px;
    }
    .modal-wrapper {
        padding: 20px 15px;
    }
    .modal-wrapper h3 {
        font-size: 1.3rem;
        padding-right: 35px;
    }
    .modal-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .modal-gallery-grid img {
        height: 190px;
    }
}

/* ================= AJUSTES ATUAIS - HERO E NOVAS SEÇÕES ================= */

/* Navbar transparente */
#header {
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-links a {
    color: var(--color-white) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.nav-links a:hover {
    color: var(--color-yellow) !important;
}

.hamburger span {
    background-color: var(--color-white);
}

/* Texto menor abaixo do título principal */
#hero .hero-content p {
    font-size: 1rem !important;
    line-height: 1.55;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero centralizado e mais baixo */
#hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    transform: translateX(0) translateY(290px) !important;
}

#hero .hero-content.fade-in {
    transform: translateX(0) translateY(330px) !important;
}

#hero .hero-content.fade-in.visible {
    transform: translateX(0) translateY(290px) !important;
}

#hero .hero-buttons {
    justify-content: center;
}

/* Área de estruturas no lugar de Projetos em Destaque */
.portfolio-servicos {
    background-color: var(--color-white);
}

.servico-categoria {
    margin-top: 4rem;
}

.servico-categoria:first-of-type {
    margin-top: 0;
}

.categoria-header {
    margin-bottom: 1.5rem;
}

.categoria-tag {
    display: inline-block;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.06em;
}

.categoria-header h3 {
    font-size: 2.2rem;
    margin-bottom: 0;
    color: var(--color-black);
}

.categoria-grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

.categoria-card {
    position: relative;
    min-height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--color-black);
}

.categoria-card-wide {
    min-height: 340px;
}

.categoria-img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(45deg, #111, #222);
    border: 1px solid #333;
    transition: transform 0.5s ease;
}

.categoria-card:hover .categoria-img {
    transform: scale(1.05);
}

.categoria-card:nth-child(2n) .categoria-img {
    background: linear-gradient(45deg, #111, #1A1A1A 40%, rgba(26,91,156,0.45));
}

.categoria-card:nth-child(3n) .categoria-img {
    background: linear-gradient(45deg, #111, #1A1A1A 40%, rgba(227,0,15,0.32));
}

.categoria-card:nth-child(4n) .categoria-img {
    background: linear-gradient(45deg, #111, #1A1A1A 40%, rgba(255,204,0,0.28));
}

.categoria-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.4rem 1.4rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 60%, rgba(0,0,0,0.45) 82%, transparent 100%);
    color: var(--color-white);
}

.categoria-info h4 {
    color: var(--color-white);
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .categoria-card,
    .categoria-card-wide {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    #hero .hero-content,
    #hero .hero-content.fade-in,
    #hero .hero-content.fade-in.visible {
        transform: translateX(0) translateY(80px) !important;
    }

    #hero .hero-content p {
        font-size: 0.95rem !important;
    }

    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .categoria-header h3 {
        font-size: 1.8rem;
    }

    .nav-active a {
        color: var(--color-black) !important;
        text-shadow: none;
    }
}


/* ================= AJUSTES FINAIS - VÍDEO E GALERIAS CLICÁVEIS ================= */

#hero .hero-video {
    opacity: 1 !important;
    filter: brightness(1.04) contrast(1.05) saturate(1.05) !important;
}

#hero .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.38) 0%,
        rgba(0,0,0,0.24) 48%,
        rgba(0,0,0,0.12) 100%
    ) !important;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.categoria-card {
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    font-family: inherit;
    text-align: left;
    padding: 0;
}

.categoria-card:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 4px;
}

.categoria-hint {
    display: inline-block;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.modal-gallery-grid .gallery-loading,
.modal-gallery-grid .gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #dddddd;
    padding: 24px;
    font-size: 1rem;
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}


/* ================= AJUSTES JEAN - VÍDEO MAIS CLARO, CARDS COM FOTO 1 E CLIQUE ================= */
#hero .hero-content p {
    font-size: 1.05rem !important;
    max-width: 720px;
}

#hero .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.10) 50%,
        rgba(0,0,0,0.06) 100%
    ) !important;
}

#hero .hero-video {
    opacity: 1 !important;
    filter: brightness(1.08) contrast(1.03) saturate(1.04) !important;
}

.categoria-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    min-height: 300px;
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-black);
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    font-family: inherit;
}

.categoria-card-wide {
    min-height: 340px;
}

.categoria-img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background-color: #121212;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.45s ease;
}

.categoria-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 14%, rgba(0,0,0,0.35) 46%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
}

.categoria-card:hover .categoria-img,
.categoria-card:focus-visible .categoria-img {
    transform: scale(1.04);
}

.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.categoria-card .categoria-info {
    z-index: 2;
}

.categoria-card .categoria-info h4 {
    position: relative;
    z-index: 2;
}

.categoria-card .categoria-hint {
    position: relative;
    z-index: 2;
}

.categoria-card.sem-foto .categoria-img {
    background-image: linear-gradient(135deg, #111111 0%, #1d1d1d 55%, #272727 100%);
}

.categoria-card.sem-foto::before {
    content: 'Adicione a foto-1 nesta pasta';
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(0,0,0,0.62);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
}

.close-modal {
    background: transparent;
    border: none;
    line-height: 1;
}

@media (max-width: 768px) {
    #hero .hero-content p {
        font-size: 0.95rem !important;
    }
}


/* =========================================================
   CORREÇÃO FINAL - CARDS CLICÁVEIS, FOTO DE CAPA E VÍDEO
   ========================================================= */

/* Deixa o vídeo do hero mais visível */
#hero .hero-video {
    opacity: 1 !important;
    filter: brightness(1.10) contrast(1.03) saturate(1.05) !important;
}

/* Reduz a camada escura sobre o vídeo */
#hero .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.10) 50%,
        rgba(0,0,0,0.06) 100%
    ) !important;
}

/* Cards clicáveis */
.categoria-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    border: none !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #111111;
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    font-family: inherit;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* Mantém as caixas com proporção visual bem ajustada */
.categoria-card,
.categoria-card-wide {
    min-height: unset !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
}

/* Onde a imagem de capa entra */
.categoria-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: unset !important;
    background: #111111;
    border: none !important;
    overflow: hidden;
}

/* A imagem sempre preenche o card */
.categoria-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.45s ease;
}

/* Efeito ao passar o mouse */
.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.categoria-card:hover .categoria-img img,
.categoria-card:focus-visible .categoria-img img {
    transform: scale(1.04);
}

/* Gradiente por cima da imagem para o texto ficar legível */
.categoria-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.72) 24%,
        rgba(0,0,0,0.26) 58%,
        rgba(0,0,0,0.06) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Informação por cima da imagem */
.categoria-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    padding: 3rem 1.4rem 1.4rem;
    background: transparent !important;
    color: var(--color-white);
}

.categoria-info h4 {
    color: var(--color-white);
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 0;
    letter-spacing: 0.02em;
}

.categoria-hint {
    display: inline-block;
    background-color: var(--color-yellow);
    color: var(--color-black);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

/* Quando ainda não tiver foto-1 na pasta */
.categoria-card.sem-foto .categoria-img {
    background: linear-gradient(135deg, #111111 0%, #1f1f1f 55%, #2b2b2b 100%);
}

.categoria-card.sem-foto .categoria-img::before {
    content: "Adicione foto-1.jpg nesta pasta";
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(0,0,0,0.65);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 4px;
}

/* Modal da galeria */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.94);
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
}

.modal-wrapper {
    background-color: var(--color-black-light);
    border: 1px solid #222;
    max-width: 1100px;
    width: 100%;
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #ffffff;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-modal:hover {
    color: var(--color-yellow);
}

.modal-wrapper h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-yellow);
    padding-bottom: 10px;
    padding-right: 42px;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 20px;
}

.modal-gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--border-radius);
    border: 2px solid #333;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.modal-gallery-grid img:hover {
    transform: scale(1.02);
    border-color: var(--color-yellow);
}

.modal-gallery-grid .gallery-loading,
.modal-gallery-grid .gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #dddddd;
    padding: 24px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .categoria-card,
    .categoria-card-wide {
        aspect-ratio: 1 / 1;
    }

    .modal-wrapper {
        padding: 20px 15px;
    }

    .modal-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-gallery-grid img {
        height: 210px;
    }
}


/* =========================================================
   FOTO EXPANDIDA AO CLICAR NA IMAGEM DA GALERIA
   ========================================================= */

.modal-gallery-grid img {
    cursor: zoom-in;
}

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    padding: 36px;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.65);
}

.image-lightbox-close {
    position: fixed;
    top: 22px;
    right: 30px;
    z-index: 3002;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.image-lightbox-close:hover {
    background: var(--color-yellow);
    color: var(--color-black);
}

.image-lightbox-prev,
.image-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3002;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.image-lightbox-prev {
    left: 28px;
}

.image-lightbox-next {
    right: 28px;
}

.image-lightbox-prev:hover,
.image-lightbox-next:hover {
    background: var(--color-yellow);
    color: var(--color-black);
}

@media (max-width: 768px) {
    .image-lightbox {
        padding: 18px;
    }

    .image-lightbox img {
        max-width: 94vw;
        max-height: 82vh;
    }

    .image-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .image-lightbox-prev,
    .image-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.55rem;
    }

    .image-lightbox-prev {
        left: 12px;
    }

    .image-lightbox-next {
        right: 12px;
    }
}
