:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #004E89;
    --secondary-dark: #003A66;
    --accent: #1A659E;
    --text: #2C3E50;
    --text-light: #5A6C7D;
    --bg: #F7F9FC;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Barra Superior */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-bar-info .location {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    opacity: 1;
}

.top-bar-info .datetime {
    opacity: 0.95;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.top-bar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-bar-actions button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.top-bar-actions button:hover {
    opacity: 1;
}

/* Barra Principal */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: block;
    line-height: 0;
}

.logo-divider {
    width: 1px;
    height: 50px;
    background: rgba(0,0,0,0.1);
}

.logo-prefeitura {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: filter 0.3s ease;
}

.logo-prefeitura:hover {
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

.logo-digital {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: filter 0.3s ease;
}

.logo-digital:hover {
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

.header-title {
    flex: 1;
    margin-left: 2rem;
}

.header-title h1 {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 0;
}

.header-title p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.header-search {
    display: flex;
    align-items: stretch;
    background: var(--bg);
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    min-width: 320px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 78, 137, 0.1);
}

.search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    color: var(--text);
}

.header-search input::placeholder {
    color: #999;
}

.header-search input:focus {
    outline: none;
}

.header-search button {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.header-search button svg {
    flex-shrink: 0;
}

.header-search button .btn-text {
    display: inline;
}

.header-search button:hover {
    background: var(--primary-dark);
}

.header-search button:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .header-search {
        min-width: 100%;
    }
    
    .header-search button .btn-text {
        display: none;
    }
    
    .header-search button {
        padding: 0.75rem;
        width: 48px;
    }
}

header.scrolled .main-header {
    padding: 0.75rem 0;
}

/* Espaçamento para compensar header fixo */
body {
    padding-top: 150px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover, nav a:focus {
    opacity: 0.8;
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

/* Hero Slider */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--primary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,107,53,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26,101,158,0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: transform 1s ease-in-out;
}

.slide.active img {
    animation: kenBurns 10s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.slide-text {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

.slide-text.centered {
    background: transparent;
}

.slide-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-text p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Slide description with rich text formatting */
.slide-description {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.slide-description p {
    margin-bottom: 1rem;
}

.slide-description p:empty {
    display: none;
}

.slide-description strong {
    font-weight: 600;
}

.slide-description em {
    font-style: italic;
}

.slide-description ul,
.slide-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.slide-description li {
    margin-bottom: 0.5rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover, .slider-btn:focus {
    background: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Indicadores do Slider */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-indicator:hover {
    background: rgba(255,255,255,0.8);
}

/* Apresentação */
.apresentacao {
    padding: 4rem 0 3rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
    position: relative;
}

.apresentacao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.apresentacao::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
}

.apresentacao h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apresentacao p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
}

/* Divisor entre seções */
.section-divider {
    position: relative;
    height: 80px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--accent) 50%, var(--primary) 80%, transparent 100%);
    opacity: 0.3;
}

.section-divider-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.3);
    z-index: 1;
}

.section-divider-icon::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s ease-in-out infinite;
}

