/* ============================================================
   Ferrucci Segmed - Public Website CSS
   Clean, professional, responsive
   ============================================================ */

/* ─── Reset & Variables ─────────────────────────────────────── */
:root {
    --primary: #30477a;
    --primary-dark: #263862;
    --primary-light: #e9ecf3;
    --accent: #3ba4a4;
    --accent-light: #e6f5f5;
    --dark: #1a1a2e;
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-500: #6c757d;
    --gray-300: #dee2e6;
    --gray-100: #f8f9fa;
    --white: #fff;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --transition: all .25s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Top Strip ─────────────────────────────────────────────── */
.topbar-strip {
    background: var(--dark);
    color: var(--gray-300);
    font-size: .82rem;
    padding: .4rem 0;
}
.topbar-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-contact { display: flex; gap: 1.5rem; }
.topbar-contact span { opacity: 1; color: #e2e8f0; }
.topbar-login {
    color: var(--accent);
    font-weight: 600;
    font-size: .8rem;
}
.topbar-login:hover { color: var(--white); }

/* ─── Header ────────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-lg);
    border-bottom-color: transparent;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .6rem;
    padding-bottom: .6rem;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--dark);
}
.header-logo:hover { color: var(--primary); }
.logo-img { height: 48px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.15rem; color: var(--primary); }
.logo-text small { font-size: .72rem; color: var(--gray-500); }

/* ─── Navigation ────────────────────────────────────────────── */
.main-nav {
    display: flex;
    align-items: center;
    gap: .2rem;
}
.main-nav .nav-link {
    padding: .55rem .9rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--primary);
    border-radius: var(--radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.main-nav .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.caret { font-size: .65rem; margin-left: .2rem; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: min(280px, calc(100vw - 2rem));
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: .5rem 0;
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: .5rem 1.2rem;
    font-size: .84rem;
    color: var(--gray-700);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,.35);
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-watermark {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: .35;
    pointer-events: none;
}
.hero-watermark img {
    width: 380px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0,0,0,.3));
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: .8rem;
    color: #fff;
}
.hero-line {
    width: 120px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

/* Stats Bar */
.stats-bar {
    background: var(--primary);
    padding: 1.5rem 0;
}
.stats-bar-inner {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.8);
}
[data-theme="dark"] .stats-bar { background: #0f172a; border-top: 1px solid #1e293b; }
[data-theme="dark"] .stat-label { color: #b0bec5; }
[data-theme="dark"] .stat-number { color: #f1f5f9; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    min-height: 44px;
}
.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);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover { background: #2e8a8a; border-color: #2e8a8a; color: #fff; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; min-height: 36px; }

/* ─── Sections ──────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}
.section-alt { background: var(--gray-100); }
.section-dark {
    background: #1a1a2e;
    color: #fff;
}
[data-theme="dark"] .section-dark { background: #0b1120; }
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: .6rem;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
}
.section-dark .section-header p { color: rgba(255,255,255,.7); }
.section-line {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}
.card-text {
    font-size: .9rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}
.card-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
}
.card-link:hover { color: var(--primary-dark); }

/* ─── Service Cards ─────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary);
}
.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}
.service-card p {
    font-size: .88rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 1rem;
}

/* ─── eSocial Section ───────────────────────────────────────── */
.esocial-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 4rem 0;
}
.esocial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.esocial-event {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.esocial-code {
    background: rgba(59,164,164,.15);
    color: var(--accent);
    font-weight: 700;
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 4px;
    white-space: nowrap;
}
.esocial-event p {
    font-size: .9rem;
    opacity: .85;
}

/* ─── Values / Pillars ──────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .5rem;
}

/* ─── About Page ────────────────────────────────────────────── */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-services-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-services-list li {
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-300);
    font-size: .95rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.about-services-list li::before { content: '\2713'; color: var(--primary); font-weight: 700; }

/* ─── Blog ──────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-img { height: 180px; }
.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: .78rem;
    color: var(--gray-500);
    margin-bottom: .5rem;
}
.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 50px;
    text-transform: uppercase;
}
.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}
.blog-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}
.blog-content .blog-body {
    line-height: 1.9;
    font-size: 1.05rem;
}
.blog-content .blog-body h2,
.blog-content .blog-body h3 {
    color: var(--dark);
    margin: 2rem 0 1rem;
}
.blog-content .blog-body p { margin-bottom: 1.2rem; }
.blog-sidebar { position: sticky; top: 100px; }
.blog-sidebar h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .8rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary-light);
}
.blog-sidebar ul { list-style: none; padding: 0; }
.blog-sidebar li { margin-bottom: .4rem; }
.blog-sidebar a {
    font-size: .88rem;
    color: var(--gray-700);
    display: block;
    padding: .35rem 0;
}
.blog-sidebar a:hover { color: var(--primary); }

/* ─── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: .9rem; font-weight: 500; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: .4rem 1.2rem;
    font-size: .84rem;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary-light);
}
.faq-item {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    margin-bottom: .6rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.3rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    font-size: .95rem;
    user-select: none;
}
.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition);
}
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 1.3rem;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.3rem 1.2rem;
}
.faq-answer p {
    font-size: .92rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.contact-info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: .35rem;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: .92rem;
    font-family: var(--font);
    transition: var(--transition);
    color: var(--gray-900);
    background: var(--white);
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(48,71,122,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-500); opacity: 1; } /* WCAG AA: ~4.6:1 */
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder { color: #475569; }

/* ─── Alert ─────────────────────────────────────────────────── */
.alert {
    padding: 1rem 1.3rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .92rem;
}
.alert-success { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-light); }
.alert-danger { background: #ffeaef; color: #c0392b; border: 1px solid #f5c6cb; }

/* ─── Page Header ───────────────────────────────────────────── */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-banner h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
}
.page-banner p {
    font-size: 1rem;
    opacity: .85;
    margin-top: .5rem;
}
.breadcrumb-public {
    display: flex;
    justify-content: center;
    gap: .5rem;
    font-size: .82rem;
    margin-top: .8rem;
    opacity: .8;
}
.breadcrumb-public a { color: var(--accent); }
.breadcrumb-public a:hover { color: var(--white); }

/* ─── Page Content ──────────────────────────────────────────── */
.page-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    font-size: 1.02rem;
    line-height: 1.8;
}
.page-content-area h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 2rem 0 1rem;
}
.page-content-area h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin: 1.5rem 0 .8rem;
}
.page-content-area p { margin-bottom: 1.2rem; }
.page-content-area ul,
.page-content-area ol { margin: 1rem 0 1rem 1.5rem; }
.page-content-area li { margin-bottom: .5rem; }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 3rem;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: .85rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}
.pagination a:hover,
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.05rem;
}
.footer-col h4 {
    color: var(--white);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
    color: var(--gray-300);
    font-size: .88rem;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-social a:hover { color: var(--accent) !important; transform: scale(1.15); }
.footer-col p { font-size: .88rem; line-height: 1.6; }
.footer-contact li {
    font-size: .88rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: .8rem; opacity: .7; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--gray-300); font-size: .8rem; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ─── Back to Top ───────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 997;
    transition: var(--transition);
}
.back-to-top:hover { background: var(--primary-dark); transform: scale(1.08); }

