/* ========================================
   INSTITUTO ISIS - STYLES
   ======================================== */

/* ----------------------------------------
   1. CSS RESET & VARIÁVEIS
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cantarell:wght@400;700&family=Inter:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    color-scheme: light;
    /* Cores Premium e Atemporais */
    --color-primary: #9C8C85;
    /* Bege/Dourado sofisticado */
    --color-primary-dark: #8E7A69;
    --color-primary-light: #D5C8BD;
    --color-secondary: #92837b;
    /* Novo Marrom/Cinza solicitado pelo usuário */
    --color-secondary-light: #A69891;
    --color-accent: #E5D5C6;
    /* Creme para destaque */
    --color-white: #ffffff;
    --color-off-white: #F9F8F7;
    --color-cream: #F5F2EF;

    /* Tons de Cinza para Tipografia */
    --color-text-dark: #1F1F1F;
    --color-text-main: #7a7a7a;
    --color-gray-100: #F1F3F5;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;

    /* Tipografia Premium */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Tamanhos de Fonte */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 2rem;
    /* 32px */
    --font-size-4xl: 3rem;
    /* 48px */
    --font-size-5xl: 4.5rem;
    /* 72px */

    /* Espaçamento */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-4xl: 4rem;
    --spacing-5xl: 6rem;

    /* Design System */
    --container-max-width: 1140px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 50px rgba(0, 0, 0, 0.08);

    /* Transições */
    --transition-base: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: 0.2s ease;

    /* Z-index */
    --z-header: 9999;
    --z-modal: 2000;
}

/* ----------------------------------------
   2. RESET
   ---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

address {
    font-style: normal;
}

/* ----------------------------------------
   3. UTILITÁRIOS
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 4px; /* Espaçamento reduzido */
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-title--center {
    text-align: center;
}

.subheading {
    display: block;
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 8px; /* Espaçamento reduzido (era 20px) */
    font-weight: 300;
}

.subheading--center {
    text-align: center;
}

.section-subtitle {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    color: #7a7a7a;
    margin-bottom: 24px; /* Espaçamento reduzido (era 48px) */
    font-weight: 300;
}

.section-subtitle--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    font-size: var(--font-size-sm);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    /* #FFFFFF00 */
    color: #EEEBE8;
    border: 1px solid #EEEBE8;
    border-radius: 100px;
    font-size: 0.75rem;
}

.btn--outline:hover {
    background-color: #f2f2f2;
    color: #9C8C85;
    border-color: #f2f2f2;
}

.btn--header {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
}

.btn--full {
    width: 100%;
}

/* ----------------------------------------
   4. HEADER / NAV
   ---------------------------------------- */