.section-divider-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* Portfolio */
.portfolio {
    padding: 4rem 0 6rem 0;
    background: var(--bg);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
    pointer-events: none;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--secondary);
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
    z-index: 1;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover, .card:focus-within {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

/* Card description with rich text formatting */
.card-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.card-description p {
    margin-bottom: 0.75rem;
}

.card-description p:empty {
    display: none;
}

.card-description strong {
    color: var(--text);
    font-weight: 600;
}

.card-description em {
    font-style: italic;
}

.card-description ul,
.card-description ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-description li {
    margin-bottom: 0.25rem;
}

/* Suporte para classes do Quill */
.card-description .ql-align-center,
.slide-description .ql-align-center {
    text-align: center;
}

.card-description .ql-align-right,
.slide-description .ql-align-right {
    text-align: right;
}

.card-description .ql-align-justify,
.slide-description .ql-align-justify {
    text-align: justify;
}

.card-description .ql-align-left,
.slide-description .ql-align-left {
    text-align: left;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-logo {
    height: 50px;
    width: auto;
}

/* Footer */
footer {
    background: #1a2332;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4rem;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--primary);
}

.footer-bottom {
    background: #0f1621;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover, .footer-section a:focus {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .slide-text h2 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
}


.desenvolvido-por {
    display: inline-flex;
    align-items: center;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}


/* Barra de Acessibilidade */
.accessibility-bar {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accessibility-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.accessibility-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.accessibility-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.accessibility-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* Menu de Navegação */
.main-nav {
    background: var(--bg);
    border-top: 1px solid #e0e0e0;
    border-bottom: 2px solid var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-menu svg {
    flex-shrink: 0;
}

/* Responsivo */
@media (max-width: 992px) {
    .header-title {
        display: none;
    }
    
    .header-search {
        min-width: 200px;
    }
    
    .top-bar-links {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px;
    }
    
    .main-header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-search {
        width: 100%;
        order: 3;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .logo-prefeitura,
    .logo-digital {
        height: 40px;
    }
    
    .logo-divider {
        height: 40px;
    }
}


/* Page Header - Seção de Título das Páginas Internas */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 101, 158, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease-out;
}

.page-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin: 0 auto;
    max-width: 600px;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Full */
.portfolio-full {
    padding: 4rem 0;
}

.portfolio-full h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* ===== MELHORIAS DE RESPONSIVIDADE ===== */

/* Tablets e dispositivos médios */
@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero {
        height: 500px;
    }
    
    .slide-text h2 {
        font-size: 2.5rem;
    }
    
    .apresentacao,
    .portfolio {
        padding: 3rem 0;
    }
    
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Hero/Slider */
    .hero {
        height: 400px;
    }
    
    .slide-text {
        padding: 1.5rem;
    }
    
    .slide-text h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .slide-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* Seções */
    .apresentacao h2,
    .portfolio h2 {
        font-size: 1.75rem;
    }
    
    .apresentacao p {
        font-size: 1rem;
    }
    
    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        max-width: 100%;
    }
    
    .card-content h3 {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-main {
        padding: 2.5rem 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    /* Busca - Resultados */
    .resultado-item {
        flex-direction: column;
    }
    
    .resultado-imagem {
        width: 100%;
        height: 200px;
    }
    
    .resultado-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resultado-header h2 {
        font-size: 1.25rem;
    }
    
    /* Sistema Detalhe */
    .sistema-detalhe h1 {
        font-size: 2rem;
    }
    
    .sistema-img {
        max-height: 300px;
    }
    
    .sistema-content {
        font-size: 1rem;
    }
    
    .sistema-content h2 {
        font-size: 1.5rem;
    }
    
    .sistema-content h3 {
        font-size: 1.25rem;
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    body {
        padding-top: 200px;
    }
    
    /* Top Bar */
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-info {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .top-bar-actions {
        justify-content: center;
    }
    
    /* Logo */
    .logo-prefeitura,
    .logo-digital {
        height: 35px;
    }
    
    .logo-divider {
        height: 35px;
    }
    
    /* Hero */
    .hero {
        height: 350px;
    }
    
    .slide-text h2 {
        font-size: 1.5rem;
    }
    
    .slide-text p {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Seções */
    .apresentacao,
    .portfolio {
        padding: 2rem 0;
    }
    
    .apresentacao h2,
    .portfolio h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .apresentacao p {
        font-size: 0.95rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 2.5rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .card-content {
        padding: 1.25rem;
    }
    
    .card-content h3 {
        font-size: 1.125rem;
    }
    
    /* Nav Menu */
    .nav-menu a {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }
    
    .nav-menu svg {
        width: 14px;
        height: 14px;
    }
    
    /* Botões */
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* Sistema Detalhe */
    .sistema-detalhe {
        padding: 2.5rem 0;
    }
    
    .sistema-detalhe h1 {
        font-size: 1.75rem;
    }
    
    .sistema-img {
        max-height: 250px;
    }
    
    .sistema-content {
        font-size: 0.95rem;
    }
    
    .sistema-content h2 {
        font-size: 1.375rem;
    }
    
    .sistema-content h3 {
        font-size: 1.125rem;
    }
    
    .sistema-content ul,
    .sistema-content ol {
        margin-left: 1.25rem;
    }
}

/* Landscape em smartphones */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding-top: 140px;
    }
    
    .hero {
        height: 350px;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
}

/* Impressão */
@media print {
    .top-bar,
    .main-nav,
    .whatsapp-float,
    .slider-btn,
    .btn,
    footer,
    [vw] {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
    
    .page-header h1,
    .page-header p {
        color: #000;
        text-shadow: none;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
