/*
Theme Name: Funerária 24 Horas
Author: AgilStore
Author URI: http://agilstore.pt/
Description: Tema customizado para Funerária 24 Horas com memorial e dashboard.
Version: 1.0
Text Domain: funeraria
/* 1. Use uma box-sizing mais intuitiva */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remova a margem padrão e padding */
* {
    margin: 0;
    padding: 0;
}

/* 3. Tornar elementos de mídia mais fáceis de trabalhar */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    border-radius: var(--border-radius-lg);
}

/* 4. Herdar fontes para elementos de formulário */
input,
button,
textarea,
select {
    font: inherit;
}

/* 5. Evitar estouro de texto */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

h1 {
    font-size: var(--h1-fluid);
}

h2 {
    font-size: var(--h2-fluid);
}

h3 {
    font-size: var(--h3-fluid);
}

h4 {
    font-size: var(--h4-fluid);
}

h5 {
    font-size: var(--fs-500);
}

h6 {
    font-size: var(--fs-400);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--lh-relaxed);
}

small {
    font-size: var(--small-fluid);
}

/* 6. Melhorar a legibilidade do texto */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 7. Remover estilos padrão de listas */
ul,
ol {
    list-style: none;
}

/* 8. Remover sublinhado de links */
a {
    text-decoration: none;
    color: inherit;
}

/* 9. Remover estilos padrão de botões */
button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

/* 10. Remover animações para pessoas que preferem não vê-las */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   ESTILOS BASE DO PROJETO
   ========================================================================== */

/* Variáveis CSS para cores, fontes e espaçamentos */
:root {
    /* Cores do projeto (New Palette) */
    --black: #000000;
    --white: #ffffff;

    /* Palette from Image */
    --palette-primary: #003DA5;
    --palette-primary-fg: #ffffff;
    --palette-secondary: #f1f5f9;
    --palette-secondary-fg: #0f172a;
    --palette-accent: #003DA5;
    --palette-accent-fg: #ffffff;
    --palette-background: #ffffff;
    --palette-foreground: #1e293b;
    --palette-card: #ffffff;
    --palette-card-fg: #0f172a;
    --palette-muted: #f8fafc;
    --palette-muted-fg: #64748b;
    --palette-destructive: #ef4444;
    --palette-destructive-fg: #ffffff;
    --palette-border: #e2e8f0;
    --palette-input: #ffffff;
    --palette-ring: #003DA5;

    /* Mapeamento para Variáveis do Tema */
    --primary-color: var(--palette-primary);
    --primary-color-hover: #2563eb;
    /* Darker shade of #3b82f6 */
    --secondary-color: var(--palette-secondary);
    --accent-color: var(--palette-accent);

    /* Cores Legadas (Aliases) */
    --black-color: var(--black);
    --white-color: var(--white);

    /* Gradients (Updated with new tones) */
    --gradient-top: linear-gradient(0deg, var(--palette-background), var(--palette-secondary), var(--palette-accent));
    --gradient-right: linear-gradient(90deg, var(--palette-background), var(--palette-secondary), var(--palette-accent));
    --gradient-bottom: linear-gradient(180deg, var(--palette-background), var(--palette-secondary), var(--palette-accent));
    --gradient-left: linear-gradient(270deg, var(--palette-background), var(--palette-secondary), var(--palette-accent));
    --gradient-radial: radial-gradient(circle, var(--palette-accent), var(--palette-background));

    /* ===== ESCALA DE TIPOGRAFIA ===== */
    /* Usando scale modular (1.2 - perfeita quinta) para harmonia */
    --ratio: 1.2;
    --base-size: 1rem;

    /* Tamanhos de fonte - escala modular */
    --fs-300: calc(var(--base-size) / var(--ratio));
    --fs-400: var(--base-size);
    --fs-500: calc(var(--base-size) * var(--ratio));
    --fs-600: calc(var(--fs-500) * var(--ratio));
    --fs-700: calc(var(--fs-600) * var(--ratio));
    --fs-800: calc(var(--fs-700) * var(--ratio));
    --fs-900: calc(var(--fs-800) * var(--ratio));

    /* ===== FONTES ===== */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-serif: Times New Roman, Times, serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;

    /* ===== PESOS DE FONTE ===== */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ===== ALTURA DE LINHA ===== */
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;
    --lh-loose: 2;

    /* ===== ESPAÇAMENTO ENTRE LETRAS ===== */
    --ls-tight: -0.025em;
    --ls-normal: 0;
    --ls-wide: 0.025em;
    --ls-wider: 0.05em;

    /* ===== TOKENS DE TIPOGRAFIA RESPONSIVA ===== */
    /* Usando clamp() para fluidez entre breakpoints */

    /* Tamanhos fluidos para headings */
    --fluid-min-width: 320px;
    --fluid-max-width: 1280px;

    /* Heading 1 - mais responsivo */
    --h1-min: 2rem;
    /* 32px em mobile */
    --h1-max: 3.5rem;
    /* 56px em desktop */
    --h1-fluid: clamp(var(--h1-min), 4vw + 1rem, var(--h1-max));

    /* Heading 2 */
    --h2-min: 1.75rem;
    /* 28px */
    --h2-max: 2.5rem;
    /* 40px */
    --h2-fluid: clamp(var(--h2-min), 3vw + 1rem, var(--h2-max));

    /* Heading 3 */
    --h3-min: 1.5rem;
    /* 24px */
    --h3-max: 2rem;
    /* 32px */
    --h3-fluid: clamp(var(--h3-min), 2vw + 1rem, var(--h3-max));

    /* Heading 4 */
    --h4-min: 1.25rem;
    /* 20px */
    --h4-max: 1.5rem;
    /* 24px */
    --h4-fluid: clamp(var(--h4-min), 1.5vw + 1rem, var(--h4-max));

    /* Parágrafos e corpo */
    --text-min: 1rem;
    /* 16px */
    --text-max: 1.125rem;
    /* 18px */
    --text-fluid: clamp(var(--text-min), 0.5vw + 0.875rem, var(--text-max));

    /* Texto pequeno */
    --small-min: 0.875rem;
    /* 14px */
    --small-max: 1rem;
    /* 16px */
    --small-fluid: clamp(var(--small-min), 0.25vw + 0.75rem, var(--small-max));

    /* Texto muito pequeno */
    --xs-min: 0.75rem;
    /* 12px */
    --xs-max: 0.875rem;
    /* 14px */
    --xs-fluid: clamp(var(--xs-min), 0.15vw + 0.7rem, var(--xs-max));

    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Bordas */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transições */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Semantic Theme Colors (Mapped to New Palette) */
    --bg-body: var(--palette-background);
    --bg-surface: var(--palette-card);
    --bg-surface-hover: var(--palette-accent);
    --text-primary: var(--palette-foreground);
    --text-secondary: var(--palette-muted-fg);
    --border-light: var(--palette-border);
}