@keyframes headerSlideIn {
    from {
        transform: translateX(-50%) translateY(-110%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 96px);
    max-width: 1100px;
    background: rgba(156, 140, 133, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: var(--z-header);
    transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
    animation: headerSlideIn 1.25s ease forwards;
}

.header.scrolled {
    background: rgba(156, 140, 133, 0.88);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    top: 10px;
}

.header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 24px;
}

.logo {
    width: 17.877%;
    flex-shrink: 0;
    padding: 4px 0 13px;
}

.logo img {
    height: auto;
    width: 100%;
    max-width: 220px;
    transition: opacity var(--transition-base);
}

.header.scrolled .logo img {
    opacity: 0.95;
}

/* Navigation */
.nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-inner {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Ícones sociais: só aparecem no menu mobile */
.nav-social-mobile,
.nav-header,
.nav-footer-mobile {
    display: none;
}

.nav-list {
    display: flex;
    gap: 12px; /* Reverted to a more compact gap */
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1100px) {
    .nav-list {
        gap: 12px;
    }
}

.nav-link {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.72rem; /* Reverted to smaller size */
    font-weight: 300; /* Reverted to lighter weight */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #EEEBE8;
    padding: 0 4px;
    white-space: nowrap;
    border-radius: 999px;
    transition: color var(--transition-fast), background-color var(--transition-fast), backdrop-filter var(--transition-fast), -webkit-backdrop-filter var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-link.active {
    color: #ffffff;
}

.nav-cta-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Mobile Menu Active State — X */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    box-shadow: none;
  border: none;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ----------------------------------------
   5. HERO
   ---------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: visible;
}

/* ── Hero Slides (fundo) ─────────────────────── */
.hero-slides {
    position: absolute;
    top: -12%;
    left: 0;
    right: 0;
    height: 124%;
    z-index: -1;
    overflow: hidden;
    will-change: transform;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}

/* ── Backgrounds dos Slides ──────────────────── */
.hero-slide:nth-child(1) {
    background-image: url('../images/clinica-ginecologia-instituto-isis-fachada-cuiaba.avif');
}
.hero-slide:nth-child(2) {
    background-image: url('../images/equipe-medica-ginecologista-instituto-isis-cuiaba.avif');
    background-position: 65% top;
}
.hero-slide:nth-child(3) {
    background-image: url('../images/recepcao-acolhedora-instituto-isis-cuiaba.avif');
}

/* Mobile Backgrounds (using new optimized images) */
/* Tablet & Mobile Backgrounds */
@media (max-width: 1024px) {
    .hero-slide:nth-child(1) {
        background-image: url('../images/clinica-ginecologia-instituto-isis-fachada-cuiaba-mobile.webp');
        background-position: center center;
    }
    .hero-slide:nth-child(2) {
        background-image: url('../images/equipe-medica-ginecologista-instituto-isis-cuiaba-mobile.webp');
        background-position: center center;
    }
    .hero-slide:nth-child(3) {
        background-image: url('../images/recepcao-acolhedora-instituto-isis-cuiaba-mobile.webp');
        background-position: center center;
    }
    
    .hero-slides {
        top: 0;
        height: 100%;
    }
}

.hero-slide.active {
    opacity: 1;
}

/* ── Hero Controls (Setas + Dots) ──────────────── */
.hero-controls {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: scale(1.05);
}

.hero-arrow svg {
    width: 18px;
    height: 18px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.hero-dot.active {
    width: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
}

/* ── Fade do texto ao trocar slide ──────────── */
.hero-title,
.hero-subtitle {
    transition: opacity 0.35s ease;
}

/* Overlay removido — fundo limpo */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: none;
    z-index: 0;
    pointer-events: none;
}

/* Container hero: linha horizontal (50% card + 30% vazio + resto foto) */
.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding-top: var(--spacing-2xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* Card esquerdo — sem glass pesado, texto na zona do overlay */
.hero-glass-card {
    width: 38%;
    max-width: 340px;
    padding: 28px 32px;
    margin-top: 40px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(249, 248, 247, 0.82);
    border: none;
    border-radius: 17px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: fadeInUp 1s ease-out;
}

/* Tagline pill */
.hero-tagline {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Cantarell', var(--font-secondary), sans-serif;
    font-size: 0.55rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    max-width: 100%;
    padding: 7px 20px;
    background-color: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    text-align: center;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Título h1 — texto limpo sem fundo, legível sobre overlay */
.hero-title {
    font-family: 'Playfair Display', var(--font-heading), serif;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.25;
    color: #7a6b64;
    background: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-bottom: 0;
    width: 100%;
}

.hero-title--small {
    font-size: clamp(1.1rem, 1.6vw, 1.65rem);
}

.hero-title .highlight {
    font-style: italic;
    font-weight: 400;
    font-size: 1.25em;
    line-height: 1;
}

/* Mesmo efeito nos títulos dos pillar-cards */
.pillar-card-content h3 em,
.pillar-card-content h3 .highlight {
    font-style: italic;
    font-weight: 400;
    font-size: 1.2em;
    line-height: 1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-main);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    display: none;
    /* Elementor não usa subtitle no slide — botões ficam direto */
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: 8px;
}

@media (max-width: 768px) {
    /* ── Hero layout coluna ── */
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100svh;
        min-height: 100svh;
        max-height: 100svh;
        padding-top: 70px; /* Room for header */
        padding-bottom: 0; /* Glue to base */
        overflow: visible;
    }

    .hero-controls {
        position: static;
        transform: none;
        display: flex;
        justify-content: center;
        margin: 0 auto 64px auto;
        z-index: 30;
        gap: 15px;
    }

    .hero-arrow {
        width: 32px;
        height: 32px;
    }

    .hero-arrow svg {
        width: 14px;
        height: 14px;
    }


    .hero-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center the card vertically in the remaining space */
        width: 100%;
        padding: 0 20px; /* Restored side padding for a floating look */
    }

    .hero-glass-card {
        width: 100%;
        max-width: 100%;
        margin-top: 250px;
        margin-bottom: 0;
        padding: 35px 24px;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 28px; /* Restored full rounded corners */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1.2;
        color: #7a6b64;
        letter-spacing: -0.01em;
        text-align: center; /* Centraliza o texto no mobile */
    }

    .hero-title--small {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .hero-title .highlight {
        font-size: 1.1em;
        display: inline-block;
        margin-top: 2px;
    }

    .hero-tagline {
        font-size: 0.6rem; /* Increased size */
        padding: 6px 16px;
        background: rgba(156, 140, 133, 0.08);
        border: 1px solid rgba(156, 140, 133, 0.3);
        color: var(--color-primary);
        letter-spacing: 0.12em;
        font-weight: 600;
        text-transform: uppercase;
        align-self: center; /* Centraliza a pill no mobile */
    }

    /* ── Pilares: em fluxo no mobile ── */
    .hero-pillars-wrapper {
        position: absolute; /* Agora absoluto para permitir descida controlada */
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 25;
        transform: translateY(76%); /* mais respiro entre controls e ícones */
        flex: none;
        display: block !important;
        padding-bottom: 0;
    }

    /* o .container interno já tem o padding lateral — zeramos o extra */
    .hero-pillars-wrapper > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-pillars {
        display: flex;
        flex-direction: row;
        gap: 0;
        margin-top: 10px;
        width: 100%;
        transform: none !important; /* Remove o translateY do desktop no mobile */
    }

    .pillars-swiper {
        overflow: hidden !important; /* Garante que o slide funcione no mobile */
        padding-bottom: 40px; /* Espaço para a sombra não cortar */
        margin-bottom: -40px;
    }

    /* ── Cards compactos em chip ── */
    .pillar-card {
        flex: 1 !important;
        width: auto !important;
        min-height: 180px !important; /* Grande como solicitado */
        padding: 30px 24px !important; /* Padding generoso */
        border-radius: 25px !important;
        align-items: center !important;
        text-align: center !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }

    .pillar-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 0 !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .pillar-card-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    .pillar-arrow-icon {
        display: none !important;
    }

    .pillar-icon,
    .pillar-icon--lg {
        width: 24px !important;
        height: 24px !important;
    }

    .pillar-icon-wrapper svg {
        width: 18px !important;
        height: 18px !important;
    }

    .pillar-card-content {
        gap: 0 !important;
        width: 100%;
    }

    .pillar-card-content h3 {
        font-size: 0.58rem !important;
        margin-bottom: 0 !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .pillar-card-content p {
        display: block !important; /* Sempre visível no slide */
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-top: 5px !important;
        color: var(--color-text-main) !important;
    }

    .impact-phrase {
        padding-top: 240px; /* Aumentado para evitar sobreposição com os pilares mais baixos */
    }

    .our-home-glass-card {
        padding: 0 !important;
    }

    .our-home-text {
        padding: 40px 24px 30px !important;
    }

    .our-home-image {
        border-radius: 0 0 25px 25px !important;
        margin: 0 !important;
    }

    .our-home-image img {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 35% !important;
        display: block !important;
    }
}

/* Pilares Hero — wrapper na base do hero */
.hero-pillars-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    transform: translateY(70%); /* Aumentado de 50% para 70% para descer mais */
    width: 100%;
    display: flex;
    justify-content: center;
}

.pillars-swiper {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    overflow: visible !important;
}

.hero-pillars {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
    transform: none !important;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Esconde clones do Swiper no desktop para não quebrar o layout de 3 colunas */
.hero-pillars .swiper-slide-duplicate {
    display: none !important;
}

.pillar-card {
    flex: 1 1 0 !important; /* Força divisão igual em 3 partes */
    min-width: 0;
    background: rgba(255, 255, 255, 0.7);
    /* Aumentado para reduzir sensação de 'muito claro' */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 24px;
    /* Reduzido conforme solicitado ('muito grande') */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Reduzido conforme solicitado */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pillar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 16px;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.pillar-icon--lg {
    width: 60px;
    height: 60px;
}

.pillar-arrow-icon svg {
    width: 20px;
    height: 20px;
}

.pillar-card:hover .pillar-arrow-icon {
    transform: translateX(5px);
}

.pillar-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    /* Reduzido levemente */
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.pillar-card-content p {
    font-size: 0.875rem;
    color: var(--color-text-main);
    /* Garantindo contraste */
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-pillars {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important; /* Ajustado para 15px */
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        padding-bottom: 20px !important;
    }

    .pillars-swiper {
        overflow: visible !important;
        padding: 0 !important;
    }

    .pillar-card {
        flex: 0 0 84px !important; /* Aumentado para 84px */
        width: 84px !important;
        height: 84px !important;
        min-height: 84px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.45) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
        text-decoration: none !important;
        transition: transform 0.3s ease !important;
    }

    .pillar-card:active {
        transform: scale(0.92) !important;
    }

    .pillar-card-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 !important;
    }

    .pillar-icon-wrapper svg,
    .pillar-icon {
        width: 50px !important;
        height: 50px !important;
        display: block !important;
    }

    .pillar-icon--lg {
        width: 64px !important;
        height: 64px !important;
        display: block !important;
    }

    .pillar-card-content,
    .pillar-arrow-icon {
        display: none !important;
    }

    .impact-phrase {
        padding-top: 140px !important; /* Ajustado para o tamanho 64px */
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   6. SOBRE / INSTITUCIONAL
   ---------------------------------------- */
/* ── Frase de impacto ────────────────────────── */
.impact-phrase {
    background-color: #ffffff;
    padding: 72px 0;
    padding-top: 200px; /* Aumentado para compensar a descida dos pillar cards (translateY 70%) */
    /* compensa translateY(75%) dos pillar cards */
    text-align: center;
}

.impact-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 24px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* 6. ECOSSISTEMA & SOBRE (NATIVE SCROLL-SNAP) */
.ecosystem {
    padding: 80px 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row;
}

.about-image-column {
    flex: 1;
    min-width: 0;
}

.about-text-column {
    flex: 1;
}

/* ── Slider Wrapper ─────────────────────────────── */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

/* ── Container (sem scroll nativo — movido via JS translateX) ── */
.slider-container {
    display: flex;
    align-items: center;
    gap: 0;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Slide base ─────────────────────────────────── */
.slide {
    flex: 0 0 300px;
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* sobrepõe as laterais no slide central */
    margin-left: -48px;
    /* estado padrão: ao fundo, menor, esmaecido */
    transform: scale(0.82);
    opacity: 0.55;
    transition: transform 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
}

.slide:first-child {
    margin-left: 0;
}

/* ── Slide ATIVO (destaque / vermelho) ──────────── */
.slide.active {
    transform: scale(1);
    opacity: 1;
    z-index: 3;
}

/* ── Slides adjacentes (verde, um pouco mais visíveis) ── */
.slide.adjacent {
    transform: scale(0.90);
    opacity: 0.75;
    z-index: 2;
}

/* ── Imagem dentro do slide ─────────────────────── */
.media-wheel-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.media-wheel-img img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    --parallax-y: 0px;
    --img-scale: 1;
    transform: translate3d(0, var(--parallax-y), 0) scale(var(--img-scale));
    transition: transform 0.6s ease;
    will-change: transform;
}

.slide.active .media-wheel-img img {
    --img-scale: 1.03;
    /* leve zoom na foto em destaque */
}

/* ── Botões de navegação ────────────────────────── */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #f2f2f2;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-nav-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

.slider-nav-btn.prev {
    left: 6px;
}

.slider-nav-btn.next {
    right: 6px;
}

/* Text Content Styles */
.about-category {
    display: block;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    color: var(--color-text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ----------------------------------------
   7. DIFERENCIAIS / FEATURES
   ---------------------------------------- */
/* ----------------------------------------
   7. NOSSA CASA (REDEFINIDO)
   ---------------------------------------- */
.our-home {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
}

.our-home::before {
    content: '';
    position: absolute;
    inset: -10px;
    /* Expansão para evitar bordas secas do blur */
    background-image: url('../images/infraestrutura-completa-instituto-isis-cuiaba.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    filter: blur(8px);
    /* Desfocado conforme solicitado (seta vermelha) */
    opacity: 0.3;
    /* Transparente 30% (seta vermelha) */
    z-index: 1;
}

.our-home-container {
    position: relative;
    z-index: 2;
}

.our-home-glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

/* Padrão SVG de fundo */
.our-home-glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--color-primary-light) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.our-home-flex {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    z-index: 1;
    min-height: 420px;
}

.our-home-text {
    flex: 1.2;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.our-home-text .btn--outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
    align-self: flex-start;
    margin-top: 8px;
}

.our-home-text .btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.our-home-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0 25px 25px 0;
    min-height: 420px;
}

.our-home-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    --parallax-y: 0px;
    --img-scale: 1.06;
    transform: translate3d(0, var(--parallax-y), 0) scale(var(--img-scale));
    will-change: transform;
    transition: transform 0.14s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 1024px) {
    .our-home {
        padding: 60px 0;
    }

    .our-home-glass-card {
        padding: 0;
    }

    .our-home-flex {
        flex-direction: column;
        min-height: auto;
    }

    .our-home-text {
        padding: 36px 32px 24px;
        text-align: center;
        align-items: center;
    }

    .our-home-text .btn--outline {
        align-self: center;
    }

    .our-home-image {
        border-radius: 0 0 25px 25px;
        min-height: 300px;
    }
}

/* ----------------------------------------
   8. CORPO CLÍNICO
   ---------------------------------------- */
#corpo-clinico {
    position: relative;
    background: transparent;
}

#corpo-clinico .container {
    padding-top: 100px !important;
    /* Espaçamento interno forçado no container */
    padding-bottom: 80px;
}

/* Removido o overlay decorativo para limpeza visual completa */
.team::before {
    display: none;
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    /* Aumentado de 8px para alinhar com o design system */
    margin-bottom: 60px;
    /* Mais espaço para os cards */
    position: relative;
    z-index: 1;
}

.subheading--center {
    text-align: center;
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9C8C85;
}

/* Ajuste do título da seção team */
/* Títulos e subtítulos unificados globalmente */

/* Descrição centralizada com max-width responsivo */
.team .section-subtitle {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-main);
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    /* Restaurado espaçamento entre cartões */
    position: relative;
    z-index: 1;
}

/* Card com glassmorphism sutil */
.team-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    text-align: left;
    background: rgba(238, 235, 232, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
}

/* Foto: border-radius 25px conforme referência */
.team-card-image {
    aspect-ratio: 1 / 1.3;
    overflow: hidden;
    border-radius: 25px;
    background-color: #d5cdc9;
    margin-bottom: 0;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    --parallax-y: 0px;
    --img-scale: 1;
    transform: translate3d(0, var(--parallax-y), 0) scale(var(--img-scale));
    /* Removido saturate(0) para foto colorida */
    transition: transform 0.6s ease, filter 0.4s ease;
    will-change: transform;
}

.team-card:hover .team-card-image img {
    --img-scale: 1.05;
    filter: none;
}

/* Área de texto do card */
.team-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 12px 14px;
}

