/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #F39C12;
    --neutral-color: #ECF0F1;
    --text-color: #2C3E50;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ===== NAVEGAÇÃO ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

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

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

/* ===== BOTÕES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    color: var(--white);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: var(--white);
}

.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(--white);
}

/* ===== BOTÃO LOGIN NO MENU ===== */
.navbar .btn-outline-primary {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    line-height: 1.2;
    height: auto;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

/* ===== PÁGINA DE SERVIÇOS ===== */
.service-feature {
    padding: 2rem 0;
}

.service-icon-large {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    text-align: center;
    line-height: 80px;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
}

.detail-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    min-width: 20px;
}

.detail-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.service-image {
    text-align: center;
    padding: 2rem;
}

.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 3rem 2rem;
    border: 2px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Responsividade para serviços */
@media (max-width: 768px) {
    .service-feature {
        padding: 1rem 0;
        text-align: center;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
    
    .image-placeholder {
        padding: 2rem 1rem;
        margin-top: 1rem;
    }
    
    .image-placeholder i {
        font-size: 3rem;
    }
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-transform: capitalize;
}

.status-em-andamento {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-finalizado {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-chegada-materiais {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-manipulacao {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-envase {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-rotulagem {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-liberado-transportadora {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

/* ===== PRODUTO ITEM ===== */
.produto-item {
    transition: all 0.3s ease;
}

.produto-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-table {
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.8)), url('../images/hero-cosmetics.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.1), rgba(243, 156, 18, 0.1));
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== SEÇÕES ===== */
.section {
    padding: 5rem 0;
}

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

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

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

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

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

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

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

.service-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

/* ===== ESTATÍSTICAS ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FORMULÁRIOS ===== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

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

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a252f, var(--primary-color));
    color: var(--white);
}

.footer h5 {
    color: var(--accent-color);
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

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

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-3px);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== RESPONSIVIDADE ===== */
/* Correção para dropdown do menu em tablets e resoluções menores */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: visible;
        padding: 1rem 0;
    }
    
    .navbar-collapse.show {
        overflow-y: auto;
        overflow-x: visible;
        overflow: visible;
    }
    
    /* Garantir que dropdowns não sejam cortados */
    .navbar-collapse .nav-item.dropdown {
        overflow: visible;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        background-color: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.375rem !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        transform: none !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 1050 !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        overflow: visible !important;
        pointer-events: auto !important;
        height: auto !important;
        min-height: auto !important;
        position: static !important;
    }
    
    /* Garantir que o dropdown seja visível mesmo com outros estilos */
    .navbar-nav .nav-item.dropdown .dropdown-menu.show,
    .navbar-collapse .dropdown-menu.show,
    .navbar-collapse.show .dropdown-menu.show,
    .navbar-collapse.show .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
    }
    
    /* Forçar exibição quando tem classe show - regra mais específica */
    .navbar-collapse.show .nav-item.dropdown .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Override qualquer estilo inline que possa estar escondendo */
    .navbar-collapse .dropdown-menu[style*="display: none"] {
        display: block !important;
    }
    
    .navbar-collapse .dropdown-menu.show[style] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: var(--text-color);
        display: block;
        width: 100%;
        clear: both;
        white-space: nowrap;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #e9ecef;
        color: var(--primary-color);
    }
    
    .navbar-nav .dropdown-divider {
        margin: 0.5rem 0;
        border-top: 1px solid #dee2e6;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        display: block;
    }
    
    .navbar-nav .nav-link.dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
    
    /* Garantir que todos os itens do menu sejam visíveis */
    .navbar-nav .nav-item {
        width: 100%;
        display: block;
    }
    
    .navbar-nav .nav-item .badge {
        display: inline-block;
        margin: 0.5rem 1rem;
    }
    
    /* Garantir que o dropdown seja clicável e visível */
    .navbar-nav .dropdown-toggle[aria-expanded="true"] {
        background-color: #e9ecef;
    }
    
    /* Garantir que o dropdown não seja cortado */
    .navbar-nav .nav-item.dropdown {
        position: relative;
        z-index: 1000;
    }
    
    .navbar-nav .dropdown-menu {
        z-index: 1001 !important;
        position: relative !important;
    }
    
    /* Garantir que o container do menu não corte o dropdown */
    .navbar-collapse {
        z-index: 1000;
    }
}

/* Tablets e resoluções médias */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 80vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-top: 0.5rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .hero .container .row {
        padding-top: 2rem;
        padding-bottom: 1rem;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 0.5rem;
    }
}

/* iPad específico - resoluções médias em modo paisagem */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero {
        min-height: 85vh;
        padding-top: 1.5rem;
    }
    
    .hero .container .row {
        padding-top: 2.5rem;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn-floating {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
}

/* ===== UTILIDADES ===== */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

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

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow) !important;
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg) !important;
}

.mt-navbar {
    margin-top: 120px !important; /* Aumentado para dar mais espaço entre menu e conteúdo */
    padding-top: 20px; /* Adiciona padding adicional */
}

.categorias-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
}
.categoria-card {
    flex: 1 1 350px;
    max-width: 100%;
}
.categoria-titulo {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
}
@media (max-width: 991px) {
    .categorias-flex {
        flex-direction: column;
        gap: 2rem 0;
    }
    .categoria-card {
        flex: 1 1 100%;
    }
}