/* Estilos base do body */
body {
    background-color: var(--bg-body);
    font-family: var(--font-sans);
    font-size: var(--text-fluid);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    min-height: 100vh;
    text-rendering: optimizeSpeed;
}

/* Container principal para centralizar conteúdo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Classes utilitárias para espaçamento */
.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

/* Classes para flexbox */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Responsividade */
@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* Foco visível para acessibilidade */
/* Foco visível para acessibilidade */
:focus-visible {
    outline: 2px solid var(--palette-ring);
    outline-offset: 2px;
}

/* Estilo para seleção de texto */
::selection {
    background-color: var(--palette-primary);
    color: var(--palette-primary-fg);
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

/* Classes base para botões */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 44px;
    padding: 12px 24px;
}

/* Tamanhos de botões */
.btn-sm {
    font-size: 14px;
    padding: 8px 16px;
    min-height: 36px;
    gap: 8px;
}

.btn-md {
    font-size: 16px;
    padding: 12px 24px;
    min-height: 44px;
    gap: 12px;
}

.btn-lg {
    font-size: 18px;
    padding: 16px 32px;
    min-height: 52px;
    gap: 16px;
}

/* Variantes de cores */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--palette-primary-fg);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    color: var(--palette-primary-fg);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
    /* Shadow colored with primary */
}

.btn-secondary {
    background-color: var(--palette-secondary);
    border-color: var(--palette-secondary);
    color: var(--palette-secondary-fg);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-surface-hover);
    border-color: var(--bg-surface-hover);
    color: var(--white-color);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--palette-accent);
    border-color: var(--palette-accent);
    color: var(--palette-accent-fg);
}

.btn-accent:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--palette-primary-fg);

    box-shadow: var(--shadow-md);
}

/* Variantes de estilo */
.btn-outline {
    background-color: transparent;
    border-color: currentColor;
}

.btn-outline.btn-primary {
    color: var(--primary-color);
}

.btn-outline.btn-secondary {
    color: var(--secondary-color);
}

.btn-outline.btn-accent {
    color: var(--accent-color);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--palette-secondary);
    border-color: var(--bg-surface-hover);
    color: var(--palette-secondary-fg);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    border-color: transparent;
}

.btn-ghost.btn-primary {
    color: var(--primary-color);
}

.btn-ghost.btn-secondary {
    color: var(--secondary-color);
}

.btn-ghost.btn-accent {
    color: var(--accent-color);
}

.btn-ghost:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.05);

}

/* Botões dark/light (baseados no seu código original) */
.btn-dark {
    background-color: var(--black-color);
    border-color: var(--black-color);
    color: var(--white-color);
}

.btn-dark:hover:not(:disabled) {
    background-color: var(--accent-color);
    border-color: var(--accent-color);

    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--white-color);
    border-color: var(--black-color);
    color: var(--black-color);
}

.btn-light:hover:not(:disabled) {
    background-color: #f5f5f5;
    border-color: var(--accent-color);
}

/* Botões com ícones */
.btn-icon-left,
.btn-icon-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-left {
    flex-direction: row;
}

.btn-icon-right {
    flex-direction: row-reverse;
}

.btn-icon-only {
    padding: 12px;
    width: 44px;
    min-height: 44px;
    justify-content: center;
}

.btn-icon-only.btn-sm {
    padding: 8px;
    width: 36px;
    min-height: 36px;
}

.btn-icon-only.btn-lg {
    padding: 16px;
    width: 52px;
    min-height: 52px;
}

/* Ícones dentro dos botões */
.btn svg,
.btn .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn-sm svg,
.btn-sm .icon {
    width: 20px;
    height: 20px;
}

.btn-lg svg,
.btn-lg .icon {
    width: 28px;
    height: 28px;
}

.btn:hover:not(:disabled) svg {
    transform: translateX(4px);
}

.btn-icon-left:hover:not(:disabled) svg {
    transform: translateX(-4px);
}

.btn-icon-only:hover:not(:disabled) svg {
    transform: scale(1.1);
}