.team-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
}

.team-card-credentials {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9C8C85;
    margin: 0;
}

.team-card-bio {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 17px;
    color: var(--color-text-main);
    padding: 0;
    margin: 0;
}

.team-footer {
    margin-top: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Botão CTA da seção corpo clínico */
.btn--team-cta {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    color: #9C8C85;
    border: 1px solid #9C8C85;
    border-radius: 100px;
    padding: 0.5rem 2rem;
}

.btn--team-cta:hover {
    background-color: #9C8C85;
    color: #EEEBE8;
    border-color: #9C8C85;
}

/* ----------------------------------------
   9. ESPECIALIDADES — CARROSSEL
   ---------------------------------------- */
.specialties {
    padding-top: 160px; /* Força o conteúdo para baixo do header */
    padding-bottom: var(--spacing-4xl);
    background-color: #f2f2f2;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center removido para evitar corte no topo */
}

.specialties-header {
    text-align: center;
    margin-bottom: 24px; /* Espaçamento reduzido para os cards (era 48px) */
}

.specialties-header .section-title em {
    font-style: italic;
    font-weight: 400;
}

.specialties-subtitle {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-main);
    margin-top: 8px;
}

/* ── Wrapper do carrossel (overflow controlado) ── */
.esp-carousel-wrap {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.esp-carousel {
    padding-bottom: 4px;
    /* Swiper cuida de overflow e display flex do wrapper */
}

/* Ocultar barra se o swiper vazar */
.esp-carousel::-webkit-scrollbar {
    display: none;
}

/* ── Card ── */
.esp-card {
    height: 100%;
    background: rgba(255, 248, 248, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.esp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.esp-card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
    --parallax-y: 0px;
    --img-scale: 1.04;
    transform: translate3d(0, var(--parallax-y), 0) scale(var(--img-scale));
    will-change: transform;
    transition: transform 0.35s ease;
}

.esp-card-body {
    flex: 1;
    padding: 20px 20px 0; /* Padding lateral e topo do texto */
}

.esp-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 12px;
}

.esp-icon-logo {
    display: block;
    width: 28px; /* Ícone levemente maior para equilibrar ao lado */
    height: auto;
    opacity: 0.70;
}

.esp-num--hidden {
    display: none;
}

.esp-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 0; /* Margem removida pois o wrapper já possui gap/margin */
}