.fomulas-horizontal-list.formulas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}
.formula-card-item.formula-horizontal-card {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 100%;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(44,62,80,0.04);
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    min-height: 56px;
    transition: box-shadow 0.15s;
}
.formula-card-item.formula-horizontal-card:hover {
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
    background: var(--light-gray);
}
@media (max-width: 991px) {
    .fomulas-horizontal-list.formulas-flex {
        flex-direction: column;
        gap: 1rem 0;
    }
    .formula-card-item.formula-horizontal-card {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.formulas-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin: 0;
}
.formula-card-item {
    flex: 1 1 calc(33.333% - 0.67rem);
    min-width: 240px;
    max-width: calc(33.333% - 0.67rem);
    display: flex;
    margin: 0;
}
.formula-public-card {
    width: 100%;
    margin-bottom: 0;
}
@media (max-width: 1200px) {
    .formula-card-item {
        flex: 1 1 calc(50% - 0.67rem);
        max-width: calc(50% - 0.67rem);
    }
}
@media (max-width: 768px) {
    .formulas-flex {
        flex-direction: column;
        gap: 0.7rem 0;
    }
    .formula-card-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* ===== BOTÕES COM ÍCONES NA TABELA ===== */
.btn-table {
    margin: 0 2px;
    padding: 0.375rem 0.5rem;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-table i {
    font-size: 0.875rem;
}

.btn-table:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-table:active {
    transform: translateY(0);
}

/* Responsividade para botões da tabela */
@media (max-width: 768px) {
    .btn-table {
        margin: 0 1px;
        padding: 0.25rem 0.375rem;
        min-width: 28px;
        height: 28px;
    }
    
    .btn-table i {
        font-size: 0.75rem;
    }
}

/* ===== CORREÇÃO PARA RADIO BUTTONS ===== */
.form-check-input[type="radio"]:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.form-check-input[type="radio"]:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.form-check-label {
    color: var(--text-color) !important;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-left: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-body {
    margin-bottom: 10px;
}

.timeline-footer {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

/* ===== DASHBOARD ESTATÍSTICAS ===== */
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color) 0deg,
        var(--primary-color) calc(var(--percentage) * 3.6deg),
        #e9ecef calc(var(--percentage) * 3.6deg),
        #e9ecef 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.progress-circle small {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Cards de estatísticas */
.card.bg-primary,
.card.bg-warning,
.card.bg-success,
.card.bg-secondary,
.card.bg-info,
.card.bg-dark {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.bg-primary:hover,
.card.bg-warning:hover,
.card.bg-success:hover,
.card.bg-secondary:hover,
.card.bg-info:hover,
.card.bg-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsividade para dashboard */
@media (max-width: 768px) {
    .progress-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-circle::before {
        width: 60px;
        height: 60px;
    }
    
    .progress-text {
        font-size: 1.2rem;
    }
    
    .progress-circle small {
        font-size: 0.8rem;
        bottom: -25px;
    }
}

@media (max-width: 576px) {
    .progress-circle {
        width: 70px;
        height: 70px;
    }
    
    .progress-circle::before {
        width: 50px;
        height: 50px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
    
    .progress-circle small {
        font-size: 0.7rem;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .progress-circle {
        width: 60px;
        height: 60px;
    }
    
    .progress-circle::before {
        width: 40px;
        height: 40px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .progress-circle small {
        font-size: 0.65rem;
        bottom: -18px;
    }
}

/* ===== AUTOCOMPLETE CLIENTES ===== */
#cliente_sugestoes {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background: white;
}

#cliente_sugestoes .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cliente_sugestoes .list-group-item:hover {
    background-color: #f8f9fa;
}

#cliente_sugestoes .list-group-item:last-child {
    border-bottom: none;
}

#cliente_sugestoes .list-group-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

#cliente_sugestoes .list-group-item small {
    font-size: 0.875rem;
}

/* Posicionamento relativo para o container do cliente */
.mb-3 {
    position: relative;
}

/* ===== TIMELINE HORIZONTAL ===== */
.timeline-horizontal {
    padding: 20px 0;
    width: 100%;
}

/* ===== BOTÃO EXPANDIR HISTÓRICO ===== */
.btn-expandir-historico {
    transition: all 0.3s ease;
}

.btn-expandir-historico:hover {
    transform: scale(1.1);
    color: var(--bs-primary) !important;
}

.produto-progress {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.produto-progress h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.produto-progress .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.produto-progress .progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

.timeline-horizontal-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
}

.timeline-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
    min-width: 0;
}

.timeline-marker-horizontal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-item-horizontal.completed .timeline-marker-horizontal {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.timeline-item-horizontal.current .timeline-marker-horizontal {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    animation: pulse 2s infinite;
}

.timeline-item-horizontal.future .timeline-marker-horizontal {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.timeline-content-horizontal {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.timeline-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-color);
    line-height: 1.2;
}

.timeline-description {
    font-size: 0.7rem;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.2;
    display: none;
}

/* Mostrar descrições apenas em telas maiores */
@media (min-width: 992px) {
    .timeline-description {
        display: block;
    }
}

.timeline-progress {
    margin-top: 8px;
}

.timeline-connector {
    width: 20px;
    height: 2px;
    background: #dee2e6;
    margin-top: 25px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-connector.completed {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.timeline-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: inherit;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
}

/* Responsividade para timeline horizontal */
@media (max-width: 768px) {
    .timeline-horizontal-container {
        gap: 8px;
    }
    
    .timeline-marker-horizontal {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .timeline-title {
        font-size: 0.75rem;
    }
    
    .timeline-description {
        font-size: 0.65rem;
    }
    
    .timeline-connector {
        width: 15px;
        margin-top: 22px;
    }
    
    .timeline-connector::after {
        width: 5px;
        height: 5px;
        right: -2px;
        top: -1px;
    }
}

@media (max-width: 576px) {
    .timeline-horizontal-container {
        gap: 5px;
    }
    
    .timeline-marker-horizontal {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .timeline-title {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .timeline-description {
        font-size: 0.6rem;
        margin-bottom: 6px;
    }
    
    .timeline-connector {
        width: 12px;
        margin-top: 20px;
    }
    
    .timeline-connector::after {
        width: 4px;
        height: 4px;
        right: -2px;
        top: -1px;
    }
}

@media (max-width: 480px) {
    .timeline-horizontal-container {
        gap: 3px;
    }
    
    .timeline-marker-horizontal {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .timeline-title {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }
    
    .timeline-description {
        font-size: 0.55rem;
        margin-bottom: 4px;
    }
    
    .timeline-connector {
        width: 10px;
        margin-top: 17px;
    }
    
    .timeline-connector::after {
        width: 3px;
        height: 3px;
        right: -1px;
        top: -0.5px;
    }
}

@media (max-width: 360px) {
    .timeline-horizontal-container {
        gap: 2px;
    }
    
    .timeline-marker-horizontal {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .timeline-title {
        font-size: 0.6rem;
        margin-bottom: 0;
    }
    
    .timeline-connector {
        width: 8px;
        margin-top: 15px;
    }
    
    .timeline-connector::after {
        width: 2px;
        height: 2px;
        right: -1px;
        top: -0.5px;
    }
}

/* ===== PÁGINAS PÚBLICAS (escopado — não afeta área admin) ===== */
.page-public,
.page-home {
    --home-text: #4b5563;
    --home-gold: #c9a962;
    --home-dark: #1e293b;
    overflow-x: hidden;
}

/* Navbar transparente sobre o hero */
.page-home .navbar-home {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.page-home .navbar-home .navbar-nav .nav-link {
    color: var(--home-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.page-home .navbar-home .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.page-home .navbar-home.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* Tipografia das páginas públicas */
.page-public .public-section-title,
.page-public .about-home__title,
.page-public .hero-page__title,
.page-home .home-section-title,
.page-home .hero-home__title,
.page-home .about-home__title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--home-text);
}

.page-public .hero-page__subtitle,
.page-public .about-home__subtitle,
.page-public .about-home__description,
.page-public .about-home__checklist li,
.page-public .public-section-intro,
.page-public .public-feature-card p,
.page-public .service-card-v2__body p,
.page-home .hero-home__subtitle,
.page-home .hero-feature__text p,
.page-home .home-services .service-card-v2__body p,
.page-home .about-home__subtitle,
.page-home .about-home__description,
.page-home .about-home__checklist li,
.page-home .home-testimonials__intro,
.page-home .testimonial-card-v3__text,
.page-home .testimonial-card-v3__author span,
.page-home .testimonial-modal__text,
.page-home .testimonial-modal__author span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--home-text);
}

.page-public .contact-page__details p,
.page-public .contact-page__form-card .form-label,
.page-public .contact-page__form-card .form-check-label,
.page-public .formula-category__desc,
.page-public .formula-card p,
.page-public .formulas-list__empty p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--home-text);
}

.page-public .contact-page__details h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--home-text);
}

.page-public .public-feature-card h4,
.page-public .service-card-v2__body h4,
.page-public .formula-category__title,
.page-public .formula-card h4,
.page-public .formulas-list__title,
.page-home .hero-feature__text h3,
.page-home .home-services .service-card-v2__body h4,
.page-home .testimonial-card-v3__author strong,
.page-home .testimonial-modal__author strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--home-text);
}

/* Hero */
.hero-home {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: min(700px, 82vh);
    display: flex;
    align-items: center;
    padding: 7rem 0 3.5rem;
    overflow: visible;
}

.hero-home__bg {
    position: absolute;
    inset: 0;
    background: url('../images/capa_ca.jpg') center center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.hero-home__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.85) 100%);
}

.hero-home__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.hero-home__content .row {
    margin-left: 0;
    margin-right: 0;
}

.hero-home__content .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    min-width: 0;
}

