/* ============================================
   PORTAL HPTEC BRASIL - CSS COMPLETO
   Mobile-First Responsive
   ============================================ */

/* --- RESET & VARIABLES --- */
:root {
    --primary: #1a6fb5;
    --primary-dark: #145a94;
    --primary-light: #e8f2fb;
    --secondary: #0d9488;
    --accent: #e74c3c;
    --accent-light: #fdeaea;
    --warning: #f39c12;
    --warning-light: #fef5e7;
    --success: #27ae60;
    --success-light: #e8f8ef;
    --dark: #1a1a2e;
    --g900: #212529;
    --g800: #343a40;
    --g700: #495057;
    --g600: #6c757d;
    --g500: #adb5bd;
    --g400: #ced4da;
    --g300: #dee2e6;
    --g200: #e9ecef;
    --g100: #f8f9fa;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --header-h: 64px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:var(--header-h); }
body { font-family:var(--font); font-size:16px; line-height:1.7; color:var(--g800); background:var(--white); -webkit-font-smoothing:antialiased; }
img { max-width:100%; display:block; }
a { color:var(--primary); text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--primary-dark); }
ul,ol { list-style:none; }
h1,h2,h3,h4,h5,h6 { font-weight:700; line-height:1.3; color:var(--g900); }
strong { font-weight:700; }

/* --- CONTAINER --- */
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 20px; }

/* --- BUTTONS --- */
.btn { display:inline-flex; align-items:center; gap:8px; padding:12px 24px; border:2px solid transparent; border-radius:var(--radius); font-family:var(--font); font-size:0.9rem; font-weight:600; cursor:pointer; transition:all var(--transition); text-decoration:none; white-space:nowrap; }
.btn-primary { background:var(--primary); color:var(--white); border-color:var(--primary); }
.btn-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); color:var(--white); transform:translateY(-2px); box-shadow:0 4px 15px rgba(26,111,181,0.3); }
.btn-outline { background:transparent; color:var(--white); border-color:rgba(255,255,255,0.5); }
.btn-outline:hover { background:var(--white); color:var(--primary); border-color:var(--white); }
.btn-white { background:var(--white); color:var(--primary); border-color:var(--white); }
.btn-white:hover { background:transparent; color:var(--white); border-color:var(--white); }
.btn-lg { padding:14px 32px; font-size:1rem; }
.btn-sm { padding:8px 18px; font-size:0.85rem; }

/* --- HEADER --- */
.header { position:fixed; top:0; left:0; right:0; height:var(--header-h); background:rgba(255,255,255,0.97); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--g200); z-index:1000; transition:box-shadow var(--transition); }
.header.scrolled { box-shadow:var(--shadow-md); }
.header-content { display:flex; align-items:center; justify-content:space-between; height:var(--header-h); }

.logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--primary); flex-shrink:0; }
.logo-icon { font-size:1.6rem; }
.logo-text { display:flex; flex-direction:column; }
.logo-title { font-size:1.1rem; font-weight:800; line-height:1.1; color:var(--primary); }
.logo-subtitle { font-size:0.65rem; font-weight:600; text-transform:uppercase; letter-spacing:2px; color:var(--secondary); }

.nav-list { display:flex; align-items:center; gap:4px; }
.nav-link { display:block; padding:8px 16px; font-size:0.88rem; font-weight:500; color:var(--g700); border-radius:8px; transition:all var(--transition); }
.nav-link:hover, .nav-link.active { color:var(--primary); background:var(--primary-light); }

.nav-dropdown { position:relative; }
.dropdown-toggle { display:flex; align-items:center; gap:4px; }
.dropdown-toggle .arrow { font-size:0.7rem; transition:transform var(--transition); }
.dropdown-menu { position:absolute; top:100%; left:0; min-width:240px; background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-lg); border:1px solid var(--g200); padding:8px; opacity:0; visibility:hidden; transform:translateY(8px); transition:all var(--transition); z-index:100; }
.nav-dropdown:hover .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown:hover .arrow { transform:rotate(180deg); }
.dropdown-menu a { display:block; padding:10px 14px; font-size:0.86rem; font-weight:500; color:var(--g700); border-radius:8px; transition:all var(--transition); }
.dropdown-menu a:hover, .dropdown-menu a.active { background:var(--primary-light); color:var(--primary); }