/* Estados dos botões */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus-visible {
    outline: 2px solid var(--palette-ring);
    outline-offset: 2px;
}

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: btn-spin 0.75s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Botões em grupos */
.btn-group {
    display: inline-flex;
    gap: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right-width: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--border-radius-md);
    border-bottom-left-radius: var(--border-radius-md);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
    border-right-width: 1px;
}

/* Botões full width */
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   UTILITÁRIOS PARA BOTÕES
   ========================================================================== */

/* Gap entre ícone e texto */
.gap-xs {
    gap: var(--spacing-xs);
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* Padding específico */
.px-sm {
    padding-left: 12px;
    padding-right: 12px;
}

.px-md {
    padding-left: 24px;
    padding-right: 24px;
}

.px-lg {
    padding-left: 32px;
    padding-right: 32px;
}

.py-sm {
    padding-top: 8px;
    padding-bottom: 8px;
}

.py-md {
    padding-top: 12px;
    padding-bottom: 12px;
}

.py-lg {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Bordas redondas */
.rounded-sm {
    border-radius: var(--border-radius-sm);
}

.rounded-md {
    border-radius: var(--border-radius-md);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.rounded-full {
    border-radius: 9999px;
}

/* Sombras */
.shadow-none {
    box-shadow: none;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
    .btn {
        font-size: 15px;
        padding: 10px 20px;
        min-height: 40px;
    }

    .btn-sm {
        font-size: 13px;
        padding: 6px 12px;
        min-height: 32px;
    }

    .btn-lg {
        font-size: 16px;
        padding: 14px 28px;
        min-height: 48px;
    }

    .btn-block-mobile {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 72px;
    background: #ffffffeb;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0px;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 64px;
}

.navbar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary-color);
}

.navbar-logo a {
    display: block;
    line-height: 0;
}

.navbar-logo svg {
    width: 84px;
    height: 36px;
}

.navbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.navbar-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.dropdown-toggle:hover {
    color: var(--accent-color);
}

.dropdown-toggle:hover::after {
    width: 100%;
}

.dropdown-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-normal);
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    left: 0;
    top: 32px;
    overflow: hidden;
    gap: 16px;
    padding: 24px;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    font-size: 16px;
    color: var(--text-primary);
    width: 100%;
    transition: color var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--accent-color);
}

/* Botões da navbar */
.navbar-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}



/* Menu mobile toggle (oculto por padrão) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    left: 0;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 32px;
    }

    .navbar-menu {
        gap: 24px;
    }

    .navbar-links {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 0;
    }

    .navbar-container {
        padding: 16px;
        flex-wrap: wrap;
        position: relative;
    }

    .navbar-logo {
        position: static;
        transform: none;
        margin-right: auto;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 24px;
        order: 3;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }

    .nav-link,
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .nav-link::after,
    .dropdown-toggle::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        display: none;
        width: 100%;
        background-color: #f9f9f9;
        margin-top: 0;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-toggle svg {
        transition: transform var(--transition-normal);
    }

    .dropdown.active .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 16px 0;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #eee;
    }

    .btn-outline,
    .btn-dark {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    /* Botão hamburger no topo direita */
    .mobile-toggle {
        display: flex;
        margin-left: auto;
        order: 2;
    }

    .mobile-toggle.active .hamburger {
        background-color: transparent;
    }

    .mobile-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 480px) {
    .navbar-container {
        padding: 12px 16px;
    }

    .navbar-logo svg {
        width: 70px;
        height: 30px;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 480px) {
    .navbar-container {
        padding: 16px;
    }

    .navbar-logo svg {
        width: 70px;
        height: 30px;
    }

    .mobile-toggle {
        left: 16px;
        top: 16px;
    }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    background: var(--bg-body);
    padding: 112px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.features-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 64px;
}

.features-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 80px;
}

.features-grid {
    display: flex;
    justify-content: flex-start;
    align-items: start;
    width: 100%;
    gap: 80px;
    position: relative;
}

.features-image {
    flex: 1;
    height: -webkit-fill-available;
    width: 600px;
    object-fit: cover;
    border-radius: 8px;

}

.features-items {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    gap: 32px;
}

.features-items-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 32px;
    padding: 8px 0;
}

.features-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
}

/* Feature Cards */
.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    position: relative;
    gap: 16px;
    background: var(--bg-surface);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-normal);
    height: -webkit-fill-available;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0;
    width: 100%;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

/* Botões da seção features */
.features-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
}

.btn-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--color-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.btn-text:hover {
    color: var(--accent-color);
}

.arrow-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.btn-text:hover .arrow-icon {
    transform: translateX(4px);
}