.hero-home__title {
    font-size: clamp(1.5rem, 2.8vw + 0.5rem, 2.75rem);
    line-height: 1.2;
    margin-bottom: clamp(0.65rem, 1.5vw, 1rem);
    text-align: left;
    overflow-wrap: break-word;
}

.hero-home__subtitle {
    font-size: clamp(0.875rem, 1.2vw + 0.4rem, 1.05rem);
    line-height: 1.55;
    text-align: left;
    max-width: 100%;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
    opacity: 0.95;
    overflow-wrap: break-word;
}

.hero-home__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vw, 1rem);
    max-width: 100%;
    margin: 0;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    min-width: 0;
}

.hero-feature__text {
    min-width: 0;
    flex: 1;
}

.hero-feature__icon {
    flex-shrink: 0;
    width: clamp(38px, 4vw, 44px);
    height: clamp(38px, 4vw, 44px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-text);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.hero-feature__text h3 {
    font-size: clamp(0.68rem, 1vw + 0.35rem, 0.82rem);
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.hero-feature__text p {
    font-size: clamp(0.72rem, 0.9vw + 0.35rem, 0.85rem);
    margin-bottom: 0;
    line-height: 1.35;
    opacity: 0.9;
    overflow-wrap: break-word;
}

/* Tablet: 2 colunas nos destaques */
@media (min-width: 576px) {
    .hero-home__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop amplo: metade esquerda + 3 colunas */
@media (min-width: 992px) {
    .hero-home {
        min-height: min(720px, 85vh);
        padding: 7.5rem 0 4rem;
    }

    .hero-home__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

/* Telas médias: 3 colunas apertam — voltar para 1 coluna na metade esquerda */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-home__features {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .hero-home__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Serviços — cards com imagem */
.page-public .home-services,
.page-home .home-services {
    background-color: #fafafa;
}

.page-public .public-section-title::after,
.page-home .home-section-title::after {
    background: linear-gradient(90deg, var(--home-gold), #d4b87a);
}

.service-card-v2 {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.service-card-v2__image {
    height: 210px;
    background-size: cover;
    background-position: center;
    border-radius: 14px 14px 0 0;
}

.service-card-v2__icon-badge {
    position: absolute;
    top: 210px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-gold);
    font-size: 1.35rem;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.service-card-v2__body {
    padding: 2.25rem 1.5rem 1.75rem;
    text-align: center;
}

.service-card-v2__body h4 {
    font-size: 1rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.service-card-v2__body p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Quem Somos */
.about-home {
    background-color: var(--white);
}

.about-home__image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    align-self: center;
    max-height: 460px;
}

.about-home__image {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 5 / 4;
    max-height: 460px;
    object-fit: cover;
    object-position: center top;
}

.about-home__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    min-height: 90px;
    background: rgba(30, 41, 59, 0.93);
    display: flex;
    align-items: center;
}

.about-home__pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
}

.about-pillar {
    text-align: center;
    color: var(--white);
}

.about-pillar i {
    display: block;
    color: var(--home-gold);
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.about-pillar span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.25;
}

.about-home__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.about-home__subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-home__description {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.about-home__checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.about-home__checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
}

.about-home__checklist li i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.15);
    color: var(--home-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Depoimentos — carrossel horizontal */
.page-home .home-testimonials__intro {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0.85;
}

.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonials-carousel__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.testimonials-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0.25rem 1rem;
}

.testimonials-carousel__track::-webkit-scrollbar {
    display: none;
}

.testimonials-carousel__btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--home-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.testimonials-carousel__btn:hover {
    background: var(--home-gold);
    color: var(--white);
    transform: scale(1.05);
}

.testimonial-card-v3 {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    scroll-snap-align: start;
    min-width: 260px;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: none;
    text-align: left;
    font: inherit;
    color: inherit;
    width: auto;
}

.testimonial-card-v3:focus-visible {
    outline: 2px solid var(--home-gold);
    outline-offset: 3px;
}

.testimonial-card-v3__quote {
    font-size: 3rem;
    line-height: 1;
    color: var(--home-gold);
    opacity: 0.75;
    margin-bottom: 1rem;
}

.testimonial-card-v3__text {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.testimonial-card-v3__author {
    margin-top: auto;
}

.testimonial-card-v3__author strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 0.15rem;
}

.testimonial-card-v3__author span {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Modal de depoimento */
.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.testimonial-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.testimonial-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(4px);
}

.testimonial-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(80vh, 720px);
    overflow-y: auto;
    background: var(--white);
    border-radius: 18px;
    padding: 2.25rem 2rem 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.testimonial-modal.is-visible .testimonial-modal__dialog {
    transform: translateY(0);
}

.testimonial-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--home-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.testimonial-modal__close:hover {
    background: #e5e7eb;
}

.testimonial-modal__quote {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--home-gold);
    opacity: 0.75;
    margin-bottom: 1rem;
}

.testimonial-modal__text {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.testimonial-modal__author strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.testimonial-modal__author span {
    font-size: 0.9rem;
    opacity: 0.75;
}

@media (max-width: 991px) {
    .testimonial-card-v3 {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 767px) {
    .testimonials-carousel__btn {
        display: none;
    }

    .testimonial-card-v3 {
        flex: 0 0 88%;
    }
}

/* Responsivo — home */
@media (max-width: 991px) {
    .hero-home {
        min-height: min(580px, 78vh);
        padding: 5.75rem 0 2.75rem;
    }

    .about-home__pillars {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 0.75rem;
    }

    .about-pillar span {
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    .hero-home {
        min-height: min(520px, 72vh);
        padding: 5.25rem 0 2rem;
    }

    .about-home__overlay {
        height: auto;
        min-height: unset;
        position: relative;
        background: var(--home-dark);
    }

    .about-home__image-wrap {
        display: flex;
        flex-direction: column;
        max-height: none;
    }

    .about-home__image {
        aspect-ratio: 16 / 11;
        max-height: none;
    }

    .about-home__pillars {
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
    }
}

/* ===== PÁGINA SOBRE (e hero interno das páginas públicas) ===== */
.hero-page {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: min(420px, 48vh);
    display: flex;
    align-items: center;
    padding: 7rem 0 3rem;
    overflow: visible;
}

.hero-page__bg {
    position: absolute;
    inset: 0;
    background: center center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.hero-page__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.hero-page__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.hero-page__title {
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-page__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.65;
    max-width: 540px;
    margin: 0;
    opacity: 0.95;
}

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

.page-public .public-section-intro {
    max-width: 680px;
    margin: -1.5rem auto 3rem;
    text-align: center;
    line-height: 1.7;
    opacity: 0.9;
}

.about-home__image-wrap--plain {
    max-height: 420px;
}

.about-home__image-wrap--plain .about-home__image {
    aspect-ratio: 5 / 4;
    max-height: 420px;
}

.public-feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.public-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1);
}

.public-feature-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.15);
    color: var(--home-gold);
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-feature-card h4 {
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.public-feature-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.page-sobre .about-home + .about-home,
.page-sobre .about-home + .section {
    padding-top: 0;
}

@media (max-width: 768px) {
    .hero-page {
        min-height: min(340px, 42vh);
        padding: 6rem 0 2.5rem;
    }
}

/* Detalhes de serviços */
.service-detail__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.15);
    color: var(--home-gold);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.page-servicos .service-detail + .service-detail {
    padding-top: 0;
}

.page-servicos .home-services + .service-detail {
    padding-top: 0;
}

/* ===== PÁGINA CONTATO ===== */
.contact-page__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-page__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-page__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.15);
    color: var(--home-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-page__details h5 {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.contact-page__details p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-page__form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    height: 100%;
}

.page-contato .contact-page__form-card .form-control,
.page-contato .contact-page__form-card .form-select {
    border-color: #e5e7eb;
}

.page-contato .contact-page__form-card .form-control:focus,
.page-contato .contact-page__form-card .form-select:focus {
    border-color: var(--home-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 98, 0.2);
}

.contact-page__submit {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    border: none;
}

.contact-page__map-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.contact-page__map-card iframe {
    display: block;
    width: 100%;
    min-height: 450px;
}

@media (max-width: 991px) {
    .contact-page__form-card {
        margin-top: 0.5rem;
    }
}

/* ===== PÁGINA FÓRMULAS ===== */
.formulas-page__search {
    position: relative;
}

.formulas-page__search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--home-gold);
    pointer-events: none;
    z-index: 1;
}

.formulas-page__search-input {
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
}

.page-formulas .formulas-page__search-input:focus {
    border-color: var(--home-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 98, 0.2);
}

.formula-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border-left: 4px solid var(--category-color, var(--home-gold));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.formula-category:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.formula-category__main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.formula-category__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.12);
    color: var(--category-color, var(--home-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.formula-category__title {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--category-color, var(--home-text));
}

.formula-category__desc {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.85;
}

.formula-category__arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--home-gold);
    transition: transform 0.2s ease;
}

.formula-category.is-active .formula-category__arrow {
    transform: rotate(180deg);
}

.formulas-list {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.formulas-list__title {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--category-color, var(--home-text));
}

.formulas-list__empty {
    width: 100%;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--home-text);
    opacity: 0.7;
}

.formulas-list__empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--home-gold);
}

.page-formulas .formula-card {
    width: 100%;
    padding: 1.25rem 1.35rem;
    background: var(--white);
    border-radius: 14px;
    border-left: 4px solid var(--category-color, var(--home-gold));
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-formulas .formula-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.page-formulas .formula-card h4 {
    margin-bottom: 0.65rem;
    font-size: 1rem;
    color: var(--home-text);
}

.page-formulas .formula-card h4 i {
    color: var(--home-gold);
}

.page-formulas .formula-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.65;
}