.esp-desc {
    font-family: 'Cantarell', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-main);
    text-align: left;
    width: 100%;
}

/* ── Botão do card ── */
.esp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    max-width: 90%;
    margin: 12px auto 20px !important;
    padding: 10px 20px;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    font-family: 'Cantarell', sans-serif;
    font-size: 0.7rem; /* Fonte levemente menor */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.esp-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* ── Controles inferiores ── */
.esp-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    position: relative;
}

/* ── Setas de navegação ── */
.esp-arrow {
    width: 28px; /* Tamanho ainda menor */
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.esp-arrow svg {
    width: 12px; /* Ícone super discreto */
    height: 12px;
}

.esp-arrow:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    transform: scale(1.07);
}

.esp-arrow:disabled {
    cursor: default;
    transform: none;
    opacity: 0.5; /* Feedback visual quando desativada */
}

/* ── Dots ── */
.esp-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static !important;
    width: auto !important;
    transform: none !important;
}

.esp-dot {
    width: 5px; /* Bolinhas menores/mais finas */
    height: 5px;
    border-radius: 50%;
    background: rgba(156, 140, 133, 0.30);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, width 0.25s;
    flex-shrink: 0;
}

.esp-dot.active {
    width: 18px; /* Traço ativo mais fino e elegante */
    border-radius: 4px;
    background: var(--color-primary);
}

