/* =========================================
   PORTAL MARITUBA — STYLES
   Mobile-first, app-like city portal
   ========================================= */

/* ---- TOKENS / VARIABLES ---- */
:root {
  --primary:        #a30e0d;
  --primary-dark:   #7d0b0a;
  --primary-light:  #e8312f;
  --primary-bg:     #fff5f5;

  --secondary:      #013495;
  --secondary-dark: #012370;
  --secondary-light:#1a4db3;
  --secondary-bg:   #f0f4ff;

  --accent:         #e67e22;

  --neutral-50:     #fafafa;
  --neutral-100:    #f4f4f5;
  --neutral-200:    #e4e4e7;
  --neutral-300:    #d1d1d6;
  --neutral-400:    #a0a0ab;
  --neutral-500:    #71717a;
  --neutral-600:    #52525b;
  --neutral-700:    #3f3f46;
  --neutral-800:    #27272a;
  --neutral-900:    #18181b;

  --white:          #ffffff;
  --black:          #0a0a0a;

  --success:        #16a34a;
  --warning:        #d97706;
  --error:          #dc2626;

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    9999px;

  --shadow-xs:      0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:      0 2px 8px rgba(0,0,0,.08);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-md:      0 8px 24px rgba(0,0,0,.12);
  --shadow-lg:      0 16px 40px rgba(0,0,0,.14);

  --transition:     .25s cubic-bezier(.4,0,.2,1);
  --transition-slow:.45s cubic-bezier(.4,0,.2,1);

  --header-h:       64px;
  --container-w:    1200px;
  --space:          8px;

  --font:           'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-800);
  background: var(--neutral-50);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- UTILITY ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: calc(var(--space) * 2);
}

@media (min-width: 640px) {
  .container { padding-inline: calc(var(--space) * 3); }
}

@media (min-width: 1024px) {
  .container { padding-inline: calc(var(--space) * 4); }
}

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--neutral-900);
  line-height: 1.2;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(163,14,13,.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(1,52,149,.35);
}

.btn-outline {
  background: transparent;
  color: var(--neutral-600);
  border-color: var(--neutral-300);
}

.btn-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg);
}

.btn-sm {
  font-size: 12px;
  padding: 7px 14px;
}

.btn-lg {
  font-size: 15px;
  padding: 14px 32px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: calc(var(--space) * 2);
}

@media (min-width: 640px) {
  .header-inner { padding-inline: calc(var(--space) * 3); }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--neutral-800);
  text-decoration: none;
  flex-shrink: 0;
}

.logo strong {
  color: var(--primary);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop nav */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--neutral-600);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
  }

  .nav-link.active {
    font-weight: 700;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--neutral-100);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--primary-bg);
}

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.is-open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

/* Mobile nav drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.nav-overlay.is-active {
  display: block;
  animation: fadeIn .25s ease;
}

@media (max-width: 1023px) {
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--white);
    z-index: 999;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--neutral-700);
    padding: 14px 18px;
    border-radius: var(--radius);
    transition: all var(--transition);
    border-left: 3px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-left-color: var(--primary);
  }

  .nav-link.active {
    font-weight: 700;
  }
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content {
  padding-top: var(--header-h);
}

/* =========================================
   BANNER CAROUSEL (CORRIGIDO - SEM SETAS)
   ========================================= */
.banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--neutral-800);
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/7;
}

@media (max-width: 639px) {
  .carousel-slide { aspect-ratio: 16/9; }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
  filter: brightness(1);
}

.carousel-slide.is-active img {
  transform: scale(1.04);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  /* Remova ou comente o background abaixo */
  background: transparent; 
  
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 4vw, 48px);
  pointer-events: none;
}

.slide-overlay h2, 
.slide-overlay p {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8) !important;
}