/* ─── Service Detail ────────────────────────────────────────── */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 300px);
    gap: 3rem;
    padding: 3rem 0;
}
.service-detail-content { line-height: 1.9; font-size: 1.02rem; }
.service-detail-content h2 { color: var(--dark); margin: 2rem 0 1rem; }
.service-detail-content p { margin-bottom: 1.2rem; }
.service-sidebar-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}
.service-sidebar-card h4 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--primary-light);
}
.service-sidebar-card ul { list-style: none; padding: 0; }
.service-sidebar-card li { margin-bottom: .4rem; }
.service-sidebar-card a {
    font-size: .85rem;
    color: var(--gray-700);
    display: block;
    padding: .4rem .6rem;
    border-radius: 4px;
    transition: var(--transition);
}
.service-sidebar-card a:hover,
.service-sidebar-card a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* ─── Responsive ────────────────────────────────────────────── */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; }

/* Tablet landscape */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-grid aside { order: -1; }
    .service-sidebar-card { position: static; }
    .esocial-grid { grid-template-columns: 1fr; }
    .about-intro { grid-template-columns: 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .blog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .section { padding: 4rem 0; }
    .blog-detail-grid { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--gray-300); }
}

/* Tablet portrait */
@media (max-width: 768px) {
    /* Header: needs relative for absolute menu */
    .site-header { position: sticky; }
    .header-inner { position: relative; }

    /* Top bar: hide on mobile */
    .topbar-strip { display: none; }

    /* Mobile nav */
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: .5rem 0;
        border-top: 1px solid var(--gray-300);
        box-shadow: 0 8px 24px rgba(0,0,0,.15);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1002;
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-link {
        padding: .8rem 1.2rem;
        width: 100%;
        text-align: left;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 0;
    }
    .nav-dropdown { width: 100%; }
    .nav-dropdown .nav-dropdown-trigger {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 1.2rem;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--gray-300);
        border-left: 3px solid var(--primary-light);
        padding-left: .8rem;
        margin-left: 1.2rem;
        min-width: auto;
        display: none;
        background: var(--gray-100);
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a {
        text-align: left;
        white-space: normal;
        padding: .65rem .8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Hero */
    .hero { padding: 3rem 0 2.5rem; min-height: 380px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; margin-bottom: 1.8rem; }
    .hero-watermark { display: none; }
    .hero-inner { max-width: 100%; }
    .stats-bar-inner { gap: 2rem; flex-wrap: wrap; justify-content: center; }
    .stat-number { font-size: 1.5rem; }

    /* Grids */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

    /* Contact form grid */
    .contact-form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-bottom-inner { flex-direction: column; gap: .8rem; text-align: center; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }

    /* Sections */
    .section { padding: 2.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.6rem; }

    /* Page banner */
    .page-banner { padding: 2rem 0; }
    .page-banner h1 { font-size: 1.5rem; }
    .breadcrumb-public { flex-wrap: wrap; justify-content: center; }

    /* Buttons: minimum touch target */
    .btn { min-height: 44px; }
    .btn-lg { padding: .75rem 1.5rem; font-size: .92rem; }

    /* Page content */
    .page-content-area { padding: 2rem 1rem; }

    /* About */
    .about-intro .about-img { max-width: min(340px, 100%); margin: 0 auto; width: 100%; }

    /* Service card */
    .service-card { padding: 1.5rem; }

    /* Filter bar */
    .filter-bar { justify-content: flex-start; }
    .filter-btn { min-height: 40px; }

    /* Contact info */
    .contact-info-card { padding: 1rem; }

    /* CTA section inline styles override */
    .section-dark h2 { font-size: 1.6rem !important; }
    .section-dark p { font-size: 1rem !important; }
}

/* Mobile */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    /* Gallery: 1 col on mobile (2 cols only if enough space) */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: .6rem; }

    /* Hero: full stack */
    .hero { padding: 2.5rem 0 2rem; min-height: 340px; }
    .hero h1 { font-size: 1.5rem; line-height: 1.2; }
    .hero p { font-size: .95rem; margin-bottom: 1.5rem; }
    .hero-buttons { flex-direction: column; gap: .75rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; text-align: center; }

    /* Stats: horizontal scroll-friendly wrap */
    .stats-bar { padding: 1rem 0; }
    .stats-bar-inner { gap: 1.5rem; justify-content: space-around; }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: .75rem; }

    /* Grids: single column on narrow phones */
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
    .values-grid { grid-template-columns: 1fr; gap: .75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }

    /* Sections */
    .section { padding: 2rem 0; }
    .section-header h2 { font-size: 1.35rem; }
    .section-header p { font-size: .92rem; }

    /* Page banner */
    .page-banner { padding: 1.5rem 0; }
    .page-banner h1 { font-size: 1.3rem; }
    .page-banner p { font-size: .88rem; }

    /* Buttons */
    .btn { padding: .6rem 1.2rem; font-size: .85rem; min-height: 44px; }
    .btn-lg { padding: .7rem 1.3rem; font-size: .9rem; }
    .btn-sm { padding: .5rem .9rem; font-size: .8rem; }

    /* Cards */
    .value-card { padding: 1.5rem 1rem; }
    .service-card { padding: 1.2rem; }

    /* eSocial */
    .esocial-section { padding: 2.5rem 0; }
    .esocial-event { flex-direction: column; gap: .4rem; }
    .esocial-code { width: fit-content; }

    /* Page content */
    .page-content-area { padding: 1.5rem .75rem; font-size: .95rem; }

    /* Footer */
    .footer-col p { font-size: .82rem; }
    .footer-contact li { font-size: .82rem; word-break: break-word; }
    .footer-bottom { padding: 1rem 0; }
    .footer-bottom p { font-size: .78rem; }

    /* Lightbox */
    .lightbox { padding: .5rem; }
    .lightbox img { max-width: 100%; max-height: 85vh; }

    /* Blog */
    .blog-content h1 { font-size: 1.4rem; }
    .blog-content .blog-body { font-size: .95rem; }

    /* FAQ */
    .faq-question { padding: .8rem 1rem; font-size: .88rem; }
    .faq-answer p { font-size: .85rem; }
    .faq-list { max-width: 100%; }

    /* Forms */
    .form-input, .form-textarea { font-size: 1rem; padding: .65rem .9rem; } /* 1rem prevents iOS zoom */

    /* Back to top */
    .back-to-top { width: 40px; height: 40px; bottom: 1rem; right: 1rem; font-size: 1rem; z-index: 997; }

    /* GMB section inline flex: colapsa em coluna */
    .gmb-section [style*="display:flex"][style*="gap:2rem"],
    .gmb-section [style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.25rem !important;
        text-align: center !important;
    }
    .gmb-section [style*="text-align:left"] {
        text-align: center !important;
    }
    .gmb-section img[style*="width:220px"] {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
    }
}