/* Mobile */
@media (max-width: 768px) {
    .esp-carousel-wrap {
        padding: 0 16px;
    }

    /* Removido flex fixo para permitir que o Swiper controle o slidesPerView */
}

.specialties-info-card p {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    line-height: 1.6;
    color: var(--color-text-dark);
    font-style: italic;
}

/* ----------------------------------------
   10. EXAMES (FINA FIDELIDADE)
   ---------------------------------------- */
.exams {
    padding: var(--spacing-5xl) 0;
    background-color: #f2f2f2;
    position: relative;
    overflow: hidden;
}

.exams-row {
    display: flex;
    align-items: center;
    gap: 72px;
}

.exams-col-content {
    flex: 1;
}

.exams-col-image {
    flex: 0 0 42%;
}

.exams-description {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #7a7a7a;
    margin: 16px 0 36px;
    max-width: 460px;
}

.exams-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 36px;
}

.exam-divider {
    height: 1px;
    background: rgba(156,140,133,0.18);
    margin: 22px 0;
}

.exam-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.exam-group-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.6;
    flex-shrink: 0;
}

.exam-dots-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-left: 17px;
}

.exam-dots-list li {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #7a7a7a;
    line-height: 1.5;
    position: relative;
    padding-left: 14px;
}

.exam-dots-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.45;
}