.slide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  background: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slide-overlay h2 {
  font-size: clamp(1.1rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  line-height: 1.2;
  margin-bottom: 8px;
}

.slide-overlay p {
  font-size: clamp(.85rem, 2vw, 1.05rem);
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* =========================================
   SECTIONS — SHARED
   ========================================= */
.section {
  padding-block: calc(var(--space) * 8);
}

@media (min-width: 768px) {
  .section { padding-block: calc(var(--space) * 10); }
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: calc(var(--space) * 4);
  gap: 16px;
}

.section-cta {
  text-align: center;
  margin-top: calc(var(--space) * 5);
}

/* =========================================
   QUEM SOMOS
   ========================================= */
.quem-somos-section {
  background: var(--white);
}

.quem-somos-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
}

.quem-somos-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.quem-somos-body .section-title {
  margin-bottom: 16px;
}

.quem-somos-body p {
  color: var(--neutral-600);
  font-size: 15px;
  line-height: 1.75;
  max-width: 72ch;
}

.quem-somos-body strong {
  color: var(--primary);
}

@media (max-width: 600px) {
  .quem-somos-card {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================================
   NOTÍCIAS
   ========================================= */
.noticias-section {
  background: var(--neutral-50);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.06);
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--secondary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.news-date {
  font-size: 12px;
  color: var(--neutral-400);
  font-weight: 500;
}

.news-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-800);
  line-height: 1.45;
}

.news-body p {
  font-size: 13.5px;
  color: var(--neutral-500);
  line-height: 1.6;
  flex: 1;
}

.news-body .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* =========================================
   HORIZONTAL CATEGORY CAROUSEL
   ========================================= */
.guia-section {
  background: var(--white);
}

.delivery-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.delivery-section .section-label {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}

.delivery-section .section-title {
  color: var(--white);
}

.delivery-section .btn-outline {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.35);
  background: transparent;
}

.delivery-section .btn-outline:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

.classificados-section {
  background: var(--neutral-50);
}

/* Wrapper for scroll arrows */
.h-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.h-carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  color: var(--neutral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  z-index: 2;
}

.h-carousel-arrow:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.delivery-section .h-carousel-arrow {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: var(--white);
}

.delivery-section .h-carousel-arrow:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.5);
}

.h-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 12px 4px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.h-carousel::-webkit-scrollbar {
  display: none;
}

/* Category chips */
.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 16px 20px;
  background: var(--white);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  color: var(--neutral-700);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  min-width: 88px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}

.category-chip:hover {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.cat-icon {
  font-size: 26px;
  line-height: 1;
  display: block;
}

.category-chip--delivery {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.category-chip--delivery:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}

.category-chip--class:hover {
  background: var(--secondary-bg);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* =========================================
   EVENTOS
   ========================================= */
.eventos-section {
  background: var(--white);
}

.eventos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .eventos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .eventos-grid { grid-template-columns: repeat(3, 1fr); }
}

.evento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition);
}

.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.evento-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}

.evento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.evento-card:hover .evento-img-wrap img {
  transform: scale(1.06);
}

.evento-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 52px;
}

.badge-day {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.badge-month {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .9;
}

.evento-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evento-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-800);
  line-height: 1.4;
}

.evento-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evento-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--neutral-500);
}

.evento-meta svg {
  flex-shrink: 0;
  color: var(--primary);
}

.evento-body .btn {
  align-self: flex-start;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
}

.footer-top {
  padding-block: calc(var(--space) * 9);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand .footer-logo strong {
  color: var(--primary-light);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--neutral-400);
  margin-bottom: 24px;
  max-width: 34ch;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--neutral-300);
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--neutral-400);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-block: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--neutral-500);
  line-height: 1.8;
}

.footer-bottom p:first-child {
  color: var(--neutral-400);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: slideUp .5s cubic-bezier(.4,0,.2,1) both;
}

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   SCROLLBAR (Desktop)
   ========================================= */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--neutral-100); }
  ::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
  }
}

/* ==========================================================================
   MOBILE TAB BAR (FIXA NO RODAPÉ)
   ========================================================================== */