/* Extra small */
@media (max-width: 360px) {
    .container { padding: 0 .75rem; }
    .hero { min-height: 300px; }
    .hero h1 { font-size: 1.25rem; }
    .hero p { font-size: .88rem; }
    .page-banner { padding: 1.2rem 0; }
    .page-banner h1 { font-size: 1.15rem; }
    .section { padding: 1.5rem 0; }
    .header-inner { padding-top: .4rem; padding-bottom: .4rem; }
    .logo-img { height: 36px; }
    .logo-text strong { font-size: .95rem; }
    .logo-text small { display: none; } /* hide subtitle on very small screens */
    .stats-bar-inner { gap: 1rem; }
    .stat-number { font-size: 1.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .filter-bar { gap: .35rem; }
    .filter-btn { padding: .35rem .8rem; font-size: .78rem; }
    .nav-toggle { padding: .4rem; }
}

/* ─── Dark Mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
    --primary: #5b7fc7;
    --primary-dark: #7b9de0;
    --primary-light: #1e2a42;
    --accent: #4fbdbd;
    --accent-light: #0d2e2e;
    --card-bg: #1e293b;
    --dark: #f1f5f9;
    --gray-900: #f8fafc;
    --gray-700: #e2e8f0;
    --gray-500: #94a3b8;
    --gray-300: #334155;
    --gray-100: #1e293b;
    /* --white permanece #fff — usada em textos sobre fundos coloridos */
    --shadow: 0 2px 8px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
}