/* Responsividade */
@media (max-width: 1200px) {
    .features-grid {
        gap: 64px;
        flex-direction: column;
    }

    .features-image {
        height: 560px;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .features-container {
        padding: 0 48px;
    }

    .features-grid {
        gap: 48px;
    }

    .features-image {
        height: 500px;
    }
}

@media (max-width: 900px) {
    .features-section {
        padding: 80px 0;
    }

    .features-grid {
        flex-direction: column;
        gap: 48px;
    }

    .features-image {
        width: 100%;
        height: 400px;
        order: -1;
    }

    .features-items {
        width: 100%;
    }

    .features-row {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 64px 0;
    }

    .features-container {
        padding: 0 32px;
    }

    .features-content {
        gap: 48px;
    }

    .features-row {
        flex-direction: column;
        gap: 32px;
    }

    .feature-card {
        width: 100%;
    }

    .features-buttons {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 16px;
    }

    .btn-outline {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .features-container {
        padding: 0 16px;
    }

    .features-section {
        padding: 48px 0;
    }

    .features-image {
        height: 300px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-description {
        font-size: 15px;
    }
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */

.statistics-section {
    background: var(--palette-background);
    /* Was rgba(0, 0, 0, 0.4) */
    padding: 112px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* ... */

.stats-text {
    font-size: 18px;
    color: var(--text-secondary);
    /* Was var(--white-color) */
    line-height: 1.6;
    margin: 0;
    width: 100%;
    max-width: 600px;
}

/* ... */

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    position: relative;
    gap: 8px;
    padding-left: 32px;
    border-left: 1px solid var(--palette-border);
    /* Was rgba(255, 255, 255, 0.3) */
}

/* ... */

.stat-number::after {
    background-color: var(--palette-primary);
    /* Was var(--white-color) */
}

.stat-number.animated::after {
    width: 100%;
}

.stat-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--white-color);
    line-height: 1.3;
    margin: 0;
    width: 100%;
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 1200px) {
    .stats-header {
        gap: 60px;
    }

    .stats-grid {
        gap: 40px;
    }

    .stat-number {
        font-size: 70px;
    }
}

@media (max-width: 1024px) {
    .stats-container {
        padding: 0 48px;
    }

    .stats-content {
        gap: 60px;
    }

    .stats-header {
        flex-direction: column;
        gap: 40px;
    }

    .stats-title,
    .stats-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .statistics-section {
        padding: 80px 0;
    }

    .stats-container {
        padding: 0 32px;
    }

    .stats-content {
        gap: 48px;
    }

    .stats-title {
        font-size: 32px;
    }

    .stats-text {
        font-size: 16px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 40px;
    }

    .stat-item {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 32px;
        width: 100%;
    }

    .stats-grid .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-number {
        font-size: 64px;
    }

    .stat-label {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .statistics-section {
        padding: 64px 0;
    }

    .stats-container {
        padding: 0 24px;
    }

    .stats-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 56px;
    }

    .stat-label {
        font-size: 16px;
    }
}

/* Animações para entrada da seção */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-header {
    animation: fadeInUp 0.8s ease-out;
}

.stats-grid {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ==========================================================================
   TESTIMONIALS SECTION (CARROSSEL)
   ========================================================================== */

.testimonials-section {
    padding: 112px 0;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.testimonials-section .container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.testimonials-section .testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

.testimonials-section .testimonials-header-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.testimonials-section .testimonials-text {
    max-width: 768px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.testimonials-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.testimonials-section p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Carousel */
.testimonials-section .testimonials-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2px;
}

.testimonials-section .testimonials-track {
    display: flex;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-section .testimonial-card {
    flex-shrink: 0;
    width: 100vw;
    background: var(--bg-body);
    border-left: none;
    border-right: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials-section .card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.testimonials-section blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    text-align: center;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px auto;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.testimonials-section .author-info {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonials-section .author-details {
    display: flex;
    flex-direction: column;
}

.testimonials-section .author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.testimonials-section .author-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer / Controls */
.testimonials-section .testimonials-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 32px;
    margin-top: 32px;
}

.testimonials-section .carousel-dots {
    display: flex;
    gap: 8px;
}

.testimonials-section .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonials-section .carousel-dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.testimonials-section .carousel-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.testimonials-section .prev-btn,
.testimonials-section .next-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.testimonials-section .prev-btn:hover,
.testimonials-section .next-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.testimonials-section .prev-btn:disabled,
.testimonials-section .next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-light);
    color: var(--text-secondary);
    background: transparent;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.memorial-section {
    padding: 80px 0;
    background-color: var(--light-color);
    height: 100vh;
}

.memorial-header {
    text-align: center;
    margin-bottom: 64px;
}

.memorial-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.memorial-subtitle {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.memorial-card {
    background: var(--white-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.memorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.memorial-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.memorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.memorial-card:hover .memorial-img {
    transform: scale(1.05);
}

.memorial-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.memorial-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.memorial-dates {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.memorial-action {
    margin-top: auto;
}



/* ==========================================================================
   MEMORIAL DETAIL PAGE
   ========================================================================== */

.detail-hero {
    background-color: var(--light-color);
    padding: 60px 0;
}

.detail-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.detail-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

.detail-name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.detail-dates {
    font-size: 20px;
    color: var(--gray-color);
    font-family: var(--font-mono);
}

.detail-content {
    padding: 60px 0;
}

.detail-bio {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
}


/* ==========================================================================
   HERO SECTION (HEADER) - NEW
   ========================================================================== */

.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: radial-gradient(circle at top right, #ffffff, #efefef 50%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    max-width: 1440px;
    gap: 80px;
    padding: 0px 64px;
}

.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    min-width: 300px;
    gap: 32px;
}

.hero-text-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}

.hero-title {
    width: 100%;
    font-size: 56px;
    font-weight: 700;
    text-align: left;
    line-height: 1.2;
    margin: 0;
}

.hero-subtitle {
    width: 100%;
    font-size: 18px;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}



.hero-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    min-width: 300px;
    height: 100vh;
    overflow: hidden;
    position: relative;
    gap: 16px;

}

.hero-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 0 50%;
    max-width: 50%;
}

.hero-gallery-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 311/331;
    display: block;
    opacity: .8;
    transition: opacity .2s ease-in-out;
}

.scroll-up {
    animation: scrollVertUp 60s linear infinite;
}

.scroll-down {
    animation: scrollVertDown 60s linear infinite;
}

.hero-gallery-col img:hover {
    opacity: 1;
    transition: opacity .2s ease-in-out;
}


@keyframes scrollVertUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollVertDown {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Responsiveness overrides for Hero */
@media (max-width: 991px) {
    .hero-gallery {
        display: none !important;
    }

    .hero-text {
        align-items: center;
        text-align: center;
        padding-right: 0;
    }

    .hero-title {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   MEMORIAL ARCHIVE (NEW DESIGN)
   ========================================================================== */

.ma-section {
    padding: 112px 64px;
    background-color: var(--bg-body);
    width: 100%;
    display: flex;
    justify-content: center;
}

.ma-container {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.ma-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1280px;
}

.ma-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.ma-title-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ma-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.ma-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    max-width: 1280px;
}

.ma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    width: 100%;
}

.ma-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    background: var(--bg-surface);
}

.ma-card-image {
    width: 100px;
    height: 100px;
    aspect-ratio: 16/12;
    object-fit: cover;
    background-color: #eee;
    border-radius: 100%;
}

.ma-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ma-card-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    width: 100%;
}

.ma-card-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    width: 100%;
    padding: 16px 0;
}

.ma-card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    margin-top: auto;
}

.ma-link-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    transition: transform var(--transition-fast);
}

