/* CSS Variables */
:root {
    --primary-black: #000000;
    --secondary-black: #111111;
    --dark-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --light-gray: #404040;
    --accent-gray: #606060;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --glow-color: rgba(96, 96, 96, 0.6);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Cinzel', serif;
    --font-secondary: 'Noto Sans JP', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-black);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(96, 96, 96, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    max-width: 1400px;
    margin: 0 auto;
}

    .nav-container {
        padding: 0 15px;
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.logo-image {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(96, 96, 96, 0.5))
            brightness(1.1)
            contrast(1.2)
            saturate(1.3);
    transition: var(--transition-smooth);
}

.logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
            brightness(1.3)
            contrast(1.4)
            saturate(1.5);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gray);
    text-shadow: 0 0 15px rgba(96, 96, 96, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

    .nav-link {
        color: rgba(200, 200, 200, 0.9);
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        transition: var(--transition-smooth);
        position: relative;
        padding: 10px 15px;
        border-radius: 8px;
        text-align: center;
    }

    .nav-link:hover,
    .nav-link.active {
        color: rgba(255, 255, 255, 1);
        background: rgba(96, 96, 96, 0.1);
    }.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(150, 150, 150, 0.8), rgba(200, 200, 200, 0.9));
    transition: var(--transition-smooth);
}

    .nav-menu.desktop-menu {
        display: flex;
    }

    .hamburger-menu {
        display: none;
    }

    .mobile-menu-overlay {
        display: none;
    }

/* Mobile Hamburger Menu */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
        background: none;
        border: none;
        gap: 4px;
        margin-left: auto;
    }

    .hamburger-line {
        width: 25px;
        height: 3px;
        background: var(--text-white);
        transition: var(--transition-smooth);
        border-radius: 2px;
    }

    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 70px;
        right: 0;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(96, 96, 96, 0.3);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        padding: 20px 0;
    }

    .mobile-menu-header {
        padding: 20px;
        border-bottom: 1px solid rgba(96, 96, 96, 0.3);
        margin-bottom: 10px;
        text-align: center;
    }

    .mobile-menu-logo {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 10px;
        filter: drop-shadow(0 0 10px rgba(96, 96, 96, 0.5));
    }

    .mobile-menu-header p {
        font-size: 0.9rem;
        color: rgba(200, 200, 200, 0.7);
        margin: 0;
        font-weight: 300;
    }

    .mobile-menu-overlay.active {
        transform: translateX(0);
    }

    .mobile-menu-overlay .nav-link {
        font-size: 1.1rem;
        margin: 5px 20px;
        padding: 12px 20px;
        border-radius: 8px;
        background: rgba(96, 96, 96, 0.1);
        border: 1px solid rgba(96, 96, 96, 0.2);
        text-align: left;
        transition: var(--transition-smooth);
        font-weight: 500;
    }

    .mobile-menu-overlay .nav-link:hover {
        background: rgba(96, 96, 96, 0.2);
        transform: translateX(5px);
        border-color: rgba(150, 150, 150, 0.4);
    }

    /* Overlay escuro quando menu está aberto */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* Overlay escuro quando menu está aberto */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.mobile-menu-open::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Full-screen samurai background */
    background-image: url('../images/samurai-bg.png');
    background-size: contain;
    background-position: 80% 120px;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: none;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 100vh;
}

/* Hide inline samurai image (we use the hero-section background instead) */
.samurai-bg {
    display: none;
}

.hero-text {
    animation: fadeInUp 1.5s ease-out;
    width: 100%;
    justify-self: start;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-top: -15px;
}

.kanji-logo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 30px rgba(96, 96, 96, 0.8));
    animation: glow 2s ease-in-out infinite alternate;
    margin-right: 20px;
    position: relative;
}

.kanji-logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(150, 150, 150, 0.8), rgba(200, 200, 200, 0.9), rgba(150, 150, 150, 0.8));
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(150, 150, 150, 0.5);
}

.kanji-shadow {
    font-size: 5rem;
    color: var(--accent-gray);
    text-shadow: 0 0 30px rgba(96, 96, 96, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.title-main {
    background: linear-gradient(45deg, var(--accent-gray), var(--light-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow:
        0 0 0 rgba(255, 255, 255, 1),
        0 0 5px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(255, 255, 255, 0.4);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-gray), var(--light-gray));
    color: var(--primary-black);
    box-shadow: 0 5px 15px rgba(96, 96, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 96, 96, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-gray);
}

.btn-secondary:hover {
    background: var(--accent-gray);
    color: var(--primary-black);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
    /* Efeito de suavização das bordas */
    filter: blur(0.5px);
    transform: scale(1.02);
}

.samurai-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    /* Efeito de bordas suaves com fade */
    mask-image: linear-gradient(to bottom,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%),
        linear-gradient(to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%),
        linear-gradient(to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%);
    -webkit-mask-composite: source-in;
}

.samurai-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2) blur(0.5px);
    /* Suavização adicional das bordas */
    transform: scale(1.05);
}

