/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f3f;
    --primary-dark: #0f3d26;
    --primary-light: #2d7a52;
    --secondary-color: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #dee2e6;
    --shadow: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #1a5f3f, #0f3d26);
    --gradient-secondary: linear-gradient(135deg, #2c3e50, #34495e);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Navigation */
.main-nav {
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    margin-top: 0;
    width: 100%;
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    opacity: 1;
}

.main-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation inside hero container */
.hero-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 95, 63, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    opacity: 1;
}

/* Navigation inside compact header for non-home pages */
.compact-nav {
    position: relative;
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    z-index: 1000;
    margin-top: 0;
    width: 100%;
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    opacity: 1;
    /* Original styling - same as main-nav */
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
}

/* Fixed navigation when scrolling */
.main-nav.fixed-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    opacity: 1;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.main-nav.fixed-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Scrolled effect */
.main-nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(26, 95, 63, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}



.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.brand-text {
    color: var(--secondary-color);
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffd700 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ffd700;
    transition: var(--transition);
    transform: translateX(-50%);
}

/* Centralizar menu de navegação */
.navbar-nav.mx-auto {
    justify-content: center;
    width: 100%;
}

@media (min-width: 992px) {
    .navbar-nav.mx-auto {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: var(--secondary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Body padding for fixed nav */
body {
    padding-top: 0;
    transition: padding-top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Add padding when nav is fixed - handled by JavaScript */

/* Hero container */
.hero-container {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.hero-section {
    flex: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    width: 100%;
}

/* Logo no hero section - desktop */
.hero-logo {
    max-width: 500px;
    max-height: 250px;
    width: auto;
    height: auto;
    margin-bottom: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Adjust compact header for fixed nav */
.compact-header {
    min-height: 250px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 2rem 0;
}

/* Logo no compact header - desktop */
.compact-logo {
    max-width: 450px;
    max-height: 225px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Compact Header for non-home pages */
.compact-header {
    min-height: 250px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 2rem 0;
}

.compact-logo-section {
    margin-bottom: 1.5rem;
}

.compact-logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    margin: 0 auto;
    display: block;
}

.compact-title {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Estilo elegante para os ícones mobile */
.nav-link[href*="login"], .nav-link[href*="carrinho"] {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem !important;
}

.nav-link[href*="login"]:hover, .nav-link[href*="carrinho"]:hover {
    transform: translateY(-2px);
}

.nav-link[href*="login"] i, .nav-link[href*="carrinho"] i {
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.nav-link[href*="login"]:hover i, .nav-link[href*="carrinho"]:hover i {
    color: #ffd700 !important;
    transform: scale(1.1);
}

/* Estilo específico para ícones mobile */
.d-xl-none .nav-link {
    padding: 0.5rem !important;
}

.d-xl-none .nav-link i {
    font-size: 1.2em;
}

/* Smooth transitions for navigation elements */
.main-nav .navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .navbar-brand {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo do navbar - apenas mobile */
.navbar-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 250px !important;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Brand text removed - only logo in mobile */

/* Menu mobile */
@media (max-width: 991.98px) {
    .main-nav {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        flex: 1;
    }
    
    .navbar-logo {
        height: 55px !important;
        max-width: 200px !important;
    }
    
    /* Brand text removed */
    
    /* Ícones do lado direito (mobile) */
    .d-lg-none .nav-link {
        color: white !important;
        padding: 8px 12px;
        position: relative;
        text-decoration: none;
    }
    
    .d-lg-none .nav-link:hover {
        color: #ffc107 !important;
    }
    
    .d-lg-none .nav-link i {
        font-size: 1.2rem;
    }
    
    /* Badge do carrinho (mobile) */
    .d-lg-none .badge {
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        z-index: 10;
    }
    
    /* Menu dropdown limpo */
    .navbar-collapse {
        margin-top: 10px;
    }
    
    .main-nav .navbar-nav {
        width: 100%;
    }
    
    .main-nav .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .main-nav .navbar-nav .nav-link {
        padding: 12px 15px;
        display: flex;
        align-items: center;
    }
    
    .main-nav .navbar-nav .nav-link i {
        margin-right: 8px;
        width: 20px;
    }
}

/* Botão do menu mobile */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Breadcrumb */
.breadcrumb-nav {
    background-color: var(--bg-light);
    padding: 1rem 0;
    margin-top: 0;
}

.breadcrumb {
    margin-bottom: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}



.compact-logo-section {
    margin-bottom: 1.5rem;
}

.compact-logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    margin: 0 auto;
    display: block;
}

.compact-title {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}



.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-logo {
    max-width: 200px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    box-shadow: var(--shadow);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Icons */
.icon-box {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.icon-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.icon-box h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.icon-box p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: var(--secondary-color);
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .list-unstyled a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer .list-unstyled a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer .contact-info p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer .contact-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer .contact-info a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer .social-links a {
    color: #bdc3c7;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.footer .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Garantir que o menu hambúrguer só apareça em telas pequenas */
@media (min-width: 1200px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        height: 100vh;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        max-width: 350px;
        max-height: 180px;
        width: auto;
        height: auto;
        margin-bottom: 1.5rem;
        object-fit: contain;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Mobile specific adjustments for quem somos */
    .quem-somos-section {
        padding-top: 3rem !important;
    }
    
    /* Adjust when nav is fixed mobile - handled by JavaScript */
    
    /* Compact header mobile */
    .compact-header {
        min-height: 200px;
        padding: 1.5rem 0;
    }
    
    .compact-logo-section {
        margin-bottom: 1rem;
    }
    
    .compact-logo {
        max-width: 300px;
        max-height: 150px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .compact-title {
        font-size: 1.6rem;
    }
    
    .main-nav .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .main-nav .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    .main-nav .navbar-nav .nav-link i {
        display: none;
    }
    
    /* Logo no navbar mobile */
    .navbar-logo {
        height: 50px !important;
        max-width: 180px !important;
        width: auto !important;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    /* Botão hambúrguer */
    .navbar-toggler {
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0.375rem;
    }
    
    /* Ajustar navbar brand no mobile */
    .navbar-brand {
        display: flex;
        align-items: center;
        max-width: 200px;
    }
    
    /* Garantir que o container não estoure */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-logo {
        max-width: 350px;
        max-height: 180px;
        width: auto;
        height: auto;
        margin-bottom: 1.5rem;
        object-fit: contain;
    }
    
    /* Logo ainda menor em telas muito pequenas */
    .navbar-logo {
        max-height: 40px !important;
    }
    
    /* Ajustar botão hambúrguer */
    .navbar-toggler {
        padding: 0.4rem;
    }
    
    .navbar-toggler span {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }

.shadow-sm { box-shadow: var(--shadow) !important; }
.rounded-lg { border-radius: 15px !important; }

.mb-6 { margin-bottom: 4rem !important; }
.mt-6 { margin-top: 4rem !important; }
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 15px 15px;
}

/* Form */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Alert */
.alert {
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    margin: 0 2px;
    border-radius: 10px;
    transition: var(--transition);
}

.page-link:hover {
    color: var(--secondary-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Standardizar títulos das páginas para o estilo de "Nossos Cursos" */
.section .container > .text-center > h1,
.section .container > .text-center > h2,
.section .container .section-title h1,
.section .container .section-title h2,
.section-title h1,
.section-title h2,
.section .container > h1:first-child,
.section .container > h2:first-child {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem;
    text-align: center !important;
}

.section .container > .text-center > p.lead,
.section .container .section-title p,
.section-title p {
    color: var(--text-light) !important;
    font-size: 1.25rem;
}

/* Linha decorativa abaixo dos títulos padronizados */
.section .container > .text-center > h1::after,
.section .container > .text-center > h2::after,
.section .container .section-title h1::after,
.section .container .section-title h2::after,
.section-title h1::after,
.section-title h2::after,
.section .container > h1:first-child::after,
.section .container > h2:first-child::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    margin: 10px auto 0 auto;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(30, 126, 52, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-category:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-overlay i {
    color: var(--secondary-color);
    font-size: 2rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-size: 1.2rem !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.back-to-top:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    background: var(--primary-dark) !important;
}

.back-to-top i {
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* Mobile adjustments for back to top */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 1rem !important;
    }
    
    .back-to-top i {
        font-size: 1rem !important;
    }
}

/* Home Page Styles */
.quem-somos-home-content {
    padding: 2rem 0;
}

/* Fix for quem somos section */
.section {
    padding: 4rem 0;
    position: relative;
}

.section.bg-light {
    background-color: var(--bg-light) !important;
}

/* Specific padding for quem somos section */
.quem-somos-section {
    padding-top: 4rem !important;
}

/* Adjust when nav is fixed - handled by JavaScript */

.quem-somos-texto-home {
    position: relative;
}

.quem-somos-foto-home {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.quem-somos-foto-home:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.quem-somos-foto-home img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-img-top-container {
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Home page mobile styles */
@media (max-width: 768px) {
    .quem-somos-home-content {
        text-align: center;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* Mostrar header mobile */
    .quem-somos-header-mobile {
        display: block !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Esconder título e badge da coluna em mobile */
    .quem-somos-home-content .d-md-none {
        display: none !important;
    }
    
    /* Reordenar para mobile: título → foto → texto */
    .row.align-items-center {
        flex-direction: column;
    }
    
    /* Primeira coluna (texto) */
    .col-lg-6:first-child {
        order: 3; /* Texto fica por último */
    }
    
    /* Segunda coluna (foto) */
    .col-lg-6:last-child {
        order: 2; /* Foto fica no meio */
        margin-bottom: 2rem;
    }
    
    /* Foto responsiva */
    .quem-somos-foto-home {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 0 20px 0 !important;
        float: none !important;
    }
    
    .quem-somos-foto-home img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 250px;
        object-fit: cover;
    }
}