/* Escondido por padrão (Desktop) */
.mobile-tab-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Ajuste para o conteúdo não ficar escondido atrás da barra */
    body {
        padding-bottom: 70px;
    }

    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px); /* Efeito de vidro */
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        padding-bottom: env(safe-area-inset-bottom); /* Suporte iPhone X+ */
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        transition: all 0.3s ease;
        flex: 1;
    }

    .tab-icon svg {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    .tab-item span {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Item Ativo ou Hover */
    .tab-item.active, .tab-item:active {
        color: #a30e0d; /* Sua cor primária */
    }

    .tab-item.active .tab-icon svg {
        transform: translateY(-2px);
        stroke: #a30e0d;
    }
}

/* Ajuste da Logo Imagem */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Ajuste essa altura conforme o tamanho da sua imagem */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Ajuste para mobile (opcional) */
@media (max-width: 480px) {
    .logo-img {
        height: 50px; /* Logo um pouco menor em celulares para sobrar espaço */
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Espaço entre o ícone e o texto */
    text-decoration: none;
    font-weight: 600;
    color: var(--neutral-800);
}

.nav-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-link:hover svg {
    transform: translateY(-1px);
}

.nav-link.active svg {
    stroke: var(--primary); /* O ícone fica da cor primária quando ativo */
}

/* =========================================
   UTILIDADE PÚBLICA - ESTILO APP VIVO
   ========================================= */

.utilidade-section-app {
    padding: 30px 16px;
    background: #fff;
}

.section-label-app {
    color: var(--primary); /* Vermelho da logo */
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title-app {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.btn-ver-todos {
    background: #f0f0f0;
    color: #444;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.utility-list-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.utility-item-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid #f3f3f3;
    transition: all 0.2s ease;
}

.utility-item-link:active {
    transform: scale(0.97);
    background: #f9f9f9;
}

/* Círculos com Degradê */
.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.red-gradient { background: linear-gradient(135deg, #ff416c, #a30e0d); }
.blue-gradient { background: linear-gradient(135deg, #4776e6, #013495); }
.orange-gradient { background: linear-gradient(135deg, #f2994a, #f2c94c); }
.green-gradient { background: linear-gradient(135deg, #11998e, #38ef7d); }

.utility-info-text {
    flex: 1;
}

.utility-info-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.utility-info-text p {
    font-size: 0.85rem;
    color: #777;
}

.utility-chevron {
    color: #ddd;
}

/* =========================================
   SPLASH SCREEN (MINIMALISTA E CENTRALIZADA)
   ========================================= */
.app-splash {
    display: none;
}

@media (max-width: 768px) {
    .app-splash {
        display: flex;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #000000; /* Fundo imersivo */
        z-index: 10000;
        justify-content: center;
        align-items: center;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .app-splash.hidden {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .splash-text-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: splash-fade-in 0.8s ease-out;
    }

    .splash-title-big {
        font-size: 3rem; /* Bem grande e impactante */
        font-weight: 800;
        color: #a30e0d;
        margin-bottom: -10px;
        letter-spacing: -2px;
    }

    .splash-city-sub {
        font-size: 1.8rem;
        font-weight: 500;
        color: #ffffff;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .splash-loader-minimal {
        width: 60px; /* Menor e mais discreta */
        height: 3px;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
        margin-top: 40px;
        overflow: hidden;
        position: relative;
    }

    .loader-bar-modern {
        width: 0;
        height: 100%;
        background: #a30e0d;
        position: absolute;
        top: 0;
        left: 0;
        animation: splash-loader-fast 2s ease-in-out forwards;
    }

    @keyframes splash-fade-in {
        0% { opacity: 0; transform: translateY(10px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes splash-loader-fast {
        0% { width: 0%; }
        100% { width: 100%; }
    }
}

/* Botão de Login do Cliente no Menu */
.btn-cliente-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #013495; /* O azul do site */
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cliente-login:hover {
    background: #fff;
    color: #013495 !important;
    border-color: #013495;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 52, 149, 0.2);
}

.btn-cliente-login svg {
    transition: stroke 0.3s ease;
}

.btn-cliente-login:hover svg {
    stroke: #013495;
}

/* Ajuste para mobile se precisar */
@media (max-width: 768px) {
    .btn-cliente-login {
        margin-top: 10px;
        justify-content: center;
    }
}

.nav-link.btn-parceiro {
    color: #013495 !important;
    font-weight: 700;
}

/* Botão de Fechar Menu Mobile */
.close-menu {
    display: none; /* Escondido por padrão (Desktop) */
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 35px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

@media (max-width: 1023px) {
    .close-menu {
        display: block; /* Aparece apenas no Mobile */
    }
}

/* Faz o item de cadastro pulsar ou ter uma cor diferente se quiser destaque */
.mobile-tab-bar a[href*="cadastro.php"] .tab-icon svg {
    stroke: #013495; /* Um azul para diferenciar do resto se quiser */
}

/* Animação de pulso */
@keyframes pulse-blue {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(1, 52, 149, 0.4));
  }
  70% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(1, 52, 149, 0.7));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(1, 52, 149, 0));
  }
}

/* Aplica a animação especificamente no ícone de cadastro da Tab Bar */
.mobile-tab-bar a[href*="cadastro.php"] .tab-icon {
    animation: pulse-blue 2s infinite; /* Pulsa a cada 2 segundos infinitamente */
    color: #013495; /* Garante que ele fique azul */
}

/* Ajuste para que o ícone não perca a cor quando estiver ativo */
.mobile-tab-bar a[href*="cadastro.php"].active .tab-icon svg {
    stroke: #a30e0d; /* Fica vermelho se estiver na página de cadastro */
    animation: none; /* Para de pulsar quando o usuário já está na página */
}