.wind-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(96, 96, 96, 0.1) 50%,
        transparent 70%);
    animation: windFlow 3s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-gray);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-gray);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-gray);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
}

/* Imagens específicas para cada seção */
.professores-title::after {
    background-image: url('../images/katana.png');
    width: 300px;
    height: 60px;
}

.modalidades-title::after {
    background-image: url('../images/kabuto.png');
    bottom: -24px;
    width: 200px;
    height: 45px;
}

.horarios-title::after {
    background-image: url('../images/monumento.png');
    bottom: -26px;
    width: 280px;
    height: 47px;
}

.duvidas-title::after {
    background-image: url('../images/samurai_dojo.png');
    width: 260px;
    height: 52px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Professores Section */
.professores-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
}

.professores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(96,96,96,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(96,96,96,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(96,96,96,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.professores-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-container {
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.professor-card {
    flex: 0 0 350px;
    height: 520px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.professor-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.professor-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    flex-shrink: 0;
}

.professor-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg, rgb(255, 255, 255) 0deg 15deg, rgb(241, 54, 54) 15deg 30deg);
    animation: rotate 90s linear infinite;
    pointer-events: none;
    opacity: 1;
    z-index: -1;
}

.professor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
    filter: contrast(1.1) brightness(1.05);
}

.professor-card:hover .professor-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--medium-gray), var(--dark-gray));
    color: var(--accent-gray);
    font-size: 3rem;
}

.professor-info {
    padding: 20px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.professor-name {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.professor-specialty {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.specialty-main {
    font-weight: 600;
    color: var(--accent-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.specialty-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.professor-history {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    margin-top: 5px;
    flex: 1;
}

.professor-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gray), var(--light-gray));
    opacity: 0;
    transition: var(--transition-smooth);
}

.professor-card:hover .professor-glow {
    opacity: 1;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-prev,
.carousel-next {
    background: var(--dark-gray);
    border: 2px solid var(--accent-gray);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.carousel-prev::before,
.carousel-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.carousel-prev:active::before,
.carousel-next:active::before {
    width: 60px;
    height: 60px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent-gray);
    color: var(--primary-black);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(196, 41, 41, 0.3);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

/* Carousel Container Responsiveness */
.carousel-container {
    display: flex;
    gap: 30px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-container:active {
    cursor: grabbing;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .professores-carousel {
        padding: 0 15px;
        max-width: 100%;
    }

    .carousel-container {
        gap: 15px;
    }

    .professor-card {
        flex: 0 0 310px;
        height: 450px;
    }

    .professor-image {
        height: 200px;
    }

    .placeholder-image {
        height: 200px;
        font-size: 2.5rem;
    }

    .professor-info {
        padding: 18px;
    }

    .professor-name {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .specialty-main {
        font-size: 0.8rem;
    }

    .specialty-sub {
        font-size: 0.7rem;
    }

    .professor-history {
        font-size: 0.8rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        margin-top: 5px;
        flex: 1;
    }

    .carousel-nav {
        gap: 15px;
        margin-top: 30px;
    }

    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .professores-carousel {
        padding: 0 10px;
    }

    .carousel-container {
        gap: 12px;
    }

    .professor-card {
        flex: 0 0 270px;
        height: 400px;
    }

    .professor-image {
        height: 180px;
    }

    .placeholder-image {
        height: 180px;
        font-size: 2rem;
    }

    .professor-info {
        padding: 15px;
    }

    .professor-name {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .professor-specialty {
        margin-bottom: 0;
    }

    .specialty-main {
        font-size: 0.75rem;
    }

    .specialty-sub {
        font-size: 0.65rem;
    }

    .professor-history {
        font-size: 0.75rem;
        line-height: 1.4;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        margin-top: 5px;
        flex: 1;
    }

    .carousel-nav {
        gap: 10px;
        margin-top: 25px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
}

/* Modalidades Section */
.modalidades-section {
    padding: 100px 0;
    background: var(--secondary-black);
}

.honeycomb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.honeycomb-cell {
    position: relative;
    background: linear-gradient(135deg, rgba(96, 96, 96, 0.1), rgba(96, 96, 96, 0.2));
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    overflow: hidden;
    border: 1px solid rgba(96, 96, 96, 0.3);
}

.honeycomb-cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modalidade-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.honeycomb-cell:hover .modalidade-icon {
    transform: scale(1.1);
    color: var(--text-white);
}

.modalidade-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.modalidade-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.honeycomb-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(96, 96, 96, 0.6);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.honeycomb-cell:hover .honeycomb-glow {
    transform: scaleX(1);
}

/* Horários Section */
.horarios-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--primary-black) 100%);
}

.horarios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.grade-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.grade-image img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.grade-image:hover img {
    transform: scale(1.05);
}

.grade-placeholder {
    background: var(--dark-gray);
    border: 2px dashed var(--accent-gray);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-gray);
}

.grade-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.categorias-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.categoria-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--dark-gray);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.categoria-item:hover {
    background: var(--medium-gray);
    transform: translateX(10px);
}

.categoria-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gray), var(--light-gray));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.categoria-item h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.categoria-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animação para categorias dinâmicas */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dúvidas Section */
.duvidas-section {
    padding: 100px 0;
    background: var(--primary-black);
}

.duvidas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.duvida-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--dark-gray);
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(96, 96, 96, 0.2);
}