.exams-photo-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10);
    position: relative;
}

.exams-main-photo {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.exams-photo-card:hover .exams-main-photo {
    transform: scale(1.03);
}

@media (max-width: 991px) {
    .exams-row {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .exams-description {
        margin-left: auto;
        margin-right: auto;
    }

    .exams-list-wrapper {
        align-items: center;
        text-align: center;
    }

    .exam-dots-list {
        padding-left: 0;
        align-items: center;
    }

    .exam-dots-list li {
        padding-left: 0;
        text-align: center;
    }

    .exam-dots-list li::before {
        display: none;
    }

    .exams-col-image {
        width: 100%;
        flex: none;
        order: -1;
    }

    .exams-main-photo {
        aspect-ratio: 4 / 3;
    }
}

/* ----------------------------------------
   11. ÍSIS EDUCA (REDEFINIDO)
   ---------------------------------------- */
.isis-educa {
    padding: 60px 0;
    background-color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.educa-grid-container {
    max-width: 1140px;
    margin: 0 auto;
}

.educa-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.educa-col-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.educa-col-form {
    flex: 1;
}

/* Info Cards (Lado Esquerdo) */
.educa-info-card {
    background: #f2f2f2;
    border-radius: 50px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid rgba(156, 140, 133, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.025);

    /* Elementor-spec transitions */
    transition: background 0.3s, border 0.3s, box-shadow 0.3s, transform 1s cubic-bezier(0, 0.33, 0.07, 1.03), opacity 1s cubic-bezier(0, 0.33, 0.07, 1.03);
    will-change: transform, opacity;
}

.educa-info-card:hover {
    background: #e8e8e8;
    transform: translateY(-5px);
}

.educa-icon-wrapper {
    flex-shrink: 0;
}

.educa-icon-circle {
    width: 100px;
    height: 100px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.educa-icon-circle svg {
    width: 40px;
    height: 40px;
}

.cls-butterfly {
    fill: #998c86;
}

.educa-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #9C8C85;
    margin-bottom: 4px;
    font-weight: 500;
}

.educa-text p {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #7a7a7a;
    line-height: 1.4;
}

/* Form Card (Lado Direito) */
.educa-form-card {
    background-color: #f2f2f2;
    border-radius: 25px;
    padding: 35px 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    margin-left: auto;
    position: relative;

    /* Elementor-spec transitions */
    transition: background 0.3s, border 0.3s, box-shadow 0.3s, transform 1s cubic-bezier(0, 0.33, 0.07, 1.03), opacity 1s cubic-bezier(0, 0.33, 0.07, 1.03);
    will-change: transform, opacity;
}

.educa-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #9C8C85;
    margin-bottom: 12px;
    font-weight: 500;
}

.educa-form-desc {
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #7a7a7a;
    margin-bottom: 30px;
    line-height: 1.5;
}

.educa-form-group {
    margin-bottom: 11px;
}

.educa-form-group input {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 10px 28px;
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #7a7a7a;
    transition: all 0.3s ease;
}

.educa-form-group input:focus {
    outline: none;
    border-color: #9C8C85;
    box-shadow: 0 0 0 3px rgba(156, 140, 133, 0.1);
}

.educa-form-group input::placeholder {
    color: #A0A0A0;
}

.btn--educa-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: transparent;
    border: 1px solid rgba(156, 140, 133, 0.4);
    color: #9C8C85;
    border-radius: 100px;
    padding: 10px 40px;
    font-family: 'Cantarell', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    text-transform: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn--educa-submit:hover {
    background-color: #9C8C85;
    color: #FFFFFF;
}

.btn--educa-submit .btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn--educa-submit .btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsividade Ísis Educa */
@media (max-width: 991px) {
    .educa-grid {
        flex-direction: column;
        gap: 30px;
    }

    .educa-col-info,
    .educa-col-form {
        width: 100%;
    }

    .educa-info-card {
        padding: 30px;
        gap: 20px;
    }

    .educa-icon-circle {
        width: 66px;
        height: 66px;
    }

    .educa-icon-circle svg {
        width: 38px;
        height: 38px;
    }
}

/* ----------------------------------------
   14. QUOTE + FOOTER UNIFICADO
   ---------------------------------------- */

/* Wrapper único que engloba quote + footer */
.site-footer {
    background-color: #9C8C85;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    margin: 60px auto 0;
    border-radius: 150px 150px 0px 0px;
    color: #EEEBE8;
    display: flex;
    flex-direction: column;
    min-height: 50vh;
    justify-content: center;
}

/* Quote dentro do footer */
.quote-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    padding: 70px 0;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.quote-logo img {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.24rem;
    /* ~35.9px */
    line-height: 1.15;
    max-width: 420px;
    font-weight: 400;
    color: #EEEBE8;
    margin: 0;
}

.footer-divider {
    width: 100%;
    height: 0;
    border: none;
    border-top: 1px solid #C3BBB7;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 55px 0;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.footer-col-about {
    flex: 1.5;
    min-width: 260px;
    max-width: 380px;
}

.footer-logo-text {
    margin-bottom: 18px;
}

.footer-logo-text img {
    max-width: 198px;
    width: 100%;
}

.footer-col-about p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    /* 16px */
    line-height: 1.5;
    font-weight: 300;
    color: #EEEBE8;
}

.footer-col-info {
    flex: 1.5;
    min-width: 220px;
}

.footer-col-social {
    flex: 1;
    min-width: 160px;
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.96rem;
    /* ~15.4px */
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    color: #EEEBE8;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.55;
    color: #EEEBE8;
}

.contact-list i,
.contact-list svg {
    margin-top: 4px;
    font-size: 1rem;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100% !important;
}

.social-icons a {
    color: #EEEBE8;
    text-decoration: none;
    width: 32px;
    height: 32px;
    background-color: #9C8C85;
    border: 1px solid #EEEBE8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #f2f2f2;
    color: #9C8C85;
    border-color: #f2f2f2;
}

.social-icons a svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-copyright {
    padding: 25px 0;
    color: #EEEBE8;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-copyright-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-powered:hover {
    opacity: 1;
}

.footer-powered span {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.footer-powered img {
    height: 16px;
    width: auto;
    display: block;
}

.footer-divider-v {
    width: 1px;
    height: 16px;
    background-color: rgba(238, 235, 232, 0.4);
}

.powered-link {
    display: block;
    transition: transform 0.3s ease;
}

.powered-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-copyright-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.about-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 400;
}

.about-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-mid);
    margin-bottom: 20px;
    text-align: justify;
}