[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }

/* Fundos que usavam var(--white) agora recebem override explícito */
[data-theme="dark"] .site-header { background: #0f172a; }
[data-theme="dark"] .card { background: #1e293b; }
[data-theme="dark"] .service-card { background: #1e293b; }
[data-theme="dark"] .value-card { background: #1e293b; }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea { background: #1e293b; }
[data-theme="dark"] .nav-dropdown-menu { background: #0f172a; }
[data-theme="dark"] .main-nav { background: #0f172a; }
[data-theme="dark"] .service-sidebar-card { background: #1e293b; }
[data-theme="dark"] .filter-btn { background: #1e293b; }
[data-theme="dark"] .faq-item { background: #1e293b; }

[data-theme="dark"] .site-header { background: #0f172a; border-bottom-color: #1e293b; }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.5); border-bottom-color: transparent; }
[data-theme="dark"] .header-logo { color: #f1f5f9; }
[data-theme="dark"] .logo-text strong { color: #7b9de0; }
[data-theme="dark"] .logo-text small { color: #94a3b8; }

[data-theme="dark"] .main-nav .nav-link { color: #e2e8f0; }
[data-theme="dark"] .main-nav .nav-link:hover { background: #1e293b; color: #7b9de0; }
[data-theme="dark"] .nav-dropdown-menu { background: #0f172a; border-color: #1e293b; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
[data-theme="dark"] .nav-dropdown-menu a { color: #e2e8f0; }
[data-theme="dark"] .nav-dropdown-menu a:hover { background: #1e293b; color: #7b9de0; }
[data-theme="dark"] .nav-toggle span { background: #e2e8f0; }

[data-theme="dark"] .topbar-strip { background: #0b1120; border-bottom: 1px solid #1e293b; }
[data-theme="dark"] .topbar-contact span { color: #cbd5e1; }
[data-theme="dark"] .topbar-login { color: #4fbdbd; font-weight: 700; }
[data-theme="dark"] .topbar-login:hover { color: #fff; }

[data-theme="dark"] .card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .card-title { color: #e2e8f0; }
[data-theme="dark"] .card-text { color: #b0bec5; }

[data-theme="dark"] .service-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .service-card:hover { border-color: #5b7fc7; }
[data-theme="dark"] .service-card h3 { color: #e2e8f0; }
[data-theme="dark"] .service-card p { color: #b0bec5; }
[data-theme="dark"] .service-icon { background: #263862; color: #5b7fc7; }

[data-theme="dark"] .section-header h2 { color: #e2e8f0; }
[data-theme="dark"] .section-header p { color: #b0bec5; }
[data-theme="dark"] .section-alt { background: #1e293b; }

[data-theme="dark"] .value-card { background: #1e293b; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
[data-theme="dark"] .value-card h3 { color: #f1f5f9; }
[data-theme="dark"] .value-card p { color: #cbd5e1; }
[data-theme="dark"] .value-icon { color: #5b7fc7; }

[data-theme="dark"] .faq-item { border-color: #334155; }
[data-theme="dark"] .faq-item:hover { border-color: #5b7fc7; }
[data-theme="dark"] .faq-question { color: #e2e8f0; }
[data-theme="dark"] .faq-question::after { color: #5b7fc7; }
[data-theme="dark"] .faq-answer p { color: #cbd5e1; }

[data-theme="dark"] .contact-info-card { border-color: #334155; background: #1e293b; }
[data-theme="dark"] .contact-info-icon { background: #263862; color: #5b7fc7; }

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus { border-color: #5b7fc7; box-shadow: 0 0 0 3px rgba(91,127,199,.15); }
[data-theme="dark"] .form-label { color: #e2e8f0; }

[data-theme="dark"] .alert-success { background: #1e2a42; color: #7b9de0; border-color: #334155; }
[data-theme="dark"] .alert-danger { background: #2d1b1b; color: #f87171; border-color: #4a1c1c; }

[data-theme="dark"] .page-banner { background: linear-gradient(135deg, #1e3a6e 0%, #0f172a 100%); }
[data-theme="dark"] .page-banner h1 { color: #fff; }
[data-theme="dark"] .page-banner p { color: rgba(255,255,255,.85); }
[data-theme="dark"] .breadcrumb-public a { color: #4fbdbd; }
[data-theme="dark"] .breadcrumb-public { color: rgba(255,255,255,.7); }
[data-theme="dark"] .page-content-area h2,
[data-theme="dark"] .page-content-area h3 { color: #e2e8f0; }
[data-theme="dark"] .page-content-area { color: #cbd5e1; }

[data-theme="dark"] .blog-content h1,
[data-theme="dark"] .blog-content .blog-body h2,
[data-theme="dark"] .blog-content .blog-body h3 { color: #e2e8f0; }
[data-theme="dark"] .blog-sidebar h4 { color: #e2e8f0; border-bottom-color: #334155; }
[data-theme="dark"] .blog-sidebar a { color: #b0bec5; }
[data-theme="dark"] .blog-sidebar a:hover { color: #5b7fc7; }
[data-theme="dark"] .blog-category { background: #263862; color: #5b7fc7; }

[data-theme="dark"] .filter-btn { background: #1e293b; border-color: #334155; color: #b0bec5; }
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active { background: #5b7fc7; color: #fff; border-color: #5b7fc7; }

[data-theme="dark"] .about-intro p { color: #cbd5e1; }
[data-theme="dark"] .about-intro h2 { color: #f1f5f9; }
[data-theme="dark"] .about-services-list li { border-bottom-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .about-services-list li::before { color: #5b7fc7; }

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span { border-color: #334155; color: #b0bec5; }
[data-theme="dark"] .pagination a:hover,
[data-theme="dark"] .pagination .active { background: #5b7fc7; color: #fff; border-color: #5b7fc7; }

[data-theme="dark"] .service-sidebar-card { background: #1e293b; }
[data-theme="dark"] .service-sidebar-card h4 { color: #e2e8f0; border-bottom-color: #334155; }
[data-theme="dark"] .service-sidebar-card a { color: #b0bec5; }
[data-theme="dark"] .service-sidebar-card a:hover,
[data-theme="dark"] .service-sidebar-card a.active { background: #263862; color: #5b7fc7; }
[data-theme="dark"] .service-detail-content h2 { color: #e2e8f0; }

[data-theme="dark"] .site-footer { background: #0b1120; }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,.06); }

[data-theme="dark"] .back-to-top { background: #5b7fc7; }
[data-theme="dark"] .back-to-top:hover { background: #7b9de0; }

[data-theme="dark"] .lightbox { background: rgba(0,0,0,.95); }

/* Buttons dark mode — texto sempre branco onde necessário */
[data-theme="dark"] .btn-primary { background: #5b7fc7; border-color: #5b7fc7; color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #7b9de0; border-color: #7b9de0; color: #fff; }
[data-theme="dark"] .btn-white { background: #1e293b; color: #5b7fc7; border-color: #334155; }
[data-theme="dark"] .btn-white:hover { background: #263862; border-color: #263862; color: #7b9de0; }
[data-theme="dark"] .btn-outline { color: #5b7fc7; border-color: #5b7fc7; }
[data-theme="dark"] .btn-outline:hover { background: #5b7fc7; color: #fff; }
[data-theme="dark"] .btn-accent { background: #2e8a8a; border-color: #2e8a8a; color: #fff; }
[data-theme="dark"] .btn-accent:hover { background: #4fbdbd; border-color: #4fbdbd; color: #fff; }
[data-theme="dark"] .btn-hero-outline { color: #fff; border-color: rgba(255,255,255,.7); }
[data-theme="dark"] .btn-hero-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* Elementos com texto branco sobre fundo colorido — devem manter branco no dark mode */
[data-theme="dark"] .stats-bar .stat-label { color: rgba(255,255,255,.8); }
[data-theme="dark"] .topbar-login:hover { color: #fff; }
[data-theme="dark"] .footer-logo { color: #fff; }
[data-theme="dark"] .footer-col h4 { color: #f1f5f9; }
[data-theme="dark"] .footer-col a { color: #94a3b8; }
[data-theme="dark"] .footer-col a:hover { color: #4fbdbd; }
[data-theme="dark"] .footer-col p { color: #94a3b8; }
[data-theme="dark"] .footer-contact li { color: #94a3b8; }
[data-theme="dark"] .footer-bottom p { color: rgba(255,255,255,.5); }
[data-theme="dark"] .footer-bottom-links a { color: #94a3b8; }
[data-theme="dark"] .footer-bottom-links a:hover { color: #4fbdbd; }
[data-theme="dark"] .gallery-overlay span { color: #fff; }
[data-theme="dark"] .back-to-top { color: #fff; }
[data-theme="dark"] .lightbox-close { color: #fff; }

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: .35rem;
    border-radius: var(--radius);
    transition: var(--transition);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ─── Dark mode: mobile nav overrides ───────────────────────── */
@media (max-width: 768px) {
    [data-theme="dark"] .main-nav {
        background: #0f172a;
        border-top-color: #1e293b;
        box-shadow: 0 8px 24px rgba(0,0,0,.5);
    }
    [data-theme="dark"] .main-nav .nav-link { color: #e2e8f0; }
    [data-theme="dark"] .nav-dropdown-menu {
        background: #1e293b;
        border-left-color: #334155;
        border-top-color: #334155;
    }
    [data-theme="dark"] .nav-dropdown-menu a { color: #cbd5e1; }
}

/* ─── 600px: transição tablet → mobile ─────────────────────── */
@media (max-width: 600px) {
    /* Footer colapsa para 1 coluna mais cedo */
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Grids de 2 cols ficam em 1 col */
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Navegação dropdown desktop: protege overflow */
    .nav-dropdown-menu { max-width: calc(100vw - 1rem); }

    /* Botões touch-friendly */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
}

/* ─── Cookie banner mobile ───────────────────────────────────── */
@media (max-width: 600px) {
    #cookieConsent { padding: .75rem 1rem !important; }
    #cookieConsent > div { flex-direction: column !important; gap: .75rem !important; }
    #cookieConsent .btn { width: 100%; justify-content: center; }
}

/* ─── Faixa P8W ──────────────────────────────────────────────── */
.p8w-bar {
    width: 100%;
    background: #0f172a;
    color: var(--gray-500);
    text-align: center;
    font-size: .72rem;
    padding: .45rem 1rem;
    letter-spacing: .02em;
}
.p8w-bar a {
    color: #5b7fc7;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.p8w-bar a:hover { color: #7b9de0; text-decoration: underline; }

[data-theme="dark"] .p8w-bar { background: #060c18; }

/* ─── WhatsApp Floating Button ──────────────────────────────── */
/* Botões flutuantes em pilha vertical, canto inferior direito  */

/* WhatsApp — acima do back-to-top */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 5rem;
    width: 48px;
    height: 48px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 998;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.55); }

/* Chat FAB — topo da pilha */
#ferrucci-chat-fab,
.fc-chat-fab {
    right: 1.5rem !important;
    bottom: 8.75rem !important;
    z-index: 999 !important;
}

@media (max-width: 768px) {
    .whatsapp-float { right: 1rem; bottom: 4.25rem; width: 44px; height: 44px; }
    .whatsapp-float svg { width: 22px; height: 22px; }
    #ferrucci-chat-fab, .fc-chat-fab { right: 1rem !important; bottom: 7.75rem !important; }
}
@media (max-width: 480px) {
    .whatsapp-float { right: 1rem; bottom: 4rem; width: 44px; height: 44px; }
    #ferrucci-chat-fab, .fc-chat-fab { right: 1rem !important; bottom: 7.5rem !important; }
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
    .topbar-strip, .site-header, .site-footer, .back-to-top, .filter-bar, .lightbox, .theme-toggle, .p8w-bar, .whatsapp-float { display: none !important; }
    .section { padding: 1rem 0; }
    body { color: #000; }
    .hero { padding: 1rem 0; background: none !important; color: #000; }
    .hero-badge { display: none; }
    .page-banner { background: none !important; color: #000; padding: 1rem 0; }
}