.duvida-item:hover {
    background: var(--medium-gray);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.duvida-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gray), var(--light-gray));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.duvida-content h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.duvida-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Formulário de Dúvidas */
.duvidas-form-container {
    margin-top: 60px;
    padding: 40px;
    background: var(--dark-gray);
    border-radius: 20px;
    border: 1px solid rgba(96, 96, 96, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.duvidas-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.duvidas-form-header h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.duvidas-form-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.duvidas-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px 20px;
    background: var(--secondary-black);
    border: 2px solid rgba(96, 96, 96, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-gray);
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-select::placeholder {
    color: rgba(200, 200, 200, 0.6);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    appearance: none;
}

.btn-form-submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-form-submit:active {
    transform: translateY(0);
}

.btn-form-submit i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--secondary-black);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(96, 96, 96, 0.3);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-image {
    height: 40px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
}

.footer-text {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 0.2;
}

/* Ícones FontAwesome maiores */
.social-link .fab,
.social-link .fas {
    font-size: 28px;
    transition: all 0.3s ease;
}

.social-link:hover .fab,
.social-link:hover .fas {
    font-size: 32px;
}

/* WhatsApp - Verde */
.social-link:has(.fa-whatsapp),
.social-link.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation-delay: 0s;
}

.social-link:has(.fa-whatsapp):hover,
.social-link.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* Instagram - Gradiente */
.social-link:has(.fa-instagram),
.social-link.instagram-btn {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    animation-delay: 1s;
}

.social-link:has(.fa-instagram):hover,
.social-link.instagram-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(220, 39, 67, 0.4);
}

/* Localização - Vermelho */
.social-link:has(.fa-map-marker-alt),
.social-link.location-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation-delay: 0.5s;
}

.social-link:has(.fa-map-marker-alt):hover,
.social-link.location-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

/* Animação de flutuar */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .footer-social {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .social-link .fab {
        font-size: 24px;
    }

    .social-link:hover .fab {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        bottom: 15px;
        right: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link .fab {
        font-size: 20px;
    }

    .social-link:hover .fab {
        font-size: 22px;
    }
}

/* Developer Credit Styles */
.developer-credit {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(96, 96, 96, 0.2);
    text-align: center;
}

.developer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-secondary);
}

.developer-text i {
    color: var(--accent-gray);
    margin-right: 6px;
}

.developer-link {
    color: var(--accent-gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-gray), var(--primary-red));
    transition: width 0.3s ease;
}

.developer-link:hover {
    color: var(--primary-red);
    transform: translateY(-1px);
}

.developer-link:hover::after {
    width: 100%;
}

.developer-signature {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(171, 171, 171, 0.8);
    font-style: italic;
}

.developer-signature i {
    color: var(--primary-red);
    margin-right: 5px;
}