.ma-card-link:hover .ma-link-icon {
    transform: translateX(4px);
}

/* Add hover effect for the whole card to indicate interactivity */
.ma-card:hover {
    border-color: var(--primary-color);
    background-color: var(--palette-background);
    transition: all var(--transition-normal);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ma-card {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .ma-section {
        padding: 64px 24px;
    }

    .ma-grid {
        grid-template-columns: 1fr;
    }

    .ma-title {
        font-size: 32px;
    }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-section {
    padding: 112px 64px;
    background-color: var(--bg-body);
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-container {
    display: flex;
    gap: 80px;
    margin-top: 64px;
}

.memorial-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.memorial-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.memorial-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon span {
    font-size: 28px;
}

.contact-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.contact-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.contact-form-wrapper {
    flex: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        gap: 64px;
    }

    .contact-section {
        padding: 80px 32px;
    }
}

@media (max-width: 768px) {
    .memorial-title {
        font-size: 36px;
    }

    .contact-form-wrapper {
        padding: 32px;
    }
}

/* ==========================================================================
   UTILITY CLASSES (Added for Footer Refactor)
   ========================================================================== */

.section {
    padding: 80px 0;
    width: 100%;
}

.bg-white {
    background-color: var(--white);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.border-top {
    border-top: 1px solid var(--black);
}

.text-sm {
    font-size: 14px;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column;
    }

    .items-center-mobile {
        align-items: center;
    }

    .text-center-mobile {
        text-align: center;
    }

    .gap-md-mobile {
        gap: var(--spacing-md);
    }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
    padding: 112px 0;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.testimonials-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    /* Removed padding to allow full width */
}

.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
    /* Centraliza tudo */
}

.testimonials-header-row {
    display: flex;
    justify-content: center;
    /* Centraliza horizontalmente */
    align-items: center;
    width: 100%;
    text-align: center;
    /* Centraliza texto */
}

.testimonials-text {
    max-width: 768px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.testimonials-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.testimonials-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Carousel */
.testimonials-viewport {
    width: 100%;
    /* max-width removed to fit page width as requested */
    overflow: hidden;
    position: relative;
    padding: 2px;
    /* Evita cortes de shadow */
}

.testimonials-track {
    display: flex;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Width será setado via JS */
}

.testimonial-card {
    flex-shrink: 0;
    width: 100vw;
    background: var(--bg-body);
    border-left: none;
    border-right: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.quote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.author-info {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Footer / Controls */
.testimonials-footer {
    display: flex;
    justify-content: center;
    /* Centraliza controles */
    align-items: center;
    width: 100%;
    gap: 32px;
    margin-top: 32px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.carousel-nav {
    display: flex;
    gap: 16px;
}

.prev-btn,
.next-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.prev-btn:hover,
.next-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.prev-btn:disabled,
.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-light);
    color: var(--text-secondary);
    background: transparent;
}

/* Responsividade */
@media (max-width: 768px) {

    /* Testimonials Section */
    .testimonials-section {
        padding: 64px 0;
    }

    .testimonials-section .container {
        padding: 0 24px;
    }

    .testimonials-section h2 {
        font-size: 32px;
    }

    .testimonials-section .testimonial-card {
        padding: 24px;
    }

    .testimonials-section blockquote {
        font-size: 18px;
    }
}



/* ==========================================================================
   PRODUTO MEMORIAL SECTION
   ========================================================================== */

.produto-memorial {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    gap: 80px;
    padding: 112px 64px;
    background: var(--bg-body);
}

.memorial-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    gap: 80px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Header da seção */
.memorial-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    gap: 32px;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    gap: 16px;
    width: 100%;
}

.memorial-title {
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: var(--h2-fluid);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    padding: 0 16px;
}

.memorial-subtitle {
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    max-width: 768px;
    margin: 0 auto;
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 16px;
}

/* Área dos passos/cards */
.memorial-steps {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    gap: 64px;
    width: 100%;
}

.steps-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    gap: 24px;
}

/* Cards individuais */
.step-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    position: relative;
    gap: 16px;
    min-width: 0;
    /* Permite que os cards se ajustem */
}

.step-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.step-image {
    flex-grow: 0;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1;
    max-width: 256px;
    object-fit: cover;
    border-radius: 50px;
    background-color: var(--palette-border);
    /* Placeholder bg */
}