/* Mobile Adjustments for Sobre */
@media (max-width: 1024px) {
    .about-flex {
        flex-direction: column;
        gap: 40px;
    }

    .media-wheel {
        max-width: 100%;
        margin-left: 0;
    }

    .media-wheel-img {
        height: 100%;
    }

    .about-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-category {
        text-align: center;
    }

    .about-description p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        border-radius: 75px 75px 0px 0px;
        padding: 0 20px;
    }

    .quote-section {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
        gap: 20px;
    }

    .quote-logo img {
        width: 72px;
    }

    .quote-text {
        font-size: 1.6rem;
        line-height: 1.3;
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-col-about {
        max-width: 100%;
    }

    .footer-col-social {
        width: 100%;
    }
}

.animate-ready {
    opacity: 0;
    transform: translateY(26px) scale(0.984);
    transition: opacity 0.95s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.95s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.menu-open {
    overflow: hidden;
}

/* Ajustes de Responsividade */
@media (max-width: 1100px) {
    .nav-link {
        font-size: 0.75rem;
        padding: 0 5px;
    }
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-container {
        padding-top: var(--spacing-xl);
    }

    .hero-glass-card {
        width: 100%;
        max-width: none;
    }
}

/* Mobile & Tablet Portrait (até 991px) */
@media (max-width: 991px) {
    :root {
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
        --spacing-4xl: 3rem;
        --spacing-5xl: 4rem;
    }

    /* Header */
    .header {
        width: 100%;
        max-width: none !important;
        top: 0;
        left: 0 !important;
        transform: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0;
        pointer-events: none;
        animation: none !important;
        opacity: 1 !important;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 40px 24px 15px; /* Alinhado com o padding-top do menu (40px) */
        width: 100%;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .header-actions .btn--outline {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10000;
        pointer-events: auto;
        background: rgba(156, 140, 133, 0.42);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: transform 0.2s ease, background 0.3s ease;
    }

    .mobile-menu-toggle[aria-expanded="true"] {
        box-shadow: none;
    }

    .logo {
        display: none;
        width: 140px;
        pointer-events: auto;
    }

    /* Menu Superior Moderno (Slide Down) */
    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9997;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        background: linear-gradient(165deg, rgba(156, 140, 133, 0.99) 0%, rgba(120, 105, 98, 0.99) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 9998;
        display: flex;
        flex-direction: column;
        padding: max(22px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
        transform: translateY(-105%);
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        border-radius: 0;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        width: 100%;
        min-height: 100%;
    }

    .nav-header,
    .nav-footer-mobile {
        display: flex;
    }

    .nav.nav-open {
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        padding: 0 0 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-close {
        display: none;
    }

    .nav-close:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: rotate(90deg);
    }

    .nav-mobile-logo {
        text-align: left;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .nav-mobile-logo img {
        width: 190px;
        max-width: 62vw;
        max-height: 56px;
        object-fit: contain;
    }

    /* Esconde apenas o conteúdo original do header (logo e botão) quando o menu está aberto,
       mantendo o container do header visível pois ele contém o nav. */
    body.menu-open .header-inner > .logo,
    body.menu-open .header-inner > .header-actions {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 8px 0;
        list-style: none;
        box-sizing: border-box;
    }

    .nav-list li {
        width: auto;
        text-align: center;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav.nav-open .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation */
    .nav.nav-open .nav-list li:nth-child(1) { transition-delay: 0.1s; }
    .nav.nav-open .nav-list li:nth-child(2) { transition-delay: 0.15s; }
    .nav.nav-open .nav-list li:nth-child(3) { transition-delay: 0.2s; }
    .nav.nav-open .nav-list li:nth-child(4) { transition-delay: 0.25s; }
    .nav.nav-open .nav-list li:nth-child(5) { transition-delay: 0.3s; }
    .nav.nav-open .nav-list li:nth-child(6) { transition-delay: 0.35s; }
    .nav.nav-open .nav-list li:nth-child(7) { transition-delay: 0.4s; }

    .nav-list .nav-link {
        display: inline-block;
        padding: 10px 0;
        font-size: 0.92rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        width: auto;
        position: relative;
    }

    .nav-list .nav-link::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        width: 0;
        height: 1px;
        background: white;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-list .nav-link:hover::after {
        width: 30px;
    }

    .nav-footer-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 14px;
        width: 100%;
        margin: 0;
        padding: 14px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-cta-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .nav-cta-mobile .btn {
        width: auto !important;
        min-width: 150px !important;
        max-width: 220px !important;
        text-align: center;
        border-color: rgba(255, 255, 255, 0.5);
        color: #ffffff;
        font-size: 0.72rem;
        padding: 9px 22px;
    }

    .nav-social-mobile {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        padding: 0;
        border: none;
        border-top: none;
        /* garante que não seja empurrado para o fundo */
        flex-shrink: 0;
        align-self: center;
        width: auto;
    }

    .nav-social-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: rgba(255, 255, 255, 0.82);
        font-size: 1rem;
        text-decoration: none;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .nav-social-mobile a:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.55);
    }

    @media (max-height: 640px) {
        .nav {
            padding-top: max(16px, env(safe-area-inset-top));
            padding-bottom: max(18px, env(safe-area-inset-bottom));
        }

        .nav-inner {
            gap: 12px;
        }

        .nav-mobile-logo img {
            width: 170px;
            max-height: 48px;
        }

        .nav-list {
            gap: 6px;
            padding: 4px 0;
        }

        .nav-list .nav-link {
            padding: 7px 0;
            font-size: 0.7rem;
        }

        .nav-cta-mobile {
            display: none;
        }

        .nav-social-mobile a {
            width: 34px;
            height: 34px;
            font-size: 0.88rem;
        }
    }

    /* Hero */
    .hero {
        height: 100vh;
        height: 100svh; /* Suporte para mobile browsers */
        min-height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 70px 0 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Botões padronizados nas seções */
    .hero-buttons .btn,
    .our-home-text .btn,
    .specialties .esp-btn {
        width: 260px;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
        justify-content: center;
    }

    /* Botão do header mantém tamanho original */
    .header .btn {
        width: auto;
        min-width: 140px;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Redução de espaços entre seções */
    .specialties {
        padding-top: 100px;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        min-height: auto;
    }

    .esp-carousel-wrap {
        padding: 0;
    }

    .exams {
        padding: 60px 0;
    }

    .isis-educa {
        padding: 40px 0;
    }
}

/* Mobile Portrait (até 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }


    .educa-info-card {
        flex-direction: column;
        text-align: center;
    }

    .quote-text {
        font-size: 1.4rem;
    }
}

/* ----------------------------------------
   14. ANIMAÇÕES
   ---------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

/* ----------------------------------------
   15. CLASSES DE ACESSIBILIDADE
   ---------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   16. BACK TO TOP (FOOTER ALIGNED)
   ---------------------------------------- */
.footer-back-to-top {
    color: #EEEBE8;
    background-color: #9C8C85;
    border: 1px solid #EEEBE8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: auto; /* Empurra para a extrema direita */
}

.footer-back-to-top:hover {
    background-color: #f2f2f2;
    color: #9C8C85;
    border-color: #f2f2f2;
    transform: translateY(-3px);
}

.footer-back-to-top i {
    font-size: 0.85rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ----------------------------------------
   SCROLLBAR PERSONALIZADO
   ---------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Suporte para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-off-white);
}