.mobile-toggle { display:none; flex-direction:column; gap:5px; padding:8px; background:none; border:none; cursor:pointer; z-index:1001; }
.mobile-toggle span { display:block; width:24px; height:2.5px; background:var(--g800); border-radius:2px; transition:all var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity:0; }
.mobile-toggle.active span:nth-child(3) { transform:rotate(-45deg) translate(6px,-6px); }

/* --- HERO --- */
.hero { padding:100px 0 60px; background:linear-gradient(135deg,#0a2a4a 0%,#1a4a7a 40%,#1a6fb5 100%); color:var(--white); margin-top:var(--header-h); }
.hero-content { max-width:780px; }
.hero-badge { display:inline-block; padding:6px 16px; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); border-radius:50px; font-size:0.82rem; font-weight:600; margin-bottom:20px; }
.hero-title { font-size:2rem; font-weight:800; line-height:1.15; margin-bottom:18px; color:var(--white); }
.hero-title .highlight { color:#7ec8e3; }
.hero-subtitle { font-size:1rem; line-height:1.7; color:rgba(255,255,255,0.85); margin-bottom:28px; }
.hero-subtitle strong { color:var(--white); }
.hero-actions { display:flex; flex-direction:column; gap:12px; margin-bottom:40px; }
.hero-stats { display:grid; grid-template-columns:1fr; gap:12px; padding-top:28px; border-top:1px solid rgba(255,255,255,0.15); }
.stat-item { display:flex; align-items:center; gap:12px; padding:12px 16px; background:rgba(255,255,255,0.08); border-radius:var(--radius); border:1px solid rgba(255,255,255,0.1); }
.stat-icon { font-size:1.4rem; flex-shrink:0; }
.stat-item strong { display:block; font-size:0.88rem; color:var(--white); }
.stat-item small { font-size:0.78rem; color:rgba(255,255,255,0.6); }

/* --- ALERT BANNER --- */
.alert-banner { padding:0; margin-top:-24px; position:relative; z-index:10; }
.alert-box { display:flex; gap:14px; padding:18px 20px; background:var(--accent-light); border:1px solid #f5c6cb; border-left:5px solid var(--accent); border-radius:var(--radius); box-shadow:var(--shadow-md); align-items:flex-start; }
.alert-icon { flex-shrink:0; font-size:1.3rem; margin-top:2px; }
.alert-box p { font-size:0.88rem; color:var(--g800); line-height:1.6; }

/* --- SECTIONS --- */
.section { padding:56px 0; }
.section-alt { background:var(--g100); }
.section-dark { background:var(--dark); padding:56px 0; }
.section-header { text-align:center; margin-bottom:40px; max-width:700px; margin-left:auto; margin-right:auto; }
.section-label { display:inline-block; padding:4px 14px; background:var(--primary-light); color:var(--primary); font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; border-radius:50px; margin-bottom:10px; }
.section-header h2 { font-size:1.7rem; font-weight:800; margin-bottom:12px; }
.section-desc { font-size:0.95rem; color:var(--g600); line-height:1.7; }

/* --- CARDS --- */
.cards-grid { display:grid; gap:16px; }
.cards-1 { grid-template-columns:1fr; }
.cards-2 { grid-template-columns:1fr; }
.cards-4 { grid-template-columns:1fr; }

.card { padding:24px 20px; background:var(--white); border:1px solid var(--g200); border-radius:var(--radius-lg); transition:all var(--transition); }
.card:hover { border-color:var(--primary); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.card-icon { width:50px; height:50px; display:flex; align-items:center; justify-content:center; border-radius:var(--radius); margin-bottom:14px; font-size:1.5rem; }
.card-icon.red { background:#fdeaea; }
.card-icon.blue { background:#e8f2fb; }
.card-icon.yellow { background:#fef5e7; }
.card-icon.green { background:#e8f8ef; }
.card h3 { font-size:1.1rem; margin-bottom:8px; }
.card p { font-size:0.88rem; color:var(--g600); line-height:1.65; margin-bottom:12px; }
.card-link { font-size:0.86rem; font-weight:600; color:var(--primary); }
.card-link:hover { color:var(--primary-dark); }

.card.compact { padding:20px; }
.card.compact h4 { font-size:0.95rem; margin-bottom:6px; }
.card.compact p { font-size:0.86rem; margin-bottom:0; }

.card.symptom { border-left:4px solid var(--primary); }
.card.right-card { border-left:4px solid var(--success); background:var(--success-light); }
.card.right-card h4 { color:var(--g900); }

.highlight-card { background:var(--primary-light); border:2px solid var(--primary); }
.highlight-card h4 { color:var(--primary-dark); }

/* --- TIMELINE --- */
.timeline { max-width:700px; margin:0 auto; position:relative; padding-left:48px; }
.timeline::before { content:''; position:absolute; left:23px; top:0; bottom:0; width:3px; background:var(--g300); border-radius:2px; }
.timeline-item { margin-bottom:28px; position:relative; }
.timeline-item:last-child { margin-bottom:0; }
.timeline-num { position:absolute; left:-48px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; background:var(--primary); color:var(--white); font-size:1rem; font-weight:800; border-radius:50%; z-index:1; box-shadow:0 0 0 5px var(--g100); }
.timeline-content h3 { font-size:1rem; margin-bottom:4px; }
.timeline-content p { font-size:0.88rem; color:var(--g600); }

/* --- CTA --- */
.section-cta { padding:56px 0; }
.cta-box { background:linear-gradient(135deg,#1a6fb5,#0d9488); border-radius:var(--radius-lg); padding:40px 28px; text-align:center; color:var(--white); }
.cta-box h2 { font-size:1.5rem; color:var(--white); margin-bottom:14px; }
.cta-box p { font-size:0.95rem; color:rgba(255,255,255,0.85); margin-bottom:24px; max-width:550px; margin-left:auto; margin-right:auto; }

/* --- FAQ --- */
.faq-list { max-width:750px; margin:0 auto; }
.faq-item { border:1px solid var(--g200); border-radius:var(--radius); margin-bottom:10px; overflow:hidden; transition:border-color var(--transition); }
.faq-item.active { border-color:var(--primary); }
.faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; background:var(--white); border:none; cursor:pointer; font-family:var(--font); font-size:0.92rem; font-weight:600; color:var(--g900); text-align:left; transition:background var(--transition); }
.faq-q:hover { background:var(--g100); }
.faq-arrow { font-size:0.8rem; transition:transform var(--transition); color:var(--g500); }
.faq-item.active .faq-arrow { transform:rotate(180deg); color:var(--primary); }
.faq-a { max-height:0; overflow:hidden; transition:max-height 0.4s ease; }
.faq-a p { padding:0 20px 18px; font-size:0.88rem; color:var(--g700); line-height:1.7; }
.faq-a a { color:var(--primary); font-weight:600; }

/* --- NUMBERS --- */
.numbers-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.number-item { text-align:center; padding:20px 12px; }
.number-val { font-size:1.6rem; font-weight:800; color:#7ec8e3; margin-bottom:6px; }
.number-label { font-size:0.78rem; color:rgba(255,255,255,0.55); line-height:1.5; }

/* --- PAGE HERO --- */
.page-hero { padding:100px 0 40px; background:linear-gradient(135deg,#0a2a4a,#1a6fb5); color:var(--white); margin-top:var(--header-h); }
.breadcrumb { display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:0.8rem; flex-wrap:wrap; }
.breadcrumb a { color:rgba(255,255,255,0.6); }
.breadcrumb a:hover { color:var(--white); }
.breadcrumb span { color:rgba(255,255,255,0.4); }
.breadcrumb span:last-child { color:rgba(255,255,255,0.85); }
.page-hero h1 { font-size:1.7rem; font-weight:800; color:var(--white); margin-bottom:10px; }
.page-hero p { font-size:0.95rem; color:rgba(255,255,255,0.75); max-width:650px; }

/* --- CONTENT + SIDEBAR LAYOUT --- */
.content-with-sidebar { display:flex; flex-direction:column; gap:36px; }
.sidebar { order:2; }
.content-main { order:1; }

.sidebar-box { background:var(--g100); border-radius:var(--radius); padding:20px; margin-bottom:16px; }
.sidebar-box h4 { font-size:0.78rem; text-transform:uppercase; letter-spacing:1.5px; color:var(--g600); margin-bottom:12px; }
.sidebar-box ul { display:flex; flex-direction:column; gap:2px; }
.sidebar-box a { display:block; padding:8px 12px; font-size:0.86rem; color:var(--g700); border-radius:6px; border-left:3px solid transparent; transition:all var(--transition); }
.sidebar-box a:hover { background:var(--white); color:var(--primary); border-left-color:var(--primary); }
.sidebar-cta { background:var(--primary-light); border-radius:var(--radius); padding:20px; border:1px solid rgba(26,111,181,0.15); }
.sidebar-cta h4 { font-size:0.92rem; color:var(--primary-dark); margin-bottom:6px; }
.sidebar-cta p { font-size:0.84rem; color:var(--g700); margin-bottom:12px; line-height:1.6; }

/* --- CONTENT BLOCKS --- */
.content-block { margin-bottom:44px; padding-bottom:44px; border-bottom:1px solid var(--g200); }
.content-block:last-of-type { border-bottom:none; }
.content-block h2 { font-size:1.4rem; margin-bottom:16px; padding-bottom:8px; border-bottom:3px solid var(--primary); display:inline-block; }
.content-block h3 { font-size:1.05rem; margin:20px 0 8px; }
.content-block p { margin-bottom:14px; color:var(--g700); line-height:1.75; font-size:0.95rem; }
.content-block ul, .content-block ol { margin-bottom:14px; }
.content-block ul li, .content-block ol li { position:relative; padding-left:22px; margin-bottom:8px; font-size:0.92rem; color:var(--g700); line-height:1.65; }
.content-block ul li::before { content:''; position:absolute; left:4px; top:10px; width:7px; height:7px; background:var(--primary); border-radius:50%; }

.text-primary { color:var(--primary); }

/* --- INFO BOXES --- */
.info-box { display:flex; gap:14px; padding:18px; border-radius:var(--radius); margin:20px 0; align-items:flex-start; }
.info-box.blue { background:var(--primary-light); border:1px solid rgba(26,111,181,0.15); }
.info-box.yellow { background:var(--warning-light); border:1px solid rgba(243,156,18,0.2); }
.info-box.green { background:var(--success-light); border:1px solid rgba(39,174,96,0.2); }
.info-box.red { background:var(--accent-light); border:1px solid rgba(231,76,60,0.2); }
.info-icon { font-size:1.2rem; flex-shrink:0; margin-top:2px; }
.info-box h4 { font-size:0.92rem; margin-bottom:4px; }
.info-box p { font-size:0.86rem; margin-bottom:0; color:var(--g700); line-height:1.65; }

/* --- STEPS LIST --- */
.steps-list { margin:20px 0; }
.step-item { display:flex; gap:14px; margin-bottom:20px; padding-bottom:20px; border-bottom:1px dashed var(--g300); }
.step-item:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.step-num { flex-shrink:0; width:34px; height:34px; display:flex; align-items:center; justify-content:center; background:var(--primary); color:var(--white); font-weight:800; font-size:0.85rem; border-radius:50%; }
.step-item h4 { font-size:0.95rem; margin-bottom:4px; }
.step-item p { font-size:0.88rem; margin:0; color:var(--g700); }

/* --- TABLE --- */
.table-wrapper { overflow-x:auto; margin:20px 0; border-radius:var(--radius); border:1px solid var(--g200); }
table { width:100%; border-collapse:collapse; font-size:0.88rem; }
th { background:var(--primary); color:var(--white); padding:12px 16px; text-align:left; font-weight:600; font-size:0.82rem; white-space:nowrap; }
td { padding:12px 16px; border-bottom:1px solid var(--g200); color:var(--g700); }
tr:last-child td { border-bottom:none; }
tr:nth-child(even) { background:var(--g100); }

/* --- CLASSIFICATION --- */
.class-list { margin:20px 0; }
.class-item { display:flex; align-items:center; gap:14px; padding:12px 16px; border:1px solid var(--g200); border-radius:8px; margin-bottom:6px; font-size:0.88rem; color:var(--g700); flex-wrap:wrap; }
.class-item.active { background:var(--primary-light); border:2px solid var(--primary); font-weight:700; color:var(--primary-dark); }
.class-num { flex-shrink:0; padding:4px 12px; background:var(--g200); font-weight:700; font-size:0.8rem; border-radius:6px; }
.class-item.active .class-num { background:var(--primary); color:var(--white); }
.class-badge { padding:3px 10px; background:var(--accent); color:var(--white); font-size:0.7rem; font-weight:700; border-radius:50px; text-transform:uppercase; }

/* --- EXAM CARDS --- */
.exam-card { padding:20px; background:var(--white); border:1px solid var(--g200); border-radius:var(--radius); margin-bottom:16px; border-left:5px solid var(--primary); }
.exam-card.essential { border-left-color:var(--accent); }
.exam-card.important { border-left-color:var(--warning); }
.exam-card.complementary { border-left-color:var(--secondary); }
.exam-badge { display:inline-block; padding:3px 10px; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; border-radius:50px; margin-bottom:8px; }
.exam-badge.essential { background:var(--accent-light); color:var(--accent); }
.exam-badge.important { background:var(--warning-light); color:var(--warning); }
.exam-badge.complementary { background:#e6f7f5; color:var(--secondary); }
.exam-card h4 { font-size:1rem; margin-bottom:6px; }
.exam-card p { font-size:0.88rem; color:var(--g700); margin:0; line-height:1.65; }

/* --- ALGORITHM STEPS --- */
.algo-steps { margin:20px 0; }
.algo-step { display:flex; gap:14px; padding:16px; background:var(--white); border:1px solid var(--g200); border-radius:var(--radius); margin-bottom:4px; align-items:flex-start; }
.algo-step.highlight { background:var(--success-light); border-color:var(--success); }
.algo-num { flex-shrink:0; width:34px; height:34px; display:flex; align-items:center; justify-content:center; background:var(--primary); color:var(--white); font-weight:800; font-size:0.85rem; border-radius:50%; }
.algo-step.highlight .algo-num { background:var(--success); }
.algo-step h4 { font-size:0.92rem; margin-bottom:2px; }
.algo-step p { font-size:0.84rem; margin:0; color:var(--g600); }
.algo-arrow { text-align:center; font-size:1.2rem; color:var(--g400); padding:2px 0; }

/* --- HOSPITAL CARDS --- */
.hospital-card { padding:20px; background:var(--white); border:1px solid var(--g200); border-radius:var(--radius); margin-bottom:14px; transition:all var(--transition); }
.hospital-card:hover { border-color:var(--primary); box-shadow:var(--shadow-md); }
.hospital-name { font-size:1rem; font-weight:700; color:var(--primary-dark); margin-bottom:2px; }
.hospital-location { font-size:0.82rem; color:var(--g600); margin-bottom:10px; }
.hospital-details { font-size:0.86rem; color:var(--g700); line-height:1.6; margin-bottom:10px; }
.hospital-tags { display:flex; flex-wrap:wrap; gap:6px; }
.hospital-tag { padding:3px 10px; background:var(--primary-light); color:var(--primary); font-size:0.72rem; font-weight:600; border-radius:50px; }
.hospital-tag.sus { background:var(--success-light); color:var(--success); }

/* --- EMERGENCY BOX --- */
.emergency-box { padding:28px 20px; background:linear-gradient(135deg,#e74c3c,#c0392b); color:var(--white); border-radius:var(--radius-lg); text-align:center; margin-bottom:28px; }
.emergency-box h3 { font-size:1.2rem; color:var(--white); margin-bottom:10px; }
.emergency-box p { font-size:0.92rem; color:rgba(255,255,255,0.9); margin-bottom:6px; }
.emergency-number { font-size:2rem; font-weight:800; letter-spacing:2px; }

/* --- STORY --- */
.story-wrapper { max-width:780px; margin:0 auto; }
.story-content { max-width:100%; }
.story-block { margin-bottom:36px; }
.story-block h2 { font-size:1.35rem; margin-bottom:14px; color:var(--g900); }
.story-block p { font-size:0.95rem; color:var(--g700); line-height:1.8; margin-bottom:14px; }
.story-block ul li { position:relative; padding-left:22px; margin-bottom:8px; font-size:0.92rem; color:var(--g700); }
.story-block ul li::before { content:''; position:absolute; left:4px; top:10px; width:7px; height:7px; background:var(--primary); border-radius:50%; }
.story-quote { padding:22px 24px; background:var(--primary-light); border-left:5px solid var(--primary); border-radius:0 var(--radius) var(--radius) 0; margin:24px 0; }
.story-quote p { font-size:1rem; font-style:italic; color:var(--primary-dark); margin:0; line-height:1.7; }

/* --- PAGE NAV --- */
.page-nav { display:flex; flex-direction:column; gap:10px; margin-top:44px; padding-top:28px; border-top:2px solid var(--g200); }
.page-nav-link { display:block; padding:16px 18px; background:var(--g100); border-radius:var(--radius); transition:all var(--transition); }
.page-nav-link:hover { background:var(--primary-light); color:var(--primary-dark); }
.page-nav-link small { display:block; font-size:0.75rem; color:var(--g500); font-weight:600; text-transform:uppercase; letter-spacing:1px; margin-bottom:2px; }
.page-nav-link strong { font-size:0.95rem; color:var(--g900); }
.page-nav-link.next { text-align:right; }

/* --- FOOTER --- */
.footer { background:var(--dark); color:rgba(255,255,255,0.7); padding:48px 0 0; }
.footer-grid { display:grid; grid-template-columns:1fr; gap:28px; padding-bottom:32px; }
.footer-logo { display:flex; align-items:center; gap:8px; color:var(--white); margin-bottom:12px; font-size:0.95rem; }
.footer-col p { font-size:0.82rem; line-height:1.65; }
.footer-col h4 { color:var(--white); font-size:0.82rem; font-weight:700; margin-bottom:12px; text-transform:uppercase; letter-spacing:1px; }
.footer-col ul li { margin-bottom:6px; }
.footer-col ul a { color:rgba(255,255,255,0.55); font-size:0.82rem; transition:color var(--transition); }
.footer-col ul a:hover { color:var(--white); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding:16px 0; text-align:center; }
.footer-bottom p { font-size:0.75rem; color:rgba(255,255,255,0.35); }

/* --- BACK TO TOP --- */
.back-top { position:fixed; bottom:20px; right:20px; width:42px; height:42px; display:flex; align-items:center; justify-content:center; background:var(--primary); color:var(--white); border:none; border-radius:50%; cursor:pointer; font-size:1.2rem; font-weight:700; opacity:0; visibility:hidden; transform:translateY(20px); transition:all var(--transition); box-shadow:var(--shadow-lg); z-index:999; }
.back-top.visible { opacity:1; visibility:visible; transform:translateY(0); }
.back-top:hover { background:var(--primary-dark); transform:translateY(-3px); }

/* =========================================
   RESPONSIVE
   ========================================= */

/* Mobile (default - everything above is mobile-first) */
@media (max-width:767px) {
    .mobile-toggle { display:flex; }
    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 20px;
        overflow-y: auto;
        z-index: 999;
        border-top: 1px solid var(--g200);
    }
    .nav.open { display: block; }
    .nav-list {
        flex-direction: column;
        gap: 0;
        display: flex;       /* <-- garante que a lista seja visível */
    }
    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-bottom: 1px solid var(--g100);
        width: 100%;
        display: block;
        color: var(--g800);
    }
    .nav-dropdown { width: 100%; }
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        display: none;
        padding: 0 0 0 16px;
        background: var(--g100);
        border-radius: 0;
        min-width: auto;
    }
    .nav-dropdown.open .dropdown-menu { display: block; }
}

/* Tablet (768px+) */
@media (min-width:768px) {
    :root { --header-h:72px; }
    .container { padding:0 32px; }

    .hero { padding:130px 0 80px; }
    .hero-title { font-size:2.6rem; }
    .hero-actions { flex-direction:row; }
    .hero-stats { grid-template-columns:repeat(3,1fr); }

    .section { padding:72px 0; }
    .section-header h2 { font-size:2rem; }

    .cards-2 { grid-template-columns:repeat(2,1fr); }
    .cards-4 { grid-template-columns:repeat(2,1fr); }

    .numbers-grid { grid-template-columns:repeat(4,1fr); }
    .number-val { font-size:2rem; }

    .page-hero { padding:120px 0 48px; }
    .page-hero h1 { font-size:2.1rem; }

    .content-with-sidebar { flex-direction:row; }
    .sidebar { order:0; width:250px; flex-shrink:0; position:sticky; top:calc(var(--header-h) + 20px); align-self:flex-start; }
    .content-main { order:0; flex:1; min-width:0; }

    .page-nav { flex-direction:row; }
    .page-nav-link { flex:1; }

    .footer-grid { grid-template-columns:2fr 1fr 1fr; }

    .cta-box { padding:48px 40px; }
    .cta-box h2 { font-size:1.8rem; }

    .story-quote { padding:28px 32px; }
}

/* Desktop (1024px+) */
@media (min-width:1024px) {
    .mobile-toggle { display:none !important; }
    .nav { display:flex !important; }

    .hero-title { font-size:3rem; }
    .hero-subtitle { font-size:1.1rem; }
    .cards-4 { grid-template-columns:repeat(4,1fr); }
    .sidebar { width:270px; }
    .section-header h2 { font-size:2.2rem; }
}

/* Print */
@media print {
    .header,.footer,.back-top,.sidebar-cta,.alert-banner,.hero-actions { display:none !important; }
    .hero,.page-hero { background:none !important; color:#000 !important; padding-top:20px !important; margin-top:0 !important; }
    .hero-title,.page-hero h1 { color:#000 !important; }
    body { font-size:12pt; color:#000; }
    .sidebar { display:none; }
    .content-with-sidebar { display:block; }
}

/* Reduced Motion */
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

@media (max-width:767px) {
    .nav.open {
        display: block !important;
        position: fixed !important;
        top: var(--header-h) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(100vh - var(--header-h)) !important;
        overflow-y: auto !important;
        background: var(--white) !important;
        z-index: 999 !important;
        padding: 0 !important;
    }

    .nav.open .nav-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
		position: relative !important;  /* ← corrige o position:absolute */
		top: 0 !important;              /* ← corrige o top:602px */
		padding-top: 0 !important;      /* ← remove o padding */
    }

    .nav.open .nav-link {
        display: block !important;
        padding: 14px 16px !important;
        font-size: 1rem !important;
        color: var(--g800) !important;
        border-bottom: 1px solid var(--g200) !important;
        width: 100% !important;
    }
}
/* Logo image */
.logo img, .logo-img {
    width: 45px;
    height: 45px;
    max-width: 45px;
    max-height: 45px;
    border-radius: 8px;
    object-fit: cover;
    vertical-align: middle;
}

/* Slogan do header */
.header-slogan {
    font-family: sans-serif;
    font-size: 18px;
    color: #000000;
    margin-left: 15px;
    display: inline-block;
    white-space: nowrap; /* ← impede quebra de linha */
}

@media (max-width: 767px) {
    .header-slogan {
        display: none; /* ← esconde no celular, onde não há espaço */
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .header-slogan {
        font-size: 13px; /* ← fonte menor no tablet para caber em uma linha */
        margin-left: 8px;
    }
}