/* Conector entre os cards */
.step-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    gap: 8px;
    padding-top: 16px;
    width: 100%;
    /* margin-top: -20px; Adjust based on layout look */
}

.connector-line {
    flex-grow: 1;
    height: 2px;
    background: var(--palette-border);
    min-width: 20px;
}

.connector-dot {
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--palette-primary);
}

.connector-dot svg circle {
    fill: currentColor;
}

/* Conteúdo do card */
.step-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
    gap: 8px;
    padding: 0 16px;
    width: 100%;
}

.step-title {
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.step-description {
    align-self: stretch;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 16px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Responsividade */






/* Estilos para impressão */
@media print {
    .produto-memorial {
        padding: 40px 20px;
        gap: 40px;
    }

    .step-connector {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   CONTACT PAGE SECTION
   ========================================================================== */

.contact-page-wrapper {
    background: var(--bg-body);
    padding: 80px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.contact-card {
    background: #f7f7f7;
    width: 100%;
    max-width: 1200px;
    padding: 64px 80px;
    border-radius: var(--border-radius-lg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Esquerda: Informações */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-page-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text-primary);
    margin: 0;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-text {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: var(--palette-primary);
}

/* Emergency Box */
.emergency-box {
    background-color: var(--palette-primary);
    color: var(--palette-primary-fg);
    padding: 32px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.emergency-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 8px 0;
    color: var(--palette-primary-fg);
}

.emergency-number {
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--palette-primary-fg);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

.emergency-number:hover {
    opacity: 1;
}

/* Direita: Formulário */
.contact-form-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text-primary);
    margin: 0;
}

.contact-page-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--palette-accent);
    /* Red or distinct color for required fields */
}

/* Adjust label color if not accent */
.form-label {
    color: var(--text-secondary);
}


.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--palette-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--palette-input);
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--palette-primary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.btn-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--palette-primary);
    border: 2px solid var(--palette-primary);
    background: transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--palette-primary);
    color: var(--palette-primary-fg);
}

.icon-left {
    font-size: 20px;
}

/* Responsividade */




/* ==========================================================================
   STATISTICAS SECTION (Parallax)
   ========================================================================== */

.statistics-section {
    width: 100%;
    min-height: 400px;
    /* background-image handled via inline style in header */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 6rem 0;
}

/* Overlay for better text readability */
.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.stats-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.stats-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.stats-title {
    color: var(--white);
    font-size: var(--h2-fluid);
    margin-bottom: var(--spacing-sm);
}

.stats-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--lh-relaxed);
    font-size: var(--text-fluid);
    max-width: 600px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--fw-bold);
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: var(--fs-400);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--fw-medium);
}

/* Responsive */


/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

:root {
    --primary-blue: #133989;
    --separator-color: #5d7eaf;
}

footer {
    background-color: var(--primary-blue);
    text-align: center;
    color: var(--white);
    width: 100%;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.footer-logo {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: var(--white);
    padding-bottom: 40px;
}

.footer-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.footer-nav .nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.footer-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav .nav-link::after {
    background-color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    padding: 0 20px;
    background-color: #0d2d72;
}

.copyright,
.developed-by {
    margin: 0;
    /* Remove margens padrão de parágrafos */
}

.agilstore-link {
    color: var(--white);
    text-decoration: underline;
    /* Adiciona sublinhado ao link AgilStore */
    transition: color 0.3s ease;
}

.agilstore-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsividade */





/* ==========================================================================
   MEMORIAL LAYOUT (Restored)
   ========================================================================== */
.memorial-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    width: 100%;
}

.memorial-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 165px 20px 20px
}

.memorial-image-section::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    clear: both;
    height: 320px;
    width: 100%;
    background-color: var(--primary-blue);
}

.memorial-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #bababa;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    z-index: 2;
}

.memorial-content-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 48px 64px;
}

.memorial-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    gap: 80px;
}

.memorial-header-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.memorial-tagline {
    font-size: 24px;
    font-weight: 700;
    color: grey;
    margin: 0;
}

.memorial-name {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.memorial-bio {
    font-size: 18px;
    color: #000;
    max-width: 1000px;
    margin: 0 auto;
}

.memorial-details-box {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #ffffff, #f6f6f6 70%);
}

.memorial-details-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px;
}

.memorial-detail-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 200px;
    min-width: 200px;
}

.memorial-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.memorial-value {
    font-size: 16px;
    color: #000;
    margin: 0;
}

.memorial-section-title {
    text-align: center;
    margin-bottom: 48px;
    font-weight: 700;
}

.memorial-header-gallery {
    margin-top: 50px;
}

.no-photos {
    text-align: center;
    color: #888;
    width: 100%;
    padding: 20px;
}

/* ==========================================================================
   MEMORIAL COMMENT FEED (SOCIAL STYLE)
   ========================================================================== */
.memorial-comments-section {
    margin-top: 60px;
    /* Limit width for readability/social feed feel */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.memorial-feed-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Post Box (Input Area) */
.memorial-post-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: sticky;
    top: 80px;
    flex: 1;
}

.post-box-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.post-box-body {
    padding: 20px;
}

.post-input-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    width: 100%;
}

.post-input-container.guest-input {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
    flex-direction: column;
    gap: 8px;
}

.post-input-name {
    width: 100%;
    border: none;
    resize: none;
    font-size: 15px;
    color: #333;
    outline: none;
    padding: 8px 0;
    font-family: inherit;
}

.post-input-name::placeholder {
    color: #999;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-textarea {
    flex: 1;
    border: none;
    resize: none;
    min-height: 80px;
    font-size: 15px;
    color: #333;
    outline: none;
    padding: 8px 0;
    font-family: inherit;
}