/* Responsive Developer Credit */
@media (max-width: 768px) {
    .developer-credit {
        margin-top: 30px;
        padding-top: 25px;
    }

    .developer-text {
        font-size: 0.85rem;
    }

    .developer-signature {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .developer-credit {
        margin-top: 25px;
        padding-top: 20px;
    }

    .developer-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .developer-signature {
        font-size: 0.75rem;
        margin-top: 6px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(96, 96, 96, 0.8);
    }
    to {
        text-shadow: 0 0 40px rgba(96, 96, 96, 1);
    }
}

@keyframes windFlow {
    0%, 100% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) skewX(-15deg);
        opacity: 0.6;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 30px 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .hero-close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 24px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .hero-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .title-main {
        font-size: 2rem;
    }

    .kanji-shadow {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .nav-logo {
        display: flex;
        position: absolute;
        top: 10px;
        left: 15px;
        z-index: 1001;
    }

    /* .hero-section::before {
        display: block;
    } */ /* Removido para manter imagem samurai-bg.png mais clara no mobile */

    .professor-card {
        flex: 0 0 300px;
    }

    .horarios-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .categoria-item {
        flex-direction: column;
        text-align: center;
    }

    .duvida-item {
        flex-direction: column;
        text-align: center;
    }

    .scroll-indicator {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 20px !important;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 12px;
        padding: 25px 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .professor-card {
        flex: 0 0 280px;
    }

    .modalidades-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .horarios-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Large Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .navbar {
        padding: 15px 20px;
        background: #000000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid rgba(96, 96, 96, 0.3);
    }

    .nav-logo {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .nav-menu.desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
        margin-left: 15px;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-white);
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .mobile-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 9999;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-item {
        color: var(--text-white);
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 500;
        margin: 20px 0;
        padding: 10px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
        width: 200px;
        text-align: center;
    }

    .mobile-menu-item:hover {
        background: rgba(96, 96, 96, 0.2);
        border-left-color: rgba(150, 150, 150, 0.8);
        transform: scale(1.05);
    }

    .navbar {
        max-width: none;
        margin: 0;
    }

    .logo-image {
        height: 40px;
    }

    .logo-text {
        font-size: 1.1rem;
        display: block;
    }

    .hero-section {
        min-height: 80vh;
        padding: 95px 20px 80px;
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .title-main {
        font-size: 2.2rem;
    }

    .kanji-logo {
        height: 60px;
        width: 60px;
    }

    .kanji-shadow {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }

    .nav-logo {
        display: flex;
        position: absolute;
        top: 10px;
        left: 15px;
        z-index: 1001;
    }

    .professor-card {
        flex: 0 0 300px;
    }

    .modalidades-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .honeycomb-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .honeycomb-cell {
        width: 100%;
        margin: 0 auto;
    }

    .modalidade-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px auto; /* Centralizar horizontalmente */
        font-size: 3rem; /* Tamanho menor para mobile */
    }

    .horarios-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .categoria-item {
        flex-direction: column;
        text-align: center;
    }

    .duvida-item {
        flex-direction: column;
        text-align: center;
    }

    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .btn-tooltip {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* Mobile Small Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .navbar {
        padding: 10px 15px;
        background: #000000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid rgba(96, 96, 96, 0.3);
    }

    .nav-container {
        padding: 0 10px;
        height: 60px;
        position: relative;
    }

    .navbar {
        max-width: none;
        margin: 0;
    }

    .hero-section {
        min-height: 70vh;
        padding: 95px 15px 60px;
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .professor-card {
        flex: 0 0 280px;
        margin: 0 10px;
    }

    .modalidade-card {
        padding: 20px;
    }

    .modalidade-icon {
        width: 60px;
        height: 60px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px auto; /* Centralizar horizontalmente */
    }

    .modalidade-title {
        font-size: 1.2rem;
    }

    .horarios-content {
        gap: 20px;
    }

    .categoria-item {
        padding: 15px;
    }

    .duvida-item {
        padding: 20px;
        margin: 10px;
    }

    .duvida-avatar {
        width: 50px;
        height: 50px;
    }

    .duvida-content h4 {
        font-size: 1rem;
    }

    .duvida-content p {
        font-size: 0.9rem;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

.hero-close-btn {
    display: none;
}

/* Academia Gallery Section */
.academia-gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    position: relative;
    overflow: hidden;
}

.academia-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.academia-title {
    background: linear-gradient(45deg, var(--accent-gray), var(--text-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Vertical mosaic container (quebra-cabeça) */
.vertical-mosaic {
    --mosaic-columns: 6;
    --mosaic-row: 10px; /* altura base de linha */
    display: grid;
    grid-template-columns: repeat(var(--mosaic-columns), 1fr);
    grid-auto-rows: var(--mosaic-row);
    grid-auto-flow: dense; /* compacta, preenchendo buracos */
    gap: 8px;
    width: min(92vw, 1000px);
    max-height: 700px; /* limite máximo de altura */
    margin: 60px auto 0;
    border-radius: 18px;
    overflow-y: auto; /* barra de rolagem vertical quando necessário */
    background: rgba(255,255,255,0.02);
    padding: 8px; /* pequeno padding interno para moldura */
}

.vertical-mosaic .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
    background: var(--primary-black);
}

.vertical-mosaic .gallery-image-container,
.vertical-mosaic .gallery-image {
    width: 100%;
    height: 100%; /* preencher totalmente o bloco calculado */
}

.vertical-mosaic .gallery-image {
    display: block;
    object-fit: cover; /* cobre sem distorcer e sem sobras */
}

/* Evitar salto/escala que cria "buracos" visuais no mosaico */
.vertical-mosaic .gallery-item:hover {
    transform: none;
}

/* Removido layout variável para manter mosaico uniforme */

/* Removidos layouts condicionais; grid uniforme cobre todos os casos */

/* Info Card separado da galeria */
.gallery-info-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-info-card .info-content {
    text-align: center;
    color: var(--text-white);
}

.gallery-info-card .info-icon {
    font-size: 3rem;
    color: var(--accent-gray);
    margin-bottom: 20px;
}

.gallery-info-card h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-white);
}

.gallery-info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.gallery-info-card .info-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gallery-info-card .stat {
    text-align: center;
}

.gallery-info-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gray);
    margin-bottom: 5px;
}

.gallery-info-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

/* Remover min-heights específicos que causavam tamanhos diferentes */
.gallery-item.featured .gallery-image-container,
.gallery-item.wide .gallery-image-container {
    min-height: auto; /* Remover min-heights específicos */
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px; /* Padding menor */
    opacity: 0;
    transform: translateY(20px); /* Movimento menor */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden; /* Limita o conteúdo ao tamanho da caixa */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile: mostrar overlay sempre para permitir clique no botão */
@media (max-width: 768px) {
    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.gallery-title {
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1.2rem; /* Tamanho menor */
    font-weight: 700;
    margin-bottom: 10px; /* Margin menor */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-description {
    color: var(--primary-black);
    font-size: 0.85rem; /* Tamanho menor */
    line-height: 1.5;
    margin: 0;
}

.gallery-zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.gallery-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--accent-gray);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.gallery-actions {
    display: flex;
    justify-content: flex-end;
}

.gallery-btn {
    width: 40px; /* Tamanho menor */
    height: 40px; /* Tamanho menor */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-btn.primary {
    width: auto;
    padding: 12px 24px;
    border-radius: 25px;
    background: var(--accent-gray);
    color: var(--primary-black);
    font-size: 0.9rem;
    font-weight: 600;
    gap: 8px;
}

.gallery-btn.primary:hover {
    background: var(--text-white);
    transform: translateY(-2px);
}

/* Info Card Styles */
.info-content {
    text-align: center;
    padding: 30px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gray), var(--light-gray));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.info-content h3 {
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.info-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gray);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--primary-black);
    border-radius: 20px;
    overflow: hidden; /* Muda para hidden para permitir scroll interno */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-image {
    width: 100%;
    height: 60vh; /* Define altura fixa para preencher */
    max-width: 90vw;
    object-fit: cover; /* Corta para preencher sem bordas pretas */
    display: block;
}

.lightbox-info {
    padding: 30px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
}

.lightbox-title {
    color: var(--text-white);
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.lightbox-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7); /* Fundo escuro para visibilidade */
    border: 2px solid rgba(255, 255, 255, 0.5); /* Borda branca */
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .vertical-mosaic {
        --mosaic-columns: 5;
        --mosaic-row: 10px;
        width: min(94vw, 760px);
        aspect-ratio: 2 / 3;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .academia-gallery-section {
        padding: 80px 0;
    }

    .academia-title {
        font-size: 2rem;
    }

    .vertical-mosaic {
        /* Solução prática: flexbox wrap para mobile */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: flex-start;
        width: 94vw;
        gap: 6px;
        margin-top: 40px;
        padding: 4px;
        min-height: auto;
        max-height: none;
        overflow: visible;
        /* Otimizações para scroll suave */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Evitar repaints durante scroll */
        will-change: transform;
        backface-visibility: hidden;
    }

    .vertical-mosaic .gallery-item {
        /* Flex base para 2 colunas com gap */
        flex: 0 0 calc(50% - 3px);
        height: 180px; /* altura padrão, será sobrescrita pelo JS */
        margin-bottom: 6px;
        transition: all 0.3s ease;
        /* Fixar layout para evitar mudanças durante scroll */
        will-change: auto;
        contain: layout style paint;
        transform: translateZ(0); /* Forçar aceleração de hardware */
    }

    /* Classes dinâmicas baseadas no aspecto da imagem */
    .vertical-mosaic .gallery-item.panoramic {
        border-radius: 8px;
    }

    .vertical-mosaic .gallery-item.landscape {
        border-radius: 10px;
    }

    .vertical-mosaic .gallery-item.square {
        border-radius: 12px;
    }

    .vertical-mosaic .gallery-item.portrait {
        border-radius: 14px;
    }

    .vertical-mosaic .gallery-item.full-width {
        margin-bottom: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .vertical-mosaic .gallery-image-container {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        /* Otimizações para performance durante scroll */
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .gallery-overlay {
        padding: 20px;
    }

    .gallery-title {
        font-size: 1.3rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .info-content {
        padding: 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    /* Removido grid responsivo antigo da gallery-masonry para mobile */

    .gallery-overlay {
        padding: 20px;
    }

    .gallery-title {
        font-size: 1.3rem;
    }

    .gallery-description {
        font-size: 0.9rem;
    }

    .gallery-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .info-content {
        padding: 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-content h3 {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .academia-gallery-section {
        padding: 60px 0;
    }

    .vertical-mosaic {
        /* Solução prática: flexbox wrap para celulares */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: flex-start;
        width: 96vw;
        gap: 4px;
        padding: 3px;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .vertical-mosaic .gallery-item {
        /* Flex base para 2 colunas menores */
        flex: 0 0 calc(50% - 2px);
        height: 160px; /* altura padrão, será sobrescrita pelo JS */
        margin-bottom: 4px;
        transition: all 0.3s ease;
    }

    /* Classes dinâmicas para celulares */
    .vertical-mosaic .gallery-item.panoramic {
        border-radius: 6px;
    }

    .vertical-mosaic .gallery-item.landscape {
        border-radius: 8px;
    }

    .vertical-mosaic .gallery-item.square {
        border-radius: 10px;
    }

    .vertical-mosaic .gallery-item.portrait {
        border-radius: 12px;
    }

    .vertical-mosaic .gallery-item.full-width {
        margin-bottom: 6px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    }

    .gallery-image-container {
        min-height: 200px;
    }

    .gallery-overlay {
        padding: 15px;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.85rem;
    }

    .gallery-btn.primary {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .lightbox-modal {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 60px;
        height: 60px;
        background: #000000cc; /* Fundo sólido para Safari */
        border: 2px solid rgba(255, 255, 255, 0.5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        top: calc(50% - 30px);
        transform: none;
        -webkit-transform: none;
        -webkit-appearance: none;
        appearance: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .lightbox-info {
        padding: 20px;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }

    .gallery-description {
        display: block; /* Mostra descrição no mobile também */
    }
}

/* Mobile Styles for Hero Actions */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        justify-self: center;
        max-width: 600px;
    }

    .hero-actions {
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
        text-align: center;
    }
}

/* Estilos para o Balão de Localização */
.location-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b) !important;
    cursor: pointer;
    animation-delay: 0.5s;
}

.location-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226) !important;
    transform: scale(1.1);
}

/* Modal de Localização */
.location-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.location-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(180, 180, 180, 0.6),
        0 0 40px rgba(150, 150, 150, 0.4),
        0 0 80px rgba(120, 120, 120, 0.3),
        0 0 120px rgba(100, 100, 100, 0.2);
    border: 2px solid rgba(180, 180, 180, 0.4);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.location-modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(200, 200, 200, 0.8), rgba(150, 150, 150, 0.6), rgba(200, 200, 200, 0.8));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.location-modal-header {
    background: linear-gradient(45deg, var(--accent-gray), var(--light-gray));
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.location-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
}

.location-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.location-modal-body {
    padding: 25px;
    text-align: center;
}

.location-address {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent-gray);
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-btn-action {
    background: linear-gradient(45deg, #606060, #404040);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.location-btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.location-btn-action:hover::before {
    left: 100%;
}

.location-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.waze-btn:hover {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
}

.maps-btn:hover {
    background: linear-gradient(45deg, #4CAF50, #388E3C);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .location-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .location-modal-header {
        padding: 15px 20px;
    }
    
    .location-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .location-modal-body {
        padding: 20px;
    }
    
    .location-address {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .location-btn-action {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}