:root {
    --primary-color: #8B0000;
    --secondary-color: #ffffff;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}


.top-nav {
    background-color: var(--primary-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0 1rem;
}


.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
}

.hero-slide.active {
    opacity: 1;
    display: block;
}

.hero-slide:nth-child(1) {
    background-image: url('../images/hero.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../images/final1.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../images/galeria1.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 20px;
    color: white;
    text-align: left;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
}


.services-container {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-column {
    flex: 1;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-column h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.service-item span {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}


@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 1rem;
    }
}

.news-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.news-card h3 {
    padding: 1.5rem;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}


@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        padding: 1rem;
    }

    .news-card img {
        height: 200px;
    }

    .news-card h3 {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

.quemsomos {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

.quemsomos h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 2rem;
}

.quemsomos p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.quemsomos img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.quemsomos .row-fluid {
    display: flex;
    width: 100%;
}

.quemsomos .span8 {
    flex: 0 0 66.6667%; /* 8/12 = 66.6667% */
    max-width: 66.6667%;
}

.quemsomos .span4 {
    flex: 0 0 33.3333%; /* 4/12 = 33.3333% */
    max-width: 33.3333%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px 20px;
    margin-left: 24px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.2; /* Reduz o espaçamento entre linhas */
}

.quemsomos .span4 p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
    line-height: 0.9; /* Aumenta o espaçamento entre linhas para melhor legibilidade */
}

.quemsomos .span4 p.title-diretoria {
    color: #8B0000; /* Cor do texto em negrito */
    font-weight: bold;
    margin-top: 4rem;
    font-size: 1.2rem;
}

.quemsomos .span4 p strong {
    color: #8B0000; /* Cor do texto em negrito */
    font-weight: bold;
}

.downloads {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

.downloads h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.downloads p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    text-align: left;
}

.downloads p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.downloads p a:hover {
    text-decoration: underline;
}

.downloads p a:visited {
    color: var(--primary-color);
}

.convenios {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

.convenios h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.convenios img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.informacoes {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 32px 24px;
  margin: 32px auto;
    width: 100%;
    max-width: 1200px;
  color: #333;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.informacoes h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.informacoes p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.informacoes ul,
.informacoes ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.informacoes li {
  margin-bottom: 8px;
}

.informacoes .row-fluid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.informacoes .span12 {
    display: flex;
    flex: 0 0 100%; /* 12/12 = 100% */
    max-width: 100%;
}

.informacoes .span8 {
    flex: 0 0 66.6667%; /* 8/12 = 66.6667% */
    max-width: 66.6667%;
}

.informacoes .span3 {
    flex: 0 0 25%; /* 3/12 = 25% */
    max-width: 25%;
}

.informacoes .span3 .nav-pills {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

.informacoes .span3 .nav-pills li {
    margin-bottom: 8px;
    line-break: normal;
}

.informacoes .span3 .nav-pills li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.informacoes .span3 .nav-pills li a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.informacoes .span3 .nav-pills li.active a {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.informacoes .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.informacoes .table th,
.informacoes .table td {    
    padding: 12px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.informacoes .table th:nth-child(2) {
    border-left: 0;
}

.informacoes .table th {
    color: var(--text-color);
    font-weight: bold;
}

.informacoes .table td a {
    color: var(--text-color);
    text-decoration: none;
}

.informacoes .table td a:hover {
    text-decoration: underline;
}

.informacoes .table td i {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.dental-services {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

.dental-services h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.dental-services > p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    padding: 0 1rem 1.5rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .dental-services h2 {
        font-size: 2rem;
    }
}

.service-card img {
    width: 100%;
    border-radius: 8px;
}


.update-banner {
    padding: 3rem 0;
    text-align: center;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.update-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.update-banner a:hover img {
    transform: translateY(-5px);
}


.gallery {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f8f8;
}

.gallery h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.gallery h3 {
    padding: 1.5rem;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.gallery p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}


@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}


@media (max-width: 768px) {
    .update-banner {
        padding: 2rem 1rem;
    }

    .gallery {
        padding: 3rem 1rem;
    }

    .gallery h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-container {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}


.burger {
    display: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: all 0.3s ease;
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    font-size: 20px;
    z-index: 1000;
}


.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.error {
    border: 2px solid #ff0000;
}


img {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.loaded {
    opacity: 1;
}


@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: var(--primary-color);
        flex-direction: column;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        z-index: 1000;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        padding: 1rem;
    }
}


.news {
    text-align: center;
    padding-bottom: 2rem;
}

.news h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.news > p {
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.news .pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.news .pagination a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news .pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.news .pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.news .pagination a.disabled {
    color: #ccc;
    pointer-events: none;
    border: 1px solid #ccc;
}

.news .pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.news .pagination ul li.active {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: -5px;
    padding: 4px 1rem;
    border: 1px solid var(--primary-color);
}


.see-more {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.see-more:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}


/* Estilo para o Slider Hero */
/* Estilo para o Slider Hero */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: none;
}

.hero-slide.active {
    opacity: 1;
    display: block;
}

.hero-slide:nth-child(1) {
    background-image: url('../images/hero1.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('../images/hero2.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('../images/hero3.jpg');
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
}


/* Estilos para o Rodapé */
.main-footer {
    background-color: #8d0000;
    color: white;
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    padding: 0 15px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: #00A8E8;
}

.footer-column p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #00A8E8;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-bottom a {
    color: #00A8E8;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }
}