.post-textarea::placeholder {
    color: #999;
}

/* Media Preview */
.media-preview-container {
    margin-top: 10px;
    background: #f0f2f5;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    display: inline-block;
}

.media-preview-container img,
.media-preview-container video {
    max-height: 200px;
    border-radius: 8px;
    display: block;
}

.media-preview-container p {
    margin: 0;
    font-size: 13px;
    color: #555;
    padding: 8px;
}

.remove-media-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 8px;
    width: 100%;
    gap: 16px;
}

.media-btn {
    cursor: pointer;
    color: #65676b;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.media-btn:hover {
    background: #f0f2f5;
    color: var(--primary-blue);
}

.media-btn i {
    font-size: 18px;
    color: #45bd62;
    /* Green like common social apps */
}

.post-submit-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.post-submit-btn:hover {
    background: #0d2a6a;
    /* Darker shade of primary blue */
}

/* Comments List (Social Feed) */
.memorial-comments {
    display: flex;
    flex-direction: row;
    margin-top: 48px;
    gap: 20px;
    align-items: start;
    justify-content: center;
}

.memorial-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    flex: 1;
}

.memorial-comment-body {
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 16px;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
    border: none;
    /* Resetting previous style */
    padding: 0;
    background: transparent;
}

.comment-content-wrapper::before,
.comment-content-wrapper::after {
    display: none;
    /* Removing previous tooltip arrows */
}

.comment-meta {
    display: flex;
    flex-direction: column;
    /* Stack name and date */
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.2;
}

.comment-author a,
.comment-author {
    font-size: 15px;
    font-weight: 700;
    color: #050505;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}

.comment-text {
    font-size: 15px;
    color: #050505;
    line-height: 1.4;
    margin-bottom: 12px;
}

.comment-text p {
    margin: 0;
}

.comment-media {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    /* Black bg for media */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.comment-media img,
.comment-media video {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.comment-media audio {
    width: 100%;
    background: #f1f3f4;
}

/* Empty State */
.no-comments {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}


/* Responsive adjustments */


/* Dashboard Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
}

.modal-close:hover {
    color: #333;
}

/* Material Symbols */
.material-symbols {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
}

/* Dashboard List - Refactored (User Design) */

/* Scoped Variables for Dashboard */
.dashboard-page-container {
    --dashboard-primary-black: #000000;
    --dashboard-primary-white: #FFFFFF;
    --dashboard-text-dark: #333333;
    --dashboard-text-medium-grey: #666666;
    --dashboard-text-light-grey: #B0B0B0;
    --dashboard-border-color-light: #E0E0E0;
    --dashboard-border-color-medium: #CCCCCC;
    --dashboard-avatar-bg-light: #F0F0F0;
    --dashboard-status-green: #4CAF50;

    /* Main Layout */
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Section */
.dashboard-header-section {
    margin-bottom: 30px;
}

.dashboard-section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dashboard-primary-black);
}

.dashboard-section-description {
    font-size: 1em;
    color: var(--dashboard-text-medium-grey);
    font-weight: 400;
}

/* Controls Section */
.dashboard-controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-search-sort-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dashboard-text-input,
.dashboard-sort-dropdown {
    width: 100%;
    /* Matching form-input width behavior, controlled by parent usually */
    padding: 12px 16px;
    /* Matching form-input padding */
    border: 1px solid var(--palette-border);
    /* Matching form-input border */
    border-radius: var(--border-radius-sm);
    /* Matching form-input radius */
    font-family: var(--font-sans);
    /* Matching form-input font */
    font-size: 16px;
    /* Matching form-input size */
    color: var(--text-primary);
    /* Matching form-input color */
    background: var(--palette-input);
    /* Matching form-input bg */
    transition: border-color 0.3s;
    /* Matching form-input transition */
    box-sizing: border-box;
    /* min-width: 150px; Removed to let flex/width handle it, or keep if needed */
    min-width: 150px;
    /* Keeping for safety in flex container */
    height: auto;
    /* Let padding define height */
}

.dashboard-text-input:focus,
.dashboard-sort-dropdown:focus {
    outline: none;
    border-color: var(--palette-primary);
}

.dashboard-text-input::placeholder {
    color: var(--dashboard-text-light-grey);
}

.dashboard-search-wrapper .dashboard-text-input {
    padding-left: 40px;
}

.dashboard-search-icon {
    position: absolute;
    left: 15px;
    color: var(--dashboard-text-medium-grey);
    width: 20px;
    height: 20px;
}

.dashboard-sort-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px;
    cursor: pointer;
}

.dashboard-sort-dropdown-arrow {
    position: absolute;
    right: 10px;
    color: var(--dashboard-text-medium-grey);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Buttons */


/* Memorials List Section */
.dashboard-memorials-list-section {
    border: 1px solid var(--dashboard-border-color-light);
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-memorial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--dashboard-border-color-light);
    background-color: var(--dashboard-primary-white);
}

.dashboard-memorial-item:last-child {
    border-bottom: none;
}

.dashboard-memorial-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.dashboard-memorial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dashboard-avatar-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dashboard-memorial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-avatar-icon {
    width: 24px;
    height: 24px;
    color: var(--dashboard-text-medium-grey);
}

.dashboard-memorial-info {
    display: flex;
    flex-direction: column;
}

.dashboard-memorial-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dashboard-primary-black);
    margin-bottom: 2px;
}

