:root {
    --primary-color: #0d4b81;
    --secondary-color: #1773ba;
    --accent-color: #fdb813;
    --white-color: #ffffff;
    --light-gray-color: #f0f0f0;
    --dark-gray-color: #333;
}

body {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 16px;
    color: var(--dark-gray-color);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
}

.header-content img {
    height: 25px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
}

main section {
    padding: 60px 0;
}

#home {
    background-image: url('images/araruama-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
}

main section:nth-child(even) {
    background-color: var(--light-gray-color);
}

#sobre h2, #acesso-rapido h2, #noticias h2, #casa-do-empreendedor-digital h2, #cadunico h2, #certidoes h2, #contato h2, #parceiros h2 {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--dark-gray-color);
}

#sobre p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.sobre-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.sobre-coluna-img {
    flex: 1 1 40%;
}

.sobre-coluna-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sobre-coluna-texto {
    flex: 1 1 60%;
}

.sobre-coluna-texto h2 {
    text-align: left;
    margin-bottom: 20px;
}

.logo-titulo {
    display: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    line-height: 1.5;
    margin-bottom: 25px;
}

.card.portrait {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 400px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-gray-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #7F5D0A;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 480px;
    margin: 0 auto;
}

.button-grid .btn {
    width: 100%;
}

.btn-small-text {
    font-size: 12px;
}

.certidoes-grid .btn:last-child:nth-child(odd) {
    grid-column: span 2;
}

.event-banner-link {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-banner-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.event-banner-link img {
    width: 100%;
    display: block;
}

#contato .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

#contato .contact-info h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}


#contato .contact-info p {
    line-height: 1.6;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
}

#contato .contact-map iframe {
    border-radius: 8px;
    width: 100%;
    height: 300px;
}

.contact-info-below-map {
    margin-top: 20px;
}

.contact-info-below-map p {
    margin: 10px 0;
    font-size: 16px;
}

.contact-info-below-map .fas {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.contact-info-below-map a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon-contact {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-icon-contact img {
    width: 100%;
}

.social-icon-contact:hover {
    transform: scale(1.1);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 75, 129, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    font-size: 24px;
    line-height: 1;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

#parceiros {
    display: none;
}

#parceiros .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

#parceiros .logo-item img {
    max-width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

#parceiros .logo-item img:hover {
    filter: grayscale(0%);
}

.social-icons-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 100%;
}

.social-icon:hover {
    transform: scale(1.1);
}

footer {
    background-color: var(--dark-gray-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

/* Responsive Styles */
@media (max-width: 10.1in) {
    header nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    #contato .contact-content {
        grid-template-columns: 1fr;
    }

    #contato .contact-map iframe {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .sobre-container {
        flex-direction: column;
    }

    .sobre-coluna-img {
        display: none;
    }

    .sobre-coluna-texto h2 {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .logo-titulo {
        display: inline-block;
        width: 78px;
        height: 78px;
        margin-right: 15px;
    }

    .sobre-coluna-texto p {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 6in) {
    .button-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 15px;
    }
}

@media (min-width: 6in) and (max-width: 10.1in) {
    header h1 {
        font-size: 20px;
    }
}