.dashboard-memorial-comments {
    font-size: 0.9em;
    color: var(--dashboard-text-medium-grey);
    font-weight: 400;
}

.dashboard-memorial-actions-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.dashboard-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--dashboard-text-dark);
    white-space: nowrap;
    font-weight: 400;
}

.dashboard-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dashboard-status-green);
}



/* Responsive Adjustments */
/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Table & Mobile Only)
   ========================================================================== */

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {

    /* Steps */
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    .step-card {
        width: 100%;
        max-width: 400px;
    }

    .produto-memorial {
        padding: 80px 32px;
        gap: 60px;
    }

    .memorial-subtitle {
        font-size: 16px;
    }

    .step-connector {
        display: none;
    }

    /* Contact */
    .contact-card {
        padding: 40px 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    /* Stats */
    .stats-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .statistics-section {
        background-attachment: scroll;
        padding: 4rem 0;
    }

    .stats-header {
        align-items: center;
    }

    .stats-grid {
        justify-content: center;
        gap: var(--spacing-lg);
    }

    /* Footer */
    .footer-nav .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .footer-top {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.8em;
    }

    /* Memorial */
    .memorial-content-section {
        padding: 30px 20px;
    }

    .memorial-image {
        width: 200px;
        height: 200px;
    }

    .memorial-name {
        font-size: 36px;
    }

    .memorial-details-row {
        gap: 20px;
    }

    .memorial-detail-group {
        flex: 1 1 100%;
    }

    /* Dashboard */
    .dashboard-section-title {
        font-size: 1.8em;
    }

    .dashboard-controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-search-sort-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .dashboard-input-wrapper {
        width: 100%;
    }

    .dashboard-text-input,
    .dashboard-sort-dropdown {
        width: 100%;
        min-width: unset;
        pointer-events: auto;
        /* Ensure inputs are interactive */
        background-color: #fff;
        /* Ensure white background */
    }

    #btnOpenModal {
        width: 100%;
    }

    .dashboard-memorial-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-memorial-details {
        width: 100%;
    }

    .dashboard-memorial-actions-group {
        width: 100%;
        justify-content: flex-end;
        gap: 10px;
    }

    /* Delete Button Mobile Style */
    .btn-delete-memorial {
        border-color: #ef4444;
        color: #ef4444;
        min-width: 40px;
        justify-content: center;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media (max-width: 480px) {

    /* Steps */
    .produto-memorial {
        padding: 60px 16px;
        gap: 40px;
    }

    .step-image {
        max-width: 200px;
        height: 200px;
    }

    .step-content {
        padding: 0;
    }

    /* Contact */
    .contact-page-wrapper {
        padding: 40px 0;
        background: var(--bg-body);
    }

    .contact-card {
        border-radius: 0;
        box-shadow: none;
        padding: 24px;
    }

    .contact-page-title,
    .form-section-title {
        font-size: 28px;
    }

}

/* Delete Button Base Styles */
.btn-delete-memorial {
    background-color: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    height: auto;
    /* Match other buttons */
    padding: 8px 12px;
}

.btn-delete-memorial:hover {
    background-color: #fef2f2;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.site-footer {
    background-color: var(--primary-color);
    padding: var(--spacing-xxl) 0 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-brand {
    justify-content: center;
}

.footer-logo {
    max-width: 220px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Ensure logo is white if it's dark */
}

.footer-title {
    font-size: var(--fs-400);
    font-weight: var(--fw-bold);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-info p {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-info a {
    color: var(--white);
    text-decoration: none;
    font-weight: var(--fw-medium);
}

.phone-disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Placeholder for social icons if not using SVGs directly */
.social-icon-inner {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
}

/* Logos Row */
.footer-logos-row {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.prr-logos {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-socials {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Emergency Box Decorative 24H */
.emergency-box {
    position: relative;
    overflow: hidden;
    /* Ensure a background color is present if not already, usually it has one */
    z-index: 1;
}

.emergency-bg-text {
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-size: 10rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    /* Subtle white overlay if bg is dark, or dark if bg is light. Assuming Box is colored based on context (often blue/primary). */
    line-height: 1;
    pointer-events: none;
    z-index: -1;
    font-family: var(--font-sans);
}

/* Page Hero Section */
.page-hero {
    background-color: var(--primary-color);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    color: var(--white);
    margin-bottom: var(--spacing-xl);
}

.page-hero .entry-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.page-hero .subtitle {
    font-size: var(--fs-500);
    opacity: 0.9;
}

/* RAL Entities */
.ral-entities-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.ral-entity-card {
    display: flex;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg);
    border: 1px solid var(--palette-border);
    border-radius: var(--border-radius-md);
    background-color: var(--palette-card);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    align-items: center;
}

.ral-entity-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.ral-entity-logo {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ral-entity-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 0;
    /* Logos don't need large radius */
}

.ral-entity-info {
    flex: 1;
}

.ral-entity-info h3 {
    font-size: var(--fs-500);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.ral-entity-info p {
    font-size: var(--small-fluid);
    margin-bottom: var(--spacing-sm);
    line-height: var(--lh-tight);
    color: var(--text-primary);
}

.ral-entity-info a {
    font-size: var(--small-fluid);
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: var(--fw-medium);
}

.ral-footer {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--palette-border);
    text-align: center;
}

.ral-footer p {
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 600px) {
    .ral-entity-card {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
        text-align: center;
    }

    .ral-entity-logo {
        flex: 0 0 auto;
        width: 100%;
    }

    .ral-entity-info h3 {
        text-align: center;
    }
}